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