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