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
)
24 log
= 1>$(canonhost
)-build-log
2>&1
25 tlog
= 1> $(canonhost
)-x-
$$i-build
-log
2>&1
27 canonhost
:= $(shell $(TREE
)/config.sub
$(host
))
29 # Convert config.guess results to a simpler form.
30 ifeq ($(canonhost
),mips-dec-ultrix4.2
)
31 canonhost
:= mips-dec-ultrix
33 ifeq ($(canonhost
),mips-sgi-irix4.0
.1)
34 canonhost
:= mips-sgi-irix4
36 ifeq ($(canonhost
),rs6000-ibm-aix3.2
)
37 canonhost
:= rs6000-ibm-aix
39 ifeq ($(canonhost
),i486-unknown-sco3.2v4.0
)
40 canonhost
:= i386-sco3.2v4
43 ifeq ($(canonhost
),sparc-sun-sunos4.1
.1)
44 TARGETS
= $(NATIVE
) i386-go32 m68k-aout m68k-vxworks \
45 i960-intel-nindy i386-aout a29k-amd-udi \
46 sparc-vxworks m68k-coff i960-vxworks sparc-aout \
47 sparclite-aout sparclitefrwcompat-aout h8300-hms \
48 z8k-sim mips-idt-ecoff
52 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
53 TARGETS
= $(NATIVE
) m68k-aout m68k-vxworks m68k-coff
54 GCC
= gcc
-O
-msoft-float
59 ifeq ($(canonhost
),sparc-sun-solaris2
)
60 TARGETS
= $(NATIVE
) m68k-vxworks m68k-aout sparc-aout mips-idt-ecoff
65 ifeq ($(canonhost
),mips-dec-ultrix
)
66 TARGETS
= $(NATIVE
) m68k-aout
67 # TARGETS = $(NATIVE) m68k-vxworks m68k-aout i960-vxworks \
68 # sparc-vxworks m68k-coff i386-aout sparc-aout i960-intel-nindy
73 ifeq ($(canonhost
),mips-sgi-irix4
)
74 TARGETS
= $(NATIVE
) m68k-vxworks
75 CC
= cc -cckr
-Wf
,-XNg1500
-Wf
,-XNk1000
-Wf
,-XNh1500
79 ifeq ($(canonhost
),rs6000-ibm-aix
)
80 TARGETS
= $(NATIVE
) m68k-aout m68k-vxworks i960-vxworks
84 ifeq ($(canonhost
),m68k-hp-hpux
)
85 TARGETS
= $(NATIVE
) m68k-vxworks
86 TMPDIR
:= $(shell mkdir
$(canonhost
)-tmpdir
; cd
$(canonhost
)-tmpdir
; pwd
)
92 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
93 TARGETS
= i960-vxworks m68k-aout m68k-vxworks m68k-hp-hpux
94 #TARGETS = m68k-aout m68k-coff m68k-vxworks i960-vxworks a29k-amd-udi
95 #TARGETS = m68k-aout i386-aout a29k-amd-udi \
96 # i960-vxworks m68k-coff m68k-vxworks \
97 # sparc-aout sparc-vxworks \
98 # sparclite-aout sparclitefrwcompat-aout
103 ifeq ($(canonhost
),i386-sco3.2v4
)
104 TARGETS
= $(NATIVE
) i386-aout
112 "host=$(canonhost)" \
113 "RELEASE_TAG=$(RELEASE_TAG)"
116 @echo build started at
`date`
117 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
118 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
119 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
120 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1
> $(canonhost
)-native-log
2>&1
121 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do-latest
> $(canonhost
)-latest-log
2>&1
125 @echo build started at
`date`
126 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
127 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
128 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
129 @for i in
$(TARGETS
) ; do \
130 if
[ "$$i" = "native" ] ; then \
131 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
132 echo
"3staging $(canonhost) native" ; \
133 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
134 echo
" completed successfully" ; \
137 echo
"building $(canonhost) cross to $$i" ; \
138 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(tlog
) && \
139 echo
" completed successfully" ; \
145 @echo build started at
`date`
146 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
147 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
148 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
149 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
153 @echo build started at
`date`
154 @for i in
$(TARGETS
) ; do \
155 if
[ "$$i" = "native" ] ; then \
156 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
157 echo
"3staging $(canonhost) native" ; \
158 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
159 echo
" completed successfully" ; \
162 echo
"building $(canonhost) cross to $$i:" `date` ; \
163 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
164 echo
" completed successfully" ; \
170 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
171 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
172 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
173 @for i in
$(TARGETS
) ; do \
174 echo
"building $(canonhost) cross to $$i" ; \
175 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(tlog
) && \
176 echo
" completed successfully" ; \
180 @for i in
$(TARGETS
) ; do \
181 if
[ "$$i" = "native" ] ; then \
182 echo
"config stage1 for $(canonhost)" ; \
183 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
184 echo
" completed successfully" ; \
186 echo
"config $(canonhost) cross to $$i" ; \
187 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(tlog
) && \
188 echo
" completed successfully" ; \
194 @for i in
$(TARGETS
) ; do \
195 if
[ "$$i" = "native" ] ; then \
196 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
197 echo
" completed successfully" ; \
199 echo
"building $(canonhost) cross to $$i" ; \
200 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(tlog
) && \
201 echo
" completed successfully" ; \
207 @for i in
$(TARGETS
) ; do \
208 if
[ "$$i" = "native" ] ; then \
209 echo
"building 3stage for $(canonhost)" ; \
210 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
211 echo
" completed successfully" ; \
213 echo
"building $(canonhost) cross to $$i" ; \
214 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(tlog
) && \
215 echo
" completed successfully" ; \