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 \
60 sparc-aout sparc-vxworks sparclitefrwcompat-aout sparclite-aout \
66 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
69 m68k-aout m68k-vxworks m68k-coff i960
70 GCC
= gcc
-O
-msoft-float
75 ifeq ($(canonhost
),sparc-sun-solaris2
)
78 m68k-vxworks m68k-coff m68k-aout \
81 i960-vxworks i960-intel-nindy \
82 sparc-aout sparc-vxworks sparclite-aout
88 ifeq ($(canonhost
),mips-dec-ultrix
)
89 TARGETS
= $(NATIVE
) m68k-aout
94 ifeq ($(canonhost
),mips-sgi-irix4
)
96 CC
= cc -cckr
-Wf
,-XNg1500
-Wf
,-XNk1000
-Wf
,-XNh1500
100 ifeq ($(canonhost
),rs6000-ibm-aix
)
101 TARGETS
= $(NATIVE
) \
102 i960-vxworks i960-intel-nindy \
103 m68k-aout m68k-vxworks
107 ifeq ($(canonhost
),m68k-hp-hpux
)
109 TMPDIR
:= $(shell mkdir
$(canonhost
)-tmpdir
; cd
$(canonhost
)-tmpdir
; pwd
)
116 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
119 m68k-aout m68k-vxworks
121 # h8300-hms h8500-hms \
122 # i386-aout i386-go32 \
123 # i960-vxworks i960-intel-nindy \
125 # m68k-aout m68k-vxworks m68k-coff \
127 # sparc-aout sparclite-aout \
135 ifeq ($(canonhost
),i386-sco3.2v4
)
136 TARGETS
= $(NATIVE
) i386-aout
140 ifeq ($(canonhost
),i386-go32
)
145 m68k-aout m68k-coff \
149 GCC
= i386-go32-gcc
-O
152 MAKEINFOFLAGS
= --no-split
156 ifeq ($(canonhost
),i386-univel-sysv4
)
166 "CXXFLAGS=$(CXXFLAGS)" \
167 "host=$(canonhost)" \
168 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
169 "RELEASE_TAG=$(RELEASE_TAG)"
172 @echo build started at
`date`
173 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
174 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
175 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
176 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1
> $(canonhost
)-native-log
2>&1
177 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do-latest
> $(canonhost
)-latest-log
2>&1
181 @echo build started at
`date`
182 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
183 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
184 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
185 @for i in
$(TARGETS
) ; do \
186 if
[ "$$i" = "native" ] ; then \
187 if
[ ! -f
$(canonhost
)-stamp-3stage-done
] ; then \
188 echo
"3staging $(canonhost) native" ; \
189 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
190 echo
" completed successfully" ; \
195 echo
"building $(canonhost) cross to $$i" ; \
196 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(tlog
) && \
197 echo
" completed successfully" ; \
203 @echo build started at
`date`
204 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
205 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
206 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
207 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
211 @echo build started at
`date`
212 @for i in
$(TARGETS
) ; do \
213 if
[ "$$i" = "native" ] ; then \
214 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
215 echo
"3staging $(canonhost) native" ; \
216 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
217 echo
" completed successfully" ; \
220 echo
"building $(canonhost) cross to $$i:" `date` ; \
221 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
222 echo
" completed successfully" ; \
228 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
229 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
230 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
231 @for i in
$(TARGETS
) ; do \
232 echo
"building $(canonhost) cross to $$i" ; \
233 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(tlog
) && \
234 echo
" completed successfully" ; \
238 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
239 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
240 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
241 @for i in
$(TARGETS
) ; do \
242 echo
"building $(canonhost) cross to $$i" ; \
243 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build
=$(build
) do-cygnus
$(tlog
) && \
244 echo
" completed successfully" ; \
248 @for i in
$(TARGETS
) ; do \
249 if
[ "$$i" = "native" ] ; then \
250 echo
"config stage1 for $(canonhost)" ; \
251 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
252 echo
" completed successfully" ; \
254 echo
"config $(canonhost) cross to $$i" ; \
255 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(tlog
) && \
256 echo
" completed successfully" ; \
262 @for i in
$(TARGETS
) ; do \
263 if
[ "$$i" = "native" ] ; then \
264 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
265 echo
" completed successfully" ; \
267 echo
"building $(canonhost) cross to $$i" ; \
268 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(tlog
) && \
269 echo
" completed successfully" ; \
275 @for i in
$(TARGETS
) ; do \
276 if
[ "$$i" = "native" ] ; then \
277 echo
"building 3stage for $(canonhost)" ; \
278 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
279 echo
" completed successfully" ; \
281 echo
"building $(canonhost) cross to $$i" ; \
282 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
283 echo
" completed successfully" ; \