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 = /build/ian/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 -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
75 TMPDIR := $(shell mkdir $(canonhost)-tmpdir; cd $(canonhost)-tmpdir ; pwd)
81 ifeq ($(canonhost),hppa1.1-hp-hpux)
82 #TARGETS = m68k-aout m68k-coff m68k-vxworks i960-vxworks a29k-amd-udi
83 TARGETS = m68k-aout i386-aout a29k-amd-udi \
84 i960-vxworks m68k-coff m68k-vxworks \
85 sparc-aout sparc-vxworks \
86 sparclite-aout sparclitefrwcompat-aout
91 ifeq ($(canonhost),i386-sco3.2v4)
92 TARGETS = $(NATIVE) i386-aout
103 @echo build started at `date`
104 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
105 rm -f /usr/cygnus/$(TAG)
106 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
107 @for i in $(TARGETS) ; do \
108 if [ "$$i" = "native" ] ; then \
109 if [ ! -f $(canonhost)-3stage-done ] ; then \
110 echo "3staging $(canonhost) native" ; \
111 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
112 echo " completed successfully" ; \
115 echo "building $(canonhost) cross to $$i" ; \
116 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-cygnus $(tlog) && \
117 echo " completed successfully" ; \
123 @echo build started at `date`
124 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
125 rm -f /usr/cygnus/$(TAG)
126 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
127 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log)
131 @echo build started at `date`
132 @for i in $(TARGETS) ; do \
133 if [ "$$i" = "native" ] ; then \
134 if [ ! -f $(canonhost)-3stage-done ] ; then \
135 echo "3staging $(canonhost) native" ; \
136 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
137 echo " completed successfully" ; \
140 echo "building $(canonhost) cross to $$i:" `date` ; \
141 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(tlog) && \
142 echo " completed successfully" ; \
148 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
149 rm -f /usr/cygnus/$(TAG)
150 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
151 @for i in $(TARGETS) ; do \
152 echo "building $(canonhost) cross to $$i" ; \
153 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native $(tlog) && \
154 echo " completed successfully" ; \
158 @for i in $(TARGETS) ; do \
159 if [ "$$i" = "native" ] ; then \
160 echo "config stage1 for $(canonhost)" ; \
161 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-config $(log) && \
162 echo " completed successfully" ; \
164 echo "config $(canonhost) cross to $$i" ; \
165 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native-config $(tlog) && \
166 echo " completed successfully" ; \
172 @for i in $(TARGETS) ; do \
173 if [ "$$i" = "native" ] ; then \
174 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-build $(log) && \
175 echo " completed successfully" ; \
177 echo "building $(canonhost) cross to $$i" ; \
178 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-native $(tlog) && \
179 echo " completed successfully" ; \
185 @for i in $(TARGETS) ; do \
186 if [ "$$i" = "native" ] ; then \
187 echo "building 3stage for $(canonhost)" ; \
188 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) all $(log) && \
189 echo " completed successfully" ; \
191 echo "building $(canonhost) cross to $$i" ; \
192 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(tlog) && \
193 echo " completed successfully" ; \