Lint removal, extra prototypes.
[deliverable/binutils-gdb.git] / Makefile.in
CommitLineData
eb02fd64 1#
131a3881 2# Makefile for directory with subdirs to build.
4dfe09da 3# Copyright (C) 1990, 1991 Cygnus Support
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
4d714963
RP
24datadir = $(prefix)/lib
25bindir = $(prefix)/bin
26libdir = $(prefix)/lib
27mandir = $(datadir)/man
28man1dir = $(mandir)/man1
29man2dir = $(mandir)/man2
30man3dir = $(mandir)/man3
31man4dir = $(mandir)/man4
32man5dir = $(mandir)/man5
33man6dir = $(mandir)/man6
34man7dir = $(mandir)/man7
35man8dir = $(mandir)/man8
36man9dir = $(mandir)/man9
c466cfab 37infodir = $(datadir)/info
4d714963
RP
38includedir = $(prefix)/include
39docdir = $(datadir)/doc
40
41SHELL = /bin/sh
42
43INSTALL = install -c
44INSTALL_PROGRAM = $(INSTALL)
45INSTALL_DATA = $(INSTALL)
3c8735af 46
ec342d7d 47AR = ar
ba8abfce 48AR_FLAGS = qc
4d714963 49RANLIB = ranlib
eb02fd64 50
77806c3e
RP
51BISON = `if [ -d $${rootme}/bison ] ; \
52 then echo $${rootme}/bison/bison -L $${rootme}/bison/ -y ; \
23e3e7f9 53 else echo bison -y ; fi`
2645fb0c 54
77806c3e
RP
55MAKEINFO = `if [ -d $${rootme}/texinfo/C ] ; \
56 then echo $${rootme}/texinfo/C/makeinfo ; \
57 else echo makeinfo ; fi`
b772d75e 58
ba8abfce 59SUBDIRS = libiberty glob readline bfd gdb binutils ld gas gcc libg++ gnulib clib
6a3958b2
RP
60OTHERS =
61
a0f47eb7 62ALL = all.normal
b26ff9d8 63INSTALL_TARGET = install.all
fb660409
RP
64
65### for debugging
66#GCCVERBOSE=-v
67
23e3e7f9 68
eb02fd64 69#### host and target specific makefile fragments come in here.
ec342d7d 70###
eb02fd64 71
4d714963
RP
72.PHONY: all info install-info clean-info
73
a0f47eb7 74all: $(ALL)
4d714963 75
b74fd080 76info: cfg-paper.info configure.info
77806c3e 77 rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
c5f94070 78
25113b46
RP
79clean-info:
80 $(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)"
b74fd080 81 rm -f cfg-paper.info* configure.info*
25113b46 82
12682548 83cfg-paper.info: cfg-paper.texi
77806c3e 84 rootme=`pwd` ; export rootme ; $(MAKEINFO) -o cfg-paper.info $(srcdir)/cfg-paper.texi
12682548 85
8f861f08 86configure.info: configure.texi
77806c3e 87 rootme=`pwd` ; export rootme ; $(MAKEINFO) -o configure.info $(srcdir)/configure.texi
8f861f08 88
9a9e8e7f 89install-info: install-info-dirs force
b74fd080 90 [ -d $(infodir) ] || mkdir $(infodir)
c5f94070 91 $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
12682548 92 $(INSTALL_DATA) cfg-paper.info $(infodir)/cfg-paper.info
bcdbe02f 93 $(INSTALL_DATA) configure.info $(infodir)/configure.info
9a9e8e7f
RP
94 $(MAKE) dir.info install-dir.info
95
96install-dir.info:
97 $(INSTALL_DATA) dir.info $(infodir)/dir.info
4d714963 98
062676eb 99# clib send_pr
ba8abfce
JG
100# all-gnulib
101all.normal: all-texinfo all-bison all-byacc all-flex all-ld \
77806c3e 102 all-gas all-gcc all-binutils \
7c9feeb7 103 all-libg++ all-gdb all-make all-cvs all-patch all-emacs all-ispell all-fileutils
b26ff9d8 104all.cross: all-bison all-ld all-gnulib all-gdb
4d714963
RP
105# $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
106
25113b46
RP
107clean: clean-libiberty clean-texinfo clean-bfd clean-binutils \
108 clean-bison clean-byacc clean-flex clean-ld clean-gas \
109 clean-gcc clean-gnulib clean-readline clean-glob clean-gdb \
110 clean-make clean-diff clean-grep clean-rcs clean-gdbm \
7c9feeb7 111 clean-cvs clean-patch clean-emacs clean-ispell clean-fileutils
4d714963
RP
112 rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
113
ba8abfce
JG
114install: $(INSTALL_TARGET) $(srcdir)/configure.man
115 $(INSTALL_DATA) $(srcdir)/configure.man $(man1dir)/configure.1
b26ff9d8 116
25113b46
RP
117install.all: install-dirs install-libiberty install-texinfo \
118 install-binutils install-bison install-byacc install-flex \
119 install-ld install-gas install-gcc install-gnulib \
120 install-readline install-glob install-gdb install-make \
7c9feeb7 121 install-cvs install-patch install-emacs install-ispell install-fileutils
b26ff9d8
RP
122install.cross: install-dirs install-libiberty install-binutils install-bison \
123 install-byacc install-ld install-gas install-gnulib \
124 install-readline install-glob install-gdb
23e3e7f9 125
4d714963
RP
126### libiberty
127.PHONY: all-libiberty just-libiberty
128all-libiberty: just-libiberty
129just-libiberty: force
b26ff9d8 130 if [ -d $(unsubdir)/libiberty ] ; then \
77806c3e 131 rootme=`pwd` ; export rootme ; \
b26ff9d8 132 (cd $(unsubdir)/libiberty$(subdir); \
4d714963
RP
133 $(MAKE) \
134 "against=$(against)" \
135 "AR=$(AR)" \
136 "AR_FLAGS=$(AR_FLAGS)" \
137 "CC=$(CC)" \
138 "RANLIB=$(RANLIB)" \
139 "LOADLIBES=$(LOADLIBES)" \
140 "LDFLAGS=$(LDFLAGS)" \
141 "BISON=$(BISON)" \
142 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
143 all) ; \
144 else \
145 true ; \
146 fi
4d714963
RP
147
148clean-libiberty: force
b26ff9d8 149 if [ -d $(unsubdir)/libiberty ] ; then \
77806c3e 150 rootme=`pwd` ; export rootme ; \
b26ff9d8 151 (cd $(unsubdir)/libiberty$(subdir); \
4d714963
RP
152 $(MAKE) \
153 "against=$(against)" \
154 "AR=$(AR)" \
155 "AR_FLAGS=$(AR_FLAGS)" \
156 "CC=$(CC)" \
157 "RANLIB=$(RANLIB)" \
158 "LOADLIBES=$(LOADLIBES)" \
159 "LDFLAGS=$(LDFLAGS)" \
160 "BISON=$(BISON)" \
161 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
162 clean) ; \
163 else \
164 true ; \
165 fi
4d714963
RP
166
167install-libiberty: force
b26ff9d8 168 if [ -d $(unsubdir)/libiberty ] ; then \
77806c3e 169 rootme=`pwd` ; export rootme ; \
b26ff9d8 170 (cd $(unsubdir)/libiberty$(subdir); \
4d714963
RP
171 $(MAKE) \
172 "against=$(against)" \
173 "AR=$(AR)" \
174 "AR_FLAGS=$(AR_FLAGS)" \
175 "CC=$(CC)" \
176 "RANLIB=$(RANLIB)" \
177 "LOADLIBES=$(LOADLIBES)" \
178 "LDFLAGS=$(LDFLAGS)" \
179 "BISON=$(BISON)" \
180 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
181 install) ; \
182 else \
183 true ; \
184 fi
23e3e7f9 185
4d714963
RP
186### texinfo
187.PHONY: all-texinfo just-texinfo
188all-texinfo: just-texinfo
189just-texinfo: just-libiberty force
b26ff9d8 190 if [ -d $(unsubdir)/texinfo ] ; then \
77806c3e
RP
191 rootme=`pwd` ; export rootme ; \
192 rootme=`pwd` ; export rootme ; \
b26ff9d8 193 (cd $(unsubdir)/texinfo$(subdir); \
4d714963
RP
194 $(MAKE) \
195 "against=$(against)" \
196 "AR=$(AR)" \
197 "AR_FLAGS=$(AR_FLAGS)" \
198 "CC=$(CC)" \
199 "RANLIB=$(RANLIB)" \
200 "LOADLIBES=$(LOADLIBES)" \
201 "LDFLAGS=$(LDFLAGS)" \
202 "BISON=$(BISON)" \
203 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
204 all) ; \
205 else \
206 true ; \
207 fi
4d714963
RP
208
209clean-texinfo: force
b26ff9d8 210 if [ -d $(unsubdir)/texinfo ] ; then \
77806c3e 211 rootme=`pwd` ; export rootme ; \
b26ff9d8 212 (cd $(unsubdir)/texinfo$(subdir); \
4d714963
RP
213 $(MAKE) \
214 "against=$(against)" \
215 "AR=$(AR)" \
216 "AR_FLAGS=$(AR_FLAGS)" \
217 "CC=$(CC)" \
218 "RANLIB=$(RANLIB)" \
219 "LOADLIBES=$(LOADLIBES)" \
220 "LDFLAGS=$(LDFLAGS)" \
221 "BISON=$(BISON)" \
222 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
223 clean) ; \
224 else \
225 true ; \
226 fi
4d714963
RP
227
228install-texinfo: force
b26ff9d8 229 if [ -d $(unsubdir)/texinfo ] ; then \
77806c3e 230 rootme=`pwd` ; export rootme ; \
b26ff9d8 231 (cd $(unsubdir)/texinfo$(subdir); \
4d714963
RP
232 $(MAKE) \
233 "against=$(against)" \
234 "AR=$(AR)" \
235 "AR_FLAGS=$(AR_FLAGS)" \
236 "CC=$(CC)" \
237 "RANLIB=$(RANLIB)" \
238 "LOADLIBES=$(LOADLIBES)" \
239 "LDFLAGS=$(LDFLAGS)" \
240 "BISON=$(BISON)" \
241 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
242 install) ; \
243 else \
244 true ; \
245 fi
23e3e7f9 246
4d714963
RP
247### bfd
248.PHONY: all-bfd just-bfd
249all-bfd: just-bfd
250just-bfd: force
b26ff9d8 251 if [ -d $(unsubdir)/bfd ] ; then \
77806c3e 252 rootme=`pwd` ; export rootme ; \
b26ff9d8 253 (cd $(unsubdir)/bfd$(subdir); \
4d714963
RP
254 $(MAKE) \
255 "against=$(against)" \
256 "AR=$(AR)" \
257 "AR_FLAGS=$(AR_FLAGS)" \
258 "CC=$(CC)" \
259 "RANLIB=$(RANLIB)" \
260 "LOADLIBES=$(LOADLIBES)" \
261 "LDFLAGS=$(LDFLAGS)" \
262 "BISON=$(BISON)" \
263 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
264 all) ; \
265 else \
266 true ; \
267 fi
4d714963
RP
268
269clean-bfd: force
b26ff9d8 270 if [ -d $(unsubdir)/bfd ] ; then \
77806c3e 271 rootme=`pwd` ; export rootme ; \
b26ff9d8 272 (cd $(unsubdir)/bfd$(subdir); \
4d714963
RP
273 $(MAKE) \
274 "against=$(against)" \
275 "AR=$(AR)" \
276 "AR_FLAGS=$(AR_FLAGS)" \
277 "CC=$(CC)" \
278 "RANLIB=$(RANLIB)" \
279 "LOADLIBES=$(LOADLIBES)" \
280 "LDFLAGS=$(LDFLAGS)" \
281 "BISON=$(BISON)" \
282 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
283 clean) ; \
284 else \
285 true ; \
286 fi
4d714963
RP
287
288install-bfd: force
b26ff9d8 289 if [ -d $(unsubdir)/bfd ] ; then \
77806c3e 290 rootme=`pwd` ; export rootme ; \
b26ff9d8 291 (cd $(unsubdir)/bfd$(subdir); \
4d714963
RP
292 $(MAKE) \
293 "against=$(against)" \
294 "AR=$(AR)" \
295 "AR_FLAGS=$(AR_FLAGS)" \
296 "CC=$(CC)" \
297 "RANLIB=$(RANLIB)" \
298 "LOADLIBES=$(LOADLIBES)" \
299 "LDFLAGS=$(LDFLAGS)" \
300 "BISON=$(BISON)" \
301 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
302 install) ; \
303 else \
304 true ; \
305 fi
23e3e7f9 306
4d714963
RP
307### binutils
308.PHONY: all-binutils just-binutils
309all-binutils: just-binutils
310just-binutils: just-libiberty just-bfd force
b26ff9d8 311 if [ -d $(unsubdir)/binutils ] ; then \
77806c3e 312 rootme=`pwd` ; export rootme ; \
b26ff9d8 313 (cd $(unsubdir)/binutils$(subdir); \
4d714963
RP
314 $(MAKE) \
315 "against=$(against)" \
316 "AR=$(AR)" \
317 "AR_FLAGS=$(AR_FLAGS)" \
318 "CC=$(CC)" \
319 "RANLIB=$(RANLIB)" \
320 "LOADLIBES=$(LOADLIBES)" \
321 "LDFLAGS=$(LDFLAGS)" \
322 "BISON=$(BISON)" \
323 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
324 all) ; \
325 else \
326 true ; \
327 fi
4d714963
RP
328
329clean-binutils: force
b26ff9d8 330 if [ -d $(unsubdir)/binutils ] ; then \
77806c3e 331 rootme=`pwd` ; export rootme ; \
b26ff9d8 332 (cd $(unsubdir)/binutils$(subdir); \
4d714963
RP
333 $(MAKE) \
334 "against=$(against)" \
335 "AR=$(AR)" \
336 "AR_FLAGS=$(AR_FLAGS)" \
337 "CC=$(CC)" \
338 "RANLIB=$(RANLIB)" \
339 "LOADLIBES=$(LOADLIBES)" \
340 "LDFLAGS=$(LDFLAGS)" \
341 "BISON=$(BISON)" \
342 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
343 clean) ; \
344 else \
345 true ; \
346 fi
4d714963
RP
347
348install-binutils: force
b26ff9d8 349 if [ -d $(unsubdir)/binutils ] ; then \
77806c3e 350 rootme=`pwd` ; export rootme ; \
b26ff9d8 351 (cd $(unsubdir)/binutils$(subdir); \
4d714963
RP
352 $(MAKE) \
353 "against=$(against)" \
354 "AR=$(AR)" \
355 "AR_FLAGS=$(AR_FLAGS)" \
356 "CC=$(CC)" \
357 "RANLIB=$(RANLIB)" \
358 "LOADLIBES=$(LOADLIBES)" \
359 "LDFLAGS=$(LDFLAGS)" \
360 "BISON=$(BISON)" \
361 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
362 install) ; \
363 else \
364 true ; \
365 fi
23e3e7f9 366
4d714963
RP
367### byacc
368.PHONY: all-byacc just-byacc
369all-byacc: just-byacc
370just-byacc: force
b26ff9d8 371 if [ -d $(unsubdir)/byacc ] ; then \
77806c3e 372 rootme=`pwd` ; export rootme ; \
b26ff9d8 373 (cd $(unsubdir)/byacc$(subdir); \
4d714963
RP
374 $(MAKE) \
375 "against=$(against)" \
376 "AR=$(AR)" \
377 "AR_FLAGS=$(AR_FLAGS)" \
378 "CC=$(CC)" \
379 "RANLIB=$(RANLIB)" \
380 "LOADLIBES=$(LOADLIBES)" \
381 "LDFLAGS=$(LDFLAGS)" \
382 "BISON=$(BISON)" \
383 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
384 all) ; \
385 else \
386 true ; \
387 fi
4d714963
RP
388
389clean-byacc: force
b26ff9d8 390 if [ -d $(unsubdir)/byacc ] ; then \
77806c3e 391 rootme=`pwd` ; export rootme ; \
b26ff9d8 392 (cd $(unsubdir)/byacc$(subdir); \
4d714963
RP
393 $(MAKE) \
394 "against=$(against)" \
395 "AR=$(AR)" \
396 "AR_FLAGS=$(AR_FLAGS)" \
397 "CC=$(CC)" \
398 "RANLIB=$(RANLIB)" \
399 "LOADLIBES=$(LOADLIBES)" \
400 "LDFLAGS=$(LDFLAGS)" \
401 "BISON=$(BISON)" \
402 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
403 clean) ; \
404 else \
405 true ; \
406 fi
4d714963
RP
407
408install-byacc: force
b26ff9d8 409 if [ -d $(unsubdir)/byacc ] ; then \
77806c3e 410 rootme=`pwd` ; export rootme ; \
b26ff9d8 411 (cd $(unsubdir)/byacc$(subdir); \
4d714963
RP
412 $(MAKE) \
413 "against=$(against)" \
414 "AR=$(AR)" \
415 "AR_FLAGS=$(AR_FLAGS)" \
416 "CC=$(CC)" \
417 "RANLIB=$(RANLIB)" \
418 "LOADLIBES=$(LOADLIBES)" \
419 "LDFLAGS=$(LDFLAGS)" \
420 "BISON=$(BISON)" \
421 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
422 install) ; \
423 else \
424 true ; \
425 fi
23e3e7f9 426
4d714963
RP
427### bison
428.PHONY: all-bison just-bison
429all-bison: just-bison
430just-bison: just-libiberty force
b26ff9d8 431 if [ -d $(unsubdir)/bison ] ; then \
77806c3e 432 rootme=`pwd` ; export rootme ; \
b26ff9d8 433 (cd $(unsubdir)/bison$(subdir); \
4d714963 434 $(MAKE) \
b74fd080
RP
435 "prefix=$(prefix)" \
436 "datadir=$(datadir)" \
4d714963
RP
437 "AR=$(AR)" \
438 "AR_FLAGS=$(AR_FLAGS)" \
439 "CC=$(CC)" \
440 "RANLIB=$(RANLIB)" \
441 "LOADLIBES=$(LOADLIBES)" \
442 "LDFLAGS=$(LDFLAGS)" \
443 "BISON=$(BISON)" \
444 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
445 all) ; \
446 else \
447 true ; \
448 fi
4d714963
RP
449
450clean-bison: force
b26ff9d8 451 if [ -d $(unsubdir)/bison ] ; then \
77806c3e 452 rootme=`pwd` ; export rootme ; \
b26ff9d8 453 (cd $(unsubdir)/bison$(subdir); \
4d714963 454 $(MAKE) \
b74fd080
RP
455 "prefix=$(prefix)" \
456 "datadir=$(datadir)" \
4d714963
RP
457 "AR=$(AR)" \
458 "AR_FLAGS=$(AR_FLAGS)" \
459 "CC=$(CC)" \
460 "RANLIB=$(RANLIB)" \
461 "LOADLIBES=$(LOADLIBES)" \
462 "LDFLAGS=$(LDFLAGS)" \
463 "BISON=$(BISON)" \
464 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
465 clean) ; \
466 else \
467 true ; \
468 fi
4d714963
RP
469
470install-bison: force
b26ff9d8 471 if [ -d $(unsubdir)/bison ] ; then \
77806c3e 472 rootme=`pwd` ; export rootme ; \
b26ff9d8 473 (cd $(unsubdir)/bison$(subdir); \
4d714963 474 $(MAKE) \
b74fd080
RP
475 "prefix=$(prefix)" \
476 "datadir=$(datadir)" \
4d714963
RP
477 "AR=$(AR)" \
478 "AR_FLAGS=$(AR_FLAGS)" \
479 "CC=$(CC)" \
480 "RANLIB=$(RANLIB)" \
481 "LOADLIBES=$(LOADLIBES)" \
482 "LDFLAGS=$(LDFLAGS)" \
483 "BISON=$(BISON)" \
484 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
485 install) ; \
486 else \
487 true ; \
488 fi
23e3e7f9 489
4d714963
RP
490### gcc
491.PHONY: all-gcc just-gcc
492all-gcc: just-gcc
ba8abfce 493#just-gcc: just-libiberty just-bison just-gnulib1 force
77806c3e 494just-gcc: just-libiberty just-bison just-gas force
b26ff9d8 495 if [ -d $(unsubdir)/gcc ] ; then \
77806c3e 496 rootme=`pwd` ; export rootme ; \
b26ff9d8 497 (cd $(unsubdir)/gcc$(subdir); \
4d714963
RP
498 $(MAKE) \
499 "against=$(against)" \
500 "AR=$(AR)" \
501 "AR_FLAGS=$(AR_FLAGS)" \
502 "CC=$(CC)" \
503 "RANLIB=$(RANLIB)" \
504 "LOADLIBES=$(LOADLIBES)" \
505 "LDFLAGS=$(LDFLAGS)" \
506 "BISON=$(BISON)" \
507 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
508 all) ; \
509 else \
510 true ; \
511 fi
4d714963
RP
512
513clean-gcc: force
b26ff9d8 514 if [ -d $(unsubdir)/gcc ] ; then \
77806c3e 515 rootme=`pwd` ; export rootme ; \
b26ff9d8 516 (cd $(unsubdir)/gcc$(subdir); \
4d714963
RP
517 $(MAKE) \
518 "against=$(against)" \
519 "AR=$(AR)" \
520 "AR_FLAGS=$(AR_FLAGS)" \
521 "CC=$(CC)" \
522 "RANLIB=$(RANLIB)" \
523 "LOADLIBES=$(LOADLIBES)" \
524 "LDFLAGS=$(LDFLAGS)" \
525 "BISON=$(BISON)" \
526 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
527 clean) ; \
528 else \
529 true ; \
530 fi
4d714963
RP
531
532install-gcc:
b26ff9d8 533 if [ -d $(unsubdir)/gcc ] ; then \
77806c3e 534 rootme=`pwd` ; export rootme ; \
b26ff9d8 535 (cd $(unsubdir)/gcc$(subdir); \
4d714963
RP
536 $(MAKE) \
537 "against=$(against)" \
538 "AR=$(AR)" \
539 "AR_FLAGS=$(AR_FLAGS)" \
540 "CC=$(CC)" \
541 "RANLIB=$(RANLIB)" \
542 "LOADLIBES=$(LOADLIBES)" \
543 "LDFLAGS=$(LDFLAGS)" \
544 "BISON=$(BISON)" \
545 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
546 install) ; \
547 else \
548 true ; \
549 fi
23e3e7f9 550
4d714963
RP
551### readline
552.PHONY: all-readline just-readline
553all-readline: just-readline
554just-readline: force
b26ff9d8 555 if [ -d $(unsubdir)/readline ] ; then \
77806c3e 556 rootme=`pwd` ; export rootme ; \
b26ff9d8 557 (cd $(unsubdir)/readline$(subdir); \
4d714963
RP
558 $(MAKE) \
559 "against=$(against)" \
560 "AR=$(AR)" \
561 "AR_FLAGS=$(AR_FLAGS)" \
562 "CC=$(CC)" \
563 "RANLIB=$(RANLIB)" \
564 "LOADLIBES=$(LOADLIBES)" \
565 "LDFLAGS=$(LDFLAGS)" \
566 "BISON=$(BISON)" \
567 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
568 all) ; \
569 else \
570 true ; \
571 fi
4d714963
RP
572
573clean-readline: force
b26ff9d8 574 if [ -d $(unsubdir)/readline ] ; then \
77806c3e 575 rootme=`pwd` ; export rootme ; \
b26ff9d8 576 (cd $(unsubdir)/readline$(subdir); \
4d714963
RP
577 $(MAKE) \
578 "against=$(against)" \
579 "AR=$(AR)" \
580 "AR_FLAGS=$(AR_FLAGS)" \
581 "CC=$(CC)" \
582 "RANLIB=$(RANLIB)" \
583 "LOADLIBES=$(LOADLIBES)" \
584 "LDFLAGS=$(LDFLAGS)" \
585 "BISON=$(BISON)" \
586 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
587 clean) ; \
588 else \
589 true ; \
590 fi
4d714963
RP
591
592install-readline: force
b26ff9d8 593 if [ -d $(unsubdir)/readline ] ; then \
77806c3e 594 rootme=`pwd` ; export rootme ; \
b26ff9d8 595 (cd $(unsubdir)/readline$(subdir); \
4d714963
RP
596 $(MAKE) \
597 "against=$(against)" \
598 "AR=$(AR)" \
599 "AR_FLAGS=$(AR_FLAGS)" \
600 "CC=$(CC)" \
601 "RANLIB=$(RANLIB)" \
602 "LOADLIBES=$(LOADLIBES)" \
603 "LDFLAGS=$(LDFLAGS)" \
604 "BISON=$(BISON)" \
605 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
606 install) ; \
607 else \
608 true ; \
609 fi
23e3e7f9 610
4d714963
RP
611### glob
612.PHONY: all-glob just-glob
613all-glob: just-glob
614just-glob: force
b26ff9d8 615 if [ -d $(unsubdir)/glob ] ; then \
77806c3e 616 rootme=`pwd` ; export rootme ; \
b26ff9d8 617 (cd $(unsubdir)/glob$(subdir); \
4d714963
RP
618 $(MAKE) \
619 "against=$(against)" \
620 "AR=$(AR)" \
621 "AR_FLAGS=$(AR_FLAGS)" \
622 "CC=$(CC)" \
623 "RANLIB=$(RANLIB)" \
624 "LOADLIBES=$(LOADLIBES)" \
625 "LDFLAGS=$(LDFLAGS)" \
626 "BISON=$(BISON)" \
627 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
628 all) ; \
629 else \
630 true ; \
631 fi
4d714963
RP
632
633clean-glob: force
b26ff9d8 634 if [ -d $(unsubdir)/glob ] ; then \
77806c3e 635 rootme=`pwd` ; export rootme ; \
b26ff9d8 636 (cd $(unsubdir)/glob$(subdir); \
4d714963
RP
637 $(MAKE) \
638 "against=$(against)" \
639 "AR=$(AR)" \
640 "AR_FLAGS=$(AR_FLAGS)" \
641 "CC=$(CC)" \
642 "RANLIB=$(RANLIB)" \
643 "LOADLIBES=$(LOADLIBES)" \
644 "LDFLAGS=$(LDFLAGS)" \
645 "BISON=$(BISON)" \
646 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
647 clean) ; \
648 else \
649 true ; \
650 fi
4d714963
RP
651
652install-glob: force
b26ff9d8 653 if [ -d $(unsubdir)/glob ] ; then \
77806c3e 654 rootme=`pwd` ; export rootme ; \
b26ff9d8 655 (cd $(unsubdir)/glob$(subdir); \
4d714963
RP
656 $(MAKE) \
657 "against=$(against)" \
658 "AR=$(AR)" \
659 "AR_FLAGS=$(AR_FLAGS)" \
660 "CC=$(CC)" \
661 "RANLIB=$(RANLIB)" \
662 "LOADLIBES=$(LOADLIBES)" \
663 "LDFLAGS=$(LDFLAGS)" \
664 "BISON=$(BISON)" \
665 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
666 install) ; \
667 else \
668 true ; \
669 fi
23e3e7f9 670
4d714963
RP
671### gas
672.PHONY: all-gas just-gas
673all-gas: just-gas
674just-gas: just-libiberty just-bfd force
b26ff9d8 675 if [ -d $(unsubdir)/gas ] ; then \
77806c3e 676 rootme=`pwd` ; export rootme ; \
b26ff9d8 677 (cd $(unsubdir)/gas$(subdir); \
4d714963
RP
678 $(MAKE) \
679 "against=$(against)" \
680 "AR=$(AR)" \
681 "AR_FLAGS=$(AR_FLAGS)" \
682 "CC=$(CC)" \
683 "RANLIB=$(RANLIB)" \
684 "LOADLIBES=$(LOADLIBES)" \
685 "LDFLAGS=$(LDFLAGS)" \
686 "BISON=$(BISON)" \
687 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
688 all) ; \
689 else \
690 true ; \
691 fi
4d714963
RP
692
693clean-gas: force
b26ff9d8 694 if [ -d $(unsubdir)/gas ] ; then \
77806c3e 695 rootme=`pwd` ; export rootme ; \
b26ff9d8 696 (cd $(unsubdir)/gas$(subdir); \
4d714963
RP
697 $(MAKE) \
698 "against=$(against)" \
699 "AR=$(AR)" \
700 "AR_FLAGS=$(AR_FLAGS)" \
701 "CC=$(CC)" \
702 "RANLIB=$(RANLIB)" \
703 "LOADLIBES=$(LOADLIBES)" \
704 "LDFLAGS=$(LDFLAGS)" \
705 "BISON=$(BISON)" \
706 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
707 clean) ; \
708 else \
709 true ; \
710 fi
4d714963
RP
711
712install-gas: force
b26ff9d8 713 if [ -d $(unsubdir)/gas ] ; then \
77806c3e 714 rootme=`pwd` ; export rootme ; \
b26ff9d8 715 (cd $(unsubdir)/gas$(subdir); \
4d714963
RP
716 $(MAKE) \
717 "against=$(against)" \
718 "AR=$(AR)" \
719 "AR_FLAGS=$(AR_FLAGS)" \
720 "CC=$(CC)" \
721 "RANLIB=$(RANLIB)" \
722 "LOADLIBES=$(LOADLIBES)" \
723 "LDFLAGS=$(LDFLAGS)" \
724 "BISON=$(BISON)" \
725 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
726 install) ; \
727 else \
728 true ; \
729 fi
23e3e7f9 730
4d714963
RP
731### ld
732.PHONY: all-ld just-ld
733all-ld: just-ld
e9712bee 734just-ld: just-libiberty just-bfd just-bison force
b26ff9d8 735 if [ -d $(unsubdir)/ld ] ; then \
77806c3e 736 rootme=`pwd` ; export rootme ; \
b26ff9d8 737 (cd $(unsubdir)/ld$(subdir); \
4d714963
RP
738 $(MAKE) \
739 "against=$(against)" \
740 "AR=$(AR)" \
741 "AR_FLAGS=$(AR_FLAGS)" \
742 "CC=$(CC)" \
743 "RANLIB=$(RANLIB)" \
744 "LOADLIBES=$(LOADLIBES)" \
745 "LDFLAGS=$(LDFLAGS)" \
746 "BISON=$(BISON)" \
747 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
748 all) ; \
749 else \
750 true ; \
751 fi
a0f47eb7 752
4d714963 753clean-ld: force
b26ff9d8 754 if [ -d $(unsubdir)/ld ] ; then \
77806c3e 755 rootme=`pwd` ; export rootme ; \
b26ff9d8 756 (cd $(unsubdir)/ld$(subdir); \
4d714963
RP
757 $(MAKE) \
758 "against=$(against)" \
759 "AR=$(AR)" \
760 "AR_FLAGS=$(AR_FLAGS)" \
761 "CC=$(CC)" \
762 "RANLIB=$(RANLIB)" \
763 "LOADLIBES=$(LOADLIBES)" \
764 "LDFLAGS=$(LDFLAGS)" \
765 "BISON=$(BISON)" \
766 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
767 clean) ; \
768 else \
769 true ; \
770 fi
6a3958b2 771
4d714963 772install-ld: force
b26ff9d8 773 if [ -d $(unsubdir)/ld ] ; then \
77806c3e 774 rootme=`pwd` ; export rootme ; \
b26ff9d8 775 (cd $(unsubdir)/ld$(subdir); \
4d714963
RP
776 $(MAKE) \
777 "against=$(against)" \
778 "AR=$(AR)" \
779 "AR_FLAGS=$(AR_FLAGS)" \
780 "CC=$(CC)" \
781 "RANLIB=$(RANLIB)" \
782 "LOADLIBES=$(LOADLIBES)" \
783 "LDFLAGS=$(LDFLAGS)" \
784 "BISON=$(BISON)" \
785 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
786 install) ; \
787 else \
788 true ; \
789 fi
23e3e7f9 790
12682548
RP
791### gnulib (and gnulib1)
792.PHONY: all-gnulib just-gnulib1 just-gnulib
793just-gnulib1: all-gas all-binutils force
794 if [ -d $(unsubdir)/gnulib ] ; then \
77806c3e 795 rootme=`pwd` ; export rootme ; \
12682548
RP
796 (cd $(unsubdir)/gnulib$(subdir); \
797 $(MAKE) \
798 "against=$(against)" \
799 "AR=$(AR)" \
800 "AR_FLAGS=$(AR_FLAGS)" \
801 "CC=$(CC)" \
802 "RANLIB=$(RANLIB)" \
803 "LOADLIBES=$(LOADLIBES)" \
804 "LDFLAGS=$(LDFLAGS)" \
805 "BISON=$(BISON)" \
806 "MAKEINFO=$(MAKEINFO)" \
807 gnulib1.a) ; \
808 else \
809 true ; \
810 fi
811
812clean-gnulib1: force
813 if [ -d $(unsubdir)/gnulib ] ; then \
77806c3e 814 rootme=`pwd` ; export rootme ; \
12682548
RP
815 (cd $(unsubdir)/gnulib$(subdir); \
816 $(MAKE) \
817 "against=$(against)" \
818 "AR=$(AR)" \
819 "AR_FLAGS=$(AR_FLAGS)" \
820 "CC=$(CC)" \
821 "RANLIB=$(RANLIB)" \
822 "LOADLIBES=$(LOADLIBES)" \
823 "LDFLAGS=$(LDFLAGS)" \
824 "BISON=$(BISON)" \
825 "MAKEINFO=$(MAKEINFO)" \
826 clean-gnulib1) ; \
827 else \
828 true ; \
829 fi
830
831install-gnulib1: force
832 echo gnulib1 is a component, not an installable target
833
4d714963 834all-gnulib: just-gnulib
77806c3e 835just-gnulib: all-gas all-gcc all-binutils force
ba8abfce 836 true
b26ff9d8 837 if [ -d $(unsubdir)/gnulib ] ; then \
77806c3e 838 rootme=`pwd` ; export rootme ; \
b26ff9d8 839 (cd $(unsubdir)/gnulib$(subdir); \
4d714963
RP
840 $(MAKE) \
841 "against=$(against)" \
842 "AR=$(AR)" \
843 "AR_FLAGS=$(AR_FLAGS)" \
844 "CC=$(CC)" \
845 "RANLIB=$(RANLIB)" \
846 "LOADLIBES=$(LOADLIBES)" \
847 "LDFLAGS=$(LDFLAGS)" \
848 "BISON=$(BISON)" \
849 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
850 all) ; \
851 else \
852 true ; \
853 fi
c5f94070 854
4d714963 855clean-gnulib: force
b26ff9d8 856 if [ -d $(unsubdir)/gnulib ] ; then \
77806c3e 857 rootme=`pwd` ; export rootme ; \
b26ff9d8 858 (cd $(unsubdir)/gnulib$(subdir); \
4d714963
RP
859 $(MAKE) \
860 "against=$(against)" \
861 "AR=$(AR)" \
862 "AR_FLAGS=$(AR_FLAGS)" \
863 "CC=$(CC)" \
864 "RANLIB=$(RANLIB)" \
865 "LOADLIBES=$(LOADLIBES)" \
866 "LDFLAGS=$(LDFLAGS)" \
867 "BISON=$(BISON)" \
868 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
869 clean) ; \
870 else \
871 true ; \
872 fi
4d714963
RP
873
874install-gnulib: force
b26ff9d8 875 if [ -d $(unsubdir)/gnulib ] ; then \
77806c3e 876 rootme=`pwd` ; export rootme ; \
b26ff9d8 877 (cd $(unsubdir)/gnulib$(subdir); \
4d714963
RP
878 $(MAKE) \
879 "against=$(against)" \
880 "AR=$(AR)" \
881 "AR_FLAGS=$(AR_FLAGS)" \
882 "CC=$(CC)" \
883 "RANLIB=$(RANLIB)" \
884 "LOADLIBES=$(LOADLIBES)" \
885 "LDFLAGS=$(LDFLAGS)" \
886 "BISON=$(BISON)" \
887 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
888 install) ; \
889 else \
890 true ; \
891 fi
23e3e7f9 892
4d714963
RP
893### gdb
894.PHONY: all-gdb just-gdb
895all-gdb: just-gdb
e9712bee 896just-gdb: just-bfd just-libiberty just-readline just-glob just-bison force
b26ff9d8 897 if [ -d $(unsubdir)/gdb ] ; then \
77806c3e 898 rootme=`pwd` ; export rootme ; \
b26ff9d8 899 (cd $(unsubdir)/gdb$(subdir); \
4d714963
RP
900 $(MAKE) \
901 "against=$(against)" \
902 "AR=$(AR)" \
903 "AR_FLAGS=$(AR_FLAGS)" \
904 "CC=$(CC)" \
905 "RANLIB=$(RANLIB)" \
906 "LOADLIBES=$(LOADLIBES)" \
907 "LDFLAGS=$(LDFLAGS)" \
908 "BISON=$(BISON)" \
909 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
910 all) ; \
911 else \
912 true ; \
913 fi
4d714963
RP
914
915clean-gdb: force
b26ff9d8 916 if [ -d $(unsubdir)/gdb ] ; then \
77806c3e 917 rootme=`pwd` ; export rootme ; \
b26ff9d8 918 (cd $(unsubdir)/gdb$(subdir); \
4d714963
RP
919 $(MAKE) \
920 "against=$(against)" \
921 "AR=$(AR)" \
922 "AR_FLAGS=$(AR_FLAGS)" \
923 "CC=$(CC)" \
924 "RANLIB=$(RANLIB)" \
925 "LOADLIBES=$(LOADLIBES)" \
926 "LDFLAGS=$(LDFLAGS)" \
927 "BISON=$(BISON)" \
928 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
929 clean) ; \
930 else \
931 true ; \
932 fi
4d714963
RP
933
934install-gdb: force
b26ff9d8 935 if [ -d $(unsubdir)/gdb ] ; then \
77806c3e 936 rootme=`pwd` ; export rootme ; \
b26ff9d8 937 (cd $(unsubdir)/gdb$(subdir); \
4d714963
RP
938 $(MAKE) \
939 "against=$(against)" \
940 "AR=$(AR)" \
941 "AR_FLAGS=$(AR_FLAGS)" \
942 "CC=$(CC)" \
943 "RANLIB=$(RANLIB)" \
944 "LOADLIBES=$(LOADLIBES)" \
945 "LDFLAGS=$(LDFLAGS)" \
946 "BISON=$(BISON)" \
947 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
948 install) ; \
949 else \
950 true ; \
951 fi
23e3e7f9 952
4d714963
RP
953### make
954.PHONY: all-make just-make
955all-make: just-make
956just-make: all-libiberty force
b26ff9d8 957 if [ -d $(unsubdir)/make ] ; then \
77806c3e 958 rootme=`pwd` ; export rootme ; \
b26ff9d8 959 (cd $(unsubdir)/make$(subdir); \
4d714963
RP
960 $(MAKE) \
961 "against=$(against)" \
962 "AR=$(AR)" \
963 "AR_FLAGS=$(AR_FLAGS)" \
964 "CC=$(CC)" \
965 "RANLIB=$(RANLIB)" \
966 "LOADLIBES=$(LOADLIBES)" \
967 "LDFLAGS=$(LDFLAGS)" \
968 "BISON=$(BISON)" \
969 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
970 all) ; \
971 else \
972 true ; \
973 fi
4d714963
RP
974
975clean-make: force
b26ff9d8 976 if [ -d $(unsubdir)/make ] ; then \
77806c3e 977 rootme=`pwd` ; export rootme ; \
b26ff9d8 978 (cd $(unsubdir)/make$(subdir); \
4d714963
RP
979 $(MAKE) \
980 "against=$(against)" \
981 "AR=$(AR)" \
982 "AR_FLAGS=$(AR_FLAGS)" \
983 "CC=$(CC)" \
984 "RANLIB=$(RANLIB)" \
985 "LOADLIBES=$(LOADLIBES)" \
986 "LDFLAGS=$(LDFLAGS)" \
987 "BISON=$(BISON)" \
988 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
989 clean) ; \
990 else \
991 true ; \
992 fi
4d714963
RP
993
994install-make: force
b26ff9d8 995 if [ -d $(unsubdir)/make ] ; then \
77806c3e 996 rootme=`pwd` ; export rootme ; \
b26ff9d8 997 (cd $(unsubdir)/make$(subdir); \
4d714963
RP
998 $(MAKE) \
999 "against=$(against)" \
1000 "AR=$(AR)" \
1001 "AR_FLAGS=$(AR_FLAGS)" \
1002 "CC=$(CC)" \
1003 "RANLIB=$(RANLIB)" \
1004 "LOADLIBES=$(LOADLIBES)" \
1005 "LDFLAGS=$(LDFLAGS)" \
1006 "BISON=$(BISON)" \
1007 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1008 install) ; \
1009 else \
1010 true ; \
1011 fi
23e3e7f9 1012
4d714963
RP
1013### diff
1014.PHONY: all-diff just-diff
1015all-diff: just-diff
1016just-diff: force
b26ff9d8 1017 if [ -d $(unsubdir)/diff ] ; then \
77806c3e 1018 rootme=`pwd` ; export rootme ; \
b26ff9d8 1019 (cd $(unsubdir)/diff$(subdir); \
4d714963
RP
1020 $(MAKE) \
1021 "against=$(against)" \
1022 "AR=$(AR)" \
1023 "AR_FLAGS=$(AR_FLAGS)" \
1024 "CC=$(CC)" \
1025 "RANLIB=$(RANLIB)" \
1026 "LOADLIBES=$(LOADLIBES)" \
1027 "LDFLAGS=$(LDFLAGS)" \
1028 "BISON=$(BISON)" \
1029 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1030 all) ; \
1031 else \
1032 true ; \
1033 fi
4d714963
RP
1034
1035clean-diff: force
b26ff9d8 1036 if [ -d $(unsubdir)/diff ] ; then \
77806c3e 1037 rootme=`pwd` ; export rootme ; \
b26ff9d8 1038 (cd $(unsubdir)/diff$(subdir); \
4d714963
RP
1039 $(MAKE) \
1040 "against=$(against)" \
1041 "AR=$(AR)" \
1042 "AR_FLAGS=$(AR_FLAGS)" \
1043 "CC=$(CC)" \
1044 "RANLIB=$(RANLIB)" \
1045 "LOADLIBES=$(LOADLIBES)" \
1046 "LDFLAGS=$(LDFLAGS)" \
1047 "BISON=$(BISON)" \
1048 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1049 clean) ; \
1050 else \
1051 true ; \
1052 fi
4d714963
RP
1053
1054install-diff: force
b26ff9d8 1055 if [ -d $(unsubdir)/diff ] ; then \
77806c3e 1056 rootme=`pwd` ; export rootme ; \
b26ff9d8 1057 (cd $(unsubdir)/diff/$(subdir); \
4d714963
RP
1058 $(MAKE) \
1059 "against=$(against)" \
1060 "AR=$(AR)" \
1061 "AR_FLAGS=$(AR_FLAGS)" \
1062 "CC=$(CC)" \
1063 "RANLIB=$(RANLIB)" \
1064 "LOADLIBES=$(LOADLIBES)" \
1065 "LDFLAGS=$(LDFLAGS)" \
1066 "BISON=$(BISON)" \
1067 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1068 install) ; \
1069 else \
1070 true ; \
1071 fi
23e3e7f9 1072
4d714963
RP
1073### grep
1074.PHONY: all-grep just-grep
1075all-grep: just-grep
1076just-grep: force
b26ff9d8 1077 if [ -d $(unsubdir)/grep ] ; then \
77806c3e 1078 rootme=`pwd` ; export rootme ; \
b26ff9d8 1079 (cd $(unsubdir)/grep$(subdir); \
4d714963
RP
1080 $(MAKE) \
1081 "against=$(against)" \
1082 "AR=$(AR)" \
1083 "AR_FLAGS=$(AR_FLAGS)" \
1084 "CC=$(CC)" \
1085 "RANLIB=$(RANLIB)" \
1086 "LOADLIBES=$(LOADLIBES)" \
1087 "LDFLAGS=$(LDFLAGS)" \
1088 "BISON=$(BISON)" \
1089 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1090 all) ; \
1091 else \
1092 true ; \
1093 fi
4d714963
RP
1094
1095clean-grep: force
b26ff9d8 1096 if [ -d $(unsubdir)/grep ] ; then \
77806c3e 1097 rootme=`pwd` ; export rootme ; \
b26ff9d8 1098 (cd $(unsubdir)/grep$(subdir); \
4d714963
RP
1099 $(MAKE) \
1100 "against=$(against)" \
1101 "AR=$(AR)" \
1102 "AR_FLAGS=$(AR_FLAGS)" \
1103 "CC=$(CC)" \
1104 "RANLIB=$(RANLIB)" \
1105 "LOADLIBES=$(LOADLIBES)" \
1106 "LDFLAGS=$(LDFLAGS)" \
1107 "BISON=$(BISON)" \
1108 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1109 clean) ; \
1110 else \
1111 true ; \
1112 fi
4d714963
RP
1113
1114install-grep: force
b26ff9d8 1115 if [ -d $(unsubdir)/grep ] ; then \
77806c3e 1116 rootme=`pwd` ; export rootme ; \
b26ff9d8 1117 (cd $(unsubdir)/grep$(subdir); \
4d714963
RP
1118 $(MAKE) \
1119 "against=$(against)" \
1120 "AR=$(AR)" \
1121 "AR_FLAGS=$(AR_FLAGS)" \
1122 "CC=$(CC)" \
1123 "RANLIB=$(RANLIB)" \
1124 "LOADLIBES=$(LOADLIBES)" \
1125 "LDFLAGS=$(LDFLAGS)" \
1126 "BISON=$(BISON)" \
1127 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1128 install) ; \
1129 else \
1130 true ; \
1131 fi
23e3e7f9 1132
4d714963
RP
1133### rcs
1134.PHONY: all-rcs just-rcs
1135all-rcs: just-rcs
1136just-rcs: just-diff just-grep force
b26ff9d8 1137 if [ -d $(unsubdir)/rcs ] ; then \
77806c3e 1138 rootme=`pwd` ; export rootme ; \
b26ff9d8 1139 (cd $(unsubdir)/rcs$(subdir); \
4d714963
RP
1140 $(MAKE) \
1141 "against=$(against)" \
1142 "AR=$(AR)" \
1143 "AR_FLAGS=$(AR_FLAGS)" \
1144 "CC=$(CC)" \
1145 "RANLIB=$(RANLIB)" \
1146 "LOADLIBES=$(LOADLIBES)" \
1147 "LDFLAGS=$(LDFLAGS)" \
1148 "BISON=$(BISON)" \
1149 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1150 all) ; \
1151 else \
1152 true ; \
1153 fi
4d714963
RP
1154
1155clean-rcs: force
b26ff9d8 1156 if [ -d $(unsubdir)/rcs ] ; then \
77806c3e 1157 rootme=`pwd` ; export rootme ; \
b26ff9d8 1158 (cd $(unsubdir)/rcs$(subdir); \
4d714963
RP
1159 $(MAKE) \
1160 "against=$(against)" \
1161 "AR=$(AR)" \
1162 "AR_FLAGS=$(AR_FLAGS)" \
1163 "CC=$(CC)" \
1164 "RANLIB=$(RANLIB)" \
1165 "LOADLIBES=$(LOADLIBES)" \
1166 "LDFLAGS=$(LDFLAGS)" \
1167 "BISON=$(BISON)" \
1168 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1169 clean) ; \
1170 else \
1171 true ; \
1172 fi
4d714963
RP
1173
1174install-rcs: install-grep install-diff force
b26ff9d8 1175 if [ -d $(unsubdir)/rcs ] ; then \
77806c3e 1176 rootme=`pwd` ; export rootme ; \
b26ff9d8 1177 (cd $(unsubdir)/rcs$(subdir); \
4d714963
RP
1178 $(MAKE) \
1179 "against=$(against)" \
1180 "AR=$(AR)" \
1181 "AR_FLAGS=$(AR_FLAGS)" \
1182 "CC=$(CC)" \
1183 "RANLIB=$(RANLIB)" \
1184 "LOADLIBES=$(LOADLIBES)" \
1185 "LDFLAGS=$(LDFLAGS)" \
1186 "BISON=$(BISON)" \
1187 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1188 install) ; \
1189 else \
1190 true ; \
1191 fi
23e3e7f9 1192
4d714963
RP
1193### gdbm
1194.PHONY: all-gdbm just-gdbm
1195all-gdbm: just-gdbm
1196just-gdbm: force
b26ff9d8 1197 if [ -d $(unsubdir)/gdbm ] ; then \
77806c3e 1198 rootme=`pwd` ; export rootme ; \
b26ff9d8 1199 (cd $(unsubdir)/gdbm$(subdir); \
4d714963
RP
1200 $(MAKE) \
1201 "against=$(against)" \
1202 "AR=$(AR)" \
1203 "AR_FLAGS=$(AR_FLAGS)" \
1204 "CC=$(CC)" \
1205 "RANLIB=$(RANLIB)" \
1206 "LOADLIBES=$(LOADLIBES)" \
1207 "LDFLAGS=$(LDFLAGS)" \
1208 "BISON=$(BISON)" \
1209 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1210 all) ; \
1211 else \
1212 true ; \
1213 fi
4d714963
RP
1214
1215clean-gdbm: force
b26ff9d8 1216 if [ -d $(unsubdir)/gdbm ] ; then \
77806c3e 1217 rootme=`pwd` ; export rootme ; \
b26ff9d8 1218 (cd $(unsubdir)/gdbm$(subdir); \
4d714963
RP
1219 $(MAKE) \
1220 "against=$(against)" \
1221 "AR=$(AR)" \
1222 "AR_FLAGS=$(AR_FLAGS)" \
1223 "CC=$(CC)" \
1224 "RANLIB=$(RANLIB)" \
1225 "LOADLIBES=$(LOADLIBES)" \
1226 "LDFLAGS=$(LDFLAGS)" \
1227 "BISON=$(BISON)" \
1228 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1229 clean) ; \
1230 else \
1231 true ; \
1232 fi
4d714963
RP
1233
1234install-gdbm: force
b26ff9d8 1235 if [ -d $(unsubdir)/gdbm ] ; then \
77806c3e 1236 rootme=`pwd` ; export rootme ; \
b26ff9d8 1237 (cd $(unsubdir)/gdbm$(subdir); \
4d714963
RP
1238 $(MAKE) \
1239 "against=$(against)" \
1240 "AR=$(AR)" \
1241 "AR_FLAGS=$(AR_FLAGS)" \
1242 "CC=$(CC)" \
1243 "RANLIB=$(RANLIB)" \
1244 "LOADLIBES=$(LOADLIBES)" \
1245 "LDFLAGS=$(LDFLAGS)" \
1246 "BISON=$(BISON)" \
1247 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1248 install) ; \
1249 else \
1250 true ; \
1251 fi
23e3e7f9 1252
4d714963
RP
1253### cvs
1254.PHONY: all-cvs just-cvs
1255all-cvs: just-cvs just-rcs just-grep just-diff
1256just-cvs: just-gdbm force
b26ff9d8 1257 if [ -d $(unsubdir)/cvs ] ; then \
77806c3e 1258 rootme=`pwd` ; export rootme ; \
b26ff9d8 1259 (cd $(unsubdir)/cvs$(subdir); \
4d714963
RP
1260 $(MAKE) \
1261 "against=$(against)" \
1262 "AR=$(AR)" \
1263 "AR_FLAGS=$(AR_FLAGS)" \
1264 "CC=$(CC)" \
1265 "RANLIB=$(RANLIB)" \
1266 "LOADLIBES=$(LOADLIBES)" \
1267 "LDFLAGS=$(LDFLAGS)" \
1268 "BISON=$(BISON)" \
1269 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1270 all) ; \
1271 else \
1272 true ; \
1273 fi
4d714963 1274
ba8abfce 1275clean-cvs: clean-gdbm force
b26ff9d8 1276 if [ -d $(unsubdir)/cvs ] ; then \
77806c3e 1277 rootme=`pwd` ; export rootme ; \
b26ff9d8 1278 (cd $(unsubdir)/cvs$(subdir); \
4d714963
RP
1279 $(MAKE) \
1280 "against=$(against)" \
1281 "AR=$(AR)" \
1282 "AR_FLAGS=$(AR_FLAGS)" \
1283 "CC=$(CC)" \
1284 "RANLIB=$(RANLIB)" \
1285 "LOADLIBES=$(LOADLIBES)" \
1286 "LDFLAGS=$(LDFLAGS)" \
1287 "BISON=$(BISON)" \
1288 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1289 clean) ; \
1290 else \
1291 true ; \
1292 fi
4d714963
RP
1293
1294install-cvs: install-rcs install-gdbm force
b26ff9d8 1295 if [ -d $(unsubdir)/cvs ] ; then \
77806c3e 1296 rootme=`pwd` ; export rootme ; \
b26ff9d8 1297 (cd $(unsubdir)/cvs$(subdir); \
4d714963 1298 $(MAKE) \
4cc027e1
PB
1299 "bindir=$(bindir)" \
1300 "mandir=$(man1dir)" \
4d714963
RP
1301 "against=$(against)" \
1302 "AR=$(AR)" \
1303 "AR_FLAGS=$(AR_FLAGS)" \
1304 "CC=$(CC)" \
1305 "RANLIB=$(RANLIB)" \
1306 "LOADLIBES=$(LOADLIBES)" \
1307 "LDFLAGS=$(LDFLAGS)" \
1308 "BISON=$(BISON)" \
1309 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1310 install) ; \
1311 else \
1312 true ; \
1313 fi
23e3e7f9 1314
7c9feeb7
RP
1315### patch
1316.PHONY: all-patch just-patch
1317all-patch: just-patch
1318just-patch: force
1319 if [ -d $(unsubdir)/patch ] ; then \
77806c3e 1320 rootme=`pwd` ; export rootme ; \
7c9feeb7
RP
1321 (cd $(unsubdir)/patch$(subdir); \
1322 $(MAKE) \
1323 "against=$(against)" \
1324 "AR=$(AR)" \
1325 "AR_FLAGS=$(AR_FLAGS)" \
1326 "CC=$(CC)" \
1327 "RANLIB=$(RANLIB)" \
1328 "LOADLIBES=$(LOADLIBES)" \
1329 "LDFLAGS=$(LDFLAGS)" \
1330 "BISON=$(BISON)" \
1331 "MAKEINFO=$(MAKEINFO)" \
1332 all) ; \
1333 else \
1334 true ; \
1335 fi
1336
1337clean-patch: force
1338 if [ -d $(unsubdir)/patch ] ; then \
77806c3e 1339 rootme=`pwd` ; export rootme ; \
7c9feeb7
RP
1340 (cd $(unsubdir)/patch$(subdir); \
1341 $(MAKE) \
1342 "against=$(against)" \
1343 "AR=$(AR)" \
1344 "AR_FLAGS=$(AR_FLAGS)" \
1345 "CC=$(CC)" \
1346 "RANLIB=$(RANLIB)" \
1347 "LOADLIBES=$(LOADLIBES)" \
1348 "LDFLAGS=$(LDFLAGS)" \
1349 "BISON=$(BISON)" \
1350 "MAKEINFO=$(MAKEINFO)" \
1351 clean) ; \
1352 else \
1353 true ; \
1354 fi
1355
1356install-patch: force
1357 if [ -d $(unsubdir)/patch ] ; then \
77806c3e 1358 rootme=`pwd` ; export rootme ; \
7c9feeb7
RP
1359 (cd $(unsubdir)/patch$(subdir); \
1360 $(MAKE) \
1361 bindir=$(bindir) \
1362 man1dir=$(man1dir) \
1363 "AR=$(AR)" \
1364 "AR_FLAGS=$(AR_FLAGS)" \
1365 "CC=$(CC)" \
1366 "RANLIB=$(RANLIB)" \
1367 "LOADLIBES=$(LOADLIBES)" \
1368 "LDFLAGS=$(LDFLAGS)" \
1369 "BISON=$(BISON)" \
1370 "MAKEINFO=$(MAKEINFO)" \
1371 install) ; \
1372 else \
1373 true ; \
1374 fi
1375
4d714963
RP
1376### emacs
1377.PHONY: all-emacs just-emacs
1378all-emacs: just-emacs
1379just-emacs: force
b26ff9d8 1380 if [ -d $(unsubdir)/emacs ] ; then \
77806c3e 1381 rootme=`pwd` ; export rootme ; \
b26ff9d8 1382 (cd $(unsubdir)/emacs$(subdir); \
4d714963
RP
1383 $(MAKE) \
1384 "against=$(against)" \
1385 "AR=$(AR)" \
1386 "AR_FLAGS=$(AR_FLAGS)" \
1387 "CC=$(CC)" \
1388 "RANLIB=$(RANLIB)" \
1389 "LOADLIBES=$(LOADLIBES)" \
1390 "LDFLAGS=$(LDFLAGS)" \
1391 "BISON=$(BISON)" \
1392 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1393 all) ; \
1394 else \
1395 true ; \
1396 fi
4d714963
RP
1397
1398clean-emacs: force
b26ff9d8 1399 if [ -d $(unsubdir)/emacs ] ; then \
77806c3e 1400 rootme=`pwd` ; export rootme ; \
b26ff9d8 1401 (cd $(unsubdir)/emacs$(subdir); \
4d714963
RP
1402 $(MAKE) \
1403 "against=$(against)" \
1404 "AR=$(AR)" \
1405 "AR_FLAGS=$(AR_FLAGS)" \
1406 "CC=$(CC)" \
1407 "RANLIB=$(RANLIB)" \
1408 "LOADLIBES=$(LOADLIBES)" \
1409 "LDFLAGS=$(LDFLAGS)" \
1410 "BISON=$(BISON)" \
1411 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1412 clean) ; \
1413 else \
1414 true ; \
1415 fi
4d714963
RP
1416
1417install-emacs: install-rcs install-gdbm force
b26ff9d8 1418 if [ -d $(unsubdir)/emacs ] ; then \
77806c3e 1419 rootme=`pwd` ; export rootme ; \
b26ff9d8 1420 (cd $(unsubdir)/emacs$(subdir); \
4d714963
RP
1421 $(MAKE) \
1422 "against=$(against)" \
1423 "AR=$(AR)" \
1424 "AR_FLAGS=$(AR_FLAGS)" \
1425 "CC=$(CC)" \
1426 "RANLIB=$(RANLIB)" \
1427 "LOADLIBES=$(LOADLIBES)" \
1428 "LDFLAGS=$(LDFLAGS)" \
1429 "BISON=$(BISON)" \
1430 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1431 install) ; \
1432 else \
1433 true ; \
1434 fi
23e3e7f9 1435
4d714963
RP
1436### ispell
1437.PHONY: all-ispell just-ispell
1438all-ispell: just-ispell
1439just-ispell: all-emacs force
b26ff9d8 1440 if [ -d $(unsubdir)/ispell ] ; then \
77806c3e 1441 rootme=`pwd` ; export rootme ; \
b26ff9d8 1442 (cd $(unsubdir)/ispell$(subdir); \
4d714963
RP
1443 $(MAKE) \
1444 "against=$(against)" \
1445 "AR=$(AR)" \
1446 "AR_FLAGS=$(AR_FLAGS)" \
1447 "CC=$(CC)" \
1448 "RANLIB=$(RANLIB)" \
1449 "LOADLIBES=$(LOADLIBES)" \
1450 "LDFLAGS=$(LDFLAGS)" \
1451 "BISON=$(BISON)" \
1452 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1453 all) ; \
1454 else \
1455 true ; \
1456 fi
4d714963
RP
1457
1458clean-ispell: force
b26ff9d8 1459 if [ -d $(unsubdir)/ispell ] ; then \
77806c3e 1460 rootme=`pwd` ; export rootme ; \
b26ff9d8 1461 (cd $(unsubdir)/ispell$(subdir); \
4d714963
RP
1462 $(MAKE) \
1463 "against=$(against)" \
1464 "AR=$(AR)" \
1465 "AR_FLAGS=$(AR_FLAGS)" \
1466 "CC=$(CC)" \
1467 "RANLIB=$(RANLIB)" \
1468 "LOADLIBES=$(LOADLIBES)" \
1469 "LDFLAGS=$(LDFLAGS)" \
1470 "BISON=$(BISON)" \
1471 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1472 clean) ; \
1473 else \
1474 true ; \
1475 fi
4d714963
RP
1476
1477install-ispell: install-rcs install-gdbm force
b26ff9d8 1478 if [ -d $(unsubdir)/ispell ] ; then \
77806c3e 1479 rootme=`pwd` ; export rootme ; \
b26ff9d8 1480 (cd $(unsubdir)/ispell$(subdir); \
4d714963
RP
1481 $(MAKE) \
1482 "against=$(against)" \
1483 "AR=$(AR)" \
1484 "AR_FLAGS=$(AR_FLAGS)" \
1485 "CC=$(CC)" \
1486 "RANLIB=$(RANLIB)" \
1487 "LOADLIBES=$(LOADLIBES)" \
1488 "LDFLAGS=$(LDFLAGS)" \
1489 "BISON=$(BISON)" \
1490 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1491 install) ; \
1492 else \
1493 true ; \
1494 fi
23e3e7f9 1495
25113b46
RP
1496### flex
1497.PHONY: all-flex just-flex
1498all-flex: just-flex
1499just-flex: force
1500 if [ -d $(unsubdir)/flex ] ; then \
77806c3e 1501 rootme=`pwd` ; export rootme ; \
25113b46
RP
1502 (cd $(unsubdir)/flex$(subdir); \
1503 $(MAKE) \
1504 "against=$(against)" \
1505 "AR=$(AR)" \
1506 "AR_FLAGS=$(AR_FLAGS)" \
1507 "CC=$(CC)" \
1508 "RANLIB=$(RANLIB)" \
1509 "LOADLIBES=$(LOADLIBES)" \
1510 "LDFLAGS=$(LDFLAGS)" \
1511 "BISON=$(BISON)" \
1512 "MAKEINFO=$(MAKEINFO)" \
1513 all) ; \
1514 else \
1515 true ; \
1516 fi
1517
1518clean-flex: force
1519 if [ -d $(unsubdir)/flex ] ; then \
77806c3e 1520 rootme=`pwd` ; export rootme ; \
25113b46
RP
1521 (cd $(unsubdir)/flex$(subdir); \
1522 $(MAKE) \
1523 "against=$(against)" \
1524 "AR=$(AR)" \
1525 "AR_FLAGS=$(AR_FLAGS)" \
1526 "CC=$(CC)" \
1527 "RANLIB=$(RANLIB)" \
1528 "LOADLIBES=$(LOADLIBES)" \
1529 "LDFLAGS=$(LDFLAGS)" \
1530 "BISON=$(BISON)" \
1531 "MAKEINFO=$(MAKEINFO)" \
1532 clean) ; \
1533 else \
1534 true ; \
1535 fi
1536
1537install-flex: force
1538 if [ -d $(unsubdir)/flex ] ; then \
77806c3e 1539 rootme=`pwd` ; export rootme ; \
25113b46
RP
1540 (cd $(unsubdir)/flex$(subdir); \
1541 $(MAKE) \
1542 "against=$(against)" \
1543 "AR=$(AR)" \
1544 "AR_FLAGS=$(AR_FLAGS)" \
1545 "CC=$(CC)" \
1546 "RANLIB=$(RANLIB)" \
1547 "LOADLIBES=$(LOADLIBES)" \
1548 "LDFLAGS=$(LDFLAGS)" \
1549 "BISON=$(BISON)" \
1550 "MAKEINFO=$(MAKEINFO)" \
1551 install) ; \
1552 else \
1553 true ; \
1554 fi
23e3e7f9 1555
079399f6
RP
1556### fileutils
1557.PHONY: all-fileutils just-fileutils
1558all-fileutils: just-fileutils
1559just-fileutils: force
1560 if [ -d $(unsubdir)/fileutils ] ; then \
77806c3e 1561 rootme=`pwd` ; export rootme ; \
079399f6
RP
1562 (cd $(unsubdir)/fileutils$(subdir); \
1563 $(MAKE) \
1564 "prefix=$(prefix)" \
1565 "datadir=$(datadir)" \
1566 "mandir=$(mandir)" \
1567 "against=$(against)" \
1568 "AR=$(AR)" \
1569 "AR_FLAGS=$(AR_FLAGS)" \
1570 "CC=$(CC)" \
1571 "RANLIB=$(RANLIB)" \
1572 "LOADLIBES=$(LOADLIBES)" \
1573 "LDFLAGS=$(LDFLAGS)" \
1574 "BISON=$(BISON)" \
1575 "MAKEINFO=$(MAKEINFO)" \
1576 all) ; \
1577 else \
1578 true ; \
1579 fi
1580
1581clean-fileutils: force
1582 if [ -d $(unsubdir)/fileutils ] ; then \
77806c3e 1583 rootme=`pwd` ; export rootme ; \
079399f6
RP
1584 (cd $(unsubdir)/fileutils$(subdir); \
1585 $(MAKE) \
1586 "prefix=$(prefix)" \
1587 "datadir=$(datadir)" \
1588 "mandir=$(mandir)" \
1589 "against=$(against)" \
1590 "AR=$(AR)" \
1591 "AR_FLAGS=$(AR_FLAGS)" \
1592 "CC=$(CC)" \
1593 "RANLIB=$(RANLIB)" \
1594 "LOADLIBES=$(LOADLIBES)" \
1595 "LDFLAGS=$(LDFLAGS)" \
1596 "BISON=$(BISON)" \
1597 "MAKEINFO=$(MAKEINFO)" \
1598 clean) ; \
1599 else \
1600 true ; \
1601 fi
1602
1603install-fileutils: force
1604 if [ -d $(unsubdir)/fileutils ] ; then \
77806c3e 1605 rootme=`pwd` ; export rootme ; \
079399f6
RP
1606 (cd $(unsubdir)/fileutils$(subdir); \
1607 $(MAKE) \
1608 "prefix=$(prefix)" \
1609 "datadir=$(datadir)" \
1610 "mandir=$(mandir)" \
1611 "against=$(against)" \
1612 "AR=$(AR)" \
1613 "AR_FLAGS=$(AR_FLAGS)" \
1614 "CC=$(CC)" \
1615 "RANLIB=$(RANLIB)" \
1616 "LOADLIBES=$(LOADLIBES)" \
1617 "LDFLAGS=$(LDFLAGS)" \
1618 "BISON=$(BISON)" \
1619 "MAKEINFO=$(MAKEINFO)" \
1620 install) ; \
1621 else \
1622 true ; \
1623 fi
23e3e7f9 1624
ba8abfce
JG
1625### libg++
1626.PHONY: all-libg++ just-libg++
77806c3e 1627all-libg++: just-gas just-ld just-gcc just-make just-libg++
b74fd080 1628just-libg++: just-gcc force
ba8abfce 1629 if [ -d $(unsubdir)/libg++ ] ; then \
77806c3e 1630 rootme=`pwd` ; export rootme ; \
ba8abfce
JG
1631 (cd $(unsubdir)/libg++$(subdir); \
1632 $(MAKE) \
ba8abfce
JG
1633 "prefix=$(prefix)" \
1634 "datadir=$(datadir)" \
1635 "mandir=$(mandir)" \
1636 "against=$(against)" \
1637 "AR=$(AR)" \
1638 "AR_FLAGS=$(AR_FLAGS)" \
b74fd080 1639 "CC=$(CC)" \
ba8abfce
JG
1640 "RANLIB=$(RANLIB)" \
1641 "LOADLIBES=$(LOADLIBES)" \
1642 "LDFLAGS=$(LDFLAGS)" \
1643 "BISON=$(BISON)" \
1644 "MAKEINFO=$(MAKEINFO)" \
1645 all) ; \
1646 else \
1647 true ; \
1648 fi
1649
1650clean-libg++: force
1651 if [ -d $(unsubdir)/libg++ ] ; then \
77806c3e 1652 rootme=`pwd` ; export rootme ; \
ba8abfce
JG
1653 (cd $(unsubdir)/libg++$(subdir); \
1654 $(MAKE) \
1655 "prefix=$(prefix)" \
1656 "datadir=$(datadir)" \
1657 "mandir=$(mandir)" \
1658 "against=$(against)" \
1659 "AR=$(AR)" \
1660 "AR_FLAGS=$(AR_FLAGS)" \
1661 "CC=$(CC)" \
1662 "RANLIB=$(RANLIB)" \
1663 "LOADLIBES=$(LOADLIBES)" \
1664 "LDFLAGS=$(LDFLAGS)" \
1665 "BISON=$(BISON)" \
1666 "MAKEINFO=$(MAKEINFO)" \
1667 clean) ; \
1668 else \
1669 true ; \
1670 fi
1671
1672install-libg++: force
1673 if [ -d $(unsubdir)/libg++ ] ; then \
77806c3e 1674 rootme=`pwd` ; export rootme ; \
ba8abfce
JG
1675 (cd $(unsubdir)/libg++$(subdir); \
1676 $(MAKE) \
1677 "prefix=$(prefix)" \
1678 "datadir=$(datadir)" \
1679 "mandir=$(mandir)" \
1680 "against=$(against)" \
1681 "AR=$(AR)" \
1682 "AR_FLAGS=$(AR_FLAGS)" \
1683 "CC=$(CC)" \
1684 "RANLIB=$(RANLIB)" \
1685 "LOADLIBES=$(LOADLIBES)" \
1686 "LDFLAGS=$(LDFLAGS)" \
1687 "BISON=$(BISON)" \
1688 "MAKEINFO=$(MAKEINFO)" \
1689 install) ; \
1690 else \
1691 true ; \
1692 fi
23e3e7f9 1693
4d714963 1694### other supporting targets
a0f47eb7
SC
1695# this is a bad hack.
1696all.xclib: all.normal
1697 if [ -d clib ] ; then \
1698 (cd clib ; $(MAKE)) ; \
1699 fi
1700
3c81fef5 1701subdir_do: force
a01bf1fb 1702 for i in $(DODIRS); do \
2c55824f 1703 if [ -f $(unsubdir)/$$i/localenv ] ; then \
77806c3e 1704 if (rootme=`pwd` ; export rootme ; cd $(unsubdir)/$$i$(subdir); \
a0f47eb7
SC
1705 $(MAKE) \
1706 "against=$(against)" \
b772d75e
RP
1707 "BISON=$(BISON)" \
1708 "MAKEINFO=$(MAKEINFO)" \
1709 $(DO)) ; then true ; \
a0f47eb7 1710 else exit 1 ; fi ; \
2c55824f 1711 else if [ -d $(unsubdir)/$$i ] ; then \
77806c3e 1712 if (rootme=`pwd` ; export rootme ; cd $(unsubdir)/$$i$(subdir); \
a01bf1fb
RP
1713 $(MAKE) \
1714 "against=$(against)" \
1715 "AR=$(AR)" \
1716 "AR_FLAGS=$(AR_FLAGS)" \
4d714963 1717 "CC=$(CC)" \
2645fb0c 1718 "RANLIB=$(RANLIB)" \
905bb120
RP
1719 "LOADLIBES=$(LOADLIBES)" \
1720 "LDFLAGS=$(LDFLAGS)" \
b772d75e
RP
1721 "BISON=$(BISON)" \
1722 "MAKEINFO=$(MAKEINFO)" \
1723 $(DO)) ; then true ; \
a01bf1fb
RP
1724 else exit 1 ; fi ; \
1725 else true ; fi ; \
a0f47eb7 1726 fi ; \
a01bf1fb 1727 done
eb02fd64 1728
4d714963
RP
1729bootstrap:
1730 $(MAKE) all info
2b34da49 1731 $(MAKE) stage1
6a3958b2
RP
1732 $(MAKE) pass "stagepass=stage1"
1733 $(MAKE) stage2
1734 $(MAKE) pass "stagepass=stage2"
a01bf1fb 1735 $(MAKE) comparison
6a3958b2 1736
4d714963 1737bootstrap2:
6a3958b2
RP
1738 $(MAKE) pass "stagepass=stage1"
1739 $(MAKE) stage2
1740 $(MAKE) pass "stagepass=stage2"
a01bf1fb 1741 $(MAKE) comparison
6a3958b2 1742
4d714963 1743bootstrap3:
6a3958b2 1744 $(MAKE) pass "stagepass=stage2"
a01bf1fb 1745 $(MAKE) comparison
6a3958b2 1746
4d714963 1747pass:
517d18b2 1748 cp $(srcdir)/gcc/gstdarg.h $(unsubdir)/gas$(subdir)/stdarg.h
4d714963 1749 $(MAKE) subdir_do "DO=all info" "DODIRS=$(SUBDIRS)" \
2c55824f 1750 "CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \
4d714963 1751 -O $(GCCVERBOSE) -I`pwd`/$(unsubdir)/gcc$(subdir)/include \
2c55824f
RP
1752 -B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \
1753 -B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \
1754 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \
a297b8ce 1755 "AR=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ar" \
30189626 1756 "LD=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc $(GCCVERBOSE)" \
2c55824f
RP
1757 "RANLIB=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ranlib" \
1758 "LOADLIBES=`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
6a3958b2 1759 "LDFLAGS=-nostdlib /lib/crt0.o \
2c55824f
RP
1760 -L`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/ \
1761 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/"
2b34da49 1762
eb02fd64 1763
4d714963 1764stage1:
3c81fef5 1765 $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
eb02fd64 1766
4d714963 1767stage2:
3c81fef5 1768 $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
eb02fd64 1769
4d714963 1770stage3:
3c81fef5 1771 $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
eb02fd64 1772
4d714963 1773stage4:
3c81fef5 1774 $(MAKE) subdir_do DO=stage4 "DODIRS=$(SUBDIRS)"
eb02fd64 1775
a01bf1fb
RP
1776against=stage2
1777
1778comparison:; $(MAKE) subdir_do DO=comparison against=$(against) "DODIRS=$(SUBDIRS)"
1779
3c81fef5
RP
1780de-stage1:; $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)"
1781de-stage2:; $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)"
1782de-stage3:; $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)"
1783de-stage4:; $(MAKE) subdir_do DO=de-stage4 "DODIRS=$(SUBDIRS)"
6a3958b2 1784
abc52b80
JG
1785# The "else true" stuff is for Ultrix; the shell returns the exit code
1786# of the "if" command, if no commands are run in the "then" or "else" part,
1787# causing Make to quit.
4c27527f
RP
1788
1789MAKEDIRS= \
4d714963
RP
1790 $(prefix) \
1791 $(bindir) \
1792 $(libdir) \
1793 $(includedir) \
1794 $(datadir) \
1795 $(docdir) \
1796 $(mandir) \
1797 $(man1dir) \
1798 $(man5dir)
1799
1800# $(man2dir) \
1801# $(man3dir) \
1802# $(man4dir) \
1803# $(man6dir) \
1804# $(man7dir) \
1805# $(man8dir)
4c27527f 1806
a297b8ce 1807install-dirs: force
4c27527f 1808 for i in $(MAKEDIRS) ; do \
cd49a4dc 1809 echo Making $$i... ; \
4d714963 1810 if [ -d $$i ] ; then true ; else mkdir $$i || exit 1 ; fi ; \
4c27527f 1811 done
0ec776a5 1812
c5f94070 1813MAKEINFODIRS= \
4d714963
RP
1814 $(prefix) \
1815 $(infodir)
c5f94070
RP
1816
1817install-info-dirs: force
9a9e8e7f
RP
1818 if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi
1819 if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
1820 if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
c5f94070 1821
6b7e5998 1822dir.info: force
c466cfab
RP
1823 $(srcdir)/texinfo/gen-info-dir $(infodir) > dir.info.new
1824 mv -f dir.info.new dir.info
6b7e5998 1825
eb02fd64
RP
1826etags tags: TAGS
1827
1828TAGS: FORCE
1829 etags `$(MAKE) ls`
1830
1831ls:
1832 @echo Makefile
1833 @for i in $(SUBDIRS); \
1834 do \
1835 (cd $$i; \
1836 pwd=`pwd`; \
1837 wd=`basename $$pwd`; \
1838 for j in `$(MAKE) ls`; \
1839 do \
1840 echo $$wd/$$j; \
1841 done) \
1842 done
1843
3c81fef5 1844force:
eb02fd64
RP
1845
1846# with the gnu make, this is done automatically.
1847
f1eb48b6 1848Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 1849 $(SHELL) ./config.status
eb02fd64 1850
11954bf1
JG
1851#
1852# Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1853
23e3e7f9 1854DEVO_SUPPORT= README cfg-paper.texi Makefile.in configure configure.in \
1a7cac26 1855 config.sub config configure.man
a3a063a9 1856GDB_SUPPORT_DIRS= bfd include libiberty readline glob
abc52b80 1857GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
11954bf1 1858
abc52b80 1859setup-dirs: force_update
11954bf1
JG
1860 ./configure sun4
1861 make clean
1862 ./configure -rm sun4
905bb120 1863 chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
abc52b80
JG
1864
1865bfd.ilrt.tar.Z: setup-dirs
11954bf1 1866 rm -f bfd.ilrt.tar.Z
abc52b80 1867 tar cf - $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) \
11954bf1
JG
1868 | compress -v >bfd.ilrt.tar.Z
1869
abc52b80
JG
1870gdb.tar.Z: setup-dirs
1871 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir)
1872 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
1873
1874make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex
1875 rm -rf proto-toplev; mkdir proto-toplev
1876 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
1877 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
1878 ln -s ../$$i . ; \
1879 done)
7c9feeb7
RP
1880 # Put only one copy (four hard links) of COPYING in the tar file.
1881 rm proto-toplev/bfd/COPYING
1882 ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING
1883 rm proto-toplev/include/COPYING
1884 ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING
1885 rm proto-toplev/readline/COPYING
1886 ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING
a3a063a9
JG
1887 # Take out texinfo from configurable dirs
1888 rm proto-toplev/configure.in
1889 sed '/^configdirs=/s/texinfo //' <configure.in >proto-toplev/configure.in
4d714963
RP
1890 # Take out glob from buildable dirs
1891 rm proto-toplev/Makefile.in
1892 sed '/^SUBDIRS =/s/glob //' <Makefile.in >proto-toplev/Makefile.in
4cc027e1
PB
1893 # Take out texinfo from buildable dirs
1894 cp proto-toplev/Makefile.in temp.$$
1895 sed '/^all\.normal: /s/all-texinfo //' <temp.$$ >temp1.$$
1896 sed '/^clean: /s/clean-texinfo //' <temp1.$$ >temp.$$
1897 sed '/^install\.all: /s/install-texinfo //' <temp.$$ >proto-toplev/Makefile.in
1898 rm temp.$$ temp1.$$
abc52b80
JG
1899 mkdir proto-toplev/texinfo
1900 mkdir proto-toplev/texinfo/fsf
1901 ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/
905bb120 1902 chmod og=u `find proto-toplev -print`
abc52b80
JG
1903 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1904 echo "==> Making gdb-$$VER.tar.Z"; \
1905 ln -s proto-toplev gdb-$$VER; \
1906 tar cfh - gdb-$$VER \
1907 | compress -v >gdb-$$VER.tar.Z)
1908
11954bf1
JG
1909force_update:
1910
0ec776a5
SC
1911nothing:
1912
eb02fd64 1913# end of Makefile.in
This page took 0.131896 seconds and 4 git commands to generate.