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