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
= /taxes
13 INSTALLDIR
= $(TEST_INSTALL_DISK
)/$(TREE
)-test/$(RELEASE_TAG
)
16 host
:= $(shell $(TREE
)/config.guess
)
26 log
= 1>$(canonhost
)-build-log
2>&1
27 cyglog
= 1> $(canonhost
)-x-
$$i-cygnus
-build
-log
2>&1
28 natlog
= 1> $(canonhost
)-x-
$$i-native
-build
-log
2>&1
30 canonhost
:= $(shell $(TREE
)/config.sub
$(host
))
32 # Convert config.guess results to a simpler form.
33 ifeq ($(canonhost
),sparc-sun-solaris2.1
)
34 canonhost
:= sparc-sun-solaris2
36 ifeq ($(canonhost
),mips-dec-ultrix4.2
)
37 canonhost
:= mips-dec-ultrix
39 ifeq ($(canonhost
),mips-sgi-irix4.0
.1)
40 canonhost
:= mips-sgi-irix4
42 ifeq ($(canonhost
),rs6000-ibm-aix3.2
)
43 canonhost
:= rs6000-ibm-aix
45 ifeq ($(canonhost
),i486-unknown-sco3.2v4.0
)
46 canonhost
:= i386-sco3.2v4
48 ifeq ($(canonhost
),i386-unknown-sco3.2v4.0
)
49 canonhost
:= i386-sco3.2v4
51 ifeq ($(canonhost
),i386-unknown-sco3.2v4
)
52 canonhost
:= i386-sco3.2v4
54 ifeq ($(canonhost
),i386-unknown-go32
)
55 canonhost
:= i386-go32
57 ifeq ($(canonhost
),i386-lynx-lynxos
)
58 canonhost
:= i386-lynxos
60 ifeq ($(canonhost
),m68k-lynx-lynxos
)
61 canonhost
:= m68k-lynxos
64 ifeq ($(canonhost
),sparc-sun-sunos4.1
.3)
70 i960-intel-nindy i960-vxworks \
72 m68k-aout m68k-vxworks m68k-coff \
75 sparc-aout sparc-vxworks sparclite-aout \
81 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
84 m68k-aout m68k-vxworks m68k-coff
85 GCC
= gcc
-O
-msoft-float
90 ifeq ($(canonhost
),sparc-sun-solaris2
)
93 i960-vxworks i960-intel-nindy \
94 m68k-aout m68k-coff m68k-vxworks \
96 sparc-aout sparc-vxworks sparclite-aout \
105 ifeq ($(canonhost
),mips-dec-ultrix
)
106 TARGETS
= $(NATIVE
) m68k-aout
111 ifeq ($(canonhost
),mips-sgi-irix4
)
112 TARGETS
= $(NATIVE
) sh-hms
113 CC
= cc -cckr
-Wf
,-XNg1500
-Wf
,-XNk1000
-Wf
,-XNh1500
117 ifeq ($(canonhost
),rs6000-ibm-aix
)
118 TARGETS
= $(NATIVE
) \
119 i960-vxworks i960-intel-nindy \
120 m68k-aout m68k-vxworks \
122 h8300-hms h8500-hms \
123 i386-aout i386-coff \
128 sparc-aout sparc-vxworks sparclite-aout \
133 ifeq ($(canonhost
),m68k-hp-hpux
)
134 TARGETS
= $(NATIVE
) m68k-aout
135 TMPDIR
:= $(shell mkdir
$(canonhost
)-tmpdir
; cd
$(canonhost
)-tmpdir
; pwd
)
142 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
145 m68k-aout m68k-vxworks \
147 h8300-hms h8500-hms \
148 i386-aout i386-coff \
153 sparc-aout sparc-vxworks sparclite-aout \
155 # sh-hms # doesn't work
162 ifeq ($(canonhost
),i386-sco3.2v4
)
163 TARGETS
= $(NATIVE
) i386-aout
167 ifeq ($(canonhost
),i386-go32
)
170 h8300-hms h8500-hms \
172 m68k-aout m68k-coff \
177 GCC
= i386-go32-gcc
-O
180 MAKEINFOFLAGS
= --no-split
184 ifeq ($(canonhost
),i386-univel-sysv4.2
)
185 TARGETS
= $(NATIVE
) \
187 h8300-hms h8500-hms \
188 i386-aout i386-coff \
189 i960-intel-nindy i960-vxworks \
191 m68k-aout m68k-vxworks m68k-coff \
194 sparc-aout sparc-vxworks sparclite-aout \
200 ifeq ($(canonhost
),i386-lynxos
)
206 ifeq ($(canonhost
),m68k-lynxos
)
217 "CXXFLAGS=$(CXXFLAGS)" \
218 "host=$(canonhost)" \
219 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
220 "RELEASE_TAG=$(RELEASE_TAG)"
223 @echo build started at
`date`
224 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
225 -rm -f
$(ROOTING
)/$(RELEASE_TAG
)
226 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
227 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1
> $(canonhost
)-emacs-native-log
2>&1
228 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do-latest
> $(canonhost
)-emacs-latest-log
2>&1
232 @echo build started at
`date`
233 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
234 -rm -f
$(ROOTING
)/$(RELEASE_TAG
) && ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
235 @for i in
$(TARGETS
) ; do \
236 if
[ "$$i" = "native" ] ; then \
237 if
[ ! -f
$(canonhost
)-stamp-3stage-done
] ; then \
238 echo
"3staging $(canonhost) native" ; \
239 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
240 echo
" completed successfully" ; \
245 echo
"building $(canonhost) cross to $$i" ; \
246 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(cyglog
) && \
247 echo
" completed successfully" ; \
253 @echo build started at
`date`
254 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
255 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
256 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
257 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
261 @echo build started at
`date`
262 @for i in
$(TARGETS
) ; do \
263 if
[ "$$i" = "native" ] ; then \
264 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
265 echo
"3staging $(canonhost) native" ; \
266 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
267 echo
" completed successfully" ; \
270 echo
"building $(canonhost) cross to $$i:" `date` ; \
271 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(cyglog
) && \
272 echo
" completed successfully" ; \
278 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
279 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
280 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
281 @for i in
$(TARGETS
) ; do \
282 echo
"building $(canonhost) cross to $$i" ; \
283 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(natlog
) && \
284 echo
" completed successfully" ; \
288 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
289 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
290 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
291 @for i in
$(TARGETS
) ; do \
292 echo
"building $(canonhost) cross to $$i" ; \
293 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build
=$(build
) do-cygnus
$(cyglog
) && \
294 echo
" completed successfully" ; \
298 @for i in
$(TARGETS
) ; do \
299 if
[ "$$i" = "native" ] ; then \
300 echo
"config stage1 for $(canonhost)" ; \
301 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
302 echo
" completed successfully" ; \
304 echo
"config $(canonhost) cross to $$i" ; \
305 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(cyglog
) && \
306 echo
" completed successfully" ; \
312 @for i in
$(TARGETS
) ; do \
313 if
[ "$$i" = "native" ] ; then \
314 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
315 echo
" completed successfully" ; \
317 echo
"building $(canonhost) cross to $$i" ; \
318 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(natlog
) && \
319 echo
" completed successfully" ; \
325 @for i in
$(TARGETS
) ; do \
326 if
[ "$$i" = "native" ] ; then \
327 echo
"building 3stage for $(canonhost)" ; \
328 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
329 echo
" completed successfully" ; \
331 echo
"building $(canonhost) cross to $$i" ; \
332 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(cyglog
) && \
333 echo
" completed successfully" ; \