forked from diegocr/libnix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (44 loc) · 1.43 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Generated automatically from Makefile.in by configure.
#### Start of system configuration section. ####
srcdir = .
CC = m68k-amigaos-gcc
CPP = m68k-amigaos-gcc -E
AS = m68k-amigaos-as
AR = m68k-amigaos-ar
RANLIB = m68k-amigaos-ranlib
AWK = gawk
V = VER: libnix 3.0 (29.11.2009)
CFLAGS = -Wall -m68020-60 -O2 -msoft-float -funroll-loops -fomit-frame-pointer -noixemul -I../headers -g
#### End system configuration section ####
ifneq ($(TARGET),clean)
include ../../sources/nix/filelist
endif
CURDIR = $(shell pwd)
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
%.o: ../../sources/nix/%.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: libnix.a
clean:
-rm -f */*.o *.a
filelists:
rm -fv filelist
cd ../ && make filelists
$(foreach f,$(SUBDIRS),$(CURDIR)/$(f)):
mkdir $@
libnix.a: $(foreach f,$(SUBDIRS),$(CURDIR)/$(f)) $(OBJECTS) ../../sources/nix/Makefile ../../sources/nix/filelist
-rm -f $@
$(AR) -q $@ $(OBJECTS)
$(RANLIB) $@
echo "\$$$(V)" >>$@