* blockframe.c, frame.h (sigtramp_saved_pc): New routine to fetch
[deliverable/binutils-gdb.git] / build-all.mk
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
8 TREE = devo
9 include $(TREE)/release-info
10
11 TEST_INSTALL_DISK = /taxes
12
13 INSTALLDIR = $(TEST_INSTALL_DISK)/$(TREE)-test/$(RELEASE_TAG)
14
15 ifndef host
16 host := $(shell $(TREE)/config.guess)
17 endif
18
19 NATIVE = native
20
21 GCC = gcc -O
22 CFLAGS = -g
23 CXXFLAGS = -g -O
24 MAKEINFOFLAGS =
25
26 log = 1>$(canonhost)-build-log 2>&1
27 cyglog = 1> $(canonhost)-x-$$i-cygnus-build-log 2>&1
28 natlog = 1> $(canonhost)-x-$$i-native-build-log 2>&1
29
30 canonhost := $(shell $(TREE)/config.sub $(host))
31
32 # Convert config.guess results to a simpler form.
33 ifeq ($(canonhost),sparc-sun-solaris2.1)
34 canonhost := sparc-sun-solaris2
35 endif
36 ifeq ($(canonhost),mips-dec-ultrix4.2)
37 canonhost := mips-dec-ultrix
38 endif
39 ifeq ($(canonhost),mips-sgi-irix4.0.1)
40 canonhost := mips-sgi-irix4
41 endif
42 ifeq ($(canonhost),rs6000-ibm-aix3.2)
43 canonhost := rs6000-ibm-aix
44 endif
45 ifeq ($(canonhost),i486-unknown-sco3.2v4.0)
46 canonhost := i386-sco3.2v4
47 endif
48 ifeq ($(canonhost),i386-unknown-sco3.2v4.0)
49 canonhost := i386-sco3.2v4
50 endif
51 ifeq ($(canonhost),i386-unknown-sco3.2v4)
52 canonhost := i386-sco3.2v4
53 endif
54 ifeq ($(canonhost),i386-unknown-go32)
55 canonhost := i386-go32
56 endif
57 ifeq ($(canonhost),i386-lynx-lynxos)
58 canonhost := i386-lynxos
59 endif
60 ifeq ($(canonhost),m68k-lynx-lynxos)
61 canonhost := m68k-lynxos
62 endif
63
64 ifeq ($(canonhost),sparc-sun-sunos4.1.3)
65 TARGETS = $(NATIVE) \
66 i386-go32 \
67 a29k-amd-udi \
68 h8300-hms h8500-hms \
69 i386-aout i386-coff \
70 i960-intel-nindy i960-vxworks \
71 mips-idt-ecoff \
72 m68k-aout m68k-vxworks m68k-coff \
73 m88k-coff \
74 sh-hms \
75 sparc-aout sparc-vxworks sparclite-aout \
76 z8k-sim z8k-coff
77 GCC = gcc -O -pipe
78 all: all-cygnus
79 endif
80
81 ifeq ($(canonhost),m68k-sun-sunos4.1.1)
82 TARGETS = $(NATIVE) \
83 i960-intel-nindy \
84 m68k-aout m68k-vxworks m68k-coff
85 GCC = gcc -O -msoft-float
86 CC = cc -J
87 all: all-cygnus
88 endif
89
90 ifeq ($(canonhost),sparc-sun-solaris2)
91 TARGETS = $(NATIVE) \
92 i386-aout \
93 i960-vxworks i960-intel-nindy \
94 m68k-aout m68k-coff m68k-vxworks \
95 mips-idt-ecoff \
96 sparc-aout sparc-vxworks sparclite-aout \
97 h8300-hms h8500-hms \
98 a29k-amd-udi \
99 i386-coff
100 CC = cc -Xs
101 GCC = gcc -O -pipe
102 all: all-cygnus
103 endif
104
105 ifeq ($(canonhost),mips-dec-ultrix)
106 TARGETS = $(NATIVE) m68k-aout
107 CC = cc -Wf,-XNg1000
108 all: all-cygnus
109 endif
110
111 ifeq ($(canonhost),mips-sgi-irix4)
112 TARGETS = $(NATIVE) sh-hms
113 CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh1500
114 all: all-cygnus
115 endif
116
117 ifeq ($(canonhost),rs6000-ibm-aix)
118 TARGETS = $(NATIVE) \
119 i960-vxworks i960-intel-nindy \
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
130 all: all-cygnus
131 endif
132
133 ifeq ($(canonhost),m68k-hp-hpux)
134 TARGETS = $(NATIVE) m68k-aout
135 TMPDIR := $(shell mkdir $(canonhost)-tmpdir; cd $(canonhost)-tmpdir ; pwd)
136 CC = cc -Wp,-P
137 #CFLAGS = +O1000
138 CFLAGS =
139 all: all-cygnus
140 endif
141
142 ifeq ($(canonhost),hppa1.1-hp-hpux)
143 TARGETS = \
144 i960-vxworks \
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
156 CC = cc
157 #CFLAGS = +Obb2000
158 CFLAGS = -g
159 all: all-native
160 endif
161
162 ifeq ($(canonhost),i386-sco3.2v4)
163 TARGETS = $(NATIVE) i386-aout
164 all: all-cygnus
165 endif
166
167 ifeq ($(canonhost),i386-go32)
168 TARGETS = \
169 a29k-amd-udi \
170 h8300-hms h8500-hms \
171 i386-aout \
172 m68k-aout m68k-coff \
173 mips-idt-ecoff \
174 sh-hms \
175 sparclite-aout
176 CC = i386-go32-gcc
177 GCC = i386-go32-gcc -O
178 CFLAGS =
179 CXXFLAGS = -O
180 MAKEINFOFLAGS = --no-split
181 all: all-cross
182 endif
183
184 ifeq ($(canonhost),i386-univel-sysv4.2)
185 TARGETS = $(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
196 CC = cc
197 all: all-cygnus
198 endif
199
200 ifeq ($(canonhost),i386-lynxos)
201 TARGETS = $(NATIVE)
202 CC = /bin/gcc
203 all: all-cygnus
204 endif
205
206 ifeq ($(canonhost),m68k-lynxos)
207 TARGETS = $(NATIVE)
208 CC = /bin/gcc
209 all: all-cygnus
210 endif
211
212
213 FLAGS_TO_PASS := \
214 "GCC=$(GCC)" \
215 "CC=$(CC)" \
216 "CFLAGS=$(CFLAGS)" \
217 "CXXFLAGS=$(CXXFLAGS)" \
218 "host=$(canonhost)" \
219 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
220 "RELEASE_TAG=$(RELEASE_TAG)"
221
222 all-emacs:
223 @echo build started at `date`
224 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
225 -rm -f $(ROOTING)/$(RELEASE_TAG)
226 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
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
229 @echo done at `date`
230
231 all-cygnus:
232 @echo build started at `date`
233 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
234 -rm -f $(ROOTING)/$(RELEASE_TAG) && ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
235 @for i in $(TARGETS) ; do \
236 if [ "$$i" = "native" ] ; then \
237 if [ ! -f $(canonhost)-stamp-3stage-done ] ; then \
238 echo "3staging $(canonhost) native" ; \
239 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
240 echo " completed successfully" ; \
241 else \
242 true ; \
243 fi \
244 else \
245 echo "building $(canonhost) cross to $$i" ; \
246 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-cygnus $(cyglog) && \
247 echo " completed successfully" ; \
248 fi ; \
249 done
250 @echo done at `date`
251
252 native:
253 @echo build started at `date`
254 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
255 rm -f $(ROOTING)/$(RELEASE_TAG)
256 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
257 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log)
258 @echo done at `date`
259
260 build-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" ; \
266 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
267 echo " completed successfully" ; \
268 fi \
269 else \
270 echo "building $(canonhost) cross to $$i:" `date` ; \
271 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(cyglog) && \
272 echo " completed successfully" ; \
273 fi ; \
274 done
275 @echo done at `date`
276
277 all-native:
278 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
279 rm -f $(ROOTING)/$(RELEASE_TAG)
280 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
281 @for i in $(TARGETS) ; do \
282 echo "building $(canonhost) cross to $$i" ; \
283 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native $(natlog) && \
284 echo " completed successfully" ; \
285 done
286
287 all-cross:
288 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
289 rm -f $(ROOTING)/$(RELEASE_TAG)
290 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
291 @for i in $(TARGETS) ; do \
292 echo "building $(canonhost) cross to $$i" ; \
293 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build=$(build) do-cygnus $(cyglog) && \
294 echo " completed successfully" ; \
295 done
296
297 config:
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" ; \
305 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native-config $(cyglog) && \
306 echo " completed successfully" ; \
307 fi ; \
308 done
309
310
311 build:
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" ; \
318 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-native $(natlog) && \
319 echo " completed successfully" ; \
320 fi ; \
321 done
322
323
324 3build:
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" ; \
332 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(cyglog) && \
333 echo " completed successfully" ; \
334 fi ; \
335 done
336
337 ### Local Variables:
338 ### fill-column: 131
339 ### End:
This page took 0.035428 seconds and 4 git commands to generate.