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 = /justice/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 \
39 sparclite-aout sparclitefrwcompat-aout
43 ifeq ($(canonhost),m68k-sun-sunos4.1.1)
44 TARGETS = $(NATIVE) m68k-vxworks m68k-aout i386-aout
45 GCC = gcc -O -g -msoft-float
50 ifeq ($(canonhost),sparc-sun-solaris2)
51 TARGETS = $(NATIVE) m68k-aout sparc-aout a29k-amd-udi
55 ifeq ($(canonhost),mips-dec-ultrix)
56 TARGETS = $(NATIVE) m68k-vxworks m68k-aout i960-vxworks \
57 sparc-vxworks m68k-coff i386-aout sparc-aout i960-intel-nindy
62 ifeq ($(canonhost),mips-sgi-irix4)
63 TARGETS = $(NATIVE) m68k-vxworks a29k-amd-udi
64 CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh1100
68 ifeq ($(canonhost),rs6000-ibm-aix)
69 TARGETS = $(NATIVE) m68k-vxworks i960-vxworks m68k-aout
73 ifeq ($(canonhost),m68k-hp-hpux)
74 TARGETS = m68k-vxworks
79 ifeq ($(canonhost),hppa1.1-hp-hpux)
80 #TARGETS = m68k-aout m68k-coff m68k-vxworks i960-vxworks a29k-amd-udi
81 TARGETS = m68k-aout i386-aout a29k-amd-udi \
82 i960-vxworks m68k-coff m68k-vxworks \
83 sparc-aout sparc-vxworks \
84 sparclite-aout sparclitefrwcompat-aout
89 ifeq ($(canonhost),i386-sco3.2v4)
90 TARGETS = $(NATIVE) i386-aout
101 @echo build started at `date`
102 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
103 rm -f /usr/cygnus/$(TAG)
104 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
105 @for i in $(TARGETS) ; do \
106 if [ "$$i" = "native" ] ; then \
107 if [ ! -f $(canonhost)-3stage-done ] ; then \
108 echo "3staging $(canonhost) native" ; \
109 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
110 echo " completed successfully" ; \
113 echo "building $(canonhost) cross to $$i" ; \
114 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-cygnus $(tlog) && \
115 echo " completed successfully" ; \
121 @echo build started at `date`
122 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
123 rm -f /usr/cygnus/$(TAG)
124 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
125 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log)
129 @echo build started at `date`
130 @for i in $(TARGETS) ; do \
131 if [ "$$i" = "native" ] ; then \
132 if [ ! -f $(canonhost)-3stage-done ] ; then \
133 echo "3staging $(canonhost) native" ; \
134 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
135 echo " completed successfully" ; \
138 echo "building $(canonhost) cross to $$i:" `date` ; \
139 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(tlog) && \
140 echo " completed successfully" ; \
146 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
147 rm -f /usr/cygnus/$(TAG)
148 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
149 @for i in $(TARGETS) ; do \
150 echo "building $(canonhost) cross to $$i" ; \
151 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native $(tlog) && \
152 echo " completed successfully" ; \
156 @for i in $(TARGETS) ; do \
157 if [ "$$i" = "native" ] ; then \
158 echo "config stage1 for $(canonhost)" ; \
159 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-config $(log) && \
160 echo " completed successfully" ; \
162 echo "config $(canonhost) cross to $$i" ; \
163 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native-config $(tlog) && \
164 echo " completed successfully" ; \
170 @for i in $(TARGETS) ; do \
171 if [ "$$i" = "native" ] ; then \
172 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-build $(log) && \
173 echo " completed successfully" ; \
175 echo "building $(canonhost) cross to $$i" ; \
176 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-native $(tlog) && \
177 echo " completed successfully" ; \
183 @for i in $(TARGETS) ; do \
184 if [ "$$i" = "native" ] ; then \
185 echo "building 3stage for $(canonhost)" ; \
186 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) all $(log) && \
187 echo " completed successfully" ; \
189 echo "building $(canonhost) cross to $$i" ; \
190 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(tlog) && \
191 echo " completed successfully" ; \