2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991, 1992 Free Software Foundation
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 exec_prefix = $(prefix)
25 bindir = $(exec_prefix)/bin
26 libdir = $(exec_prefix)/lib
28 datadir = $(prefix)/lib
29 mandir = $(prefix)/man
30 man1dir = $(mandir)/man1
31 man2dir = $(mandir)/man2
32 man3dir = $(mandir)/man3
33 man4dir = $(mandir)/man4
34 man5dir = $(mandir)/man5
35 man6dir = $(mandir)/man6
36 man7dir = $(mandir)/man7
37 man8dir = $(mandir)/man8
38 man9dir = $(mandir)/man9
39 infodir = $(prefix)/info
40 includedir = $(prefix)/include
41 docdir
= $(datadir)/doc
46 INSTALL_PROGRAM
= $(INSTALL
)
47 INSTALL_DATA
= $(INSTALL
)
54 BISON
= `if [ -d $${rootme}/bison ] ; \
55 then echo $${rootme}/bison/bison -L $${rootme}/bison/ -y ; \
56 else echo bison -y ; fi`
58 MAKEINFO
= `if [ -d $${rootme}/texinfo/C ] ; \
59 then echo $${rootme}/texinfo/C/makeinfo ; \
60 else echo makeinfo ; fi`
62 SUBDIRS
= libiberty mmalloc glob readline bfd gdb binutils
ld gas gcc libg
++ libgcc clib newlib
66 INSTALL_TARGET
= install.
all
72 #### host and target specific makefile fragments come in here.
75 .PHONY
: all info install-info clean-info
79 info: cfg-paper.
info configure.
info
80 rootme
=`pwd` ; export rootme
; $(MAKE
) subdir_do DO
=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
82 check:; rootme
=`pwd` ; export rootme
; $(MAKE
) subdir_do DO
=check \
83 "DODIRS=`echo $(SUBDIRS) | sed -e \"s/libg\+\+//\"" \
84 "MAKEINFO=$(MAKEINFO)"
85 if
[ -d libg
++ ] ; then \
86 rootme
=`pwd` ; export rootme
; \
88 $(MAKE
) check "CC=$${rootme}/gcc/gcc \
89 -B$${rootme}/gcc/") ; \
94 $(MAKE
) subdir_do DO
=clean-info
"DODIRS=$(SUBDIRS)"
95 rm -f cfg-paper.
info* configure.
info*
97 cfg-paper.
info: cfg-paper.texi
98 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o cfg-paper.
info $(srcdir)/cfg-paper.texi
100 configure.
info: configure.texi
101 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o configure.
info $(srcdir)/configure.texi
103 install-info
: install-info-dirs
force
104 [ -d
$(infodir) ] || mkdir
$(infodir)
105 $(MAKE
) subdir_do DO
=install-info
"DODIRS=$(SUBDIRS)"
106 $(INSTALL_DATA
) cfg-paper.
info $(infodir)/cfg-paper.
info
107 $(INSTALL_DATA
) configure.
info $(infodir)/configure.
info
108 $(MAKE
) dir.
info install-dir.
info
111 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info
113 all.normal
: all-libiberty all-mmalloc all-texinfo all-bison \
114 all-byacc all-flex all-bfd all-ld all-gas all-gcc \
115 all-binutils all-libg
++ all-readline all-gdb \
116 all-make all-rcs all-cvs all-diff all-grep \
117 all-patch all-emacs all-ispell all-fileutils \
118 all-newlib all-gprof all-send_pr
120 all.cross
: all-libiberty all-mmalloc all-gas all-bison all-ld \
121 all-bfd all-libgcc all-readline all-gdb
122 # $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
124 clean: clean-stamps clean-libiberty clean-mmalloc clean-texinfo clean-bfd \
125 clean-newlib clean-binutils clean-flex \
126 clean-bison clean-byacc clean-ld clean-gas \
127 clean-gcc clean-libgcc clean-readline clean-glob clean-gdb \
128 clean-make clean-diff clean-grep clean-rcs \
129 clean-cvs clean-patch clean-emacs clean-ispell clean-fileutils \
130 clean-libg
++ clean-gprof clean-send_pr
131 -rm -rf
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
136 install: $(INSTALL_TARGET
) $(srcdir)/configure.man
137 $(INSTALL_DATA
) $(srcdir)/configure.man
$(man1dir)/configure
.1
140 install.
all: install-dirs install-libiberty install-mmalloc install-texinfo \
141 install-bfd install-binutils install-bison install-byacc install-flex \
142 install-ld install-gas install-gcc install-gprof \
143 install-libgcc install-readline install-glob install-gdb \
144 install-make install-cvs install-patch install-emacs \
145 install-ispell install-fileutils install-libg
++ install-newlib \
148 install.cross
: install-dirs install-libiberty install-mmalloc \
149 install-binutils install-bison install-byacc install-flex \
150 install-ld install-gas install-libgcc install-readline \
151 install-glob install-gdb install-mmalloc install-gprof
155 @if
[ -d .
/libiberty
] ; then \
156 rootme
=`pwd` ; export rootme
; \
159 "against=$(against)" \
161 "AR_FLAGS=$(AR_FLAGS)" \
163 "MINUS_G=$(MINUS_G)" \
165 "LOADLIBES=$(LOADLIBES)" \
166 "LDFLAGS=$(LDFLAGS)" \
168 "MAKEINFO=$(MAKEINFO)" \
174 clean-libiberty
: force
175 @if
[ -d .
/libiberty
] ; then \
176 rootme
=`pwd` ; export rootme
; \
179 "against=$(against)" \
181 "AR_FLAGS=$(AR_FLAGS)" \
183 "MINUS_G=$(MINUS_G)" \
185 "LOADLIBES=$(LOADLIBES)" \
186 "LDFLAGS=$(LDFLAGS)" \
188 "MAKEINFO=$(MAKEINFO)" \
194 install-libiberty
: force
195 @if
[ -d .
/libiberty
] ; then \
196 rootme
=`pwd` ; export rootme
; \
199 "against=$(against)" \
201 "AR_FLAGS=$(AR_FLAGS)" \
203 "MINUS_G=$(MINUS_G)" \
205 "LOADLIBES=$(LOADLIBES)" \
206 "LDFLAGS=$(LDFLAGS)" \
208 "MAKEINFO=$(MAKEINFO)" \
216 @if
[ -d .
/mmalloc
] ; then \
217 rootme
=`pwd` ; export rootme
; \
220 "against=$(against)" \
222 "AR_FLAGS=$(AR_FLAGS)" \
224 "MINUS_G=$(MINUS_G)" \
226 "LOADLIBES=$(LOADLIBES)" \
227 "LDFLAGS=$(LDFLAGS)" \
229 "MAKEINFO=$(MAKEINFO)" \
236 @if
[ -d .
/mmalloc
] ; then \
237 rootme
=`pwd` ; export rootme
; \
240 "against=$(against)" \
242 "AR_FLAGS=$(AR_FLAGS)" \
244 "MINUS_G=$(MINUS_G)" \
246 "LOADLIBES=$(LOADLIBES)" \
247 "LDFLAGS=$(LDFLAGS)" \
249 "MAKEINFO=$(MAKEINFO)" \
255 install-mmalloc
: force
256 @if
[ -d .
/mmalloc
] ; then \
257 rootme
=`pwd` ; export rootme
; \
260 "against=$(against)" \
262 "AR_FLAGS=$(AR_FLAGS)" \
264 "MINUS_G=$(MINUS_G)" \
266 "LOADLIBES=$(LOADLIBES)" \
267 "LDFLAGS=$(LDFLAGS)" \
269 "MAKEINFO=$(MAKEINFO)" \
276 all-texinfo
: all-libiberty
277 @if
[ -d .
/texinfo
] ; then \
278 rootme
=`pwd` ; export rootme
; \
279 rootme
=`pwd` ; export rootme
; \
282 "against=$(against)" \
284 "AR_FLAGS=$(AR_FLAGS)" \
286 "MINUS_G=$(MINUS_G)" \
288 "LOADLIBES=$(LOADLIBES)" \
289 "LDFLAGS=$(LDFLAGS)" \
291 "MAKEINFO=$(MAKEINFO)" \
298 @if
[ -d .
/texinfo
] ; then \
299 rootme
=`pwd` ; export rootme
; \
302 "against=$(against)" \
304 "AR_FLAGS=$(AR_FLAGS)" \
306 "MINUS_G=$(MINUS_G)" \
308 "LOADLIBES=$(LOADLIBES)" \
309 "LDFLAGS=$(LDFLAGS)" \
311 "MAKEINFO=$(MAKEINFO)" \
317 install-texinfo
: force
318 @if
[ -d .
/texinfo
] ; then \
319 rootme
=`pwd` ; export rootme
; \
322 "against=$(against)" \
324 "AR_FLAGS=$(AR_FLAGS)" \
326 "MINUS_G=$(MINUS_G)" \
328 "LOADLIBES=$(LOADLIBES)" \
329 "LDFLAGS=$(LDFLAGS)" \
331 "MAKEINFO=$(MAKEINFO)" \
339 @if
[ -d .
/bfd
] ; then \
340 rootme
=`pwd` ; export rootme
; \
343 "against=$(against)" \
345 "AR_FLAGS=$(AR_FLAGS)" \
347 "MINUS_G=$(MINUS_G)" \
349 "LOADLIBES=$(LOADLIBES)" \
350 "LDFLAGS=$(LDFLAGS)" \
352 "MAKEINFO=$(MAKEINFO)" \
359 @if
[ -d .
/bfd
] ; then \
360 rootme
=`pwd` ; export rootme
; \
363 "against=$(against)" \
365 "AR_FLAGS=$(AR_FLAGS)" \
367 "MINUS_G=$(MINUS_G)" \
369 "LOADLIBES=$(LOADLIBES)" \
370 "LDFLAGS=$(LDFLAGS)" \
372 "MAKEINFO=$(MAKEINFO)" \
379 @if
[ -d .
/bfd
] ; then \
380 rootme
=`pwd` ; export rootme
; \
383 "against=$(against)" \
385 "AR_FLAGS=$(AR_FLAGS)" \
387 "MINUS_G=$(MINUS_G)" \
389 "LOADLIBES=$(LOADLIBES)" \
390 "LDFLAGS=$(LDFLAGS)" \
392 "MAKEINFO=$(MAKEINFO)" \
399 all-binutils
: all-libiberty all-bfd
400 @if
[ -d .
/binutils
] ; then \
401 rootme
=`pwd` ; export rootme
; \
404 "against=$(against)" \
406 "AR_FLAGS=$(AR_FLAGS)" \
408 "MINUS_G=$(MINUS_G)" \
410 "LOADLIBES=$(LOADLIBES)" \
411 "LDFLAGS=$(LDFLAGS)" \
413 "MAKEINFO=$(MAKEINFO)" \
419 clean-binutils
: force
420 @if
[ -d .
/binutils
] ; then \
421 rootme
=`pwd` ; export rootme
; \
424 "against=$(against)" \
426 "AR_FLAGS=$(AR_FLAGS)" \
428 "MINUS_G=$(MINUS_G)" \
430 "LOADLIBES=$(LOADLIBES)" \
431 "LDFLAGS=$(LDFLAGS)" \
433 "MAKEINFO=$(MAKEINFO)" \
439 install-binutils
: force
440 @if
[ -d .
/binutils
] ; then \
441 rootme
=`pwd` ; export rootme
; \
444 "against=$(against)" \
446 "AR_FLAGS=$(AR_FLAGS)" \
448 "MINUS_G=$(MINUS_G)" \
450 "LOADLIBES=$(LOADLIBES)" \
451 "LDFLAGS=$(LDFLAGS)" \
453 "MAKEINFO=$(MAKEINFO)" \
461 @if
[ -d .
/newlib
] ; then \
462 rootme
=`pwd` ; export rootme
; \
465 "against=$(against)" \
467 "AR_FLAGS=$(AR_FLAGS)" \
469 "MINUS_G=$(MINUS_G)" \
471 "LOADLIBES=$(LOADLIBES)" \
472 "LDFLAGS=$(LDFLAGS)" \
474 "MAKEINFO=$(MAKEINFO)" \
481 @if
[ -d .
/newlib
] ; then \
482 rootme
=`pwd` ; export rootme
; \
485 "against=$(against)" \
487 "AR_FLAGS=$(AR_FLAGS)" \
489 "MINUS_G=$(MINUS_G)" \
491 "LOADLIBES=$(LOADLIBES)" \
492 "LDFLAGS=$(LDFLAGS)" \
494 "MAKEINFO=$(MAKEINFO)" \
500 install-newlib
: force
501 @if
[ -d .
/newlib
] ; then \
502 rootme
=`pwd` ; export rootme
; \
505 "against=$(against)" \
507 "AR_FLAGS=$(AR_FLAGS)" \
509 "MINUS_G=$(MINUS_G)" \
511 "LOADLIBES=$(LOADLIBES)" \
512 "LDFLAGS=$(LDFLAGS)" \
514 "MAKEINFO=$(MAKEINFO)" \
521 all-gprof
: all-libiberty all-bfd
522 @if
[ -d .
/gprof
] ; then \
525 "against=$(against)" \
527 "AR_FLAGS=$(AR_FLAGS)" \
529 "MINUS_G=$(MINUS_G)" \
531 "LOADLIBES=$(LOADLIBES)" \
532 "LDFLAGS=$(LDFLAGS)" \
534 "MAKEINFO=$(MAKEINFO)" \
541 @if
[ -d
$(unsubdir
)/gprof
] ; then \
542 (cd
$(unsubdir
)/gprof
$(subdir
); \
544 "against=$(against)" \
546 "AR_FLAGS=$(AR_FLAGS)" \
548 "MINUS_G=$(MINUS_G)" \
550 "LOADLIBES=$(LOADLIBES)" \
551 "LDFLAGS=$(LDFLAGS)" \
553 "MAKEINFO=$(MAKEINFO)" \
560 @if
[ -d
$(unsubdir
)/gprof
] ; then \
561 (cd
$(unsubdir
)/gprof
$(subdir
); \
563 "against=$(against)" \
565 "AR_FLAGS=$(AR_FLAGS)" \
567 "MINUS_G=$(MINUS_G)" \
569 "LOADLIBES=$(LOADLIBES)" \
570 "LDFLAGS=$(LDFLAGS)" \
572 "MAKEINFO=$(MAKEINFO)" \
580 @if
[ -d .
/byacc
] ; then \
581 rootme
=`pwd` ; export rootme
; \
584 "against=$(against)" \
586 "AR_FLAGS=$(AR_FLAGS)" \
588 "MINUS_G=$(MINUS_G)" \
590 "LOADLIBES=$(LOADLIBES)" \
591 "LDFLAGS=$(LDFLAGS)" \
593 "MAKEINFO=$(MAKEINFO)" \
600 @if
[ -d .
/byacc
] ; then \
601 rootme
=`pwd` ; export rootme
; \
604 "against=$(against)" \
606 "AR_FLAGS=$(AR_FLAGS)" \
608 "MINUS_G=$(MINUS_G)" \
610 "LOADLIBES=$(LOADLIBES)" \
611 "LDFLAGS=$(LDFLAGS)" \
613 "MAKEINFO=$(MAKEINFO)" \
620 @if
[ -d .
/byacc
] ; then \
621 rootme
=`pwd` ; export rootme
; \
624 "against=$(against)" \
626 "AR_FLAGS=$(AR_FLAGS)" \
628 "MINUS_G=$(MINUS_G)" \
630 "LOADLIBES=$(LOADLIBES)" \
631 "LDFLAGS=$(LDFLAGS)" \
633 "MAKEINFO=$(MAKEINFO)" \
640 all-bison
: all-libiberty
641 @if
[ -d .
/bison
] ; then \
642 rootme
=`pwd` ; export rootme
; \
646 "datadir=$(datadir)" \
648 "AR_FLAGS=$(AR_FLAGS)" \
650 "MINUS_G=$(MINUS_G)" \
652 "LOADLIBES=$(LOADLIBES)" \
653 "LDFLAGS=$(LDFLAGS)" \
655 "MAKEINFO=$(MAKEINFO)" \
662 @if
[ -d .
/bison
] ; then \
663 rootme
=`pwd` ; export rootme
; \
667 "datadir=$(datadir)" \
669 "AR_FLAGS=$(AR_FLAGS)" \
671 "MINUS_G=$(MINUS_G)" \
673 "LOADLIBES=$(LOADLIBES)" \
674 "LDFLAGS=$(LDFLAGS)" \
676 "MAKEINFO=$(MAKEINFO)" \
683 @if
[ -d .
/bison
] ; then \
684 rootme
=`pwd` ; export rootme
; \
688 "datadir=$(datadir)" \
690 "AR_FLAGS=$(AR_FLAGS)" \
692 "MINUS_G=$(MINUS_G)" \
694 "LOADLIBES=$(LOADLIBES)" \
695 "LDFLAGS=$(LDFLAGS)" \
697 "MAKEINFO=$(MAKEINFO)" \
705 @if
[ -d .
/flex
] ; then \
706 rootme
=`pwd` ; export rootme
; \
709 "against=$(against)" \
711 "AR_FLAGS=$(AR_FLAGS)" \
714 "LOADLIBES=$(LOADLIBES)" \
715 "LDFLAGS=$(LDFLAGS)" \
717 "MAKEINFO=$(MAKEINFO)" \
724 @if
[ -d .
/flex
] ; then \
725 rootme
=`pwd` ; export rootme
; \
728 "against=$(against)" \
730 "AR_FLAGS=$(AR_FLAGS)" \
733 "LOADLIBES=$(LOADLIBES)" \
734 "LDFLAGS=$(LDFLAGS)" \
736 "MAKEINFO=$(MAKEINFO)" \
743 @if
[ -d .
/flex
] ; then \
744 rootme
=`pwd` ; export rootme
; \
747 "against=$(against)" \
749 "AR_FLAGS=$(AR_FLAGS)" \
752 "LOADLIBES=$(LOADLIBES)" \
753 "LDFLAGS=$(LDFLAGS)" \
755 "MAKEINFO=$(MAKEINFO)" \
761 all-gcc
: all-libiberty all-bison
762 @if
[ -d .
/gcc
] ; then \
763 rootme
=`pwd` ; export rootme
; \
766 "against=$(against)" \
768 "AR_FLAGS=$(AR_FLAGS)" \
770 "MINUS_G=$(MINUS_G)" \
772 "LOADLIBES=$(LOADLIBES)" \
773 "LDFLAGS=$(LDFLAGS)" \
775 "MAKEINFO=$(MAKEINFO)" \
782 @if
[ -d .
/gcc
] ; then \
783 rootme
=`pwd` ; export rootme
; \
786 "against=$(against)" \
788 "AR_FLAGS=$(AR_FLAGS)" \
790 "MINUS_G=$(MINUS_G)" \
792 "LOADLIBES=$(LOADLIBES)" \
793 "LDFLAGS=$(LDFLAGS)" \
795 "MAKEINFO=$(MAKEINFO)" \
802 @if
[ -d .
/gcc
] ; then \
803 rootme
=`pwd` ; export rootme
; \
806 "against=$(against)" \
808 "AR_FLAGS=$(AR_FLAGS)" \
810 "MINUS_G=$(MINUS_G)" \
812 "LOADLIBES=$(LOADLIBES)" \
813 "LDFLAGS=$(LDFLAGS)" \
815 "MAKEINFO=$(MAKEINFO)" \
823 @if
[ -d .
/readline
] ; then \
824 rootme
=`pwd` ; export rootme
; \
827 "against=$(against)" \
829 "AR_FLAGS=$(AR_FLAGS)" \
831 "MINUS_G=$(MINUS_G)" \
833 "LOADLIBES=$(LOADLIBES)" \
834 "LDFLAGS=$(LDFLAGS)" \
836 "MAKEINFO=$(MAKEINFO)" \
842 clean-readline
: force
843 @if
[ -d .
/readline
] ; then \
844 rootme
=`pwd` ; export rootme
; \
847 "against=$(against)" \
849 "AR_FLAGS=$(AR_FLAGS)" \
851 "MINUS_G=$(MINUS_G)" \
853 "LOADLIBES=$(LOADLIBES)" \
854 "LDFLAGS=$(LDFLAGS)" \
856 "MAKEINFO=$(MAKEINFO)" \
862 install-readline
: force
863 @if
[ -d .
/readline
] ; then \
864 rootme
=`pwd` ; export rootme
; \
867 "against=$(against)" \
869 "AR_FLAGS=$(AR_FLAGS)" \
871 "MINUS_G=$(MINUS_G)" \
873 "LOADLIBES=$(LOADLIBES)" \
874 "LDFLAGS=$(LDFLAGS)" \
876 "MAKEINFO=$(MAKEINFO)" \
884 @if
[ -d .
/glob
] ; then \
885 rootme
=`pwd` ; export rootme
; \
888 "against=$(against)" \
890 "AR_FLAGS=$(AR_FLAGS)" \
892 "MINUS_G=$(MINUS_G)" \
894 "LOADLIBES=$(LOADLIBES)" \
895 "LDFLAGS=$(LDFLAGS)" \
897 "MAKEINFO=$(MAKEINFO)" \
904 @if
[ -d .
/glob
] ; then \
905 rootme
=`pwd` ; export rootme
; \
908 "against=$(against)" \
910 "AR_FLAGS=$(AR_FLAGS)" \
912 "MINUS_G=$(MINUS_G)" \
914 "LOADLIBES=$(LOADLIBES)" \
915 "LDFLAGS=$(LDFLAGS)" \
917 "MAKEINFO=$(MAKEINFO)" \
924 @if
[ -d .
/glob
] ; then \
925 rootme
=`pwd` ; export rootme
; \
928 "against=$(against)" \
930 "AR_FLAGS=$(AR_FLAGS)" \
932 "MINUS_G=$(MINUS_G)" \
934 "LOADLIBES=$(LOADLIBES)" \
935 "LDFLAGS=$(LDFLAGS)" \
937 "MAKEINFO=$(MAKEINFO)" \
944 all-gas
: all-libiberty all-bfd
945 @if
[ -d .
/gas
] ; then \
946 rootme
=`pwd` ; export rootme
; \
949 "against=$(against)" \
951 "AR_FLAGS=$(AR_FLAGS)" \
953 "MINUS_G=$(MINUS_G)" \
955 "LOADLIBES=$(LOADLIBES)" \
956 "LDFLAGS=$(LDFLAGS)" \
958 "MAKEINFO=$(MAKEINFO)" \
965 @if
[ -d .
/gas
] ; then \
966 rootme
=`pwd` ; export rootme
; \
969 "against=$(against)" \
971 "AR_FLAGS=$(AR_FLAGS)" \
973 "MINUS_G=$(MINUS_G)" \
975 "LOADLIBES=$(LOADLIBES)" \
976 "LDFLAGS=$(LDFLAGS)" \
978 "MAKEINFO=$(MAKEINFO)" \
985 @if
[ -d .
/gas
] ; then \
986 rootme
=`pwd` ; export rootme
; \
989 "against=$(against)" \
991 "AR_FLAGS=$(AR_FLAGS)" \
993 "MINUS_G=$(MINUS_G)" \
995 "LOADLIBES=$(LOADLIBES)" \
996 "LDFLAGS=$(LDFLAGS)" \
998 "MAKEINFO=$(MAKEINFO)" \
1005 all-ld
: all-libiberty all-bfd all-bison
1006 @if
[ -d .
/ld ] ; then \
1007 rootme
=`pwd` ; export rootme
; \
1010 "against=$(against)" \
1012 "AR_FLAGS=$(AR_FLAGS)" \
1014 "MINUS_G=$(MINUS_G)" \
1015 "RANLIB=$(RANLIB)" \
1016 "LOADLIBES=$(LOADLIBES)" \
1017 "LDFLAGS=$(LDFLAGS)" \
1019 "MAKEINFO=$(MAKEINFO)" \
1026 @if
[ -d .
/ld ] ; then \
1027 rootme
=`pwd` ; export rootme
; \
1030 "against=$(against)" \
1032 "AR_FLAGS=$(AR_FLAGS)" \
1034 "MINUS_G=$(MINUS_G)" \
1035 "RANLIB=$(RANLIB)" \
1036 "LOADLIBES=$(LOADLIBES)" \
1037 "LDFLAGS=$(LDFLAGS)" \
1039 "MAKEINFO=$(MAKEINFO)" \
1046 @if
[ -d .
/ld ] ; then \
1047 rootme
=`pwd` ; export rootme
; \
1050 "against=$(against)" \
1052 "AR_FLAGS=$(AR_FLAGS)" \
1054 "MINUS_G=$(MINUS_G)" \
1055 "RANLIB=$(RANLIB)" \
1056 "LOADLIBES=$(LOADLIBES)" \
1057 "LDFLAGS=$(LDFLAGS)" \
1059 "MAKEINFO=$(MAKEINFO)" \
1065 ### libgcc (and libgcc1)
1066 all-libgcc1
: all-gas all-binutils
1067 @if
[ -d .
/libgcc
] ; then \
1068 rootme
=`pwd` ; export rootme
; \
1071 "against=$(against)" \
1073 "AR_FLAGS=$(AR_FLAGS)" \
1075 "MINUS_G=$(MINUS_G)" \
1076 "RANLIB=$(RANLIB)" \
1077 "LOADLIBES=$(LOADLIBES)" \
1078 "LDFLAGS=$(LDFLAGS)" \
1080 "MAKEINFO=$(MAKEINFO)" \
1086 clean-libgcc1
: force
1087 @if
[ -d .
/libgcc
] ; then \
1088 rootme
=`pwd` ; export rootme
; \
1091 "against=$(against)" \
1093 "AR_FLAGS=$(AR_FLAGS)" \
1095 "MINUS_G=$(MINUS_G)" \
1096 "RANLIB=$(RANLIB)" \
1097 "LOADLIBES=$(LOADLIBES)" \
1098 "LDFLAGS=$(LDFLAGS)" \
1100 "MAKEINFO=$(MAKEINFO)" \
1106 install-libgcc1
: force
1107 echo libgcc1 is a component
, not an installable target
1109 all-libgcc
: all-gas all-gcc all-binutils
1111 @if
[ -d .
/libgcc
] ; then \
1112 rootme
=`pwd` ; export rootme
; \
1115 "against=$(against)" \
1117 "AR_FLAGS=$(AR_FLAGS)" \
1119 "MINUS_G=$(MINUS_G)" \
1120 "RANLIB=$(RANLIB)" \
1121 "LOADLIBES=$(LOADLIBES)" \
1122 "LDFLAGS=$(LDFLAGS)" \
1124 "MAKEINFO=$(MAKEINFO)" \
1131 @if
[ -d .
/libgcc
] ; then \
1132 rootme
=`pwd` ; export rootme
; \
1135 "against=$(against)" \
1137 "AR_FLAGS=$(AR_FLAGS)" \
1139 "MINUS_G=$(MINUS_G)" \
1140 "RANLIB=$(RANLIB)" \
1141 "LOADLIBES=$(LOADLIBES)" \
1142 "LDFLAGS=$(LDFLAGS)" \
1144 "MAKEINFO=$(MAKEINFO)" \
1150 install-libgcc
: force
1151 @if
[ -d .
/libgcc
] ; then \
1152 rootme
=`pwd` ; export rootme
; \
1155 "against=$(against)" \
1157 "AR_FLAGS=$(AR_FLAGS)" \
1159 "MINUS_G=$(MINUS_G)" \
1160 "RANLIB=$(RANLIB)" \
1161 "LOADLIBES=$(LOADLIBES)" \
1162 "LDFLAGS=$(LDFLAGS)" \
1164 "MAKEINFO=$(MAKEINFO)" \
1171 all-gdb
: all-bfd all-libiberty all-mmalloc all-readline all-glob all-bison
1172 @if
[ -d .
/gdb
] ; then \
1173 rootme
=`pwd` ; export rootme
; \
1176 "against=$(against)" \
1178 "AR_FLAGS=$(AR_FLAGS)" \
1180 "MINUS_G=$(MINUS_G)" \
1181 "RANLIB=$(RANLIB)" \
1182 "LOADLIBES=$(LOADLIBES)" \
1183 "LDFLAGS=$(LDFLAGS)" \
1185 "MAKEINFO=$(MAKEINFO)" \
1192 @if
[ -d .
/gdb
] ; then \
1193 rootme
=`pwd` ; export rootme
; \
1196 "against=$(against)" \
1198 "AR_FLAGS=$(AR_FLAGS)" \
1200 "MINUS_G=$(MINUS_G)" \
1201 "RANLIB=$(RANLIB)" \
1202 "LOADLIBES=$(LOADLIBES)" \
1203 "LDFLAGS=$(LDFLAGS)" \
1205 "MAKEINFO=$(MAKEINFO)" \
1212 @if
[ -d .
/gdb
] ; then \
1213 rootme
=`pwd` ; export rootme
; \
1216 "against=$(against)" \
1218 "AR_FLAGS=$(AR_FLAGS)" \
1220 "MINUS_G=$(MINUS_G)" \
1221 "RANLIB=$(RANLIB)" \
1222 "LOADLIBES=$(LOADLIBES)" \
1223 "LDFLAGS=$(LDFLAGS)" \
1225 "MAKEINFO=$(MAKEINFO)" \
1232 all-make
: all-libiberty
1233 @if
[ -d .
/make
] ; then \
1234 rootme
=`pwd` ; export rootme
; \
1237 "against=$(against)" \
1239 "AR_FLAGS=$(AR_FLAGS)" \
1241 "MINUS_G=$(MINUS_G)" \
1242 "RANLIB=$(RANLIB)" \
1243 "LOADLIBES=$(LOADLIBES)" \
1244 "LDFLAGS=$(LDFLAGS)" \
1246 "MAKEINFO=$(MAKEINFO)" \
1253 @if
[ -d .
/make
] ; then \
1254 rootme
=`pwd` ; export rootme
; \
1257 "against=$(against)" \
1259 "AR_FLAGS=$(AR_FLAGS)" \
1261 "MINUS_G=$(MINUS_G)" \
1262 "RANLIB=$(RANLIB)" \
1263 "LOADLIBES=$(LOADLIBES)" \
1264 "LDFLAGS=$(LDFLAGS)" \
1266 "MAKEINFO=$(MAKEINFO)" \
1273 @if
[ -d .
/make
] ; then \
1274 rootme
=`pwd` ; export rootme
; \
1277 "against=$(against)" \
1279 "AR_FLAGS=$(AR_FLAGS)" \
1281 "MINUS_G=$(MINUS_G)" \
1282 "RANLIB=$(RANLIB)" \
1283 "LOADLIBES=$(LOADLIBES)" \
1284 "LDFLAGS=$(LDFLAGS)" \
1286 "MAKEINFO=$(MAKEINFO)" \
1294 @if
[ -d .
/diff
] ; then \
1295 rootme
=`pwd` ; export rootme
; \
1298 "against=$(against)" \
1300 "AR_FLAGS=$(AR_FLAGS)" \
1302 "MINUS_G=$(MINUS_G)" \
1303 "RANLIB=$(RANLIB)" \
1304 "LOADLIBES=$(LOADLIBES)" \
1305 "LDFLAGS=$(LDFLAGS)" \
1307 "MAKEINFO=$(MAKEINFO)" \
1314 @if
[ -d .
/diff
] ; then \
1315 rootme
=`pwd` ; export rootme
; \
1318 "against=$(against)" \
1320 "AR_FLAGS=$(AR_FLAGS)" \
1322 "MINUS_G=$(MINUS_G)" \
1323 "RANLIB=$(RANLIB)" \
1324 "LOADLIBES=$(LOADLIBES)" \
1325 "LDFLAGS=$(LDFLAGS)" \
1327 "MAKEINFO=$(MAKEINFO)" \
1334 @if
[ -d .
/diff
] ; then \
1335 rootme
=`pwd` ; export rootme
; \
1338 "against=$(against)" \
1340 "AR_FLAGS=$(AR_FLAGS)" \
1342 "MINUS_G=$(MINUS_G)" \
1343 "RANLIB=$(RANLIB)" \
1344 "LOADLIBES=$(LOADLIBES)" \
1345 "LDFLAGS=$(LDFLAGS)" \
1347 "MAKEINFO=$(MAKEINFO)" \
1355 @if
[ -d .
/grep
] ; then \
1356 rootme
=`pwd` ; export rootme
; \
1359 "against=$(against)" \
1361 "AR_FLAGS=$(AR_FLAGS)" \
1363 "MINUS_G=$(MINUS_G)" \
1364 "RANLIB=$(RANLIB)" \
1365 "LOADLIBES=$(LOADLIBES)" \
1366 "LDFLAGS=$(LDFLAGS)" \
1368 "MAKEINFO=$(MAKEINFO)" \
1375 @if
[ -d .
/grep
] ; then \
1376 rootme
=`pwd` ; export rootme
; \
1379 "against=$(against)" \
1381 "AR_FLAGS=$(AR_FLAGS)" \
1383 "MINUS_G=$(MINUS_G)" \
1384 "RANLIB=$(RANLIB)" \
1385 "LOADLIBES=$(LOADLIBES)" \
1386 "LDFLAGS=$(LDFLAGS)" \
1388 "MAKEINFO=$(MAKEINFO)" \
1395 @if
[ -d .
/grep
] ; then \
1396 rootme
=`pwd` ; export rootme
; \
1399 "against=$(against)" \
1401 "AR_FLAGS=$(AR_FLAGS)" \
1403 "MINUS_G=$(MINUS_G)" \
1404 "RANLIB=$(RANLIB)" \
1405 "LOADLIBES=$(LOADLIBES)" \
1406 "LDFLAGS=$(LDFLAGS)" \
1408 "MAKEINFO=$(MAKEINFO)" \
1416 @if
[ -d .
/rcs
] ; then \
1417 rootme
=`pwd` ; export rootme
; \
1420 "against=$(against)" \
1422 "AR_FLAGS=$(AR_FLAGS)" \
1424 "MINUS_G=$(MINUS_G)" \
1425 "RANLIB=$(RANLIB)" \
1426 "LOADLIBES=$(LOADLIBES)" \
1427 "LDFLAGS=$(LDFLAGS)" \
1429 "MAKEINFO=$(MAKEINFO)" \
1436 @if
[ -d .
/rcs
] ; then \
1437 rootme
=`pwd` ; export rootme
; \
1440 "against=$(against)" \
1442 "AR_FLAGS=$(AR_FLAGS)" \
1444 "MINUS_G=$(MINUS_G)" \
1445 "RANLIB=$(RANLIB)" \
1446 "LOADLIBES=$(LOADLIBES)" \
1447 "LDFLAGS=$(LDFLAGS)" \
1449 "MAKEINFO=$(MAKEINFO)" \
1456 @if
[ -d .
/rcs
] ; then \
1457 rootme
=`pwd` ; export rootme
; \
1460 "against=$(against)" \
1462 "AR_FLAGS=$(AR_FLAGS)" \
1464 "MINUS_G=$(MINUS_G)" \
1465 "RANLIB=$(RANLIB)" \
1466 "LOADLIBES=$(LOADLIBES)" \
1467 "LDFLAGS=$(LDFLAGS)" \
1469 "MAKEINFO=$(MAKEINFO)" \
1477 @if
[ -d .
/cvs
] ; then \
1478 rootme
=`pwd` ; export rootme
; \
1481 "against=$(against)" \
1483 "AR_FLAGS=$(AR_FLAGS)" \
1485 "MINUS_G=$(MINUS_G)" \
1486 "RANLIB=$(RANLIB)" \
1487 "LOADLIBES=$(LOADLIBES)" \
1488 "LDFLAGS=$(LDFLAGS)" \
1490 "MAKEINFO=$(MAKEINFO)" \
1497 @if
[ -d .
/cvs
] ; then \
1498 rootme
=`pwd` ; export rootme
; \
1501 "against=$(against)" \
1503 "AR_FLAGS=$(AR_FLAGS)" \
1505 "MINUS_G=$(MINUS_G)" \
1506 "RANLIB=$(RANLIB)" \
1507 "LOADLIBES=$(LOADLIBES)" \
1508 "LDFLAGS=$(LDFLAGS)" \
1510 "MAKEINFO=$(MAKEINFO)" \
1517 @if
[ -d .
/cvs
] ; then \
1518 rootme
=`pwd` ; export rootme
; \
1521 "against=$(against)" \
1523 "AR_FLAGS=$(AR_FLAGS)" \
1525 "MINUS_G=$(MINUS_G)" \
1526 "RANLIB=$(RANLIB)" \
1527 "LOADLIBES=$(LOADLIBES)" \
1528 "LDFLAGS=$(LDFLAGS)" \
1530 "MAKEINFO=$(MAKEINFO)" \
1538 @if
[ -d .
/patch
] ; then \
1539 rootme
=`pwd` ; export rootme
; \
1542 "against=$(against)" \
1544 "AR_FLAGS=$(AR_FLAGS)" \
1546 "MINUS_G=$(MINUS_G)" \
1547 "RANLIB=$(RANLIB)" \
1548 "LOADLIBES=$(LOADLIBES)" \
1549 "LDFLAGS=$(LDFLAGS)" \
1551 "MAKEINFO=$(MAKEINFO)" \
1558 @if
[ -d .
/patch
] ; then \
1559 rootme
=`pwd` ; export rootme
; \
1562 "against=$(against)" \
1564 "AR_FLAGS=$(AR_FLAGS)" \
1566 "MINUS_G=$(MINUS_G)" \
1567 "RANLIB=$(RANLIB)" \
1568 "LOADLIBES=$(LOADLIBES)" \
1569 "LDFLAGS=$(LDFLAGS)" \
1571 "MAKEINFO=$(MAKEINFO)" \
1577 install-patch
: force
1578 @if
[ -d .
/patch
] ; then \
1579 rootme
=`pwd` ; export rootme
; \
1583 man1dir=$(man1dir) \
1585 "AR_FLAGS=$(AR_FLAGS)" \
1587 "MINUS_G=$(MINUS_G)" \
1588 "RANLIB=$(RANLIB)" \
1589 "LOADLIBES=$(LOADLIBES)" \
1590 "LDFLAGS=$(LDFLAGS)" \
1592 "MAKEINFO=$(MAKEINFO)" \
1600 @if
[ -d .
/emacs
] ; then \
1601 rootme
=`pwd` ; export rootme
; \
1604 "against=$(against)" \
1606 "AR_FLAGS=$(AR_FLAGS)" \
1608 "MINUS_G=$(MINUS_G)" \
1609 "RANLIB=$(RANLIB)" \
1610 "LOADLIBES=$(LOADLIBES)" \
1611 "LDFLAGS=$(LDFLAGS)" \
1613 "MAKEINFO=$(MAKEINFO)" \
1620 @if
[ -d .
/emacs
] ; then \
1621 rootme
=`pwd` ; export rootme
; \
1624 "against=$(against)" \
1626 "AR_FLAGS=$(AR_FLAGS)" \
1628 "MINUS_G=$(MINUS_G)" \
1629 "RANLIB=$(RANLIB)" \
1630 "LOADLIBES=$(LOADLIBES)" \
1631 "LDFLAGS=$(LDFLAGS)" \
1633 "MAKEINFO=$(MAKEINFO)" \
1639 install-emacs
: force
1640 @if
[ -d .
/emacs
] ; then \
1641 rootme
=`pwd` ; export rootme
; \
1644 "against=$(against)" \
1646 "AR_FLAGS=$(AR_FLAGS)" \
1648 "MINUS_G=$(MINUS_G)" \
1649 "RANLIB=$(RANLIB)" \
1650 "LOADLIBES=$(LOADLIBES)" \
1651 "LDFLAGS=$(LDFLAGS)" \
1653 "MAKEINFO=$(MAKEINFO)" \
1660 all-ispell
: all-emacs
1661 @if
[ -d .
/ispell
] ; then \
1662 rootme
=`pwd` ; export rootme
; \
1665 "against=$(against)" \
1667 "AR_FLAGS=$(AR_FLAGS)" \
1669 "MINUS_G=$(MINUS_G)" \
1670 "RANLIB=$(RANLIB)" \
1671 "LOADLIBES=$(LOADLIBES)" \
1672 "LDFLAGS=$(LDFLAGS)" \
1674 "MAKEINFO=$(MAKEINFO)" \
1681 @if
[ -d .
/ispell
] ; then \
1682 rootme
=`pwd` ; export rootme
; \
1685 "against=$(against)" \
1687 "AR_FLAGS=$(AR_FLAGS)" \
1689 "MINUS_G=$(MINUS_G)" \
1690 "RANLIB=$(RANLIB)" \
1691 "LOADLIBES=$(LOADLIBES)" \
1692 "LDFLAGS=$(LDFLAGS)" \
1694 "MAKEINFO=$(MAKEINFO)" \
1700 install-ispell
: force
1701 @if
[ -d .
/ispell
] ; then \
1702 rootme
=`pwd` ; export rootme
; \
1705 "against=$(against)" \
1707 "AR_FLAGS=$(AR_FLAGS)" \
1709 "MINUS_G=$(MINUS_G)" \
1710 "RANLIB=$(RANLIB)" \
1711 "LOADLIBES=$(LOADLIBES)" \
1712 "LDFLAGS=$(LDFLAGS)" \
1714 "MAKEINFO=$(MAKEINFO)" \
1721 all-fileutils
: force
1722 @if
[ -d .
/fileutils
] ; then \
1723 rootme
=`pwd` ; export rootme
; \
1726 "prefix=$(prefix)" \
1727 "datadir=$(datadir)" \
1728 "mandir=$(mandir)" \
1729 "against=$(against)" \
1731 "AR_FLAGS=$(AR_FLAGS)" \
1733 "MINUS_G=$(MINUS_G)" \
1734 "RANLIB=$(RANLIB)" \
1735 "LOADLIBES=$(LOADLIBES)" \
1736 "LDFLAGS=$(LDFLAGS)" \
1738 "MAKEINFO=$(MAKEINFO)" \
1744 clean-fileutils
: force
1745 @if
[ -d .
/fileutils
] ; then \
1746 rootme
=`pwd` ; export rootme
; \
1749 "prefix=$(prefix)" \
1750 "datadir=$(datadir)" \
1751 "mandir=$(mandir)" \
1752 "against=$(against)" \
1754 "AR_FLAGS=$(AR_FLAGS)" \
1756 "MINUS_G=$(MINUS_G)" \
1757 "RANLIB=$(RANLIB)" \
1758 "LOADLIBES=$(LOADLIBES)" \
1759 "LDFLAGS=$(LDFLAGS)" \
1761 "MAKEINFO=$(MAKEINFO)" \
1767 install-fileutils
: force
1768 @if
[ -d .
/fileutils
] ; then \
1769 rootme
=`pwd` ; export rootme
; \
1772 "prefix=$(prefix)" \
1773 "datadir=$(datadir)" \
1774 "mandir=$(mandir)" \
1775 "against=$(against)" \
1777 "AR_FLAGS=$(AR_FLAGS)" \
1779 "MINUS_G=$(MINUS_G)" \
1780 "RANLIB=$(RANLIB)" \
1781 "LOADLIBES=$(LOADLIBES)" \
1782 "LDFLAGS=$(LDFLAGS)" \
1784 "MAKEINFO=$(MAKEINFO)" \
1792 @if
[ -d .
/send_pr
] ; then \
1793 rootme
=`pwd` ; export rootme
; \
1796 "prefix=$(prefix)" \
1797 "datadir=$(datadir)" \
1798 "mandir=$(mandir)" \
1799 "against=$(against)" \
1801 "AR_FLAGS=$(AR_FLAGS)" \
1803 "MINUS_G=$(MINUS_G)" \
1804 "RANLIB=$(RANLIB)" \
1805 "LOADLIBES=$(LOADLIBES)" \
1806 "LDFLAGS=$(LDFLAGS)" \
1808 "MAKEINFO=$(MAKEINFO)" \
1814 clean-send_pr
: force
1815 @if
[ -d .
/send_pr
] ; then \
1816 rootme
=`pwd` ; export rootme
; \
1819 "prefix=$(prefix)" \
1820 "datadir=$(datadir)" \
1821 "mandir=$(mandir)" \
1822 "against=$(against)" \
1824 "AR_FLAGS=$(AR_FLAGS)" \
1826 "MINUS_G=$(MINUS_G)" \
1827 "RANLIB=$(RANLIB)" \
1828 "LOADLIBES=$(LOADLIBES)" \
1829 "LDFLAGS=$(LDFLAGS)" \
1831 "MAKEINFO=$(MAKEINFO)" \
1837 install-send_pr
: force
1838 @if
[ -d .
/send_pr
] ; then \
1839 rootme
=`pwd` ; export rootme
; \
1842 "prefix=$(prefix)" \
1843 "datadir=$(datadir)" \
1844 "mandir=$(mandir)" \
1845 "against=$(against)" \
1847 "AR_FLAGS=$(AR_FLAGS)" \
1849 "MINUS_G=$(MINUS_G)" \
1850 "RANLIB=$(RANLIB)" \
1851 "LOADLIBES=$(LOADLIBES)" \
1852 "LDFLAGS=$(LDFLAGS)" \
1854 "MAKEINFO=$(MAKEINFO)" \
1861 GXX
= `if [ -d $${rootme}/gcc ] ; \
1862 then echo $${rootme}/gcc/gcc -B$${rootme}/gcc/ ; \
1865 XTRAFLAGS
= `if [ -d $${rootme}/gcc ] ; \
1866 then echo -I$${rootme}/gcc/include ; \
1869 all-libg
++: all-gas all-ld all-gcc
1870 @if
[ -d .
/libg
++ ] ; then \
1871 rootme
=`pwd` ; export rootme
; \
1874 "prefix=$(prefix)" \
1875 "datadir=$(datadir)" \
1876 "mandir=$(mandir)" \
1877 "against=$(against)" \
1879 "AR_FLAGS=$(AR_FLAGS)" \
1881 "MINUS_G=$(MINUS_G)" \
1882 "XTRAFLAGS=${XTRAFLAGS}" \
1883 "RANLIB=$(RANLIB)" \
1884 "LOADLIBES=$(LOADLIBES)" \
1885 "LDFLAGS=$(LDFLAGS)" \
1887 "MAKEINFO=$(MAKEINFO)" \
1894 @if
[ -d .
/libg
++ ] ; then \
1895 rootme
=`pwd` ; export rootme
; \
1898 "prefix=$(prefix)" \
1899 "datadir=$(datadir)" \
1900 "mandir=$(mandir)" \
1901 "against=$(against)" \
1903 "AR_FLAGS=$(AR_FLAGS)" \
1905 "MINUS_G=$(MINUS_G)" \
1906 "RANLIB=$(RANLIB)" \
1907 "LOADLIBES=$(LOADLIBES)" \
1908 "LDFLAGS=$(LDFLAGS)" \
1910 "MAKEINFO=$(MAKEINFO)" \
1916 install-libg
++: force
1917 @if
[ -d .
/libg
++ ] ; then \
1918 rootme
=`pwd` ; export rootme
; \
1921 "prefix=$(prefix)" \
1922 "datadir=$(datadir)" \
1923 "mandir=$(mandir)" \
1924 "against=$(against)" \
1926 "AR_FLAGS=$(AR_FLAGS)" \
1928 "MINUS_G=$(MINUS_G)" \
1929 "RANLIB=$(RANLIB)" \
1930 "LOADLIBES=$(LOADLIBES)" \
1931 "LDFLAGS=$(LDFLAGS)" \
1933 "MAKEINFO=$(MAKEINFO)" \
1939 ### other supporting targets
1940 # this is a bad hack.
1941 all.xclib
: all.normal
1942 if
[ -d clib
] ; then \
1943 (cd clib
; $(MAKE
)) ; \
1947 for i in
$(DODIRS
); do \
1948 if
[ -f .
/$$i/localenv
] ; then \
1949 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1951 "against=$(against)" \
1953 "MAKEINFO=$(MAKEINFO)" \
1954 $(DO
)) ; then true
; \
1955 else exit
1 ; fi
; \
1956 else if
[ -d .
/$$i ] ; then \
1957 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1959 "against=$(against)" \
1961 "AR_FLAGS=$(AR_FLAGS)" \
1963 "MINUS_G=$(MINUS_G)" \
1964 "RANLIB=$(RANLIB)" \
1965 "LOADLIBES=$(LOADLIBES)" \
1966 "LDFLAGS=$(LDFLAGS)" \
1968 "MAKEINFO=$(MAKEINFO)" \
1969 $(DO
)) ; then true
; \
1970 else exit
1 ; fi
; \
1978 $(MAKE
) pass
"stagepass=stage1"
1980 $(MAKE
) pass
"stagepass=stage2"
1984 $(MAKE
) pass
"stagepass=stage1"
1986 $(MAKE
) pass
"stagepass=stage2"
1990 $(MAKE
) pass
"stagepass=stage2"
1994 cp
$(srcdir)/gcc
/gstdarg.h .
/gas
/stdarg.h
1995 $(MAKE
) subdir_do
"DO=all info" "DODIRS=$(SUBDIRS)" \
1996 "CC=`pwd`/gcc/$(stagepass)/gcc \
1997 -O $(GCCVERBOSE) -I`pwd`/gcc/include \
1998 -B`pwd`/gcc/$(stagepass)/ \
1999 -B`pwd`/gas/$(stagepass)/ \
2000 -B`pwd`/ld/$(stagepass)/" \
2001 "AR=`pwd`/binutils/$(stagepass)/ar" \
2002 "LD=`pwd`/gcc/$(stagepass)/gcc $(GCCVERBOSE)" \
2003 "RANLIB=`pwd`/binutils/$(stagepass)/ranlib" \
2004 "LOADLIBES=`pwd`/libgcc/$(stagepass)/libgcc.a /lib/libc.a" \
2005 "LDFLAGS=-nostdlib /lib/crt0.o \
2006 -L`pwd`/libgcc/$(stagepass)/ \
2007 -B`pwd`/ld/$(stagepass)/"
2011 $(MAKE
) subdir_do DO
=stage1
"DODIRS=$(SUBDIRS)"
2014 $(MAKE
) subdir_do DO
=stage2
"DODIRS=$(SUBDIRS)"
2017 $(MAKE
) subdir_do DO
=stage3
"DODIRS=$(SUBDIRS)"
2020 $(MAKE
) subdir_do DO
=stage4
"DODIRS=$(SUBDIRS)"
2024 comparison
:; $(MAKE
) subdir_do DO
=comparison against
=$(against
) "DODIRS=$(SUBDIRS)"
2026 de-stage1
:; $(MAKE
) subdir_do DO
=de-stage1
"DODIRS=$(SUBDIRS)"
2027 de-stage2
:; $(MAKE
) subdir_do DO
=de-stage2
"DODIRS=$(SUBDIRS)"
2028 de-stage3
:; $(MAKE
) subdir_do DO
=de-stage3
"DODIRS=$(SUBDIRS)"
2029 de-stage4
:; $(MAKE
) subdir_do DO
=de-stage4
"DODIRS=$(SUBDIRS)"
2031 # The "else true" stuff is for Ultrix; the shell returns the exit code
2032 # of the "if" command, if no commands are run in the "then" or "else" part,
2033 # causing Make to quit.
2056 for i in
$(MAKEDIRS
) ; do \
2057 echo Making
$$i...
; \
2058 [ -d
$$i ] || mkdir
$$i || exit
1 ; \
2066 if
[ -d
$(prefix) ] ; then true
; else mkdir
$(prefix) ; fi
2067 if
[ -d
$(datadir) ] ; then true
; else mkdir
$(datadir) ; fi
2068 if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
2071 $(srcdir)/texinfo
/gen-info-dir
$(infodir) > dir.
info.new
2072 mv
-f
dir.
info.new
dir.
info
2081 @for i in
$(SUBDIRS
); \
2085 wd
=`basename $$pwd`; \
2086 for j in
`$(MAKE) ls`; \
2094 # with the gnu make, this is done automatically.
2096 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
2097 $(SHELL
) .
/config.status
2100 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
2102 DEVO_SUPPORT
= README cfg-paper.texi Makefile.in configure configure.in \
2103 config.sub config configure.man
2104 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc readline glob
2105 GDB_SUPPORT_FILES
= $(GDB_SUPPORT_DIRS
) texinfo
/fsf
/texinfo.
tex
2107 setup-dirs
: force_update
2110 .
/configure
-rm sun4
2111 chmod og
=u
`find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
2113 bfd.ilrt.
tar.Z
: setup-dirs
2114 rm -f bfd.ilrt.
tar.Z
2115 tar cf
- $(DEVO_SUPPORT
) $(GDB_SUPPORT_FILES
) \
2116 | compress
-v
>bfd.ilrt.
tar.Z
2118 gdb.
tar.Z
: setup-dirs
2119 (cd gdb
; $(MAKE
) -f Makefile.in make-proto-gdb.
dir)
2120 $(MAKE
) $(MFLAGS
) -f Makefile.in make-gdb.
tar.Z
2122 make-gdb.
tar.Z
: $(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb texinfo
/fsf
/texinfo.
tex
2123 rm -rf proto-toplev
; mkdir proto-toplev
2124 ln
-s ..
/gdb
/proto-gdb.
dir proto-toplev
/gdb
2125 (cd proto-toplev
; for i in
$(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
); do \
2128 # Put only one copy (four hard links) of COPYING in the tar file.
2129 rm proto-toplev
/bfd
/COPYING
2130 ln proto-toplev
/gdb
/COPYING proto-toplev
/bfd
/COPYING
2131 rm proto-toplev
/include/COPYING
2132 ln proto-toplev
/gdb
/COPYING proto-toplev
/include/COPYING
2133 rm proto-toplev
/readline
/COPYING
2134 ln proto-toplev
/gdb
/COPYING proto-toplev
/readline
/COPYING
2135 # Take out texinfo from configurable dirs
2136 rm proto-toplev
/configure.in
2137 sed
'/^configdirs=/s/texinfo //' <configure.in
>proto-toplev
/configure.in
2138 # Take out glob from buildable dirs
2139 rm proto-toplev
/Makefile.in
2140 sed
'/^SUBDIRS =/s/glob //' <Makefile.in
>proto-toplev
/Makefile.in
2141 # Take out texinfo from buildable dirs
2142 cp proto-toplev
/Makefile.in temp.
$$
2143 sed
'/^all\.normal: /s/\all-texinfo //' <temp.
$$ >temp1.
$$
2144 sed
'/^clean: /s/clean-texinfo //' <temp1.
$$ >temp.
$$
2145 sed
'/^install\.all: /s/install-texinfo //' <temp.
$$ >proto-toplev
/Makefile.in
2147 mkdir proto-toplev
/texinfo
2148 mkdir proto-toplev
/texinfo
/fsf
2149 ln
-s ..
/..
/..
/texinfo
/fsf
/texinfo.
tex proto-toplev
/texinfo
/fsf
/
2150 chmod og
=u
`find proto-toplev -print`
2151 (VER
=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
2152 echo
"==> Making gdb-$$VER.tar.Z"; \
2153 ln
-s proto-toplev gdb-
$$VER; \
2154 tar cfh
- gdb-
$$VER \
2155 | compress
-v
>gdb-
$$VER.
tar.Z
)
2161 # end of Makefile.in