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
)
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
.1)
52 TARGETS
= $(NATIVE
) i386-go32 m68k-aout m68k-vxworks \
53 i960-intel-nindy i386-aout a29k-amd-udi \
54 sparc-vxworks m68k-coff i960-vxworks sparc-aout \
55 sparclite-aout sparclitefrwcompat-aout h8300-hms \
56 z8k-sim mips-idt-ecoff
60 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
61 TARGETS
= $(NATIVE
) m68k-aout m68k-vxworks m68k-coff
62 GCC
= gcc
-O
-msoft-float
67 ifeq ($(canonhost
),sparc-sun-solaris2
)
68 TARGETS
= $(NATIVE
) m68k-vxworks m68k-aout sparc-aout mips-idt-ecoff
73 ifeq ($(canonhost
),mips-dec-ultrix
)
74 TARGETS
= $(NATIVE
) m68k-aout
75 # TARGETS = $(NATIVE) m68k-vxworks m68k-aout i960-vxworks \
76 # sparc-vxworks m68k-coff i386-aout sparc-aout i960-intel-nindy
81 ifeq ($(canonhost
),mips-sgi-irix4
)
82 TARGETS
= $(NATIVE
) m68k-vxworks
83 CC
= cc -cckr
-Wf
,-XNg1500
-Wf
,-XNk1000
-Wf
,-XNh1500
87 ifeq ($(canonhost
),rs6000-ibm-aix
)
88 TARGETS
= $(NATIVE
) m68k-aout m68k-vxworks i960-vxworks
92 ifeq ($(canonhost
),m68k-hp-hpux
)
93 TARGETS
= $(NATIVE
) m68k-vxworks
94 TMPDIR
:= $(shell mkdir
$(canonhost
)-tmpdir
; cd
$(canonhost
)-tmpdir
; pwd
)
100 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
101 TARGETS
= i960-vxworks m68k-aout m68k-vxworks m68k-hp-hpux
102 #TARGETS = m68k-aout m68k-coff m68k-vxworks i960-vxworks a29k-amd-udi
103 #TARGETS = m68k-aout i386-aout a29k-amd-udi \
104 # i960-vxworks m68k-coff m68k-vxworks \
105 # sparc-aout sparc-vxworks \
106 # sparclite-aout sparclitefrwcompat-aout
111 ifeq ($(canonhost
),i386-sco3.2v4
)
112 TARGETS
= $(NATIVE
) i386-aout
116 ifeq ($(canonhost
),i386-go32
)
117 TARGETS
= m68k-aout a29k-amd-udi m68k-coff i386-aout sparclite-aout \
118 h8300-sim mips-idt-ecoff
120 build
:= $(shell $(TREE
)/config.guess
)
123 GCC
= i386-go32-gcc
-O
126 MAKEINFOFLAGS
= --no-split
134 "CXXFLAGS=$(CXXFLAGS)" \
135 "host=$(canonhost)" \
136 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
137 "RELEASE_TAG=$(RELEASE_TAG)"
140 @echo build started at
`date`
141 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
142 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
143 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
144 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1
> $(canonhost
)-native-log
2>&1
145 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do-latest
> $(canonhost
)-latest-log
2>&1
149 @echo build started at
`date`
150 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
151 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
152 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
153 @for i in
$(TARGETS
) ; do \
154 if
[ "$$i" = "native" ] ; then \
155 if
[ ! -f
$(canonhost
)-stamp-3stage-done
] ; then \
156 echo
"3staging $(canonhost) native" ; \
157 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
158 echo
" completed successfully" ; \
163 echo
"building $(canonhost) cross to $$i" ; \
164 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(tlog
) && \
165 echo
" completed successfully" ; \
171 @echo build started at
`date`
172 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
173 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
174 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
175 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
179 @echo build started at
`date`
180 @for i in
$(TARGETS
) ; do \
181 if
[ "$$i" = "native" ] ; then \
182 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
183 echo
"3staging $(canonhost) native" ; \
184 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
185 echo
" completed successfully" ; \
188 echo
"building $(canonhost) cross to $$i:" `date` ; \
189 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
190 echo
" completed successfully" ; \
196 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
197 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
198 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
199 @for i in
$(TARGETS
) ; do \
200 echo
"building $(canonhost) cross to $$i" ; \
201 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(tlog
) && \
202 echo
" completed successfully" ; \
206 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
207 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
208 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
209 @for i in
$(TARGETS
) ; do \
210 echo
"building $(canonhost) cross to $$i" ; \
211 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build
=$(build
) do-cygnus
$(tlog
) && \
212 echo
" completed successfully" ; \
216 @for i in
$(TARGETS
) ; do \
217 if
[ "$$i" = "native" ] ; then \
218 echo
"config stage1 for $(canonhost)" ; \
219 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
220 echo
" completed successfully" ; \
222 echo
"config $(canonhost) cross to $$i" ; \
223 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(tlog
) && \
224 echo
" completed successfully" ; \
230 @for i in
$(TARGETS
) ; do \
231 if
[ "$$i" = "native" ] ; then \
232 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
233 echo
" completed successfully" ; \
235 echo
"building $(canonhost) cross to $$i" ; \
236 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(tlog
) && \
237 echo
" completed successfully" ; \
243 @for i in
$(TARGETS
) ; do \
244 if
[ "$$i" = "native" ] ; then \
245 echo
"building 3stage for $(canonhost)" ; \
246 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
247 echo
" completed successfully" ; \
249 echo
"building $(canonhost) cross to $$i" ; \
250 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
251 echo
" completed successfully" ; \