Commit | Line | Data |
---|---|---|
87fa4c38 | 1 | # Build all of the targets for any given host..... |
543cf4ac | 2 | # |
87fa4c38 KC |
3 | # This file is going to be ugly. It will be VERY specific to the |
4 | # Cygnus environment and build-process. | |
543cf4ac | 5 | # |
85195426 DE |
6 | # Useful targets (rt = recursion target): |
7 | # (please correct or expand on this) | |
8 | # FIXME: Might some of these be superfluous? | |
543cf4ac | 9 | # |
85195426 DE |
10 | # all-emacs |
11 | # all-cygnus - set up install directories, build 3stage native and all | |
12 | # supported cross targets, then check 3stage'd native | |
13 | # (rt = $(canonhost)-stamp-3stage-done, do-cygnus for cross) | |
14 | # native - set up install directories, build 3stage native | |
15 | # (rt = $(canonhost)-stamp-3stage-1) | |
16 | # build-cygnus - build 3stage native and all supported cross targets | |
17 | # (rt = $(canonhost)-stamp-3stage-done, build-cygnus for cross) | |
87fa4c38 | 18 | # build-latest - build all supported cross targets |
85195426 DE |
19 | # (rt = build-latest) |
20 | # all-native - set up install directories, build native | |
21 | # (rt = do-native) | |
22 | # all-cross - set up install directories, build all targets | |
23 | # (rt = do-cygnus) | |
24 | # config - configure native and all supported cross targets | |
25 | # (rt = do1-config, do-native-config for cross) | |
26 | # build - build native and all supported cross targets | |
27 | # (rt = do1-build, build-native for cross) | |
28 | # 3build - build 3stage native and all supported cross targets | |
29 | # (rt = all, build-cygnus for cross) | |
30 | # build-all-latest - build 3stage native and all supported cross targets | |
31 | # (rt = $(canonhost)-stamp-3stage-done, build-latest for cross) | |
44c1515d DE |
32 | # clean - remove objdir directories, stamp files |
33 | # (rt = clean) | |
85195426 DE |
34 | # |
35 | # To configure/build for fewer targets, specify TARGETS="native cross1 ...". | |
36 | ||
db78f2ae | 37 | TREE = devo |
022f8f67 | 38 | include $(TREE)/release-info |
543cf4ac | 39 | |
db78f2ae | 40 | TEST_INSTALL_DISK = /dumbo |
543cf4ac | 41 | |
022f8f67 | 42 | INSTALLDIR = $(TEST_INSTALL_DISK)/$(TREE)-test/$(RELEASE_TAG) |
543cf4ac | 43 | |
12eda620 ILT |
44 | ifndef host |
45 | host := $(shell $(TREE)/config.guess) | |
46 | endif | |
47 | ||
022f8f67 DZ |
48 | NATIVE = native |
49 | ||
b39958ad | 50 | GCC = gcc |
e87f9243 | 51 | CFLAGS = -g |
b39958ad JM |
52 | GNUCFLAGS= -g -O2 |
53 | CXXFLAGS = -g -O2 | |
9823504d | 54 | MAKEINFOFLAGS = |
543cf4ac DZ |
55 | |
56 | log = 1>$(canonhost)-build-log 2>&1 | |
0689f73a | 57 | clog = 1>$(canonhost)-check-log 2>&1 |
f74859e4 | 58 | cyglog = 1> $(canonhost)-x-$$i-cygnus-build-log 2>&1 |
39ad69d8 | 59 | latestlog = 1> $(canonhost)-x-$$i-latest-build-log 2>&1 |
f74859e4 | 60 | natlog = 1> $(canonhost)-x-$$i-native-build-log 2>&1 |
543cf4ac DZ |
61 | |
62 | canonhost := $(shell $(TREE)/config.sub $(host)) | |
12eda620 ILT |
63 | |
64 | # Convert config.guess results to a simpler form. | |
89da237f ILT |
65 | ifeq ($(canonhost),sparc-sun-solaris2.1) |
66 | canonhost := sparc-sun-solaris2 | |
67 | endif | |
85195426 DE |
68 | ifeq ($(canonhost),sparc-sun-solaris2.3) |
69 | canonhost := sparc-sun-solaris2 | |
70 | endif | |
12eda620 ILT |
71 | ifeq ($(canonhost),mips-dec-ultrix4.2) |
72 | canonhost := mips-dec-ultrix | |
73 | endif | |
9647b1ea AMT |
74 | ifeq ($(canonhost),mips-dec-ultrix4.4) |
75 | canonhost := mips-dec-ultrix | |
76 | endif | |
12eda620 ILT |
77 | ifeq ($(canonhost),mips-sgi-irix4.0.1) |
78 | canonhost := mips-sgi-irix4 | |
79 | endif | |
85195426 DE |
80 | ifeq ($(canonhost),mips-sgi-irix4.0.5H) |
81 | canonhost := mips-sgi-irix4 | |
82 | endif | |
175e702b KC |
83 | ifeq ($(canonhost),mips-sgi-irix5.2) |
84 | canonhost := mips-sgi-irix5 | |
85 | endif | |
db526bd7 ILT |
86 | ifeq ($(canonhost),rs6000-ibm-aix3.2) |
87 | canonhost := rs6000-ibm-aix | |
88 | endif | |
12eda620 | 89 | ifeq ($(canonhost),i486-unknown-sco3.2v4.0) |
21412832 ILT |
90 | canonhost := i386-sco3.2v4 |
91 | endif | |
ec782faa DZ |
92 | ifeq ($(canonhost),i386-unknown-sco3.2v4.0) |
93 | canonhost := i386-sco3.2v4 | |
94 | endif | |
08629ab8 DZ |
95 | ifeq ($(canonhost),i386-unknown-sco3.2v4) |
96 | canonhost := i386-sco3.2v4 | |
97 | endif | |
60986901 ILT |
98 | ifeq ($(canonhost),i386-unknown-go32) |
99 | canonhost := i386-go32 | |
100 | endif | |
89745e93 DZ |
101 | ifeq ($(canonhost),i386-unknown-sysv4.2) |
102 | canonhost := i386-sysv4.2 | |
103 | endif | |
f358c814 | 104 | ifeq ($(canonhost),i386-lynx-lynxos) |
8456a631 | 105 | canonhost := i386-lynx |
f358c814 DZ |
106 | endif |
107 | ifeq ($(canonhost),m68k-lynx-lynxos) | |
8456a631 | 108 | canonhost := m68k-lynx |
f358c814 | 109 | endif |
c5a1c226 KC |
110 | ifeq ($(canonhost),sparc-lynx-lynxos) |
111 | canonhost := sparc-lynx | |
112 | endif | |
113 | ifeq ($(canonhost),rs6000-lynx-lynxos) | |
055cc3ff KC |
114 | canonhost := rs6000-lynx |
115 | endif | |
b39958ad JM |
116 | ifeq ($(canonhost),i386-unknown-linux) |
117 | canonhost := i386-linux | |
118 | endif | |
119 | ifeq ($(canonhost),i486-unknown-linux) | |
120 | canonhost := i486-linux | |
121 | endif | |
122 | ifeq ($(canonhost),i586-unknown-linux) | |
123 | canonhost := i486-linux | |
124 | endif | |
c55c62ed JM |
125 | ifeq ($(canonhost),i386-unknown-linuxaout) |
126 | canonhost := i386-linuxaout | |
b39958ad | 127 | endif |
c55c62ed JM |
128 | ifeq ($(canonhost),i486-unknown-linuxaout) |
129 | canonhost := i486-linuxaout | |
b39958ad | 130 | endif |
c55c62ed JM |
131 | ifeq ($(canonhost),i586-unknown-linuxaout) |
132 | canonhost := i486-linuxaout | |
b39958ad | 133 | endif |
543cf4ac | 134 | |
e3f6f4cf BC |
135 | # |
136 | # The following TARGETS variable settings probably ought to | |
137 | # be made automatically from the | |
138 | # /s1/cygnus/progressive/host-target-pairs.tbl file, using | |
139 | # the /s1/cygnus/progressive/targets script. But, be sure | |
140 | # that the native is spelled 'native'. | |
141 | # | |
142 | ||
9647b1ea AMT |
143 | ifeq ($(canonhost),sparc-sun-sunos4.1) |
144 | TARGETS = $(NATIVE) \ | |
145 | i386-go32 \ | |
146 | a29k-amd-udi a29k-vxworks5.1 \ | |
147 | sh-hms h8300-hms \ | |
148 | powerpc-eabi hppa1.1-hp-proelf \ | |
149 | i386-aout i386-elf \ | |
150 | i960-nindy-coff i960-vxworks5.0 i960-vxworks5.1 \ | |
151 | m68k-aout m68k-coff m68k-elf m68k-vxworks5.1 \ | |
152 | mips-elf mips-idt-ecoff mips64-elf \ | |
153 | sparc-aout sparclite-aout sparclite-coff \ | |
154 | z8k-coff i386-unixware mips-ncd-elf \ | |
155 | OSE68000 OSE68k | |
156 | GCC = gcc -O2 -pipe | |
157 | all: all-cygnus | |
158 | endif | |
159 | ||
32480238 DZ |
160 | ifeq ($(canonhost),sparc-sun-sunos4.1.3) |
161 | TARGETS = $(NATIVE) \ | |
d5b2cb76 | 162 | i386-go32 \ |
32480238 | 163 | a29k-amd-udi \ |
db78f2ae AMT |
164 | h8300-hms h8500-hms \ |
165 | hppa1.1-hp-proelf \ | |
166 | i386-aout i386-elf \ | |
167 | i960-nindy-coff i960-vxworks5.0 i960-vxworks5.1 \ | |
168 | m68k-aout m68k-coff m68k-elf m68k-vxworks5.1 \ | |
055cc3ff | 169 | mips-idt-ecoff mips64-elf mips-elf \ |
db78f2ae AMT |
170 | sh-hms \ |
171 | sparc-aout sparc64-aout sparc-vxworks \ | |
172 | sparclite-aout sparclite-coff sparclite-vxworks \ | |
173 | z8k-coff \ | |
174 | OSE68000 OSE68k mips-ncd-elf i386-unixware | |
175 | # The OSE68000 and OSE68k targets are for Ericsson only. | |
a846e83d | 176 | GCC = gcc -O2 -pipe |
543cf4ac DZ |
177 | all: all-cygnus |
178 | endif | |
179 | ||
180 | ifeq ($(canonhost),m68k-sun-sunos4.1.1) | |
db78f2ae | 181 | TARGETS = $(NATIVE) |
a846e83d | 182 | GCC = gcc -O2 -msoft-float |
7cc2923a | 183 | CC = cc -J |
543cf4ac DZ |
184 | all: all-cygnus |
185 | endif | |
186 | ||
187 | ifeq ($(canonhost),sparc-sun-solaris2) | |
32480238 | 188 | TARGETS = $(NATIVE) \ |
d5b2cb76 | 189 | a29k-amd-udi \ |
db78f2ae AMT |
190 | h8300-hms h8500-hms \ |
191 | hppa1.1-hp-proelf \ | |
87fa4c38 | 192 | i960-vxworks5.0 i960-vxworks5.1 \ |
db78f2ae AMT |
193 | m68k-aout m68k-coff m68k-vxworks5.1 m88k-coff \ |
194 | mips-idt-ecoff mips-elf \ | |
195 | sparc64-elf sparclite-aout sparclite-coff \ | |
e3f6f4cf BC |
196 | OSE68000 OSE68k \ |
197 | sparc-sun-sunos4.1.3 | |
198 | # The latter assures that BNR's special build (which they now | |
199 | # do for themselves from sources) hasn't developed bit-rot. | |
200 | # The OSE68000 and OSE68k targets are for Ericsson only. | |
201 | ||
ac42799d | 202 | CC = cc |
a846e83d | 203 | GCC = gcc -O2 -pipe |
543cf4ac DZ |
204 | all: all-cygnus |
205 | endif | |
206 | ||
207 | ifeq ($(canonhost),mips-dec-ultrix) | |
9647b1ea | 208 | TARGETS = $(NATIVE) |
872ff7ef | 209 | CC = cc -Wf,-XNg1000 |
543cf4ac | 210 | all: all-cygnus |
9647b1ea AMT |
211 | SHELL = /usr/unsupported/bin/bash |
212 | CONFIG_SHELL = /usr/unsupported/bin/bash | |
213 | TMPDIR = $(shell mkdir $(canonhost)-tmpdir; cd $(canonhost)-tmpdir ; pwd) | |
543cf4ac DZ |
214 | endif |
215 | ||
b39958ad | 216 | ifeq ($(patsubst alpha-dec-osf%,alpha,$(canonhost)),alpha) |
87fa4c38 KC |
217 | TARGETS = $(NATIVE) |
218 | CC = cc | |
219 | all: all-cygnus | |
220 | endif | |
221 | ||
543cf4ac | 222 | ifeq ($(canonhost),mips-sgi-irix4) |
89745e93 | 223 | TARGETS = $(NATIVE) \ |
db78f2ae AMT |
224 | mips-idt-ecoff \ |
225 | mips-elf mips64-elf \ | |
226 | sh-hms | |
fea15001 | 227 | CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 |
543cf4ac DZ |
228 | all: all-cygnus |
229 | endif | |
230 | ||
175e702b KC |
231 | ifeq ($(canonhost),mips-sgi-irix5) |
232 | TARGETS = $(NATIVE) \ | |
db78f2ae AMT |
233 | mips-idt-ecoff \ |
234 | mips-elf mips64-elf \ | |
235 | sh-hms | |
175e702b KC |
236 | CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 |
237 | all: all-cygnus | |
238 | endif | |
239 | ||
9647b1ea | 240 | ifeq ($(canonhost),powerpc-ibm-aix4.1) |
db78f2ae AMT |
241 | TARGETS = $(NATIVE) |
242 | all: all-cygnus | |
243 | endif | |
244 | ||
543cf4ac | 245 | ifeq ($(canonhost),rs6000-ibm-aix) |
32480238 | 246 | TARGETS = $(NATIVE) \ |
87fa4c38 | 247 | i960-vxworks5.0 i960-vxworks5.1 \ |
a4c50dd0 | 248 | m68k-aout |
543cf4ac DZ |
249 | all: all-cygnus |
250 | endif | |
251 | ||
db78f2ae AMT |
252 | ifeq ($(canonhost),rs6000-ibm-aix3.2.5) |
253 | TARGETS = $(NATIVE) \ | |
254 | i960-vxworks5.0 i960-vxworks5.1 \ | |
255 | m68k-aout | |
256 | all: all-cygnus | |
257 | endif | |
258 | ||
9647b1ea AMT |
259 | ifeq ($(canonhost),rs6000-ibm-aix4.1) |
260 | TARGETS = $(NATIVE) | |
261 | all: all-cygnus | |
262 | endif | |
263 | ||
264 | ifeq ($(canonhost),m68k-hp-hpux9) | |
265 | TARGETS = $(NATIVE) | |
e37dbf93 | 266 | TMPDIR := $(shell mkdir $(canonhost)-tmpdir; cd $(canonhost)-tmpdir ; pwd) |
db78f2ae | 267 | CC = cc -Wp,-P,-H256000 |
32480238 | 268 | #CFLAGS = +O1000 |
87fa4c38 | 269 | CFLAGS = -g |
eb0293dc | 270 | all: all-cygnus |
543cf4ac DZ |
271 | endif |
272 | ||
9647b1ea | 273 | ifeq ($(canonhost),hppa1.1-hp-hpux9) |
32480238 | 274 | TARGETS = \ |
d5b2cb76 | 275 | $(NATIVE) \ |
db78f2ae AMT |
276 | h8300-hms \ |
277 | hppa1.1-hp-proelf \ | |
87fa4c38 | 278 | i960-vxworks5.0 i960-vxworks5.1 \ |
db78f2ae | 279 | m68k-aout m68k-coff m68k-vxworks5.1 |
055cc3ff | 280 | CC = cc -Wp,-H256000 |
32480238 DZ |
281 | #CFLAGS = +Obb2000 |
282 | CFLAGS = -g | |
055cc3ff | 283 | all: all-cygnus |
543cf4ac DZ |
284 | endif |
285 | ||
9647b1ea AMT |
286 | #ifeq ($(canonhost),hppa1.1-hp-hpux10) |
287 | ifeq ($(patsubst hppa1.1-hp-hpux10%,hpux10,$(canonhost)),hpux10) | |
288 | TARGETS = $(NATIVE) | |
289 | CC = cc -Wp,-H256000 | |
290 | #CFLAGS = +Obb2000 | |
291 | CFLAGS = -g | |
292 | all: all-cygnus | |
293 | endif | |
294 | ||
21412832 | 295 | ifeq ($(canonhost),i386-sco3.2v4) |
db78f2ae | 296 | TARGETS = $(NATIVE) |
21412832 ILT |
297 | all: all-cygnus |
298 | endif | |
299 | ||
60986901 | 300 | ifeq ($(canonhost),i386-go32) |
d5b2cb76 | 301 | TARGETS = \ |
32480238 | 302 | a29k-amd-udi \ |
db78f2ae | 303 | h8300-hms hppa1.1-hp-proelf \ |
d5b2cb76 | 304 | i386-aout \ |
32480238 | 305 | m68k-aout m68k-coff \ |
db78f2ae | 306 | mips-elf mips-idt-ecoff mips64-elf \ |
d5b2cb76 | 307 | sh-hms \ |
db78f2ae | 308 | sparc-aout sparclite-aout sparclite-coff |
60986901 | 309 | CC = i386-go32-gcc |
a846e83d | 310 | GCC = i386-go32-gcc -O2 |
9823504d | 311 | CFLAGS = |
a846e83d | 312 | CXXFLAGS = -O2 |
9823504d | 313 | MAKEINFOFLAGS = --no-split |
055cc3ff | 314 | all: all-dos |
60986901 ILT |
315 | endif |
316 | ||
7f82101d | 317 | ifeq ($(canonhost),i386-sysv4.2) |
a4c50dd0 | 318 | TARGETS = $(NATIVE) i386-netware |
32480238 DZ |
319 | CC = cc |
320 | all: all-cygnus | |
321 | endif | |
322 | ||
1793e157 AMT |
323 | ifeq ($(canonhost),i386-ncr-sysv4.3) |
324 | TARGETS = $(NATIVE) | |
9647b1ea | 325 | CC = cc -Hnocopyr |
1793e157 AMT |
326 | SHELL = /usr/unsupported/bin/bash |
327 | CONFIG_SHELL = /usr/unsupported/bin/bash | |
328 | all: all-cygnus | |
329 | endif | |
330 | ||
8456a631 | 331 | ifeq ($(canonhost),i386-lynx) |
f358c814 | 332 | TARGETS = $(NATIVE) |
756b40d5 | 333 | CC = /usr/cygnus/progressive/bin/gcc |
f358c814 | 334 | all: all-cygnus |
fb682d69 | 335 | SHELL=/bin/bash |
f358c814 DZ |
336 | endif |
337 | ||
8456a631 | 338 | ifeq ($(canonhost),m68k-lynx) |
f358c814 | 339 | TARGETS = $(NATIVE) |
756b40d5 | 340 | CC = /usr/cygnus/progressive/bin/gcc |
f358c814 | 341 | all: all-cygnus |
fb682d69 | 342 | SHELL=/bin/bash |
f358c814 DZ |
343 | endif |
344 | ||
055cc3ff KC |
345 | ifeq ($(canonhost),sparc-lynx) |
346 | TARGETS = $(NATIVE) | |
756b40d5 | 347 | CC = /usr/cygnus/progressive/bin/gcc |
055cc3ff KC |
348 | all: all-cygnus |
349 | SHELL=/bin/bash | |
350 | endif | |
351 | ||
352 | ifeq ($(canonhost),rs6000-lynx) | |
353 | TARGETS = $(NATIVE) | |
b5775df3 | 354 | CC = /usr/cygnus/progressive/bin/gcc |
055cc3ff KC |
355 | all: all-cygnus |
356 | SHELL=/bin/bash | |
357 | endif | |
358 | ||
c55c62ed | 359 | ifeq ($(patsubst %-linux,linux,$(patsubst %-linuxaout,linux,$(canonhost))),linux) |
b39958ad JM |
360 | TARGETS = $(NATIVE) |
361 | all: all-cygnus | |
362 | endif | |
363 | ||
543cf4ac DZ |
364 | FLAGS_TO_PASS := \ |
365 | "GCC=$(GCC)" \ | |
7cc2923a | 366 | "CC=$(CC)" \ |
543cf4ac | 367 | "CFLAGS=$(CFLAGS)" \ |
b39958ad | 368 | "GNUCFLAGS=$(GNUCFLAGS)" \ |
e87f9243 | 369 | "CXXFLAGS=$(CXXFLAGS)" \ |
12eda620 | 370 | "host=$(canonhost)" \ |
9823504d | 371 | "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \ |
fb682d69 ME |
372 | "RELEASE_TAG=$(RELEASE_TAG)" \ |
373 | "SHELL=$(SHELL)" | |
543cf4ac | 374 | |
7ae68194 | 375 | # set GNU_MAKE and CONFIG_SHELL correctly in sub-builds |
87fa4c38 | 376 | ifeq ($(patsubst %-lynx,lynx,$(canonhost)),lynx) |
7ae68194 ME |
377 | FLAGS_TO_PASS := $(FLAGS_TO_PASS) "GNU_MAKE=$(MAKE)" "CONFIG_SHELL=/bin/bash" |
378 | endif | |
379 | ||
c55c62ed | 380 | ifeq ($(patsubst %-linux,linux,$(patsubst %-linuxaout,linux,$(canonhost))),linux) |
b39958ad JM |
381 | FLAGS_TO_PASS := $(FLAGS_TO_PASS) "GNU_MAKE=$(MAKE)" |
382 | endif | |
383 | ||
1793e157 AMT |
384 | ifeq ($(patsubst %i386-ncr-sysv4.3,ncr,$(canonhost)),ncr) |
385 | FLAGS_TO_PASS := $(FLAGS_TO_PASS) "CONFIG_SHELL=/usr/unsupported/bin/bash" | |
386 | endif | |
387 | ||
57dfb584 DZ |
388 | all-emacs: |
389 | @echo build started at `date` | |
3b7776b5 | 390 | test -d $(INSTALLDIR) || mkdir $(INSTALLDIR) |
f358c814 | 391 | -rm -f $(ROOTING)/$(RELEASE_TAG) |
022f8f67 | 392 | ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG) |
08629ab8 DZ |
393 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1 > $(canonhost)-emacs-native-log 2>&1 |
394 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do-latest > $(canonhost)-emacs-latest-log 2>&1 | |
57dfb584 DZ |
395 | @echo done at `date` |
396 | ||
543cf4ac DZ |
397 | all-cygnus: |
398 | @echo build started at `date` | |
3b7776b5 | 399 | test -d $(INSTALLDIR) || mkdir $(INSTALLDIR) |
c262769a | 400 | -rm -f $(ROOTING)/$(RELEASE_TAG) && ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG) |
c5a1c226 | 401 | # |
87fa4c38 KC |
402 | # The following line to be used during regular progressive builds |
403 | # to help developers test, but should be commented out for final | |
404 | # progressive build. | |
c5a1c226 | 405 | # |
87fa4c38 | 406 | # -rm -f $(ROOTING)/progressive-beta && ln -s $(RELEASE_TAG) $(ROOTING)/progresssive |
543cf4ac DZ |
407 | @for i in $(TARGETS) ; do \ |
408 | if [ "$$i" = "native" ] ; then \ | |
75217b36 | 409 | if [ ! -f $(canonhost)-stamp-3stage-done ] ; then \ |
543cf4ac | 410 | echo "3staging $(canonhost) native" ; \ |
87fa4c38 | 411 | echo Flags passed to make: $(FLAGS_TO_PASS) ; \ |
db78f2ae AMT |
412 | if $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log); then \ |
413 | echo " completed successfully" ; \ | |
414 | else \ | |
415 | exit 1; \ | |
416 | fi; \ | |
75217b36 ILT |
417 | else \ |
418 | true ; \ | |
1900e815 | 419 | fi ; \ |
543cf4ac DZ |
420 | else \ |
421 | echo "building $(canonhost) cross to $$i" ; \ | |
f74859e4 | 422 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-cygnus $(cyglog) && \ |
543cf4ac DZ |
423 | echo " completed successfully" ; \ |
424 | fi ; \ | |
425 | done | |
0689f73a ME |
426 | @if [ ! -f $(canonhost)-stamp-3stage-checked ] ; then \ |
427 | echo checking $(canonhost) native ; \ | |
428 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-check-3stage $(clog) ; \ | |
429 | touch $(canonhost)-stamp-3stage-checked ; \ | |
430 | else \ | |
431 | true ; \ | |
432 | fi | |
543cf4ac DZ |
433 | @echo done at `date` |
434 | ||
c676f606 DZ |
435 | native: |
436 | @echo build started at `date` | |
3b7776b5 | 437 | test -d $(INSTALLDIR) || mkdir $(INSTALLDIR) |
c5a1c226 KC |
438 | -rm -f $(ROOTING)/$(RELEASE_TAG) && ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG) |
439 | # -rm -f $(ROOTING)/progressive-beta && ln -s $(RELEASE_TAG) $(ROOTING)/progressive-beta | |
21412832 | 440 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) |
c676f606 DZ |
441 | @echo done at `date` |
442 | ||
5ba00487 DZ |
443 | build-cygnus: |
444 | @echo build started at `date` | |
445 | @for i in $(TARGETS) ; do \ | |
446 | if [ "$$i" = "native" ] ; then \ | |
447 | if [ ! -f $(canonhost)-3stage-done ] ; then \ | |
448 | echo "3staging $(canonhost) native" ; \ | |
21412832 | 449 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \ |
5ba00487 | 450 | echo " completed successfully" ; \ |
1900e815 | 451 | fi ; \ |
5ba00487 | 452 | else \ |
13ec8aad | 453 | echo "building $(canonhost) cross to $$i:" `date` ; \ |
f74859e4 | 454 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(cyglog) && \ |
5ba00487 DZ |
455 | echo " completed successfully" ; \ |
456 | fi ; \ | |
457 | done | |
458 | @echo done at `date` | |
459 | ||
39ad69d8 DZ |
460 | build-latest: |
461 | @echo build started at `date` | |
462 | @for i in $(TARGETS) ; do \ | |
463 | if [ "$$i" != "native" ] ; then \ | |
464 | echo "building $(canonhost) cross to $$i:" `date` ; \ | |
465 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-latest $(latestlog) && \ | |
466 | echo " completed successfully" ; \ | |
467 | fi ; \ | |
468 | done | |
469 | @echo done at `date` | |
470 | ||
543cf4ac | 471 | all-native: |
3b7776b5 | 472 | test -d $(INSTALLDIR) || mkdir $(INSTALLDIR) |
022f8f67 DZ |
473 | rm -f $(ROOTING)/$(RELEASE_TAG) |
474 | ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG) | |
543cf4ac DZ |
475 | @for i in $(TARGETS) ; do \ |
476 | echo "building $(canonhost) cross to $$i" ; \ | |
f74859e4 | 477 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native $(natlog) && \ |
543cf4ac DZ |
478 | echo " completed successfully" ; \ |
479 | done | |
480 | ||
60986901 | 481 | all-cross: |
3b7776b5 | 482 | test -d $(INSTALLDIR) || mkdir $(INSTALLDIR) |
a9377e86 ILT |
483 | rm -f $(ROOTING)/$(RELEASE_TAG) |
484 | ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG) | |
60986901 ILT |
485 | @for i in $(TARGETS) ; do \ |
486 | echo "building $(canonhost) cross to $$i" ; \ | |
f74859e4 | 487 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build=$(build) do-cygnus $(cyglog) && \ |
60986901 ILT |
488 | echo " completed successfully" ; \ |
489 | done | |
490 | ||
8456a631 KC |
491 | do-dos: |
492 | $(MAKE) -f build-all.mk build=$(host) host=i386-go32 all-dos | |
493 | all-dos: | |
494 | @for i in $(TARGETS) ; do \ | |
495 | echo "building $(canonhost) cross to $$i" ; \ | |
055cc3ff | 496 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) host=$(host) target=$$i do-dos $(cyglog) && \ |
8456a631 KC |
497 | echo " completed successfully at `date`" ; \ |
498 | done | |
499 | ||
543cf4ac DZ |
500 | config: |
501 | @for i in $(TARGETS) ; do \ | |
502 | if [ "$$i" = "native" ] ; then \ | |
503 | echo "config stage1 for $(canonhost)" ; \ | |
504 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-config $(log) && \ | |
505 | echo " completed successfully" ; \ | |
506 | else \ | |
507 | echo "config $(canonhost) cross to $$i" ; \ | |
f74859e4 | 508 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native-config $(cyglog) && \ |
543cf4ac DZ |
509 | echo " completed successfully" ; \ |
510 | fi ; \ | |
511 | done | |
512 | ||
513 | ||
514 | build: | |
515 | @for i in $(TARGETS) ; do \ | |
516 | if [ "$$i" = "native" ] ; then \ | |
517 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-build $(log) && \ | |
518 | echo " completed successfully" ; \ | |
519 | else \ | |
520 | echo "building $(canonhost) cross to $$i" ; \ | |
c262769a | 521 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-native $(natlog) && \ |
543cf4ac DZ |
522 | echo " completed successfully" ; \ |
523 | fi ; \ | |
524 | done | |
525 | ||
526 | ||
527 | 3build: | |
528 | @for i in $(TARGETS) ; do \ | |
529 | if [ "$$i" = "native" ] ; then \ | |
530 | echo "building 3stage for $(canonhost)" ; \ | |
531 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) all $(log) && \ | |
532 | echo " completed successfully" ; \ | |
533 | else \ | |
534 | echo "building $(canonhost) cross to $$i" ; \ | |
f74859e4 | 535 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(cyglog) && \ |
543cf4ac DZ |
536 | echo " completed successfully" ; \ |
537 | fi ; \ | |
538 | done | |
539 | ||
87c6c079 DZ |
540 | build-all-latest: |
541 | @for i in $(TARGETS) ; do \ | |
542 | if [ "$$i" = "native" ] ; then \ | |
543 | echo "building 3stage for $(canonhost)" ; \ | |
544 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \ | |
545 | echo " completed successfully" ; \ | |
546 | else \ | |
547 | echo "building $(canonhost) cross to $$i" ; \ | |
548 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-latest $(cyglog) && \ | |
549 | echo " completed successfully" ; \ | |
550 | fi ; \ | |
551 | done | |
552 | ||
44c1515d DE |
553 | clean: |
554 | $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) clean $(log) | |
555 | ||
543cf4ac DZ |
556 | ### Local Variables: |
557 | ### fill-column: 131 | |
558 | ### End: |