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