Revert change making writing the archive map the standard. Instead, change
[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
26de3d0c 18DATE = 921213
543cf4ac
DZ
19
20TAG = latest-$(DATE)
21
26de3d0c 22INSTALLDIR = /cirdan/taxes/devo-test/$(TAG)
543cf4ac
DZ
23
24GCC = gcc -O -g
25CFLAGS = -O
26
27log = 1>$(canonhost)-build-log 2>&1
28tlog = 1> $(canonhost)-x-$$i-build-log 2>&1
29
30canonhost := $(shell $(TREE)/config.sub $(host))
31
32ifeq ($(canonhost),sparc-sun-sunos4.1.1)
33TARGETS = $(NATIVE) m68k-aout i386-aout a29k-amd-udi \
34 i960-vxworks m68k-coff m68k-vxworks \
35 i960-intel-nindy sparc-aout sparc-vxworks
36all: all-cygnus
37endif
38
39ifeq ($(canonhost),m68k-sun-sunos4.1.1)
40TARGETS = $(NATIVE) m68k-vxworks m68k-aout i386-aout
41GCC = gcc -O -g -msoft-float
42all: all-cygnus
43endif
44
45ifeq ($(canonhost),sparc-sun-solaris2)
46TARGETS = $(NATIVE) m68k-aout sparc-aout a29k-amd-udi
47all: all-cygnus
48endif
49
50ifeq ($(canonhost),mips-dec-ultrix)
51TARGETS = $(NATIVE) m68k-vxworks m68k-aout i960-vxworks \
52 sparc-vxworks m68k-coff i386-aout sparc-aout i960-intel-nindy
53CFLAGS =
54all: all-cygnus
55endif
56
57ifeq ($(canonhost),mips-sgi-irix4)
58TARGETS = $(NATIVE) m68k-vxworks m68k-aout
59all: all-cygnus
60endif
61
62ifeq ($(canonhost),rs6000-ibm-aix)
63TARGETS = $(NATIVE) m68k-vxworks i960-vxworks m68k-aout
64CFLAGS=-g
65all: all-cygnus
66endif
67
68ifeq ($(canonhost),m68k-hp-hpux)
69TARGETS = m68k-vxworks
70CC = cc +O1000 -Wp,-P
71CFLAGS =
72all: all-native
73endif
74
75ifeq ($(canonhost),hppa1.1-hp-hpux)
26de3d0c 76TARGETS = m68k-coff m68k-aout m68k-vxworks i960-vxworks a29k-amd-udi
e1b91f0b 77CC = cc
543cf4ac 78CFLAGS =
26de3d0c 79all: all-native
543cf4ac
DZ
80endif
81
82FLAGS_TO_PASS := \
83 "GCC=$(GCC)" \
84 "CFLAGS=$(CFLAGS)" \
85 "host=$(canonhost)"
86
87all-cygnus:
88 @echo build started at `date`
89 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
90 rm -f /usr/cygnus/$(TAG)
91 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
92 @for i in $(TARGETS) ; do \
93 if [ "$$i" = "native" ] ; then \
94 if [ ! -f $(canonhost)-3stage-done ] ; then \
95 echo "3staging $(canonhost) native" ; \
96 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(host)-stamp-3stage-done $(log) && \
97 echo " completed successfully" ; \
98 fi \
99 else \
100 echo "building $(canonhost) cross to $$i" ; \
101 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-cygnus $(tlog) && \
102 echo " completed successfully" ; \
103 fi ; \
104 done
105 @echo done at `date`
106
c676f606
DZ
107native:
108 @echo build started at `date`
109 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
110 rm -f /usr/cygnus/$(TAG)
111 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
112 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(host)-stamp-3stage-done $(log)
113 @echo done at `date`
114
5ba00487
DZ
115build-cygnus:
116 @echo build started at `date`
117 @for i in $(TARGETS) ; do \
118 if [ "$$i" = "native" ] ; then \
119 if [ ! -f $(canonhost)-3stage-done ] ; then \
120 echo "3staging $(canonhost) native" ; \
121 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(host)-stamp-3stage-done $(log) && \
122 echo " completed successfully" ; \
123 fi \
124 else \
13ec8aad 125 echo "building $(canonhost) cross to $$i:" `date` ; \
5ba00487
DZ
126 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(tlog) && \
127 echo " completed successfully" ; \
128 fi ; \
129 done
130 @echo done at `date`
131
543cf4ac
DZ
132all-native:
133 [ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
134 rm -f /usr/cygnus/$(TAG)
135 ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
136 @for i in $(TARGETS) ; do \
137 echo "building $(canonhost) cross to $$i" ; \
138 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native $(tlog) && \
139 echo " completed successfully" ; \
140 done
141
142config:
143 @for i in $(TARGETS) ; do \
144 if [ "$$i" = "native" ] ; then \
145 echo "config stage1 for $(canonhost)" ; \
146 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-config $(log) && \
147 echo " completed successfully" ; \
148 else \
149 echo "config $(canonhost) cross to $$i" ; \
150 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i do-native-config $(tlog) && \
151 echo " completed successfully" ; \
152 fi ; \
153 done
154
155
156build:
157 @for i in $(TARGETS) ; do \
158 if [ "$$i" = "native" ] ; then \
159 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) do1-build $(log) && \
160 echo " completed successfully" ; \
161 else \
162 echo "building $(canonhost) cross to $$i" ; \
163 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-native $(tlog) && \
164 echo " completed successfully" ; \
165 fi ; \
166 done
167
168
1693build:
170 @for i in $(TARGETS) ; do \
171 if [ "$$i" = "native" ] ; then \
172 echo "building 3stage for $(canonhost)" ; \
173 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) all $(log) && \
174 echo " completed successfully" ; \
175 else \
176 echo "building $(canonhost) cross to $$i" ; \
177 $(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build-cygnus $(tlog) && \
178 echo " completed successfully" ; \
179 fi ; \
180 done
181
182endif # host
183
184### Local Variables:
185### fill-column: 131
186### End:
This page took 0.036559 seconds and 4 git commands to generate.