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
= /big
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-go32
)
52 canonhost
:= i386-go32
54 ifeq ($(canonhost
),i386-lynx-lynxos
)
55 canonhost
:= i386-lynxos
57 ifeq ($(canonhost
),m68k-lynx-lynxos
)
58 canonhost
:= m68k-lynxos
61 ifeq ($(canonhost
),sparc-sun-sunos4.1
.3)
65 i386-aout i386-go32 i386-coff \
66 i960-intel-nindy i960-vxworks \
68 m68k-aout m68k-vxworks m68k-coff \
71 sparc-aout sparc-vxworks sparclite-aout \
77 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
80 m68k-aout m68k-vxworks m68k-coff
81 GCC
= gcc
-O
-msoft-float
86 ifeq ($(canonhost
),sparc-sun-solaris2
)
90 i960-vxworks i960-intel-nindy \
91 m68k-aout m68k-coff m68k-vxworks \
93 sparc-aout sparc-vxworks sparclite-aout
99 ifeq ($(canonhost
),mips-dec-ultrix
)
100 TARGETS
= $(NATIVE
) m68k-aout
105 ifeq ($(canonhost
),mips-sgi-irix4
)
106 TARGETS
= $(NATIVE
) sh-hms
107 CC
= cc -cckr
-Wf
,-XNg1500
-Wf
,-XNk1000
-Wf
,-XNh1500
111 ifeq ($(canonhost
),rs6000-ibm-aix
)
112 TARGETS
= $(NATIVE
) \
113 i960-vxworks i960-intel-nindy \
114 m68k-aout m68k-vxworks
118 ifeq ($(canonhost
),m68k-hp-hpux
)
119 TARGETS
= $(NATIVE
) m68k-aout
120 TMPDIR
:= $(shell mkdir
$(canonhost
)-tmpdir
; cd
$(canonhost
)-tmpdir
; pwd
)
127 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
130 m68k-aout m68k-vxworks
132 # h8300-hms h8500-hms \
133 # i386-aout i386-go32 \
134 # i960-vxworks i960-intel-nindy \
136 # m68k-aout m68k-vxworks m68k-coff \
138 # sparc-aout sparclite-aout \
146 ifeq ($(canonhost
),i386-sco3.2v4
)
147 TARGETS
= $(NATIVE
) i386-aout
151 ifeq ($(canonhost
),i386-go32
)
154 h8300-hms h8500-hms \
156 m68k-aout m68k-coff \
161 GCC
= i386-go32-gcc
-O
164 MAKEINFOFLAGS
= --no-split
168 ifeq ($(canonhost
),i386-univel-sysv4.2
)
174 ifeq ($(canonhost
),i386-lynxos
)
180 ifeq ($(canonhost
),m68k-lynxos
)
191 "CXXFLAGS=$(CXXFLAGS)" \
192 "host=$(canonhost)" \
193 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
194 "RELEASE_TAG=$(RELEASE_TAG)"
197 @echo build started at
`date`
198 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
199 -rm -f
$(ROOTING
)/$(RELEASE_TAG
)
200 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
201 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1
> $(canonhost
)-native-log
2>&1
202 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do-latest
> $(canonhost
)-latest-log
2>&1
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 @for i in
$(TARGETS
) ; do \
211 if
[ "$$i" = "native" ] ; then \
212 if
[ ! -f
$(canonhost
)-stamp-3stage-done
] ; then \
213 echo
"3staging $(canonhost) native" ; \
214 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
215 echo
" completed successfully" ; \
220 echo
"building $(canonhost) cross to $$i" ; \
221 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(cyglog
) && \
222 echo
" completed successfully" ; \
228 @echo build started at
`date`
229 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
230 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
231 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
232 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
236 @echo build started at
`date`
237 @for i in
$(TARGETS
) ; do \
238 if
[ "$$i" = "native" ] ; then \
239 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
240 echo
"3staging $(canonhost) native" ; \
241 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
242 echo
" completed successfully" ; \
245 echo
"building $(canonhost) cross to $$i:" `date` ; \
246 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(cyglog
) && \
247 echo
" completed successfully" ; \
253 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
254 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
255 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
256 @for i in
$(TARGETS
) ; do \
257 echo
"building $(canonhost) cross to $$i" ; \
258 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(natlog
) && \
259 echo
" completed successfully" ; \
263 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
264 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
265 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
266 @for i in
$(TARGETS
) ; do \
267 echo
"building $(canonhost) cross to $$i" ; \
268 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build
=$(build
) do-cygnus
$(cyglog
) && \
269 echo
" completed successfully" ; \
273 @for i in
$(TARGETS
) ; do \
274 if
[ "$$i" = "native" ] ; then \
275 echo
"config stage1 for $(canonhost)" ; \
276 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
277 echo
" completed successfully" ; \
279 echo
"config $(canonhost) cross to $$i" ; \
280 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(cyglog
) && \
281 echo
" completed successfully" ; \
287 @for i in
$(TARGETS
) ; do \
288 if
[ "$$i" = "native" ] ; then \
289 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
290 echo
" completed successfully" ; \
292 echo
"building $(canonhost) cross to $$i" ; \
293 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(cyglog
) && \
294 echo
" completed successfully" ; \
300 @for i in
$(TARGETS
) ; do \
301 if
[ "$$i" = "native" ] ; then \
302 echo
"building 3stage for $(canonhost)" ; \
303 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
304 echo
" completed successfully" ; \
306 echo
"building $(canonhost) cross to $$i" ; \
307 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(cyglog
) && \
308 echo
" completed successfully" ; \