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