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
29 datadir = $(prefix)/lib
30 mandir = $(prefix)/man
31 man1dir = $(mandir)/man1
32 man2dir = $(mandir)/man2
33 man3dir = $(mandir)/man3
34 man4dir = $(mandir)/man4
35 man5dir = $(mandir)/man5
36 man6dir = $(mandir)/man6
37 man7dir = $(mandir)/man7
38 man8dir = $(mandir)/man8
39 man9dir = $(mandir)/man9
40 infodir = $(prefix)/info
41 includedir = $(prefix)/include
42 docdir
= $(datadir)/doc
47 INSTALL_PROGRAM
= $(INSTALL
)
48 INSTALL_DATA
= $(INSTALL
)
55 BISON
= `if [ -d $${rootme}/byacc ] ; \
56 then echo $${rootme}/byacc/byacc ; \
57 else echo bison -y ; \
60 LEX
= `if [ -d $${rootme}/flex ] ; \
61 then echo $${rootme}/flex/flex ; \
64 MAKEINFO
= `if [ -d $${rootme}/texinfo/C ] ; \
65 then echo $${rootme}/texinfo/C/makeinfo ; \
66 else echo makeinfo ; fi`
68 SUBDIRS
= libiberty mmalloc glob readline bfd gdb binutils
ld gas tgas gcc libg
++ newlib libm
# clib -- newlib replaces
72 INSTALL_TARGET
= install.
all
77 GXX
= `if [ -d $${rootme}/gcc ] ; \
78 then echo $${rootme}/gcc/gcc -B$${rootme}/gcc/ ; \
81 XTRAFLAGS
= `if [ -d $${rootme}/gcc ] ; \
82 then echo -I$${rootme}/gcc/include ; \
85 #### host and target specific makefile fragments come in here.
90 "exec_prefix=$(exec_prefix)" \
91 "tooldir=$(tooldir)" \
93 "AR_FLAGS=$(AR_FLAGS)" \
97 "LOADLIBES=$(LOADLIBES)" \
98 "LDFLAGS=$(LDFLAGS)" \
101 "MAKEINFO=$(MAKEINFO)" \
102 "INSTALL=$(INSTALL)" \
103 "INSTALL_DATA=$(INSTALL_DATA)" \
104 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
106 .PHONY
: all info install-info clean-info
111 info: cfg-paper.
info configure.
info standards.
info
112 @rootme
=`pwd` ; export rootme
; $(MAKE
) subdir_do DO
=info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS
)
114 # Note libg++ has to be handled specially (we can't compile it with CC=cc).
116 @rootme
=`pwd` ; export rootme
; $(MAKE
) subdir_do DO
=check \
117 "DODIRS=`echo $(SUBDIRS) | sed -e \"s/libg\+\+//\"" $(FLAGS_TO_PASS
)
118 @rootme
=`pwd` ; export rootme
; $(MAKE
) subdir_do DO
=check \
119 "DODIRS=libg++" $(FLAGS_TO_PASS
) "CC=${GXX}" "XTRAFLAGS=${XTRAFLAGS}"
122 @
$(MAKE
) $(FLAGS_TO_PASS
) subdir_do DO
=clean-info
"DODIRS=$(SUBDIRS)"
125 cfg-paper.
info: cfg-paper.texi
126 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o cfg-paper.
info $(srcdir)/cfg-paper.texi
128 configure.
info: configure.texi
129 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o configure.
info $(srcdir)/configure.texi
131 standards.
info: standards.texi
132 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o standards.
info $(srcdir)/standards.texi
134 install-info
: install-info-dirs
force
135 -parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
136 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
137 -if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
138 @
$(MAKE
) $(FLAGS_TO_PASS
) subdir_do DO
=install-info
"DODIRS=$(SUBDIRS)"
139 $(INSTALL_DATA
) cfg-paper.
info $(infodir)/cfg-paper.
info
140 $(INSTALL_DATA
) configure.
info $(infodir)/configure.
info
141 $(INSTALL_DATA
) standards.
info $(infodir)/standards.
info
142 @
$(MAKE
) $(FLAGS_TO_PASS
) dir.
info install-dir.
info
145 -parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
146 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
147 -if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
148 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info
150 all.normal
: all-autoconf all-libiberty all-mmalloc all-texinfo \
151 all-byacc all-flex all-bfd all-ld all-gas all-tgas all-gcc \
152 all-binutils all-libg
++ all-readline all-gdb \
153 all-make all-rcs all-cvs all-diff all-grep \
154 all-patch all-emacs all-ispell \
155 all-newlib all-gprof all-send_pr all-libm
157 all.cross
: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
158 all-bfd all-readline all-gdb all-binutils all-gcc all-newlib
159 # $(MAKE) $(FLAGS_TO_PASS) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
161 clean: clean-autoconf clean-libiberty clean-mmalloc clean-texinfo \
162 clean-bfd clean-newlib clean-binutils clean-flex \
163 clean-byacc clean-ld clean-gas \
164 clean-gcc clean-readline clean-glob clean-gdb \
165 clean-make clean-diff clean-grep clean-rcs \
166 clean-cvs clean-patch clean-emacs clean-ispell \
167 clean-libg
++ clean-gprof clean-send_pr clean-libm
168 -rm -rf
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
173 install: $(INSTALL_TARGET
) $(srcdir)/configure.man
174 -parent
=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
175 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
176 -if
[ -d
$(man1dir) ] ; then true
; else mkdir
$(man1dir) ; fi
177 $(INSTALL_DATA
) $(srcdir)/configure.man
$(man1dir)/configure
.1
179 install.
all: install-no-fixedincludes
180 @if
[ -f .
/gcc
/Makefile
] ; then \
181 rootme
=`pwd` ; export rootme
; \
183 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
188 install-no-fixedincludes
: install-dirs gcc-no-fixedincludes \
216 gcc-no-fixedincludes
:
217 @if
[ -f .
/gcc
/Makefile
] ; then \
218 rootme
=`pwd` ; export rootme
; \
220 $(MAKE
) $(FLAGS_TO_PASS
) install install-man \
221 "INSTALL_HEADERS=install-common-headers install-float-h install-limits-h") ; \
226 install.cross
: install-dirs install-libiberty install-mmalloc \
227 install-binutils install-byacc install-flex \
228 install-ld install-gas install-readline \
229 install-glob install-gdb install-mmalloc \
230 install-newlib install-gcc
234 @if
[ -f .
/autoconf
/Makefile
] ; then \
235 rootme
=`pwd` ; export rootme
; \
237 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
242 clean-autoconf
: force
243 @if
[ -f .
/autoconf
/Makefile
] ; then \
244 rootme
=`pwd` ; export rootme
; \
246 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
251 install-autoconf
: force
252 @if
[ -f .
/autoconf
/Makefile
] ; then \
253 rootme
=`pwd` ; export rootme
; \
255 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
262 @if
[ -f .
/libiberty
/Makefile
] ; then \
263 rootme
=`pwd` ; export rootme
; \
265 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
270 clean-libiberty
: force
271 @if
[ -f .
/libiberty
/Makefile
] ; then \
272 rootme
=`pwd` ; export rootme
; \
274 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
279 install-libiberty
: force
280 @if
[ -f .
/libiberty
/Makefile
] ; then \
281 rootme
=`pwd` ; export rootme
; \
283 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
290 @if
[ -f .
/mmalloc
/Makefile
] ; then \
291 rootme
=`pwd` ; export rootme
; \
293 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
299 @if
[ -f .
/mmalloc
/Makefile
] ; then \
300 rootme
=`pwd` ; export rootme
; \
302 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
307 install-mmalloc
: force
308 @if
[ -f .
/mmalloc
/Makefile
] ; then \
309 rootme
=`pwd` ; export rootme
; \
311 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
317 all-texinfo
: all-libiberty
318 @if
[ -f .
/texinfo
/Makefile
] ; then \
319 rootme
=`pwd` ; export rootme
; \
320 rootme
=`pwd` ; export rootme
; \
322 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
328 @if
[ -f .
/texinfo
/Makefile
] ; then \
329 rootme
=`pwd` ; export rootme
; \
331 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
336 install-texinfo
: force
337 @if
[ -f .
/texinfo
/Makefile
] ; then \
338 rootme
=`pwd` ; export rootme
; \
340 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
347 @if
[ -f .
/bfd
/Makefile
] ; then \
348 rootme
=`pwd` ; export rootme
; \
350 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
356 @if
[ -f .
/bfd
/Makefile
] ; then \
357 rootme
=`pwd` ; export rootme
; \
359 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
365 @if
[ -f .
/bfd
/Makefile
] ; then \
366 rootme
=`pwd` ; export rootme
; \
368 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
374 all-binutils
: all-libiberty all-bfd all-flex
375 @if
[ -f .
/binutils
/Makefile
] ; then \
376 rootme
=`pwd` ; export rootme
; \
378 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
383 clean-binutils
: force
384 @if
[ -f .
/binutils
/Makefile
] ; then \
385 rootme
=`pwd` ; export rootme
; \
387 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
392 install-binutils
: force
393 @if
[ -f .
/binutils
/Makefile
] ; then \
394 rootme
=`pwd` ; export rootme
; \
396 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
403 @if
[ -f .
/newlib
/Makefile
] ; then \
404 rootme
=`pwd` ; export rootme
; \
406 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
412 @if
[ -f .
/newlib
/Makefile
] ; then \
413 rootme
=`pwd` ; export rootme
; \
415 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
420 install-newlib
: force
421 @if
[ -f .
/newlib
/Makefile
] ; then \
422 rootme
=`pwd` ; export rootme
; \
424 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
430 all-gprof
: all-libiberty all-bfd
431 @if
[ -f .
/gprof
/Makefile
] ; then \
432 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
438 @if
[ -f .
/gprof
/Makefile
] ; then \
439 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
445 @if
[ -f .
/gprof
/Makefile
] ; then \
446 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
453 @if
[ -f .
/byacc
/Makefile
] ; then \
454 rootme
=`pwd` ; export rootme
; \
456 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
462 @if
[ -f .
/byacc
/Makefile
] ; then \
463 rootme
=`pwd` ; export rootme
; \
465 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
471 @if
[ -f .
/byacc
/Makefile
] ; then \
472 rootme
=`pwd` ; export rootme
; \
474 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
480 all-flex
: all-libiberty
481 @if
[ -f .
/flex
/Makefile
] ; then \
482 rootme
=`pwd` ; export rootme
; \
484 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
490 @if
[ -f .
/flex
/Makefile
] ; then \
491 rootme
=`pwd` ; export rootme
; \
493 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
499 @if
[ -f .
/flex
/Makefile
] ; then \
500 rootme
=`pwd` ; export rootme
; \
502 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
507 all-gcc
: all-libiberty all-byacc
508 @if
[ -f .
/gcc
/Makefile
] ; then \
509 rootme
=`pwd` ; export rootme
; \
511 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
517 @if
[ -f .
/gcc
/Makefile
] ; then \
518 rootme
=`pwd` ; export rootme
; \
520 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
526 @if
[ -f .
/gcc
/Makefile
] ; then \
527 rootme
=`pwd` ; export rootme
; \
529 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
536 @if
[ -f .
/readline
/Makefile
] ; then \
537 rootme
=`pwd` ; export rootme
; \
539 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
544 clean-readline
: force
545 @if
[ -f .
/readline
/Makefile
] ; then \
546 rootme
=`pwd` ; export rootme
; \
548 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
553 install-readline
: force
554 @if
[ -f .
/readline
/Makefile
] ; then \
555 rootme
=`pwd` ; export rootme
; \
557 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
564 @if
[ -f .
/glob
/Makefile
] ; then \
565 rootme
=`pwd` ; export rootme
; \
567 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
573 @if
[ -f .
/glob
/Makefile
] ; then \
574 rootme
=`pwd` ; export rootme
; \
576 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
582 @if
[ -f .
/glob
/Makefile
] ; then \
583 rootme
=`pwd` ; export rootme
; \
585 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
591 all-gas
: all-libiberty all-bfd
592 @if
[ -f .
/gas
/Makefile
] ; then \
593 rootme
=`pwd` ; export rootme
; \
595 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
601 @if
[ -f .
/gas
/Makefile
] ; then \
602 rootme
=`pwd` ; export rootme
; \
604 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
610 @if
[ -f .
/gas
/Makefile
] ; then \
611 rootme
=`pwd` ; export rootme
; \
613 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
619 all-tgas
: all-libiberty all-bfd
620 @if
[ -f .
/tgas
/Makefile
] ; then \
621 rootme
=`pwd` ; export rootme
; \
623 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
630 all-ld
: all-libiberty all-bfd all-byacc all-flex
631 @if
[ -f .
/ld/Makefile
] ; then \
632 rootme
=`pwd` ; export rootme
; \
634 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
640 @if
[ -f .
/ld/Makefile
] ; then \
641 rootme
=`pwd` ; export rootme
; \
643 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
649 @if
[ -f .
/ld/Makefile
] ; then \
650 rootme
=`pwd` ; export rootme
; \
652 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
658 all-gdb
: all-bfd all-libiberty all-mmalloc all-readline all-glob all-byacc
659 @if
[ -f .
/gdb
/Makefile
] ; then \
660 rootme
=`pwd` ; export rootme
; \
662 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
668 @if
[ -f .
/gdb
/Makefile
] ; then \
669 rootme
=`pwd` ; export rootme
; \
671 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
677 @if
[ -f .
/gdb
/Makefile
] ; then \
678 rootme
=`pwd` ; export rootme
; \
680 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
686 all-make
: all-libiberty
687 @if
[ -f .
/make
/Makefile
] ; then \
688 rootme
=`pwd` ; export rootme
; \
690 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
696 @if
[ -f .
/make
/Makefile
] ; then \
697 rootme
=`pwd` ; export rootme
; \
699 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
705 @if
[ -f .
/make
/Makefile
] ; then \
706 rootme
=`pwd` ; export rootme
; \
708 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
715 @if
[ -f .
/diff
/Makefile
] ; then \
716 rootme
=`pwd` ; export rootme
; \
718 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
724 @if
[ -f .
/diff
/Makefile
] ; then \
725 rootme
=`pwd` ; export rootme
; \
727 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
733 @if
[ -f .
/diff
/Makefile
] ; then \
734 rootme
=`pwd` ; export rootme
; \
736 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
743 @if
[ -f .
/grep
/Makefile
] ; then \
744 rootme
=`pwd` ; export rootme
; \
746 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
752 @if
[ -f .
/grep
/Makefile
] ; then \
753 rootme
=`pwd` ; export rootme
; \
755 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
761 @if
[ -f .
/grep
/Makefile
] ; then \
762 rootme
=`pwd` ; export rootme
; \
764 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
771 @if
[ -f .
/rcs
/Makefile
] ; then \
772 rootme
=`pwd` ; export rootme
; \
774 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
780 @if
[ -f .
/rcs
/Makefile
] ; then \
781 rootme
=`pwd` ; export rootme
; \
783 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
789 @if
[ -f .
/rcs
/Makefile
] ; then \
790 rootme
=`pwd` ; export rootme
; \
792 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
799 @if
[ -f .
/cvs
/Makefile
] ; then \
800 rootme
=`pwd` ; export rootme
; \
802 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
808 @if
[ -f .
/cvs
/Makefile
] ; then \
809 rootme
=`pwd` ; export rootme
; \
811 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
817 @if
[ -f .
/cvs
/Makefile
] ; then \
818 rootme
=`pwd` ; export rootme
; \
820 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
827 @if
[ -f .
/patch
/Makefile
] ; then \
828 rootme
=`pwd` ; export rootme
; \
830 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
836 @if
[ -f .
/patch
/Makefile
] ; then \
837 rootme
=`pwd` ; export rootme
; \
839 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
845 @if
[ -f .
/patch
/Makefile
] ; then \
846 rootme
=`pwd` ; export rootme
; \
848 $(MAKE
) $(FLAGS_TO_PASS
) \
850 man1dir=$(man1dir) install) ; \
857 @if
[ -f .
/emacs
/Makefile
] ; then \
858 rootme
=`pwd` ; export rootme
; \
860 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
866 @if
[ -f .
/emacs
/Makefile
] ; then \
867 rootme
=`pwd` ; export rootme
; \
869 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
875 @if
[ -f .
/emacs
/Makefile
] ; then \
876 rootme
=`pwd` ; export rootme
; \
878 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
884 all-ispell
: all-emacs
885 @if
[ -f .
/ispell
/Makefile
] ; then \
886 rootme
=`pwd` ; export rootme
; \
888 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
894 @if
[ -f .
/ispell
/Makefile
] ; then \
895 rootme
=`pwd` ; export rootme
; \
897 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
902 install-ispell
: force
903 @if
[ -f .
/ispell
/Makefile
] ; then \
904 rootme
=`pwd` ; export rootme
; \
906 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
913 @if
[ -f .
/send_pr
/Makefile
] ; then \
914 rootme
=`pwd` ; export rootme
; \
916 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
922 @if
[ -f .
/send_pr
/Makefile
] ; then \
923 rootme
=`pwd` ; export rootme
; \
925 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
930 install-send_pr
: force
931 @if
[ -f .
/send_pr
/Makefile
] ; then \
932 rootme
=`pwd` ; export rootme
; \
934 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
941 @if
[ -d .
/libm
] ; then \
942 rootme
=`pwd` ; export rootme
; \
944 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
950 @if
[ -d .
/libm
] ; then \
951 rootme
=`pwd` ; export rootme
; \
953 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
959 @if
[ -d .
/libm
] ; then \
960 rootme
=`pwd` ; export rootme
; \
962 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
969 all-libg
++: all-gas all-ld all-gcc
970 @if
[ -f .
/libg
++/Makefile
] ; then \
971 rootme
=`pwd` ; export rootme
; \
973 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" all) ; \
979 @if
[ -f .
/libg
++/Makefile
] ; then \
980 rootme
=`pwd` ; export rootme
; \
982 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" clean) ; \
987 install-libg
++: force
988 @if
[ -f .
/libg
++/Makefile
] ; then \
989 rootme
=`pwd` ; export rootme
; \
991 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" install) ; \
996 ### other supporting targets
997 # this is a bad hack.
998 all.xclib
: all.normal
999 if
[ -d clib
] ; then \
1000 (cd clib
; $(MAKE
) $(FLAGS_TO_PASS
)) ; \
1004 @for i in
$(DODIRS
); do \
1005 if
[ -f .
/$$i/localenv
] ; then \
1006 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1007 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1008 else exit
1 ; fi
; \
1009 else if
[ -f .
/$$i/Makefile
] ; then \
1010 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1011 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1012 else exit
1 ; fi
; \
1017 # The "else true" stuff is for Ultrix; the shell returns the exit code
1018 # of the "if" command, if no commands are run in the "then" or "else" part,
1019 # causing Make to quit.
1043 for i in
$(MAKEDIRS
) ; do \
1044 echo Making
$$i...
; \
1045 parent
=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
1046 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
; \
1047 if
[ ! -d
$$i ] ; then \
1048 if mkdir
$$i ; then \
1064 if
[ -d
$(prefix) ] ; then true
; else mkdir
$(prefix) ; fi
1065 # if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
1066 # if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
1069 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
1070 mv
-f
dir.
info.new
dir.
info
1079 @for i in
$(SUBDIRS
); \
1083 wd
=`basename $$pwd`; \
1084 for j in
`$(MAKE) ls`; \
1092 # with the gnu make, this is done automatically.
1094 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
1095 $(SHELL
) .
/config.status
1098 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1100 DEVO_SUPPORT
= README cfg-paper.texi Makefile.in configure configure.in \
1101 config.sub config configure.man move-if-change
1102 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc readline glob
1103 GDB_SUPPORT_FILES
= $(GDB_SUPPORT_DIRS
) texinfo
/fsf
/texinfo.
tex
1105 setup-dirs
: force_update
1108 .
/configure
-rm sun4
1109 chmod og
=u
`find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1111 bfd.ilrt.
tar.Z
: setup-dirs
1112 rm -f bfd.ilrt.
tar.Z
1113 tar cf
- $(DEVO_SUPPORT
) $(GDB_SUPPORT_FILES
) \
1114 | compress
-v
>bfd.ilrt.
tar.Z
1116 gdb.
tar.Z
: setup-dirs
1117 (cd gdb
; $(MAKE
) -f Makefile.in make-proto-gdb.
dir)
1118 $(MAKE
) $(MFLAGS
) -f Makefile.in make-gdb.
tar.Z
1120 make-gdb.
tar.Z
: $(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb texinfo
/fsf
/texinfo.
tex
1121 rm -rf proto-toplev
; mkdir proto-toplev
1122 ln
-s ..
/gdb
/proto-gdb.
dir proto-toplev
/gdb
1123 (cd proto-toplev
; for i in
$(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
); do \
1126 # Put only one copy (four hard links) of COPYING in the tar file.
1127 rm proto-toplev
/bfd
/COPYING
1128 ln proto-toplev
/gdb
/COPYING proto-toplev
/bfd
/COPYING
1129 rm proto-toplev
/include/COPYING
1130 ln proto-toplev
/gdb
/COPYING proto-toplev
/include/COPYING
1131 rm proto-toplev
/readline
/COPYING
1132 ln proto-toplev
/gdb
/COPYING proto-toplev
/readline
/COPYING
1133 # Take out texinfo from configurable dirs
1134 rm proto-toplev
/configure.in
1135 sed
'/^configdirs=/s/texinfo //' <configure.in
>proto-toplev
/configure.in
1136 # Take out glob from buildable dirs
1137 rm proto-toplev
/Makefile.in
1139 sed
-e
'/^SUBDIRS =/s/glob //' \
1140 -e
'/^all\.normal: /s/\all-texinfo //' \
1141 -e
'/^clean: /s/clean-texinfo //' \
1142 -e
'/^install\.all: /s/install-texinfo //' \
1143 <Makefile.in
>proto-toplev
/Makefile.in
1145 mkdir proto-toplev
/texinfo
1146 mkdir proto-toplev
/texinfo
/fsf
1147 ln
-s ..
/..
/..
/texinfo
/fsf
/texinfo.
tex proto-toplev
/texinfo
/fsf
/
1148 chmod og
=u
`find proto-toplev -print`
1149 (VER
=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1150 echo
"==> Making gdb-$$VER.tar.Z"; \
1151 ln
-s proto-toplev gdb-
$$VER; \
1152 tar cfh
- gdb-
$$VER \
1153 | compress
-v
>gdb-
$$VER.
tar.Z
)
1159 # end of Makefile.in