* findvar.c (read_var_value): If REG_STRUCT_HAS_ADDR, then set
[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
3fa4d3e3 18DATE = 930204
543cf4ac
DZ
19
20TAG = latest-$(DATE)
21
388d084f 22INSTALLDIR = /justice/devo-test/$(TAG)
543cf4ac
DZ
23
24GCC = gcc -O -g
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
45GCC = gcc -O -g -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
75CC = cc +O1000 -Wp,-P
543cf4ac
DZ
76all: all-native
77endif
78
79ifeq ($(canonhost),hppa1.1-hp-hpux)
b13a565e 80#TARGETS = m68k-aout m68k-coff m68k-vxworks i960-vxworks a29k-amd-udi
388d084f
DZ
81TARGETS = m68k-aout i386-aout a29k-amd-udi \
82 i960-vxworks m68k-coff m68k-vxworks \
83 sparc-aout sparc-vxworks \
84 sparclite-aout sparclitefrwcompat-aout
e1b91f0b 85CC = cc
26de3d0c 86all: all-native
543cf4ac
DZ
87endif
88
21412832
ILT
89ifeq ($(canonhost),i386-sco3.2v4)
90TARGETS = $(NATIVE) i386-aout
21412832
ILT
91all: all-cygnus
92endif
93
543cf4ac
DZ
94FLAGS_TO_PASS := \
95 "GCC=$(GCC)" \
7cc2923a 96 "CC=$(CC)" \
543cf4ac
DZ
97 "CFLAGS=$(CFLAGS)" \
98 "host=$(canonhost)"
99
100all-cygnus:
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" ; \
21412832 109 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
543cf4ac
DZ
110 echo " completed successfully" ; \
111 fi \
112 else \
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" ; \
116 fi ; \
117 done
118 @echo done at `date`
119
c676f606
DZ
120native:
121 @echo build started at `date`
122 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
123 rm -f /usr/cygnus/$(TAG)
124 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
21412832 125 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log)
c676f606
DZ
126 @echo done at `date`
127
5ba00487
DZ
128build-cygnus:
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" ; \
21412832 134 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
5ba00487
DZ
135 echo " completed successfully" ; \
136 fi \
137 else \
13ec8aad 138 echo "building $(canonhost) cross to $$i:" `date` ; \
5ba00487
DZ
139 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(tlog) && \
140 echo " completed successfully" ; \
141 fi ; \
142 done
143 @echo done at `date`
144
543cf4ac
DZ
145all-native:
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" ; \
153 done
154
155config:
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" ; \
161 else \
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" ; \
165 fi ; \
166 done
167
168
169build:
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" ; \
174 else \
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" ; \
178 fi ; \
179 done
180
181
1823build:
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" ; \
188 else \
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" ; \
192 fi ; \
193 done
194
195endif # host
196
197### Local Variables:
198### fill-column: 131
199### End:
This page took 0.034916 seconds and 4 git commands to generate.