]>
Commit | Line | Data |
---|---|---|
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 | 8 | TREE = devo |
022f8f67 | 9 | include $(TREE)/release-info |
543cf4ac | 10 | |
89745e93 | 11 | TEST_INSTALL_DISK = /tug |
543cf4ac | 12 | |
022f8f67 | 13 | INSTALLDIR = $(TEST_INSTALL_DISK)/$(TREE)-test/$(RELEASE_TAG) |
543cf4ac | 14 | |
12eda620 ILT |
15 | ifndef host |
16 | host := $(shell $(TREE)/config.guess) | |
17 | endif | |
18 | ||
022f8f67 DZ |
19 | NATIVE = native |
20 | ||
e87f9243 ILT |
21 | GCC = gcc -O |
22 | CFLAGS = -g | |
23 | CXXFLAGS = -g -O | |
9823504d | 24 | MAKEINFOFLAGS = |
543cf4ac DZ |
25 | |
26 | log = 1>$(canonhost)-build-log 2>&1 | |
0689f73a | 27 | clog = 1>$(canonhost)-check-log 2>&1 |
f74859e4 | 28 | cyglog = 1> $(canonhost)-x-$$i-cygnus-build-log 2>&1 |
39ad69d8 | 29 | latestlog = 1> $(canonhost)-x-$$i-latest-build-log 2>&1 |
f74859e4 | 30 | natlog = 1> $(canonhost)-x-$$i-native-build-log 2>&1 |
543cf4ac DZ |
31 | |
32 | canonhost := $(shell $(TREE)/config.sub $(host)) | |
12eda620 ILT |
33 | |
34 | # Convert config.guess results to a simpler form. | |
89da237f ILT |
35 | ifeq ($(canonhost),sparc-sun-solaris2.1) |
36 | canonhost := sparc-sun-solaris2 | |
37 | endif | |
12eda620 ILT |
38 | ifeq ($(canonhost),mips-dec-ultrix4.2) |
39 | canonhost := mips-dec-ultrix | |
40 | endif | |
41 | ifeq ($(canonhost),mips-sgi-irix4.0.1) | |
42 | canonhost := mips-sgi-irix4 | |
43 | endif | |
db526bd7 ILT |
44 | ifeq ($(canonhost),rs6000-ibm-aix3.2) |
45 | canonhost := rs6000-ibm-aix | |
46 | endif | |
12eda620 | 47 | ifeq ($(canonhost),i486-unknown-sco3.2v4.0) |
21412832 ILT |
48 | canonhost := i386-sco3.2v4 |
49 | endif | |
ec782faa DZ |
50 | ifeq ($(canonhost),i386-unknown-sco3.2v4.0) |
51 | canonhost := i386-sco3.2v4 | |
52 | endif | |
08629ab8 DZ |
53 | ifeq ($(canonhost),i386-unknown-sco3.2v4) |
54 | canonhost := i386-sco3.2v4 | |
55 | endif | |
60986901 ILT |
56 | ifeq ($(canonhost),i386-unknown-go32) |
57 | canonhost := i386-go32 | |
58 | endif | |
89745e93 DZ |
59 | ifeq ($(canonhost),i386-unknown-sysv4.2) |
60 | canonhost := i386-sysv4.2 | |
61 | endif | |
f358c814 DZ |
62 | ifeq ($(canonhost),i386-lynx-lynxos) |
63 | canonhost := i386-lynxos | |
64 | endif | |
65 | ifeq ($(canonhost),m68k-lynx-lynxos) | |
66 | canonhost := m68k-lynxos | |
67 | endif | |
543cf4ac | 68 | |
32480238 DZ |
69 | ifeq ($(canonhost),sparc-sun-sunos4.1.3) |
70 | TARGETS = $(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 | 83 | GCC = gcc -O -pipe |
543cf4ac DZ |
84 | all: all-cygnus |
85 | endif | |
86 | ||
87 | ifeq ($(canonhost),m68k-sun-sunos4.1.1) | |
32480238 DZ |
88 | TARGETS = $(NATIVE) \ |
89 | i960-intel-nindy \ | |
07be0634 | 90 | m68k-aout m68k-vxworks m68k-coff |
e37dbf93 | 91 | GCC = gcc -O -msoft-float |
7cc2923a | 92 | CC = cc -J |
543cf4ac DZ |
93 | all: all-cygnus |
94 | endif | |
95 | ||
96 | ifeq ($(canonhost),sparc-sun-solaris2) | |
32480238 | 97 | TARGETS = $(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 | 106 | CC = cc -Xs |
32480238 | 107 | GCC = gcc -O -pipe |
543cf4ac DZ |
108 | all: all-cygnus |
109 | endif | |
110 | ||
111 | ifeq ($(canonhost),mips-dec-ultrix) | |
e110c2a8 | 112 | TARGETS = $(NATIVE) m68k-aout |
872ff7ef | 113 | CC = cc -Wf,-XNg1000 |
543cf4ac DZ |
114 | all: all-cygnus |
115 | endif | |
116 | ||
117 | ifeq ($(canonhost),mips-sgi-irix4) | |
89745e93 DZ |
118 | TARGETS = $(NATIVE) \ |
119 | mips-idt-ecoff sh-hms | |
4cb66853 | 120 | CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh1500 |
543cf4ac DZ |
121 | all: all-cygnus |
122 | endif | |
123 | ||
124 | ifeq ($(canonhost),rs6000-ibm-aix) | |
32480238 | 125 | TARGETS = $(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 |
138 | all: all-cygnus |
139 | endif | |
140 | ||
141 | ifeq ($(canonhost),m68k-hp-hpux) | |
07be0634 | 142 | TARGETS = $(NATIVE) m68k-aout |
e37dbf93 | 143 | TMPDIR := $(shell mkdir $(canonhost)-tmpdir; cd $(canonhost)-tmpdir ; pwd) |
32480238 DZ |
144 | CC = cc -Wp,-P |
145 | #CFLAGS = +O1000 | |
c262769a | 146 | CFLAGS = |
eb0293dc | 147 | all: all-cygnus |
543cf4ac DZ |
148 | endif |
149 | ||
150 | ifeq ($(canonhost),hppa1.1-hp-hpux) | |
32480238 DZ |
151 | TARGETS = \ |
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 |
164 | CC = cc |
165 | #CFLAGS = +Obb2000 | |
166 | CFLAGS = -g | |
26de3d0c | 167 | all: all-native |
543cf4ac DZ |
168 | endif |
169 | ||
21412832 ILT |
170 | ifeq ($(canonhost),i386-sco3.2v4) |
171 | TARGETS = $(NATIVE) i386-aout | |
21412832 ILT |
172 | all: all-cygnus |
173 | endif | |
174 | ||
60986901 | 175 | ifeq ($(canonhost),i386-go32) |
89745e93 | 176 | TARGETS = \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 |
184 | CC = i386-go32-gcc |
185 | GCC = i386-go32-gcc -O | |
9823504d ILT |
186 | CFLAGS = |
187 | CXXFLAGS = -O | |
188 | MAKEINFOFLAGS = --no-split | |
60986901 ILT |
189 | all: all-cross |
190 | endif | |
191 | ||
7f82101d | 192 | ifeq ($(canonhost),i386-sysv4.2) |
89745e93 | 193 | TARGETS = $(NATIVE) |
32480238 DZ |
194 | CC = cc |
195 | all: all-cygnus | |
196 | endif | |
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 |
214 | ifeq ($(canonhost),i386-lynxos) |
215 | TARGETS = $(NATIVE) | |
216 | CC = /bin/gcc | |
217 | all: all-cygnus | |
218 | endif | |
219 | ||
220 | ifeq ($(canonhost),m68k-lynxos) | |
221 | TARGETS = $(NATIVE) | |
222 | CC = /bin/gcc | |
223 | all: all-cygnus | |
224 | endif | |
225 | ||
226 | ||
543cf4ac DZ |
227 | FLAGS_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 |
236 | all-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 |
245 | all-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 |
273 | native: |
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 |
281 | build-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 |
298 | build-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 |
309 | all-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 |
319 | all-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 |
329 | config: |
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 | ||
343 | build: | |
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 | ||
356 | 3build: | |
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 | ||
87c6c079 DZ |
369 | build-all-latest: |
370 | @for i in $(TARGETS) ; do \ | |
371 | if [ "$$i" = "native" ] ; then \ | |
372 | echo "building 3stage for $(canonhost)" ; \ | |
373 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \ | |
374 | echo " completed successfully" ; \ | |
375 | else \ | |
376 | echo "building $(canonhost) cross to $$i" ; \ | |
377 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-latest $(cyglog) && \ | |
378 | echo " completed successfully" ; \ | |
379 | fi ; \ | |
380 | done | |
381 | ||
543cf4ac DZ |
382 | ### Local Variables: |
383 | ### fill-column: 131 | |
384 | ### End: |