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