Files
amiga-libnix2/libnix/sources/stubs/Makefile.in
T
jshepher f8848586fd Added large baserel and resident startup code.
Added implementations of truncate, readlink, putenv, setenv.
2004-09-09 23:29:14 +00:00

50 lines
858 B
Makefile

#### Start of system configuration section. ####
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
CPP = @CPP@
AS = @AS@
AR = @AR@
RANLIB = @RANLIB@
AWK = @AWK@
#### End system configuration section ####
ifneq ($(TARGET),clean)
include ../../sources/stubs/filelist
endif
CURDIR = $(shell pwd)
OPTIONS=-I$(srcdir)/../headers $(CFLAGS)
OBJECTS2=$(OBJECTS) ../nix/misc/__request.o
SUBDIRS2=$(SUBDIRS) ../nix/misc
%.o: %.c
$(CC) $(OPTIONS) -c $^ -o $@ 2>&1|tee $*.err
-if test ! -s $*.err; then rm $*.err; fi
.PHONY: all clean veryclean
all: libstubs.a
clean:
rm -rf $(SUBDIRS)
veryclean:
rm -rf *
$(foreach f,$(SUBDIRS2),$(CURDIR)/$(f)):
mkdir $@
libstubs.a: $(foreach f,$(SUBDIRS2),$(CURDIR)/$(f)) $(OBJECTS2) ../../sources/stubs/Makefile ../../sources/stubs/filelist
rm -f $@
$(AR) -q $@ $(OBJECTS2)
$(RANLIB) $@
echo "\$$$(V)" >>$@