2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991 Cygnus Support
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.
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.
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. */
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
44 INSTALL_PROGRAM
= $(INSTALL
)
45 INSTALL_DATA
= $(INSTALL
)
51 BISON
= `if [ -d $${rootme}/bison ] ; \
52 then echo $${rootme}/bison/bison -L $${rootme}/bison/ -y ; \
53 else echo bison -y ; fi`
55 MAKEINFO
= `if [ -d $${rootme}/texinfo/C ] ; \
56 then echo $${rootme}/texinfo/C/makeinfo ; \
57 else echo makeinfo ; fi`
59 SUBDIRS
= libiberty glob readline bfd gdb binutils
ld gas gcc libg
++ gnulib clib
63 INSTALL_TARGET
= install.
all
69 #### host and target specific makefile fragments come in here.
72 .PHONY
: all info install-info clean-info
76 info: cfg-paper.
info configure.
info
77 rootme
=`pwd` ; export rootme
; $(MAKE
) subdir_do DO
=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
80 $(MAKE
) subdir_do DO
=clean-info
"DODIRS=$(SUBDIRS)"
81 rm -f cfg-paper.
info* configure.
info*
83 cfg-paper.
info: cfg-paper.texi
84 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o cfg-paper.
info $(srcdir)/cfg-paper.texi
86 configure.
info: configure.texi
87 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o configure.
info $(srcdir)/configure.texi
89 install-info
: install-info-dirs
force
90 [ -d
$(infodir) ] || mkdir
$(infodir)
91 $(MAKE
) subdir_do DO
=install-info
"DODIRS=$(SUBDIRS)"
92 $(INSTALL_DATA
) cfg-paper.
info $(infodir)/cfg-paper.
info
93 $(INSTALL_DATA
) configure.
info $(infodir)/configure.
info
94 $(MAKE
) dir.
info install-dir.
info
97 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info
101 all.normal
: all-texinfo all-bison all-byacc all-flex all-ld \
102 all-gas all-gcc all-binutils \
103 all-libg
++ all-gdb all-make all-cvs all-patch all-emacs all-ispell all-fileutils
104 all.cross
: all-bison all-ld all-gnulib all-gdb
105 # $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
107 clean: 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 \
111 clean-cvs clean-patch clean-emacs clean-ispell clean-fileutils
112 rm -rf
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
114 install: $(INSTALL_TARGET
) $(srcdir)/configure.man
115 $(INSTALL_DATA
) $(srcdir)/configure.man
$(man1dir)/configure
.1
117 install.
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 \
121 install-cvs install-patch install-emacs install-ispell install-fileutils
122 install.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
127 .PHONY
: all-libiberty just-libiberty
128 all-libiberty
: just-libiberty
129 just-libiberty
: force
130 if
[ -d
$(unsubdir
)/libiberty
] ; then \
131 rootme
=`pwd` ; export rootme
; \
132 (cd
$(unsubdir
)/libiberty
$(subdir
); \
134 "against=$(against)" \
136 "AR_FLAGS=$(AR_FLAGS)" \
139 "LOADLIBES=$(LOADLIBES)" \
140 "LDFLAGS=$(LDFLAGS)" \
142 "MAKEINFO=$(MAKEINFO)" \
148 clean-libiberty
: force
149 if
[ -d
$(unsubdir
)/libiberty
] ; then \
150 rootme
=`pwd` ; export rootme
; \
151 (cd
$(unsubdir
)/libiberty
$(subdir
); \
153 "against=$(against)" \
155 "AR_FLAGS=$(AR_FLAGS)" \
158 "LOADLIBES=$(LOADLIBES)" \
159 "LDFLAGS=$(LDFLAGS)" \
161 "MAKEINFO=$(MAKEINFO)" \
167 install-libiberty
: force
168 if
[ -d
$(unsubdir
)/libiberty
] ; then \
169 rootme
=`pwd` ; export rootme
; \
170 (cd
$(unsubdir
)/libiberty
$(subdir
); \
172 "against=$(against)" \
174 "AR_FLAGS=$(AR_FLAGS)" \
177 "LOADLIBES=$(LOADLIBES)" \
178 "LDFLAGS=$(LDFLAGS)" \
180 "MAKEINFO=$(MAKEINFO)" \
187 .PHONY
: all-texinfo just-texinfo
188 all-texinfo
: just-texinfo
189 just-texinfo
: just-libiberty
force
190 if
[ -d
$(unsubdir
)/texinfo
] ; then \
191 rootme
=`pwd` ; export rootme
; \
192 rootme
=`pwd` ; export rootme
; \
193 (cd
$(unsubdir
)/texinfo
$(subdir
); \
195 "against=$(against)" \
197 "AR_FLAGS=$(AR_FLAGS)" \
200 "LOADLIBES=$(LOADLIBES)" \
201 "LDFLAGS=$(LDFLAGS)" \
203 "MAKEINFO=$(MAKEINFO)" \
210 if
[ -d
$(unsubdir
)/texinfo
] ; then \
211 rootme
=`pwd` ; export rootme
; \
212 (cd
$(unsubdir
)/texinfo
$(subdir
); \
214 "against=$(against)" \
216 "AR_FLAGS=$(AR_FLAGS)" \
219 "LOADLIBES=$(LOADLIBES)" \
220 "LDFLAGS=$(LDFLAGS)" \
222 "MAKEINFO=$(MAKEINFO)" \
228 install-texinfo
: force
229 if
[ -d
$(unsubdir
)/texinfo
] ; then \
230 rootme
=`pwd` ; export rootme
; \
231 (cd
$(unsubdir
)/texinfo
$(subdir
); \
233 "against=$(against)" \
235 "AR_FLAGS=$(AR_FLAGS)" \
238 "LOADLIBES=$(LOADLIBES)" \
239 "LDFLAGS=$(LDFLAGS)" \
241 "MAKEINFO=$(MAKEINFO)" \
248 .PHONY
: all-bfd just-bfd
251 if
[ -d
$(unsubdir
)/bfd
] ; then \
252 rootme
=`pwd` ; export rootme
; \
253 (cd
$(unsubdir
)/bfd
$(subdir
); \
255 "against=$(against)" \
257 "AR_FLAGS=$(AR_FLAGS)" \
260 "LOADLIBES=$(LOADLIBES)" \
261 "LDFLAGS=$(LDFLAGS)" \
263 "MAKEINFO=$(MAKEINFO)" \
270 if
[ -d
$(unsubdir
)/bfd
] ; then \
271 rootme
=`pwd` ; export rootme
; \
272 (cd
$(unsubdir
)/bfd
$(subdir
); \
274 "against=$(against)" \
276 "AR_FLAGS=$(AR_FLAGS)" \
279 "LOADLIBES=$(LOADLIBES)" \
280 "LDFLAGS=$(LDFLAGS)" \
282 "MAKEINFO=$(MAKEINFO)" \
289 if
[ -d
$(unsubdir
)/bfd
] ; then \
290 rootme
=`pwd` ; export rootme
; \
291 (cd
$(unsubdir
)/bfd
$(subdir
); \
293 "against=$(against)" \
295 "AR_FLAGS=$(AR_FLAGS)" \
298 "LOADLIBES=$(LOADLIBES)" \
299 "LDFLAGS=$(LDFLAGS)" \
301 "MAKEINFO=$(MAKEINFO)" \
308 .PHONY
: all-binutils just-binutils
309 all-binutils
: just-binutils
310 just-binutils
: just-libiberty just-bfd
force
311 if
[ -d
$(unsubdir
)/binutils
] ; then \
312 rootme
=`pwd` ; export rootme
; \
313 (cd
$(unsubdir
)/binutils
$(subdir
); \
315 "against=$(against)" \
317 "AR_FLAGS=$(AR_FLAGS)" \
320 "LOADLIBES=$(LOADLIBES)" \
321 "LDFLAGS=$(LDFLAGS)" \
323 "MAKEINFO=$(MAKEINFO)" \
329 clean-binutils
: force
330 if
[ -d
$(unsubdir
)/binutils
] ; then \
331 rootme
=`pwd` ; export rootme
; \
332 (cd
$(unsubdir
)/binutils
$(subdir
); \
334 "against=$(against)" \
336 "AR_FLAGS=$(AR_FLAGS)" \
339 "LOADLIBES=$(LOADLIBES)" \
340 "LDFLAGS=$(LDFLAGS)" \
342 "MAKEINFO=$(MAKEINFO)" \
348 install-binutils
: force
349 if
[ -d
$(unsubdir
)/binutils
] ; then \
350 rootme
=`pwd` ; export rootme
; \
351 (cd
$(unsubdir
)/binutils
$(subdir
); \
353 "against=$(against)" \
355 "AR_FLAGS=$(AR_FLAGS)" \
358 "LOADLIBES=$(LOADLIBES)" \
359 "LDFLAGS=$(LDFLAGS)" \
361 "MAKEINFO=$(MAKEINFO)" \
368 .PHONY
: all-byacc just-byacc
369 all-byacc
: just-byacc
371 if
[ -d
$(unsubdir
)/byacc
] ; then \
372 rootme
=`pwd` ; export rootme
; \
373 (cd
$(unsubdir
)/byacc
$(subdir
); \
375 "against=$(against)" \
377 "AR_FLAGS=$(AR_FLAGS)" \
380 "LOADLIBES=$(LOADLIBES)" \
381 "LDFLAGS=$(LDFLAGS)" \
383 "MAKEINFO=$(MAKEINFO)" \
390 if
[ -d
$(unsubdir
)/byacc
] ; then \
391 rootme
=`pwd` ; export rootme
; \
392 (cd
$(unsubdir
)/byacc
$(subdir
); \
394 "against=$(against)" \
396 "AR_FLAGS=$(AR_FLAGS)" \
399 "LOADLIBES=$(LOADLIBES)" \
400 "LDFLAGS=$(LDFLAGS)" \
402 "MAKEINFO=$(MAKEINFO)" \
409 if
[ -d
$(unsubdir
)/byacc
] ; then \
410 rootme
=`pwd` ; export rootme
; \
411 (cd
$(unsubdir
)/byacc
$(subdir
); \
413 "against=$(against)" \
415 "AR_FLAGS=$(AR_FLAGS)" \
418 "LOADLIBES=$(LOADLIBES)" \
419 "LDFLAGS=$(LDFLAGS)" \
421 "MAKEINFO=$(MAKEINFO)" \
428 .PHONY
: all-bison just-bison
429 all-bison
: just-bison
430 just-bison
: just-libiberty
force
431 if
[ -d
$(unsubdir
)/bison
] ; then \
432 rootme
=`pwd` ; export rootme
; \
433 (cd
$(unsubdir
)/bison
$(subdir
); \
436 "datadir=$(datadir)" \
438 "AR_FLAGS=$(AR_FLAGS)" \
441 "LOADLIBES=$(LOADLIBES)" \
442 "LDFLAGS=$(LDFLAGS)" \
444 "MAKEINFO=$(MAKEINFO)" \
451 if
[ -d
$(unsubdir
)/bison
] ; then \
452 rootme
=`pwd` ; export rootme
; \
453 (cd
$(unsubdir
)/bison
$(subdir
); \
456 "datadir=$(datadir)" \
458 "AR_FLAGS=$(AR_FLAGS)" \
461 "LOADLIBES=$(LOADLIBES)" \
462 "LDFLAGS=$(LDFLAGS)" \
464 "MAKEINFO=$(MAKEINFO)" \
471 if
[ -d
$(unsubdir
)/bison
] ; then \
472 rootme
=`pwd` ; export rootme
; \
473 (cd
$(unsubdir
)/bison
$(subdir
); \
476 "datadir=$(datadir)" \
478 "AR_FLAGS=$(AR_FLAGS)" \
481 "LOADLIBES=$(LOADLIBES)" \
482 "LDFLAGS=$(LDFLAGS)" \
484 "MAKEINFO=$(MAKEINFO)" \
491 .PHONY
: all-gcc just-gcc
493 #just-gcc: just-libiberty just-bison just-gnulib1 force
494 just-gcc
: just-libiberty just-bison just-gas
force
495 if
[ -d
$(unsubdir
)/gcc
] ; then \
496 rootme
=`pwd` ; export rootme
; \
497 (cd
$(unsubdir
)/gcc
$(subdir
); \
499 "against=$(against)" \
501 "AR_FLAGS=$(AR_FLAGS)" \
504 "LOADLIBES=$(LOADLIBES)" \
505 "LDFLAGS=$(LDFLAGS)" \
507 "MAKEINFO=$(MAKEINFO)" \
514 if
[ -d
$(unsubdir
)/gcc
] ; then \
515 rootme
=`pwd` ; export rootme
; \
516 (cd
$(unsubdir
)/gcc
$(subdir
); \
518 "against=$(against)" \
520 "AR_FLAGS=$(AR_FLAGS)" \
523 "LOADLIBES=$(LOADLIBES)" \
524 "LDFLAGS=$(LDFLAGS)" \
526 "MAKEINFO=$(MAKEINFO)" \
533 if
[ -d
$(unsubdir
)/gcc
] ; then \
534 rootme
=`pwd` ; export rootme
; \
535 (cd
$(unsubdir
)/gcc
$(subdir
); \
537 "against=$(against)" \
539 "AR_FLAGS=$(AR_FLAGS)" \
542 "LOADLIBES=$(LOADLIBES)" \
543 "LDFLAGS=$(LDFLAGS)" \
545 "MAKEINFO=$(MAKEINFO)" \
552 .PHONY
: all-readline just-readline
553 all-readline
: just-readline
555 if
[ -d
$(unsubdir
)/readline
] ; then \
556 rootme
=`pwd` ; export rootme
; \
557 (cd
$(unsubdir
)/readline
$(subdir
); \
559 "against=$(against)" \
561 "AR_FLAGS=$(AR_FLAGS)" \
564 "LOADLIBES=$(LOADLIBES)" \
565 "LDFLAGS=$(LDFLAGS)" \
567 "MAKEINFO=$(MAKEINFO)" \
573 clean-readline
: force
574 if
[ -d
$(unsubdir
)/readline
] ; then \
575 rootme
=`pwd` ; export rootme
; \
576 (cd
$(unsubdir
)/readline
$(subdir
); \
578 "against=$(against)" \
580 "AR_FLAGS=$(AR_FLAGS)" \
583 "LOADLIBES=$(LOADLIBES)" \
584 "LDFLAGS=$(LDFLAGS)" \
586 "MAKEINFO=$(MAKEINFO)" \
592 install-readline
: force
593 if
[ -d
$(unsubdir
)/readline
] ; then \
594 rootme
=`pwd` ; export rootme
; \
595 (cd
$(unsubdir
)/readline
$(subdir
); \
597 "against=$(against)" \
599 "AR_FLAGS=$(AR_FLAGS)" \
602 "LOADLIBES=$(LOADLIBES)" \
603 "LDFLAGS=$(LDFLAGS)" \
605 "MAKEINFO=$(MAKEINFO)" \
612 .PHONY
: all-glob just-glob
615 if
[ -d
$(unsubdir
)/glob
] ; then \
616 rootme
=`pwd` ; export rootme
; \
617 (cd
$(unsubdir
)/glob
$(subdir
); \
619 "against=$(against)" \
621 "AR_FLAGS=$(AR_FLAGS)" \
624 "LOADLIBES=$(LOADLIBES)" \
625 "LDFLAGS=$(LDFLAGS)" \
627 "MAKEINFO=$(MAKEINFO)" \
634 if
[ -d
$(unsubdir
)/glob
] ; then \
635 rootme
=`pwd` ; export rootme
; \
636 (cd
$(unsubdir
)/glob
$(subdir
); \
638 "against=$(against)" \
640 "AR_FLAGS=$(AR_FLAGS)" \
643 "LOADLIBES=$(LOADLIBES)" \
644 "LDFLAGS=$(LDFLAGS)" \
646 "MAKEINFO=$(MAKEINFO)" \
653 if
[ -d
$(unsubdir
)/glob
] ; then \
654 rootme
=`pwd` ; export rootme
; \
655 (cd
$(unsubdir
)/glob
$(subdir
); \
657 "against=$(against)" \
659 "AR_FLAGS=$(AR_FLAGS)" \
662 "LOADLIBES=$(LOADLIBES)" \
663 "LDFLAGS=$(LDFLAGS)" \
665 "MAKEINFO=$(MAKEINFO)" \
672 .PHONY
: all-gas just-gas
674 just-gas
: just-libiberty just-bfd
force
675 if
[ -d
$(unsubdir
)/gas
] ; then \
676 rootme
=`pwd` ; export rootme
; \
677 (cd
$(unsubdir
)/gas
$(subdir
); \
679 "against=$(against)" \
681 "AR_FLAGS=$(AR_FLAGS)" \
684 "LOADLIBES=$(LOADLIBES)" \
685 "LDFLAGS=$(LDFLAGS)" \
687 "MAKEINFO=$(MAKEINFO)" \
694 if
[ -d
$(unsubdir
)/gas
] ; then \
695 rootme
=`pwd` ; export rootme
; \
696 (cd
$(unsubdir
)/gas
$(subdir
); \
698 "against=$(against)" \
700 "AR_FLAGS=$(AR_FLAGS)" \
703 "LOADLIBES=$(LOADLIBES)" \
704 "LDFLAGS=$(LDFLAGS)" \
706 "MAKEINFO=$(MAKEINFO)" \
713 if
[ -d
$(unsubdir
)/gas
] ; then \
714 rootme
=`pwd` ; export rootme
; \
715 (cd
$(unsubdir
)/gas
$(subdir
); \
717 "against=$(against)" \
719 "AR_FLAGS=$(AR_FLAGS)" \
722 "LOADLIBES=$(LOADLIBES)" \
723 "LDFLAGS=$(LDFLAGS)" \
725 "MAKEINFO=$(MAKEINFO)" \
732 .PHONY
: all-ld just-ld
734 just-ld
: just-libiberty just-bfd just-bison
force
735 if
[ -d
$(unsubdir
)/ld ] ; then \
736 rootme
=`pwd` ; export rootme
; \
737 (cd
$(unsubdir
)/ld$(subdir
); \
739 "against=$(against)" \
741 "AR_FLAGS=$(AR_FLAGS)" \
744 "LOADLIBES=$(LOADLIBES)" \
745 "LDFLAGS=$(LDFLAGS)" \
747 "MAKEINFO=$(MAKEINFO)" \
754 if
[ -d
$(unsubdir
)/ld ] ; then \
755 rootme
=`pwd` ; export rootme
; \
756 (cd
$(unsubdir
)/ld$(subdir
); \
758 "against=$(against)" \
760 "AR_FLAGS=$(AR_FLAGS)" \
763 "LOADLIBES=$(LOADLIBES)" \
764 "LDFLAGS=$(LDFLAGS)" \
766 "MAKEINFO=$(MAKEINFO)" \
773 if
[ -d
$(unsubdir
)/ld ] ; then \
774 rootme
=`pwd` ; export rootme
; \
775 (cd
$(unsubdir
)/ld$(subdir
); \
777 "against=$(against)" \
779 "AR_FLAGS=$(AR_FLAGS)" \
782 "LOADLIBES=$(LOADLIBES)" \
783 "LDFLAGS=$(LDFLAGS)" \
785 "MAKEINFO=$(MAKEINFO)" \
791 ### gnulib (and gnulib1)
792 .PHONY
: all-gnulib just-gnulib1 just-gnulib
793 just-gnulib1
: all-gas all-binutils
force
794 if
[ -d
$(unsubdir
)/gnulib
] ; then \
795 rootme
=`pwd` ; export rootme
; \
796 (cd
$(unsubdir
)/gnulib
$(subdir
); \
798 "against=$(against)" \
800 "AR_FLAGS=$(AR_FLAGS)" \
803 "LOADLIBES=$(LOADLIBES)" \
804 "LDFLAGS=$(LDFLAGS)" \
806 "MAKEINFO=$(MAKEINFO)" \
813 if
[ -d
$(unsubdir
)/gnulib
] ; then \
814 rootme
=`pwd` ; export rootme
; \
815 (cd
$(unsubdir
)/gnulib
$(subdir
); \
817 "against=$(against)" \
819 "AR_FLAGS=$(AR_FLAGS)" \
822 "LOADLIBES=$(LOADLIBES)" \
823 "LDFLAGS=$(LDFLAGS)" \
825 "MAKEINFO=$(MAKEINFO)" \
831 install-gnulib1
: force
832 echo gnulib1 is a component
, not an installable target
834 all-gnulib
: just-gnulib
835 just-gnulib
: all-gas all-gcc all-binutils
force
837 if
[ -d
$(unsubdir
)/gnulib
] ; then \
838 rootme
=`pwd` ; export rootme
; \
839 (cd
$(unsubdir
)/gnulib
$(subdir
); \
841 "against=$(against)" \
843 "AR_FLAGS=$(AR_FLAGS)" \
846 "LOADLIBES=$(LOADLIBES)" \
847 "LDFLAGS=$(LDFLAGS)" \
849 "MAKEINFO=$(MAKEINFO)" \
856 if
[ -d
$(unsubdir
)/gnulib
] ; then \
857 rootme
=`pwd` ; export rootme
; \
858 (cd
$(unsubdir
)/gnulib
$(subdir
); \
860 "against=$(against)" \
862 "AR_FLAGS=$(AR_FLAGS)" \
865 "LOADLIBES=$(LOADLIBES)" \
866 "LDFLAGS=$(LDFLAGS)" \
868 "MAKEINFO=$(MAKEINFO)" \
874 install-gnulib
: force
875 if
[ -d
$(unsubdir
)/gnulib
] ; then \
876 rootme
=`pwd` ; export rootme
; \
877 (cd
$(unsubdir
)/gnulib
$(subdir
); \
879 "against=$(against)" \
881 "AR_FLAGS=$(AR_FLAGS)" \
884 "LOADLIBES=$(LOADLIBES)" \
885 "LDFLAGS=$(LDFLAGS)" \
887 "MAKEINFO=$(MAKEINFO)" \
894 .PHONY
: all-gdb just-gdb
896 just-gdb
: just-bfd just-libiberty just-readline just-glob just-bison
force
897 if
[ -d
$(unsubdir
)/gdb
] ; then \
898 rootme
=`pwd` ; export rootme
; \
899 (cd
$(unsubdir
)/gdb
$(subdir
); \
901 "against=$(against)" \
903 "AR_FLAGS=$(AR_FLAGS)" \
906 "LOADLIBES=$(LOADLIBES)" \
907 "LDFLAGS=$(LDFLAGS)" \
909 "MAKEINFO=$(MAKEINFO)" \
916 if
[ -d
$(unsubdir
)/gdb
] ; then \
917 rootme
=`pwd` ; export rootme
; \
918 (cd
$(unsubdir
)/gdb
$(subdir
); \
920 "against=$(against)" \
922 "AR_FLAGS=$(AR_FLAGS)" \
925 "LOADLIBES=$(LOADLIBES)" \
926 "LDFLAGS=$(LDFLAGS)" \
928 "MAKEINFO=$(MAKEINFO)" \
935 if
[ -d
$(unsubdir
)/gdb
] ; then \
936 rootme
=`pwd` ; export rootme
; \
937 (cd
$(unsubdir
)/gdb
$(subdir
); \
939 "against=$(against)" \
941 "AR_FLAGS=$(AR_FLAGS)" \
944 "LOADLIBES=$(LOADLIBES)" \
945 "LDFLAGS=$(LDFLAGS)" \
947 "MAKEINFO=$(MAKEINFO)" \
954 .PHONY
: all-make just-make
956 just-make
: all-libiberty
force
957 if
[ -d
$(unsubdir
)/make
] ; then \
958 rootme
=`pwd` ; export rootme
; \
959 (cd
$(unsubdir
)/make
$(subdir
); \
961 "against=$(against)" \
963 "AR_FLAGS=$(AR_FLAGS)" \
966 "LOADLIBES=$(LOADLIBES)" \
967 "LDFLAGS=$(LDFLAGS)" \
969 "MAKEINFO=$(MAKEINFO)" \
976 if
[ -d
$(unsubdir
)/make
] ; then \
977 rootme
=`pwd` ; export rootme
; \
978 (cd
$(unsubdir
)/make
$(subdir
); \
980 "against=$(against)" \
982 "AR_FLAGS=$(AR_FLAGS)" \
985 "LOADLIBES=$(LOADLIBES)" \
986 "LDFLAGS=$(LDFLAGS)" \
988 "MAKEINFO=$(MAKEINFO)" \
995 if
[ -d
$(unsubdir
)/make
] ; then \
996 rootme
=`pwd` ; export rootme
; \
997 (cd
$(unsubdir
)/make
$(subdir
); \
999 "against=$(against)" \
1001 "AR_FLAGS=$(AR_FLAGS)" \
1003 "RANLIB=$(RANLIB)" \
1004 "LOADLIBES=$(LOADLIBES)" \
1005 "LDFLAGS=$(LDFLAGS)" \
1007 "MAKEINFO=$(MAKEINFO)" \
1014 .PHONY
: all-diff just-diff
1017 if
[ -d
$(unsubdir
)/diff
] ; then \
1018 rootme
=`pwd` ; export rootme
; \
1019 (cd
$(unsubdir
)/diff
$(subdir
); \
1021 "against=$(against)" \
1023 "AR_FLAGS=$(AR_FLAGS)" \
1025 "RANLIB=$(RANLIB)" \
1026 "LOADLIBES=$(LOADLIBES)" \
1027 "LDFLAGS=$(LDFLAGS)" \
1029 "MAKEINFO=$(MAKEINFO)" \
1036 if
[ -d
$(unsubdir
)/diff
] ; then \
1037 rootme
=`pwd` ; export rootme
; \
1038 (cd
$(unsubdir
)/diff
$(subdir
); \
1040 "against=$(against)" \
1042 "AR_FLAGS=$(AR_FLAGS)" \
1044 "RANLIB=$(RANLIB)" \
1045 "LOADLIBES=$(LOADLIBES)" \
1046 "LDFLAGS=$(LDFLAGS)" \
1048 "MAKEINFO=$(MAKEINFO)" \
1055 if
[ -d
$(unsubdir
)/diff
] ; then \
1056 rootme
=`pwd` ; export rootme
; \
1057 (cd
$(unsubdir
)/diff
/$(subdir
); \
1059 "against=$(against)" \
1061 "AR_FLAGS=$(AR_FLAGS)" \
1063 "RANLIB=$(RANLIB)" \
1064 "LOADLIBES=$(LOADLIBES)" \
1065 "LDFLAGS=$(LDFLAGS)" \
1067 "MAKEINFO=$(MAKEINFO)" \
1074 .PHONY
: all-grep just-grep
1077 if
[ -d
$(unsubdir
)/grep
] ; then \
1078 rootme
=`pwd` ; export rootme
; \
1079 (cd
$(unsubdir
)/grep
$(subdir
); \
1081 "against=$(against)" \
1083 "AR_FLAGS=$(AR_FLAGS)" \
1085 "RANLIB=$(RANLIB)" \
1086 "LOADLIBES=$(LOADLIBES)" \
1087 "LDFLAGS=$(LDFLAGS)" \
1089 "MAKEINFO=$(MAKEINFO)" \
1096 if
[ -d
$(unsubdir
)/grep
] ; then \
1097 rootme
=`pwd` ; export rootme
; \
1098 (cd
$(unsubdir
)/grep
$(subdir
); \
1100 "against=$(against)" \
1102 "AR_FLAGS=$(AR_FLAGS)" \
1104 "RANLIB=$(RANLIB)" \
1105 "LOADLIBES=$(LOADLIBES)" \
1106 "LDFLAGS=$(LDFLAGS)" \
1108 "MAKEINFO=$(MAKEINFO)" \
1115 if
[ -d
$(unsubdir
)/grep
] ; then \
1116 rootme
=`pwd` ; export rootme
; \
1117 (cd
$(unsubdir
)/grep
$(subdir
); \
1119 "against=$(against)" \
1121 "AR_FLAGS=$(AR_FLAGS)" \
1123 "RANLIB=$(RANLIB)" \
1124 "LOADLIBES=$(LOADLIBES)" \
1125 "LDFLAGS=$(LDFLAGS)" \
1127 "MAKEINFO=$(MAKEINFO)" \
1134 .PHONY
: all-rcs just-rcs
1136 just-rcs
: just-diff just-grep
force
1137 if
[ -d
$(unsubdir
)/rcs
] ; then \
1138 rootme
=`pwd` ; export rootme
; \
1139 (cd
$(unsubdir
)/rcs
$(subdir
); \
1141 "against=$(against)" \
1143 "AR_FLAGS=$(AR_FLAGS)" \
1145 "RANLIB=$(RANLIB)" \
1146 "LOADLIBES=$(LOADLIBES)" \
1147 "LDFLAGS=$(LDFLAGS)" \
1149 "MAKEINFO=$(MAKEINFO)" \
1156 if
[ -d
$(unsubdir
)/rcs
] ; then \
1157 rootme
=`pwd` ; export rootme
; \
1158 (cd
$(unsubdir
)/rcs
$(subdir
); \
1160 "against=$(against)" \
1162 "AR_FLAGS=$(AR_FLAGS)" \
1164 "RANLIB=$(RANLIB)" \
1165 "LOADLIBES=$(LOADLIBES)" \
1166 "LDFLAGS=$(LDFLAGS)" \
1168 "MAKEINFO=$(MAKEINFO)" \
1174 install-rcs
: install-grep install-diff
force
1175 if
[ -d
$(unsubdir
)/rcs
] ; then \
1176 rootme
=`pwd` ; export rootme
; \
1177 (cd
$(unsubdir
)/rcs
$(subdir
); \
1179 "against=$(against)" \
1181 "AR_FLAGS=$(AR_FLAGS)" \
1183 "RANLIB=$(RANLIB)" \
1184 "LOADLIBES=$(LOADLIBES)" \
1185 "LDFLAGS=$(LDFLAGS)" \
1187 "MAKEINFO=$(MAKEINFO)" \
1194 .PHONY
: all-gdbm just-gdbm
1197 if
[ -d
$(unsubdir
)/gdbm
] ; then \
1198 rootme
=`pwd` ; export rootme
; \
1199 (cd
$(unsubdir
)/gdbm
$(subdir
); \
1201 "against=$(against)" \
1203 "AR_FLAGS=$(AR_FLAGS)" \
1205 "RANLIB=$(RANLIB)" \
1206 "LOADLIBES=$(LOADLIBES)" \
1207 "LDFLAGS=$(LDFLAGS)" \
1209 "MAKEINFO=$(MAKEINFO)" \
1216 if
[ -d
$(unsubdir
)/gdbm
] ; then \
1217 rootme
=`pwd` ; export rootme
; \
1218 (cd
$(unsubdir
)/gdbm
$(subdir
); \
1220 "against=$(against)" \
1222 "AR_FLAGS=$(AR_FLAGS)" \
1224 "RANLIB=$(RANLIB)" \
1225 "LOADLIBES=$(LOADLIBES)" \
1226 "LDFLAGS=$(LDFLAGS)" \
1228 "MAKEINFO=$(MAKEINFO)" \
1235 if
[ -d
$(unsubdir
)/gdbm
] ; then \
1236 rootme
=`pwd` ; export rootme
; \
1237 (cd
$(unsubdir
)/gdbm
$(subdir
); \
1239 "against=$(against)" \
1241 "AR_FLAGS=$(AR_FLAGS)" \
1243 "RANLIB=$(RANLIB)" \
1244 "LOADLIBES=$(LOADLIBES)" \
1245 "LDFLAGS=$(LDFLAGS)" \
1247 "MAKEINFO=$(MAKEINFO)" \
1254 .PHONY
: all-cvs just-cvs
1255 all-cvs
: just-cvs just-rcs just-grep just-diff
1256 just-cvs
: just-gdbm
force
1257 if
[ -d
$(unsubdir
)/cvs
] ; then \
1258 rootme
=`pwd` ; export rootme
; \
1259 (cd
$(unsubdir
)/cvs
$(subdir
); \
1261 "against=$(against)" \
1263 "AR_FLAGS=$(AR_FLAGS)" \
1265 "RANLIB=$(RANLIB)" \
1266 "LOADLIBES=$(LOADLIBES)" \
1267 "LDFLAGS=$(LDFLAGS)" \
1269 "MAKEINFO=$(MAKEINFO)" \
1275 clean-cvs
: clean-gdbm
force
1276 if
[ -d
$(unsubdir
)/cvs
] ; then \
1277 rootme
=`pwd` ; export rootme
; \
1278 (cd
$(unsubdir
)/cvs
$(subdir
); \
1280 "against=$(against)" \
1282 "AR_FLAGS=$(AR_FLAGS)" \
1284 "RANLIB=$(RANLIB)" \
1285 "LOADLIBES=$(LOADLIBES)" \
1286 "LDFLAGS=$(LDFLAGS)" \
1288 "MAKEINFO=$(MAKEINFO)" \
1294 install-cvs
: install-rcs install-gdbm
force
1295 if
[ -d
$(unsubdir
)/cvs
] ; then \
1296 rootme
=`pwd` ; export rootme
; \
1297 (cd
$(unsubdir
)/cvs
$(subdir
); \
1299 "bindir=$(bindir)" \
1300 "mandir=$(man1dir)" \
1301 "against=$(against)" \
1303 "AR_FLAGS=$(AR_FLAGS)" \
1305 "RANLIB=$(RANLIB)" \
1306 "LOADLIBES=$(LOADLIBES)" \
1307 "LDFLAGS=$(LDFLAGS)" \
1309 "MAKEINFO=$(MAKEINFO)" \
1316 .PHONY
: all-patch just-patch
1317 all-patch
: just-patch
1319 if
[ -d
$(unsubdir
)/patch
] ; then \
1320 rootme
=`pwd` ; export rootme
; \
1321 (cd
$(unsubdir
)/patch
$(subdir
); \
1323 "against=$(against)" \
1325 "AR_FLAGS=$(AR_FLAGS)" \
1327 "RANLIB=$(RANLIB)" \
1328 "LOADLIBES=$(LOADLIBES)" \
1329 "LDFLAGS=$(LDFLAGS)" \
1331 "MAKEINFO=$(MAKEINFO)" \
1338 if
[ -d
$(unsubdir
)/patch
] ; then \
1339 rootme
=`pwd` ; export rootme
; \
1340 (cd
$(unsubdir
)/patch
$(subdir
); \
1342 "against=$(against)" \
1344 "AR_FLAGS=$(AR_FLAGS)" \
1346 "RANLIB=$(RANLIB)" \
1347 "LOADLIBES=$(LOADLIBES)" \
1348 "LDFLAGS=$(LDFLAGS)" \
1350 "MAKEINFO=$(MAKEINFO)" \
1356 install-patch
: force
1357 if
[ -d
$(unsubdir
)/patch
] ; then \
1358 rootme
=`pwd` ; export rootme
; \
1359 (cd
$(unsubdir
)/patch
$(subdir
); \
1362 man1dir=$(man1dir) \
1364 "AR_FLAGS=$(AR_FLAGS)" \
1366 "RANLIB=$(RANLIB)" \
1367 "LOADLIBES=$(LOADLIBES)" \
1368 "LDFLAGS=$(LDFLAGS)" \
1370 "MAKEINFO=$(MAKEINFO)" \
1377 .PHONY
: all-emacs just-emacs
1378 all-emacs
: just-emacs
1380 if
[ -d
$(unsubdir
)/emacs
] ; then \
1381 rootme
=`pwd` ; export rootme
; \
1382 (cd
$(unsubdir
)/emacs
$(subdir
); \
1384 "against=$(against)" \
1386 "AR_FLAGS=$(AR_FLAGS)" \
1388 "RANLIB=$(RANLIB)" \
1389 "LOADLIBES=$(LOADLIBES)" \
1390 "LDFLAGS=$(LDFLAGS)" \
1392 "MAKEINFO=$(MAKEINFO)" \
1399 if
[ -d
$(unsubdir
)/emacs
] ; then \
1400 rootme
=`pwd` ; export rootme
; \
1401 (cd
$(unsubdir
)/emacs
$(subdir
); \
1403 "against=$(against)" \
1405 "AR_FLAGS=$(AR_FLAGS)" \
1407 "RANLIB=$(RANLIB)" \
1408 "LOADLIBES=$(LOADLIBES)" \
1409 "LDFLAGS=$(LDFLAGS)" \
1411 "MAKEINFO=$(MAKEINFO)" \
1417 install-emacs
: install-rcs install-gdbm
force
1418 if
[ -d
$(unsubdir
)/emacs
] ; then \
1419 rootme
=`pwd` ; export rootme
; \
1420 (cd
$(unsubdir
)/emacs
$(subdir
); \
1422 "against=$(against)" \
1424 "AR_FLAGS=$(AR_FLAGS)" \
1426 "RANLIB=$(RANLIB)" \
1427 "LOADLIBES=$(LOADLIBES)" \
1428 "LDFLAGS=$(LDFLAGS)" \
1430 "MAKEINFO=$(MAKEINFO)" \
1437 .PHONY
: all-ispell just-ispell
1438 all-ispell
: just-ispell
1439 just-ispell
: all-emacs
force
1440 if
[ -d
$(unsubdir
)/ispell
] ; then \
1441 rootme
=`pwd` ; export rootme
; \
1442 (cd
$(unsubdir
)/ispell
$(subdir
); \
1444 "against=$(against)" \
1446 "AR_FLAGS=$(AR_FLAGS)" \
1448 "RANLIB=$(RANLIB)" \
1449 "LOADLIBES=$(LOADLIBES)" \
1450 "LDFLAGS=$(LDFLAGS)" \
1452 "MAKEINFO=$(MAKEINFO)" \
1459 if
[ -d
$(unsubdir
)/ispell
] ; then \
1460 rootme
=`pwd` ; export rootme
; \
1461 (cd
$(unsubdir
)/ispell
$(subdir
); \
1463 "against=$(against)" \
1465 "AR_FLAGS=$(AR_FLAGS)" \
1467 "RANLIB=$(RANLIB)" \
1468 "LOADLIBES=$(LOADLIBES)" \
1469 "LDFLAGS=$(LDFLAGS)" \
1471 "MAKEINFO=$(MAKEINFO)" \
1477 install-ispell
: install-rcs install-gdbm
force
1478 if
[ -d
$(unsubdir
)/ispell
] ; then \
1479 rootme
=`pwd` ; export rootme
; \
1480 (cd
$(unsubdir
)/ispell
$(subdir
); \
1482 "against=$(against)" \
1484 "AR_FLAGS=$(AR_FLAGS)" \
1486 "RANLIB=$(RANLIB)" \
1487 "LOADLIBES=$(LOADLIBES)" \
1488 "LDFLAGS=$(LDFLAGS)" \
1490 "MAKEINFO=$(MAKEINFO)" \
1497 .PHONY
: all-flex just-flex
1500 if
[ -d
$(unsubdir
)/flex
] ; then \
1501 rootme
=`pwd` ; export rootme
; \
1502 (cd
$(unsubdir
)/flex
$(subdir
); \
1504 "against=$(against)" \
1506 "AR_FLAGS=$(AR_FLAGS)" \
1508 "RANLIB=$(RANLIB)" \
1509 "LOADLIBES=$(LOADLIBES)" \
1510 "LDFLAGS=$(LDFLAGS)" \
1512 "MAKEINFO=$(MAKEINFO)" \
1519 if
[ -d
$(unsubdir
)/flex
] ; then \
1520 rootme
=`pwd` ; export rootme
; \
1521 (cd
$(unsubdir
)/flex
$(subdir
); \
1523 "against=$(against)" \
1525 "AR_FLAGS=$(AR_FLAGS)" \
1527 "RANLIB=$(RANLIB)" \
1528 "LOADLIBES=$(LOADLIBES)" \
1529 "LDFLAGS=$(LDFLAGS)" \
1531 "MAKEINFO=$(MAKEINFO)" \
1538 if
[ -d
$(unsubdir
)/flex
] ; then \
1539 rootme
=`pwd` ; export rootme
; \
1540 (cd
$(unsubdir
)/flex
$(subdir
); \
1542 "against=$(against)" \
1544 "AR_FLAGS=$(AR_FLAGS)" \
1546 "RANLIB=$(RANLIB)" \
1547 "LOADLIBES=$(LOADLIBES)" \
1548 "LDFLAGS=$(LDFLAGS)" \
1550 "MAKEINFO=$(MAKEINFO)" \
1557 .PHONY
: all-fileutils just-fileutils
1558 all-fileutils
: just-fileutils
1559 just-fileutils
: force
1560 if
[ -d
$(unsubdir
)/fileutils
] ; then \
1561 rootme
=`pwd` ; export rootme
; \
1562 (cd
$(unsubdir
)/fileutils
$(subdir
); \
1564 "prefix=$(prefix)" \
1565 "datadir=$(datadir)" \
1566 "mandir=$(mandir)" \
1567 "against=$(against)" \
1569 "AR_FLAGS=$(AR_FLAGS)" \
1571 "RANLIB=$(RANLIB)" \
1572 "LOADLIBES=$(LOADLIBES)" \
1573 "LDFLAGS=$(LDFLAGS)" \
1575 "MAKEINFO=$(MAKEINFO)" \
1581 clean-fileutils
: force
1582 if
[ -d
$(unsubdir
)/fileutils
] ; then \
1583 rootme
=`pwd` ; export rootme
; \
1584 (cd
$(unsubdir
)/fileutils
$(subdir
); \
1586 "prefix=$(prefix)" \
1587 "datadir=$(datadir)" \
1588 "mandir=$(mandir)" \
1589 "against=$(against)" \
1591 "AR_FLAGS=$(AR_FLAGS)" \
1593 "RANLIB=$(RANLIB)" \
1594 "LOADLIBES=$(LOADLIBES)" \
1595 "LDFLAGS=$(LDFLAGS)" \
1597 "MAKEINFO=$(MAKEINFO)" \
1603 install-fileutils
: force
1604 if
[ -d
$(unsubdir
)/fileutils
] ; then \
1605 rootme
=`pwd` ; export rootme
; \
1606 (cd
$(unsubdir
)/fileutils
$(subdir
); \
1608 "prefix=$(prefix)" \
1609 "datadir=$(datadir)" \
1610 "mandir=$(mandir)" \
1611 "against=$(against)" \
1613 "AR_FLAGS=$(AR_FLAGS)" \
1615 "RANLIB=$(RANLIB)" \
1616 "LOADLIBES=$(LOADLIBES)" \
1617 "LDFLAGS=$(LDFLAGS)" \
1619 "MAKEINFO=$(MAKEINFO)" \
1626 .PHONY
: all-libg
++ just-libg
++
1627 all-libg
++: just-gas just-ld just-gcc just-make just-libg
++
1628 just-libg
++: just-gcc
force
1629 if
[ -d
$(unsubdir
)/libg
++ ] ; then \
1630 rootme
=`pwd` ; export rootme
; \
1631 (cd
$(unsubdir
)/libg
++$(subdir
); \
1633 "prefix=$(prefix)" \
1634 "datadir=$(datadir)" \
1635 "mandir=$(mandir)" \
1636 "against=$(against)" \
1638 "AR_FLAGS=$(AR_FLAGS)" \
1640 "RANLIB=$(RANLIB)" \
1641 "LOADLIBES=$(LOADLIBES)" \
1642 "LDFLAGS=$(LDFLAGS)" \
1644 "MAKEINFO=$(MAKEINFO)" \
1651 if
[ -d
$(unsubdir
)/libg
++ ] ; then \
1652 rootme
=`pwd` ; export rootme
; \
1653 (cd
$(unsubdir
)/libg
++$(subdir
); \
1655 "prefix=$(prefix)" \
1656 "datadir=$(datadir)" \
1657 "mandir=$(mandir)" \
1658 "against=$(against)" \
1660 "AR_FLAGS=$(AR_FLAGS)" \
1662 "RANLIB=$(RANLIB)" \
1663 "LOADLIBES=$(LOADLIBES)" \
1664 "LDFLAGS=$(LDFLAGS)" \
1666 "MAKEINFO=$(MAKEINFO)" \
1672 install-libg
++: force
1673 if
[ -d
$(unsubdir
)/libg
++ ] ; then \
1674 rootme
=`pwd` ; export rootme
; \
1675 (cd
$(unsubdir
)/libg
++$(subdir
); \
1677 "prefix=$(prefix)" \
1678 "datadir=$(datadir)" \
1679 "mandir=$(mandir)" \
1680 "against=$(against)" \
1682 "AR_FLAGS=$(AR_FLAGS)" \
1684 "RANLIB=$(RANLIB)" \
1685 "LOADLIBES=$(LOADLIBES)" \
1686 "LDFLAGS=$(LDFLAGS)" \
1688 "MAKEINFO=$(MAKEINFO)" \
1694 ### other supporting targets
1695 # this is a bad hack.
1696 all.xclib
: all.normal
1697 if
[ -d clib
] ; then \
1698 (cd clib
; $(MAKE
)) ; \
1702 for i in
$(DODIRS
); do \
1703 if
[ -f
$(unsubdir
)/$$i/localenv
] ; then \
1704 if
(rootme
=`pwd` ; export rootme
; cd
$(unsubdir
)/$$i$(subdir
); \
1706 "against=$(against)" \
1708 "MAKEINFO=$(MAKEINFO)" \
1709 $(DO
)) ; then true
; \
1710 else exit
1 ; fi
; \
1711 else if
[ -d
$(unsubdir
)/$$i ] ; then \
1712 if
(rootme
=`pwd` ; export rootme
; cd
$(unsubdir
)/$$i$(subdir
); \
1714 "against=$(against)" \
1716 "AR_FLAGS=$(AR_FLAGS)" \
1718 "RANLIB=$(RANLIB)" \
1719 "LOADLIBES=$(LOADLIBES)" \
1720 "LDFLAGS=$(LDFLAGS)" \
1722 "MAKEINFO=$(MAKEINFO)" \
1723 $(DO
)) ; then true
; \
1724 else exit
1 ; fi
; \
1732 $(MAKE
) pass
"stagepass=stage1"
1734 $(MAKE
) pass
"stagepass=stage2"
1738 $(MAKE
) pass
"stagepass=stage1"
1740 $(MAKE
) pass
"stagepass=stage2"
1744 $(MAKE
) pass
"stagepass=stage2"
1748 cp
$(srcdir)/gcc
/gstdarg.h
$(unsubdir
)/gas
$(subdir
)/stdarg.h
1749 $(MAKE
) subdir_do
"DO=all info" "DODIRS=$(SUBDIRS)" \
1750 "CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \
1751 -O $(GCCVERBOSE) -I`pwd`/$(unsubdir)/gcc$(subdir)/include \
1752 -B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \
1753 -B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \
1754 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \
1755 "AR=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ar" \
1756 "LD=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc $(GCCVERBOSE)" \
1757 "RANLIB=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ranlib" \
1758 "LOADLIBES=`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
1759 "LDFLAGS=-nostdlib /lib/crt0.o \
1760 -L`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/ \
1761 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/"
1765 $(MAKE
) subdir_do DO
=stage1
"DODIRS=$(SUBDIRS)"
1768 $(MAKE
) subdir_do DO
=stage2
"DODIRS=$(SUBDIRS)"
1771 $(MAKE
) subdir_do DO
=stage3
"DODIRS=$(SUBDIRS)"
1774 $(MAKE
) subdir_do DO
=stage4
"DODIRS=$(SUBDIRS)"
1778 comparison
:; $(MAKE
) subdir_do DO
=comparison against
=$(against
) "DODIRS=$(SUBDIRS)"
1780 de-stage1
:; $(MAKE
) subdir_do DO
=de-stage1
"DODIRS=$(SUBDIRS)"
1781 de-stage2
:; $(MAKE
) subdir_do DO
=de-stage2
"DODIRS=$(SUBDIRS)"
1782 de-stage3
:; $(MAKE
) subdir_do DO
=de-stage3
"DODIRS=$(SUBDIRS)"
1783 de-stage4
:; $(MAKE
) subdir_do DO
=de-stage4
"DODIRS=$(SUBDIRS)"
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.
1808 for i in
$(MAKEDIRS
) ; do \
1809 echo Making
$$i...
; \
1810 if
[ -d
$$i ] ; then true
; else mkdir
$$i || exit
1 ; fi
; \
1817 install-info-dirs
: force
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
1823 $(srcdir)/texinfo
/gen-info-dir
$(infodir) > dir.
info.new
1824 mv
-f
dir.
info.new
dir.
info
1833 @for i in
$(SUBDIRS
); \
1837 wd
=`basename $$pwd`; \
1838 for j in
`$(MAKE) ls`; \
1846 # with the gnu make, this is done automatically.
1848 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
1849 $(SHELL
) .
/config.status
1852 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1854 DEVO_SUPPORT
= README cfg-paper.texi Makefile.in configure configure.in \
1855 config.sub config configure.man
1856 GDB_SUPPORT_DIRS
= bfd
include libiberty readline glob
1857 GDB_SUPPORT_FILES
= $(GDB_SUPPORT_DIRS
) texinfo
/fsf
/texinfo.
tex
1859 setup-dirs
: force_update
1862 .
/configure
-rm sun4
1863 chmod og
=u
`find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1865 bfd.ilrt.
tar.Z
: setup-dirs
1866 rm -f bfd.ilrt.
tar.Z
1867 tar cf
- $(DEVO_SUPPORT
) $(GDB_SUPPORT_FILES
) \
1868 | compress
-v
>bfd.ilrt.
tar.Z
1870 gdb.
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
1874 make-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 \
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
1887 # Take out texinfo from configurable dirs
1888 rm proto-toplev
/configure.in
1889 sed
'/^configdirs=/s/texinfo //' <configure.in
>proto-toplev
/configure.in
1890 # Take out glob from buildable dirs
1891 rm proto-toplev
/Makefile.in
1892 sed
'/^SUBDIRS =/s/glob //' <Makefile.in
>proto-toplev
/Makefile.in
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
1899 mkdir proto-toplev
/texinfo
1900 mkdir proto-toplev
/texinfo
/fsf
1901 ln
-s ..
/..
/..
/texinfo
/fsf
/texinfo.
tex proto-toplev
/texinfo
/fsf
/
1902 chmod og
=u
`find proto-toplev -print`
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
)
1913 # end of Makefile.in