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