libnix/sources/stack/Makefile.in

46 lines
830 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/stack/filelist
endif
OPTIONS=-I$(srcdir)/../headers $(CFLAGS)
REDEF=-D_DOSBase=___DOSBase
%.o: %.c $(SUBDIRS)
$(CC) $(OPTIONS) -S $(filter-out $(SUBDIRS), $^) -o $*.S 2>&1|tee $*.err
$(CPP) -traditional $(REDEF) $*.S -o $*__2.S
$(CC) $(OPTIONS) $*__2.S -c -o $*.o
-rm $*.S $*__2.S
-if test ! -s $*.err; then rm $*.err; fi
.PHONY: all clean veryclean
all: libstack.a
clean:
-rm -rf *.o
veryclean:
-rm -rf *
libstack.a: $(OBJECTS) ../../sources/stack/Makefile ../../sources/stack/filelist
-rm -f $@
$(AR) -q $@ $(OBJECTS)
$(RANLIB) $@
# echo "\\$$$(V)" >>$@