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