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