* config/mh-delta88: remove extraneous GCC references
[deliverable/binutils-gdb.git] / build-all.mk
CommitLineData
543cf4ac
DZ
1# Build all of the targets for any given host.....
2#
3# This file is going to be ugly. It will be VERY specific to the
4# Cygnus environment and build-process.
5#
6#
7
543cf4ac
DZ
8TREE = devo
9
10NATIVE = native
11
e110c2a8 12DATE = 930408
543cf4ac
DZ
13
14TAG = latest-$(DATE)
15
50b5f708 16INSTALLDIR = /build/ian/devo-test/$(TAG)
543cf4ac 17
12eda620
ILT
18ifndef host
19host := $(shell $(TREE)/config.guess)
20endif
21
e37dbf93 22GCC = gcc -O
9daf099f 23CFLAGS = -g
543cf4ac
DZ
24
25log = 1>$(canonhost)-build-log 2>&1
26tlog = 1> $(canonhost)-x-$$i-build-log 2>&1
27
28canonhost := $(shell $(TREE)/config.sub $(host))
12eda620
ILT
29
30# Convert config.guess results to a simpler form.
31ifeq ($(canonhost),mips-dec-ultrix4.2)
32canonhost := mips-dec-ultrix
33endif
34ifeq ($(canonhost),mips-sgi-irix4.0.1)
35canonhost := mips-sgi-irix4
36endif
37ifeq ($(canonhost),i486-unknown-sco3.2v4.0)
21412832
ILT
38canonhost := i386-sco3.2v4
39endif
543cf4ac
DZ
40
41ifeq ($(canonhost),sparc-sun-sunos4.1.1)
e110c2a8
ILT
42TARGETS = $(NATIVE) m68k-aout m68k-vxworks i960-intel-nindy \
43 i386-aout a29k-amd-udi sparc-vxworks m68k-coff \
44 i960-vxworks sparc-aout sparclite-aout \
45 sparclitefrwcompat-aout h8300-hms z8k-sim \
46 mips-idt-ecoff
543cf4ac
DZ
47all: all-cygnus
48endif
49
50ifeq ($(canonhost),m68k-sun-sunos4.1.1)
e110c2a8 51TARGETS = $(NATIVE) m68k-aout m68k-vxworks m68k-coff
e37dbf93 52GCC = gcc -O -msoft-float
7cc2923a 53CC = cc -J
543cf4ac
DZ
54all: all-cygnus
55endif
56
57ifeq ($(canonhost),sparc-sun-solaris2)
e110c2a8 58TARGETS = $(NATIVE) m68k-vxworks m68k-aout sparc-aout
6d98b3d2 59CC = cc -Xs
543cf4ac
DZ
60all: all-cygnus
61endif
62
63ifeq ($(canonhost),mips-dec-ultrix)
e110c2a8
ILT
64TARGETS = $(NATIVE) m68k-aout
65# TARGETS = $(NATIVE) m68k-vxworks m68k-aout i960-vxworks \
66# sparc-vxworks m68k-coff i386-aout sparc-aout i960-intel-nindy
872ff7ef 67CC = cc -Wf,-XNg1000
543cf4ac
DZ
68all: all-cygnus
69endif
70
71ifeq ($(canonhost),mips-sgi-irix4)
e110c2a8 72TARGETS = $(NATIVE) m68k-vxworks
4cb66853 73CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh1500
543cf4ac
DZ
74all: all-cygnus
75endif
76
77ifeq ($(canonhost),rs6000-ibm-aix)
e110c2a8 78TARGETS = $(NATIVE) m68k-aout m68k-vxworks i960-vxworks
543cf4ac
DZ
79all: all-cygnus
80endif
81
82ifeq ($(canonhost),m68k-hp-hpux)
83TARGETS = m68k-vxworks
e37dbf93 84TMPDIR := $(shell mkdir $(canonhost)-tmpdir; cd $(canonhost)-tmpdir ; pwd)
543cf4ac 85CC = cc +O1000 -Wp,-P
e37dbf93 86CFLAGS =
543cf4ac
DZ
87all: all-native
88endif
89
90ifeq ($(canonhost),hppa1.1-hp-hpux)
e110c2a8 91TARGETS = i960-vxworks m68k-aout m68k-vxworks
b13a565e 92#TARGETS = m68k-aout m68k-coff m68k-vxworks i960-vxworks a29k-amd-udi
e110c2a8
ILT
93#TARGETS = m68k-aout i386-aout a29k-amd-udi \
94# i960-vxworks m68k-coff m68k-vxworks \
95# sparc-aout sparc-vxworks \
96# sparclite-aout sparclitefrwcompat-aout
e1b91f0b 97CC = cc
26de3d0c 98all: all-native
543cf4ac
DZ
99endif
100
21412832
ILT
101ifeq ($(canonhost),i386-sco3.2v4)
102TARGETS = $(NATIVE) i386-aout
21412832
ILT
103all: all-cygnus
104endif
105
543cf4ac
DZ
106FLAGS_TO_PASS := \
107 "GCC=$(GCC)" \
7cc2923a 108 "CC=$(CC)" \
543cf4ac 109 "CFLAGS=$(CFLAGS)" \
12eda620
ILT
110 "host=$(canonhost)" \
111 "RELEASE_TAG=$(TAG)"
543cf4ac
DZ
112
113all-cygnus:
114 @echo build started at `date`
115 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
116 rm -f /usr/cygnus/$(TAG)
117 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
118 @for i in $(TARGETS) ; do \
119 if [ "$$i" = "native" ] ; then \
120 if [ ! -f $(canonhost)-3stage-done ] ; then \
121 echo "3staging $(canonhost) native" ; \
21412832 122 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
543cf4ac
DZ
123 echo " completed successfully" ; \
124 fi \
125 else \
126 echo "building $(canonhost) cross to $$i" ; \
127 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-cygnus $(tlog) && \
128 echo " completed successfully" ; \
129 fi ; \
130 done
131 @echo done at `date`
132
c676f606
DZ
133native:
134 @echo build started at `date`
135 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
136 rm -f /usr/cygnus/$(TAG)
137 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
21412832 138 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log)
c676f606
DZ
139 @echo done at `date`
140
5ba00487
DZ
141build-cygnus:
142 @echo build started at `date`
143 @for i in $(TARGETS) ; do \
144 if [ "$$i" = "native" ] ; then \
145 if [ ! -f $(canonhost)-3stage-done ] ; then \
146 echo "3staging $(canonhost) native" ; \
21412832 147 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
5ba00487
DZ
148 echo " completed successfully" ; \
149 fi \
150 else \
13ec8aad 151 echo "building $(canonhost) cross to $$i:" `date` ; \
5ba00487
DZ
152 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(tlog) && \
153 echo " completed successfully" ; \
154 fi ; \
155 done
156 @echo done at `date`
157
543cf4ac
DZ
158all-native:
159 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
160 rm -f /usr/cygnus/$(TAG)
161 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
162 @for i in $(TARGETS) ; do \
163 echo "building $(canonhost) cross to $$i" ; \
164 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native $(tlog) && \
165 echo " completed successfully" ; \
166 done
167
168config:
169 @for i in $(TARGETS) ; do \
170 if [ "$$i" = "native" ] ; then \
171 echo "config stage1 for $(canonhost)" ; \
172 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-config $(log) && \
173 echo " completed successfully" ; \
174 else \
175 echo "config $(canonhost) cross to $$i" ; \
176 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native-config $(tlog) && \
177 echo " completed successfully" ; \
178 fi ; \
179 done
180
181
182build:
183 @for i in $(TARGETS) ; do \
184 if [ "$$i" = "native" ] ; then \
185 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-build $(log) && \
186 echo " completed successfully" ; \
187 else \
188 echo "building $(canonhost) cross to $$i" ; \
189 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-native $(tlog) && \
190 echo " completed successfully" ; \
191 fi ; \
192 done
193
194
1953build:
196 @for i in $(TARGETS) ; do \
197 if [ "$$i" = "native" ] ; then \
198 echo "building 3stage for $(canonhost)" ; \
199 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) all $(log) && \
200 echo " completed successfully" ; \
201 else \
202 echo "building $(canonhost) cross to $$i" ; \
203 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(tlog) && \
204 echo " completed successfully" ; \
205 fi ; \
206 done
207
543cf4ac
DZ
208### Local Variables:
209### fill-column: 131
210### End:
This page took 0.041364 seconds and 4 git commands to generate.