Added new ECOFF files.
[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
8ifndef host
9error:; @echo You must set the variable \"host\" to use this Makefile ; exit 1
10else
11
12# the rest of the makefile
13
14TREE = devo
15
16NATIVE = native
17
c9c02af7 18DATE = 930213
543cf4ac
DZ
19
20TAG = latest-$(DATE)
21
a62dc0b9 22INSTALLDIR = /big/progressive-test/$(TAG)
543cf4ac 23
e37dbf93 24GCC = gcc -O
9daf099f 25CFLAGS = -g
543cf4ac
DZ
26
27log = 1>$(canonhost)-build-log 2>&1
28tlog = 1> $(canonhost)-x-$$i-build-log 2>&1
29
30canonhost := $(shell $(TREE)/config.sub $(host))
21412832
ILT
31ifeq ($(canonhost),i386-unknown-sco3.2v4)
32canonhost := i386-sco3.2v4
33endif
543cf4ac
DZ
34
35ifeq ($(canonhost),sparc-sun-sunos4.1.1)
36TARGETS = $(NATIVE) m68k-aout i386-aout a29k-amd-udi \
37 i960-vxworks m68k-coff m68k-vxworks \
7cc2923a
DZ
38 i960-intel-nindy sparc-aout sparc-vxworks \
39 sparclite-aout sparclitefrwcompat-aout
543cf4ac
DZ
40all: all-cygnus
41endif
42
43ifeq ($(canonhost),m68k-sun-sunos4.1.1)
44TARGETS = $(NATIVE) m68k-vxworks m68k-aout i386-aout
e37dbf93 45GCC = gcc -O -msoft-float
7cc2923a 46CC = cc -J
543cf4ac
DZ
47all: all-cygnus
48endif
49
50ifeq ($(canonhost),sparc-sun-solaris2)
51TARGETS = $(NATIVE) m68k-aout sparc-aout a29k-amd-udi
52all: all-cygnus
53endif
54
55ifeq ($(canonhost),mips-dec-ultrix)
56TARGETS = $(NATIVE) m68k-vxworks m68k-aout i960-vxworks \
57 sparc-vxworks m68k-coff i386-aout sparc-aout i960-intel-nindy
872ff7ef 58CC = cc -Wf,-XNg1000
543cf4ac
DZ
59all: all-cygnus
60endif
61
62ifeq ($(canonhost),mips-sgi-irix4)
9daf099f 63TARGETS = $(NATIVE) m68k-vxworks a29k-amd-udi
872ff7ef 64CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh1100
543cf4ac
DZ
65all: all-cygnus
66endif
67
68ifeq ($(canonhost),rs6000-ibm-aix)
69TARGETS = $(NATIVE) m68k-vxworks i960-vxworks m68k-aout
543cf4ac
DZ
70all: all-cygnus
71endif
72
73ifeq ($(canonhost),m68k-hp-hpux)
74TARGETS = m68k-vxworks
e37dbf93 75TMPDIR := $(shell mkdir $(canonhost)-tmpdir; cd $(canonhost)-tmpdir ; pwd)
543cf4ac 76CC = cc +O1000 -Wp,-P
e37dbf93 77CFLAGS =
543cf4ac
DZ
78all: all-native
79endif
80
81ifeq ($(canonhost),hppa1.1-hp-hpux)
b13a565e 82#TARGETS = m68k-aout m68k-coff m68k-vxworks i960-vxworks a29k-amd-udi
388d084f
DZ
83TARGETS = m68k-aout i386-aout a29k-amd-udi \
84 i960-vxworks m68k-coff m68k-vxworks \
85 sparc-aout sparc-vxworks \
86 sparclite-aout sparclitefrwcompat-aout
e1b91f0b 87CC = cc
26de3d0c 88all: all-native
543cf4ac
DZ
89endif
90
21412832
ILT
91ifeq ($(canonhost),i386-sco3.2v4)
92TARGETS = $(NATIVE) i386-aout
21412832
ILT
93all: all-cygnus
94endif
95
543cf4ac
DZ
96FLAGS_TO_PASS := \
97 "GCC=$(GCC)" \
7cc2923a 98 "CC=$(CC)" \
543cf4ac
DZ
99 "CFLAGS=$(CFLAGS)" \
100 "host=$(canonhost)"
101
102all-cygnus:
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" ; \
21412832 111 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
543cf4ac
DZ
112 echo " completed successfully" ; \
113 fi \
114 else \
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" ; \
118 fi ; \
119 done
120 @echo done at `date`
121
c676f606
DZ
122native:
123 @echo build started at `date`
124 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
125 rm -f /usr/cygnus/$(TAG)
126 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
21412832 127 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log)
c676f606
DZ
128 @echo done at `date`
129
5ba00487
DZ
130build-cygnus:
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" ; \
21412832 136 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
5ba00487
DZ
137 echo " completed successfully" ; \
138 fi \
139 else \
13ec8aad 140 echo "building $(canonhost) cross to $$i:" `date` ; \
5ba00487
DZ
141 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(tlog) && \
142 echo " completed successfully" ; \
143 fi ; \
144 done
145 @echo done at `date`
146
543cf4ac
DZ
147all-native:
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" ; \
155 done
156
157config:
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" ; \
163 else \
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" ; \
167 fi ; \
168 done
169
170
171build:
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" ; \
176 else \
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" ; \
180 fi ; \
181 done
182
183
1843build:
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" ; \
190 else \
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" ; \
194 fi ; \
195 done
196
197endif # host
198
199### Local Variables:
200### fill-column: 131
201### End:
This page took 0.03782 seconds and 4 git commands to generate.