Commit | Line | Data |
---|---|---|
eb02fd64 | 1 | # |
131a3881 | 2 | # Makefile for directory with subdirs to build. |
7fcfdcf7 | 3 | # Copyright (C) 1990, 1991, 1992 Free Software Foundation |
eb02fd64 | 4 | # |
4dfe09da RP |
5 | # This file is free software; you can redistribute it and/or modify |
6 | # it under the terms of the GNU General Public License as published by | |
7 | # the Free Software Foundation; either version 2 of the License, or | |
8 | # (at your option) any later version. | |
9 | # | |
10 | # This program is distributed in the hope that it will be useful, | |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | # GNU General Public License for more details. | |
14 | # | |
15 | # You should have received a copy of the GNU General Public License | |
16 | # along with this program; if not, write to the Free Software | |
17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
18 | # | |
f149eb99 | 19 | |
eb02fd64 | 20 | srcdir = . |
28f3b094 | 21 | |
4d714963 | 22 | prefix = /usr/local |
eb02fd64 | 23 | |
7fcfdcf7 SC |
24 | exec_prefix = $(prefix) |
25 | bindir = $(exec_prefix)/bin | |
26 | libdir = $(exec_prefix)/lib | |
2198e4ba | 27 | tooldir = $(libdir) |
7fcfdcf7 | 28 | |
51489233 ILT |
29 | program_transform_name = |
30 | ||
4d714963 | 31 | datadir = $(prefix)/lib |
7fcfdcf7 | 32 | mandir = $(prefix)/man |
4d714963 RP |
33 | man1dir = $(mandir)/man1 |
34 | man2dir = $(mandir)/man2 | |
35 | man3dir = $(mandir)/man3 | |
36 | man4dir = $(mandir)/man4 | |
37 | man5dir = $(mandir)/man5 | |
38 | man6dir = $(mandir)/man6 | |
39 | man7dir = $(mandir)/man7 | |
40 | man8dir = $(mandir)/man8 | |
41 | man9dir = $(mandir)/man9 | |
7fcfdcf7 | 42 | infodir = $(prefix)/info |
4d714963 RP |
43 | includedir = $(prefix)/include |
44 | docdir = $(datadir)/doc | |
45 | ||
46 | SHELL = /bin/sh | |
47 | ||
378fd382 | 48 | INSTALL = cp |
4d714963 RP |
49 | INSTALL_PROGRAM = $(INSTALL) |
50 | INSTALL_DATA = $(INSTALL) | |
3c8735af | 51 | |
440868a0 | 52 | AS = as |
ec342d7d | 53 | AR = ar |
b5329d84 | 54 | AR_FLAGS = rc |
e85e07cb | 55 | CC = cc |
f8a6ad66 | 56 | CFLAGS = -g |
a50b5d9d | 57 | $(start-sanitize-chill) |
7d9f0c54 MW |
58 | CHILLFLAGS = $(CFLAGS) |
59 | CHILL_LIB = -lchill | |
60 | $(end-sanitize-chill) | |
e85e07cb | 61 | CXX = gcc |
d1bea4c7 | 62 | CXXFLAGS = -g -O |
4d714963 | 63 | RANLIB = ranlib |
51489233 | 64 | NM = nm |
81246025 | 65 | GZIP = gzip |
eb02fd64 | 66 | |
98a33b6d | 67 | BISON = `if [ -f $${rootme}/byacc/byacc ] ; \ |
06a07944 | 68 | then echo $${rootme}/byacc/byacc ; \ |
378fd382 | 69 | else echo byacc ; \ |
06a07944 | 70 | fi` |
2645fb0c | 71 | |
98a33b6d | 72 | LEX = `if [ -f $${rootme}/flex/flex ] ; \ |
8b361a95 | 73 | then echo $${rootme}/flex/flex ; \ |
2198e4ba MT |
74 | else echo flex ; fi` |
75 | ||
6d681784 JG |
76 | MAKEINFO = `if [ -f $${rootme}/texinfo/makeinfo/makeinfo ] ; \ |
77 | then echo $${rootme}/texinfo/makeinfo/makeinfo ; \ | |
77806c3e | 78 | else echo makeinfo ; fi` |
b772d75e | 79 | |
f980fcfb JG |
80 | |
81 | # libraries that may need to be augmented on a system-by-system basis | |
82 | X11_LIB = -lX11 | |
83 | ||
e85e07cb | 84 | # compilers to use to create programs which must be run in the build |
440868a0 ILT |
85 | # environment. |
86 | CC_FOR_BUILD = $(CC) | |
e85e07cb | 87 | CXX_FOR_BUILD = $(CXX) |
440868a0 | 88 | |
9f73dd6a | 89 | SUBDIRS = "this is set via configure, don't edit this" |
6a3958b2 RP |
90 | OTHERS = |
91 | ||
a0f47eb7 | 92 | ALL = all.normal |
b26ff9d8 | 93 | INSTALL_TARGET = install.all |
fb660409 RP |
94 | |
95 | ### for debugging | |
96 | #GCCVERBOSE=-v | |
97 | ||
51489233 ILT |
98 | CC_FOR_TARGET = ` \ |
99 | if [ -f $${rootme}/gcc/Makefile ] ; then \ | |
31883f01 | 100 | echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \ |
51489233 | 101 | else \ |
378fd382 | 102 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
51489233 ILT |
103 | echo $(CC); \ |
104 | else \ | |
105 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ | |
106 | fi; \ | |
107 | fi` | |
108 | ||
7d9f0c54 MW |
109 | GCC_FOR_TARGET = ` \ |
110 | if [ -f $${rootme}/gcc/Makefile ] ; then \ | |
111 | echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \ | |
112 | else \ | |
113 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ | |
114 | echo $(CC); \ | |
115 | else \ | |
116 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ | |
117 | fi; \ | |
118 | fi` | |
119 | ||
120 | $(start-sanitize-chill) | |
121 | CHILL_FOR_TARGET = ` \ | |
122 | if [ -f $${rootme}/gcc/Makefile ] ; then \ | |
123 | echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/ -L$${rootme}/chillrt/; \ | |
124 | else \ | |
125 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ | |
126 | echo $(CC); \ | |
127 | else \ | |
128 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ | |
129 | fi; \ | |
130 | fi` | |
131 | $(end-sanitize-chill) | |
132 | ||
d1bea4c7 | 133 | CXX_FOR_TARGET = ` \ |
fca4f908 | 134 | if [ -f $${rootme}/gcc/Makefile ] ; then \ |
31883f01 | 135 | echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \ |
fca4f908 | 136 | else \ |
e85e07cb ILT |
137 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
138 | echo $(CXX); \ | |
fca4f908 MW |
139 | else \ |
140 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ | |
141 | fi; \ | |
142 | fi` | |
143 | ||
440868a0 ILT |
144 | AS_FOR_TARGET = ` \ |
145 | if [ -f $${rootme}/gas/Makefile ] ; then \ | |
146 | echo $${rootme}/gas/as.new ; \ | |
147 | else \ | |
e85e07cb | 148 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
440868a0 ILT |
149 | echo $(AS); \ |
150 | else \ | |
151 | t='$(program_transform_name)'; echo as | sed -e '' $$t ; \ | |
81246025 | 152 | fi; \ |
440868a0 ILT |
153 | fi` |
154 | ||
51489233 ILT |
155 | AR_FOR_TARGET = ` \ |
156 | if [ -f $${rootme}/binutils/Makefile ] ; then \ | |
157 | echo $${rootme}/binutils/ar ; \ | |
158 | else \ | |
378fd382 | 159 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
51489233 ILT |
160 | echo $(AR); \ |
161 | else \ | |
162 | t='$(program_transform_name)'; echo ar | sed -e '' $$t ; \ | |
81246025 | 163 | fi; \ |
51489233 ILT |
164 | fi` |
165 | ||
166 | RANLIB_FOR_TARGET = ` \ | |
167 | if [ -f $${rootme}/binutils/Makefile ] ; then \ | |
168 | echo $${rootme}/binutils/ranlib ; \ | |
169 | else \ | |
378fd382 | 170 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
51489233 ILT |
171 | echo $(RANLIB); \ |
172 | else \ | |
173 | t='$(program_transform_name)'; echo ranlib | sed -e '' $$t ; \ | |
81246025 | 174 | fi; \ |
51489233 ILT |
175 | fi` |
176 | ||
177 | NM_FOR_TARGET = ` \ | |
178 | if [ -f $${rootme}/binutils/Makefile ] ; then \ | |
179 | echo $${rootme}/binutils/nm ; \ | |
180 | else \ | |
378fd382 | 181 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
51489233 ILT |
182 | echo $(NM); \ |
183 | else \ | |
184 | t='$(program_transform_name)'; echo nm | sed -e '' $$t ; \ | |
81246025 | 185 | fi; \ |
51489233 ILT |
186 | fi` |
187 | ||
0ef4728f | 188 | # FIXME: This is badly named. |
51489233 ILT |
189 | XTRAFLAGS = ` \ |
190 | if [ -f $${rootme}/gcc/Makefile ] ; then \ | |
9d401625 ILT |
191 | if [ -f $${rootme}/newlib/Makefile ] ; then \ |
192 | echo -I$${rootme}/newlib/targ-include -I$${srcroot}/newlib/libc/include -I$${rootme}/gcc/include -nostdinc ; \ | |
51489233 | 193 | else \ |
9d401625 | 194 | echo -I$${rootme}/gcc/include ; \ |
51489233 ILT |
195 | fi ; \ |
196 | else \ | |
197 | echo ; \ | |
198 | fi` | |
23e3e7f9 | 199 | |
0e519240 | 200 | GNATS = all-gnats |
b1cceba2 | 201 | |
eb02fd64 | 202 | #### host and target specific makefile fragments come in here. |
ec342d7d | 203 | ### |
eb02fd64 | 204 | |
0ef4728f ILT |
205 | # Flags to pass down to all sub-makes. |
206 | # Please keep these in alphabetical order. | |
207 | BASE_FLAGS_TO_PASS = \ | |
2198e4ba | 208 | "AR_FLAGS=$(AR_FLAGS)" \ |
d09de70e | 209 | "AR_FOR_TARGET=$(AR_FOR_TARGET)" \ |
0ef4728f | 210 | "AS_FOR_TARGET=$(AS_FOR_TARGET)" \ |
378fd382 | 211 | "BISON=$(BISON)" \ |
378fd382 | 212 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ |
0ef4728f | 213 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ |
2198e4ba | 214 | "CFLAGS=$(CFLAGS)" \ |
7d9f0c54 MW |
215 | $(start-sanitize-chill)\ |
216 | "CHILLFLAGS=$(CHILLFLAGS)" \ | |
217 | "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \ | |
218 | "CHILL_LIB=$(CHILL_LIB)" \ | |
e9a050f9 | 219 | $(end-sanitize-chill)\ |
0ef4728f ILT |
220 | "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ |
221 | "CXXFLAGS=$(CXXFLAGS)" \ | |
222 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ | |
d09de70e | 223 | "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ |
2198e4ba MT |
224 | "INSTALL=$(INSTALL)" \ |
225 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
440868a0 | 226 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ |
378fd382 DZ |
227 | "LDFLAGS=$(LDFLAGS)" \ |
228 | "LEX=$(LEX)" \ | |
229 | "LOADLIBES=$(LOADLIBES)" \ | |
230 | "MAKEINFO=$(MAKEINFO)" \ | |
0ef4728f | 231 | "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ |
0e519240 | 232 | "GNATS=$(GNATS)" \ |
d09de70e | 233 | "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \ |
0ef4728f | 234 | "XTRAFLAGS_FOR_TARGET=$(XTRAFLAGS)" \ |
378fd382 DZ |
235 | "exec_prefix=$(exec_prefix)" \ |
236 | "prefix=$(prefix)" \ | |
237 | "tooldir=$(tooldir)" | |
2198e4ba | 238 | |
0ef4728f ILT |
239 | # Flags to pass down to most sub-makes, in which we're building with |
240 | # the host environment. | |
6d681784 | 241 | # If any variables are added here, they must be added to do-*, below. |
0ef4728f | 242 | EXTRA_HOST_FLAGS = \ |
6d681784 JG |
243 | 'AR=$(AR)' \ |
244 | 'AS=$(AS)' \ | |
245 | 'CC=$(CC)' \ | |
246 | 'CXX=$(CXX)' \ | |
247 | 'NM=$(NM)' \ | |
248 | 'RANLIB=$(RANLIB)' \ | |
249 | 'XTRAFLAGS=' | |
0ef4728f ILT |
250 | |
251 | FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) | |
252 | ||
d1bea4c7 DZ |
253 | # Flags that are concerned with the location of the X11 include files |
254 | # and library files | |
255 | X11_FLAGS_TO_PASS = \ | |
256 | "X11_INCLUDE_FLAGS=$(X11_INCLUDE_FLAGS)" \ | |
f980fcfb JG |
257 | "X11_LIB_FLAGS=$(X11_LIB_FLAGS)" \ |
258 | "X11_LIB=$(X11_LIB)" | |
d1bea4c7 | 259 | |
0ef4728f ILT |
260 | # Shell case of subdirectories which are built with the target environment. |
261 | TARGET_LIBS=libg++ | xiberty | newlib | |
262 | $(start-sanitize-chill) | |
263 | TARGET_LIBS=libg++ | xiberty | newlib | chillrt | |
264 | $(end-sanitize-chill) | |
265 | ||
266 | # Flags to pass down to makes which are built with the target environment. | |
267 | # The double $ decreases the length of the command line; the variables | |
268 | # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. | |
6d681784 | 269 | # If any variables are added here, they must be added to do-*, below. |
0ef4728f ILT |
270 | EXTRA_TARGET_FLAGS = \ |
271 | 'AR=$$(AR_FOR_TARGET)' \ | |
272 | 'AS=$$(AS_FOR_TARGET)' \ | |
273 | 'CC=$$(CC_FOR_TARGET)' \ | |
274 | 'CXX=$$(CXX_FOR_TARGET)' \ | |
275 | 'NM=$$(NM_FOR_TARGET)' \ | |
276 | 'RANLIB=$$(RANLIB_FOR_TARGET)' \ | |
277 | 'XTRAFLAGS=$$(XTRAFLAGS_FOR_TARGET)' | |
278 | ||
279 | TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) | |
51489233 | 280 | |
f4e414f1 ILT |
281 | # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it |
282 | # unfortunately needs the native compiler and the target ar and | |
0ef4728f | 283 | # ranlib. |
6d681784 | 284 | # If any variables are added here, they must be added to do-*, below. |
0ef4728f ILT |
285 | EXTRA_GCC_FLAGS = \ |
286 | 'AR=$$(AR_FOR_TARGET)' \ | |
6d681784 JG |
287 | 'AS=$(AS)' \ |
288 | 'CC=$(CC)' \ | |
289 | 'CXX=$(CXX)' \ | |
290 | 'NM=$(NM)' \ | |
0ef4728f | 291 | 'RANLIB=$$(RANLIB_FOR_TARGET)' \ |
6d681784 | 292 | 'XTRAFLAGS=' |
0ef4728f ILT |
293 | |
294 | GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) | |
f4e414f1 | 295 | |
fca4f908 MW |
296 | # The first rule in the file had better be this one. Don't put any above it. |
297 | all: $(ALL) | |
298 | ||
0ef4728f ILT |
299 | .PHONY: all check dvi info install-info install-info-dirs |
300 | .PHONY: do-info do-check do-dvi do-install-info | |
301 | .PHONY: do-clean do-mostlyclean do-distclean do-realclean | |
f8a6ad66 | 302 | .NOEXPORT: |
4d714963 | 303 | |
0ef4728f ILT |
304 | # Do a target for all the subdirectories. A ``make do-X'' will do a |
305 | # ``make X'' in all subdirectories (because, in general, X depends on | |
306 | # fdo-X, a ``make X'' will also do this, but it may do additional work | |
307 | # as well). | |
308 | # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once, | |
309 | # because it is so large that it can easily overflow the command line | |
310 | # length limit on some systems. | |
311 | do-info do-check do-dvi do-install-info do-clean do-mostlyclean do-distclean do-realclean: | |
312 | @target=`echo $@ | sed -e 's/^do-//'`; \ | |
313 | rootme=`pwd`; export rootme; \ | |
314 | srcroot=`cd $(srcdir); pwd`; export srcroot; \ | |
315 | for i in $(SUBDIRS); do \ | |
316 | if [ -f ./$$i/localenv ] || [ -f ./$$i/Makefile ]; then \ | |
317 | case $$i in \ | |
318 | $(TARGET_LIBS) ) \ | |
6d681784 JG |
319 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
320 | eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \ | |
321 | done; \ | |
0ef4728f ILT |
322 | ;; \ |
323 | gcc) \ | |
6d681784 JG |
324 | for flag in $(EXTRA_GCC_FLAGS); do \ |
325 | eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \ | |
326 | done; \ | |
0ef4728f ILT |
327 | ;; \ |
328 | *) \ | |
6d681784 JG |
329 | for flag in $(EXTRA_HOST_FLAGS); do \ |
330 | eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \ | |
331 | done; \ | |
0ef4728f ILT |
332 | ;; \ |
333 | esac ; \ | |
6d681784 | 334 | export AR AS CC CXX NM RANLIB XTRAFLAGS; \ |
0ef4728f | 335 | if (cd ./$$i; \ |
6d681784 JG |
336 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
337 | "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \ | |
338 | "RANLIB=$${RANLIB}" "XTRAFLAGS=$${XTRAFLAGS}" \ | |
339 | $${target}); \ | |
0ef4728f ILT |
340 | then true; else exit 1; fi; \ |
341 | else true; fi; \ | |
342 | done | |
fb90daeb | 343 | |
0ef4728f ILT |
344 | info: do-info |
345 | check: do-check | |
346 | dvi: do-dvi | |
9a9e8e7f | 347 | |
0ef4728f | 348 | install-info: install-info-dirs do-install-info dir.info |
9a9e8e7f | 349 | $(INSTALL_DATA) dir.info $(infodir)/dir.info |
4d714963 | 350 | |
0ef4728f ILT |
351 | do-install-info: install-info-dirs |
352 | ||
b1cceba2 | 353 | all.normal: all-m4 all-autoconf all-libiberty all-mmalloc all-texinfo \ |
868ebe79 | 354 | all-byacc all-flex all-opcodes all-bfd all-ld all-gas all-tgas \ |
675e8ac9 | 355 | all-gcc all-binutils all-libg++ all-readline all-sim all-gdb \ |
c4fb14b7 | 356 | all-make all-rcs all-cvs all-diff all-grep \ |
98a33b6d | 357 | all-patch all-emacs all-ispell all-etc \ |
ffce44a0 | 358 | all-tcl all-tk all-expect \ |
d405f5be DZ |
359 | all-newlib \ |
360 | $(start-sanitize-chill) \ | |
361 | all-chillrt \ | |
362 | $(end-sanitize-chill) \ | |
0e519240 | 363 | all-gprof all-gnats all-send-pr all-libm all-deja-gnu \ |
b1cceba2 | 364 | all-fileutils all-find all-gawk all-sed all-shellutils \ |
07362bd9 DZ |
365 | all-textutils all-time all-wdiff all-uudecode \ |
366 | all-hello all-tar all-gzip all-indent all-recode | |
b1cceba2 | 367 | |
dcbfc14d | 368 | |
dfa891fc | 369 | all.cross: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \ |
675e8ac9 | 370 | all-opcodes all-bfd all-readline all-sim \ |
d405f5be DZ |
371 | all-gdb all-binutils all-gcc all-newlib \ |
372 | $(start-sanitize-chill) \ | |
373 | all-chillrt \ | |
374 | $(end-sanitize-chill) \ | |
375 | all-deja-gnu | |
4d714963 | 376 | |
0ef4728f | 377 | .PHONY: clean distclean mostlyclean realclean local-clean local-distclean |
3b30df82 | 378 | |
0ef4728f | 379 | local-clean: |
7fed4078 | 380 | -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E |
3b30df82 | 381 | |
0ef4728f | 382 | local-distclean: |
7fed4078 | 383 | -rm -f Makefile config.status |
7fcfdcf7 | 384 | |
0ef4728f ILT |
385 | clean: do-clean local-clean |
386 | mostlyclean: do-mostlyclean local-clean | |
387 | distclean: do-distclean local-clean local-distclean | |
388 | realclean: do-realclean local-clean local-distclean | |
389 | ||
b1cceba2 DZ |
390 | uninstall: |
391 | @echo "the uninstall target is not supported in this tree" | |
4d714963 | 392 | |
98a33b6d | 393 | install: $(INSTALL_TARGET) |
8b361a95 SEF |
394 | -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \ |
395 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi | |
396 | -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi | |
b26ff9d8 | 397 | |
06a07944 RP |
398 | install.all: install-no-fixedincludes |
399 | @if [ -f ./gcc/Makefile ] ; then \ | |
400 | rootme=`pwd` ; export rootme ; \ | |
401 | (cd ./gcc; \ | |
402 | $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ | |
403 | else \ | |
404 | true ; \ | |
405 | fi | |
5a63b336 | 406 | |
dfa891fc DZ |
407 | install-no-fixedincludes: install-dirs gcc-no-fixedincludes \ |
408 | install-autoconf \ | |
409 | install-bfd \ | |
410 | install-binutils \ | |
411 | install-byacc \ | |
07362bd9 DZ |
412 | $(start-sanitize-chill) \ |
413 | install-chillrt \ | |
414 | $(end-sanitize-chill) \ | |
dfa891fc | 415 | install-cvs \ |
fca4f908 | 416 | install-deja-gnu \ |
07362bd9 | 417 | install-diff \ |
dfa891fc | 418 | install-emacs \ |
98a33b6d | 419 | install-etc \ |
ffce44a0 | 420 | install-expect \ |
07362bd9 DZ |
421 | install-fileutils \ |
422 | install-find \ | |
dfa891fc DZ |
423 | install-flex \ |
424 | install-gas \ | |
07362bd9 | 425 | install-gawk \ |
dfa891fc DZ |
426 | install-gdb \ |
427 | install-glob \ | |
428 | install-gprof \ | |
429 | install-grep \ | |
07362bd9 DZ |
430 | install-gzip \ |
431 | install-hello \ | |
432 | install-indent \ | |
dfa891fc DZ |
433 | install-ispell \ |
434 | install-ld \ | |
435 | install-libg++ \ | |
436 | install-libiberty \ | |
437 | install-libm \ | |
07362bd9 | 438 | install-m4 \ |
dfa891fc DZ |
439 | install-make \ |
440 | install-mmalloc \ | |
441 | install-newlib \ | |
07362bd9 | 442 | install-opcodes \ |
dfa891fc | 443 | install-patch \ |
0e519240 | 444 | install-gnats \ |
dfa891fc DZ |
445 | install-rcs \ |
446 | install-readline \ | |
9f33c264 | 447 | install-recode \ |
07362bd9 | 448 | install-sed \ |
98941fab | 449 | install-send-pr \ |
07362bd9 DZ |
450 | install-shellutils \ |
451 | install-sim \ | |
452 | install-tar \ | |
ffce44a0 DZ |
453 | install-tcl \ |
454 | install-texinfo \ | |
07362bd9 DZ |
455 | install-textutils \ |
456 | install-time \ | |
457 | install-tk \ | |
458 | install-uudecode \ | |
459 | install-wdiff | |
d1bea4c7 | 460 | |
07362bd9 | 461 | # |
5cc24596 PB |
462 | # Install the gcc headers files, but not the fixed include files, |
463 | # which we are not allowed to distribute. This rule is very dependent | |
464 | # on the workings of the gcc Makefile.in. | |
465 | # | |
06a07944 | 466 | gcc-no-fixedincludes: |
5cc24596 PB |
467 | @if [ -f ./gcc/Makefile ]; then \ |
468 | rm -rf gcc/tmp-include; \ | |
469 | mv gcc/include gcc/tmp-include 2>/dev/null; \ | |
470 | mkdir gcc/include; \ | |
471 | touch gcc/stmp-fixincludes; \ | |
472 | rm -f gcc/stmp-headers; \ | |
473 | rootme=`pwd`; export rootme; \ | |
474 | srcroot=`cd $(srcdir); pwd` ; export srcroot; \ | |
475 | (cd ./gcc; \ | |
476 | $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ | |
477 | rm -rf gcc/include; \ | |
478 | mv gcc/tmp-include gcc/include 2>/dev/null; \ | |
479 | else true; fi | |
dcbfc14d DZ |
480 | |
481 | install.cross: install-dirs install-libiberty install-mmalloc \ | |
aa06ff7e | 482 | install-binutils install-opcodes install-byacc install-flex \ |
dfa891fc DZ |
483 | install-ld install-gas install-readline \ |
484 | install-glob install-gdb install-mmalloc \ | |
d405f5be DZ |
485 | install-newlib \ |
486 | $(start-sanitize-chill) \ | |
487 | install-chillrt \ | |
488 | $(end-sanitize-chill) \ | |
489 | install-gcc install-etc install-deja-gnu | |
fca4f908 | 490 | |
07362bd9 DZ |
491 | ### gzip |
492 | all-gzip: all-libiberty | |
493 | @if [ -f ./gzip/Makefile ] ; then \ | |
494 | rootme=`pwd` ; export rootme ; \ | |
495 | (cd ./gzip; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
496 | else \ | |
497 | true ; \ | |
498 | fi | |
499 | ||
500 | install-gzip: force | |
501 | @if [ -f ./gzip/Makefile ] ; then \ | |
502 | rootme=`pwd` ; export rootme ; \ | |
503 | (cd ./gzip; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
504 | else \ | |
505 | true ; \ | |
506 | fi | |
507 | ||
508 | ### hello | |
509 | all-hello: all-libiberty | |
510 | @if [ -f ./hello/Makefile ] ; then \ | |
511 | rootme=`pwd` ; export rootme ; \ | |
512 | (cd ./hello; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
513 | else \ | |
514 | true ; \ | |
515 | fi | |
516 | ||
517 | install-hello: force | |
518 | @if [ -f ./hello/Makefile ] ; then \ | |
519 | rootme=`pwd` ; export rootme ; \ | |
520 | (cd ./hello; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
521 | else \ | |
522 | true ; \ | |
523 | fi | |
524 | ||
525 | ### recode | |
526 | all-recode: all-libiberty | |
527 | @if [ -f ./recode/Makefile ] ; then \ | |
528 | rootme=`pwd` ; export rootme ; \ | |
529 | (cd ./recode; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
530 | else \ | |
531 | true ; \ | |
532 | fi | |
533 | ||
534 | install-recode: force | |
535 | @if [ -f ./recode/Makefile ] ; then \ | |
536 | rootme=`pwd` ; export rootme ; \ | |
537 | (cd ./recode; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
538 | else \ | |
539 | true ; \ | |
540 | fi | |
541 | ||
542 | ### indent | |
543 | all-indent: force | |
544 | @if [ -f ./indent/Makefile ] ; then \ | |
545 | rootme=`pwd` ; export rootme ; \ | |
546 | (cd ./indent; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
547 | else \ | |
548 | true ; \ | |
549 | fi | |
550 | ||
551 | install-indent: force | |
552 | @if [ -f ./indent/Makefile ] ; then \ | |
553 | rootme=`pwd` ; export rootme ; \ | |
554 | (cd ./indent; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
555 | else \ | |
556 | true ; \ | |
557 | fi | |
558 | ||
559 | ### tar | |
560 | all-tar: all-libiberty | |
561 | @if [ -f ./tar/Makefile ] ; then \ | |
562 | rootme=`pwd` ; export rootme ; \ | |
563 | (cd ./tar; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
564 | else \ | |
565 | true ; \ | |
566 | fi | |
567 | ||
568 | install-tar: force | |
569 | @if [ -f ./tar/Makefile ] ; then \ | |
570 | rootme=`pwd` ; export rootme ; \ | |
571 | (cd ./tar; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
572 | else \ | |
573 | true ; \ | |
574 | fi | |
575 | ||
576 | ||
fca4f908 MW |
577 | ### deja-gnu |
578 | all-deja-gnu: force | |
579 | @if [ -f ./deja-gnu/Makefile ] ; then \ | |
580 | rootme=`pwd` ; export rootme ; \ | |
581 | (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
582 | else \ | |
583 | true ; \ | |
584 | fi | |
585 | ||
fca4f908 MW |
586 | install-deja-gnu: force |
587 | @if [ -f ./deja-gnu/Makefile ] ; then \ | |
588 | rootme=`pwd` ; export rootme ; \ | |
589 | (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
590 | else \ | |
591 | true ; \ | |
592 | fi | |
23e3e7f9 | 593 | |
618f57a9 RP |
594 | ### autoconf |
595 | all-autoconf: force | |
a5cdd8af | 596 | @if [ -f ./autoconf/Makefile ] ; then \ |
618f57a9 | 597 | rootme=`pwd` ; export rootme ; \ |
a5cdd8af | 598 | (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
618f57a9 RP |
599 | else \ |
600 | true ; \ | |
601 | fi | |
602 | ||
618f57a9 | 603 | install-autoconf: force |
06a07944 | 604 | @if [ -f ./autoconf/Makefile ] ; then \ |
618f57a9 | 605 | rootme=`pwd` ; export rootme ; \ |
98a33b6d DZ |
606 | (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
607 | else \ | |
608 | true ; \ | |
609 | fi | |
610 | ||
611 | ### etc | |
612 | all-etc: force | |
613 | @if [ -f ./etc/Makefile ] ; then \ | |
614 | rootme=`pwd` ; export rootme ; \ | |
615 | (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
616 | else \ | |
617 | true ; \ | |
618 | fi | |
619 | ||
98a33b6d DZ |
620 | install-etc: force |
621 | @if [ -f ./etc/Makefile ] ; then \ | |
622 | rootme=`pwd` ; export rootme ; \ | |
623 | (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
618f57a9 RP |
624 | else \ |
625 | true ; \ | |
626 | fi | |
627 | ||
4d714963 | 628 | ### libiberty |
c4fb14b7 | 629 | all-libiberty: force |
06a07944 | 630 | @if [ -f ./libiberty/Makefile ] ; then \ |
77806c3e | 631 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 632 | (cd ./libiberty; \ |
2198e4ba | 633 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
634 | else \ |
635 | true ; \ | |
636 | fi | |
4d714963 | 637 | |
4d714963 | 638 | install-libiberty: force |
06a07944 | 639 | @if [ -f ./libiberty/Makefile ] ; then \ |
77806c3e | 640 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 641 | (cd ./libiberty; \ |
2198e4ba | 642 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
643 | else \ |
644 | true ; \ | |
645 | fi | |
23e3e7f9 | 646 | |
fb90daeb ME |
647 | ### xiberty |
648 | all-xiberty: all-gcc all-newlib | |
649 | @if [ -f ./xiberty/Makefile ] ; then \ | |
650 | rootme=`pwd` ; export rootme ; \ | |
651 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ | |
652 | (cd ./xiberty; \ | |
1b9b5090 | 653 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \ |
fb90daeb ME |
654 | else \ |
655 | true ; \ | |
656 | fi | |
657 | ||
fb90daeb ME |
658 | install-xiberty: force |
659 | @if [ -f ./xiberty/Makefile ] ; then \ | |
660 | rootme=`pwd` ; export rootme ; \ | |
661 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ | |
662 | (cd ./xiberty; \ | |
1b9b5090 | 663 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \ |
fb90daeb ME |
664 | else \ |
665 | true ; \ | |
666 | fi | |
667 | ||
66cfe047 | 668 | ### mmalloc |
c4fb14b7 | 669 | all-mmalloc: force |
06a07944 | 670 | @if [ -f ./mmalloc/Makefile ] ; then \ |
66cfe047 SG |
671 | rootme=`pwd` ; export rootme ; \ |
672 | (cd ./mmalloc; \ | |
2198e4ba | 673 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
66cfe047 SG |
674 | else \ |
675 | true ; \ | |
676 | fi | |
66cfe047 | 677 | |
66cfe047 | 678 | install-mmalloc: force |
06a07944 | 679 | @if [ -f ./mmalloc/Makefile ] ; then \ |
66cfe047 SG |
680 | rootme=`pwd` ; export rootme ; \ |
681 | (cd ./mmalloc; \ | |
2198e4ba | 682 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
66cfe047 SG |
683 | else \ |
684 | true ; \ | |
685 | fi | |
686 | ||
4d714963 | 687 | ### texinfo |
c4fb14b7 | 688 | all-texinfo: all-libiberty |
06a07944 | 689 | @if [ -f ./texinfo/Makefile ] ; then \ |
77806c3e | 690 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 691 | (cd ./texinfo; \ |
2198e4ba | 692 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
693 | else \ |
694 | true ; \ | |
695 | fi | |
4d714963 | 696 | |
4d714963 | 697 | install-texinfo: force |
06a07944 | 698 | @if [ -f ./texinfo/Makefile ] ; then \ |
77806c3e | 699 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 700 | (cd ./texinfo; \ |
2198e4ba | 701 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
702 | else \ |
703 | true ; \ | |
704 | fi | |
23e3e7f9 | 705 | |
4d714963 | 706 | ### bfd |
c4fb14b7 | 707 | all-bfd: force |
06a07944 | 708 | @if [ -f ./bfd/Makefile ] ; then \ |
77806c3e | 709 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 710 | (cd ./bfd; \ |
2198e4ba | 711 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
712 | else \ |
713 | true ; \ | |
714 | fi | |
4d714963 | 715 | |
4d714963 | 716 | install-bfd: force |
06a07944 | 717 | @if [ -f ./bfd/Makefile ] ; then \ |
77806c3e | 718 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 719 | (cd ./bfd; \ |
2198e4ba | 720 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
721 | else \ |
722 | true ; \ | |
723 | fi | |
23e3e7f9 | 724 | |
aa06ff7e SC |
725 | |
726 | ### opcodes | |
727 | all-opcodes: force | |
728 | @if [ -f ./opcodes/Makefile ] ; then \ | |
729 | rootme=`pwd` ; export rootme ; \ | |
a904db53 | 730 | (cd ./opcodes; \ |
aa06ff7e SC |
731 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
732 | else \ | |
733 | true ; \ | |
734 | fi | |
735 | ||
aa06ff7e SC |
736 | install-opcodes: force |
737 | @if [ -f ./opcodes/Makefile ] ; then \ | |
738 | rootme=`pwd` ; export rootme ; \ | |
a904db53 | 739 | (cd ./opcodes; \ |
aa06ff7e SC |
740 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
741 | else \ | |
742 | true ; \ | |
743 | fi | |
744 | ||
4d714963 | 745 | ### binutils |
aa06ff7e | 746 | all-binutils: all-opcodes all-libiberty all-bfd all-flex |
06a07944 | 747 | @if [ -f ./binutils/Makefile ] ; then \ |
77806c3e | 748 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 749 | (cd ./binutils; \ |
2198e4ba | 750 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
751 | else \ |
752 | true ; \ | |
753 | fi | |
4d714963 | 754 | |
4d714963 | 755 | install-binutils: force |
06a07944 | 756 | @if [ -f ./binutils/Makefile ] ; then \ |
77806c3e | 757 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 758 | (cd ./binutils; \ |
2198e4ba | 759 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
7fcfdcf7 SC |
760 | else \ |
761 | true ; \ | |
762 | fi | |
763 | ||
764 | ### newlib | |
51489233 | 765 | all-newlib: all-binutils all-ld all-gas all-gcc |
06a07944 | 766 | @if [ -f ./newlib/Makefile ] ; then \ |
7fcfdcf7 | 767 | rootme=`pwd` ; export rootme ; \ |
51489233 | 768 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
7fcfdcf7 | 769 | (cd ./newlib; \ |
51489233 | 770 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \ |
7fcfdcf7 SC |
771 | else \ |
772 | true ; \ | |
773 | fi | |
7fcfdcf7 | 774 | |
7fcfdcf7 | 775 | install-newlib: force |
06a07944 | 776 | @if [ -f ./newlib/Makefile ] ; then \ |
7fcfdcf7 | 777 | rootme=`pwd` ; export rootme ; \ |
51489233 | 778 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
7fcfdcf7 | 779 | (cd ./newlib; \ |
51489233 | 780 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
781 | else \ |
782 | true ; \ | |
783 | fi | |
23e3e7f9 | 784 | |
bc2a2c17 FF |
785 | ### start-sanitize-chill |
786 | ### chillrt | |
9f73dd6a | 787 | all-chillrt: all-binutils all-ld all-gas all-gcc all-newlib |
bc2a2c17 FF |
788 | @if [ -f ./chillrt/Makefile ] ; then \ |
789 | rootme=`pwd` ; export rootme ; \ | |
790 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ | |
791 | (cd ./chillrt; \ | |
792 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \ | |
793 | else \ | |
794 | true ; \ | |
795 | fi | |
796 | ||
797 | install-chillrt: force | |
798 | @if [ -f ./chillrt/Makefile ] ; then \ | |
799 | rootme=`pwd` ; export rootme ; \ | |
800 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ | |
801 | (cd ./chillrt; \ | |
802 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \ | |
803 | else \ | |
804 | true ; \ | |
805 | fi | |
806 | ### end-sanitize-chill | |
807 | ||
9a14a29d | 808 | ### gprof |
c4fb14b7 | 809 | all-gprof: all-libiberty all-bfd |
06a07944 | 810 | @if [ -f ./gprof/Makefile ] ; then \ |
51489233 ILT |
811 | rootme=`pwd` ; export rootme ; \ |
812 | (cd ./gprof; \ | |
813 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
9a14a29d SEF |
814 | else \ |
815 | true ; \ | |
816 | fi | |
9a14a29d | 817 | |
9a14a29d | 818 | install-gprof: force |
06a07944 | 819 | @if [ -f ./gprof/Makefile ] ; then \ |
51489233 ILT |
820 | rootme=`pwd` ; export rootme ; \ |
821 | (cd ./gprof; \ | |
822 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
9a14a29d SEF |
823 | else \ |
824 | true ; \ | |
825 | fi | |
826 | ||
4d714963 | 827 | ### byacc |
c4fb14b7 | 828 | all-byacc: force |
06a07944 | 829 | @if [ -f ./byacc/Makefile ] ; then \ |
77806c3e | 830 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 831 | (cd ./byacc; \ |
2198e4ba | 832 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
833 | else \ |
834 | true ; \ | |
835 | fi | |
4d714963 | 836 | |
4d714963 | 837 | install-byacc: force |
06a07944 | 838 | @if [ -f ./byacc/Makefile ] ; then \ |
77806c3e | 839 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 840 | (cd ./byacc; \ |
2198e4ba | 841 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
842 | else \ |
843 | true ; \ | |
844 | fi | |
23e3e7f9 | 845 | |
dcbfc14d | 846 | ### flex |
2198e4ba | 847 | all-flex: all-libiberty |
06a07944 | 848 | @if [ -f ./flex/Makefile ] ; then \ |
dcbfc14d DZ |
849 | rootme=`pwd` ; export rootme ; \ |
850 | (cd ./flex; \ | |
2198e4ba | 851 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
dcbfc14d DZ |
852 | else \ |
853 | true ; \ | |
854 | fi | |
855 | ||
dcbfc14d | 856 | install-flex: force |
06a07944 | 857 | @if [ -f ./flex/Makefile ] ; then \ |
dcbfc14d DZ |
858 | rootme=`pwd` ; export rootme ; \ |
859 | (cd ./flex; \ | |
2198e4ba | 860 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
dcbfc14d DZ |
861 | else \ |
862 | true ; \ | |
863 | fi | |
4d714963 | 864 | ### gcc |
cb4005ff | 865 | all-gcc: all-libiberty all-byacc all-binutils all-gas |
06a07944 | 866 | @if [ -f ./gcc/Makefile ] ; then \ |
77806c3e | 867 | rootme=`pwd` ; export rootme ; \ |
f4e414f1 | 868 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
7fcfdcf7 | 869 | (cd ./gcc; \ |
f4e414f1 | 870 | $(MAKE) $(GCC_FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
871 | else \ |
872 | true ; \ | |
873 | fi | |
4d714963 | 874 | |
c4fb14b7 | 875 | install-gcc: force |
06a07944 | 876 | @if [ -f ./gcc/Makefile ] ; then \ |
77806c3e | 877 | rootme=`pwd` ; export rootme ; \ |
f4e414f1 | 878 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
7fcfdcf7 | 879 | (cd ./gcc; \ |
f4e414f1 | 880 | $(MAKE) $(GCC_FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
881 | else \ |
882 | true ; \ | |
883 | fi | |
23e3e7f9 | 884 | |
4d714963 | 885 | ### readline |
c4fb14b7 | 886 | all-readline: force |
06a07944 | 887 | @if [ -f ./readline/Makefile ] ; then \ |
77806c3e | 888 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 889 | (cd ./readline; \ |
2198e4ba | 890 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
891 | else \ |
892 | true ; \ | |
893 | fi | |
4d714963 | 894 | |
4d714963 | 895 | install-readline: force |
06a07944 | 896 | @if [ -f ./readline/Makefile ] ; then \ |
77806c3e | 897 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 898 | (cd ./readline; \ |
2198e4ba | 899 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
900 | else \ |
901 | true ; \ | |
902 | fi | |
23e3e7f9 | 903 | |
4d714963 | 904 | ### glob |
c4fb14b7 | 905 | all-glob: force |
06a07944 | 906 | @if [ -f ./glob/Makefile ] ; then \ |
77806c3e | 907 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 908 | (cd ./glob; \ |
2198e4ba | 909 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
910 | else \ |
911 | true ; \ | |
912 | fi | |
4d714963 | 913 | |
4d714963 | 914 | install-glob: force |
06a07944 | 915 | @if [ -f ./glob/Makefile ] ; then \ |
77806c3e | 916 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 917 | (cd ./glob; \ |
2198e4ba | 918 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
919 | else \ |
920 | true ; \ | |
921 | fi | |
23e3e7f9 | 922 | |
4d714963 | 923 | ### gas |
a904db53 | 924 | all-gas: all-libiberty all-opcodes all-bfd |
06a07944 | 925 | @if [ -f ./gas/Makefile ] ; then \ |
77806c3e | 926 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 927 | (cd ./gas; \ |
2198e4ba | 928 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
929 | else \ |
930 | true ; \ | |
931 | fi | |
4d714963 | 932 | |
4d714963 | 933 | install-gas: force |
06a07944 | 934 | @if [ -f ./gas/Makefile ] ; then \ |
77806c3e | 935 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 936 | (cd ./gas; \ |
2198e4ba | 937 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
938 | else \ |
939 | true ; \ | |
940 | fi | |
23e3e7f9 | 941 | |
3ad0ef37 SC |
942 | ### gas |
943 | all-tgas: all-libiberty all-bfd | |
944 | @if [ -f ./tgas/Makefile ] ; then \ | |
945 | rootme=`pwd` ; export rootme ; \ | |
946 | (cd ./tgas; \ | |
947 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
948 | else \ | |
949 | true ; \ | |
950 | fi | |
951 | ||
952 | ||
4d714963 | 953 | ### ld |
6995fe83 | 954 | all-ld: all-libiberty all-bfd all-byacc all-flex |
06a07944 | 955 | @if [ -f ./ld/Makefile ] ; then \ |
77806c3e | 956 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 957 | (cd ./ld; \ |
2198e4ba | 958 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
959 | else \ |
960 | true ; \ | |
961 | fi | |
a0f47eb7 | 962 | |
4d714963 | 963 | install-ld: force |
06a07944 | 964 | @if [ -f ./ld/Makefile ] ; then \ |
77806c3e | 965 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 966 | (cd ./ld; \ |
2198e4ba | 967 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
968 | else \ |
969 | true ; \ | |
970 | fi | |
23e3e7f9 | 971 | |
4d714963 | 972 | ### gdb |
a904db53 | 973 | all-gdb: all-bfd all-opcodes all-libiberty all-mmalloc all-readline all-glob all-byacc |
06a07944 | 974 | @if [ -f ./gdb/Makefile ] ; then \ |
77806c3e | 975 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 976 | (cd ./gdb; \ |
2198e4ba | 977 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
978 | else \ |
979 | true ; \ | |
980 | fi | |
4d714963 | 981 | |
4d714963 | 982 | install-gdb: force |
06a07944 | 983 | @if [ -f ./gdb/Makefile ] ; then \ |
77806c3e | 984 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 985 | (cd ./gdb; \ |
2198e4ba | 986 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
987 | else \ |
988 | true ; \ | |
989 | fi | |
23e3e7f9 | 990 | |
4d714963 | 991 | ### make |
c4fb14b7 | 992 | all-make: all-libiberty |
06a07944 | 993 | @if [ -f ./make/Makefile ] ; then \ |
77806c3e | 994 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 995 | (cd ./make; \ |
2198e4ba | 996 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
997 | else \ |
998 | true ; \ | |
999 | fi | |
4d714963 | 1000 | |
4d714963 | 1001 | install-make: force |
06a07944 | 1002 | @if [ -f ./make/Makefile ] ; then \ |
77806c3e | 1003 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1004 | (cd ./make; \ |
2198e4ba | 1005 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
1006 | else \ |
1007 | true ; \ | |
1008 | fi | |
23e3e7f9 | 1009 | |
4d714963 | 1010 | ### diff |
7e57a051 | 1011 | all-diff: all-libiberty |
06a07944 | 1012 | @if [ -f ./diff/Makefile ] ; then \ |
77806c3e | 1013 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1014 | (cd ./diff; \ |
2198e4ba | 1015 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
1016 | else \ |
1017 | true ; \ | |
1018 | fi | |
4d714963 | 1019 | |
4d714963 | 1020 | install-diff: force |
06a07944 | 1021 | @if [ -f ./diff/Makefile ] ; then \ |
77806c3e | 1022 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1023 | (cd ./diff/; \ |
2198e4ba | 1024 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
1025 | else \ |
1026 | true ; \ | |
1027 | fi | |
23e3e7f9 | 1028 | |
4d714963 | 1029 | ### grep |
c4fb14b7 | 1030 | all-grep: force |
06a07944 | 1031 | @if [ -f ./grep/Makefile ] ; then \ |
77806c3e | 1032 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1033 | (cd ./grep; \ |
2198e4ba | 1034 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
1035 | else \ |
1036 | true ; \ | |
1037 | fi | |
4d714963 | 1038 | |
4d714963 | 1039 | install-grep: force |
06a07944 | 1040 | @if [ -f ./grep/Makefile ] ; then \ |
77806c3e | 1041 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1042 | (cd ./grep; \ |
2198e4ba MT |
1043 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
1044 | else \ | |
1045 | true ; \ | |
1046 | fi | |
1047 | ||
1048 | ### rcs | |
1049 | all-rcs: force | |
06a07944 | 1050 | @if [ -f ./rcs/Makefile ] ; then \ |
2198e4ba MT |
1051 | rootme=`pwd` ; export rootme ; \ |
1052 | (cd ./rcs; \ | |
1053 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
b26ff9d8 RP |
1054 | else \ |
1055 | true ; \ | |
1056 | fi | |
4d714963 | 1057 | |
c4fb14b7 | 1058 | install-rcs: force |
06a07944 | 1059 | @if [ -f ./rcs/Makefile ] ; then \ |
77806c3e | 1060 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1061 | (cd ./rcs; \ |
2198e4ba | 1062 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
1063 | else \ |
1064 | true ; \ | |
1065 | fi | |
23e3e7f9 | 1066 | |
4d714963 | 1067 | ### cvs |
c4fb14b7 | 1068 | all-cvs: force |
06a07944 | 1069 | @if [ -f ./cvs/Makefile ] ; then \ |
77806c3e | 1070 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1071 | (cd ./cvs; \ |
2198e4ba | 1072 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
1073 | else \ |
1074 | true ; \ | |
1075 | fi | |
4d714963 | 1076 | |
c4fb14b7 | 1077 | install-cvs: force |
06a07944 | 1078 | @if [ -f ./cvs/Makefile ] ; then \ |
77806c3e | 1079 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1080 | (cd ./cvs; \ |
2198e4ba | 1081 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
1082 | else \ |
1083 | true ; \ | |
1084 | fi | |
23e3e7f9 | 1085 | |
7c9feeb7 | 1086 | ### patch |
c4fb14b7 | 1087 | all-patch: force |
06a07944 | 1088 | @if [ -f ./patch/Makefile ] ; then \ |
77806c3e | 1089 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1090 | (cd ./patch; \ |
2198e4ba | 1091 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
7c9feeb7 RP |
1092 | else \ |
1093 | true ; \ | |
1094 | fi | |
1095 | ||
c4fb14b7 | 1096 | install-patch: force |
06a07944 | 1097 | @if [ -f ./patch/Makefile ] ; then \ |
77806c3e | 1098 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1099 | (cd ./patch; \ |
2198e4ba | 1100 | $(MAKE) $(FLAGS_TO_PASS) \ |
7c9feeb7 | 1101 | bindir=$(bindir) \ |
2198e4ba | 1102 | man1dir=$(man1dir) install) ; \ |
7c9feeb7 RP |
1103 | else \ |
1104 | true ; \ | |
1105 | fi | |
1106 | ||
4d714963 | 1107 | ### emacs |
c4fb14b7 | 1108 | all-emacs: force |
06a07944 | 1109 | @if [ -f ./emacs/Makefile ] ; then \ |
77806c3e | 1110 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1111 | (cd ./emacs; \ |
d1bea4c7 | 1112 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
1113 | else \ |
1114 | true ; \ | |
1115 | fi | |
4d714963 | 1116 | |
c4fb14b7 | 1117 | install-emacs: force |
06a07944 | 1118 | @if [ -f ./emacs/Makefile ] ; then \ |
77806c3e | 1119 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1120 | (cd ./emacs; \ |
d1bea4c7 | 1121 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
1122 | else \ |
1123 | true ; \ | |
1124 | fi | |
23e3e7f9 | 1125 | |
4d714963 | 1126 | ### ispell |
c4fb14b7 | 1127 | all-ispell: all-emacs |
06a07944 | 1128 | @if [ -f ./ispell/Makefile ] ; then \ |
77806c3e | 1129 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1130 | (cd ./ispell; \ |
2198e4ba | 1131 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
1132 | else \ |
1133 | true ; \ | |
1134 | fi | |
4d714963 | 1135 | |
c4fb14b7 | 1136 | install-ispell: force |
06a07944 | 1137 | @if [ -f ./ispell/Makefile ] ; then \ |
77806c3e | 1138 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1139 | (cd ./ispell; \ |
2198e4ba | 1140 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
079399f6 RP |
1141 | else \ |
1142 | true ; \ | |
1143 | fi | |
23e3e7f9 | 1144 | |
0e519240 BK |
1145 | ### gnats |
1146 | all-gnats: force | |
1147 | @if [ -f ./gnats/Makefile ] ; then \ | |
9f33c264 | 1148 | rootme=`pwd` ; export rootme ; \ |
0e519240 | 1149 | (cd ./gnats; \ |
9f33c264 BK |
1150 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
1151 | else \ | |
1152 | true ; \ | |
1153 | fi | |
1154 | ||
0e519240 BK |
1155 | install-gnats: force |
1156 | @if [ -f ./gnats/Makefile ] ; then \ | |
9f33c264 | 1157 | rootme=`pwd` ; export rootme ; \ |
0e519240 | 1158 | (cd ./gnats; \ |
9f33c264 BK |
1159 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
1160 | else \ | |
1161 | true ; \ | |
1162 | fi | |
1163 | ||
98941fab BK |
1164 | ### send-pr |
1165 | all-send-pr: force | |
1166 | @if [ -f ./send-pr/Makefile ] ; then \ | |
079b2abe | 1167 | rootme=`pwd` ; export rootme ; \ |
98941fab | 1168 | (cd ./send-pr; \ |
2198e4ba | 1169 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
079b2abe RP |
1170 | else \ |
1171 | true ; \ | |
1172 | fi | |
079b2abe | 1173 | |
98941fab BK |
1174 | install-send-pr: force |
1175 | @if [ -f ./send-pr/Makefile ] ; then \ | |
079b2abe | 1176 | rootme=`pwd` ; export rootme ; \ |
98941fab | 1177 | (cd ./send-pr; \ |
2198e4ba | 1178 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
079b2abe RP |
1179 | else \ |
1180 | true ; \ | |
1181 | fi | |
1182 | ||
06a07944 RP |
1183 | ### libm |
1184 | all-libm: force | |
98a33b6d | 1185 | @if [ -f ./libm/Makefile ] ; then \ |
06a07944 RP |
1186 | rootme=`pwd` ; export rootme ; \ |
1187 | (cd ./libm; \ | |
1b9b5090 | 1188 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \ |
06a07944 RP |
1189 | else \ |
1190 | true ; \ | |
1191 | fi | |
1192 | ||
06a07944 | 1193 | install-libm: force |
98a33b6d | 1194 | @if [ -f ./libm/Makefile ] ; then \ |
06a07944 RP |
1195 | rootme=`pwd` ; export rootme ; \ |
1196 | (cd ./libm; \ | |
1b9b5090 | 1197 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \ |
06a07944 RP |
1198 | else \ |
1199 | true ; \ | |
1200 | fi | |
1201 | ||
ba8abfce | 1202 | ### libg++ |
9d98d2ac | 1203 | |
e85e07cb | 1204 | all-libg++: all-gas all-ld all-gcc all-xiberty all-newlib |
06a07944 | 1205 | @if [ -f ./libg++/Makefile ] ; then \ |
77806c3e | 1206 | rootme=`pwd` ; export rootme ; \ |
51489233 | 1207 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
7fcfdcf7 | 1208 | (cd ./libg++; \ |
51489233 | 1209 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \ |
ba8abfce JG |
1210 | else \ |
1211 | true ; \ | |
1212 | fi | |
1213 | ||
c4fb14b7 | 1214 | install-libg++: force |
06a07944 | 1215 | @if [ -f ./libg++/Makefile ] ; then \ |
77806c3e | 1216 | rootme=`pwd` ; export rootme ; \ |
51489233 | 1217 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
7fcfdcf7 | 1218 | (cd ./libg++; \ |
51489233 | 1219 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \ |
ba8abfce JG |
1220 | else \ |
1221 | true ; \ | |
1222 | fi | |
ffce44a0 DZ |
1223 | ### tcl |
1224 | all-tcl: | |
1225 | @if [ -f ./tcl/Makefile ] ; then \ | |
1226 | rootme=`pwd` ; export rootme ; \ | |
1227 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ | |
1228 | (cd ./tcl; \ | |
1229 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
1230 | else \ | |
1231 | true ; \ | |
1232 | fi | |
1233 | ||
ffce44a0 DZ |
1234 | install-tcl: force |
1235 | @if [ -f ./tcl/Makefile ] ; then \ | |
1236 | rootme=`pwd` ; export rootme ; \ | |
1237 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ | |
1238 | (cd ./tcl; \ | |
1239 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
1240 | else \ | |
1241 | true ; \ | |
1242 | fi | |
1243 | ||
1244 | ||
1245 | ### tk | |
1246 | all-tk: all-tcl | |
1247 | @if [ -f ./tk/Makefile ] ; then \ | |
1248 | rootme=`pwd` ; export rootme ; \ | |
1249 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ | |
1250 | (cd ./tk; \ | |
d1bea4c7 | 1251 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \ |
ffce44a0 DZ |
1252 | else \ |
1253 | true ; \ | |
1254 | fi | |
1255 | ||
ffce44a0 DZ |
1256 | install-tk: force |
1257 | @if [ -f ./tk/Makefile ] ; then \ | |
1258 | rootme=`pwd` ; export rootme ; \ | |
1259 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ | |
1260 | (cd ./tk; \ | |
d1bea4c7 | 1261 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \ |
ffce44a0 DZ |
1262 | else \ |
1263 | true ; \ | |
1264 | fi | |
1265 | ||
d1bea4c7 | 1266 | ### expect |
ffce44a0 DZ |
1267 | all-expect: all-tcl |
1268 | @if [ -f ./expect/Makefile ] ; then \ | |
1269 | rootme=`pwd` ; export rootme ; \ | |
1270 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ | |
1271 | (cd ./expect; \ | |
1272 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
1273 | else \ | |
1274 | true ; \ | |
1275 | fi | |
1276 | ||
ffce44a0 DZ |
1277 | install-expect: force |
1278 | @if [ -f ./expect/Makefile ] ; then \ | |
1279 | rootme=`pwd` ; export rootme ; \ | |
1280 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ | |
1281 | (cd ./expect; \ | |
1282 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
1283 | else \ | |
1284 | true ; \ | |
1285 | fi | |
1286 | ||
675e8ac9 SC |
1287 | ### sim |
1288 | all-sim: all-bfd | |
1289 | @if [ -f ./sim/Makefile ] ; then \ | |
d1bea4c7 | 1290 | rootme=`pwd` ; export rootme ; \ |
675e8ac9 | 1291 | (cd ./sim; \ |
d1bea4c7 DZ |
1292 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
1293 | else \ | |
1294 | true ; \ | |
1295 | fi | |
1296 | ||
675e8ac9 SC |
1297 | install-sim: force |
1298 | @if [ -f ./sim/Makefile ] ; then \ | |
d1bea4c7 | 1299 | rootme=`pwd` ; export rootme ; \ |
675e8ac9 | 1300 | (cd ./sim; \ |
b1cceba2 | 1301 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
d1bea4c7 DZ |
1302 | else \ |
1303 | true ; \ | |
1304 | fi | |
1305 | ||
b1cceba2 DZ |
1306 | ### fileutils |
1307 | all-fileutils: force | |
1308 | @if [ -f ./fileutils/Makefile ] ; then \ | |
1309 | rootme=`pwd` ; export rootme ; \ | |
1310 | (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
1311 | else \ | |
1312 | true ; \ | |
1313 | fi | |
1314 | ||
1315 | install-fileutils: force | |
1316 | @if [ -f ./fileutils/Makefile ] ; then \ | |
d1bea4c7 | 1317 | rootme=`pwd` ; export rootme ; \ |
b1cceba2 DZ |
1318 | (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
1319 | else \ | |
1320 | true ; \ | |
1321 | fi | |
1322 | ||
1323 | ### find | |
1324 | all-find: force | |
1325 | @if [ -f ./find/Makefile ] ; then \ | |
1326 | rootme=`pwd` ; export rootme ; \ | |
1327 | (cd ./find; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
1328 | else \ | |
1329 | true ; \ | |
1330 | fi | |
1331 | ||
1332 | install-find: force | |
1333 | @if [ -f ./find/Makefile ] ; then \ | |
1334 | rootme=`pwd` ; export rootme ; \ | |
1335 | (cd ./find; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
1336 | else \ | |
1337 | true ; \ | |
1338 | fi | |
1339 | ||
1340 | ### gawk | |
1341 | all-gawk: force | |
1342 | @if [ -f ./gawk/Makefile ] ; then \ | |
1343 | rootme=`pwd` ; export rootme ; \ | |
1344 | (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
1345 | else \ | |
1346 | true ; \ | |
1347 | fi | |
1348 | ||
1349 | install-gawk: force | |
1350 | @if [ -f ./gawk/Makefile ] ; then \ | |
1351 | rootme=`pwd` ; export rootme ; \ | |
1352 | (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
d1bea4c7 DZ |
1353 | else \ |
1354 | true ; \ | |
1355 | fi | |
1356 | ||
b1cceba2 DZ |
1357 | ### m4 |
1358 | all-m4: all-libiberty | |
1359 | @if [ -f ./m4/Makefile ] ; then \ | |
1360 | rootme=`pwd` ; export rootme ; \ | |
1361 | (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
1362 | else \ | |
1363 | true ; \ | |
1364 | fi | |
1365 | ||
1366 | install-m4: force | |
1367 | @if [ -f ./m4/Makefile ] ; then \ | |
1368 | rootme=`pwd` ; export rootme ; \ | |
1369 | (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
1370 | else \ | |
1371 | true ; \ | |
1372 | fi | |
1373 | ||
1374 | ### sed | |
1375 | all-sed: force | |
1376 | @if [ -f ./sed/Makefile ] ; then \ | |
1377 | rootme=`pwd` ; export rootme ; \ | |
1378 | (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
1379 | else \ | |
1380 | true ; \ | |
1381 | fi | |
1382 | ||
1383 | install-sed: force | |
1384 | @if [ -f ./sed/Makefile ] ; then \ | |
1385 | rootme=`pwd` ; export rootme ; \ | |
1386 | (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
1387 | else \ | |
1388 | true ; \ | |
1389 | fi | |
1390 | ||
1391 | ### time | |
1392 | all-time: force | |
1393 | @if [ -f ./time/Makefile ] ; then \ | |
1394 | rootme=`pwd` ; export rootme ; \ | |
1395 | (cd ./time; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
1396 | else \ | |
1397 | true ; \ | |
1398 | fi | |
1399 | ||
1400 | install-time: force | |
1401 | @if [ -f ./time/Makefile ] ; then \ | |
1402 | rootme=`pwd` ; export rootme ; \ | |
1403 | (cd ./time; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
1404 | else \ | |
1405 | true ; \ | |
1406 | fi | |
1407 | ||
1408 | ### wdiff | |
1409 | all-wdiff: force | |
1410 | @if [ -f ./wdiff/Makefile ] ; then \ | |
1411 | rootme=`pwd` ; export rootme ; \ | |
1412 | (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
1413 | else \ | |
1414 | true ; \ | |
1415 | fi | |
1416 | ||
1417 | install-wdiff: force | |
1418 | @if [ -f ./wdiff/Makefile ] ; then \ | |
1419 | rootme=`pwd` ; export rootme ; \ | |
1420 | (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
1421 | else \ | |
1422 | true ; \ | |
1423 | fi | |
1424 | ||
4a2f0c79 DZ |
1425 | ### uudecode |
1426 | all-uudecode: all-libiberty | |
1427 | @if [ -f ./uudecode/Makefile ] ; then \ | |
1428 | rootme=`pwd` ; export rootme ; \ | |
1429 | (cd ./uudecode; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
1430 | else \ | |
1431 | true ; \ | |
1432 | fi | |
1433 | ||
1434 | install-uudecode: force | |
1435 | @if [ -f ./uudecode/Makefile ] ; then \ | |
1436 | rootme=`pwd` ; export rootme ; \ | |
1437 | (cd ./uudecode; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
1438 | else \ | |
1439 | true ; \ | |
1440 | fi | |
1441 | ||
b1cceba2 DZ |
1442 | ### shellutils |
1443 | all-shellutils: force | |
1444 | @if [ -f ./shellutils/Makefile ] ; then \ | |
1445 | rootme=`pwd` ; export rootme ; \ | |
1446 | (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
1447 | else \ | |
1448 | true ; \ | |
1449 | fi | |
1450 | ||
1451 | install-shellutils: force | |
1452 | @if [ -f ./shellutils/Makefile ] ; then \ | |
1453 | rootme=`pwd` ; export rootme ; \ | |
1454 | (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
1455 | else \ | |
1456 | true ; \ | |
1457 | fi | |
1458 | ||
1459 | ### textutils | |
1460 | all-textutils: force | |
1461 | @if [ -f ./textutils/Makefile ] ; then \ | |
1462 | rootme=`pwd` ; export rootme ; \ | |
1463 | (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
1464 | else \ | |
1465 | true ; \ | |
1466 | fi | |
1467 | ||
1468 | install-textutils: force | |
1469 | @if [ -f ./textutils/Makefile ] ; then \ | |
1470 | rootme=`pwd` ; export rootme ; \ | |
1471 | (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
1472 | else \ | |
1473 | true ; \ | |
1474 | fi | |
1475 | ||
1476 | ||
d1bea4c7 | 1477 | |
4d714963 | 1478 | ### other supporting targets |
a0f47eb7 | 1479 | |
4c27527f | 1480 | MAKEDIRS= \ |
4d714963 | 1481 | $(prefix) \ |
7fcfdcf7 | 1482 | $(exec_prefix) \ |
8b361a95 SEF |
1483 | $(tooldir) |
1484 | ||
1485 | # $(bindir) \ | |
1486 | # $(libdir) \ | |
1487 | # $(includedir) \ | |
1488 | # $(datadir) \ | |
1489 | # $(docdir) \ | |
1490 | # $(mandir) \ | |
1491 | # $(man1dir) \ | |
1492 | # $(man5dir) | |
4d714963 RP |
1493 | |
1494 | # $(man2dir) \ | |
1495 | # $(man3dir) \ | |
1496 | # $(man4dir) \ | |
1497 | # $(man6dir) \ | |
1498 | # $(man7dir) \ | |
1499 | # $(man8dir) | |
4c27527f | 1500 | |
02a7ba9a | 1501 | install-dirs: |
4c27527f | 1502 | for i in $(MAKEDIRS) ; do \ |
cd49a4dc | 1503 | echo Making $$i... ; \ |
8b361a95 SEF |
1504 | parent=`echo $$i|sed -e 's@/[^/]*$$@@'`; \ |
1505 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \ | |
06a07944 RP |
1506 | if [ ! -d $$i ] ; then \ |
1507 | if mkdir $$i ; then \ | |
1508 | true ; \ | |
1509 | else \ | |
1510 | exit 1 ; \ | |
1511 | fi ; \ | |
1512 | else \ | |
1513 | true ; \ | |
1514 | fi ; \ | |
4c27527f | 1515 | done |
0ec776a5 | 1516 | |
02a7ba9a | 1517 | install-info-dirs: |
9a9e8e7f | 1518 | if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi |
0ef4728f ILT |
1519 | -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \ |
1520 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi | |
1521 | -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi | |
c5f94070 | 1522 | |
0ef4728f | 1523 | dir.info: do-install-info |
8b361a95 | 1524 | $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new |
c466cfab | 1525 | mv -f dir.info.new dir.info |
6b7e5998 | 1526 | |
b1cceba2 DZ |
1527 | dist: |
1528 | @echo "Building a full distribution of this tree isn't done" | |
1529 | @echo "via 'make dist'. Check out the etc/ subdirectory" | |
1530 | ||
eb02fd64 RP |
1531 | etags tags: TAGS |
1532 | ||
02a7ba9a | 1533 | TAGS: |
eb02fd64 RP |
1534 | etags `$(MAKE) ls` |
1535 | ||
1536 | ls: | |
1537 | @echo Makefile | |
1538 | @for i in $(SUBDIRS); \ | |
1539 | do \ | |
1540 | (cd $$i; \ | |
1541 | pwd=`pwd`; \ | |
1542 | wd=`basename $$pwd`; \ | |
1543 | for j in `$(MAKE) ls`; \ | |
1544 | do \ | |
1545 | echo $$wd/$$j; \ | |
1546 | done) \ | |
1547 | done | |
1548 | ||
3c81fef5 | 1549 | force: |
eb02fd64 RP |
1550 | |
1551 | # with the gnu make, this is done automatically. | |
1552 | ||
f1eb48b6 | 1553 | Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) |
a26878d1 | 1554 | $(SHELL) ./config.status |
eb02fd64 | 1555 | |
11954bf1 JG |
1556 | # |
1557 | # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc | |
1558 | ||
d94d255d | 1559 | DEVO_SUPPORT= README Makefile.in configure configure.in \ |
6d681784 JG |
1560 | config.guess config.sub config move-if-change |
1561 | ETC_SUPPORT= Makefile.in cfg-paper.texi configure.in configure.man \ | |
1562 | configure.texi | |
fb90daeb | 1563 | GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob |
d94d255d | 1564 | GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) |
11954bf1 | 1565 | |
b1cceba2 | 1566 | setup-dirs: force |
11954bf1 JG |
1567 | ./configure sun4 |
1568 | make clean | |
1569 | ./configure -rm sun4 | |
42187387 | 1570 | chmod og=u `find etc $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print` |
abc52b80 | 1571 | |
abc52b80 | 1572 | gdb.tar.Z: setup-dirs |
42187387 | 1573 | (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir BISON="byacc") |
abc52b80 JG |
1574 | $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z |
1575 | ||
f980fcfb | 1576 | make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/texinfo.tex |
abc52b80 JG |
1577 | rm -rf proto-toplev; mkdir proto-toplev |
1578 | ln -s ../gdb/proto-gdb.dir proto-toplev/gdb | |
1579 | (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \ | |
1580 | ln -s ../$$i . ; \ | |
1581 | done) | |
6d681784 JG |
1582 | mkdir proto-toplev/etc |
1583 | (cd proto-toplev/etc; for i in $(ETC_SUPPORT); do \ | |
1584 | ln -s ../../etc/$$i . ; \ | |
1585 | done) | |
7c9feeb7 RP |
1586 | # Put only one copy (four hard links) of COPYING in the tar file. |
1587 | rm proto-toplev/bfd/COPYING | |
1588 | ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING | |
1589 | rm proto-toplev/include/COPYING | |
1590 | ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING | |
1591 | rm proto-toplev/readline/COPYING | |
1592 | ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING | |
a50b5d9d JG |
1593 | |
1594 | # Take out texinfo and glob from configurable dirs | |
a3a063a9 | 1595 | rm proto-toplev/configure.in |
a50b5d9d JG |
1596 | sed -e '/^host_tools=/s/texinfo //' \ |
1597 | -e '/^host_libs=/s/glob //' \ | |
1598 | <configure.in >proto-toplev/configure.in | |
6995fe83 | 1599 | |
a50b5d9d JG |
1600 | # Take out texinfo from a few places; make simple BISON=bison line. |
1601 | rm proto-toplev/Makefile.in | |
1602 | sed -e '/^all\.normal: /s/\all-texinfo //' \ | |
1603 | -e '/^ install-texinfo /d' \ | |
1604 | -e '\/^BISON =/,\/^$$/c\ | |
eab2562e | 1605 | BISON = bison -y' \ |
6995fe83 SG |
1606 | <Makefile.in >proto-toplev/Makefile.in |
1607 | ||
abc52b80 | 1608 | mkdir proto-toplev/texinfo |
a50b5d9d | 1609 | ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/ |
81246025 | 1610 | ln -s ../../texinfo/tex3patch proto-toplev/texinfo/ |
905bb120 | 1611 | chmod og=u `find proto-toplev -print` |
abc52b80 JG |
1612 | (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \ |
1613 | echo "==> Making gdb-$$VER.tar.Z"; \ | |
1614 | ln -s proto-toplev gdb-$$VER; \ | |
1615 | tar cfh - gdb-$$VER \ | |
1616 | | compress -v >gdb-$$VER.tar.Z) | |
81246025 | 1617 | $(GZIP) -d <gdb-$$VER.tar.Z | $(GZIP) -9 -v >gdb-$$VER.tar.z |
0ec776a5 | 1618 | |
eb02fd64 | 1619 | # end of Makefile.in |