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