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