1 # Build all of the targets for any given host.....
3 # This file is going to be ugly. It will be VERY specific to the
4 # Cygnus environment and build-process.
9 include $(TREE
)/release-info
11 TEST_INSTALL_DISK
= /tug
13 INSTALLDIR
= $(TEST_INSTALL_DISK
)/$(TREE
)-test/$(RELEASE_TAG
)
16 host
:= $(shell $(TREE
)/config.guess
)
26 log
= 1>$(canonhost
)-build-log
2>&1
27 clog
= 1>$(canonhost
)-check-log
2>&1
28 cyglog
= 1> $(canonhost
)-x-
$$i-cygnus
-build
-log
2>&1
29 latestlog
= 1> $(canonhost
)-x-
$$i-latest
-build
-log
2>&1
30 natlog
= 1> $(canonhost
)-x-
$$i-native
-build
-log
2>&1
32 canonhost
:= $(shell $(TREE
)/config.sub
$(host
))
34 # Convert config.guess results to a simpler form.
35 ifeq ($(canonhost
),sparc-sun-solaris2.1
)
36 canonhost
:= sparc-sun-solaris2
38 ifeq ($(canonhost
),mips-dec-ultrix4.2
)
39 canonhost
:= mips-dec-ultrix
41 ifeq ($(canonhost
),mips-sgi-irix4.0
.1)
42 canonhost
:= mips-sgi-irix4
44 ifeq ($(canonhost
),rs6000-ibm-aix3.2
)
45 canonhost
:= rs6000-ibm-aix
47 ifeq ($(canonhost
),i486-unknown-sco3.2v4.0
)
48 canonhost
:= i386-sco3.2v4
50 ifeq ($(canonhost
),i386-unknown-sco3.2v4.0
)
51 canonhost
:= i386-sco3.2v4
53 ifeq ($(canonhost
),i386-unknown-sco3.2v4
)
54 canonhost
:= i386-sco3.2v4
56 ifeq ($(canonhost
),i386-unknown-go32
)
57 canonhost
:= i386-go32
59 ifeq ($(canonhost
),i386-unknown-sysv4.2
)
60 canonhost
:= i386-sysv4.2
62 ifeq ($(canonhost
),i386-lynx-lynxos
)
63 canonhost
:= i386-lynxos
65 ifeq ($(canonhost
),m68k-lynx-lynxos
)
66 canonhost
:= m68k-lynxos
69 ifeq ($(canonhost
),sparc-sun-sunos4.1
.3)
77 i960-vxworks i960-intel-nindy \
79 m68k-aout m68k-vxworks m68k-coff \
82 sparc-aout sparc-vxworks \
83 sparclite-aout sparclite-vxworks \
89 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
91 m68k-aout m68k-coff i960-intel-nindy
92 GCC
= gcc
-O
-msoft-float
97 ifeq ($(canonhost
),sparc-sun-solaris2
)
101 i960-vxworks i960-intel-nindy \
102 m68k-aout m68k-coff m68k-vxworks \
104 mips-idt-ecoff mipsel-idt-ecoff \
105 sparc-aout sparc-vxworks sparclite-aout
111 ifeq ($(canonhost
),mips-dec-ultrix
)
112 TARGETS
= $(NATIVE
) m68k-aout
117 ifeq ($(canonhost
),mips-sgi-irix4
)
118 TARGETS
= $(NATIVE
) \
119 mips-idt-ecoff sh-hms
120 CC
= cc -cckr
-Wf
,-XNg1500
-Wf
,-XNk1000
-Wf
,-XNh1500
124 ifeq ($(canonhost
),rs6000-ibm-aix
)
125 TARGETS
= $(NATIVE
) \
126 i960-vxworks i960-intel-nindy \
131 ifeq ($(canonhost
),m68k-hp-hpux
)
132 TARGETS
= $(NATIVE
) m68k-aout
133 TMPDIR
:= $(shell mkdir
$(canonhost
)-tmpdir
; cd
$(canonhost
)-tmpdir
; pwd
)
140 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
144 m68k-aout m68k-vxworks
145 # sh-hms # doesn't work
152 ifeq ($(canonhost
),i386-sco3.2v4
)
153 TARGETS
= $(NATIVE
) i386-aout
157 ifeq ($(canonhost
),i386-go32
)
162 m68k-aout m68k-coff \
167 GCC
= i386-go32-gcc
-O
170 MAKEINFOFLAGS
= --no-split
174 ifeq ($(canonhost
),i386-sysv4.2
)
180 ifeq ($(canonhost
),i386-lynxos
)
187 ifeq ($(canonhost
),m68k-lynxos
)
199 "CXXFLAGS=$(CXXFLAGS)" \
200 "host=$(canonhost)" \
201 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
202 "RELEASE_TAG=$(RELEASE_TAG)" \
206 @echo build started at
`date`
207 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
208 -rm -f
$(ROOTING
)/$(RELEASE_TAG
)
209 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
210 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1
> $(canonhost
)-emacs-native-log
2>&1
211 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do-latest
> $(canonhost
)-emacs-latest-log
2>&1
215 @echo build started at
`date`
216 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
217 -rm -f
$(ROOTING
)/$(RELEASE_TAG
) && ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
218 @for i in
$(TARGETS
) ; do \
219 if
[ "$$i" = "native" ] ; then \
220 if
[ ! -f
$(canonhost
)-stamp-3stage-done
] ; then \
221 echo
"3staging $(canonhost) native" ; \
222 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
223 echo
" completed successfully" ; \
228 echo
"building $(canonhost) cross to $$i" ; \
229 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(cyglog
) && \
230 echo
" completed successfully" ; \
233 @if
[ ! -f
$(canonhost
)-stamp-3stage-checked
] ; then \
234 echo checking
$(canonhost
) native
; \
235 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-check-3stage
$(clog
) ; \
236 touch
$(canonhost
)-stamp-3stage-checked
; \
243 @echo build started at
`date`
244 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
245 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
246 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
247 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
251 @echo build started at
`date`
252 @for i in
$(TARGETS
) ; do \
253 if
[ "$$i" = "native" ] ; then \
254 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
255 echo
"3staging $(canonhost) native" ; \
256 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
257 echo
" completed successfully" ; \
260 echo
"building $(canonhost) cross to $$i:" `date` ; \
261 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(cyglog
) && \
262 echo
" completed successfully" ; \
268 @echo build started at
`date`
269 @for i in
$(TARGETS
) ; do \
270 if
[ "$$i" != "native" ] ; then \
271 echo
"building $(canonhost) cross to $$i:" `date` ; \
272 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-latest
$(latestlog
) && \
273 echo
" completed successfully" ; \
279 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
280 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
281 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
282 @for i in
$(TARGETS
) ; do \
283 echo
"building $(canonhost) cross to $$i" ; \
284 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(natlog
) && \
285 echo
" completed successfully" ; \
289 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
290 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
291 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
292 @for i in
$(TARGETS
) ; do \
293 echo
"building $(canonhost) cross to $$i" ; \
294 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build
=$(build
) do-cygnus
$(cyglog
) && \
295 echo
" completed successfully" ; \
299 @for i in
$(TARGETS
) ; do \
300 if
[ "$$i" = "native" ] ; then \
301 echo
"config stage1 for $(canonhost)" ; \
302 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
303 echo
" completed successfully" ; \
305 echo
"config $(canonhost) cross to $$i" ; \
306 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(cyglog
) && \
307 echo
" completed successfully" ; \
313 @for i in
$(TARGETS
) ; do \
314 if
[ "$$i" = "native" ] ; then \
315 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
316 echo
" completed successfully" ; \
318 echo
"building $(canonhost) cross to $$i" ; \
319 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(natlog
) && \
320 echo
" completed successfully" ; \
326 @for i in
$(TARGETS
) ; do \
327 if
[ "$$i" = "native" ] ; then \
328 echo
"building 3stage for $(canonhost)" ; \
329 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
330 echo
" completed successfully" ; \
332 echo
"building $(canonhost) cross to $$i" ; \
333 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(cyglog
) && \
334 echo
" completed successfully" ; \
339 @for i in
$(TARGETS
) ; do \
340 if
[ "$$i" = "native" ] ; then \
341 echo
"building 3stage for $(canonhost)" ; \
342 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
343 echo
" completed successfully" ; \
345 echo
"building $(canonhost) cross to $$i" ; \
346 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-latest
$(cyglog
) && \
347 echo
" completed successfully" ; \