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 cyglog = 1> $(canonhost)-x-$$i-cygnus-build-log 2>&1
28 natlog = 1> $(canonhost)-x-$$i-native-build-log 2>&1
30 canonhost := $(shell $(TREE)/config.sub $(host))
32 # Convert config.guess results to a simpler form.
33 ifeq ($(canonhost),sparc-sun-solaris2.1)
34 canonhost := sparc-sun-solaris2
36 ifeq ($(canonhost),mips-dec-ultrix4.2)
37 canonhost := mips-dec-ultrix
39 ifeq ($(canonhost),mips-sgi-irix4.0.1)
40 canonhost := mips-sgi-irix4
42 ifeq ($(canonhost),rs6000-ibm-aix3.2)
43 canonhost := rs6000-ibm-aix
45 ifeq ($(canonhost),i486-unknown-sco3.2v4.0)
46 canonhost := i386-sco3.2v4
48 ifeq ($(canonhost),i386-unknown-sco3.2v4.0)
49 canonhost := i386-sco3.2v4
51 ifeq ($(canonhost),i386-unknown-go32)
52 canonhost := i386-go32
54 ifeq ($(canonhost),i386-lynx-lynxos)
55 canonhost := i386-lynxos
57 ifeq ($(canonhost),m68k-lynx-lynxos)
58 canonhost := m68k-lynxos
61 ifeq ($(canonhost),sparc-sun-sunos4.1.3)
65 i386-aout i386-go32 i386-coff \
66 i960-vxworks i960-intel-nindy \
68 m68k-aout m68k-vxworks m68k-coff \
71 sparc-aout sparc-vxworks sparclitefrwcompat-aout sparclite-aout \
77 ifeq ($(canonhost),m68k-sun-sunos4.1.1)
80 m68k-aout m68k-vxworks m68k-coff i960
81 GCC = gcc -O -msoft-float
86 ifeq ($(canonhost),sparc-sun-solaris2)
89 m68k-vxworks m68k-coff m68k-aout \
92 i960-vxworks i960-intel-nindy \
93 sparc-aout sparc-vxworks sparclite-aout
99 ifeq ($(canonhost),mips-dec-ultrix)
100 TARGETS = $(NATIVE) m68k-aout
105 ifeq ($(canonhost),mips-sgi-irix4)
106 TARGETS = $(NATIVE) sh-hms
107 CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh1500
111 ifeq ($(canonhost),rs6000-ibm-aix)
112 TARGETS = $(NATIVE) \
113 i960-vxworks i960-intel-nindy \
114 m68k-aout m68k-vxworks
118 ifeq ($(canonhost),m68k-hp-hpux)
120 TMPDIR := $(shell mkdir $(canonhost)-tmpdir; cd $(canonhost)-tmpdir ; pwd)
127 ifeq ($(canonhost),hppa1.1-hp-hpux)
130 m68k-aout m68k-vxworks
132 # h8300-hms h8500-hms \
133 # i386-aout i386-go32 \
134 # i960-vxworks i960-intel-nindy \
136 # m68k-aout m68k-vxworks m68k-coff \
138 # sparc-aout sparclite-aout \
146 ifeq ($(canonhost),i386-sco3.2v4)
147 TARGETS = $(NATIVE) i386-aout
151 ifeq ($(canonhost),i386-go32)
156 m68k-aout m68k-coff \
160 GCC = i386-go32-gcc -O
163 MAKEINFOFLAGS = --no-split
167 ifeq ($(canonhost),i386-univel-sysv4.2)
173 ifeq ($(canonhost),i386-lynxos)
179 ifeq ($(canonhost),m68k-lynxos)
190 "CXXFLAGS=$(CXXFLAGS)" \
191 "host=$(canonhost)" \
192 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
193 "RELEASE_TAG=$(RELEASE_TAG)"
196 @echo build started at `date`
197 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
198 -rm -f $(ROOTING)/$(RELEASE_TAG)
199 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
200 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1 > $(canonhost)-native-log 2>&1
201 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do-latest > $(canonhost)-latest-log 2>&1
205 @echo build started at `date`
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 if [ "$$i" = "native" ] ; then \
211 if [ ! -f $(canonhost)-stamp-3stage-done ] ; then \
212 echo "3staging $(canonhost) native" ; \
213 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
214 echo " completed successfully" ; \
219 echo "building $(canonhost) cross to $$i" ; \
220 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-cygnus $(cyglog) && \
221 echo " completed successfully" ; \
227 @echo build started at `date`
228 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
229 rm -f $(ROOTING)/$(RELEASE_TAG)
230 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
231 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log)
235 @echo build started at `date`
236 @for i in $(TARGETS) ; do \
237 if [ "$$i" = "native" ] ; then \
238 if [ ! -f $(canonhost)-3stage-done ] ; then \
239 echo "3staging $(canonhost) native" ; \
240 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
241 echo " completed successfully" ; \
244 echo "building $(canonhost) cross to $$i:" `date` ; \
245 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(cyglog) && \
246 echo " completed successfully" ; \
252 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
253 rm -f $(ROOTING)/$(RELEASE_TAG)
254 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
255 @for i in $(TARGETS) ; do \
256 echo "building $(canonhost) cross to $$i" ; \
257 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native $(natlog) && \
258 echo " completed successfully" ; \
262 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
263 rm -f $(ROOTING)/$(RELEASE_TAG)
264 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
265 @for i in $(TARGETS) ; do \
266 echo "building $(canonhost) cross to $$i" ; \
267 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build=$(build) do-cygnus $(cyglog) && \
268 echo " completed successfully" ; \
272 @for i in $(TARGETS) ; do \
273 if [ "$$i" = "native" ] ; then \
274 echo "config stage1 for $(canonhost)" ; \
275 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-config $(log) && \
276 echo " completed successfully" ; \
278 echo "config $(canonhost) cross to $$i" ; \
279 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native-config $(cyglog) && \
280 echo " completed successfully" ; \
286 @for i in $(TARGETS) ; do \
287 if [ "$$i" = "native" ] ; then \
288 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-build $(log) && \
289 echo " completed successfully" ; \
291 echo "building $(canonhost) cross to $$i" ; \
292 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-native $(cyglog) && \
293 echo " completed successfully" ; \
299 @for i in $(TARGETS) ; do \
300 if [ "$$i" = "native" ] ; then \
301 echo "building 3stage for $(canonhost)" ; \
302 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) all $(log) && \
303 echo " completed successfully" ; \
305 echo "building $(canonhost) cross to $$i" ; \
306 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(cyglog) && \
307 echo " completed successfully" ; \