51 lines
1.0 KiB
Makefile
51 lines
1.0 KiB
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 ####
|
|
|
|
OBJECTS=detach.o swapstack.o
|
|
|
|
OPTIONS=-I$(srcdir)/../headers $(CFLAGS)
|
|
|
|
vpath %.c $(SOURCEDIR)
|
|
|
|
REDEF=-D_DOSBase=___DOSBase \
|
|
-D_UtilityBase=___UtilityBase \
|
|
-D_MathIeeeSingBasBase=___MathIeeeSingBasBase \
|
|
-D_MathIeeeSingTransBase=___MathIeeeSingTransBase \
|
|
-D_MathIeeeDoubBasBase=___MathIeeeDoubBasBase \
|
|
-D_MathIeeeDoubTransBase=___MathIeeeDoubTransBase \
|
|
-D_LocaleBase=___LocaleBase
|
|
|
|
#Use private library bases to avoid naming collisions
|
|
%.o: %.c
|
|
$(CC) $(OPTIONS) -S $^ -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
|
|
echo "\$$$(V)" >>$*.o
|
|
|
|
.PHONY: all filelist subdirs clean veryclean
|
|
|
|
all: $(OBJECTS)
|
|
|
|
filelist:
|
|
|
|
subdirs:
|
|
|
|
clean:
|
|
-rm -f *.o *.err
|
|
|
|
veryclean: clean
|