-S flag is no longer supported (nor needed) with flex.
[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
4d714963 29datadir = $(prefix)/lib
7fcfdcf7 30mandir = $(prefix)/man
4d714963
RP
31man1dir = $(mandir)/man1
32man2dir = $(mandir)/man2
33man3dir = $(mandir)/man3
34man4dir = $(mandir)/man4
35man5dir = $(mandir)/man5
36man6dir = $(mandir)/man6
37man7dir = $(mandir)/man7
38man8dir = $(mandir)/man8
39man9dir = $(mandir)/man9
7fcfdcf7 40infodir = $(prefix)/info
4d714963
RP
41includedir = $(prefix)/include
42docdir = $(datadir)/doc
43
44SHELL = /bin/sh
45
46INSTALL = install -c
47INSTALL_PROGRAM = $(INSTALL)
48INSTALL_DATA = $(INSTALL)
3c8735af 49
ec342d7d 50AR = ar
ba8abfce 51AR_FLAGS = qc
f8a6ad66 52CFLAGS = -g
4d714963 53RANLIB = ranlib
eb02fd64 54
dfa891fc 55BISON = `if [ -d $${rootme}/byacc ] ; \
06a07944
RP
56 then echo $${rootme}/byacc/byacc ; \
57 else echo bison -y ; \
06a07944 58 fi`
2645fb0c 59
2198e4ba 60LEX = `if [ -d $${rootme}/flex ] ; \
8b361a95 61 then echo $${rootme}/flex/flex ; \
2198e4ba
MT
62 else echo flex ; fi`
63
77806c3e
RP
64MAKEINFO = `if [ -d $${rootme}/texinfo/C ] ; \
65 then echo $${rootme}/texinfo/C/makeinfo ; \
66 else echo makeinfo ; fi`
b772d75e 67
dfa891fc 68SUBDIRS = libiberty mmalloc glob readline bfd gdb binutils ld gas tgas gcc libg++ newlib libm # clib -- newlib replaces
6a3958b2
RP
69OTHERS =
70
a0f47eb7 71ALL = all.normal
b26ff9d8 72INSTALL_TARGET = install.all
fb660409
RP
73
74### for debugging
75#GCCVERBOSE=-v
76
f0e9ba1e
PB
77GXX = `if [ -d $${rootme}/gcc ] ; \
78 then echo $${rootme}/gcc/gcc -B$${rootme}/gcc/ ; \
79 else echo gcc ; fi`
80
81XTRAFLAGS = `if [ -d $${rootme}/gcc ] ; \
82 then echo -I$${rootme}/gcc/include ; \
83 else echo ; fi`
23e3e7f9 84
eb02fd64 85#### host and target specific makefile fragments come in here.
ec342d7d 86###
eb02fd64 87
2198e4ba
MT
88FLAGS_TO_PASS = \
89 "prefix=$(prefix)" \
90 "exec_prefix=$(exec_prefix)" \
91 "tooldir=$(tooldir)" \
92 "AR=$(AR)" \
93 "AR_FLAGS=$(AR_FLAGS)" \
94 "CC=$(CC)" \
95 "CFLAGS=$(CFLAGS)" \
96 "RANLIB=$(RANLIB)" \
97 "LOADLIBES=$(LOADLIBES)" \
98 "LDFLAGS=$(LDFLAGS)" \
99 "BISON=$(BISON)" \
100 "LEX=$(LEX)" \
101 "MAKEINFO=$(MAKEINFO)" \
102 "INSTALL=$(INSTALL)" \
103 "INSTALL_DATA=$(INSTALL_DATA)" \
104 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
105
4d714963 106.PHONY: all info install-info clean-info
f8a6ad66 107.NOEXPORT:
4d714963 108
a0f47eb7 109all: $(ALL)
4d714963 110
2198e4ba 111info: cfg-paper.info configure.info standards.info
f0e9ba1e 112 @rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
c5f94070 113
2198e4ba
MT
114# Note libg++ has to be handled specially (we can't compile it with CC=cc).
115check:
116 @rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=check \
f0e9ba1e 117 "DODIRS=`echo $(SUBDIRS) | sed -e \"s/libg\+\+//\"" $(FLAGS_TO_PASS)
2198e4ba 118 @rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=check \
f0e9ba1e 119 "DODIRS=libg++" $(FLAGS_TO_PASS) "CC=${GXX}" "XTRAFLAGS=${XTRAFLAGS}"
7fcfdcf7 120
25113b46 121clean-info:
06a07944 122 @$(MAKE) $(FLAGS_TO_PASS) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)"
2198e4ba 123 rm -f *.info*
25113b46 124
12682548 125cfg-paper.info: cfg-paper.texi
77806c3e 126 rootme=`pwd` ; export rootme ; $(MAKEINFO) -o cfg-paper.info $(srcdir)/cfg-paper.texi
12682548 127
8f861f08 128configure.info: configure.texi
77806c3e 129 rootme=`pwd` ; export rootme ; $(MAKEINFO) -o configure.info $(srcdir)/configure.texi
8f861f08 130
2198e4ba
MT
131standards.info: standards.texi
132 rootme=`pwd` ; export rootme ; $(MAKEINFO) -o standards.info $(srcdir)/standards.texi
133
9a9e8e7f 134install-info: install-info-dirs force
8b361a95
SEF
135 -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
136 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
137 -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
06a07944 138 @$(MAKE) $(FLAGS_TO_PASS) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
12682548 139 $(INSTALL_DATA) cfg-paper.info $(infodir)/cfg-paper.info
bcdbe02f 140 $(INSTALL_DATA) configure.info $(infodir)/configure.info
2198e4ba 141 $(INSTALL_DATA) standards.info $(infodir)/standards.info
06a07944 142 @$(MAKE) $(FLAGS_TO_PASS) dir.info install-dir.info
9a9e8e7f
RP
143
144install-dir.info:
8b361a95
SEF
145 -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
146 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
147 -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
9a9e8e7f 148 $(INSTALL_DATA) dir.info $(infodir)/dir.info
4d714963 149
618f57a9 150all.normal: all-autoconf all-libiberty all-mmalloc all-texinfo \
dfa891fc 151 all-byacc all-flex all-bfd all-ld all-gas all-tgas all-gcc \
c4fb14b7
FF
152 all-binutils all-libg++ all-readline all-gdb \
153 all-make all-rcs all-cvs all-diff all-grep \
2198e4ba 154 all-patch all-emacs all-ispell \
06a07944 155 all-newlib all-gprof all-send_pr all-libm
dcbfc14d 156
dfa891fc
DZ
157all.cross: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
158 all-bfd all-readline all-gdb all-binutils all-gcc all-newlib
06a07944 159# $(MAKE) $(FLAGS_TO_PASS) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
4d714963 160
618f57a9
RP
161clean: clean-autoconf clean-libiberty clean-mmalloc clean-texinfo \
162 clean-bfd clean-newlib clean-binutils clean-flex \
dfa891fc
DZ
163 clean-byacc clean-ld clean-gas \
164 clean-gcc clean-readline clean-glob clean-gdb \
c4fb14b7 165 clean-make clean-diff clean-grep clean-rcs \
2198e4ba 166 clean-cvs clean-patch clean-emacs clean-ispell \
06a07944 167 clean-libg++ clean-gprof clean-send_pr clean-libm
7fcfdcf7
SC
168 -rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
169
170clean-stamps:
c4fb14b7 171 -rm -f all-*
4d714963 172
ba8abfce 173install: $(INSTALL_TARGET) $(srcdir)/configure.man
8b361a95
SEF
174 -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
175 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
176 -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
ba8abfce 177 $(INSTALL_DATA) $(srcdir)/configure.man $(man1dir)/configure.1
b26ff9d8 178
06a07944
RP
179install.all: install-no-fixedincludes
180 @if [ -f ./gcc/Makefile ] ; then \
181 rootme=`pwd` ; export rootme ; \
182 (cd ./gcc; \
183 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
184 else \
185 true ; \
186 fi
187
dfa891fc
DZ
188install-no-fixedincludes: install-dirs gcc-no-fixedincludes \
189 install-autoconf \
190 install-bfd \
191 install-binutils \
192 install-byacc \
193 install-cvs \
194 install-diff \
195 install-emacs \
196 install-flex \
197 install-gas \
198 install-gdb \
199 install-glob \
200 install-gprof \
201 install-grep \
202 install-ispell \
203 install-ld \
204 install-libg++ \
205 install-libiberty \
206 install-libm \
207 install-make \
208 install-mmalloc \
209 install-newlib \
210 install-patch \
211 install-rcs \
212 install-readline \
213 install-send_pr \
214 install-texinfo
215
06a07944
RP
216gcc-no-fixedincludes:
217 @if [ -f ./gcc/Makefile ] ; then \
218 rootme=`pwd` ; export rootme ; \
219 (cd ./gcc; \
220 $(MAKE) $(FLAGS_TO_PASS) install install-man \
221 "INSTALL_HEADERS=install-common-headers install-float-h install-limits-h") ; \
222 else \
223 true ; \
224 fi
dcbfc14d
DZ
225
226install.cross: install-dirs install-libiberty install-mmalloc \
dfa891fc
DZ
227 install-binutils install-byacc install-flex \
228 install-ld install-gas install-readline \
229 install-glob install-gdb install-mmalloc \
06a07944 230 install-newlib install-gcc
23e3e7f9 231
618f57a9
RP
232### autoconf
233all-autoconf: force
06a07944 234 @if [ -f ./autoconf/Makefile ] ; then \
618f57a9
RP
235 rootme=`pwd` ; export rootme ; \
236 (cd ./autoconf; \
2198e4ba 237 $(MAKE) $(FLAGS_TO_PASS) all) ; \
618f57a9
RP
238 else \
239 true ; \
240 fi
241
242clean-autoconf: force
06a07944 243 @if [ -f ./autoconf/Makefile ] ; then \
618f57a9
RP
244 rootme=`pwd` ; export rootme ; \
245 (cd ./autoconf; \
2198e4ba 246 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
618f57a9
RP
247 else \
248 true ; \
249 fi
250
251install-autoconf: force
06a07944 252 @if [ -f ./autoconf/Makefile ] ; then \
618f57a9
RP
253 rootme=`pwd` ; export rootme ; \
254 (cd ./autoconf; \
2198e4ba 255 $(MAKE) $(FLAGS_TO_PASS) install) ; \
618f57a9
RP
256 else \
257 true ; \
258 fi
259
4d714963 260### libiberty
c4fb14b7 261all-libiberty: force
06a07944 262 @if [ -f ./libiberty/Makefile ] ; then \
77806c3e 263 rootme=`pwd` ; export rootme ; \
7fcfdcf7 264 (cd ./libiberty; \
2198e4ba 265 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
266 else \
267 true ; \
268 fi
4d714963
RP
269
270clean-libiberty: force
06a07944 271 @if [ -f ./libiberty/Makefile ] ; then \
77806c3e 272 rootme=`pwd` ; export rootme ; \
7fcfdcf7 273 (cd ./libiberty; \
2198e4ba 274 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
275 else \
276 true ; \
277 fi
4d714963
RP
278
279install-libiberty: force
06a07944 280 @if [ -f ./libiberty/Makefile ] ; then \
77806c3e 281 rootme=`pwd` ; export rootme ; \
7fcfdcf7 282 (cd ./libiberty; \
2198e4ba 283 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
284 else \
285 true ; \
286 fi
23e3e7f9 287
66cfe047 288### mmalloc
c4fb14b7 289all-mmalloc: force
06a07944 290 @if [ -f ./mmalloc/Makefile ] ; then \
66cfe047
SG
291 rootme=`pwd` ; export rootme ; \
292 (cd ./mmalloc; \
2198e4ba 293 $(MAKE) $(FLAGS_TO_PASS) all) ; \
66cfe047
SG
294 else \
295 true ; \
296 fi
66cfe047
SG
297
298clean-mmalloc: force
06a07944 299 @if [ -f ./mmalloc/Makefile ] ; then \
66cfe047
SG
300 rootme=`pwd` ; export rootme ; \
301 (cd ./mmalloc; \
2198e4ba 302 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
66cfe047
SG
303 else \
304 true ; \
305 fi
306
307install-mmalloc: force
06a07944 308 @if [ -f ./mmalloc/Makefile ] ; then \
66cfe047
SG
309 rootme=`pwd` ; export rootme ; \
310 (cd ./mmalloc; \
2198e4ba 311 $(MAKE) $(FLAGS_TO_PASS) install) ; \
66cfe047
SG
312 else \
313 true ; \
314 fi
315
4d714963 316### texinfo
c4fb14b7 317all-texinfo: all-libiberty
06a07944 318 @if [ -f ./texinfo/Makefile ] ; then \
77806c3e
RP
319 rootme=`pwd` ; export rootme ; \
320 rootme=`pwd` ; export rootme ; \
7fcfdcf7 321 (cd ./texinfo; \
2198e4ba 322 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
323 else \
324 true ; \
325 fi
4d714963
RP
326
327clean-texinfo: force
06a07944 328 @if [ -f ./texinfo/Makefile ] ; then \
77806c3e 329 rootme=`pwd` ; export rootme ; \
7fcfdcf7 330 (cd ./texinfo; \
2198e4ba 331 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
332 else \
333 true ; \
334 fi
4d714963
RP
335
336install-texinfo: force
06a07944 337 @if [ -f ./texinfo/Makefile ] ; then \
77806c3e 338 rootme=`pwd` ; export rootme ; \
7fcfdcf7 339 (cd ./texinfo; \
2198e4ba 340 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
341 else \
342 true ; \
343 fi
23e3e7f9 344
4d714963 345### bfd
c4fb14b7 346all-bfd: force
06a07944 347 @if [ -f ./bfd/Makefile ] ; then \
77806c3e 348 rootme=`pwd` ; export rootme ; \
7fcfdcf7 349 (cd ./bfd; \
2198e4ba 350 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
351 else \
352 true ; \
353 fi
4d714963
RP
354
355clean-bfd: force
06a07944 356 @if [ -f ./bfd/Makefile ] ; then \
77806c3e 357 rootme=`pwd` ; export rootme ; \
7fcfdcf7 358 (cd ./bfd; \
2198e4ba 359 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
360 else \
361 true ; \
362 fi
4d714963
RP
363
364install-bfd: force
06a07944 365 @if [ -f ./bfd/Makefile ] ; then \
77806c3e 366 rootme=`pwd` ; export rootme ; \
7fcfdcf7 367 (cd ./bfd; \
2198e4ba 368 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
369 else \
370 true ; \
371 fi
23e3e7f9 372
4d714963 373### binutils
2198e4ba 374all-binutils: all-libiberty all-bfd all-flex
06a07944 375 @if [ -f ./binutils/Makefile ] ; then \
77806c3e 376 rootme=`pwd` ; export rootme ; \
7fcfdcf7 377 (cd ./binutils; \
2198e4ba 378 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
379 else \
380 true ; \
381 fi
4d714963
RP
382
383clean-binutils: force
06a07944 384 @if [ -f ./binutils/Makefile ] ; then \
77806c3e 385 rootme=`pwd` ; export rootme ; \
7fcfdcf7 386 (cd ./binutils; \
2198e4ba 387 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
388 else \
389 true ; \
390 fi
4d714963
RP
391
392install-binutils: force
06a07944 393 @if [ -f ./binutils/Makefile ] ; then \
77806c3e 394 rootme=`pwd` ; export rootme ; \
7fcfdcf7 395 (cd ./binutils; \
2198e4ba 396 $(MAKE) $(FLAGS_TO_PASS) install) ; \
7fcfdcf7
SC
397 else \
398 true ; \
399 fi
400
401### newlib
c4fb14b7 402all-newlib: force
06a07944 403 @if [ -f ./newlib/Makefile ] ; then \
7fcfdcf7
SC
404 rootme=`pwd` ; export rootme ; \
405 (cd ./newlib; \
2198e4ba 406 $(MAKE) $(FLAGS_TO_PASS) all) ; \
7fcfdcf7
SC
407 else \
408 true ; \
409 fi
7fcfdcf7
SC
410
411clean-newlib: force
06a07944 412 @if [ -f ./newlib/Makefile ] ; then \
7fcfdcf7
SC
413 rootme=`pwd` ; export rootme ; \
414 (cd ./newlib; \
2198e4ba 415 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
7fcfdcf7
SC
416 else \
417 true ; \
418 fi
419
420install-newlib: force
06a07944 421 @if [ -f ./newlib/Makefile ] ; then \
7fcfdcf7
SC
422 rootme=`pwd` ; export rootme ; \
423 (cd ./newlib; \
06a07944 424 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
425 else \
426 true ; \
427 fi
23e3e7f9 428
9a14a29d 429### gprof
c4fb14b7 430all-gprof: all-libiberty all-bfd
06a07944
RP
431 @if [ -f ./gprof/Makefile ] ; then \
432 (cd gprof; $(MAKE) $(FLAGS_TO_PASS) all) ; \
9a14a29d
SEF
433 else \
434 true ; \
435 fi
9a14a29d
SEF
436
437clean-gprof: force
06a07944
RP
438 @if [ -f ./gprof/Makefile ] ; then \
439 (cd gprof; $(MAKE) $(FLAGS_TO_PASS) clean) ; \
9a14a29d
SEF
440 else \
441 true ; \
442 fi
443
444install-gprof: force
06a07944
RP
445 @if [ -f ./gprof/Makefile ] ; then \
446 (cd gprof; $(MAKE) $(FLAGS_TO_PASS) install) ; \
9a14a29d
SEF
447 else \
448 true ; \
449 fi
450
4d714963 451### byacc
c4fb14b7 452all-byacc: force
06a07944 453 @if [ -f ./byacc/Makefile ] ; then \
77806c3e 454 rootme=`pwd` ; export rootme ; \
7fcfdcf7 455 (cd ./byacc; \
2198e4ba 456 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
457 else \
458 true ; \
459 fi
4d714963
RP
460
461clean-byacc: force
06a07944 462 @if [ -f ./byacc/Makefile ] ; then \
77806c3e 463 rootme=`pwd` ; export rootme ; \
7fcfdcf7 464 (cd ./byacc; \
2198e4ba 465 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
466 else \
467 true ; \
468 fi
4d714963
RP
469
470install-byacc: force
06a07944 471 @if [ -f ./byacc/Makefile ] ; then \
77806c3e 472 rootme=`pwd` ; export rootme ; \
7fcfdcf7 473 (cd ./byacc; \
2198e4ba 474 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
475 else \
476 true ; \
477 fi
23e3e7f9 478
dcbfc14d 479### flex
2198e4ba 480all-flex: all-libiberty
06a07944 481 @if [ -f ./flex/Makefile ] ; then \
dcbfc14d
DZ
482 rootme=`pwd` ; export rootme ; \
483 (cd ./flex; \
2198e4ba 484 $(MAKE) $(FLAGS_TO_PASS) all) ; \
dcbfc14d
DZ
485 else \
486 true ; \
487 fi
488
489clean-flex: force
06a07944 490 @if [ -f ./flex/Makefile ] ; then \
dcbfc14d
DZ
491 rootme=`pwd` ; export rootme ; \
492 (cd ./flex; \
2198e4ba 493 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
dcbfc14d
DZ
494 else \
495 true ; \
496 fi
497
498install-flex: force
06a07944 499 @if [ -f ./flex/Makefile ] ; then \
dcbfc14d
DZ
500 rootme=`pwd` ; export rootme ; \
501 (cd ./flex; \
2198e4ba 502 $(MAKE) $(FLAGS_TO_PASS) install) ; \
dcbfc14d
DZ
503 else \
504 true ; \
505 fi
4d714963 506### gcc
6995fe83 507all-gcc: all-libiberty all-byacc
06a07944 508 @if [ -f ./gcc/Makefile ] ; then \
77806c3e 509 rootme=`pwd` ; export rootme ; \
7fcfdcf7 510 (cd ./gcc; \
2198e4ba 511 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
512 else \
513 true ; \
514 fi
4d714963
RP
515
516clean-gcc: force
06a07944 517 @if [ -f ./gcc/Makefile ] ; then \
77806c3e 518 rootme=`pwd` ; export rootme ; \
7fcfdcf7 519 (cd ./gcc; \
2198e4ba 520 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
521 else \
522 true ; \
523 fi
4d714963 524
c4fb14b7 525install-gcc: force
06a07944 526 @if [ -f ./gcc/Makefile ] ; then \
77806c3e 527 rootme=`pwd` ; export rootme ; \
7fcfdcf7 528 (cd ./gcc; \
2198e4ba 529 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
530 else \
531 true ; \
532 fi
23e3e7f9 533
4d714963 534### readline
c4fb14b7 535all-readline: force
06a07944 536 @if [ -f ./readline/Makefile ] ; then \
77806c3e 537 rootme=`pwd` ; export rootme ; \
7fcfdcf7 538 (cd ./readline; \
2198e4ba 539 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
540 else \
541 true ; \
542 fi
4d714963
RP
543
544clean-readline: force
06a07944 545 @if [ -f ./readline/Makefile ] ; then \
77806c3e 546 rootme=`pwd` ; export rootme ; \
7fcfdcf7 547 (cd ./readline; \
2198e4ba 548 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
549 else \
550 true ; \
551 fi
4d714963
RP
552
553install-readline: force
06a07944 554 @if [ -f ./readline/Makefile ] ; then \
77806c3e 555 rootme=`pwd` ; export rootme ; \
7fcfdcf7 556 (cd ./readline; \
2198e4ba 557 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
558 else \
559 true ; \
560 fi
23e3e7f9 561
4d714963 562### glob
c4fb14b7 563all-glob: force
06a07944 564 @if [ -f ./glob/Makefile ] ; then \
77806c3e 565 rootme=`pwd` ; export rootme ; \
7fcfdcf7 566 (cd ./glob; \
2198e4ba 567 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
568 else \
569 true ; \
570 fi
4d714963
RP
571
572clean-glob: force
06a07944 573 @if [ -f ./glob/Makefile ] ; then \
77806c3e 574 rootme=`pwd` ; export rootme ; \
7fcfdcf7 575 (cd ./glob; \
2198e4ba 576 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
577 else \
578 true ; \
579 fi
4d714963
RP
580
581install-glob: force
06a07944 582 @if [ -f ./glob/Makefile ] ; then \
77806c3e 583 rootme=`pwd` ; export rootme ; \
7fcfdcf7 584 (cd ./glob; \
2198e4ba 585 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
586 else \
587 true ; \
588 fi
23e3e7f9 589
4d714963 590### gas
c4fb14b7 591all-gas: all-libiberty all-bfd
06a07944 592 @if [ -f ./gas/Makefile ] ; then \
77806c3e 593 rootme=`pwd` ; export rootme ; \
7fcfdcf7 594 (cd ./gas; \
2198e4ba 595 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
596 else \
597 true ; \
598 fi
4d714963
RP
599
600clean-gas: force
06a07944 601 @if [ -f ./gas/Makefile ] ; then \
77806c3e 602 rootme=`pwd` ; export rootme ; \
7fcfdcf7 603 (cd ./gas; \
2198e4ba 604 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
605 else \
606 true ; \
607 fi
4d714963
RP
608
609install-gas: force
06a07944 610 @if [ -f ./gas/Makefile ] ; then \
77806c3e 611 rootme=`pwd` ; export rootme ; \
7fcfdcf7 612 (cd ./gas; \
2198e4ba 613 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
614 else \
615 true ; \
616 fi
23e3e7f9 617
3ad0ef37
SC
618### gas
619all-tgas: all-libiberty all-bfd
620 @if [ -f ./tgas/Makefile ] ; then \
621 rootme=`pwd` ; export rootme ; \
622 (cd ./tgas; \
623 $(MAKE) $(FLAGS_TO_PASS) all) ; \
624 else \
625 true ; \
626 fi
627
628
4d714963 629### ld
6995fe83 630all-ld: all-libiberty all-bfd all-byacc all-flex
06a07944 631 @if [ -f ./ld/Makefile ] ; then \
77806c3e 632 rootme=`pwd` ; export rootme ; \
7fcfdcf7 633 (cd ./ld; \
2198e4ba 634 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
635 else \
636 true ; \
637 fi
a0f47eb7 638
4d714963 639clean-ld: force
06a07944 640 @if [ -f ./ld/Makefile ] ; then \
77806c3e 641 rootme=`pwd` ; export rootme ; \
7fcfdcf7 642 (cd ./ld; \
2198e4ba 643 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
644 else \
645 true ; \
646 fi
6a3958b2 647
4d714963 648install-ld: force
06a07944 649 @if [ -f ./ld/Makefile ] ; then \
77806c3e 650 rootme=`pwd` ; export rootme ; \
7fcfdcf7 651 (cd ./ld; \
2198e4ba 652 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
653 else \
654 true ; \
655 fi
23e3e7f9 656
4d714963 657### gdb
6995fe83 658all-gdb: all-bfd all-libiberty all-mmalloc all-readline all-glob all-byacc
06a07944 659 @if [ -f ./gdb/Makefile ] ; then \
77806c3e 660 rootme=`pwd` ; export rootme ; \
7fcfdcf7 661 (cd ./gdb; \
2198e4ba 662 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
663 else \
664 true ; \
665 fi
4d714963
RP
666
667clean-gdb: force
06a07944 668 @if [ -f ./gdb/Makefile ] ; then \
77806c3e 669 rootme=`pwd` ; export rootme ; \
7fcfdcf7 670 (cd ./gdb; \
2198e4ba 671 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
672 else \
673 true ; \
674 fi
4d714963
RP
675
676install-gdb: force
06a07944 677 @if [ -f ./gdb/Makefile ] ; then \
77806c3e 678 rootme=`pwd` ; export rootme ; \
7fcfdcf7 679 (cd ./gdb; \
2198e4ba 680 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
681 else \
682 true ; \
683 fi
23e3e7f9 684
4d714963 685### make
c4fb14b7 686all-make: all-libiberty
06a07944 687 @if [ -f ./make/Makefile ] ; then \
77806c3e 688 rootme=`pwd` ; export rootme ; \
7fcfdcf7 689 (cd ./make; \
2198e4ba 690 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
691 else \
692 true ; \
693 fi
4d714963
RP
694
695clean-make: force
06a07944 696 @if [ -f ./make/Makefile ] ; then \
77806c3e 697 rootme=`pwd` ; export rootme ; \
7fcfdcf7 698 (cd ./make; \
2198e4ba 699 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
700 else \
701 true ; \
702 fi
4d714963
RP
703
704install-make: force
06a07944 705 @if [ -f ./make/Makefile ] ; then \
77806c3e 706 rootme=`pwd` ; export rootme ; \
7fcfdcf7 707 (cd ./make; \
2198e4ba 708 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
709 else \
710 true ; \
711 fi
23e3e7f9 712
4d714963 713### diff
c4fb14b7 714all-diff: force
06a07944 715 @if [ -f ./diff/Makefile ] ; then \
77806c3e 716 rootme=`pwd` ; export rootme ; \
7fcfdcf7 717 (cd ./diff; \
2198e4ba 718 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
719 else \
720 true ; \
721 fi
4d714963
RP
722
723clean-diff: force
06a07944 724 @if [ -f ./diff/Makefile ] ; then \
77806c3e 725 rootme=`pwd` ; export rootme ; \
7fcfdcf7 726 (cd ./diff; \
2198e4ba 727 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
728 else \
729 true ; \
730 fi
4d714963
RP
731
732install-diff: force
06a07944 733 @if [ -f ./diff/Makefile ] ; then \
77806c3e 734 rootme=`pwd` ; export rootme ; \
7fcfdcf7 735 (cd ./diff/; \
2198e4ba 736 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
737 else \
738 true ; \
739 fi
23e3e7f9 740
4d714963 741### grep
c4fb14b7 742all-grep: force
06a07944 743 @if [ -f ./grep/Makefile ] ; then \
77806c3e 744 rootme=`pwd` ; export rootme ; \
7fcfdcf7 745 (cd ./grep; \
2198e4ba 746 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
747 else \
748 true ; \
749 fi
4d714963
RP
750
751clean-grep: force
06a07944 752 @if [ -f ./grep/Makefile ] ; then \
77806c3e 753 rootme=`pwd` ; export rootme ; \
7fcfdcf7 754 (cd ./grep; \
2198e4ba 755 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
756 else \
757 true ; \
758 fi
4d714963
RP
759
760install-grep: force
06a07944 761 @if [ -f ./grep/Makefile ] ; then \
77806c3e 762 rootme=`pwd` ; export rootme ; \
7fcfdcf7 763 (cd ./grep; \
2198e4ba
MT
764 $(MAKE) $(FLAGS_TO_PASS) install) ; \
765 else \
766 true ; \
767 fi
768
769### rcs
770all-rcs: force
06a07944 771 @if [ -f ./rcs/Makefile ] ; then \
2198e4ba
MT
772 rootme=`pwd` ; export rootme ; \
773 (cd ./rcs; \
774 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
775 else \
776 true ; \
777 fi
4d714963
RP
778
779clean-rcs: force
06a07944 780 @if [ -f ./rcs/Makefile ] ; then \
77806c3e 781 rootme=`pwd` ; export rootme ; \
7fcfdcf7 782 (cd ./rcs; \
2198e4ba 783 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
784 else \
785 true ; \
786 fi
4d714963 787
c4fb14b7 788install-rcs: force
06a07944 789 @if [ -f ./rcs/Makefile ] ; then \
77806c3e 790 rootme=`pwd` ; export rootme ; \
7fcfdcf7 791 (cd ./rcs; \
2198e4ba 792 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
793 else \
794 true ; \
795 fi
23e3e7f9 796
4d714963 797### cvs
c4fb14b7 798all-cvs: force
06a07944 799 @if [ -f ./cvs/Makefile ] ; then \
77806c3e 800 rootme=`pwd` ; export rootme ; \
7fcfdcf7 801 (cd ./cvs; \
2198e4ba 802 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
803 else \
804 true ; \
805 fi
4d714963 806
c4fb14b7 807clean-cvs: force
06a07944 808 @if [ -f ./cvs/Makefile ] ; then \
77806c3e 809 rootme=`pwd` ; export rootme ; \
7fcfdcf7 810 (cd ./cvs; \
2198e4ba 811 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
812 else \
813 true ; \
814 fi
4d714963 815
c4fb14b7 816install-cvs: force
06a07944 817 @if [ -f ./cvs/Makefile ] ; then \
77806c3e 818 rootme=`pwd` ; export rootme ; \
7fcfdcf7 819 (cd ./cvs; \
2198e4ba 820 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
821 else \
822 true ; \
823 fi
23e3e7f9 824
7c9feeb7 825### patch
c4fb14b7 826all-patch: force
06a07944 827 @if [ -f ./patch/Makefile ] ; then \
77806c3e 828 rootme=`pwd` ; export rootme ; \
7fcfdcf7 829 (cd ./patch; \
2198e4ba 830 $(MAKE) $(FLAGS_TO_PASS) all) ; \
7c9feeb7
RP
831 else \
832 true ; \
833 fi
834
c4fb14b7 835clean-patch: force
06a07944 836 @if [ -f ./patch/Makefile ] ; then \
77806c3e 837 rootme=`pwd` ; export rootme ; \
7fcfdcf7 838 (cd ./patch; \
2198e4ba 839 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
7c9feeb7
RP
840 else \
841 true ; \
842 fi
843
c4fb14b7 844install-patch: force
06a07944 845 @if [ -f ./patch/Makefile ] ; then \
77806c3e 846 rootme=`pwd` ; export rootme ; \
7fcfdcf7 847 (cd ./patch; \
2198e4ba 848 $(MAKE) $(FLAGS_TO_PASS) \
7c9feeb7 849 bindir=$(bindir) \
2198e4ba 850 man1dir=$(man1dir) install) ; \
7c9feeb7
RP
851 else \
852 true ; \
853 fi
854
4d714963 855### emacs
c4fb14b7 856all-emacs: force
06a07944 857 @if [ -f ./emacs/Makefile ] ; then \
77806c3e 858 rootme=`pwd` ; export rootme ; \
7fcfdcf7 859 (cd ./emacs; \
2198e4ba 860 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
861 else \
862 true ; \
863 fi
4d714963 864
c4fb14b7 865clean-emacs: force
06a07944 866 @if [ -f ./emacs/Makefile ] ; then \
77806c3e 867 rootme=`pwd` ; export rootme ; \
7fcfdcf7 868 (cd ./emacs; \
2198e4ba 869 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
870 else \
871 true ; \
872 fi
4d714963 873
c4fb14b7 874install-emacs: force
06a07944 875 @if [ -f ./emacs/Makefile ] ; then \
77806c3e 876 rootme=`pwd` ; export rootme ; \
7fcfdcf7 877 (cd ./emacs; \
2198e4ba 878 $(MAKE) $(FLAGS_TO_PASS) install) ; \
b26ff9d8
RP
879 else \
880 true ; \
881 fi
23e3e7f9 882
4d714963 883### ispell
c4fb14b7 884all-ispell: all-emacs
06a07944 885 @if [ -f ./ispell/Makefile ] ; then \
77806c3e 886 rootme=`pwd` ; export rootme ; \
7fcfdcf7 887 (cd ./ispell; \
2198e4ba 888 $(MAKE) $(FLAGS_TO_PASS) all) ; \
b26ff9d8
RP
889 else \
890 true ; \
891 fi
4d714963 892
c4fb14b7 893clean-ispell: force
06a07944 894 @if [ -f ./ispell/Makefile ] ; then \
77806c3e 895 rootme=`pwd` ; export rootme ; \
7fcfdcf7 896 (cd ./ispell; \
2198e4ba 897 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
b26ff9d8
RP
898 else \
899 true ; \
900 fi
4d714963 901
c4fb14b7 902install-ispell: force
06a07944 903 @if [ -f ./ispell/Makefile ] ; then \
77806c3e 904 rootme=`pwd` ; export rootme ; \
7fcfdcf7 905 (cd ./ispell; \
2198e4ba 906 $(MAKE) $(FLAGS_TO_PASS) install) ; \
079399f6
RP
907 else \
908 true ; \
909 fi
23e3e7f9 910
079b2abe 911### send_pr
c4fb14b7 912all-send_pr: force
06a07944 913 @if [ -f ./send_pr/Makefile ] ; then \
079b2abe
RP
914 rootme=`pwd` ; export rootme ; \
915 (cd ./send_pr; \
2198e4ba 916 $(MAKE) $(FLAGS_TO_PASS) all) ; \
079b2abe
RP
917 else \
918 true ; \
919 fi
079b2abe 920
c4fb14b7 921clean-send_pr: force
06a07944 922 @if [ -f ./send_pr/Makefile ] ; then \
079b2abe
RP
923 rootme=`pwd` ; export rootme ; \
924 (cd ./send_pr; \
2198e4ba 925 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
079b2abe
RP
926 else \
927 true ; \
928 fi
929
c4fb14b7 930install-send_pr: force
06a07944 931 @if [ -f ./send_pr/Makefile ] ; then \
079b2abe
RP
932 rootme=`pwd` ; export rootme ; \
933 (cd ./send_pr; \
2198e4ba 934 $(MAKE) $(FLAGS_TO_PASS) install) ; \
079b2abe
RP
935 else \
936 true ; \
937 fi
938
06a07944
RP
939### libm
940all-libm: force
941 @if [ -d ./libm ] ; then \
942 rootme=`pwd` ; export rootme ; \
943 (cd ./libm; \
944 $(MAKE) $(FLAGS_TO_PASS) all) ; \
945 else \
946 true ; \
947 fi
948
949clean-libm: force
950 @if [ -d ./libm ] ; then \
951 rootme=`pwd` ; export rootme ; \
952 (cd ./libm; \
953 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
954 else \
955 true ; \
956 fi
957
958install-libm: force
959 @if [ -d ./libm ] ; then \
960 rootme=`pwd` ; export rootme ; \
961 (cd ./libm; \
962 $(MAKE) $(FLAGS_TO_PASS) install) ; \
963 else \
964 true ; \
965 fi
966
ba8abfce 967### libg++
9d98d2ac 968
c4fb14b7 969all-libg++: all-gas all-ld all-gcc
06a07944 970 @if [ -f ./libg++/Makefile ] ; then \
77806c3e 971 rootme=`pwd` ; export rootme ; \
7fcfdcf7 972 (cd ./libg++; \
f0e9ba1e 973 $(MAKE) $(FLAGS_TO_PASS) "CC=${GXX}" all) ; \
ba8abfce
JG
974 else \
975 true ; \
976 fi
977
c4fb14b7 978clean-libg++: force
06a07944 979 @if [ -f ./libg++/Makefile ] ; then \
77806c3e 980 rootme=`pwd` ; export rootme ; \
7fcfdcf7 981 (cd ./libg++; \
f0e9ba1e 982 $(MAKE) $(FLAGS_TO_PASS) "CC=${GXX}" clean) ; \
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 ; \
7fcfdcf7 990 (cd ./libg++; \
f0e9ba1e 991 $(MAKE) $(FLAGS_TO_PASS) "CC=${GXX}" install) ; \
ba8abfce
JG
992 else \
993 true ; \
994 fi
23e3e7f9 995
4d714963 996### other supporting targets
a0f47eb7
SC
997# this is a bad hack.
998all.xclib: all.normal
999 if [ -d clib ] ; then \
2198e4ba 1000 (cd clib ; $(MAKE) $(FLAGS_TO_PASS)) ; \
a0f47eb7
SC
1001 fi
1002
02a7ba9a 1003subdir_do:
1dbe4d41 1004 @for i in $(DODIRS); do \
7fcfdcf7
SC
1005 if [ -f ./$$i/localenv ] ; then \
1006 if (rootme=`pwd` ; export rootme ; cd ./$$i; \
2198e4ba 1007 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
a0f47eb7 1008 else exit 1 ; fi ; \
06a07944 1009 else if [ -f ./$$i/Makefile ] ; then \
7fcfdcf7 1010 if (rootme=`pwd` ; export rootme ; cd ./$$i; \
2198e4ba 1011 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
a01bf1fb
RP
1012 else exit 1 ; fi ; \
1013 else true ; fi ; \
a0f47eb7 1014 fi ; \
a01bf1fb 1015 done
eb02fd64 1016
abc52b80
JG
1017# The "else true" stuff is for Ultrix; the shell returns the exit code
1018# of the "if" command, if no commands are run in the "then" or "else" part,
1019# causing Make to quit.
4c27527f
RP
1020
1021MAKEDIRS= \
4d714963 1022 $(prefix) \
7fcfdcf7 1023 $(exec_prefix) \
8b361a95
SEF
1024 $(tooldir)
1025
1026# $(bindir) \
1027# $(libdir) \
1028# $(includedir) \
1029# $(datadir) \
1030# $(docdir) \
1031# $(mandir) \
1032# $(man1dir) \
1033# $(man5dir)
4d714963
RP
1034
1035# $(man2dir) \
1036# $(man3dir) \
1037# $(man4dir) \
1038# $(man6dir) \
1039# $(man7dir) \
1040# $(man8dir)
4c27527f 1041
02a7ba9a 1042install-dirs:
4c27527f 1043 for i in $(MAKEDIRS) ; do \
cd49a4dc 1044 echo Making $$i... ; \
8b361a95
SEF
1045 parent=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
1046 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \
06a07944
RP
1047 if [ ! -d $$i ] ; then \
1048 if mkdir $$i ; then \
1049 true ; \
1050 else \
1051 exit 1 ; \
1052 fi ; \
1053 else \
1054 true ; \
1055 fi ; \
4c27527f 1056 done
0ec776a5 1057
c5f94070 1058MAKEINFODIRS= \
8b361a95
SEF
1059 $(prefix)
1060
1061# $(infodir)
c5f94070 1062
02a7ba9a 1063install-info-dirs:
9a9e8e7f 1064 if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi
8b361a95
SEF
1065# if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
1066# if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
c5f94070 1067
02a7ba9a 1068dir.info:
8b361a95 1069 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new
c466cfab 1070 mv -f dir.info.new dir.info
6b7e5998 1071
eb02fd64
RP
1072etags tags: TAGS
1073
02a7ba9a 1074TAGS:
eb02fd64
RP
1075 etags `$(MAKE) ls`
1076
1077ls:
1078 @echo Makefile
1079 @for i in $(SUBDIRS); \
1080 do \
1081 (cd $$i; \
1082 pwd=`pwd`; \
1083 wd=`basename $$pwd`; \
1084 for j in `$(MAKE) ls`; \
1085 do \
1086 echo $$wd/$$j; \
1087 done) \
1088 done
1089
3c81fef5 1090force:
eb02fd64
RP
1091
1092# with the gnu make, this is done automatically.
1093
f1eb48b6 1094Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 1095 $(SHELL) ./config.status
eb02fd64 1096
11954bf1
JG
1097#
1098# Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1099
23e3e7f9 1100DEVO_SUPPORT= README cfg-paper.texi Makefile.in configure configure.in \
be2becc7 1101 config.sub config configure.man move-if-change
66cfe047 1102GDB_SUPPORT_DIRS= bfd include libiberty mmalloc readline glob
abc52b80 1103GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
11954bf1 1104
abc52b80 1105setup-dirs: force_update
11954bf1
JG
1106 ./configure sun4
1107 make clean
1108 ./configure -rm sun4
905bb120 1109 chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
abc52b80
JG
1110
1111bfd.ilrt.tar.Z: setup-dirs
11954bf1 1112 rm -f bfd.ilrt.tar.Z
abc52b80 1113 tar cf - $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) \
11954bf1
JG
1114 | compress -v >bfd.ilrt.tar.Z
1115
abc52b80
JG
1116gdb.tar.Z: setup-dirs
1117 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir)
1118 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
1119
1120make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex
1121 rm -rf proto-toplev; mkdir proto-toplev
1122 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
1123 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
1124 ln -s ../$$i . ; \
1125 done)
7c9feeb7
RP
1126 # Put only one copy (four hard links) of COPYING in the tar file.
1127 rm proto-toplev/bfd/COPYING
1128 ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING
1129 rm proto-toplev/include/COPYING
1130 ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING
1131 rm proto-toplev/readline/COPYING
1132 ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING
a3a063a9
JG
1133 # Take out texinfo from configurable dirs
1134 rm proto-toplev/configure.in
1135 sed '/^configdirs=/s/texinfo //' <configure.in >proto-toplev/configure.in
4d714963
RP
1136 # Take out glob from buildable dirs
1137 rm proto-toplev/Makefile.in
6995fe83
SG
1138
1139 sed -e '/^SUBDIRS =/s/glob //' \
1140 -e '/^all\.normal: /s/\all-texinfo //' \
1141 -e '/^clean: /s/clean-texinfo //' \
1142 -e '/^install\.all: /s/install-texinfo //' \
1143 <Makefile.in >proto-toplev/Makefile.in
1144
abc52b80
JG
1145 mkdir proto-toplev/texinfo
1146 mkdir proto-toplev/texinfo/fsf
1147 ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/
905bb120 1148 chmod og=u `find proto-toplev -print`
abc52b80
JG
1149 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1150 echo "==> Making gdb-$$VER.tar.Z"; \
1151 ln -s proto-toplev gdb-$$VER; \
1152 tar cfh - gdb-$$VER \
1153 | compress -v >gdb-$$VER.tar.Z)
1154
11954bf1
JG
1155force_update:
1156
0ec776a5
SC
1157nothing:
1158
eb02fd64 1159# end of Makefile.in
This page took 0.115437 seconds and 4 git commands to generate.