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