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
)-stamp-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" ; \
158 echo
"building $(canonhost) cross to $$i" ; \
159 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(tlog
) && \
160 echo
" completed successfully" ; \
166 @echo build started at
`date`
167 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
168 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
169 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
170 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
174 @echo build started at
`date`
175 @for i in
$(TARGETS
) ; do \
176 if
[ "$$i" = "native" ] ; then \
177 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
178 echo
"3staging $(canonhost) native" ; \
179 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
180 echo
" completed successfully" ; \
183 echo
"building $(canonhost) cross to $$i:" `date` ; \
184 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
185 echo
" completed successfully" ; \
191 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
192 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
193 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
194 @for i in
$(TARGETS
) ; do \
195 echo
"building $(canonhost) cross to $$i" ; \
196 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(tlog
) && \
197 echo
" completed successfully" ; \
201 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
202 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
203 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
204 @for i in
$(TARGETS
) ; do \
205 echo
"building $(canonhost) cross to $$i" ; \
206 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build
=$(build
) do-cygnus
$(tlog
) && \
207 echo
" completed successfully" ; \
211 @for i in
$(TARGETS
) ; do \
212 if
[ "$$i" = "native" ] ; then \
213 echo
"config stage1 for $(canonhost)" ; \
214 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
215 echo
" completed successfully" ; \
217 echo
"config $(canonhost) cross to $$i" ; \
218 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(tlog
) && \
219 echo
" completed successfully" ; \
225 @for i in
$(TARGETS
) ; do \
226 if
[ "$$i" = "native" ] ; then \
227 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
228 echo
" completed successfully" ; \
230 echo
"building $(canonhost) cross to $$i" ; \
231 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(tlog
) && \
232 echo
" completed successfully" ; \
238 @for i in
$(TARGETS
) ; do \
239 if
[ "$$i" = "native" ] ; then \
240 echo
"building 3stage for $(canonhost)" ; \
241 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
242 echo
" completed successfully" ; \
244 echo
"building $(canonhost) cross to $$i" ; \
245 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
246 echo
" completed successfully" ; \