1
0
mirror of https://github.com/cahirwpz/libnix.git synced 2025-12-08 14:58:56 +00:00
Files
amiga-libnix2/sources/stubs/Makefile.in
2014-01-05 20:02:29 +01: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)" >>$@