1
0
mirror of https://github.com/cahirwpz/libnix.git synced 2025-11-20 16:39:31 +00:00
Files
amiga-libnix2/sources/nix20/Makefile.in
Krystian Bacławski b1c9ff1a73 Devise a counterpart for libnix13.
From now on nix13 or nix20 will have to be provided explicitely to linker,
depending on which Kickstart your application should run on.
2016-10-08 22:42:48 +02:00

57 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 ####
ifneq ($(TARGET),clean)
include ../../sources/nix20/filelist
endif
CURDIR = $(shell pwd)
OPTIONS=-I$(srcdir)/../headers $(CFLAGS) -msmall-code
REDEF=-D_DOSBase=___DOSBase \
-D_UtilityBase=___UtilityBase \
-D_MathIeeeSingBasBase=___MathIeeeSingBasBase \
-D_MathIeeeSingTransBase=___MathIeeeSingTransBase \
-D_MathIeeeDoubBasBase=___MathIeeeDoubBasBase \
-D_MathIeeeDoubTransBase=___MathIeeeDoubTransBase \
-D_LocaleBase=___LocaleBase
%.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
.PHONY: all clean veryclean
all: libnix20.a
clean:
-rm -rf $(SUBDIRS)
veryclean:
-rm -rf *
$(foreach f,$(SUBDIRS),$(CURDIR)/$(f)):
mkdir $@
libnix20.a: $(foreach f,$(SUBDIRS),$(CURDIR)/$(f)) $(OBJECTS) ../../sources/nix20/Makefile ../../sources/nix20/filelist
-rm -f $@
$(AR) -q $@ $(OBJECTS)
$(RANLIB) $@
echo "\$$$(V)" >>$@