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 error:; @echo You must set the variable \"host\" to use this Makefile ; exit 1
12 # the rest of the makefile
22 INSTALLDIR = /cirdan/taxes/devo-test/$(TAG)
27 log = 1>$(canonhost)-build-log 2>&1
28 tlog = 1> $(canonhost)-x-$$i-build-log 2>&1
30 canonhost := $(shell $(TREE)/config.sub $(host))
31 ifeq ($(canonhost),i386-unknown-sco3.2v4)
32 canonhost := i386-sco3.2v4
35 ifeq ($(canonhost),sparc-sun-sunos4.1.1)
36 TARGETS = $(NATIVE) m68k-aout i386-aout a29k-amd-udi \
37 i960-vxworks m68k-coff m68k-vxworks \
38 i960-intel-nindy sparc-aout sparc-vxworks
42 ifeq ($(canonhost),m68k-sun-sunos4.1.1)
43 TARGETS = $(NATIVE) m68k-vxworks m68k-aout i386-aout
44 GCC = gcc -O -g -msoft-float
48 ifeq ($(canonhost),sparc-sun-solaris2)
49 TARGETS = $(NATIVE) m68k-aout sparc-aout a29k-amd-udi
53 ifeq ($(canonhost),mips-dec-ultrix)
54 TARGETS = $(NATIVE) m68k-vxworks m68k-aout i960-vxworks \
55 sparc-vxworks m68k-coff i386-aout sparc-aout i960-intel-nindy
60 ifeq ($(canonhost),mips-sgi-irix4)
61 TARGETS = $(NATIVE) m68k-vxworks m68k-aout
65 ifeq ($(canonhost),rs6000-ibm-aix)
66 TARGETS = $(NATIVE) m68k-vxworks i960-vxworks m68k-aout
71 ifeq ($(canonhost),m68k-hp-hpux)
72 TARGETS = m68k-vxworks
78 ifeq ($(canonhost),hppa1.1-hp-hpux)
79 TARGETS = m68k-aout m68k-coff m68k-vxworks i960-vxworks a29k-amd-udi
85 ifeq ($(canonhost),i386-sco3.2v4)
86 TARGETS = $(NATIVE) i386-aout
97 @echo build started at `date`
98 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
99 rm -f /usr/cygnus/$(TAG)
100 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
101 @for i in $(TARGETS) ; do \
102 if [ "$$i" = "native" ] ; then \
103 if [ ! -f $(canonhost)-3stage-done ] ; then \
104 echo "3staging $(canonhost) native" ; \
105 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
106 echo " completed successfully" ; \
109 echo "building $(canonhost) cross to $$i" ; \
110 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-cygnus $(tlog) && \
111 echo " completed successfully" ; \
117 @echo build started at `date`
118 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
119 rm -f /usr/cygnus/$(TAG)
120 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
121 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log)
125 @echo build started at `date`
126 @for i in $(TARGETS) ; do \
127 if [ "$$i" = "native" ] ; then \
128 if [ ! -f $(canonhost)-3stage-done ] ; then \
129 echo "3staging $(canonhost) native" ; \
130 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
131 echo " completed successfully" ; \
134 echo "building $(canonhost) cross to $$i:" `date` ; \
135 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(tlog) && \
136 echo " completed successfully" ; \
142 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
143 rm -f /usr/cygnus/$(TAG)
144 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
145 @for i in $(TARGETS) ; do \
146 echo "building $(canonhost) cross to $$i" ; \
147 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native $(tlog) && \
148 echo " completed successfully" ; \
152 @for i in $(TARGETS) ; do \
153 if [ "$$i" = "native" ] ; then \
154 echo "config stage1 for $(canonhost)" ; \
155 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-config $(log) && \
156 echo " completed successfully" ; \
158 echo "config $(canonhost) cross to $$i" ; \
159 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native-config $(tlog) && \
160 echo " completed successfully" ; \
166 @for i in $(TARGETS) ; do \
167 if [ "$$i" = "native" ] ; then \
168 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-build $(log) && \
169 echo " completed successfully" ; \
171 echo "building $(canonhost) cross to $$i" ; \
172 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-native $(tlog) && \
173 echo " completed successfully" ; \
179 @for i in $(TARGETS) ; do \
180 if [ "$$i" = "native" ] ; then \
181 echo "building 3stage for $(canonhost)" ; \
182 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) all $(log) && \
183 echo " completed successfully" ; \
185 echo "building $(canonhost) cross to $$i" ; \
186 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(tlog) && \
187 echo " completed successfully" ; \