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