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 [ -f $${rootme}/byacc/byacc ] ; \
56 then echo $${rootme}/byacc/byacc ; \
57 else echo bison -y ; \
60 LEX
= `if [ -f $${rootme}/flex/flex ] ; \
61 then echo $${rootme}/flex/flex ; \
64 MAKEINFO
= `if [ -f $${rootme}/texinfo/C/makeinfo ] ; \
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 [ -f $${rootme}/gcc/gcc ] ; \
78 then echo $${rootme}/gcc/gcc -B$${rootme}/gcc/ ; \
81 XTRAFLAGS
= `if [ -f $${rootme}/gcc/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
112 @rootme
=`pwd` ; export rootme
; $(MAKE
) $(FLAGS_TO_PASS
) subdir_do DO
=info "DODIRS=$(SUBDIRS)"
114 # Note libg++ has to be handled specially (we can't compile it with CC=cc).
116 @rootme
=`pwd` ; export rootme
; $(MAKE
) $(FLAGS_TO_PASS
) subdir_do DO
=check \
117 "DODIRS=`echo $(SUBDIRS) | sed -e \"s/libg\+\+//\""
118 @rootme
=`pwd` ; export rootme
; $(MAKE
) $(FLAGS_TO_PASS
) subdir_do DO
=check \
119 "DODIRS=libg++" "CC=${GXX}" "XTRAFLAGS=${XTRAFLAGS}"
122 @
$(MAKE
) $(FLAGS_TO_PASS
) subdir_do DO
=clean-info
"DODIRS=$(SUBDIRS)"
124 install-info
: install-info-dirs
force
125 -parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
126 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
127 -if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
128 @
$(MAKE
) $(FLAGS_TO_PASS
) subdir_do DO
=install-info
"DODIRS=$(SUBDIRS)"
129 @
$(MAKE
) $(FLAGS_TO_PASS
) dir.
info install-dir.
info
132 -parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
133 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
134 -if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
135 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info
137 all.normal
: all-autoconf all-libiberty all-mmalloc all-texinfo \
138 all-byacc all-flex all-bfd all-ld all-gas all-tgas all-gcc \
139 all-binutils all-libg
++ all-readline all-gdb \
140 all-make all-rcs all-cvs all-diff all-grep \
141 all-patch all-emacs all-ispell all-etc \
142 all-newlib all-gprof all-send_pr all-libm
144 all.cross
: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
145 all-bfd all-readline all-gdb all-binutils all-gcc all-newlib
146 # $(MAKE) $(FLAGS_TO_PASS) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
148 clean: clean-autoconf clean-libiberty clean-mmalloc clean-texinfo \
149 clean-bfd clean-newlib clean-binutils clean-flex \
150 clean-byacc clean-ld clean-gas clean-etc \
151 clean-gcc clean-readline clean-glob clean-gdb \
152 clean-make clean-diff clean-grep clean-rcs \
153 clean-cvs clean-patch clean-emacs clean-ispell \
154 clean-libg
++ clean-gprof clean-send_pr clean-libm
155 -rm -rf
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
160 install: $(INSTALL_TARGET
)
161 -parent
=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
162 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
163 -if
[ -d
$(man1dir) ] ; then true
; else mkdir
$(man1dir) ; fi
165 install.
all: install-no-fixedincludes
166 @if
[ -f .
/gcc
/Makefile
] ; then \
167 rootme
=`pwd` ; export rootme
; \
169 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
174 install-no-fixedincludes
: install-dirs gcc-no-fixedincludes \
203 gcc-no-fixedincludes
:
204 @if
[ -f .
/gcc
/Makefile
] ; then \
205 rootme
=`pwd` ; export rootme
; \
207 $(MAKE
) $(FLAGS_TO_PASS
) install install-man \
208 "INSTALL_HEADERS=install-common-headers install-float-h install-limits-h") ; \
213 install.cross
: install-dirs install-libiberty install-mmalloc \
214 install-binutils install-byacc install-flex \
215 install-ld install-gas install-readline \
216 install-glob install-gdb install-mmalloc \
217 install-newlib install-gcc install-etc
221 @if
[ -f .
/autoconf
/Makefile
] ; then \
222 rootme
=`pwd` ; export rootme
; \
223 (cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
228 clean-autoconf
: force
229 @if
[ -f .
/autoconf
/Makefile
] ; then \
230 rootme
=`pwd` ; export rootme
; \
231 (cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
236 install-autoconf
: force
237 @if
[ -f .
/autoconf
/Makefile
] ; then \
238 rootme
=`pwd` ; export rootme
; \
239 (cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
246 @if
[ -f .
/etc
/Makefile
] ; then \
247 rootme
=`pwd` ; export rootme
; \
248 (cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
254 @if
[ -f .
/etc
/Makefile
] ; then \
255 rootme
=`pwd` ; export rootme
; \
256 (cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
262 @if
[ -f .
/etc
/Makefile
] ; then \
263 rootme
=`pwd` ; export rootme
; \
264 (cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
271 @if
[ -f .
/libiberty
/Makefile
] ; then \
272 rootme
=`pwd` ; export rootme
; \
274 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
279 clean-libiberty
: force
280 @if
[ -f .
/libiberty
/Makefile
] ; then \
281 rootme
=`pwd` ; export rootme
; \
283 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
288 install-libiberty
: force
289 @if
[ -f .
/libiberty
/Makefile
] ; then \
290 rootme
=`pwd` ; export rootme
; \
292 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
299 @if
[ -f .
/mmalloc
/Makefile
] ; then \
300 rootme
=`pwd` ; export rootme
; \
302 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
308 @if
[ -f .
/mmalloc
/Makefile
] ; then \
309 rootme
=`pwd` ; export rootme
; \
311 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
316 install-mmalloc
: force
317 @if
[ -f .
/mmalloc
/Makefile
] ; then \
318 rootme
=`pwd` ; export rootme
; \
320 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
326 all-texinfo
: all-libiberty
327 @if
[ -f .
/texinfo
/Makefile
] ; then \
328 rootme
=`pwd` ; export rootme
; \
329 rootme
=`pwd` ; export rootme
; \
331 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
337 @if
[ -f .
/texinfo
/Makefile
] ; then \
338 rootme
=`pwd` ; export rootme
; \
340 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
345 install-texinfo
: force
346 @if
[ -f .
/texinfo
/Makefile
] ; then \
347 rootme
=`pwd` ; export rootme
; \
349 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
356 @if
[ -f .
/bfd
/Makefile
] ; then \
357 rootme
=`pwd` ; export rootme
; \
359 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
365 @if
[ -f .
/bfd
/Makefile
] ; then \
366 rootme
=`pwd` ; export rootme
; \
368 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
374 @if
[ -f .
/bfd
/Makefile
] ; then \
375 rootme
=`pwd` ; export rootme
; \
377 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
383 all-binutils
: all-libiberty all-bfd all-flex
384 @if
[ -f .
/binutils
/Makefile
] ; then \
385 rootme
=`pwd` ; export rootme
; \
387 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
392 clean-binutils
: force
393 @if
[ -f .
/binutils
/Makefile
] ; then \
394 rootme
=`pwd` ; export rootme
; \
396 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
401 install-binutils
: force
402 @if
[ -f .
/binutils
/Makefile
] ; then \
403 rootme
=`pwd` ; export rootme
; \
405 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
412 @if
[ -f .
/newlib
/Makefile
] ; then \
413 rootme
=`pwd` ; export rootme
; \
415 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
421 @if
[ -f .
/newlib
/Makefile
] ; then \
422 rootme
=`pwd` ; export rootme
; \
424 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
429 install-newlib
: force
430 @if
[ -f .
/newlib
/Makefile
] ; then \
431 rootme
=`pwd` ; export rootme
; \
433 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
439 all-gprof
: all-libiberty all-bfd
440 @if
[ -f .
/gprof
/Makefile
] ; then \
441 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
447 @if
[ -f .
/gprof
/Makefile
] ; then \
448 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
454 @if
[ -f .
/gprof
/Makefile
] ; then \
455 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
462 @if
[ -f .
/byacc
/Makefile
] ; then \
463 rootme
=`pwd` ; export rootme
; \
465 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
471 @if
[ -f .
/byacc
/Makefile
] ; then \
472 rootme
=`pwd` ; export rootme
; \
474 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
480 @if
[ -f .
/byacc
/Makefile
] ; then \
481 rootme
=`pwd` ; export rootme
; \
483 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
489 all-flex
: all-libiberty
490 @if
[ -f .
/flex
/Makefile
] ; then \
491 rootme
=`pwd` ; export rootme
; \
493 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
499 @if
[ -f .
/flex
/Makefile
] ; then \
500 rootme
=`pwd` ; export rootme
; \
502 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
508 @if
[ -f .
/flex
/Makefile
] ; then \
509 rootme
=`pwd` ; export rootme
; \
511 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
516 all-gcc
: all-libiberty all-byacc
517 @if
[ -f .
/gcc
/Makefile
] ; then \
518 rootme
=`pwd` ; export rootme
; \
520 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
526 @if
[ -f .
/gcc
/Makefile
] ; then \
527 rootme
=`pwd` ; export rootme
; \
529 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
535 @if
[ -f .
/gcc
/Makefile
] ; then \
536 rootme
=`pwd` ; export rootme
; \
538 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
545 @if
[ -f .
/readline
/Makefile
] ; then \
546 rootme
=`pwd` ; export rootme
; \
548 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
553 clean-readline
: force
554 @if
[ -f .
/readline
/Makefile
] ; then \
555 rootme
=`pwd` ; export rootme
; \
557 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
562 install-readline
: force
563 @if
[ -f .
/readline
/Makefile
] ; then \
564 rootme
=`pwd` ; export rootme
; \
566 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
573 @if
[ -f .
/glob
/Makefile
] ; then \
574 rootme
=`pwd` ; export rootme
; \
576 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
582 @if
[ -f .
/glob
/Makefile
] ; then \
583 rootme
=`pwd` ; export rootme
; \
585 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
591 @if
[ -f .
/glob
/Makefile
] ; then \
592 rootme
=`pwd` ; export rootme
; \
594 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
600 all-gas
: all-libiberty all-bfd
601 @if
[ -f .
/gas
/Makefile
] ; then \
602 rootme
=`pwd` ; export rootme
; \
604 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
610 @if
[ -f .
/gas
/Makefile
] ; then \
611 rootme
=`pwd` ; export rootme
; \
613 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
619 @if
[ -f .
/gas
/Makefile
] ; then \
620 rootme
=`pwd` ; export rootme
; \
622 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
628 all-tgas
: all-libiberty all-bfd
629 @if
[ -f .
/tgas
/Makefile
] ; then \
630 rootme
=`pwd` ; export rootme
; \
632 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
639 all-ld
: all-libiberty all-bfd all-byacc all-flex
640 @if
[ -f .
/ld/Makefile
] ; then \
641 rootme
=`pwd` ; export rootme
; \
643 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
649 @if
[ -f .
/ld/Makefile
] ; then \
650 rootme
=`pwd` ; export rootme
; \
652 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
658 @if
[ -f .
/ld/Makefile
] ; then \
659 rootme
=`pwd` ; export rootme
; \
661 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
667 all-gdb
: all-bfd all-libiberty all-mmalloc all-readline all-glob all-byacc
668 @if
[ -f .
/gdb
/Makefile
] ; then \
669 rootme
=`pwd` ; export rootme
; \
671 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
677 @if
[ -f .
/gdb
/Makefile
] ; then \
678 rootme
=`pwd` ; export rootme
; \
680 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
686 @if
[ -f .
/gdb
/Makefile
] ; then \
687 rootme
=`pwd` ; export rootme
; \
689 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
695 all-make
: all-libiberty
696 @if
[ -f .
/make
/Makefile
] ; then \
697 rootme
=`pwd` ; export rootme
; \
699 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
705 @if
[ -f .
/make
/Makefile
] ; then \
706 rootme
=`pwd` ; export rootme
; \
708 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
714 @if
[ -f .
/make
/Makefile
] ; then \
715 rootme
=`pwd` ; export rootme
; \
717 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
724 @if
[ -f .
/diff
/Makefile
] ; then \
725 rootme
=`pwd` ; export rootme
; \
727 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
733 @if
[ -f .
/diff
/Makefile
] ; then \
734 rootme
=`pwd` ; export rootme
; \
736 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
742 @if
[ -f .
/diff
/Makefile
] ; then \
743 rootme
=`pwd` ; export rootme
; \
745 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
752 @if
[ -f .
/grep
/Makefile
] ; then \
753 rootme
=`pwd` ; export rootme
; \
755 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
761 @if
[ -f .
/grep
/Makefile
] ; then \
762 rootme
=`pwd` ; export rootme
; \
764 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
770 @if
[ -f .
/grep
/Makefile
] ; then \
771 rootme
=`pwd` ; export rootme
; \
773 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
780 @if
[ -f .
/rcs
/Makefile
] ; then \
781 rootme
=`pwd` ; export rootme
; \
783 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
789 @if
[ -f .
/rcs
/Makefile
] ; then \
790 rootme
=`pwd` ; export rootme
; \
792 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
798 @if
[ -f .
/rcs
/Makefile
] ; then \
799 rootme
=`pwd` ; export rootme
; \
801 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
808 @if
[ -f .
/cvs
/Makefile
] ; then \
809 rootme
=`pwd` ; export rootme
; \
811 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
817 @if
[ -f .
/cvs
/Makefile
] ; then \
818 rootme
=`pwd` ; export rootme
; \
820 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
826 @if
[ -f .
/cvs
/Makefile
] ; then \
827 rootme
=`pwd` ; export rootme
; \
829 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
836 @if
[ -f .
/patch
/Makefile
] ; then \
837 rootme
=`pwd` ; export rootme
; \
839 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
845 @if
[ -f .
/patch
/Makefile
] ; then \
846 rootme
=`pwd` ; export rootme
; \
848 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
854 @if
[ -f .
/patch
/Makefile
] ; then \
855 rootme
=`pwd` ; export rootme
; \
857 $(MAKE
) $(FLAGS_TO_PASS
) \
859 man1dir=$(man1dir) install) ; \
866 @if
[ -f .
/emacs
/Makefile
] ; then \
867 rootme
=`pwd` ; export rootme
; \
869 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
875 @if
[ -f .
/emacs
/Makefile
] ; then \
876 rootme
=`pwd` ; export rootme
; \
878 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
884 @if
[ -f .
/emacs
/Makefile
] ; then \
885 rootme
=`pwd` ; export rootme
; \
887 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
893 all-ispell
: all-emacs
894 @if
[ -f .
/ispell
/Makefile
] ; then \
895 rootme
=`pwd` ; export rootme
; \
897 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
903 @if
[ -f .
/ispell
/Makefile
] ; then \
904 rootme
=`pwd` ; export rootme
; \
906 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
911 install-ispell
: force
912 @if
[ -f .
/ispell
/Makefile
] ; then \
913 rootme
=`pwd` ; export rootme
; \
915 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
922 @if
[ -f .
/send_pr
/Makefile
] ; then \
923 rootme
=`pwd` ; export rootme
; \
925 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
931 @if
[ -f .
/send_pr
/Makefile
] ; then \
932 rootme
=`pwd` ; export rootme
; \
934 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
939 install-send_pr
: force
940 @if
[ -f .
/send_pr
/Makefile
] ; then \
941 rootme
=`pwd` ; export rootme
; \
943 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
950 @if
[ -f .
/libm
/Makefile
] ; then \
951 rootme
=`pwd` ; export rootme
; \
953 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
959 @if
[ -f .
/libm
/Makefile
] ; then \
960 rootme
=`pwd` ; export rootme
; \
962 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
968 @if
[ -f .
/libm
/Makefile
] ; then \
969 rootme
=`pwd` ; export rootme
; \
971 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
978 all-libg
++: all-gas all-ld all-gcc
979 @if
[ -f .
/libg
++/Makefile
] ; then \
980 rootme
=`pwd` ; export rootme
; \
982 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" all) ; \
988 @if
[ -f .
/libg
++/Makefile
] ; then \
989 rootme
=`pwd` ; export rootme
; \
991 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" clean) ; \
996 install-libg
++: force
997 @if
[ -f .
/libg
++/Makefile
] ; then \
998 rootme
=`pwd` ; export rootme
; \
1000 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" install) ; \
1005 ### other supporting targets
1006 # this is a bad hack.
1007 all.xclib
: all.normal
1008 if
[ -f clib
/Makefile
] ; then \
1009 (cd clib
; $(MAKE
) $(FLAGS_TO_PASS
)) ; \
1013 @for i in
$(DODIRS
); do \
1014 if
[ -f .
/$$i/localenv
] ; then \
1015 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1016 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1017 else exit
1 ; fi
; \
1018 else if
[ -f .
/$$i/Makefile
] ; then \
1019 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1020 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1021 else exit
1 ; fi
; \
1026 # The "else true" stuff is for Ultrix; the shell returns the exit code
1027 # of the "if" command, if no commands are run in the "then" or "else" part,
1028 # causing Make to quit.
1052 for i in
$(MAKEDIRS
) ; do \
1053 echo Making
$$i...
; \
1054 parent
=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
1055 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
; \
1056 if
[ ! -d
$$i ] ; then \
1057 if mkdir
$$i ; then \
1073 if
[ -d
$(prefix) ] ; then true
; else mkdir
$(prefix) ; fi
1074 # if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
1075 # if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
1078 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
1079 mv
-f
dir.
info.new
dir.
info
1088 @for i in
$(SUBDIRS
); \
1092 wd
=`basename $$pwd`; \
1093 for j in
`$(MAKE) ls`; \
1101 # with the gnu make, this is done automatically.
1103 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
1104 $(SHELL
) .
/config.status
1107 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1109 DEVO_SUPPORT
= README cfg-paper.texi Makefile.in configure configure.in \
1110 config.sub config configure.man move-if-change
1111 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc readline glob
1112 GDB_SUPPORT_FILES
= $(GDB_SUPPORT_DIRS
) texinfo
/fsf
/texinfo.
tex
1114 setup-dirs
: force_update
1117 .
/configure
-rm sun4
1118 chmod og
=u
`find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1120 bfd.ilrt.
tar.Z
: setup-dirs
1121 rm -f bfd.ilrt.
tar.Z
1122 tar cf
- $(DEVO_SUPPORT
) $(GDB_SUPPORT_FILES
) \
1123 | compress
-v
>bfd.ilrt.
tar.Z
1125 gdb.
tar.Z
: setup-dirs
1126 (cd gdb
; $(MAKE
) -f Makefile.in make-proto-gdb.
dir)
1127 $(MAKE
) $(MFLAGS
) -f Makefile.in make-gdb.
tar.Z
1129 make-gdb.
tar.Z
: $(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb texinfo
/fsf
/texinfo.
tex
1130 rm -rf proto-toplev
; mkdir proto-toplev
1131 ln
-s ..
/gdb
/proto-gdb.
dir proto-toplev
/gdb
1132 (cd proto-toplev
; for i in
$(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
); do \
1135 # Put only one copy (four hard links) of COPYING in the tar file.
1136 rm proto-toplev
/bfd
/COPYING
1137 ln proto-toplev
/gdb
/COPYING proto-toplev
/bfd
/COPYING
1138 rm proto-toplev
/include/COPYING
1139 ln proto-toplev
/gdb
/COPYING proto-toplev
/include/COPYING
1140 rm proto-toplev
/readline
/COPYING
1141 ln proto-toplev
/gdb
/COPYING proto-toplev
/readline
/COPYING
1142 # Take out texinfo from configurable dirs
1143 rm proto-toplev
/configure.in
1144 sed
'/^configdirs=/s/texinfo //' <configure.in
>proto-toplev
/configure.in
1145 # Take out glob from buildable dirs
1146 rm proto-toplev
/Makefile.in
1148 sed
-e
'/^SUBDIRS =/s/glob //' \
1149 -e
'/^all\.normal: /s/\all-texinfo //' \
1150 -e
'/^clean: /s/clean-texinfo //' \
1151 -e
'/^install\.all: /s/install-texinfo //' \
1152 <Makefile.in
>proto-toplev
/Makefile.in
1154 mkdir proto-toplev
/texinfo
1155 mkdir proto-toplev
/texinfo
/fsf
1156 ln
-s ..
/..
/..
/texinfo
/fsf
/texinfo.
tex proto-toplev
/texinfo
/fsf
/
1157 chmod og
=u
`find proto-toplev -print`
1158 (VER
=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1159 echo
"==> Making gdb-$$VER.tar.Z"; \
1160 ln
-s proto-toplev gdb-
$$VER; \
1161 tar cfh
- gdb-
$$VER \
1162 | compress
-v
>gdb-
$$VER.
tar.Z
)
1168 # end of Makefile.in