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
80 info: cfg-paper.
info configure.
info
81 @rootme
=`pwd` ; export rootme
; $(MAKE
) subdir_do DO
=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
83 check:; @rootme
=`pwd` ; export rootme
; $(MAKE
) subdir_do DO
=check \
84 "DODIRS=`echo $(SUBDIRS) | sed -e \"s/libg\+\+//\"" \
85 "MAKEINFO=$(MAKEINFO)"
86 @if
[ -d libg
++ ] ; then \
87 rootme
=`pwd` ; export rootme
; \
89 $(MAKE
) check "CC=$${rootme}/gcc/gcc \
90 -B$${rootme}/gcc/") ; \
95 @
$(MAKE
) subdir_do DO
=clean-info
"DODIRS=$(SUBDIRS)"
96 rm -f cfg-paper.
info* configure.
info*
98 cfg-paper.
info: cfg-paper.texi
99 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o cfg-paper.
info $(srcdir)/cfg-paper.texi
101 configure.
info: configure.texi
102 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o configure.
info $(srcdir)/configure.texi
104 install-info
: install-info-dirs
force
105 [ -d
$(infodir) ] || mkdir
$(infodir)
106 @
$(MAKE
) subdir_do DO
=install-info
"DODIRS=$(SUBDIRS)"
107 $(INSTALL_DATA
) cfg-paper.
info $(infodir)/cfg-paper.
info
108 $(INSTALL_DATA
) configure.
info $(infodir)/configure.
info
109 @
$(MAKE
) dir.
info install-dir.
info
112 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info
114 all.normal
: all-autoconf all-libiberty all-mmalloc all-texinfo \
115 all-bison all-byacc all-flex all-bfd all-ld all-gas all-gcc \
116 all-binutils all-libg
++ all-readline all-gdb \
117 all-make all-rcs all-cvs all-diff all-grep \
118 all-patch all-emacs all-ispell all-fileutils \
119 all-newlib all-gprof all-send_pr
121 all.cross
: all-libiberty all-mmalloc all-gas all-bison all-ld \
122 all-bfd all-libgcc all-readline all-gdb
123 # $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
125 clean: clean-autoconf clean-libiberty clean-mmalloc clean-texinfo \
126 clean-bfd clean-newlib clean-binutils clean-flex \
127 clean-bison clean-byacc clean-ld clean-gas \
128 clean-gcc clean-libgcc clean-readline clean-glob clean-gdb \
129 clean-make clean-diff clean-grep clean-rcs \
130 clean-cvs clean-patch clean-emacs clean-ispell clean-fileutils \
131 clean-libg
++ clean-gprof clean-send_pr
132 -rm -rf
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
137 install: $(INSTALL_TARGET
) $(srcdir)/configure.man
138 $(INSTALL_DATA
) $(srcdir)/configure.man
$(man1dir)/configure
.1
141 install.
all: install-dirs install-autoconf install-libiberty \
142 install-mmalloc install-texinfo install-bfd install-binutils \
143 install-bison install-byacc install-flex install-ld \
144 install-gas install-gcc install-gprof install-libgcc \
145 install-readline install-glob install-gdb install-make \
146 install-cvs install-patch install-emacs install-ispell \
147 install-fileutils install-libg
++ install-newlib \
150 install.cross
: install-dirs install-libiberty install-mmalloc \
151 install-binutils install-bison install-byacc install-flex \
152 install-ld install-gas install-libgcc install-readline \
153 install-glob install-gdb install-mmalloc install-gprof
157 @if
[ -d .
/autoconf
] ; then \
158 rootme
=`pwd` ; export rootme
; \
161 "against=$(against)" \
163 "AR_FLAGS=$(AR_FLAGS)" \
165 "MINUS_G=$(MINUS_G)" \
167 "LOADLIBES=$(LOADLIBES)" \
168 "LDFLAGS=$(LDFLAGS)" \
170 "MAKEINFO=$(MAKEINFO)" \
176 clean-autoconf
: force
177 @if
[ -d .
/autoconf
] ; then \
178 rootme
=`pwd` ; export rootme
; \
181 "against=$(against)" \
183 "AR_FLAGS=$(AR_FLAGS)" \
185 "MINUS_G=$(MINUS_G)" \
187 "LOADLIBES=$(LOADLIBES)" \
188 "LDFLAGS=$(LDFLAGS)" \
190 "MAKEINFO=$(MAKEINFO)" \
196 install-autoconf
: force
197 @if
[ -d .
/autoconf
] ; then \
198 rootme
=`pwd` ; export rootme
; \
201 "against=$(against)" \
203 "AR_FLAGS=$(AR_FLAGS)" \
205 "MINUS_G=$(MINUS_G)" \
207 "LOADLIBES=$(LOADLIBES)" \
208 "LDFLAGS=$(LDFLAGS)" \
210 "MAKEINFO=$(MAKEINFO)" \
218 @if
[ -d .
/libiberty
] ; then \
219 rootme
=`pwd` ; export rootme
; \
223 "AR_FLAGS=$(AR_FLAGS)" \
227 "LOADLIBES=$(LOADLIBES)" \
228 "LDFLAGS=$(LDFLAGS)" \
230 "MAKEINFO=$(MAKEINFO)" \
236 clean-libiberty
: force
237 @if
[ -d .
/libiberty
] ; then \
238 rootme
=`pwd` ; export rootme
; \
242 "AR_FLAGS=$(AR_FLAGS)" \
246 "LOADLIBES=$(LOADLIBES)" \
247 "LDFLAGS=$(LDFLAGS)" \
249 "MAKEINFO=$(MAKEINFO)" \
255 install-libiberty
: force
256 @if
[ -d .
/libiberty
] ; then \
257 rootme
=`pwd` ; export rootme
; \
261 "AR_FLAGS=$(AR_FLAGS)" \
265 "LOADLIBES=$(LOADLIBES)" \
266 "LDFLAGS=$(LDFLAGS)" \
268 "MAKEINFO=$(MAKEINFO)" \
276 @if
[ -d .
/mmalloc
] ; then \
277 rootme
=`pwd` ; export rootme
; \
281 "AR_FLAGS=$(AR_FLAGS)" \
285 "LOADLIBES=$(LOADLIBES)" \
286 "LDFLAGS=$(LDFLAGS)" \
288 "MAKEINFO=$(MAKEINFO)" \
295 @if
[ -d .
/mmalloc
] ; then \
296 rootme
=`pwd` ; export rootme
; \
300 "AR_FLAGS=$(AR_FLAGS)" \
304 "LOADLIBES=$(LOADLIBES)" \
305 "LDFLAGS=$(LDFLAGS)" \
307 "MAKEINFO=$(MAKEINFO)" \
313 install-mmalloc
: force
314 @if
[ -d .
/mmalloc
] ; then \
315 rootme
=`pwd` ; export rootme
; \
319 "AR_FLAGS=$(AR_FLAGS)" \
323 "LOADLIBES=$(LOADLIBES)" \
324 "LDFLAGS=$(LDFLAGS)" \
326 "MAKEINFO=$(MAKEINFO)" \
333 all-texinfo
: all-libiberty
334 @if
[ -d .
/texinfo
] ; then \
335 rootme
=`pwd` ; export rootme
; \
336 rootme
=`pwd` ; export rootme
; \
340 "AR_FLAGS=$(AR_FLAGS)" \
344 "LOADLIBES=$(LOADLIBES)" \
345 "LDFLAGS=$(LDFLAGS)" \
347 "MAKEINFO=$(MAKEINFO)" \
354 @if
[ -d .
/texinfo
] ; then \
355 rootme
=`pwd` ; export rootme
; \
359 "AR_FLAGS=$(AR_FLAGS)" \
363 "LOADLIBES=$(LOADLIBES)" \
364 "LDFLAGS=$(LDFLAGS)" \
366 "MAKEINFO=$(MAKEINFO)" \
372 install-texinfo
: force
373 @if
[ -d .
/texinfo
] ; then \
374 rootme
=`pwd` ; export rootme
; \
378 "AR_FLAGS=$(AR_FLAGS)" \
382 "LOADLIBES=$(LOADLIBES)" \
383 "LDFLAGS=$(LDFLAGS)" \
385 "MAKEINFO=$(MAKEINFO)" \
393 @if
[ -d .
/bfd
] ; then \
394 rootme
=`pwd` ; export rootme
; \
398 "AR_FLAGS=$(AR_FLAGS)" \
402 "LOADLIBES=$(LOADLIBES)" \
403 "LDFLAGS=$(LDFLAGS)" \
405 "MAKEINFO=$(MAKEINFO)" \
412 @if
[ -d .
/bfd
] ; then \
413 rootme
=`pwd` ; export rootme
; \
417 "AR_FLAGS=$(AR_FLAGS)" \
421 "LOADLIBES=$(LOADLIBES)" \
422 "LDFLAGS=$(LDFLAGS)" \
424 "MAKEINFO=$(MAKEINFO)" \
431 @if
[ -d .
/bfd
] ; then \
432 rootme
=`pwd` ; export rootme
; \
436 "AR_FLAGS=$(AR_FLAGS)" \
440 "LOADLIBES=$(LOADLIBES)" \
441 "LDFLAGS=$(LDFLAGS)" \
443 "MAKEINFO=$(MAKEINFO)" \
450 all-binutils
: all-libiberty all-bfd
451 @if
[ -d .
/binutils
] ; then \
452 rootme
=`pwd` ; export rootme
; \
455 "AR_FLAGS=$(AR_FLAGS)" \
459 "LOADLIBES=$(LOADLIBES)" \
460 "LDFLAGS=$(LDFLAGS)" \
462 "MAKEINFO=$(MAKEINFO)" \
468 clean-binutils
: force
469 @if
[ -d .
/binutils
] ; then \
470 rootme
=`pwd` ; export rootme
; \
474 "AR_FLAGS=$(AR_FLAGS)" \
478 "LOADLIBES=$(LOADLIBES)" \
479 "LDFLAGS=$(LDFLAGS)" \
481 "MAKEINFO=$(MAKEINFO)" \
487 install-binutils
: force
488 @if
[ -d .
/binutils
] ; then \
489 rootme
=`pwd` ; export rootme
; \
493 "AR_FLAGS=$(AR_FLAGS)" \
497 "LOADLIBES=$(LOADLIBES)" \
498 "LDFLAGS=$(LDFLAGS)" \
500 "MAKEINFO=$(MAKEINFO)" \
508 @if
[ -d .
/newlib
] ; then \
509 rootme
=`pwd` ; export rootme
; \
513 "AR_FLAGS=$(AR_FLAGS)" \
517 "LOADLIBES=$(LOADLIBES)" \
518 "LDFLAGS=$(LDFLAGS)" \
520 "MAKEINFO=$(MAKEINFO)" \
527 @if
[ -d .
/newlib
] ; then \
528 rootme
=`pwd` ; export rootme
; \
532 "AR_FLAGS=$(AR_FLAGS)" \
536 "LOADLIBES=$(LOADLIBES)" \
537 "LDFLAGS=$(LDFLAGS)" \
539 "MAKEINFO=$(MAKEINFO)" \
545 install-newlib
: force
546 @if
[ -d .
/newlib
] ; then \
547 rootme
=`pwd` ; export rootme
; \
551 "AR_FLAGS=$(AR_FLAGS)" \
555 "LOADLIBES=$(LOADLIBES)" \
556 "LDFLAGS=$(LDFLAGS)" \
558 "MAKEINFO=$(MAKEINFO)" \
565 all-gprof
: all-libiberty all-bfd
566 @if
[ -d .
/gprof
] ; then \
570 "AR_FLAGS=$(AR_FLAGS)" \
574 "LOADLIBES=$(LOADLIBES)" \
575 "LDFLAGS=$(LDFLAGS)" \
577 "MAKEINFO=$(MAKEINFO)" \
584 @if
[ -d
$(unsubdir
)/gprof
] ; then \
585 (cd
$(unsubdir
)/gprof
$(subdir
); \
588 "AR_FLAGS=$(AR_FLAGS)" \
592 "LOADLIBES=$(LOADLIBES)" \
593 "LDFLAGS=$(LDFLAGS)" \
595 "MAKEINFO=$(MAKEINFO)" \
602 @if
[ -d
$(unsubdir
)/gprof
] ; then \
603 (cd
$(unsubdir
)/gprof
$(subdir
); \
606 "AR_FLAGS=$(AR_FLAGS)" \
610 "LOADLIBES=$(LOADLIBES)" \
611 "LDFLAGS=$(LDFLAGS)" \
613 "MAKEINFO=$(MAKEINFO)" \
621 @if
[ -d .
/byacc
] ; then \
622 rootme
=`pwd` ; export rootme
; \
626 "AR_FLAGS=$(AR_FLAGS)" \
630 "LOADLIBES=$(LOADLIBES)" \
631 "LDFLAGS=$(LDFLAGS)" \
633 "MAKEINFO=$(MAKEINFO)" \
640 @if
[ -d .
/byacc
] ; then \
641 rootme
=`pwd` ; export rootme
; \
645 "AR_FLAGS=$(AR_FLAGS)" \
649 "LOADLIBES=$(LOADLIBES)" \
650 "LDFLAGS=$(LDFLAGS)" \
652 "MAKEINFO=$(MAKEINFO)" \
659 @if
[ -d .
/byacc
] ; then \
660 rootme
=`pwd` ; export rootme
; \
664 "AR_FLAGS=$(AR_FLAGS)" \
668 "LOADLIBES=$(LOADLIBES)" \
669 "LDFLAGS=$(LDFLAGS)" \
671 "MAKEINFO=$(MAKEINFO)" \
678 all-bison
: all-libiberty
679 @if
[ -d .
/bison
] ; then \
680 rootme
=`pwd` ; export rootme
; \
684 "datadir=$(datadir)" \
686 "AR_FLAGS=$(AR_FLAGS)" \
690 "LOADLIBES=$(LOADLIBES)" \
691 "LDFLAGS=$(LDFLAGS)" \
693 "MAKEINFO=$(MAKEINFO)" \
700 @if
[ -d .
/bison
] ; then \
701 rootme
=`pwd` ; export rootme
; \
705 "datadir=$(datadir)" \
707 "AR_FLAGS=$(AR_FLAGS)" \
711 "LOADLIBES=$(LOADLIBES)" \
712 "LDFLAGS=$(LDFLAGS)" \
714 "MAKEINFO=$(MAKEINFO)" \
721 @if
[ -d .
/bison
] ; then \
722 rootme
=`pwd` ; export rootme
; \
726 "datadir=$(datadir)" \
728 "AR_FLAGS=$(AR_FLAGS)" \
732 "LOADLIBES=$(LOADLIBES)" \
733 "LDFLAGS=$(LDFLAGS)" \
735 "MAKEINFO=$(MAKEINFO)" \
743 @if
[ -d .
/flex
] ; then \
744 rootme
=`pwd` ; export rootme
; \
748 "AR_FLAGS=$(AR_FLAGS)" \
752 "LOADLIBES=$(LOADLIBES)" \
753 "LDFLAGS=$(LDFLAGS)" \
755 "MAKEINFO=$(MAKEINFO)" \
762 @if
[ -d .
/flex
] ; then \
763 rootme
=`pwd` ; export rootme
; \
767 "AR_FLAGS=$(AR_FLAGS)" \
771 "LOADLIBES=$(LOADLIBES)" \
772 "LDFLAGS=$(LDFLAGS)" \
774 "MAKEINFO=$(MAKEINFO)" \
781 @if
[ -d .
/flex
] ; then \
782 rootme
=`pwd` ; export rootme
; \
786 "AR_FLAGS=$(AR_FLAGS)" \
790 "LOADLIBES=$(LOADLIBES)" \
791 "LDFLAGS=$(LDFLAGS)" \
793 "MAKEINFO=$(MAKEINFO)" \
799 all-gcc
: all-libiberty all-bison
800 @if
[ -d .
/gcc
] ; then \
801 rootme
=`pwd` ; export rootme
; \
805 "AR_FLAGS=$(AR_FLAGS)" \
809 "LOADLIBES=$(LOADLIBES)" \
810 "LDFLAGS=$(LDFLAGS)" \
812 "MAKEINFO=$(MAKEINFO)" \
819 @if
[ -d .
/gcc
] ; then \
820 rootme
=`pwd` ; export rootme
; \
824 "AR_FLAGS=$(AR_FLAGS)" \
828 "LOADLIBES=$(LOADLIBES)" \
829 "LDFLAGS=$(LDFLAGS)" \
831 "MAKEINFO=$(MAKEINFO)" \
838 @if
[ -d .
/gcc
] ; then \
839 rootme
=`pwd` ; export rootme
; \
843 "AR_FLAGS=$(AR_FLAGS)" \
847 "LOADLIBES=$(LOADLIBES)" \
848 "LDFLAGS=$(LDFLAGS)" \
850 "MAKEINFO=$(MAKEINFO)" \
858 @if
[ -d .
/readline
] ; then \
859 rootme
=`pwd` ; export rootme
; \
863 "AR_FLAGS=$(AR_FLAGS)" \
867 "LOADLIBES=$(LOADLIBES)" \
868 "LDFLAGS=$(LDFLAGS)" \
870 "MAKEINFO=$(MAKEINFO)" \
876 clean-readline
: force
877 @if
[ -d .
/readline
] ; then \
878 rootme
=`pwd` ; export rootme
; \
882 "AR_FLAGS=$(AR_FLAGS)" \
886 "LOADLIBES=$(LOADLIBES)" \
887 "LDFLAGS=$(LDFLAGS)" \
889 "MAKEINFO=$(MAKEINFO)" \
895 install-readline
: force
896 @if
[ -d .
/readline
] ; then \
897 rootme
=`pwd` ; export rootme
; \
901 "AR_FLAGS=$(AR_FLAGS)" \
905 "LOADLIBES=$(LOADLIBES)" \
906 "LDFLAGS=$(LDFLAGS)" \
908 "MAKEINFO=$(MAKEINFO)" \
916 @if
[ -d .
/glob
] ; then \
917 rootme
=`pwd` ; export rootme
; \
921 "AR_FLAGS=$(AR_FLAGS)" \
925 "LOADLIBES=$(LOADLIBES)" \
926 "LDFLAGS=$(LDFLAGS)" \
928 "MAKEINFO=$(MAKEINFO)" \
935 @if
[ -d .
/glob
] ; then \
936 rootme
=`pwd` ; export rootme
; \
940 "AR_FLAGS=$(AR_FLAGS)" \
944 "LOADLIBES=$(LOADLIBES)" \
945 "LDFLAGS=$(LDFLAGS)" \
947 "MAKEINFO=$(MAKEINFO)" \
954 @if
[ -d .
/glob
] ; then \
955 rootme
=`pwd` ; export rootme
; \
959 "AR_FLAGS=$(AR_FLAGS)" \
963 "LOADLIBES=$(LOADLIBES)" \
964 "LDFLAGS=$(LDFLAGS)" \
966 "MAKEINFO=$(MAKEINFO)" \
973 all-gas
: all-libiberty all-bfd
974 @if
[ -d .
/gas
] ; then \
975 rootme
=`pwd` ; export rootme
; \
979 "AR_FLAGS=$(AR_FLAGS)" \
983 "LOADLIBES=$(LOADLIBES)" \
984 "LDFLAGS=$(LDFLAGS)" \
986 "MAKEINFO=$(MAKEINFO)" \
993 @if
[ -d .
/gas
] ; then \
994 rootme
=`pwd` ; export rootme
; \
998 "AR_FLAGS=$(AR_FLAGS)" \
1000 "CFLAGS=$(CFLAGS)" \
1001 "RANLIB=$(RANLIB)" \
1002 "LOADLIBES=$(LOADLIBES)" \
1003 "LDFLAGS=$(LDFLAGS)" \
1005 "MAKEINFO=$(MAKEINFO)" \
1012 @if
[ -d .
/gas
] ; then \
1013 rootme
=`pwd` ; export rootme
; \
1017 "AR_FLAGS=$(AR_FLAGS)" \
1019 "CFLAGS=$(CFLAGS)" \
1020 "RANLIB=$(RANLIB)" \
1021 "LOADLIBES=$(LOADLIBES)" \
1022 "LDFLAGS=$(LDFLAGS)" \
1024 "MAKEINFO=$(MAKEINFO)" \
1031 all-ld
: all-libiberty all-bfd all-bison
1032 @if
[ -d .
/ld ] ; then \
1033 rootme
=`pwd` ; export rootme
; \
1037 "AR_FLAGS=$(AR_FLAGS)" \
1039 "CFLAGS=$(CFLAGS)" \
1040 "RANLIB=$(RANLIB)" \
1041 "LOADLIBES=$(LOADLIBES)" \
1042 "LDFLAGS=$(LDFLAGS)" \
1044 "MAKEINFO=$(MAKEINFO)" \
1051 @if
[ -d .
/ld ] ; then \
1052 rootme
=`pwd` ; export rootme
; \
1056 "AR_FLAGS=$(AR_FLAGS)" \
1058 "CFLAGS=$(CFLAGS)" \
1059 "RANLIB=$(RANLIB)" \
1060 "LOADLIBES=$(LOADLIBES)" \
1061 "LDFLAGS=$(LDFLAGS)" \
1063 "MAKEINFO=$(MAKEINFO)" \
1070 @if
[ -d .
/ld ] ; then \
1071 rootme
=`pwd` ; export rootme
; \
1075 "AR_FLAGS=$(AR_FLAGS)" \
1077 "CFLAGS=$(CFLAGS)" \
1078 "RANLIB=$(RANLIB)" \
1079 "LOADLIBES=$(LOADLIBES)" \
1080 "LDFLAGS=$(LDFLAGS)" \
1082 "MAKEINFO=$(MAKEINFO)" \
1088 ### libgcc (and libgcc1)
1089 all-libgcc1
: all-gas all-binutils
1090 @if
[ -d .
/libgcc
] ; then \
1091 rootme
=`pwd` ; export rootme
; \
1095 "AR_FLAGS=$(AR_FLAGS)" \
1097 "CFLAGS=$(CFLAGS)" \
1098 "RANLIB=$(RANLIB)" \
1099 "LOADLIBES=$(LOADLIBES)" \
1100 "LDFLAGS=$(LDFLAGS)" \
1102 "MAKEINFO=$(MAKEINFO)" \
1108 clean-libgcc1
: force
1109 @if
[ -d .
/libgcc
] ; then \
1110 rootme
=`pwd` ; export rootme
; \
1114 "AR_FLAGS=$(AR_FLAGS)" \
1116 "CFLAGS=$(CFLAGS)" \
1117 "RANLIB=$(RANLIB)" \
1118 "LOADLIBES=$(LOADLIBES)" \
1119 "LDFLAGS=$(LDFLAGS)" \
1121 "MAKEINFO=$(MAKEINFO)" \
1127 install-libgcc1
: force
1128 echo libgcc1 is a component
, not an installable target
1130 all-libgcc
: all-gas all-gcc all-binutils
1132 @if
[ -d .
/libgcc
] ; then \
1133 rootme
=`pwd` ; export rootme
; \
1137 "AR_FLAGS=$(AR_FLAGS)" \
1139 "CFLAGS=$(CFLAGS)" \
1140 "RANLIB=$(RANLIB)" \
1141 "LOADLIBES=$(LOADLIBES)" \
1142 "LDFLAGS=$(LDFLAGS)" \
1144 "MAKEINFO=$(MAKEINFO)" \
1151 @if
[ -d .
/libgcc
] ; then \
1152 rootme
=`pwd` ; export rootme
; \
1156 "AR_FLAGS=$(AR_FLAGS)" \
1158 "CFLAGS=$(CFLAGS)" \
1159 "RANLIB=$(RANLIB)" \
1160 "LOADLIBES=$(LOADLIBES)" \
1161 "LDFLAGS=$(LDFLAGS)" \
1163 "MAKEINFO=$(MAKEINFO)" \
1169 install-libgcc
: force
1170 @if
[ -d .
/libgcc
] ; then \
1171 rootme
=`pwd` ; export rootme
; \
1175 "AR_FLAGS=$(AR_FLAGS)" \
1177 "CFLAGS=$(CFLAGS)" \
1178 "RANLIB=$(RANLIB)" \
1179 "LOADLIBES=$(LOADLIBES)" \
1180 "LDFLAGS=$(LDFLAGS)" \
1182 "MAKEINFO=$(MAKEINFO)" \
1189 all-gdb
: all-bfd all-libiberty all-mmalloc all-readline all-glob all-bison
1190 @if
[ -d .
/gdb
] ; then \
1191 rootme
=`pwd` ; export rootme
; \
1195 "AR_FLAGS=$(AR_FLAGS)" \
1197 "CFLAGS=$(CFLAGS)" \
1198 "RANLIB=$(RANLIB)" \
1199 "LOADLIBES=$(LOADLIBES)" \
1200 "LDFLAGS=$(LDFLAGS)" \
1202 "MAKEINFO=$(MAKEINFO)" \
1209 @if
[ -d .
/gdb
] ; then \
1210 rootme
=`pwd` ; export rootme
; \
1214 "AR_FLAGS=$(AR_FLAGS)" \
1216 "CFLAGS=$(CFLAGS)" \
1217 "RANLIB=$(RANLIB)" \
1218 "LOADLIBES=$(LOADLIBES)" \
1219 "LDFLAGS=$(LDFLAGS)" \
1221 "MAKEINFO=$(MAKEINFO)" \
1228 @if
[ -d .
/gdb
] ; then \
1229 rootme
=`pwd` ; export rootme
; \
1233 "AR_FLAGS=$(AR_FLAGS)" \
1235 "CFLAGS=$(CFLAGS)" \
1236 "RANLIB=$(RANLIB)" \
1237 "LOADLIBES=$(LOADLIBES)" \
1238 "LDFLAGS=$(LDFLAGS)" \
1240 "MAKEINFO=$(MAKEINFO)" \
1247 all-make
: all-libiberty
1248 @if
[ -d .
/make
] ; then \
1249 rootme
=`pwd` ; export rootme
; \
1253 "AR_FLAGS=$(AR_FLAGS)" \
1255 "CFLAGS=$(CFLAGS)" \
1256 "RANLIB=$(RANLIB)" \
1257 "LOADLIBES=$(LOADLIBES)" \
1258 "LDFLAGS=$(LDFLAGS)" \
1260 "MAKEINFO=$(MAKEINFO)" \
1267 @if
[ -d .
/make
] ; then \
1268 rootme
=`pwd` ; export rootme
; \
1272 "AR_FLAGS=$(AR_FLAGS)" \
1274 "CFLAGS=$(CFLAGS)" \
1275 "RANLIB=$(RANLIB)" \
1276 "LOADLIBES=$(LOADLIBES)" \
1277 "LDFLAGS=$(LDFLAGS)" \
1279 "MAKEINFO=$(MAKEINFO)" \
1286 @if
[ -d .
/make
] ; then \
1287 rootme
=`pwd` ; export rootme
; \
1291 "AR_FLAGS=$(AR_FLAGS)" \
1293 "CFLAGS=$(CFLAGS)" \
1294 "RANLIB=$(RANLIB)" \
1295 "LOADLIBES=$(LOADLIBES)" \
1296 "LDFLAGS=$(LDFLAGS)" \
1298 "MAKEINFO=$(MAKEINFO)" \
1306 @if
[ -d .
/diff
] ; then \
1307 rootme
=`pwd` ; export rootme
; \
1311 "AR_FLAGS=$(AR_FLAGS)" \
1313 "CFLAGS=$(CFLAGS)" \
1314 "RANLIB=$(RANLIB)" \
1315 "LOADLIBES=$(LOADLIBES)" \
1316 "LDFLAGS=$(LDFLAGS)" \
1318 "MAKEINFO=$(MAKEINFO)" \
1325 @if
[ -d .
/diff
] ; then \
1326 rootme
=`pwd` ; export rootme
; \
1330 "AR_FLAGS=$(AR_FLAGS)" \
1332 "CFLAGS=$(CFLAGS)" \
1333 "RANLIB=$(RANLIB)" \
1334 "LOADLIBES=$(LOADLIBES)" \
1335 "LDFLAGS=$(LDFLAGS)" \
1337 "MAKEINFO=$(MAKEINFO)" \
1344 @if
[ -d .
/diff
] ; then \
1345 rootme
=`pwd` ; export rootme
; \
1349 "AR_FLAGS=$(AR_FLAGS)" \
1351 "CFLAGS=$(CFLAGS)" \
1352 "RANLIB=$(RANLIB)" \
1353 "LOADLIBES=$(LOADLIBES)" \
1354 "LDFLAGS=$(LDFLAGS)" \
1356 "MAKEINFO=$(MAKEINFO)" \
1364 @if
[ -d .
/grep
] ; then \
1365 rootme
=`pwd` ; export rootme
; \
1369 "AR_FLAGS=$(AR_FLAGS)" \
1371 "CFLAGS=$(CFLAGS)" \
1372 "RANLIB=$(RANLIB)" \
1373 "LOADLIBES=$(LOADLIBES)" \
1374 "LDFLAGS=$(LDFLAGS)" \
1376 "MAKEINFO=$(MAKEINFO)" \
1383 @if
[ -d .
/grep
] ; then \
1384 rootme
=`pwd` ; export rootme
; \
1388 "AR_FLAGS=$(AR_FLAGS)" \
1390 "CFLAGS=$(CFLAGS)" \
1391 "RANLIB=$(RANLIB)" \
1392 "LOADLIBES=$(LOADLIBES)" \
1393 "LDFLAGS=$(LDFLAGS)" \
1395 "MAKEINFO=$(MAKEINFO)" \
1402 @if
[ -d .
/grep
] ; then \
1403 rootme
=`pwd` ; export rootme
; \
1407 "AR_FLAGS=$(AR_FLAGS)" \
1409 "CFLAGS=$(CFLAGS)" \
1410 "RANLIB=$(RANLIB)" \
1411 "LOADLIBES=$(LOADLIBES)" \
1412 "LDFLAGS=$(LDFLAGS)" \
1414 "MAKEINFO=$(MAKEINFO)" \
1422 @if
[ -d .
/rcs
] ; then \
1423 rootme
=`pwd` ; export rootme
; \
1427 "AR_FLAGS=$(AR_FLAGS)" \
1429 "CFLAGS=$(CFLAGS)" \
1430 "RANLIB=$(RANLIB)" \
1431 "LOADLIBES=$(LOADLIBES)" \
1432 "LDFLAGS=$(LDFLAGS)" \
1434 "MAKEINFO=$(MAKEINFO)" \
1441 @if
[ -d .
/rcs
] ; then \
1442 rootme
=`pwd` ; export rootme
; \
1446 "AR_FLAGS=$(AR_FLAGS)" \
1448 "CFLAGS=$(CFLAGS)" \
1449 "RANLIB=$(RANLIB)" \
1450 "LOADLIBES=$(LOADLIBES)" \
1451 "LDFLAGS=$(LDFLAGS)" \
1453 "MAKEINFO=$(MAKEINFO)" \
1460 @if
[ -d .
/rcs
] ; then \
1461 rootme
=`pwd` ; export rootme
; \
1465 "AR_FLAGS=$(AR_FLAGS)" \
1467 "CFLAGS=$(CFLAGS)" \
1468 "RANLIB=$(RANLIB)" \
1469 "LOADLIBES=$(LOADLIBES)" \
1470 "LDFLAGS=$(LDFLAGS)" \
1472 "MAKEINFO=$(MAKEINFO)" \
1480 @if
[ -d .
/cvs
] ; then \
1481 rootme
=`pwd` ; export rootme
; \
1485 "AR_FLAGS=$(AR_FLAGS)" \
1487 "CFLAGS=$(CFLAGS)" \
1488 "RANLIB=$(RANLIB)" \
1489 "LOADLIBES=$(LOADLIBES)" \
1490 "LDFLAGS=$(LDFLAGS)" \
1492 "MAKEINFO=$(MAKEINFO)" \
1499 @if
[ -d .
/cvs
] ; then \
1500 rootme
=`pwd` ; export rootme
; \
1504 "AR_FLAGS=$(AR_FLAGS)" \
1506 "CFLAGS=$(CFLAGS)" \
1507 "RANLIB=$(RANLIB)" \
1508 "LOADLIBES=$(LOADLIBES)" \
1509 "LDFLAGS=$(LDFLAGS)" \
1511 "MAKEINFO=$(MAKEINFO)" \
1518 @if
[ -d .
/cvs
] ; then \
1519 rootme
=`pwd` ; export rootme
; \
1523 "AR_FLAGS=$(AR_FLAGS)" \
1525 "CFLAGS=$(CFLAGS)" \
1526 "RANLIB=$(RANLIB)" \
1527 "LOADLIBES=$(LOADLIBES)" \
1528 "LDFLAGS=$(LDFLAGS)" \
1530 "MAKEINFO=$(MAKEINFO)" \
1538 @if
[ -d .
/patch
] ; then \
1539 rootme
=`pwd` ; export rootme
; \
1543 "AR_FLAGS=$(AR_FLAGS)" \
1545 "CFLAGS=$(CFLAGS)" \
1546 "RANLIB=$(RANLIB)" \
1547 "LOADLIBES=$(LOADLIBES)" \
1548 "LDFLAGS=$(LDFLAGS)" \
1550 "MAKEINFO=$(MAKEINFO)" \
1557 @if
[ -d .
/patch
] ; then \
1558 rootme
=`pwd` ; export rootme
; \
1562 "AR_FLAGS=$(AR_FLAGS)" \
1564 "CFLAGS=$(CFLAGS)" \
1565 "RANLIB=$(RANLIB)" \
1566 "LOADLIBES=$(LOADLIBES)" \
1567 "LDFLAGS=$(LDFLAGS)" \
1569 "MAKEINFO=$(MAKEINFO)" \
1575 install-patch
: force
1576 @if
[ -d .
/patch
] ; then \
1577 rootme
=`pwd` ; export rootme
; \
1581 man1dir=$(man1dir) \
1583 "AR_FLAGS=$(AR_FLAGS)" \
1585 "CFLAGS=$(CFLAGS)" \
1586 "RANLIB=$(RANLIB)" \
1587 "LOADLIBES=$(LOADLIBES)" \
1588 "LDFLAGS=$(LDFLAGS)" \
1590 "MAKEINFO=$(MAKEINFO)" \
1598 @if
[ -d .
/emacs
] ; then \
1599 rootme
=`pwd` ; export rootme
; \
1603 "AR_FLAGS=$(AR_FLAGS)" \
1605 "CFLAGS=$(CFLAGS)" \
1606 "RANLIB=$(RANLIB)" \
1607 "LOADLIBES=$(LOADLIBES)" \
1608 "LDFLAGS=$(LDFLAGS)" \
1610 "MAKEINFO=$(MAKEINFO)" \
1617 @if
[ -d .
/emacs
] ; then \
1618 rootme
=`pwd` ; export rootme
; \
1622 "AR_FLAGS=$(AR_FLAGS)" \
1624 "CFLAGS=$(CFLAGS)" \
1625 "RANLIB=$(RANLIB)" \
1626 "LOADLIBES=$(LOADLIBES)" \
1627 "LDFLAGS=$(LDFLAGS)" \
1629 "MAKEINFO=$(MAKEINFO)" \
1635 install-emacs
: force
1636 @if
[ -d .
/emacs
] ; then \
1637 rootme
=`pwd` ; export rootme
; \
1641 "AR_FLAGS=$(AR_FLAGS)" \
1643 "CFLAGS=$(CFLAGS)" \
1644 "RANLIB=$(RANLIB)" \
1645 "LOADLIBES=$(LOADLIBES)" \
1646 "LDFLAGS=$(LDFLAGS)" \
1648 "MAKEINFO=$(MAKEINFO)" \
1655 all-ispell
: all-emacs
1656 @if
[ -d .
/ispell
] ; then \
1657 rootme
=`pwd` ; export rootme
; \
1661 "AR_FLAGS=$(AR_FLAGS)" \
1663 "CFLAGS=$(CFLAGS)" \
1664 "RANLIB=$(RANLIB)" \
1665 "LOADLIBES=$(LOADLIBES)" \
1666 "LDFLAGS=$(LDFLAGS)" \
1668 "MAKEINFO=$(MAKEINFO)" \
1675 @if
[ -d .
/ispell
] ; then \
1676 rootme
=`pwd` ; export rootme
; \
1680 "AR_FLAGS=$(AR_FLAGS)" \
1682 "CFLAGS=$(CFLAGS)" \
1683 "RANLIB=$(RANLIB)" \
1684 "LOADLIBES=$(LOADLIBES)" \
1685 "LDFLAGS=$(LDFLAGS)" \
1687 "MAKEINFO=$(MAKEINFO)" \
1693 install-ispell
: force
1694 @if
[ -d .
/ispell
] ; then \
1695 rootme
=`pwd` ; export rootme
; \
1699 "AR_FLAGS=$(AR_FLAGS)" \
1701 "CFLAGS=$(CFLAGS)" \
1702 "RANLIB=$(RANLIB)" \
1703 "LOADLIBES=$(LOADLIBES)" \
1704 "LDFLAGS=$(LDFLAGS)" \
1706 "MAKEINFO=$(MAKEINFO)" \
1713 all-fileutils
: force
1714 @if
[ -d .
/fileutils
] ; then \
1715 rootme
=`pwd` ; export rootme
; \
1718 "prefix=$(prefix)" \
1719 "datadir=$(datadir)" \
1720 "mandir=$(mandir)" \
1722 "AR_FLAGS=$(AR_FLAGS)" \
1724 "CFLAGS=$(CFLAGS)" \
1725 "RANLIB=$(RANLIB)" \
1726 "LOADLIBES=$(LOADLIBES)" \
1727 "LDFLAGS=$(LDFLAGS)" \
1729 "MAKEINFO=$(MAKEINFO)" \
1735 clean-fileutils
: force
1736 @if
[ -d .
/fileutils
] ; then \
1737 rootme
=`pwd` ; export rootme
; \
1740 "prefix=$(prefix)" \
1741 "datadir=$(datadir)" \
1742 "mandir=$(mandir)" \
1744 "AR_FLAGS=$(AR_FLAGS)" \
1746 "CFLAGS=$(CFLAGS)" \
1747 "RANLIB=$(RANLIB)" \
1748 "LOADLIBES=$(LOADLIBES)" \
1749 "LDFLAGS=$(LDFLAGS)" \
1751 "MAKEINFO=$(MAKEINFO)" \
1757 install-fileutils
: force
1758 @if
[ -d .
/fileutils
] ; then \
1759 rootme
=`pwd` ; export rootme
; \
1762 "prefix=$(prefix)" \
1763 "datadir=$(datadir)" \
1764 "mandir=$(mandir)" \
1766 "AR_FLAGS=$(AR_FLAGS)" \
1768 "CFLAGS=$(CFLAGS)" \
1769 "RANLIB=$(RANLIB)" \
1770 "LOADLIBES=$(LOADLIBES)" \
1771 "LDFLAGS=$(LDFLAGS)" \
1773 "MAKEINFO=$(MAKEINFO)" \
1781 @if
[ -d .
/send_pr
] ; then \
1782 rootme
=`pwd` ; export rootme
; \
1785 "prefix=$(prefix)" \
1786 "datadir=$(datadir)" \
1787 "mandir=$(mandir)" \
1789 "AR_FLAGS=$(AR_FLAGS)" \
1791 "CFLAGS=$(CFLAGS)" \
1792 "RANLIB=$(RANLIB)" \
1793 "LOADLIBES=$(LOADLIBES)" \
1794 "LDFLAGS=$(LDFLAGS)" \
1796 "MAKEINFO=$(MAKEINFO)" \
1802 clean-send_pr
: force
1803 @if
[ -d .
/send_pr
] ; then \
1804 rootme
=`pwd` ; export rootme
; \
1807 "prefix=$(prefix)" \
1808 "datadir=$(datadir)" \
1809 "mandir=$(mandir)" \
1811 "AR_FLAGS=$(AR_FLAGS)" \
1813 "CFLAGS=$(CFLAGS)" \
1814 "RANLIB=$(RANLIB)" \
1815 "LOADLIBES=$(LOADLIBES)" \
1816 "LDFLAGS=$(LDFLAGS)" \
1818 "MAKEINFO=$(MAKEINFO)" \
1824 install-send_pr
: force
1825 @if
[ -d .
/send_pr
] ; then \
1826 rootme
=`pwd` ; export rootme
; \
1829 "prefix=$(prefix)" \
1830 "datadir=$(datadir)" \
1831 "mandir=$(mandir)" \
1833 "AR_FLAGS=$(AR_FLAGS)" \
1835 "CFLAGS=$(CFLAGS)" \
1836 "RANLIB=$(RANLIB)" \
1837 "LOADLIBES=$(LOADLIBES)" \
1838 "LDFLAGS=$(LDFLAGS)" \
1840 "MAKEINFO=$(MAKEINFO)" \
1847 GXX
= `if [ -d $${rootme}/gcc ] ; \
1848 then echo $${rootme}/gcc/gcc -B$${rootme}/gcc/ ; \
1851 XTRAFLAGS
= `if [ -d $${rootme}/gcc ] ; \
1852 then echo -I$${rootme}/gcc/include ; \
1855 all-libg
++: all-gas all-ld all-gcc
1856 @if
[ -d .
/libg
++ ] ; then \
1857 rootme
=`pwd` ; export rootme
; \
1860 "prefix=$(prefix)" \
1861 "datadir=$(datadir)" \
1862 "mandir=$(mandir)" \
1864 "AR_FLAGS=$(AR_FLAGS)" \
1866 "CFLAGS=$(CFLAGS)" \
1867 "XTRAFLAGS=${XTRAFLAGS}" \
1868 "RANLIB=$(RANLIB)" \
1869 "LOADLIBES=$(LOADLIBES)" \
1870 "LDFLAGS=$(LDFLAGS)" \
1872 "MAKEINFO=$(MAKEINFO)" \
1879 @if
[ -d .
/libg
++ ] ; then \
1880 rootme
=`pwd` ; export rootme
; \
1883 "prefix=$(prefix)" \
1884 "datadir=$(datadir)" \
1885 "mandir=$(mandir)" \
1887 "AR_FLAGS=$(AR_FLAGS)" \
1889 "CFLAGS=$(CFLAGS)" \
1890 "RANLIB=$(RANLIB)" \
1891 "LOADLIBES=$(LOADLIBES)" \
1892 "LDFLAGS=$(LDFLAGS)" \
1894 "MAKEINFO=$(MAKEINFO)" \
1900 install-libg
++: force
1901 @if
[ -d .
/libg
++ ] ; then \
1902 rootme
=`pwd` ; export rootme
; \
1905 "prefix=$(prefix)" \
1906 "datadir=$(datadir)" \
1907 "mandir=$(mandir)" \
1909 "AR_FLAGS=$(AR_FLAGS)" \
1911 "CFLAGS=$(CFLAGS)" \
1912 "RANLIB=$(RANLIB)" \
1913 "LOADLIBES=$(LOADLIBES)" \
1914 "LDFLAGS=$(LDFLAGS)" \
1916 "MAKEINFO=$(MAKEINFO)" \
1922 ### other supporting targets
1923 # this is a bad hack.
1924 all.xclib
: all.normal
1925 if
[ -d clib
] ; then \
1926 (cd clib
; $(MAKE
)) ; \
1930 @for i in
$(DODIRS
); do \
1931 if
[ -f .
/$$i/localenv
] ; then \
1932 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1935 "MAKEINFO=$(MAKEINFO)" \
1936 $(DO
)) ; then true
; \
1937 else exit
1 ; fi
; \
1938 else if
[ -d .
/$$i ] ; then \
1939 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1942 "AR_FLAGS=$(AR_FLAGS)" \
1944 "CFLAGS=$(CFLAGS)" \
1945 "RANLIB=$(RANLIB)" \
1946 "LOADLIBES=$(LOADLIBES)" \
1947 "LDFLAGS=$(LDFLAGS)" \
1949 "MAKEINFO=$(MAKEINFO)" \
1950 $(DO
)) ; then true
; \
1951 else exit
1 ; fi
; \
1959 # $(MAKE) pass "stagepass=stage1"
1961 # $(MAKE) pass "stagepass=stage2"
1962 # $(MAKE) comparison
1965 # $(MAKE) pass "stagepass=stage1"
1967 # $(MAKE) pass "stagepass=stage2"
1968 # $(MAKE) comparison
1971 # $(MAKE) pass "stagepass=stage2"
1972 # $(MAKE) comparison
1975 # cp $(srcdir)/gcc/gstdarg.h ./gas/stdarg.h
1976 # $(MAKE) subdir_do "DO=all info" "DODIRS=$(SUBDIRS)" \
1977 # "CC=`pwd`/gcc/$(stagepass)/gcc \
1978 # -O $(GCCVERBOSE) -I`pwd`/gcc/include \
1979 # -B`pwd`/gcc/$(stagepass)/ \
1980 # -B`pwd`/gas/$(stagepass)/ \
1981 # -B`pwd`/ld/$(stagepass)/" \
1982 # "AR=`pwd`/binutils/$(stagepass)/ar" \
1983 # "LD=`pwd`/gcc/$(stagepass)/gcc $(GCCVERBOSE)" \
1984 # "RANLIB=`pwd`/binutils/$(stagepass)/ranlib" \
1985 # "LOADLIBES=`pwd`/libgcc/$(stagepass)/libgcc.a /lib/libc.a" \
1986 # "LDFLAGS=-nostdlib /lib/crt0.o \
1987 # -L`pwd`/libgcc/$(stagepass)/ \
1988 # -B`pwd`/ld/$(stagepass)/"
1992 # $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
1995 # $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
1998 # $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
2001 # $(MAKE) subdir_do DO=stage4 "DODIRS=$(SUBDIRS)"
2005 #comparison:; $(MAKE) subdir_do DO=comparison against=$(against) "DODIRS=$(SUBDIRS)"
2007 #de-stage1:; $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)"
2008 #de-stage2:; $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)"
2009 #de-stage3:; $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)"
2010 #de-stage4:; $(MAKE) subdir_do DO=de-stage4 "DODIRS=$(SUBDIRS)"
2012 # The "else true" stuff is for Ultrix; the shell returns the exit code
2013 # of the "if" command, if no commands are run in the "then" or "else" part,
2014 # causing Make to quit.
2037 for i in
$(MAKEDIRS
) ; do \
2038 echo Making
$$i...
; \
2039 [ -d
$$i ] || mkdir
$$i || exit
1 ; \
2047 if
[ -d
$(prefix) ] ; then true
; else mkdir
$(prefix) ; fi
2048 if
[ -d
$(datadir) ] ; then true
; else mkdir
$(datadir) ; fi
2049 if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
2052 $(srcdir)/texinfo
/gen-info-dir
$(infodir) > dir.
info.new
2053 mv
-f
dir.
info.new
dir.
info
2062 @for i in
$(SUBDIRS
); \
2066 wd
=`basename $$pwd`; \
2067 for j in
`$(MAKE) ls`; \
2075 # with the gnu make, this is done automatically.
2077 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
2078 $(SHELL
) .
/config.status
2081 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
2083 DEVO_SUPPORT
= README cfg-paper.texi Makefile.in configure configure.in \
2084 config.sub config configure.man
2085 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc readline glob
2086 GDB_SUPPORT_FILES
= $(GDB_SUPPORT_DIRS
) texinfo
/fsf
/texinfo.
tex
2088 setup-dirs
: force_update
2091 .
/configure
-rm sun4
2092 chmod og
=u
`find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
2094 bfd.ilrt.
tar.Z
: setup-dirs
2095 rm -f bfd.ilrt.
tar.Z
2096 tar cf
- $(DEVO_SUPPORT
) $(GDB_SUPPORT_FILES
) \
2097 | compress
-v
>bfd.ilrt.
tar.Z
2099 gdb.
tar.Z
: setup-dirs
2100 (cd gdb
; $(MAKE
) -f Makefile.in make-proto-gdb.
dir)
2101 $(MAKE
) $(MFLAGS
) -f Makefile.in make-gdb.
tar.Z
2103 make-gdb.
tar.Z
: $(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb texinfo
/fsf
/texinfo.
tex
2104 rm -rf proto-toplev
; mkdir proto-toplev
2105 ln
-s ..
/gdb
/proto-gdb.
dir proto-toplev
/gdb
2106 (cd proto-toplev
; for i in
$(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
); do \
2109 # Put only one copy (four hard links) of COPYING in the tar file.
2110 rm proto-toplev
/bfd
/COPYING
2111 ln proto-toplev
/gdb
/COPYING proto-toplev
/bfd
/COPYING
2112 rm proto-toplev
/include/COPYING
2113 ln proto-toplev
/gdb
/COPYING proto-toplev
/include/COPYING
2114 rm proto-toplev
/readline
/COPYING
2115 ln proto-toplev
/gdb
/COPYING proto-toplev
/readline
/COPYING
2116 # Take out texinfo from configurable dirs
2117 rm proto-toplev
/configure.in
2118 sed
'/^configdirs=/s/texinfo //' <configure.in
>proto-toplev
/configure.in
2119 # Take out glob from buildable dirs
2120 rm proto-toplev
/Makefile.in
2121 sed
'/^SUBDIRS =/s/glob //' <Makefile.in
>proto-toplev
/Makefile.in
2122 # Take out texinfo from buildable dirs
2123 cp proto-toplev
/Makefile.in temp.
$$
2124 sed
'/^all\.normal: /s/\all-texinfo //' <temp.
$$ >temp1.
$$
2125 sed
'/^clean: /s/clean-texinfo //' <temp1.
$$ >temp.
$$
2126 sed
'/^install\.all: /s/install-texinfo //' <temp.
$$ >proto-toplev
/Makefile.in
2128 mkdir proto-toplev
/texinfo
2129 mkdir proto-toplev
/texinfo
/fsf
2130 ln
-s ..
/..
/..
/texinfo
/fsf
/texinfo.
tex proto-toplev
/texinfo
/fsf
/
2131 chmod og
=u
`find proto-toplev -print`
2132 (VER
=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
2133 echo
"==> Making gdb-$$VER.tar.Z"; \
2134 ln
-s proto-toplev gdb-
$$VER; \
2135 tar cfh
- gdb-
$$VER \
2136 | compress
-v
>gdb-
$$VER.
tar.Z
)
2142 # end of Makefile.in