* bfd.c (union tdata): Add nlm_obj_data;
[deliverable/binutils-gdb.git] / build-all.mk
CommitLineData
543cf4ac
DZ
1# Build all of the targets for any given host.....
2#
3# This file is going to be ugly. It will be VERY specific to the
4# Cygnus environment and build-process.
5#
6#
7
543cf4ac 8TREE = devo
022f8f67 9include $(TREE)/release-info
543cf4ac 10
32480238 11TEST_INSTALL_DISK = /big
543cf4ac 12
022f8f67 13INSTALLDIR = $(TEST_INSTALL_DISK)/$(TREE)-test/$(RELEASE_TAG)
543cf4ac 14
12eda620
ILT
15ifndef host
16host := $(shell $(TREE)/config.guess)
17endif
18
022f8f67
DZ
19NATIVE = native
20
e87f9243
ILT
21GCC = gcc -O
22CFLAGS = -g
23CXXFLAGS = -g -O
9823504d 24MAKEINFOFLAGS =
543cf4ac
DZ
25
26log = 1>$(canonhost)-build-log 2>&1
27tlog = 1> $(canonhost)-x-$$i-build-log 2>&1
28
29canonhost := $(shell $(TREE)/config.sub $(host))
12eda620
ILT
30
31# Convert config.guess results to a simpler form.
89da237f
ILT
32ifeq ($(canonhost),sparc-sun-solaris2.1)
33canonhost := sparc-sun-solaris2
34endif
12eda620
ILT
35ifeq ($(canonhost),mips-dec-ultrix4.2)
36canonhost := mips-dec-ultrix
37endif
38ifeq ($(canonhost),mips-sgi-irix4.0.1)
39canonhost := mips-sgi-irix4
40endif
db526bd7
ILT
41ifeq ($(canonhost),rs6000-ibm-aix3.2)
42canonhost := rs6000-ibm-aix
43endif
12eda620 44ifeq ($(canonhost),i486-unknown-sco3.2v4.0)
21412832
ILT
45canonhost := i386-sco3.2v4
46endif
ec782faa
DZ
47ifeq ($(canonhost),i386-unknown-sco3.2v4.0)
48canonhost := i386-sco3.2v4
49endif
60986901
ILT
50ifeq ($(canonhost),i386-unknown-go32)
51canonhost := i386-go32
52endif
f358c814
DZ
53ifeq ($(canonhost),i386-lynx-lynxos)
54canonhost := i386-lynxos
55endif
56ifeq ($(canonhost),m68k-lynx-lynxos)
57canonhost := m68k-lynxos
58endif
543cf4ac 59
32480238
DZ
60ifeq ($(canonhost),sparc-sun-sunos4.1.3)
61TARGETS = $(NATIVE) \
62 a29k-amd-udi \
63 h8300-hms h8500-hms \
64 i386-aout i386-go32 i386-coff \
65 i960-vxworks i960-intel-nindy \
66 mips-idt-ecoff \
67 m68k-aout m68k-vxworks m68k-coff \
68 m88k-coff \
54278e28 69 sh-hms \
32480238
DZ
70 sparc-aout sparc-vxworks sparclitefrwcompat-aout sparclite-aout \
71 z8k-sim
72GCC = gcc -O -pipe
543cf4ac
DZ
73all: all-cygnus
74endif
75
76ifeq ($(canonhost),m68k-sun-sunos4.1.1)
32480238
DZ
77TARGETS = $(NATIVE) \
78 i960-intel-nindy \
79 m68k-aout m68k-vxworks m68k-coff i960
e37dbf93 80GCC = gcc -O -msoft-float
7cc2923a 81CC = cc -J
543cf4ac
DZ
82all: all-cygnus
83endif
84
85ifeq ($(canonhost),sparc-sun-solaris2)
32480238
DZ
86TARGETS = $(NATIVE) \
87 a29k-amd-udi \
88 m68k-vxworks m68k-coff m68k-aout \
89 mips-idt-ecoff \
90 i386-aout \
91 i960-vxworks i960-intel-nindy \
92 sparc-aout sparc-vxworks sparclite-aout
6d98b3d2 93CC = cc -Xs
32480238 94GCC = gcc -O -pipe
543cf4ac
DZ
95all: all-cygnus
96endif
97
98ifeq ($(canonhost),mips-dec-ultrix)
e110c2a8 99TARGETS = $(NATIVE) m68k-aout
872ff7ef 100CC = cc -Wf,-XNg1000
543cf4ac
DZ
101all: all-cygnus
102endif
103
104ifeq ($(canonhost),mips-sgi-irix4)
f358c814 105TARGETS = $(NATIVE) sh-hms
4cb66853 106CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh1500
543cf4ac
DZ
107all: all-cygnus
108endif
109
110ifeq ($(canonhost),rs6000-ibm-aix)
32480238
DZ
111TARGETS = $(NATIVE) \
112 i960-vxworks i960-intel-nindy \
113 m68k-aout m68k-vxworks
543cf4ac
DZ
114all: all-cygnus
115endif
116
117ifeq ($(canonhost),m68k-hp-hpux)
32480238 118TARGETS = $(NATIVE)
e37dbf93 119TMPDIR := $(shell mkdir $(canonhost)-tmpdir; cd $(canonhost)-tmpdir ; pwd)
32480238
DZ
120CC = cc -Wp,-P
121#CFLAGS = +O1000
122CFLAGS = -g
eb0293dc 123all: all-cygnus
543cf4ac
DZ
124endif
125
126ifeq ($(canonhost),hppa1.1-hp-hpux)
32480238
DZ
127TARGETS = \
128 i960-vxworks \
129 m68k-aout m68k-vxworks
130# a29k-amd-udi \
131# h8300-hms h8500-hms \
132# i386-aout i386-go32 \
133# i960-vxworks i960-intel-nindy \
134# mips-idt-ecoff \
135# m68k-aout m68k-vxworks m68k-coff \
136# m88k-coff \
137# sparc-aout sparclite-aout \
138# z8k-sim
139CC = cc
140#CFLAGS = +Obb2000
141CFLAGS = -g
26de3d0c 142all: all-native
543cf4ac
DZ
143endif
144
21412832
ILT
145ifeq ($(canonhost),i386-sco3.2v4)
146TARGETS = $(NATIVE) i386-aout
21412832
ILT
147all: all-cygnus
148endif
149
60986901 150ifeq ($(canonhost),i386-go32)
32480238
DZ
151TARGETS = \
152 a29k-amd-udi \
153 h8300-hms \
154 i386-aout \
155 m68k-aout m68k-coff \
156 mips-idt-ecoff \
157 sparclite-aout
60986901
ILT
158CC = i386-go32-gcc
159GCC = i386-go32-gcc -O
9823504d
ILT
160CFLAGS =
161CXXFLAGS = -O
162MAKEINFOFLAGS = --no-split
60986901
ILT
163all: all-cross
164endif
165
32480238
DZ
166ifeq ($(canonhost),i386-univel-sysv4)
167TARGETS = $(NATIVE)
168CC = cc
169all: all-cygnus
170endif
171
f358c814
DZ
172ifeq ($(canonhost),i386-lynxos)
173TARGETS = $(NATIVE)
174CC = /bin/gcc
175all: all-cygnus
176endif
177
178ifeq ($(canonhost),m68k-lynxos)
179TARGETS = $(NATIVE)
180CC = /bin/gcc
181all: all-cygnus
182endif
183
184
543cf4ac
DZ
185FLAGS_TO_PASS := \
186 "GCC=$(GCC)" \
7cc2923a 187 "CC=$(CC)" \
543cf4ac 188 "CFLAGS=$(CFLAGS)" \
e87f9243 189 "CXXFLAGS=$(CXXFLAGS)" \
12eda620 190 "host=$(canonhost)" \
9823504d 191 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
022f8f67 192 "RELEASE_TAG=$(RELEASE_TAG)"
543cf4ac 193
57dfb584
DZ
194all-emacs:
195 @echo build started at `date`
196 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
f358c814 197 -rm -f $(ROOTING)/$(RELEASE_TAG)
022f8f67 198 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
57dfb584
DZ
199 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1 > $(canonhost)-native-log 2>&1
200 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do-latest > $(canonhost)-latest-log 2>&1
201 @echo done at `date`
202
543cf4ac
DZ
203all-cygnus:
204 @echo build started at `date`
205 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
022f8f67
DZ
206 rm -f $(ROOTING)/$(RELEASE_TAG)
207 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
543cf4ac
DZ
208 @for i in $(TARGETS) ; do \
209 if [ "$$i" = "native" ] ; then \
75217b36 210 if [ ! -f $(canonhost)-stamp-3stage-done ] ; then \
543cf4ac 211 echo "3staging $(canonhost) native" ; \
21412832 212 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
543cf4ac 213 echo " completed successfully" ; \
75217b36
ILT
214 else \
215 true ; \
543cf4ac
DZ
216 fi \
217 else \
218 echo "building $(canonhost) cross to $$i" ; \
219 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-cygnus $(tlog) && \
220 echo " completed successfully" ; \
221 fi ; \
222 done
223 @echo done at `date`
224
c676f606
DZ
225native:
226 @echo build started at `date`
227 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
022f8f67
DZ
228 rm -f $(ROOTING)/$(RELEASE_TAG)
229 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
21412832 230 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log)
c676f606
DZ
231 @echo done at `date`
232
5ba00487
DZ
233build-cygnus:
234 @echo build started at `date`
235 @for i in $(TARGETS) ; do \
236 if [ "$$i" = "native" ] ; then \
237 if [ ! -f $(canonhost)-3stage-done ] ; then \
238 echo "3staging $(canonhost) native" ; \
21412832 239 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
5ba00487
DZ
240 echo " completed successfully" ; \
241 fi \
242 else \
13ec8aad 243 echo "building $(canonhost) cross to $$i:" `date` ; \
5ba00487
DZ
244 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(tlog) && \
245 echo " completed successfully" ; \
246 fi ; \
247 done
248 @echo done at `date`
249
543cf4ac
DZ
250all-native:
251 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
022f8f67
DZ
252 rm -f $(ROOTING)/$(RELEASE_TAG)
253 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
543cf4ac
DZ
254 @for i in $(TARGETS) ; do \
255 echo "building $(canonhost) cross to $$i" ; \
256 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native $(tlog) && \
257 echo " completed successfully" ; \
258 done
259
60986901
ILT
260all-cross:
261 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
a9377e86
ILT
262 rm -f $(ROOTING)/$(RELEASE_TAG)
263 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
60986901
ILT
264 @for i in $(TARGETS) ; do \
265 echo "building $(canonhost) cross to $$i" ; \
266 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build=$(build) do-cygnus $(tlog) && \
267 echo " completed successfully" ; \
268 done
269
543cf4ac
DZ
270config:
271 @for i in $(TARGETS) ; do \
272 if [ "$$i" = "native" ] ; then \
273 echo "config stage1 for $(canonhost)" ; \
274 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-config $(log) && \
275 echo " completed successfully" ; \
276 else \
277 echo "config $(canonhost) cross to $$i" ; \
278 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native-config $(tlog) && \
279 echo " completed successfully" ; \
280 fi ; \
281 done
282
283
284build:
285 @for i in $(TARGETS) ; do \
286 if [ "$$i" = "native" ] ; then \
287 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-build $(log) && \
288 echo " completed successfully" ; \
289 else \
290 echo "building $(canonhost) cross to $$i" ; \
291 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-native $(tlog) && \
292 echo " completed successfully" ; \
293 fi ; \
294 done
295
296
2973build:
298 @for i in $(TARGETS) ; do \
299 if [ "$$i" = "native" ] ; then \
300 echo "building 3stage for $(canonhost)" ; \
301 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) all $(log) && \
302 echo " completed successfully" ; \
303 else \
304 echo "building $(canonhost) cross to $$i" ; \
305 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(tlog) && \
306 echo " completed successfully" ; \
307 fi ; \
308 done
309
543cf4ac
DZ
310### Local Variables:
311### fill-column: 131
312### End:
This page took 0.054854 seconds and 4 git commands to generate.