install-gcc on install
[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 = $(prefix)/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 = qv
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 yacc ; 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 gnulib clib
62 OTHERS =
63
64 ALL = all.normal
65 INSTALL_TARGET = install.all
66
67 ### for debugging
68 #GCCVERBOSE=-v
69
70 \f
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: force
79 $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)"
80
81 install-info: dir.info install-info-dirs force
82 $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
83 # $(MAKE) install-dir.info
84
85 # clib prms
86 all.normal: all-texinfo all-bison all-byacc all-ld all-gnulib all-gdb all-make \
87 all-cvs all-emacs all-ispell
88 all.cross: all-bison all-ld all-gnulib all-gdb
89 # $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
90
91 clean: clean-libiberty clean-texinfo clean-bfd clean-binutils clean-bison \
92 clean-byacc clean-ld clean-gas clean-gcc clean-gnulib clean-readline \
93 clean-glob clean-gdb clean-make clean-diff clean-grep clean-rcs \
94 clean-cvs clean-emacs clean-ispell
95 rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
96
97 install: $(INSTALL_TARGET)
98
99 install.all: install-dirs install-libiberty install-texinfo install-binutils install-bison \
100 install-byacc install-ld install-gas install-gcc install-gnulib \
101 install-readline install-glob install-gdb install-make install-cvs \
102 install-emacs install-ispell
103 install.cross: install-dirs install-libiberty install-binutils install-bison \
104 install-byacc install-ld install-gas install-gnulib \
105 install-readline install-glob install-gdb
106 \f
107 ### libiberty
108 .PHONY: all-libiberty just-libiberty
109 all-libiberty: just-libiberty
110 just-libiberty: force
111 if [ -d $(unsubdir)/libiberty ] ; then \
112 (cd $(unsubdir)/libiberty$(subdir); \
113 $(MAKE) \
114 "against=$(against)" \
115 "AR=$(AR)" \
116 "AR_FLAGS=$(AR_FLAGS)" \
117 "CC=$(CC)" \
118 "RANLIB=$(RANLIB)" \
119 "LOADLIBES=$(LOADLIBES)" \
120 "LDFLAGS=$(LDFLAGS)" \
121 "BISON=$(BISON)" \
122 "MAKEINFO=$(MAKEINFO)" \
123 all) ; \
124 else \
125 true ; \
126 fi
127
128 clean-libiberty: force
129 if [ -d $(unsubdir)/libiberty ] ; then \
130 (cd $(unsubdir)/libiberty$(subdir); \
131 $(MAKE) \
132 "against=$(against)" \
133 "AR=$(AR)" \
134 "AR_FLAGS=$(AR_FLAGS)" \
135 "CC=$(CC)" \
136 "RANLIB=$(RANLIB)" \
137 "LOADLIBES=$(LOADLIBES)" \
138 "LDFLAGS=$(LDFLAGS)" \
139 "BISON=$(BISON)" \
140 "MAKEINFO=$(MAKEINFO)" \
141 clean) ; \
142 else \
143 true ; \
144 fi
145
146 install-libiberty: force
147 if [ -d $(unsubdir)/libiberty ] ; then \
148 (cd $(unsubdir)/libiberty$(subdir); \
149 $(MAKE) \
150 "against=$(against)" \
151 "AR=$(AR)" \
152 "AR_FLAGS=$(AR_FLAGS)" \
153 "CC=$(CC)" \
154 "RANLIB=$(RANLIB)" \
155 "LOADLIBES=$(LOADLIBES)" \
156 "LDFLAGS=$(LDFLAGS)" \
157 "BISON=$(BISON)" \
158 "MAKEINFO=$(MAKEINFO)" \
159 install) ; \
160 else \
161 true ; \
162 fi
163 \f
164 ### texinfo
165 .PHONY: all-texinfo just-texinfo
166 all-texinfo: just-texinfo
167 just-texinfo: just-libiberty force
168 if [ -d $(unsubdir)/texinfo ] ; then \
169 (cd $(unsubdir)/texinfo$(subdir); \
170 $(MAKE) \
171 "against=$(against)" \
172 "AR=$(AR)" \
173 "AR_FLAGS=$(AR_FLAGS)" \
174 "CC=$(CC)" \
175 "RANLIB=$(RANLIB)" \
176 "LOADLIBES=$(LOADLIBES)" \
177 "LDFLAGS=$(LDFLAGS)" \
178 "BISON=$(BISON)" \
179 "MAKEINFO=$(MAKEINFO)" \
180 all) ; \
181 else \
182 true ; \
183 fi
184
185 clean-texinfo: force
186 if [ -d $(unsubdir)/texinfo ] ; then \
187 (cd $(unsubdir)/texinfo$(subdir); \
188 $(MAKE) \
189 "against=$(against)" \
190 "AR=$(AR)" \
191 "AR_FLAGS=$(AR_FLAGS)" \
192 "CC=$(CC)" \
193 "RANLIB=$(RANLIB)" \
194 "LOADLIBES=$(LOADLIBES)" \
195 "LDFLAGS=$(LDFLAGS)" \
196 "BISON=$(BISON)" \
197 "MAKEINFO=$(MAKEINFO)" \
198 clean) ; \
199 else \
200 true ; \
201 fi
202
203 install-texinfo: force
204 if [ -d $(unsubdir)/texinfo ] ; then \
205 (cd $(unsubdir)/texinfo$(subdir); \
206 $(MAKE) \
207 "against=$(against)" \
208 "AR=$(AR)" \
209 "AR_FLAGS=$(AR_FLAGS)" \
210 "CC=$(CC)" \
211 "RANLIB=$(RANLIB)" \
212 "LOADLIBES=$(LOADLIBES)" \
213 "LDFLAGS=$(LDFLAGS)" \
214 "BISON=$(BISON)" \
215 "MAKEINFO=$(MAKEINFO)" \
216 install) ; \
217 else \
218 true ; \
219 fi
220 \f
221 ### bfd
222 .PHONY: all-bfd just-bfd
223 all-bfd: just-bfd
224 just-bfd: force
225 if [ -d $(unsubdir)/bfd ] ; then \
226 (cd $(unsubdir)/bfd$(subdir); \
227 $(MAKE) \
228 "against=$(against)" \
229 "AR=$(AR)" \
230 "AR_FLAGS=$(AR_FLAGS)" \
231 "CC=$(CC)" \
232 "RANLIB=$(RANLIB)" \
233 "LOADLIBES=$(LOADLIBES)" \
234 "LDFLAGS=$(LDFLAGS)" \
235 "BISON=$(BISON)" \
236 "MAKEINFO=$(MAKEINFO)" \
237 all) ; \
238 else \
239 true ; \
240 fi
241
242 clean-bfd: force
243 if [ -d $(unsubdir)/bfd ] ; then \
244 (cd $(unsubdir)/bfd$(subdir); \
245 $(MAKE) \
246 "against=$(against)" \
247 "AR=$(AR)" \
248 "AR_FLAGS=$(AR_FLAGS)" \
249 "CC=$(CC)" \
250 "RANLIB=$(RANLIB)" \
251 "LOADLIBES=$(LOADLIBES)" \
252 "LDFLAGS=$(LDFLAGS)" \
253 "BISON=$(BISON)" \
254 "MAKEINFO=$(MAKEINFO)" \
255 clean) ; \
256 else \
257 true ; \
258 fi
259
260 install-bfd: force
261 if [ -d $(unsubdir)/bfd ] ; then \
262 (cd $(unsubdir)/bfd$(subdir); \
263 $(MAKE) \
264 "against=$(against)" \
265 "AR=$(AR)" \
266 "AR_FLAGS=$(AR_FLAGS)" \
267 "CC=$(CC)" \
268 "RANLIB=$(RANLIB)" \
269 "LOADLIBES=$(LOADLIBES)" \
270 "LDFLAGS=$(LDFLAGS)" \
271 "BISON=$(BISON)" \
272 "MAKEINFO=$(MAKEINFO)" \
273 install) ; \
274 else \
275 true ; \
276 fi
277 \f
278 ### binutils
279 .PHONY: all-binutils just-binutils
280 all-binutils: just-binutils
281 just-binutils: just-libiberty just-bfd force
282 if [ -d $(unsubdir)/binutils ] ; then \
283 (cd $(unsubdir)/binutils$(subdir); \
284 $(MAKE) \
285 "against=$(against)" \
286 "AR=$(AR)" \
287 "AR_FLAGS=$(AR_FLAGS)" \
288 "CC=$(CC)" \
289 "RANLIB=$(RANLIB)" \
290 "LOADLIBES=$(LOADLIBES)" \
291 "LDFLAGS=$(LDFLAGS)" \
292 "BISON=$(BISON)" \
293 "MAKEINFO=$(MAKEINFO)" \
294 all) ; \
295 else \
296 true ; \
297 fi
298
299 clean-binutils: force
300 if [ -d $(unsubdir)/binutils ] ; then \
301 (cd $(unsubdir)/binutils$(subdir); \
302 $(MAKE) \
303 "against=$(against)" \
304 "AR=$(AR)" \
305 "AR_FLAGS=$(AR_FLAGS)" \
306 "CC=$(CC)" \
307 "RANLIB=$(RANLIB)" \
308 "LOADLIBES=$(LOADLIBES)" \
309 "LDFLAGS=$(LDFLAGS)" \
310 "BISON=$(BISON)" \
311 "MAKEINFO=$(MAKEINFO)" \
312 clean) ; \
313 else \
314 true ; \
315 fi
316
317 install-binutils: force
318 if [ -d $(unsubdir)/binutils ] ; then \
319 (cd $(unsubdir)/binutils$(subdir); \
320 $(MAKE) \
321 "against=$(against)" \
322 "AR=$(AR)" \
323 "AR_FLAGS=$(AR_FLAGS)" \
324 "CC=$(CC)" \
325 "RANLIB=$(RANLIB)" \
326 "LOADLIBES=$(LOADLIBES)" \
327 "LDFLAGS=$(LDFLAGS)" \
328 "BISON=$(BISON)" \
329 "MAKEINFO=$(MAKEINFO)" \
330 install) ; \
331 else \
332 true ; \
333 fi
334 \f
335 ### byacc
336 .PHONY: all-byacc just-byacc
337 all-byacc: just-byacc
338 just-byacc: force
339 if [ -d $(unsubdir)/byacc ] ; then \
340 (cd $(unsubdir)/byacc$(subdir); \
341 $(MAKE) \
342 "against=$(against)" \
343 "AR=$(AR)" \
344 "AR_FLAGS=$(AR_FLAGS)" \
345 "CC=$(CC)" \
346 "RANLIB=$(RANLIB)" \
347 "LOADLIBES=$(LOADLIBES)" \
348 "LDFLAGS=$(LDFLAGS)" \
349 "BISON=$(BISON)" \
350 "MAKEINFO=$(MAKEINFO)" \
351 all) ; \
352 else \
353 true ; \
354 fi
355
356 clean-byacc: force
357 if [ -d $(unsubdir)/byacc ] ; then \
358 (cd $(unsubdir)/byacc$(subdir); \
359 $(MAKE) \
360 "against=$(against)" \
361 "AR=$(AR)" \
362 "AR_FLAGS=$(AR_FLAGS)" \
363 "CC=$(CC)" \
364 "RANLIB=$(RANLIB)" \
365 "LOADLIBES=$(LOADLIBES)" \
366 "LDFLAGS=$(LDFLAGS)" \
367 "BISON=$(BISON)" \
368 "MAKEINFO=$(MAKEINFO)" \
369 clean) ; \
370 else \
371 true ; \
372 fi
373
374 install-byacc: force
375 if [ -d $(unsubdir)/byacc ] ; then \
376 (cd $(unsubdir)/byacc$(subdir); \
377 $(MAKE) \
378 "against=$(against)" \
379 "AR=$(AR)" \
380 "AR_FLAGS=$(AR_FLAGS)" \
381 "CC=$(CC)" \
382 "RANLIB=$(RANLIB)" \
383 "LOADLIBES=$(LOADLIBES)" \
384 "LDFLAGS=$(LDFLAGS)" \
385 "BISON=$(BISON)" \
386 "MAKEINFO=$(MAKEINFO)" \
387 install) ; \
388 else \
389 true ; \
390 fi
391 \f
392 ### bison
393 .PHONY: all-bison just-bison
394 all-bison: just-bison
395 just-bison: just-libiberty force
396 if [ -d $(unsubdir)/bison ] ; then \
397 (cd $(unsubdir)/bison$(subdir); \
398 $(MAKE) \
399 "against=$(against)" \
400 "AR=$(AR)" \
401 "AR_FLAGS=$(AR_FLAGS)" \
402 "CC=$(CC)" \
403 "RANLIB=$(RANLIB)" \
404 "LOADLIBES=$(LOADLIBES)" \
405 "LDFLAGS=$(LDFLAGS)" \
406 "BISON=$(BISON)" \
407 "MAKEINFO=$(MAKEINFO)" \
408 all) ; \
409 else \
410 true ; \
411 fi
412
413 clean-bison: force
414 if [ -d $(unsubdir)/bison ] ; then \
415 (cd $(unsubdir)/bison$(subdir); \
416 $(MAKE) \
417 "against=$(against)" \
418 "AR=$(AR)" \
419 "AR_FLAGS=$(AR_FLAGS)" \
420 "CC=$(CC)" \
421 "RANLIB=$(RANLIB)" \
422 "LOADLIBES=$(LOADLIBES)" \
423 "LDFLAGS=$(LDFLAGS)" \
424 "BISON=$(BISON)" \
425 "MAKEINFO=$(MAKEINFO)" \
426 clean) ; \
427 else \
428 true ; \
429 fi
430
431 install-bison: force
432 if [ -d $(unsubdir)/bison ] ; then \
433 (cd $(unsubdir)/bison$(subdir); \
434 $(MAKE) \
435 "against=$(against)" \
436 "AR=$(AR)" \
437 "AR_FLAGS=$(AR_FLAGS)" \
438 "CC=$(CC)" \
439 "RANLIB=$(RANLIB)" \
440 "LOADLIBES=$(LOADLIBES)" \
441 "LDFLAGS=$(LDFLAGS)" \
442 "BISON=$(BISON)" \
443 "MAKEINFO=$(MAKEINFO)" \
444 install) ; \
445 else \
446 true ; \
447 fi
448 \f
449 ### gcc
450 .PHONY: all-gcc just-gcc
451 all-gcc: just-gcc
452 just-gcc: just-libiberty just-bison force
453 if [ -d $(unsubdir)/gcc ] ; then \
454 (cd $(unsubdir)/gcc$(subdir); \
455 $(MAKE) \
456 "against=$(against)" \
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)" \
465 all) ; \
466 else \
467 true ; \
468 fi
469
470 clean-gcc: force
471 if [ -d $(unsubdir)/gcc ] ; then \
472 (cd $(unsubdir)/gcc$(subdir); \
473 $(MAKE) \
474 "against=$(against)" \
475 "AR=$(AR)" \
476 "AR_FLAGS=$(AR_FLAGS)" \
477 "CC=$(CC)" \
478 "RANLIB=$(RANLIB)" \
479 "LOADLIBES=$(LOADLIBES)" \
480 "LDFLAGS=$(LDFLAGS)" \
481 "BISON=$(BISON)" \
482 "MAKEINFO=$(MAKEINFO)" \
483 clean) ; \
484 else \
485 true ; \
486 fi
487
488 install-gcc:
489 if [ -d $(unsubdir)/gcc ] ; then \
490 (cd $(unsubdir)/gcc$(subdir); \
491 $(MAKE) \
492 "against=$(against)" \
493 "AR=$(AR)" \
494 "AR_FLAGS=$(AR_FLAGS)" \
495 "CC=$(CC)" \
496 "RANLIB=$(RANLIB)" \
497 "LOADLIBES=$(LOADLIBES)" \
498 "LDFLAGS=$(LDFLAGS)" \
499 "BISON=$(BISON)" \
500 "MAKEINFO=$(MAKEINFO)" \
501 install) ; \
502 else \
503 true ; \
504 fi
505 \f
506 ### readline
507 .PHONY: all-readline just-readline
508 all-readline: just-readline
509 just-readline: force
510 if [ -d $(unsubdir)/readline ] ; then \
511 (cd $(unsubdir)/readline$(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 all) ; \
523 else \
524 true ; \
525 fi
526
527 clean-readline: force
528 if [ -d $(unsubdir)/readline ] ; then \
529 (cd $(unsubdir)/readline$(subdir); \
530 $(MAKE) \
531 "against=$(against)" \
532 "AR=$(AR)" \
533 "AR_FLAGS=$(AR_FLAGS)" \
534 "CC=$(CC)" \
535 "RANLIB=$(RANLIB)" \
536 "LOADLIBES=$(LOADLIBES)" \
537 "LDFLAGS=$(LDFLAGS)" \
538 "BISON=$(BISON)" \
539 "MAKEINFO=$(MAKEINFO)" \
540 clean) ; \
541 else \
542 true ; \
543 fi
544
545 install-readline: force
546 if [ -d $(unsubdir)/readline ] ; then \
547 (cd $(unsubdir)/readline$(subdir); \
548 $(MAKE) \
549 "against=$(against)" \
550 "AR=$(AR)" \
551 "AR_FLAGS=$(AR_FLAGS)" \
552 "CC=$(CC)" \
553 "RANLIB=$(RANLIB)" \
554 "LOADLIBES=$(LOADLIBES)" \
555 "LDFLAGS=$(LDFLAGS)" \
556 "BISON=$(BISON)" \
557 "MAKEINFO=$(MAKEINFO)" \
558 install) ; \
559 else \
560 true ; \
561 fi
562 \f
563 ### glob
564 .PHONY: all-glob just-glob
565 all-glob: just-glob
566 just-glob: force
567 if [ -d $(unsubdir)/glob ] ; then \
568 (cd $(unsubdir)/glob$(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 all) ; \
580 else \
581 true ; \
582 fi
583
584 clean-glob: force
585 if [ -d $(unsubdir)/glob ] ; then \
586 (cd $(unsubdir)/glob$(subdir); \
587 $(MAKE) \
588 "against=$(against)" \
589 "AR=$(AR)" \
590 "AR_FLAGS=$(AR_FLAGS)" \
591 "CC=$(CC)" \
592 "RANLIB=$(RANLIB)" \
593 "LOADLIBES=$(LOADLIBES)" \
594 "LDFLAGS=$(LDFLAGS)" \
595 "BISON=$(BISON)" \
596 "MAKEINFO=$(MAKEINFO)" \
597 clean) ; \
598 else \
599 true ; \
600 fi
601
602 install-glob: force
603 if [ -d $(unsubdir)/glob ] ; then \
604 (cd $(unsubdir)/glob$(subdir); \
605 $(MAKE) \
606 "against=$(against)" \
607 "AR=$(AR)" \
608 "AR_FLAGS=$(AR_FLAGS)" \
609 "CC=$(CC)" \
610 "RANLIB=$(RANLIB)" \
611 "LOADLIBES=$(LOADLIBES)" \
612 "LDFLAGS=$(LDFLAGS)" \
613 "BISON=$(BISON)" \
614 "MAKEINFO=$(MAKEINFO)" \
615 install) ; \
616 else \
617 true ; \
618 fi
619 \f
620 ### gas
621 .PHONY: all-gas just-gas
622 all-gas: just-gas
623 just-gas: just-libiberty just-bfd force
624 if [ -d $(unsubdir)/gas ] ; then \
625 (cd $(unsubdir)/gas$(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 all) ; \
637 else \
638 true ; \
639 fi
640
641 clean-gas: force
642 if [ -d $(unsubdir)/gas ] ; then \
643 (cd $(unsubdir)/gas$(subdir); \
644 $(MAKE) \
645 "against=$(against)" \
646 "AR=$(AR)" \
647 "AR_FLAGS=$(AR_FLAGS)" \
648 "CC=$(CC)" \
649 "RANLIB=$(RANLIB)" \
650 "LOADLIBES=$(LOADLIBES)" \
651 "LDFLAGS=$(LDFLAGS)" \
652 "BISON=$(BISON)" \
653 "MAKEINFO=$(MAKEINFO)" \
654 clean) ; \
655 else \
656 true ; \
657 fi
658
659 install-gas: force
660 if [ -d $(unsubdir)/gas ] ; then \
661 (cd $(unsubdir)/gas$(subdir); \
662 $(MAKE) \
663 "against=$(against)" \
664 "AR=$(AR)" \
665 "AR_FLAGS=$(AR_FLAGS)" \
666 "CC=$(CC)" \
667 "RANLIB=$(RANLIB)" \
668 "LOADLIBES=$(LOADLIBES)" \
669 "LDFLAGS=$(LDFLAGS)" \
670 "BISON=$(BISON)" \
671 "MAKEINFO=$(MAKEINFO)" \
672 install) ; \
673 else \
674 true ; \
675 fi
676 \f
677 ### ld
678 .PHONY: all-ld just-ld
679 all-ld: just-ld
680 just-ld: just-libiberty just-bfd just-bison force
681 if [ -d $(unsubdir)/ld ] ; then \
682 (cd $(unsubdir)/ld$(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 all) ; \
694 else \
695 true ; \
696 fi
697
698 clean-ld: force
699 if [ -d $(unsubdir)/ld ] ; then \
700 (cd $(unsubdir)/ld$(subdir); \
701 $(MAKE) \
702 "against=$(against)" \
703 "AR=$(AR)" \
704 "AR_FLAGS=$(AR_FLAGS)" \
705 "CC=$(CC)" \
706 "RANLIB=$(RANLIB)" \
707 "LOADLIBES=$(LOADLIBES)" \
708 "LDFLAGS=$(LDFLAGS)" \
709 "BISON=$(BISON)" \
710 "MAKEINFO=$(MAKEINFO)" \
711 clean) ; \
712 else \
713 true ; \
714 fi
715
716 install-ld: force
717 if [ -d $(unsubdir)/ld ] ; then \
718 (cd $(unsubdir)/ld$(subdir); \
719 $(MAKE) \
720 "against=$(against)" \
721 "AR=$(AR)" \
722 "AR_FLAGS=$(AR_FLAGS)" \
723 "CC=$(CC)" \
724 "RANLIB=$(RANLIB)" \
725 "LOADLIBES=$(LOADLIBES)" \
726 "LDFLAGS=$(LDFLAGS)" \
727 "BISON=$(BISON)" \
728 "MAKEINFO=$(MAKEINFO)" \
729 install) ; \
730 else \
731 true ; \
732 fi
733 \f
734 ### gnulib
735 .PHONY: all-gnulib just-gnulib
736 all-gnulib: just-gnulib
737 just-gnulib: all-gcc all-gas all-binutils force
738 if [ -d $(unsubdir)/gnulib ] ; then \
739 (cd $(unsubdir)/gnulib$(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 all) ; \
751 else \
752 true ; \
753 fi
754
755 clean-gnulib: force
756 if [ -d $(unsubdir)/gnulib ] ; then \
757 (cd $(unsubdir)/gnulib$(subdir); \
758 $(MAKE) \
759 "against=$(against)" \
760 "AR=$(AR)" \
761 "AR_FLAGS=$(AR_FLAGS)" \
762 "CC=$(CC)" \
763 "RANLIB=$(RANLIB)" \
764 "LOADLIBES=$(LOADLIBES)" \
765 "LDFLAGS=$(LDFLAGS)" \
766 "BISON=$(BISON)" \
767 "MAKEINFO=$(MAKEINFO)" \
768 clean) ; \
769 else \
770 true ; \
771 fi
772
773 install-gnulib: force
774 if [ -d $(unsubdir)/gnulib ] ; then \
775 (cd $(unsubdir)/gnulib$(subdir); \
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)" \
786 install) ; \
787 else \
788 true ; \
789 fi
790 \f
791 ### gdb
792 .PHONY: all-gdb just-gdb
793 all-gdb: just-gdb
794 just-gdb: just-bfd just-libiberty just-readline just-glob just-bison force
795 if [ -d $(unsubdir)/gdb ] ; then \
796 (cd $(unsubdir)/gdb$(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 all) ; \
808 else \
809 true ; \
810 fi
811
812 clean-gdb: force
813 if [ -d $(unsubdir)/gdb ] ; then \
814 (cd $(unsubdir)/gdb$(subdir); \
815 $(MAKE) \
816 "against=$(against)" \
817 "AR=$(AR)" \
818 "AR_FLAGS=$(AR_FLAGS)" \
819 "CC=$(CC)" \
820 "RANLIB=$(RANLIB)" \
821 "LOADLIBES=$(LOADLIBES)" \
822 "LDFLAGS=$(LDFLAGS)" \
823 "BISON=$(BISON)" \
824 "MAKEINFO=$(MAKEINFO)" \
825 clean) ; \
826 else \
827 true ; \
828 fi
829
830 install-gdb: force
831 if [ -d $(unsubdir)/gdb ] ; then \
832 (cd $(unsubdir)/gdb$(subdir); \
833 $(MAKE) \
834 "against=$(against)" \
835 "AR=$(AR)" \
836 "AR_FLAGS=$(AR_FLAGS)" \
837 "CC=$(CC)" \
838 "RANLIB=$(RANLIB)" \
839 "LOADLIBES=$(LOADLIBES)" \
840 "LDFLAGS=$(LDFLAGS)" \
841 "BISON=$(BISON)" \
842 "MAKEINFO=$(MAKEINFO)" \
843 install) ; \
844 else \
845 true ; \
846 fi
847 \f
848 ### make
849 .PHONY: all-make just-make
850 all-make: just-make
851 just-make: all-libiberty force
852 if [ -d $(unsubdir)/make ] ; then \
853 (cd $(unsubdir)/make$(subdir); \
854 $(MAKE) \
855 "against=$(against)" \
856 "AR=$(AR)" \
857 "AR_FLAGS=$(AR_FLAGS)" \
858 "CC=$(CC)" \
859 "RANLIB=$(RANLIB)" \
860 "LOADLIBES=$(LOADLIBES)" \
861 "LDFLAGS=$(LDFLAGS)" \
862 "BISON=$(BISON)" \
863 "MAKEINFO=$(MAKEINFO)" \
864 all) ; \
865 else \
866 true ; \
867 fi
868
869 clean-make: force
870 if [ -d $(unsubdir)/make ] ; then \
871 (cd $(unsubdir)/make$(subdir); \
872 $(MAKE) \
873 "against=$(against)" \
874 "AR=$(AR)" \
875 "AR_FLAGS=$(AR_FLAGS)" \
876 "CC=$(CC)" \
877 "RANLIB=$(RANLIB)" \
878 "LOADLIBES=$(LOADLIBES)" \
879 "LDFLAGS=$(LDFLAGS)" \
880 "BISON=$(BISON)" \
881 "MAKEINFO=$(MAKEINFO)" \
882 clean) ; \
883 else \
884 true ; \
885 fi
886
887 install-make: force
888 if [ -d $(unsubdir)/make ] ; then \
889 (cd $(unsubdir)/make$(subdir); \
890 $(MAKE) \
891 "against=$(against)" \
892 "AR=$(AR)" \
893 "AR_FLAGS=$(AR_FLAGS)" \
894 "CC=$(CC)" \
895 "RANLIB=$(RANLIB)" \
896 "LOADLIBES=$(LOADLIBES)" \
897 "LDFLAGS=$(LDFLAGS)" \
898 "BISON=$(BISON)" \
899 "MAKEINFO=$(MAKEINFO)" \
900 install) ; \
901 else \
902 true ; \
903 fi
904 \f
905 ### diff
906 .PHONY: all-diff just-diff
907 all-diff: just-diff
908 just-diff: force
909 if [ -d $(unsubdir)/diff ] ; then \
910 (cd $(unsubdir)/diff$(subdir); \
911 $(MAKE) \
912 "against=$(against)" \
913 "AR=$(AR)" \
914 "AR_FLAGS=$(AR_FLAGS)" \
915 "CC=$(CC)" \
916 "RANLIB=$(RANLIB)" \
917 "LOADLIBES=$(LOADLIBES)" \
918 "LDFLAGS=$(LDFLAGS)" \
919 "BISON=$(BISON)" \
920 "MAKEINFO=$(MAKEINFO)" \
921 all) ; \
922 else \
923 true ; \
924 fi
925
926 clean-diff: force
927 if [ -d $(unsubdir)/diff ] ; then \
928 (cd $(unsubdir)/diff$(subdir); \
929 $(MAKE) \
930 "against=$(against)" \
931 "AR=$(AR)" \
932 "AR_FLAGS=$(AR_FLAGS)" \
933 "CC=$(CC)" \
934 "RANLIB=$(RANLIB)" \
935 "LOADLIBES=$(LOADLIBES)" \
936 "LDFLAGS=$(LDFLAGS)" \
937 "BISON=$(BISON)" \
938 "MAKEINFO=$(MAKEINFO)" \
939 clean) ; \
940 else \
941 true ; \
942 fi
943
944 install-diff: force
945 if [ -d $(unsubdir)/diff ] ; then \
946 (cd $(unsubdir)/diff/$(subdir); \
947 $(MAKE) \
948 "against=$(against)" \
949 "AR=$(AR)" \
950 "AR_FLAGS=$(AR_FLAGS)" \
951 "CC=$(CC)" \
952 "RANLIB=$(RANLIB)" \
953 "LOADLIBES=$(LOADLIBES)" \
954 "LDFLAGS=$(LDFLAGS)" \
955 "BISON=$(BISON)" \
956 "MAKEINFO=$(MAKEINFO)" \
957 install) ; \
958 else \
959 true ; \
960 fi
961 \f
962 ### grep
963 .PHONY: all-grep just-grep
964 all-grep: just-grep
965 just-grep: force
966 if [ -d $(unsubdir)/grep ] ; then \
967 (cd $(unsubdir)/grep$(subdir); \
968 $(MAKE) \
969 "against=$(against)" \
970 "AR=$(AR)" \
971 "AR_FLAGS=$(AR_FLAGS)" \
972 "CC=$(CC)" \
973 "RANLIB=$(RANLIB)" \
974 "LOADLIBES=$(LOADLIBES)" \
975 "LDFLAGS=$(LDFLAGS)" \
976 "BISON=$(BISON)" \
977 "MAKEINFO=$(MAKEINFO)" \
978 all) ; \
979 else \
980 true ; \
981 fi
982
983 clean-grep: force
984 if [ -d $(unsubdir)/grep ] ; then \
985 (cd $(unsubdir)/grep$(subdir); \
986 $(MAKE) \
987 "against=$(against)" \
988 "AR=$(AR)" \
989 "AR_FLAGS=$(AR_FLAGS)" \
990 "CC=$(CC)" \
991 "RANLIB=$(RANLIB)" \
992 "LOADLIBES=$(LOADLIBES)" \
993 "LDFLAGS=$(LDFLAGS)" \
994 "BISON=$(BISON)" \
995 "MAKEINFO=$(MAKEINFO)" \
996 clean) ; \
997 else \
998 true ; \
999 fi
1000
1001 install-grep: force
1002 if [ -d $(unsubdir)/grep ] ; then \
1003 (cd $(unsubdir)/grep$(subdir); \
1004 $(MAKE) \
1005 "against=$(against)" \
1006 "AR=$(AR)" \
1007 "AR_FLAGS=$(AR_FLAGS)" \
1008 "CC=$(CC)" \
1009 "RANLIB=$(RANLIB)" \
1010 "LOADLIBES=$(LOADLIBES)" \
1011 "LDFLAGS=$(LDFLAGS)" \
1012 "BISON=$(BISON)" \
1013 "MAKEINFO=$(MAKEINFO)" \
1014 install) ; \
1015 else \
1016 true ; \
1017 fi
1018 \f
1019 ### rcs
1020 .PHONY: all-rcs just-rcs
1021 all-rcs: just-rcs
1022 just-rcs: just-diff just-grep force
1023 if [ -d $(unsubdir)/rcs ] ; then \
1024 (cd $(unsubdir)/rcs$(subdir); \
1025 $(MAKE) \
1026 "against=$(against)" \
1027 "AR=$(AR)" \
1028 "AR_FLAGS=$(AR_FLAGS)" \
1029 "CC=$(CC)" \
1030 "RANLIB=$(RANLIB)" \
1031 "LOADLIBES=$(LOADLIBES)" \
1032 "LDFLAGS=$(LDFLAGS)" \
1033 "BISON=$(BISON)" \
1034 "MAKEINFO=$(MAKEINFO)" \
1035 all) ; \
1036 else \
1037 true ; \
1038 fi
1039
1040 clean-rcs: force
1041 if [ -d $(unsubdir)/rcs ] ; then \
1042 (cd $(unsubdir)/rcs$(subdir); \
1043 $(MAKE) \
1044 "against=$(against)" \
1045 "AR=$(AR)" \
1046 "AR_FLAGS=$(AR_FLAGS)" \
1047 "CC=$(CC)" \
1048 "RANLIB=$(RANLIB)" \
1049 "LOADLIBES=$(LOADLIBES)" \
1050 "LDFLAGS=$(LDFLAGS)" \
1051 "BISON=$(BISON)" \
1052 "MAKEINFO=$(MAKEINFO)" \
1053 clean) ; \
1054 else \
1055 true ; \
1056 fi
1057
1058 install-rcs: install-grep install-diff force
1059 if [ -d $(unsubdir)/rcs ] ; then \
1060 (cd $(unsubdir)/rcs$(subdir); \
1061 $(MAKE) \
1062 "against=$(against)" \
1063 "AR=$(AR)" \
1064 "AR_FLAGS=$(AR_FLAGS)" \
1065 "CC=$(CC)" \
1066 "RANLIB=$(RANLIB)" \
1067 "LOADLIBES=$(LOADLIBES)" \
1068 "LDFLAGS=$(LDFLAGS)" \
1069 "BISON=$(BISON)" \
1070 "MAKEINFO=$(MAKEINFO)" \
1071 install) ; \
1072 else \
1073 true ; \
1074 fi
1075 \f
1076 ### gdbm
1077 .PHONY: all-gdbm just-gdbm
1078 all-gdbm: just-gdbm
1079 just-gdbm: force
1080 if [ -d $(unsubdir)/gdbm ] ; then \
1081 (cd $(unsubdir)/gdbm$(subdir); \
1082 $(MAKE) \
1083 "against=$(against)" \
1084 "AR=$(AR)" \
1085 "AR_FLAGS=$(AR_FLAGS)" \
1086 "CC=$(CC)" \
1087 "RANLIB=$(RANLIB)" \
1088 "LOADLIBES=$(LOADLIBES)" \
1089 "LDFLAGS=$(LDFLAGS)" \
1090 "BISON=$(BISON)" \
1091 "MAKEINFO=$(MAKEINFO)" \
1092 all) ; \
1093 else \
1094 true ; \
1095 fi
1096
1097 clean-gdbm: force
1098 if [ -d $(unsubdir)/gdbm ] ; then \
1099 (cd $(unsubdir)/gdbm$(subdir); \
1100 $(MAKE) \
1101 "against=$(against)" \
1102 "AR=$(AR)" \
1103 "AR_FLAGS=$(AR_FLAGS)" \
1104 "CC=$(CC)" \
1105 "RANLIB=$(RANLIB)" \
1106 "LOADLIBES=$(LOADLIBES)" \
1107 "LDFLAGS=$(LDFLAGS)" \
1108 "BISON=$(BISON)" \
1109 "MAKEINFO=$(MAKEINFO)" \
1110 clean) ; \
1111 else \
1112 true ; \
1113 fi
1114
1115 install-gdbm: force
1116 if [ -d $(unsubdir)/gdbm ] ; then \
1117 (cd $(unsubdir)/gdbm$(subdir); \
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)" \
1128 install) ; \
1129 else \
1130 true ; \
1131 fi
1132 \f
1133 ### cvs
1134 .PHONY: all-cvs just-cvs
1135 all-cvs: just-cvs just-rcs just-grep just-diff
1136 just-cvs: just-gdbm force
1137 if [ -d $(unsubdir)/cvs ] ; then \
1138 (cd $(unsubdir)/cvs$(subdir); \
1139 $(MAKE) \
1140 "against=$(against)" \
1141 "AR=$(AR)" \
1142 "AR_FLAGS=$(AR_FLAGS)" \
1143 "CC=$(CC)" \
1144 "RANLIB=$(RANLIB)" \
1145 "LOADLIBES=$(LOADLIBES)" \
1146 "LDFLAGS=$(LDFLAGS)" \
1147 "BISON=$(BISON)" \
1148 "MAKEINFO=$(MAKEINFO)" \
1149 all) ; \
1150 else \
1151 true ; \
1152 fi
1153
1154 clean-cvs: force
1155 if [ -d $(unsubdir)/cvs ] ; then \
1156 (cd $(unsubdir)/cvs$(subdir); \
1157 $(MAKE) \
1158 "against=$(against)" \
1159 "AR=$(AR)" \
1160 "AR_FLAGS=$(AR_FLAGS)" \
1161 "CC=$(CC)" \
1162 "RANLIB=$(RANLIB)" \
1163 "LOADLIBES=$(LOADLIBES)" \
1164 "LDFLAGS=$(LDFLAGS)" \
1165 "BISON=$(BISON)" \
1166 "MAKEINFO=$(MAKEINFO)" \
1167 clean) ; \
1168 else \
1169 true ; \
1170 fi
1171
1172 install-cvs: install-rcs install-gdbm force
1173 if [ -d $(unsubdir)/cvs ] ; then \
1174 (cd $(unsubdir)/cvs$(subdir); \
1175 $(MAKE) \
1176 "against=$(against)" \
1177 "AR=$(AR)" \
1178 "AR_FLAGS=$(AR_FLAGS)" \
1179 "CC=$(CC)" \
1180 "RANLIB=$(RANLIB)" \
1181 "LOADLIBES=$(LOADLIBES)" \
1182 "LDFLAGS=$(LDFLAGS)" \
1183 "BISON=$(BISON)" \
1184 "MAKEINFO=$(MAKEINFO)" \
1185 install) ; \
1186 else \
1187 true ; \
1188 fi
1189 \f
1190 ### emacs
1191 .PHONY: all-emacs just-emacs
1192 all-emacs: just-emacs
1193 just-emacs: force
1194 if [ -d $(unsubdir)/emacs ] ; then \
1195 (cd $(unsubdir)/emacs$(subdir); \
1196 $(MAKE) \
1197 "against=$(against)" \
1198 "AR=$(AR)" \
1199 "AR_FLAGS=$(AR_FLAGS)" \
1200 "CC=$(CC)" \
1201 "RANLIB=$(RANLIB)" \
1202 "LOADLIBES=$(LOADLIBES)" \
1203 "LDFLAGS=$(LDFLAGS)" \
1204 "BISON=$(BISON)" \
1205 "MAKEINFO=$(MAKEINFO)" \
1206 all) ; \
1207 else \
1208 true ; \
1209 fi
1210
1211 clean-emacs: force
1212 if [ -d $(unsubdir)/emacs ] ; then \
1213 (cd $(unsubdir)/emacs$(subdir); \
1214 $(MAKE) \
1215 "against=$(against)" \
1216 "AR=$(AR)" \
1217 "AR_FLAGS=$(AR_FLAGS)" \
1218 "CC=$(CC)" \
1219 "RANLIB=$(RANLIB)" \
1220 "LOADLIBES=$(LOADLIBES)" \
1221 "LDFLAGS=$(LDFLAGS)" \
1222 "BISON=$(BISON)" \
1223 "MAKEINFO=$(MAKEINFO)" \
1224 clean) ; \
1225 else \
1226 true ; \
1227 fi
1228
1229 install-emacs: install-rcs install-gdbm force
1230 if [ -d $(unsubdir)/emacs ] ; then \
1231 (cd $(unsubdir)/emacs$(subdir); \
1232 $(MAKE) \
1233 "against=$(against)" \
1234 "AR=$(AR)" \
1235 "AR_FLAGS=$(AR_FLAGS)" \
1236 "CC=$(CC)" \
1237 "RANLIB=$(RANLIB)" \
1238 "LOADLIBES=$(LOADLIBES)" \
1239 "LDFLAGS=$(LDFLAGS)" \
1240 "BISON=$(BISON)" \
1241 "MAKEINFO=$(MAKEINFO)" \
1242 install) ; \
1243 else \
1244 true ; \
1245 fi
1246 \f
1247 ### ispell
1248 .PHONY: all-ispell just-ispell
1249 all-ispell: just-ispell
1250 just-ispell: all-emacs force
1251 if [ -d $(unsubdir)/ispell ] ; then \
1252 (cd $(unsubdir)/ispell$(subdir); \
1253 $(MAKE) \
1254 "against=$(against)" \
1255 "AR=$(AR)" \
1256 "AR_FLAGS=$(AR_FLAGS)" \
1257 "CC=$(CC)" \
1258 "RANLIB=$(RANLIB)" \
1259 "LOADLIBES=$(LOADLIBES)" \
1260 "LDFLAGS=$(LDFLAGS)" \
1261 "BISON=$(BISON)" \
1262 "MAKEINFO=$(MAKEINFO)" \
1263 all) ; \
1264 else \
1265 true ; \
1266 fi
1267
1268 clean-ispell: force
1269 if [ -d $(unsubdir)/ispell ] ; then \
1270 (cd $(unsubdir)/ispell$(subdir); \
1271 $(MAKE) \
1272 "against=$(against)" \
1273 "AR=$(AR)" \
1274 "AR_FLAGS=$(AR_FLAGS)" \
1275 "CC=$(CC)" \
1276 "RANLIB=$(RANLIB)" \
1277 "LOADLIBES=$(LOADLIBES)" \
1278 "LDFLAGS=$(LDFLAGS)" \
1279 "BISON=$(BISON)" \
1280 "MAKEINFO=$(MAKEINFO)" \
1281 clean) ; \
1282 else \
1283 true ; \
1284 fi
1285
1286 install-ispell: install-rcs install-gdbm force
1287 if [ -d $(unsubdir)/ispell ] ; then \
1288 (cd $(unsubdir)/ispell$(subdir); \
1289 $(MAKE) \
1290 "against=$(against)" \
1291 "AR=$(AR)" \
1292 "AR_FLAGS=$(AR_FLAGS)" \
1293 "CC=$(CC)" \
1294 "RANLIB=$(RANLIB)" \
1295 "LOADLIBES=$(LOADLIBES)" \
1296 "LDFLAGS=$(LDFLAGS)" \
1297 "BISON=$(BISON)" \
1298 "MAKEINFO=$(MAKEINFO)" \
1299 install) ; \
1300 else \
1301 true ; \
1302 fi
1303 \f
1304 ### other supporting targets
1305 # this is a bad hack.
1306 all.xclib: all.normal
1307 if [ -d clib ] ; then \
1308 (cd clib ; $(MAKE)) ; \
1309 fi
1310
1311 subdir_do: force
1312 for i in $(DODIRS); do \
1313 if [ -f $(unsubdir)/$$i/localenv ] ; then \
1314 if (cd $(unsubdir)/$$i$(subdir); \
1315 $(MAKE) \
1316 "against=$(against)" \
1317 "BISON=$(BISON)" \
1318 "MAKEINFO=$(MAKEINFO)" \
1319 $(DO)) ; then true ; \
1320 else exit 1 ; fi ; \
1321 else if [ -d $(unsubdir)/$$i ] ; then \
1322 if (cd $(unsubdir)/$$i$(subdir); \
1323 $(MAKE) \
1324 "against=$(against)" \
1325 "AR=$(AR)" \
1326 "AR_FLAGS=$(AR_FLAGS)" \
1327 "CC=$(CC)" \
1328 "RANLIB=$(RANLIB)" \
1329 "LOADLIBES=$(LOADLIBES)" \
1330 "LDFLAGS=$(LDFLAGS)" \
1331 "BISON=$(BISON)" \
1332 "MAKEINFO=$(MAKEINFO)" \
1333 $(DO)) ; then true ; \
1334 else exit 1 ; fi ; \
1335 else true ; fi ; \
1336 fi ; \
1337 done
1338
1339 bootstrap:
1340 $(MAKE) all info
1341 $(MAKE) stage1
1342 $(MAKE) pass "stagepass=stage1"
1343 $(MAKE) stage2
1344 $(MAKE) pass "stagepass=stage2"
1345 $(MAKE) comparison
1346
1347 bootstrap2:
1348 $(MAKE) pass "stagepass=stage1"
1349 $(MAKE) stage2
1350 $(MAKE) pass "stagepass=stage2"
1351 $(MAKE) comparison
1352
1353 bootstrap3:
1354 $(MAKE) pass "stagepass=stage2"
1355 $(MAKE) comparison
1356
1357 pass:
1358 cp $(srcdir)/gcc/gstdarg.h $(unsubdir)/gas$(subdir)/stdarg.h
1359 $(MAKE) subdir_do "DO=all info" "DODIRS=$(SUBDIRS)" \
1360 "CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \
1361 -O $(GCCVERBOSE) -I`pwd`/$(unsubdir)/gcc$(subdir)/include \
1362 -B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \
1363 -B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \
1364 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \
1365 "AR=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ar" \
1366 "LD=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc $(GCCVERBOSE)" \
1367 "RANLIB=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ranlib" \
1368 "LOADLIBES=`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
1369 "LDFLAGS=-nostdlib /lib/crt0.o \
1370 -L`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/ \
1371 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/"
1372
1373
1374 stage1:
1375 $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
1376
1377 stage2:
1378 $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
1379
1380 stage3:
1381 $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
1382
1383 stage4:
1384 $(MAKE) subdir_do DO=stage4 "DODIRS=$(SUBDIRS)"
1385
1386 against=stage2
1387
1388 comparison:; $(MAKE) subdir_do DO=comparison against=$(against) "DODIRS=$(SUBDIRS)"
1389
1390 de-stage1:; $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)"
1391 de-stage2:; $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)"
1392 de-stage3:; $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)"
1393 de-stage4:; $(MAKE) subdir_do DO=de-stage4 "DODIRS=$(SUBDIRS)"
1394
1395 # The "else true" stuff is for Ultrix; the shell returns the exit code
1396 # of the "if" command, if no commands are run in the "then" or "else" part,
1397 # causing Make to quit.
1398
1399 MAKEDIRS= \
1400 $(prefix) \
1401 $(bindir) \
1402 $(libdir) \
1403 $(includedir) \
1404 $(datadir) \
1405 $(docdir) \
1406 $(mandir) \
1407 $(man1dir) \
1408 $(man5dir)
1409
1410 # $(man2dir) \
1411 # $(man3dir) \
1412 # $(man4dir) \
1413 # $(man6dir) \
1414 # $(man7dir) \
1415 # $(man8dir)
1416
1417 install-dirs: force
1418 for i in $(MAKEDIRS) ; do \
1419 echo Making $$i... ; \
1420 if [ -d $$i ] ; then true ; else mkdir $$i || exit 1 ; fi ; \
1421 done
1422
1423 MAKEINFODIRS= \
1424 $(prefix) \
1425 $(infodir)
1426
1427 install-info-dirs: force
1428 for i in $(MAKEINFODIRS) ; do \
1429 echo Making $$i... ; \
1430 if [ -d $$i ] ; then true ; else mkdir $$i ; fi ; \
1431 done
1432
1433 install-dir.info-in-place: force
1434 rdir=`cd $(srcdir)/texinfo ; pwd` \
1435 && cd $(infodir) \
1436 && ($${rdir}/gen-info-dir `pwd`) > dir
1437
1438 dir.info: force
1439 # $(srcdir)/texinfo/gen-info-dir . > dir.info.new
1440 # mv -f dir.info.new dir.info
1441
1442 etags tags: TAGS
1443
1444 TAGS: FORCE
1445 etags `$(MAKE) ls`
1446
1447 ls:
1448 @echo Makefile
1449 @for i in $(SUBDIRS); \
1450 do \
1451 (cd $$i; \
1452 pwd=`pwd`; \
1453 wd=`basename $$pwd`; \
1454 for j in `$(MAKE) ls`; \
1455 do \
1456 echo $$wd/$$j; \
1457 done) \
1458 done
1459
1460 force:
1461
1462 # with the gnu make, this is done automatically.
1463
1464 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
1465 $(SHELL) ./config.status
1466
1467 #
1468 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1469
1470 DEVO_SUPPORT= README DOC.configure Makefile.in configure configure.in \
1471 config.sub config
1472 GDB_SUPPORT_DIRS= bfd include libiberty readline glob
1473 GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
1474
1475 setup-dirs: force_update
1476 ./configure sun4
1477 make clean
1478 ./configure -rm sun4
1479 chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1480
1481 bfd.ilrt.tar.Z: setup-dirs
1482 rm -f bfd.ilrt.tar.Z
1483 tar cf - $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) \
1484 | compress -v >bfd.ilrt.tar.Z
1485
1486 gdb.tar.Z: setup-dirs
1487 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir)
1488 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
1489
1490 make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex
1491 rm -rf proto-toplev; mkdir proto-toplev
1492 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
1493 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
1494 ln -s ../$$i . ; \
1495 done)
1496 # Take out texinfo from configurable dirs
1497 rm proto-toplev/configure.in
1498 sed '/^configdirs=/s/texinfo //' <configure.in >proto-toplev/configure.in
1499 # Take out glob from buildable dirs
1500 rm proto-toplev/Makefile.in
1501 sed '/^SUBDIRS =/s/glob //' <Makefile.in >proto-toplev/Makefile.in
1502 mkdir proto-toplev/texinfo
1503 mkdir proto-toplev/texinfo/fsf
1504 ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/
1505 chmod og=u `find proto-toplev -print`
1506 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1507 echo "==> Making gdb-$$VER.tar.Z"; \
1508 ln -s proto-toplev gdb-$$VER; \
1509 tar cfh - gdb-$$VER \
1510 | compress -v >gdb-$$VER.tar.Z)
1511
1512 force_update:
1513
1514 nothing:
1515
1516 # end of Makefile.in
This page took 0.0571 seconds and 5 git commands to generate.