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 tlog
= 1> $(canonhost
)-x-
$$i-build
-log
2>&1
29 canonhost
:= $(shell $(TREE
)/config.sub
$(host
))
31 # Convert config.guess results to a simpler form.
32 ifeq ($(canonhost
),sparc-sun-solaris2.1
)
33 canonhost
:= sparc-sun-solaris2
35 ifeq ($(canonhost
),mips-dec-ultrix4.2
)
36 canonhost
:= mips-dec-ultrix
38 ifeq ($(canonhost
),mips-sgi-irix4.0
.1)
39 canonhost
:= mips-sgi-irix4
41 ifeq ($(canonhost
),rs6000-ibm-aix3.2
)
42 canonhost
:= rs6000-ibm-aix
44 ifeq ($(canonhost
),i486-unknown-sco3.2v4.0
)
45 canonhost
:= i386-sco3.2v4
47 ifeq ($(canonhost
),i386-unknown-sco3.2v4.0
)
48 canonhost
:= i386-sco3.2v4
50 ifeq ($(canonhost
),i386-unknown-go32
)
51 canonhost
:= i386-go32
53 ifeq ($(canonhost
),i386-lynx-lynxos
)
54 canonhost
:= i386-lynxos
56 ifeq ($(canonhost
),m68k-lynx-lynxos
)
57 canonhost
:= m68k-lynxos
60 ifeq ($(canonhost
),sparc-sun-sunos4.1
.3)
64 i386-aout i386-go32 i386-coff \
65 i960-vxworks i960-intel-nindy \
67 m68k-aout m68k-vxworks m68k-coff \
70 sparc-aout sparc-vxworks sparclitefrwcompat-aout sparclite-aout \
76 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
79 m68k-aout m68k-vxworks m68k-coff i960
80 GCC
= gcc
-O
-msoft-float
85 ifeq ($(canonhost
),sparc-sun-solaris2
)
88 m68k-vxworks m68k-coff m68k-aout \
91 i960-vxworks i960-intel-nindy \
92 sparc-aout sparc-vxworks sparclite-aout
98 ifeq ($(canonhost
),mips-dec-ultrix
)
99 TARGETS
= $(NATIVE
) m68k-aout
104 ifeq ($(canonhost
),mips-sgi-irix4
)
105 TARGETS
= $(NATIVE
) sh-hms
106 CC
= cc -cckr
-Wf
,-XNg1500
-Wf
,-XNk1000
-Wf
,-XNh1500
110 ifeq ($(canonhost
),rs6000-ibm-aix
)
111 TARGETS
= $(NATIVE
) \
112 i960-vxworks i960-intel-nindy \
113 m68k-aout m68k-vxworks
117 ifeq ($(canonhost
),m68k-hp-hpux
)
119 TMPDIR
:= $(shell mkdir
$(canonhost
)-tmpdir
; cd
$(canonhost
)-tmpdir
; pwd
)
126 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
129 m68k-aout m68k-vxworks
131 # h8300-hms h8500-hms \
132 # i386-aout i386-go32 \
133 # i960-vxworks i960-intel-nindy \
135 # m68k-aout m68k-vxworks m68k-coff \
137 # sparc-aout sparclite-aout \
145 ifeq ($(canonhost
),i386-sco3.2v4
)
146 TARGETS
= $(NATIVE
) i386-aout
150 ifeq ($(canonhost
),i386-go32
)
155 m68k-aout m68k-coff \
159 GCC
= i386-go32-gcc
-O
162 MAKEINFOFLAGS
= --no-split
166 ifeq ($(canonhost
),i386-univel-sysv4
)
172 ifeq ($(canonhost
),i386-lynxos
)
178 ifeq ($(canonhost
),m68k-lynxos
)
189 "CXXFLAGS=$(CXXFLAGS)" \
190 "host=$(canonhost)" \
191 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
192 "RELEASE_TAG=$(RELEASE_TAG)"
195 @echo build started at
`date`
196 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
197 -rm -f
$(ROOTING
)/$(RELEASE_TAG
)
198 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
199 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1
> $(canonhost
)-native-log
2>&1
200 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do-latest
> $(canonhost
)-latest-log
2>&1
204 @echo build started at
`date`
205 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
206 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
207 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
208 @for i in
$(TARGETS
) ; do \
209 if
[ "$$i" = "native" ] ; then \
210 if
[ ! -f
$(canonhost
)-stamp-3stage-done
] ; then \
211 echo
"3staging $(canonhost) native" ; \
212 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
213 echo
" completed successfully" ; \
218 echo
"building $(canonhost) cross to $$i" ; \
219 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(tlog
) && \
220 echo
" completed successfully" ; \
226 @echo build started at
`date`
227 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
228 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
229 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
230 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
234 @echo build started at
`date`
235 @for i in
$(TARGETS
) ; do \
236 if
[ "$$i" = "native" ] ; then \
237 if
[ ! -f
$(canonhost
)-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" ; \
243 echo
"building $(canonhost) cross to $$i:" `date` ; \
244 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
245 echo
" completed successfully" ; \
251 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
252 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
253 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
254 @for i in
$(TARGETS
) ; do \
255 echo
"building $(canonhost) cross to $$i" ; \
256 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(tlog
) && \
257 echo
" completed successfully" ; \
261 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
262 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
263 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
264 @for i in
$(TARGETS
) ; do \
265 echo
"building $(canonhost) cross to $$i" ; \
266 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build
=$(build
) do-cygnus
$(tlog
) && \
267 echo
" completed successfully" ; \
271 @for i in
$(TARGETS
) ; do \
272 if
[ "$$i" = "native" ] ; then \
273 echo
"config stage1 for $(canonhost)" ; \
274 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
275 echo
" completed successfully" ; \
277 echo
"config $(canonhost) cross to $$i" ; \
278 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(tlog
) && \
279 echo
" completed successfully" ; \
285 @for i in
$(TARGETS
) ; do \
286 if
[ "$$i" = "native" ] ; then \
287 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
288 echo
" completed successfully" ; \
290 echo
"building $(canonhost) cross to $$i" ; \
291 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(tlog
) && \
292 echo
" completed successfully" ; \
298 @for i in
$(TARGETS
) ; do \
299 if
[ "$$i" = "native" ] ; then \
300 echo
"building 3stage for $(canonhost)" ; \
301 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
302 echo
" completed successfully" ; \
304 echo
"building $(canonhost) cross to $$i" ; \
305 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
306 echo
" completed successfully" ; \