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
= /tug
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-sco3.2v4
)
52 canonhost
:= i386-sco3.2v4
54 ifeq ($(canonhost
),i386-unknown-go32
)
55 canonhost
:= i386-go32
57 ifeq ($(canonhost
),i386-unknown-sysv4.2
)
58 canonhost
:= i386-sysv4.2
60 ifeq ($(canonhost
),i386-lynx-lynxos
)
61 canonhost
:= i386-lynxos
63 ifeq ($(canonhost
),m68k-lynx-lynxos
)
64 canonhost
:= m68k-lynxos
67 ifeq ($(canonhost
),sparc-sun-sunos4.1
.3)
73 i960-intel-nindy i960-vxworks \
75 m68k-aout m68k-vxworks m68k-coff \
78 sparc-aout sparc-vxworks sparclite-aout \
84 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
87 m68k-aout m68k-vxworks m68k-coff
88 GCC
= gcc
-O
-msoft-float
93 ifeq ($(canonhost
),sparc-sun-solaris2
)
96 i960-vxworks i960-intel-nindy \
97 m68k-aout m68k-coff m68k-vxworks \
99 sparc-aout sparc-vxworks sparclite-aout \
100 h8300-hms h8500-hms \
108 ifeq ($(canonhost
),mips-dec-ultrix
)
109 TARGETS
= $(NATIVE
) m68k-aout
114 ifeq ($(canonhost
),mips-sgi-irix4
)
115 TARGETS
= $(NATIVE
) \
116 mips-idt-ecoff sh-hms
117 CC
= cc -cckr
-Wf
,-XNg1500
-Wf
,-XNk1000
-Wf
,-XNh1500
121 ifeq ($(canonhost
),rs6000-ibm-aix
)
122 TARGETS
= $(NATIVE
) \
123 i960-vxworks i960-intel-nindy \
124 m68k-aout m68k-vxworks
126 # h8300-hms h8500-hms \
127 # i386-aout i386-coff \
132 # sparc-aout sparc-vxworks sparclite-aout \
137 ifeq ($(canonhost
),m68k-hp-hpux
)
138 TARGETS
= $(NATIVE
) m68k-aout
139 TMPDIR
:= $(shell mkdir
$(canonhost
)-tmpdir
; cd
$(canonhost
)-tmpdir
; pwd
)
146 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
149 m68k-aout m68k-vxworks
150 # sparc-aout sparc-vxworks sparclite-aout \
154 # h8300-hms h8500-hms \
155 # i386-aout i386-coff \
159 # sh-hms # doesn't work
166 ifeq ($(canonhost
),i386-sco3.2v4
)
167 TARGETS
= $(NATIVE
) i386-aout
171 ifeq ($(canonhost
),i386-go32
)
174 h8300-hms h8500-hms \
176 m68k-aout m68k-coff \
181 GCC
= i386-go32-gcc
-O
184 MAKEINFOFLAGS
= --no-split
188 ifeq ($(canonhost
),i386-sysv4.2
)
194 #ifeq ($(canonhost),i386-sysv4.2)
195 #TARGETS = $(NATIVE) \
197 # h8300-hms h8500-hms \
198 # i386-aout i386-coff \
199 # i960-intel-nindy i960-vxworks \
201 # m68k-aout m68k-vxworks m68k-coff \
204 # sparc-aout sparc-vxworks sparclite-aout \
210 ifeq ($(canonhost
),i386-lynxos
)
216 ifeq ($(canonhost
),m68k-lynxos
)
227 "CXXFLAGS=$(CXXFLAGS)" \
228 "host=$(canonhost)" \
229 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
230 "RELEASE_TAG=$(RELEASE_TAG)"
233 @echo build started at
`date`
234 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
235 -rm -f
$(ROOTING
)/$(RELEASE_TAG
)
236 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
237 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1
> $(canonhost
)-emacs-native-log
2>&1
238 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do-latest
> $(canonhost
)-emacs-latest-log
2>&1
242 @echo build started at
`date`
243 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
244 -rm -f
$(ROOTING
)/$(RELEASE_TAG
) && ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
245 @for i in
$(TARGETS
) ; do \
246 if
[ "$$i" = "native" ] ; then \
247 if
[ ! -f
$(canonhost
)-stamp-3stage-done
] ; then \
248 echo
"3staging $(canonhost) native" ; \
249 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
250 echo
" completed successfully" ; \
255 echo
"building $(canonhost) cross to $$i" ; \
256 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(cyglog
) && \
257 echo
" completed successfully" ; \
263 @echo build started at
`date`
264 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
265 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
266 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
267 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
271 @echo build started at
`date`
272 @for i in
$(TARGETS
) ; do \
273 if
[ "$$i" = "native" ] ; then \
274 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
275 echo
"3staging $(canonhost) native" ; \
276 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
277 echo
" completed successfully" ; \
280 echo
"building $(canonhost) cross to $$i:" `date` ; \
281 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(cyglog
) && \
282 echo
" completed successfully" ; \
288 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
289 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
290 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
291 @for i in
$(TARGETS
) ; do \
292 echo
"building $(canonhost) cross to $$i" ; \
293 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(natlog
) && \
294 echo
" completed successfully" ; \
298 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
299 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
300 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
301 @for i in
$(TARGETS
) ; do \
302 echo
"building $(canonhost) cross to $$i" ; \
303 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build
=$(build
) do-cygnus
$(cyglog
) && \
304 echo
" completed successfully" ; \
308 @for i in
$(TARGETS
) ; do \
309 if
[ "$$i" = "native" ] ; then \
310 echo
"config stage1 for $(canonhost)" ; \
311 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
312 echo
" completed successfully" ; \
314 echo
"config $(canonhost) cross to $$i" ; \
315 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(cyglog
) && \
316 echo
" completed successfully" ; \
322 @for i in
$(TARGETS
) ; do \
323 if
[ "$$i" = "native" ] ; then \
324 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
325 echo
" completed successfully" ; \
327 echo
"building $(canonhost) cross to $$i" ; \
328 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(natlog
) && \
329 echo
" completed successfully" ; \
335 @for i in
$(TARGETS
) ; do \
336 if
[ "$$i" = "native" ] ; then \
337 echo
"building 3stage for $(canonhost)" ; \
338 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
339 echo
" completed successfully" ; \
341 echo
"building $(canonhost) cross to $$i" ; \
342 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(cyglog
) && \
343 echo
" completed successfully" ; \