mirror of
https://github.com/LIV2/libnix.git
synced 2025-12-06 00:23:08 +00:00
55 lines
1.2 KiB
Makefile
55 lines
1.2 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=__nocommandline.o __stdiowin.o
|
|
|
|
OPTIONS=-I$(srcdir)/../headers $(CFLAGS)
|
|
|
|
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 $(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 filelist subdirs clean veryclean
|
|
|
|
all: libnixmain.a
|
|
|
|
subdirs:
|
|
|
|
filelist:
|
|
|
|
clean:
|
|
-rm -f *.o *.err
|
|
|
|
veryclean: clean
|
|
-rm -f libnixmain.a
|
|
|
|
libnixmain.a: $(OBJECTS) ../../sources/nixmain/Makefile
|
|
-rm -f $@
|
|
$(AR) -q $@ $(OBJECTS)
|
|
$(RANLIB) $@
|
|
# echo "\\$$$(V)" >>$@
|