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