-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile.in
195 lines (173 loc) · 7.21 KB
/
Makefile.in
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# Build all models of the libnix libraries.
#
# CFLAGS=-Wall -Os
#
# -fbaserel -DSMALL_DATA for small data model
# -fbaserel32 for large baserel model
# -m68020 for 68020 specific code
# -m68060 for 68060 specific code
# -m68881 for 68881 specific code (FPU)
# -DIXPATHS for Un*x path option
# -DDEBUG_LIB build a library for debugging (not yet fully working)
#### Start of system configuration section. ####
CFLAGS = @CFLAGS@
srcdir = @srcdir@
VPATH = @srcdir@
# Common prefix for machine-independent installed files.
prefix = @prefix@
# Common prefix for machine-dependent installed files.
exec_prefix = @exec_prefix@
libdir = $(exec_prefix)/lib
infodir = $(exec_prefix)/info
guidedir = $(exec_prefix)/guide
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
#### End system configuration section ####
V=VER: libnix 2.1b (01.12.2017)
CURDIR := $(shell pwd)
MAK2=$(MAKE) -f $(CURDIR)/sources/Makefile
#SUBDIRS=startup lib libb lib020 libb020 lib881 libb881 libb32 libb32881 #lib060 libb060 libb32060
SUBDIRS=startup lib libb lib020 libb020 libb32
all: $(SUBDIRS)
cd sources; $(MAKE) filelists
cd startup; $(MAKE) -f $(CURDIR)/sources/startup/Makefile V="$(V)"
cd lib; $(MAK2) V="$(V)" CFLAGS="$(CFLAGS) -noixemul"
cd libb; $(MAK2) V="$(V)" CFLAGS="$(CFLAGS) -noixemul -fbaserel -DSMALL_DATA"
cd lib020; $(MAK2) V="$(V)" CFLAGS="$(CFLAGS) -noixemul -m68020"
cd libb020; $(MAK2) V="$(V)" CFLAGS="$(CFLAGS) -noixemul -fbaserel -DSMALL_DATA -m68020"
cd libb32; $(MAK2) V="$(V)" CFLAGS="$(CFLAGS) -noixemul -fbaserel32 -DSMALL_DATA -m68020"
# cd lib881; $(MAK2) V="$(V)" CFLAGS="$(CFLAGS) -noixemul -m68020 -m68881"
# cd libb881; $(MAK2) V="$(V)" CFLAGS="$(CFLAGS) -noixemul -fbaserel -DSMALL_DATA -m68020 -m68881"
# cd lib060; $(MAK2) V="$(V)" CFLAGS="$(CFLAGS) -noixemul -m68060 -m68881"
# cd libb060; $(MAK2) V="$(V)" CFLAGS="$(CFLAGS) -noixemul -fbaserel -DSMALL_DATA -m68060 -m68881"
# cd libb32881; $(MAK2) V="$(V)" CFLAGS="$(CFLAGS) -noixemul -fbaserel32 -DSMALL_DATA -m68020 -m68881"
# cd libb32060; $(MAK2) V="$(V)" CFLAGS="$(CFLAGS) -noixemul -fbaserel32 -DSMALL_DATA -m68060 -m68881"
# cd libix; $(MAK2) V="$(V)" CFLAGS="$(CFLAGS) -DIXPATHS"
$(SUBDIRS):
mkdir $@
libamiga:
if [ ! -d lib ] ; then mkdir lib ; else true ; fi
if [ ! -d libb ] ; then mkdir libb ; else true ; fi
if [ ! -d libb32 ] ; then mkdir libb32 ; else true ; fi
cd sources; $(MAK2) filelists
cd lib; $(MAK2) libamiga CFLAGS="$(CFLAGS) -noixemul"
cd libb; $(MAK2) libamiga CFLAGS="$(CFLAGS) -noixemul -fbaserel"
cd lib020; $(MAK2) libamiga CFLAGS="$(CFLAGS) -noixemul -m68020"
cd libb020; $(MAK2) libamiga CFLAGS="$(CFLAGS) -noixemul -fbaserel -DSMALL_DATA -m68020"
cd libb32; $(MAK2) libamiga CFLAGS="$(CFLAGS) -noixemul -fbaserel32 -m68020"
clean:
cd lib; $(MAK2) clean
cd libb; $(MAK2) clean
cd lib020; $(MAK2) clean
cd libb020; $(MAK2) clean
cd libb32; $(MAK2) clean
# cd lib881; $(MAK2) clean
# cd libb881; $(MAK2) clean
# cd lib060; $(MAK2) clean
# cd libb060; $(MAK2) clean
# cd libb32881; $(MAK2) clean
# cd libb32060; $(MAK2) clean
# cd libix; $(MAK2) clean
-rm -f sources/*/filelist sources/stubs/libbases/* sources/stubs/libnames/*
veryclean:
cd lib; $(MAK2) veryclean
cd libb; $(MAK2) veryclean
cd lib020; $(MAK2) veryclean
cd libb020; $(MAK2) veryclean
cd libb32; $(MAK2) veryclean
# cd lib881; $(MAK2) veryclean
# cd libb881; $(MAK2) veryclean
# cd lib060; $(MAK2) veryclean
# cd libb060; $(MAK2) veryclean
# cd libb32881; $(MAK2) veryclean
# cd libb32060; $(MAK2) veryclean
# cd libix; $(MAK2) veryclean
-rm sources/*/filelist
libnix.guide: libnix.texi
makeinfo --amiga $(srcdir)/libnix.texi -o libnix.guide
libnix.info: libnix.texi
makeinfo $(srcdir)/libnix.texi -o libnix.info
install: installdirs
$(INSTALL) startup/*.o $(prefix)/lib
$(INSTALL) lib/*/lib*.a $(prefix)/lib
$(INSTALL) lib/misc/*.o $(prefix)/lib
$(INSTALL) libb/*/lib*.a $(prefix)/lib/libb
$(INSTALL) libb/misc/*.o $(prefix)/lib/libb
$(INSTALL) lib020/*/lib*.a $(prefix)/lib/libm020
$(INSTALL) lib020/misc/*.o $(prefix)/lib/libm020
$(INSTALL) libb020/*/lib*.a $(prefix)/lib/libm020/libb
$(INSTALL) libb020/misc/*.o $(prefix)/lib/libm020/libb
$(INSTALL) libb32/*/lib*.a $(prefix)/lib/libm020/libb32
$(INSTALL) libb32/misc/*.o $(prefix)/lib/libm020/libb32
# $(INSTALL) lib881/*/lib*.a $(prefix)/lib/libm020/libm881
# $(INSTALL) lib881/misc/*.o $(prefix)/lib/libm020/libm881
# $(INSTALL) libb881/*/lib*.a $(prefix)/lib/libb/libm020/libm881
# $(INSTALL) libb881/misc/*.o $(prefix)/lib/libb/libm020/libm881
# $(INSTALL) lib060/*/lib*.a $(prefix)/lib/libm060
# $(INSTALL) lib060/misc/*.o $(prefix)/lib/libm060
# $(INSTALL) libb060/*/lib*.a $(prefix)/lib/libb/libm060
# $(INSTALL) libb060/misc/*.o $(prefix)/lib/libb/libm060
# $(INSTALL) libb32881/*/lib*.a $(prefix)/lib/libb32/libm020/libm881
# $(INSTALL) libb32881/misc/*.o $(prefix)/lib/libb32/libm020/libm881
# $(INSTALL) libb32060/*/lib*.a $(prefix)/lib/libb32/libm060
# $(INSTALL) libb32060/misc/*.o $(prefix)/lib/libb32/libm060
# $(INSTALL_DATA) *.info* $(infodir)
# $(INSTALL_DATA) libnix.guide $(guidedir)/libnix.guide
mv $(prefix)/lib/libstubs.a $(prefix)/../lib
mv $(prefix)/lib/libb/libstubs.a $(prefix)/../lib/libb
mv $(prefix)/lib/libm020/libstubs.a $(prefix)/../lib/libm020
mv $(prefix)/lib/libm020/libb/libstubs.a $(prefix)/../lib/libm020/libb
mv $(prefix)/lib/libm020/libb32/libstubs.a $(prefix)/../lib/libm020/libb32
installdirs: mkinstalldirs
$(srcdir)/mkinstalldirs \
$(infodir) \
$(guidedir) \
$(libdir) \
$(libdir)/libb \
$(libdir)/libm020 \
$(libdir)/libm020/libb \
$(libdir)/libm020/libb32 \
# $(libdir)/libm020/libm881 \
# $(libdir)/libb/libm020/libm881 \
# $(libdir)/libb32/libm020/libm881
# $(libdir)/libm060 \
# $(libdir)/libb/libm060 \
# $(libdir)/libb32/libm060
#distribution:
# mkdir t:gg t:gg/lib t:gg/lib
# lha a -mraxez t:gg/libnix-sources.lha Makefile libnix.texi
# lha a -mraxez t:gg/libnix-sources.lha sources examples
# mkdir t:gg/lib/libm020 t:gg/lib/libm020 \
# t:gg/lib/libm020/libm881 t:gg/lib/libm020/libm881 \
# t:gg/lib/libb t:gg/lib/libb \
# t:gg/lib/libb/libm020 t:gg/lib/libb/libm020 \
# t:gg/lib/libb/libm020/libm881 t:gg/lib/libb/libm020/libm881
# cp -p startup/*.o t:gg/lib
# cp -p lib/*/*.a t:gg/lib
# cp -p lib/misc/*.o t:gg/lib
# cp -p libb/*/*.a t:gg/lib/libb
# cp -p libb/misc/*.o t:gg/lib/libb
# cp -p lib020/*/*.a t:gg/lib/libm020
# cp -p lib020/misc/*.o t:gg/lib/libm020
# cp -p libb020/*/*.a t:gg/lib/libb/libm020
# cp -p libb020/misc/*.o t:gg/lib/libb/libm020
# cp -p lib881/*/*.a t:gg/lib/libm020/libm881
# cp -p lib881/misc/*.o t:gg/lib/libm020/libm881
# cp -p libb881/*/*.a t:gg/lib/libb/libm020/libm881
# cp -p libb881/misc/*.o t:gg/lib/libb/libm020/libm881
# cp -p lib060/*/*.a t:gg/lib/libm060
# cp -p lib060/misc/*.o t:gg/lib/libm060
# cp -p libb060/*/*.a t:gg/lib/libm060
# cp -p libb060/misc/*.o t:gg/lib/libm060
# cp -p libb32/*/*.a t:gg/lib/libm020
# cp -p libb32/misc/*.o t:gg/lib/libm020
# cp -p libb32881/*/*.a t:gg/lib/libm020/libm881
# cp -p libb32881/misc/*.o t:gg/lib/libm020/libm881
# cp -p libb32060/*/*.a t:gg/lib/libm060
# cp -p libb32060/misc/*.o t:gg/lib/libm060
# -rm t:gg/lib/libnix/libglue.a t:gg/lib/libb/libnix/libglue.a
# -cp * t:gg
# rm t:gg/Makefile t:gg/libnix.texi
# cd t:gg;lha m -mraxeZ libnix.lha *
# rm -rf t:gg