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 clog = 1>$(canonhost)-check-log 2>&1
28 cyglog = 1> $(canonhost)-x-$$i-cygnus-build-log 2>&1
29 latestlog = 1> $(canonhost)-x-$$i-latest-build-log 2>&1
30 natlog = 1> $(canonhost)-x-$$i-native-build-log 2>&1
32 canonhost := $(shell $(TREE)/config.sub $(host))
34 # Convert config.guess results to a simpler form.
35 ifeq ($(canonhost),sparc-sun-solaris2.1)
36 canonhost := sparc-sun-solaris2
38 ifeq ($(canonhost),mips-dec-ultrix4.2)
39 canonhost := mips-dec-ultrix
41 ifeq ($(canonhost),mips-sgi-irix4.0.1)
42 canonhost := mips-sgi-irix4
44 ifeq ($(canonhost),rs6000-ibm-aix3.2)
45 canonhost := rs6000-ibm-aix
47 ifeq ($(canonhost),i486-unknown-sco3.2v4.0)
48 canonhost := i386-sco3.2v4
50 ifeq ($(canonhost),i386-unknown-sco3.2v4.0)
51 canonhost := i386-sco3.2v4
53 ifeq ($(canonhost),i386-unknown-sco3.2v4)
54 canonhost := i386-sco3.2v4
56 ifeq ($(canonhost),i386-unknown-go32)
57 canonhost := i386-go32
59 ifeq ($(canonhost),i386-unknown-sysv4.2)
60 canonhost := i386-sysv4.2
62 ifeq ($(canonhost),i386-lynx-lynxos)
63 canonhost := i386-lynxos
65 ifeq ($(canonhost),m68k-lynx-lynxos)
66 canonhost := m68k-lynxos
69 ifeq ($(canonhost),sparc-sun-sunos4.1.3)
75 i386-lynx i386-netware \
76 i960-intel-nindy i960-vxworks \
78 m68k-aout m68k-vxworks m68k-coff \
81 sparc-aout sparc-vxworks sparclite-aout \
87 ifeq ($(canonhost),m68k-sun-sunos4.1.1)
90 m68k-aout m68k-vxworks m68k-coff
91 GCC = gcc -O -msoft-float
96 ifeq ($(canonhost),sparc-sun-solaris2)
99 i960-vxworks i960-intel-nindy \
100 m68k-aout m68k-coff m68k-vxworks \
102 sparc-aout sparc-vxworks sparclite-aout \
103 h8300-hms h8500-hms \
111 ifeq ($(canonhost),mips-dec-ultrix)
112 TARGETS = $(NATIVE) m68k-aout
117 ifeq ($(canonhost),mips-sgi-irix4)
118 TARGETS = $(NATIVE) \
119 mips-idt-ecoff sh-hms
120 CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh1500
124 ifeq ($(canonhost),rs6000-ibm-aix)
125 TARGETS = $(NATIVE) \
127 h8300-hms h8500-hms \
128 i386-aout i386-coff \
129 i386-lynx i386-netware \
130 i960-intel-nindy i960-vxworks \
132 m68k-aout m68k-vxworks m68k-coff \
135 sparc-aout sparc-vxworks sparclite-aout \
141 ifeq ($(canonhost),m68k-hp-hpux)
142 TARGETS = $(NATIVE) m68k-aout
143 TMPDIR := $(shell mkdir $(canonhost)-tmpdir; cd $(canonhost)-tmpdir ; pwd)
150 ifeq ($(canonhost),hppa1.1-hp-hpux)
153 m68k-aout m68k-vxworks
154 # sparc-aout sparc-vxworks sparclite-aout \
158 # h8300-hms h8500-hms \
159 # i386-aout i386-coff \
163 # sh-hms # doesn't work
170 ifeq ($(canonhost),i386-sco3.2v4)
171 TARGETS = $(NATIVE) i386-aout
175 ifeq ($(canonhost),i386-go32)
178 h8300-hms h8500-hms \
180 m68k-aout m68k-coff \
185 GCC = i386-go32-gcc -O
188 MAKEINFOFLAGS = --no-split
192 ifeq ($(canonhost),i386-sysv4.2)
198 #ifeq ($(canonhost),i386-sysv4.2)
199 #TARGETS = $(NATIVE) \
201 # h8300-hms h8500-hms \
202 # i386-aout i386-coff \
203 # i960-intel-nindy i960-vxworks \
205 # m68k-aout m68k-vxworks m68k-coff \
208 # sparc-aout sparc-vxworks sparclite-aout \
214 ifeq ($(canonhost),i386-lynxos)
220 ifeq ($(canonhost),m68k-lynxos)
231 "CXXFLAGS=$(CXXFLAGS)" \
232 "host=$(canonhost)" \
233 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
234 "RELEASE_TAG=$(RELEASE_TAG)"
237 @echo build started at `date`
238 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
239 -rm -f $(ROOTING)/$(RELEASE_TAG)
240 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
241 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1 > $(canonhost)-emacs-native-log 2>&1
242 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do-latest > $(canonhost)-emacs-latest-log 2>&1
246 @echo build started at `date`
247 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
248 -rm -f $(ROOTING)/$(RELEASE_TAG) && ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
249 @for i in $(TARGETS) ; do \
250 if [ "$$i" = "native" ] ; then \
251 if [ ! -f $(canonhost)-stamp-3stage-done ] ; then \
252 echo "3staging $(canonhost) native" ; \
253 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
254 echo " completed successfully" ; \
259 echo "building $(canonhost) cross to $$i" ; \
260 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-cygnus $(cyglog) && \
261 echo " completed successfully" ; \
264 @if [ ! -f $(canonhost)-stamp-3stage-checked ] ; then \
265 echo checking $(canonhost) native ; \
266 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-check-3stage $(clog) ; \
267 touch $(canonhost)-stamp-3stage-checked ; \
274 @echo build started at `date`
275 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
276 rm -f $(ROOTING)/$(RELEASE_TAG)
277 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
278 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log)
282 @echo build started at `date`
283 @for i in $(TARGETS) ; do \
284 if [ "$$i" = "native" ] ; then \
285 if [ ! -f $(canonhost)-3stage-done ] ; then \
286 echo "3staging $(canonhost) native" ; \
287 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
288 echo " completed successfully" ; \
291 echo "building $(canonhost) cross to $$i:" `date` ; \
292 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(cyglog) && \
293 echo " completed successfully" ; \
299 @echo build started at `date`
300 @for i in $(TARGETS) ; do \
301 if [ "$$i" != "native" ] ; then \
302 echo "building $(canonhost) cross to $$i:" `date` ; \
303 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-latest $(latestlog) && \
304 echo " completed successfully" ; \
310 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
311 rm -f $(ROOTING)/$(RELEASE_TAG)
312 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
313 @for i in $(TARGETS) ; do \
314 echo "building $(canonhost) cross to $$i" ; \
315 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native $(natlog) && \
316 echo " completed successfully" ; \
320 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
321 rm -f $(ROOTING)/$(RELEASE_TAG)
322 ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
323 @for i in $(TARGETS) ; do \
324 echo "building $(canonhost) cross to $$i" ; \
325 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build=$(build) do-cygnus $(cyglog) && \
326 echo " completed successfully" ; \
330 @for i in $(TARGETS) ; do \
331 if [ "$$i" = "native" ] ; then \
332 echo "config stage1 for $(canonhost)" ; \
333 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-config $(log) && \
334 echo " completed successfully" ; \
336 echo "config $(canonhost) cross to $$i" ; \
337 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native-config $(cyglog) && \
338 echo " completed successfully" ; \
344 @for i in $(TARGETS) ; do \
345 if [ "$$i" = "native" ] ; then \
346 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-build $(log) && \
347 echo " completed successfully" ; \
349 echo "building $(canonhost) cross to $$i" ; \
350 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-native $(natlog) && \
351 echo " completed successfully" ; \
357 @for i in $(TARGETS) ; do \
358 if [ "$$i" = "native" ] ; then \
359 echo "building 3stage for $(canonhost)" ; \
360 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) all $(log) && \
361 echo " completed successfully" ; \
363 echo "building $(canonhost) cross to $$i" ; \
364 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(cyglog) && \
365 echo " completed successfully" ; \
370 @for i in $(TARGETS) ; do \
371 if [ "$$i" = "native" ] ; then \
372 echo "building 3stage for $(canonhost)" ; \
373 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
374 echo " completed successfully" ; \
376 echo "building $(canonhost) cross to $$i" ; \
377 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-latest $(cyglog) && \
378 echo " completed successfully" ; \