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