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 latestlog
= 1> $(canonhost
)-x-
$$i-latest
-build
-log
2>&1
29 natlog
= 1> $(canonhost
)-x-
$$i-native
-build
-log
2>&1
31 canonhost
:= $(shell $(TREE
)/config.sub
$(host
))
33 # Convert config.guess results to a simpler form.
34 ifeq ($(canonhost
),sparc-sun-solaris2.1
)
35 canonhost
:= sparc-sun-solaris2
37 ifeq ($(canonhost
),mips-dec-ultrix4.2
)
38 canonhost
:= mips-dec-ultrix
40 ifeq ($(canonhost
),mips-sgi-irix4.0
.1)
41 canonhost
:= mips-sgi-irix4
43 ifeq ($(canonhost
),rs6000-ibm-aix3.2
)
44 canonhost
:= rs6000-ibm-aix
46 ifeq ($(canonhost
),i486-unknown-sco3.2v4.0
)
47 canonhost
:= i386-sco3.2v4
49 ifeq ($(canonhost
),i386-unknown-sco3.2v4.0
)
50 canonhost
:= i386-sco3.2v4
52 ifeq ($(canonhost
),i386-unknown-sco3.2v4
)
53 canonhost
:= i386-sco3.2v4
55 ifeq ($(canonhost
),i386-unknown-go32
)
56 canonhost
:= i386-go32
58 ifeq ($(canonhost
),i386-unknown-sysv4.2
)
59 canonhost
:= i386-sysv4.2
61 ifeq ($(canonhost
),i386-lynx-lynxos
)
62 canonhost
:= i386-lynxos
64 ifeq ($(canonhost
),m68k-lynx-lynxos
)
65 canonhost
:= m68k-lynxos
68 ifeq ($(canonhost
),sparc-sun-sunos4.1
.3)
74 i386-lynx i386-netware \
75 i960-intel-nindy i960-vxworks \
77 m68k-aout m68k-vxworks m68k-coff \
80 sparc-aout sparc-vxworks sparclite-aout \
86 ifeq ($(canonhost
),m68k-sun-sunos4.1
.1)
89 m68k-aout m68k-vxworks m68k-coff
90 GCC
= gcc
-O
-msoft-float
95 ifeq ($(canonhost
),sparc-sun-solaris2
)
98 i960-vxworks i960-intel-nindy \
99 m68k-aout m68k-coff m68k-vxworks \
101 sparc-aout sparc-vxworks sparclite-aout \
102 h8300-hms h8500-hms \
110 ifeq ($(canonhost
),mips-dec-ultrix
)
111 TARGETS
= $(NATIVE
) m68k-aout
116 ifeq ($(canonhost
),mips-sgi-irix4
)
117 TARGETS
= $(NATIVE
) \
118 mips-idt-ecoff sh-hms
119 CC
= cc -cckr
-Wf
,-XNg1500
-Wf
,-XNk1000
-Wf
,-XNh1500
123 ifeq ($(canonhost
),rs6000-ibm-aix
)
124 TARGETS
= $(NATIVE
) \
126 h8300-hms h8500-hms \
127 i386-aout i386-coff \
128 i386-lynx i386-netware \
129 i960-intel-nindy i960-vxworks \
131 m68k-aout m68k-vxworks m68k-coff \
134 sparc-aout sparc-vxworks sparclite-aout \
140 ifeq ($(canonhost
),m68k-hp-hpux
)
141 TARGETS
= $(NATIVE
) m68k-aout
142 TMPDIR
:= $(shell mkdir
$(canonhost
)-tmpdir
; cd
$(canonhost
)-tmpdir
; pwd
)
149 ifeq ($(canonhost
),hppa1.1
-hp-hpux
)
152 m68k-aout m68k-vxworks
153 # sparc-aout sparc-vxworks sparclite-aout \
157 # h8300-hms h8500-hms \
158 # i386-aout i386-coff \
162 # sh-hms # doesn't work
169 ifeq ($(canonhost
),i386-sco3.2v4
)
170 TARGETS
= $(NATIVE
) i386-aout
174 ifeq ($(canonhost
),i386-go32
)
177 h8300-hms h8500-hms \
179 m68k-aout m68k-coff \
184 GCC
= i386-go32-gcc
-O
187 MAKEINFOFLAGS
= --no-split
191 ifeq ($(canonhost
),i386-sysv4.2
)
197 #ifeq ($(canonhost),i386-sysv4.2)
198 #TARGETS = $(NATIVE) \
200 # h8300-hms h8500-hms \
201 # i386-aout i386-coff \
202 # i960-intel-nindy i960-vxworks \
204 # m68k-aout m68k-vxworks m68k-coff \
207 # sparc-aout sparc-vxworks sparclite-aout \
213 ifeq ($(canonhost
),i386-lynxos
)
219 ifeq ($(canonhost
),m68k-lynxos
)
230 "CXXFLAGS=$(CXXFLAGS)" \
231 "host=$(canonhost)" \
232 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
233 "RELEASE_TAG=$(RELEASE_TAG)"
236 @echo build started at
`date`
237 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
238 -rm -f
$(ROOTING
)/$(RELEASE_TAG
)
239 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
240 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1
> $(canonhost
)-emacs-native-log
2>&1
241 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do-latest
> $(canonhost
)-emacs-latest-log
2>&1
245 @echo build started at
`date`
246 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
247 -rm -f
$(ROOTING
)/$(RELEASE_TAG
) && ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
248 @for i in
$(TARGETS
) ; do \
249 if
[ "$$i" = "native" ] ; then \
250 if
[ ! -f
$(canonhost
)-stamp-3stage-done
] ; then \
251 echo
"3staging $(canonhost) native" ; \
252 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
253 echo
" completed successfully" ; \
258 echo
"building $(canonhost) cross to $$i" ; \
259 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-cygnus
$(cyglog
) && \
260 echo
" completed successfully" ; \
266 @echo build started at
`date`
267 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
268 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
269 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
270 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
)
274 @echo build started at
`date`
275 @for i in
$(TARGETS
) ; do \
276 if
[ "$$i" = "native" ] ; then \
277 if
[ ! -f
$(canonhost
)-3stage-done
] ; then \
278 echo
"3staging $(canonhost) native" ; \
279 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) $(canonhost
)-stamp-3stage-done
$(log
) && \
280 echo
" completed successfully" ; \
283 echo
"building $(canonhost) cross to $$i:" `date` ; \
284 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(cyglog
) && \
285 echo
" completed successfully" ; \
291 @echo build started at
`date`
292 @for i in
$(TARGETS
) ; do \
293 if
[ "$$i" != "native" ] ; then \
294 echo
"building $(canonhost) cross to $$i:" `date` ; \
295 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-latest
$(latestlog
) && \
296 echo
" completed successfully" ; \
302 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
303 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
304 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
305 @for i in
$(TARGETS
) ; do \
306 echo
"building $(canonhost) cross to $$i" ; \
307 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native
$(natlog
) && \
308 echo
" completed successfully" ; \
312 [ -d
$(INSTALLDIR
) ] || mkdir
$(INSTALLDIR
)
313 rm -f
$(ROOTING
)/$(RELEASE_TAG
)
314 ln
-s
$(INSTALLDIR
) $(ROOTING
)/$(RELEASE_TAG
)
315 @for i in
$(TARGETS
) ; do \
316 echo
"building $(canonhost) cross to $$i" ; \
317 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build
=$(build
) do-cygnus
$(cyglog
) && \
318 echo
" completed successfully" ; \
322 @for i in
$(TARGETS
) ; do \
323 if
[ "$$i" = "native" ] ; then \
324 echo
"config stage1 for $(canonhost)" ; \
325 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-config
$(log
) && \
326 echo
" completed successfully" ; \
328 echo
"config $(canonhost) cross to $$i" ; \
329 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i do-native-config
$(cyglog
) && \
330 echo
" completed successfully" ; \
336 @for i in
$(TARGETS
) ; do \
337 if
[ "$$i" = "native" ] ; then \
338 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) do1-build
$(log
) && \
339 echo
" completed successfully" ; \
341 echo
"building $(canonhost) cross to $$i" ; \
342 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-native
$(natlog
) && \
343 echo
" completed successfully" ; \
349 @for i in
$(TARGETS
) ; do \
350 if
[ "$$i" = "native" ] ; then \
351 echo
"building 3stage for $(canonhost)" ; \
352 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) all $(log
) && \
353 echo
" completed successfully" ; \
355 echo
"building $(canonhost) cross to $$i" ; \
356 $(MAKE
) -f test-build.mk
$(FLAGS_TO_PASS
) target
=$$i build-cygnus
$(cyglog
) && \
357 echo
" completed successfully" ; \