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-sco3.2v4)
52 canonhost := i386-sco3.2v4
54 ifeq ($(canonhost),i386-unknown-go32)
55 canonhost := i386-go32
57 ifeq ($(canonhost),i386-lynx-lynxos)
58 canonhost := i386-lynxos
60 ifeq ($(canonhost),m68k-lynx-lynxos)
61 canonhost := m68k-lynxos
64 ifeq ($(canonhost),sparc-sun-sunos4.1.3)
68 i386-aout i386-go32 i386-coff \
69 i960-intel-nindy i960-vxworks \
71 m68k-aout m68k-vxworks m68k-coff \
74 sparc-aout sparc-vxworks sparclite-aout \
80 ifeq ($(canonhost),m68k-sun-sunos4.1.1)
83 m68k-aout m68k-vxworks m68k-coff
84 GCC = gcc -O -msoft-float
89 ifeq ($(canonhost),sparc-sun-solaris2)
93 i960-vxworks i960-intel-nindy \
94 m68k-aout m68k-coff m68k-vxworks \
96 sparc-aout sparc-vxworks sparclite-aout
102 ifeq ($(canonhost),mips-dec-ultrix)
103 TARGETS = $(NATIVE) m68k-aout
108 ifeq ($(canonhost),mips-sgi-irix4)
109 TARGETS = $(NATIVE) sh-hms
110 CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh1500
114 ifeq ($(canonhost),rs6000-ibm-aix)
115 TARGETS = $(NATIVE) \
116 i960-vxworks i960-intel-nindy \
117 m68k-aout m68k-vxworks
121 ifeq ($(canonhost),m68k-hp-hpux)
122 TARGETS = $(NATIVE) m68k-aout
123 TMPDIR := $(shell mkdir $(canonhost)-tmpdir; cd $(canonhost)-tmpdir ; pwd)
130 ifeq ($(canonhost),hppa1.1-hp-hpux)
133 m68k-aout m68k-vxworks
135 # h8300-hms h8500-hms \
136 # i386-aout i386-go32 \
137 # i960-vxworks i960-intel-nindy \
139 # m68k-aout m68k-vxworks m68k-coff \
141 # sparc-aout sparclite-aout \
149 ifeq ($(canonhost),i386-sco3.2v4)
150 TARGETS = $(NATIVE) i386-aout
154 ifeq ($(canonhost),i386-go32)
157 h8300-hms h8500-hms \
159 m68k-aout m68k-coff \
164 GCC = i386-go32-gcc -O
167 MAKEINFOFLAGS = --no-split
171 ifeq ($(canonhost),i386-univel-sysv4.2)
177 ifeq ($(canonhost),i386-lynxos)
183 ifeq ($(canonhost),m68k-lynxos)
194 "CXXFLAGS=$(CXXFLAGS)" \
195 "host=$(canonhost)" \
196 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
197 "RELEASE_TAG=$(RELEASE_TAG)"
200 @echo build started at `date`
201 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
202 -rm -f $(ROOTING)/$(RELEASE_TAG)
203 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
204 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1 > $(canonhost)-emacs-native-log 2>&1
205 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do-latest > $(canonhost)-emacs-latest-log 2>&1
209 @echo build started at `date`
210 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
211 rm -f $(ROOTING)/$(RELEASE_TAG)
212 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
213 @for i in $(TARGETS) ; do \
214 if [ "$$i" = "native" ] ; then \
215 if [ ! -f $(canonhost)-stamp-3stage-done ] ; then \
216 echo "3staging $(canonhost) native" ; \
217 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
218 echo " completed successfully" ; \
223 echo "building $(canonhost) cross to $$i" ; \
224 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-cygnus $(cyglog) && \
225 echo " completed successfully" ; \
231 @echo build started at `date`
232 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
233 rm -f $(ROOTING)/$(RELEASE_TAG)
234 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
235 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log)
239 @echo build started at `date`
240 @for i in $(TARGETS) ; do \
241 if [ "$$i" = "native" ] ; then \
242 if [ ! -f $(canonhost)-3stage-done ] ; then \
243 echo "3staging $(canonhost) native" ; \
244 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
245 echo " completed successfully" ; \
248 echo "building $(canonhost) cross to $$i:" `date` ; \
249 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(cyglog) && \
250 echo " completed successfully" ; \
256 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
257 rm -f $(ROOTING)/$(RELEASE_TAG)
258 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
259 @for i in $(TARGETS) ; do \
260 echo "building $(canonhost) cross to $$i" ; \
261 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native $(natlog) && \
262 echo " completed successfully" ; \
266 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
267 rm -f $(ROOTING)/$(RELEASE_TAG)
268 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
269 @for i in $(TARGETS) ; do \
270 echo "building $(canonhost) cross to $$i" ; \
271 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build=$(build) do-cygnus $(cyglog) && \
272 echo " completed successfully" ; \
276 @for i in $(TARGETS) ; do \
277 if [ "$$i" = "native" ] ; then \
278 echo "config stage1 for $(canonhost)" ; \
279 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-config $(log) && \
280 echo " completed successfully" ; \
282 echo "config $(canonhost) cross to $$i" ; \
283 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native-config $(cyglog) && \
284 echo " completed successfully" ; \
290 @for i in $(TARGETS) ; do \
291 if [ "$$i" = "native" ] ; then \
292 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-build $(log) && \
293 echo " completed successfully" ; \
295 echo "building $(canonhost) cross to $$i" ; \
296 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-native $(cyglog) && \
297 echo " completed successfully" ; \
303 @for i in $(TARGETS) ; do \
304 if [ "$$i" = "native" ] ; then \
305 echo "building 3stage for $(canonhost)" ; \
306 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) all $(log) && \
307 echo " completed successfully" ; \
309 echo "building $(canonhost) cross to $$i" ; \
310 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(cyglog) && \
311 echo " completed successfully" ; \