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