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
54 ifeq ($(canonhost
),sparc-sun-sunos4.1
.3)
58 i386-aout i386-go32 i386-coff \
59 i960-vxworks i960-intel-nindy \
61 m68k-aout m68k-vxworks m68k-coff \
64 sparc-aout sparc-vxworks sparclitefrwcompat-aout sparclite-aout \
70 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
73 m68k-aout m68k-vxworks m68k-coff i960
74 GCC
= gcc
-O
-msoft-float
79 ifeq ($(canonhost
),sparc-sun-solaris2
)
82 m68k-vxworks m68k-coff m68k-aout \
85 i960-vxworks i960-intel-nindy \
86 sparc-aout sparc-vxworks sparclite-aout
92 ifeq ($(canonhost
),mips-dec-ultrix
)
93 TARGETS
= $(NATIVE
) m68k-aout
98 ifeq ($(canonhost
),mips-sgi-irix4
)
100 CC
= cc -cckr
-Wf
,-XNg1500
-Wf
,-XNk1000
-Wf
,-XNh1500
104 ifeq ($(canonhost
),rs6000-ibm-aix
)
105 TARGETS
= $(NATIVE
) \
106 i960-vxworks i960-intel-nindy \
107 m68k-aout m68k-vxworks
111 ifeq ($(canonhost
),m68k-hp-hpux
)
113 TMPDIR
:= $(shell mkdir
$(canonhost
)-tmpdir
; cd
$(canonhost
)-tmpdir
; pwd
)
120 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
123 m68k-aout m68k-vxworks
125 # h8300-hms h8500-hms \
126 # i386-aout i386-go32 \
127 # i960-vxworks i960-intel-nindy \
129 # m68k-aout m68k-vxworks m68k-coff \
131 # sparc-aout sparclite-aout \
139 ifeq ($(canonhost
),i386-sco3.2v4
)
140 TARGETS
= $(NATIVE
) i386-aout
144 ifeq ($(canonhost
),i386-go32
)
149 m68k-aout m68k-coff \
153 GCC
= i386-go32-gcc
-O
156 MAKEINFOFLAGS
= --no-split
160 ifeq ($(canonhost
),i386-univel-sysv4
)
170 "CXXFLAGS=$(CXXFLAGS)" \
171 "host=$(canonhost)" \
172 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
173 "RELEASE_TAG=$(RELEASE_TAG)"
176 @echo build started at
`date`
177 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
178 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
179 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
180 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1
> $(canonhost
)-native-log
2>&1
181 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do-latest
> $(canonhost
)-latest-log
2>&1
185 @echo build started at
`date`
186 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
187 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
188 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
189 @for i in
$(TARGETS
) ; do \
190 if
[ "$$i" = "native" ] ; then \
191 if
[ ! -f
$(canonhost
)-stamp-3stage-done
] ; then \
192 echo
"3staging $(canonhost) native" ; \
193 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
194 echo
" completed successfully" ; \
199 echo
"building $(canonhost) cross to $$i" ; \
200 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(tlog
) && \
201 echo
" completed successfully" ; \
207 @echo build started at
`date`
208 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
209 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
210 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
211 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
215 @echo build started at
`date`
216 @for i in
$(TARGETS
) ; do \
217 if
[ "$$i" = "native" ] ; then \
218 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
219 echo
"3staging $(canonhost) native" ; \
220 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
221 echo
" completed successfully" ; \
224 echo
"building $(canonhost) cross to $$i:" `date` ; \
225 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
226 echo
" completed successfully" ; \
232 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
233 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
234 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
235 @for i in
$(TARGETS
) ; do \
236 echo
"building $(canonhost) cross to $$i" ; \
237 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(tlog
) && \
238 echo
" completed successfully" ; \
242 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
243 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
244 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
245 @for i in
$(TARGETS
) ; do \
246 echo
"building $(canonhost) cross to $$i" ; \
247 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build
=$(build
) do-cygnus
$(tlog
) && \
248 echo
" completed successfully" ; \
252 @for i in
$(TARGETS
) ; do \
253 if
[ "$$i" = "native" ] ; then \
254 echo
"config stage1 for $(canonhost)" ; \
255 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
256 echo
" completed successfully" ; \
258 echo
"config $(canonhost) cross to $$i" ; \
259 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(tlog
) && \
260 echo
" completed successfully" ; \
266 @for i in
$(TARGETS
) ; do \
267 if
[ "$$i" = "native" ] ; then \
268 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
269 echo
" completed successfully" ; \
271 echo
"building $(canonhost) cross to $$i" ; \
272 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(tlog
) && \
273 echo
" completed successfully" ; \
279 @for i in
$(TARGETS
) ; do \
280 if
[ "$$i" = "native" ] ; then \
281 echo
"building 3stage for $(canonhost)" ; \
282 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
283 echo
" completed successfully" ; \
285 echo
"building $(canonhost) cross to $$i" ; \
286 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
287 echo
" completed successfully" ; \