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