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-go32
)
48 canonhost
:= i386-go32
51 ifeq ($(canonhost
),sparc-sun-sunos4.1
.3)
55 i386-aout i386-go32 i386-coff \
56 i960-vxworks i960-intel-nindy \
58 m68k-aout m68k-vxworks m68k-coff \
61 sparc-aout sparc-vxworks sparclitefrwcompat-aout sparclite-aout \
67 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
70 m68k-aout m68k-vxworks m68k-coff i960
71 GCC
= gcc
-O
-msoft-float
76 ifeq ($(canonhost
),sparc-sun-solaris2
)
79 m68k-vxworks m68k-coff m68k-aout \
82 i960-vxworks i960-intel-nindy \
83 sparc-aout sparc-vxworks sparclite-aout
89 ifeq ($(canonhost
),mips-dec-ultrix
)
90 TARGETS
= $(NATIVE
) m68k-aout
95 ifeq ($(canonhost
),mips-sgi-irix4
)
97 CC
= cc -cckr
-Wf
,-XNg1500
-Wf
,-XNk1000
-Wf
,-XNh1500
101 ifeq ($(canonhost
),rs6000-ibm-aix
)
102 TARGETS
= $(NATIVE
) \
103 i960-vxworks i960-intel-nindy \
104 m68k-aout m68k-vxworks
108 ifeq ($(canonhost
),m68k-hp-hpux
)
110 TMPDIR
:= $(shell mkdir
$(canonhost
)-tmpdir
; cd
$(canonhost
)-tmpdir
; pwd
)
117 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
120 m68k-aout m68k-vxworks
122 # h8300-hms h8500-hms \
123 # i386-aout i386-go32 \
124 # i960-vxworks i960-intel-nindy \
126 # m68k-aout m68k-vxworks m68k-coff \
128 # sparc-aout sparclite-aout \
136 ifeq ($(canonhost
),i386-sco3.2v4
)
137 TARGETS
= $(NATIVE
) i386-aout
141 ifeq ($(canonhost
),i386-go32
)
146 m68k-aout m68k-coff \
150 GCC
= i386-go32-gcc
-O
153 MAKEINFOFLAGS
= --no-split
157 ifeq ($(canonhost
),i386-univel-sysv4
)
167 "CXXFLAGS=$(CXXFLAGS)" \
168 "host=$(canonhost)" \
169 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
170 "RELEASE_TAG=$(RELEASE_TAG)"
173 @echo build started at
`date`
174 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
175 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
176 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
177 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1
> $(canonhost
)-native-log
2>&1
178 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do-latest
> $(canonhost
)-latest-log
2>&1
182 @echo build started at
`date`
183 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
184 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
185 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
186 @for i in
$(TARGETS
) ; do \
187 if
[ "$$i" = "native" ] ; then \
188 if
[ ! -f
$(canonhost
)-stamp-3stage-done
] ; then \
189 echo
"3staging $(canonhost) native" ; \
190 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
191 echo
" completed successfully" ; \
196 echo
"building $(canonhost) cross to $$i" ; \
197 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(tlog
) && \
198 echo
" completed successfully" ; \
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 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
212 @echo build started at
`date`
213 @for i in
$(TARGETS
) ; do \
214 if
[ "$$i" = "native" ] ; then \
215 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
216 echo
"3staging $(canonhost) native" ; \
217 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
218 echo
" completed successfully" ; \
221 echo
"building $(canonhost) cross to $$i:" `date` ; \
222 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
223 echo
" completed successfully" ; \
229 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
230 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
231 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
232 @for i in
$(TARGETS
) ; do \
233 echo
"building $(canonhost) cross to $$i" ; \
234 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(tlog
) && \
235 echo
" completed successfully" ; \
239 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
240 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
241 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
242 @for i in
$(TARGETS
) ; do \
243 echo
"building $(canonhost) cross to $$i" ; \
244 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build
=$(build
) do-cygnus
$(tlog
) && \
245 echo
" completed successfully" ; \
249 @for i in
$(TARGETS
) ; do \
250 if
[ "$$i" = "native" ] ; then \
251 echo
"config stage1 for $(canonhost)" ; \
252 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
253 echo
" completed successfully" ; \
255 echo
"config $(canonhost) cross to $$i" ; \
256 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(tlog
) && \
257 echo
" completed successfully" ; \
263 @for i in
$(TARGETS
) ; do \
264 if
[ "$$i" = "native" ] ; then \
265 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
266 echo
" completed successfully" ; \
268 echo
"building $(canonhost) cross to $$i" ; \
269 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(tlog
) && \
270 echo
" completed successfully" ; \
276 @for i in
$(TARGETS
) ; do \
277 if
[ "$$i" = "native" ] ; then \
278 echo
"building 3stage for $(canonhost)" ; \
279 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
280 echo
" completed successfully" ; \
282 echo
"building $(canonhost) cross to $$i" ; \
283 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
284 echo
" completed successfully" ; \