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