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
= /cirdan
/abc
13 INSTALLDIR
= $(TEST_INSTALL_DISK
)/$(TREE
)-test/$(RELEASE_TAG
)
16 host
:= $(shell $(TREE
)/config.guess
)
25 log
= 1>$(canonhost
)-build-log
2>&1
26 tlog
= 1> $(canonhost
)-x-
$$i-build
-log
2>&1
28 canonhost
:= $(shell $(TREE
)/config.sub
$(host
))
30 # Convert config.guess results to a simpler form.
31 ifeq ($(canonhost
),sparc-sun-solaris2.1
)
32 canonhost
:= sparc-sun-solaris2
34 ifeq ($(canonhost
),mips-dec-ultrix4.2
)
35 canonhost
:= mips-dec-ultrix
37 ifeq ($(canonhost
),mips-sgi-irix4.0
.1)
38 canonhost
:= mips-sgi-irix4
40 ifeq ($(canonhost
),rs6000-ibm-aix3.2
)
41 canonhost
:= rs6000-ibm-aix
43 ifeq ($(canonhost
),i486-unknown-sco3.2v4.0
)
44 canonhost
:= i386-sco3.2v4
46 ifeq ($(canonhost
),i386-unknown-go32
)
47 canonhost
:= i386-go32
50 ifeq ($(canonhost
),sparc-sun-sunos4.1
.1)
51 TARGETS
= $(NATIVE
) i386-go32 m68k-aout m68k-vxworks \
52 i960-intel-nindy i386-aout a29k-amd-udi \
53 sparc-vxworks m68k-coff i960-vxworks sparc-aout \
54 sparclite-aout sparclitefrwcompat-aout h8300-hms \
55 z8k-sim mips-idt-ecoff
59 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
60 TARGETS
= $(NATIVE
) m68k-aout m68k-vxworks m68k-coff
61 GCC
= gcc
-O
-msoft-float
66 ifeq ($(canonhost
),sparc-sun-solaris2
)
67 TARGETS
= $(NATIVE
) m68k-vxworks m68k-aout sparc-aout mips-idt-ecoff
72 ifeq ($(canonhost
),mips-dec-ultrix
)
73 TARGETS
= $(NATIVE
) m68k-aout
74 # TARGETS = $(NATIVE) m68k-vxworks m68k-aout i960-vxworks \
75 # sparc-vxworks m68k-coff i386-aout sparc-aout i960-intel-nindy
80 ifeq ($(canonhost
),mips-sgi-irix4
)
81 TARGETS
= $(NATIVE
) m68k-vxworks
82 CC
= cc -cckr
-Wf
,-XNg1500
-Wf
,-XNk1000
-Wf
,-XNh1500
86 ifeq ($(canonhost
),rs6000-ibm-aix
)
87 TARGETS
= $(NATIVE
) m68k-aout m68k-vxworks i960-vxworks
91 ifeq ($(canonhost
),m68k-hp-hpux
)
92 TARGETS
= $(NATIVE
) m68k-vxworks
93 TMPDIR
:= $(shell mkdir
$(canonhost
)-tmpdir
; cd
$(canonhost
)-tmpdir
; pwd
)
99 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
100 TARGETS
= i960-vxworks m68k-aout m68k-vxworks m68k-hp-hpux
101 #TARGETS = m68k-aout m68k-coff m68k-vxworks i960-vxworks a29k-amd-udi
102 #TARGETS = m68k-aout i386-aout a29k-amd-udi \
103 # i960-vxworks m68k-coff m68k-vxworks \
104 # sparc-aout sparc-vxworks \
105 # sparclite-aout sparclitefrwcompat-aout
110 ifeq ($(canonhost
),i386-sco3.2v4
)
111 TARGETS
= $(NATIVE
) i386-aout
115 ifeq ($(canonhost
),i386-go32
)
116 TARGETS
= m68k-aout a29k-amd-udi m68k-coff i386-aout sparclite-aout \
117 h8300-sim mips-idt-ecoff
119 build
:= $(shell $(TREE
)/config.guess
)
122 GCC
= i386-go32-gcc
-O
130 "CXXFLAGS=$(CXXFLAGS)" \
131 "host=$(canonhost)" \
132 "RELEASE_TAG=$(RELEASE_TAG)"
135 @echo build started at
`date`
136 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
137 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
138 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
139 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1
> $(canonhost
)-native-log
2>&1
140 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do-latest
> $(canonhost
)-latest-log
2>&1
144 @echo build started at
`date`
145 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
146 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
147 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
148 @for i in
$(TARGETS
) ; do \
149 if
[ "$$i" = "native" ] ; then \
150 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
151 echo
"3staging $(canonhost) native" ; \
152 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
153 echo
" completed successfully" ; \
156 echo
"building $(canonhost) cross to $$i" ; \
157 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(tlog
) && \
158 echo
" completed successfully" ; \
164 @echo build started at
`date`
165 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
166 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
167 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
168 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
172 @echo build started at
`date`
173 @for i in
$(TARGETS
) ; do \
174 if
[ "$$i" = "native" ] ; then \
175 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
176 echo
"3staging $(canonhost) native" ; \
177 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
178 echo
" completed successfully" ; \
181 echo
"building $(canonhost) cross to $$i:" `date` ; \
182 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
183 echo
" completed successfully" ; \
189 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
190 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
191 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
192 @for i in
$(TARGETS
) ; do \
193 echo
"building $(canonhost) cross to $$i" ; \
194 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(tlog
) && \
195 echo
" completed successfully" ; \
199 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
200 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
201 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
202 @for i in
$(TARGETS
) ; do \
203 echo
"building $(canonhost) cross to $$i" ; \
204 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build
=$(build
) do-cygnus
$(tlog
) && \
205 echo
" completed successfully" ; \
209 @for i in
$(TARGETS
) ; do \
210 if
[ "$$i" = "native" ] ; then \
211 echo
"config stage1 for $(canonhost)" ; \
212 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
213 echo
" completed successfully" ; \
215 echo
"config $(canonhost) cross to $$i" ; \
216 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(tlog
) && \
217 echo
" completed successfully" ; \
223 @for i in
$(TARGETS
) ; do \
224 if
[ "$$i" = "native" ] ; then \
225 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
226 echo
" completed successfully" ; \
228 echo
"building $(canonhost) cross to $$i" ; \
229 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(tlog
) && \
230 echo
" completed successfully" ; \
236 @for i in
$(TARGETS
) ; do \
237 if
[ "$$i" = "native" ] ; then \
238 echo
"building 3stage for $(canonhost)" ; \
239 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
240 echo
" completed successfully" ; \
242 echo
"building $(canonhost) cross to $$i" ; \
243 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
244 echo
" completed successfully" ; \