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 opcodes
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-opcodes 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-opcodes all-gcc \
147 # $(MAKE) $(FLAGS_TO_PASS) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
149 clean: clean-autoconf clean-libiberty clean-mmalloc clean-texinfo \
150 clean-bfd clean-newlib clean-binutils clean-flex \
151 clean-byacc clean-ld clean-gas clean-etc clean-opcodes \
152 clean-gcc clean-readline clean-glob clean-gdb \
153 clean-make clean-diff clean-grep clean-rcs \
154 clean-cvs clean-patch clean-emacs clean-ispell \
155 clean-libg
++ clean-gprof clean-send_pr clean-libm
156 -rm -rf
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
161 install: $(INSTALL_TARGET
)
162 -parent
=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
163 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
164 -if
[ -d
$(man1dir) ] ; then true
; else mkdir
$(man1dir) ; fi
166 install.
all: install-no-fixedincludes
167 @if
[ -f .
/gcc
/Makefile
] ; then \
168 rootme
=`pwd` ; export rootme
; \
170 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
175 install-no-fixedincludes
: install-dirs gcc-no-fixedincludes \
205 gcc-no-fixedincludes
:
206 @if
[ -f .
/gcc
/Makefile
] ; then \
207 rootme
=`pwd` ; export rootme
; \
209 $(MAKE
) $(FLAGS_TO_PASS
) install install-man \
210 "INSTALL_HEADERS=install-common-headers install-float-h install-limits-h") ; \
215 install.cross
: install-dirs install-libiberty install-mmalloc \
216 install-binutils install-opcodes install-byacc install-flex \
217 install-ld install-gas install-readline \
218 install-glob install-gdb install-mmalloc \
219 install-newlib install-gcc install-etc
223 @if
[ -f .
/autoconf
/Makefile
] ; then \
224 rootme
=`pwd` ; export rootme
; \
225 (cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
230 clean-autoconf
: force
231 @if
[ -f .
/autoconf
/Makefile
] ; then \
232 rootme
=`pwd` ; export rootme
; \
233 (cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
238 install-autoconf
: force
239 @if
[ -f .
/autoconf
/Makefile
] ; then \
240 rootme
=`pwd` ; export rootme
; \
241 (cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
248 @if
[ -f .
/etc
/Makefile
] ; then \
249 rootme
=`pwd` ; export rootme
; \
250 (cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
256 @if
[ -f .
/etc
/Makefile
] ; then \
257 rootme
=`pwd` ; export rootme
; \
258 (cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
264 @if
[ -f .
/etc
/Makefile
] ; then \
265 rootme
=`pwd` ; export rootme
; \
266 (cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
273 @if
[ -f .
/libiberty
/Makefile
] ; then \
274 rootme
=`pwd` ; export rootme
; \
276 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
281 clean-libiberty
: force
282 @if
[ -f .
/libiberty
/Makefile
] ; then \
283 rootme
=`pwd` ; export rootme
; \
285 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
290 install-libiberty
: force
291 @if
[ -f .
/libiberty
/Makefile
] ; then \
292 rootme
=`pwd` ; export rootme
; \
294 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
301 @if
[ -f .
/mmalloc
/Makefile
] ; then \
302 rootme
=`pwd` ; export rootme
; \
304 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
310 @if
[ -f .
/mmalloc
/Makefile
] ; then \
311 rootme
=`pwd` ; export rootme
; \
313 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
318 install-mmalloc
: force
319 @if
[ -f .
/mmalloc
/Makefile
] ; then \
320 rootme
=`pwd` ; export rootme
; \
322 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
328 all-texinfo
: all-libiberty
329 @if
[ -f .
/texinfo
/Makefile
] ; then \
330 rootme
=`pwd` ; export rootme
; \
331 rootme
=`pwd` ; export rootme
; \
333 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
339 @if
[ -f .
/texinfo
/Makefile
] ; then \
340 rootme
=`pwd` ; export rootme
; \
342 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
347 install-texinfo
: force
348 @if
[ -f .
/texinfo
/Makefile
] ; then \
349 rootme
=`pwd` ; export rootme
; \
351 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
358 @if
[ -f .
/bfd
/Makefile
] ; then \
359 rootme
=`pwd` ; export rootme
; \
361 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
367 @if
[ -f .
/bfd
/Makefile
] ; then \
368 rootme
=`pwd` ; export rootme
; \
370 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
376 @if
[ -f .
/bfd
/Makefile
] ; then \
377 rootme
=`pwd` ; export rootme
; \
379 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
387 @if
[ -f .
/opcodes
/Makefile
] ; then \
388 rootme
=`pwd` ; export rootme
; \
390 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
396 @if
[ -f .
/opcodes
/Makefile
] ; then \
397 rootme
=`pwd` ; export rootme
; \
399 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
404 install-opcodes
: force
405 @if
[ -f .
/opcodes
/Makefile
] ; then \
406 rootme
=`pwd` ; export rootme
; \
408 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
414 all-binutils
: all-opcodes all-libiberty all-bfd all-flex
415 @if
[ -f .
/binutils
/Makefile
] ; then \
416 rootme
=`pwd` ; export rootme
; \
418 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
423 clean-binutils
: force
424 @if
[ -f .
/binutils
/Makefile
] ; then \
425 rootme
=`pwd` ; export rootme
; \
427 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
432 install-binutils
: force
433 @if
[ -f .
/binutils
/Makefile
] ; then \
434 rootme
=`pwd` ; export rootme
; \
436 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
443 @if
[ -f .
/newlib
/Makefile
] ; then \
444 rootme
=`pwd` ; export rootme
; \
446 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
452 @if
[ -f .
/newlib
/Makefile
] ; then \
453 rootme
=`pwd` ; export rootme
; \
455 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
460 install-newlib
: force
461 @if
[ -f .
/newlib
/Makefile
] ; then \
462 rootme
=`pwd` ; export rootme
; \
464 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
470 all-gprof
: all-libiberty all-bfd
471 @if
[ -f .
/gprof
/Makefile
] ; then \
472 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
478 @if
[ -f .
/gprof
/Makefile
] ; then \
479 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
485 @if
[ -f .
/gprof
/Makefile
] ; then \
486 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
493 @if
[ -f .
/byacc
/Makefile
] ; then \
494 rootme
=`pwd` ; export rootme
; \
496 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
502 @if
[ -f .
/byacc
/Makefile
] ; then \
503 rootme
=`pwd` ; export rootme
; \
505 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
511 @if
[ -f .
/byacc
/Makefile
] ; then \
512 rootme
=`pwd` ; export rootme
; \
514 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
520 all-flex
: all-libiberty
521 @if
[ -f .
/flex
/Makefile
] ; then \
522 rootme
=`pwd` ; export rootme
; \
524 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
530 @if
[ -f .
/flex
/Makefile
] ; then \
531 rootme
=`pwd` ; export rootme
; \
533 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
539 @if
[ -f .
/flex
/Makefile
] ; then \
540 rootme
=`pwd` ; export rootme
; \
542 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
547 all-gcc
: all-libiberty all-byacc
548 @if
[ -f .
/gcc
/Makefile
] ; then \
549 rootme
=`pwd` ; export rootme
; \
551 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
557 @if
[ -f .
/gcc
/Makefile
] ; then \
558 rootme
=`pwd` ; export rootme
; \
560 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
566 @if
[ -f .
/gcc
/Makefile
] ; then \
567 rootme
=`pwd` ; export rootme
; \
569 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
576 @if
[ -f .
/readline
/Makefile
] ; then \
577 rootme
=`pwd` ; export rootme
; \
579 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
584 clean-readline
: force
585 @if
[ -f .
/readline
/Makefile
] ; then \
586 rootme
=`pwd` ; export rootme
; \
588 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
593 install-readline
: force
594 @if
[ -f .
/readline
/Makefile
] ; then \
595 rootme
=`pwd` ; export rootme
; \
597 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
604 @if
[ -f .
/glob
/Makefile
] ; then \
605 rootme
=`pwd` ; export rootme
; \
607 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
613 @if
[ -f .
/glob
/Makefile
] ; then \
614 rootme
=`pwd` ; export rootme
; \
616 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
622 @if
[ -f .
/glob
/Makefile
] ; then \
623 rootme
=`pwd` ; export rootme
; \
625 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
631 all-gas
: all-libiberty all-bfd
632 @if
[ -f .
/gas
/Makefile
] ; then \
633 rootme
=`pwd` ; export rootme
; \
635 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
641 @if
[ -f .
/gas
/Makefile
] ; then \
642 rootme
=`pwd` ; export rootme
; \
644 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
650 @if
[ -f .
/gas
/Makefile
] ; then \
651 rootme
=`pwd` ; export rootme
; \
653 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
659 all-tgas
: all-libiberty all-bfd
660 @if
[ -f .
/tgas
/Makefile
] ; then \
661 rootme
=`pwd` ; export rootme
; \
663 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
670 all-ld
: all-libiberty all-bfd all-byacc all-flex
671 @if
[ -f .
/ld/Makefile
] ; then \
672 rootme
=`pwd` ; export rootme
; \
674 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
680 @if
[ -f .
/ld/Makefile
] ; then \
681 rootme
=`pwd` ; export rootme
; \
683 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
689 @if
[ -f .
/ld/Makefile
] ; then \
690 rootme
=`pwd` ; export rootme
; \
692 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
698 all-gdb
: all-bfd all-libiberty all-mmalloc all-readline all-glob all-byacc
699 @if
[ -f .
/gdb
/Makefile
] ; then \
700 rootme
=`pwd` ; export rootme
; \
702 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
708 @if
[ -f .
/gdb
/Makefile
] ; then \
709 rootme
=`pwd` ; export rootme
; \
711 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
717 @if
[ -f .
/gdb
/Makefile
] ; then \
718 rootme
=`pwd` ; export rootme
; \
720 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
726 all-make
: all-libiberty
727 @if
[ -f .
/make
/Makefile
] ; then \
728 rootme
=`pwd` ; export rootme
; \
730 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
736 @if
[ -f .
/make
/Makefile
] ; then \
737 rootme
=`pwd` ; export rootme
; \
739 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
745 @if
[ -f .
/make
/Makefile
] ; then \
746 rootme
=`pwd` ; export rootme
; \
748 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
755 @if
[ -f .
/diff
/Makefile
] ; then \
756 rootme
=`pwd` ; export rootme
; \
758 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
764 @if
[ -f .
/diff
/Makefile
] ; then \
765 rootme
=`pwd` ; export rootme
; \
767 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
773 @if
[ -f .
/diff
/Makefile
] ; then \
774 rootme
=`pwd` ; export rootme
; \
776 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
783 @if
[ -f .
/grep
/Makefile
] ; then \
784 rootme
=`pwd` ; export rootme
; \
786 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
792 @if
[ -f .
/grep
/Makefile
] ; then \
793 rootme
=`pwd` ; export rootme
; \
795 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
801 @if
[ -f .
/grep
/Makefile
] ; then \
802 rootme
=`pwd` ; export rootme
; \
804 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
811 @if
[ -f .
/rcs
/Makefile
] ; then \
812 rootme
=`pwd` ; export rootme
; \
814 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
820 @if
[ -f .
/rcs
/Makefile
] ; then \
821 rootme
=`pwd` ; export rootme
; \
823 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
829 @if
[ -f .
/rcs
/Makefile
] ; then \
830 rootme
=`pwd` ; export rootme
; \
832 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
839 @if
[ -f .
/cvs
/Makefile
] ; then \
840 rootme
=`pwd` ; export rootme
; \
842 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
848 @if
[ -f .
/cvs
/Makefile
] ; then \
849 rootme
=`pwd` ; export rootme
; \
851 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
857 @if
[ -f .
/cvs
/Makefile
] ; then \
858 rootme
=`pwd` ; export rootme
; \
860 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
867 @if
[ -f .
/patch
/Makefile
] ; then \
868 rootme
=`pwd` ; export rootme
; \
870 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
876 @if
[ -f .
/patch
/Makefile
] ; then \
877 rootme
=`pwd` ; export rootme
; \
879 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
885 @if
[ -f .
/patch
/Makefile
] ; then \
886 rootme
=`pwd` ; export rootme
; \
888 $(MAKE
) $(FLAGS_TO_PASS
) \
890 man1dir=$(man1dir) install) ; \
897 @if
[ -f .
/emacs
/Makefile
] ; then \
898 rootme
=`pwd` ; export rootme
; \
900 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
906 @if
[ -f .
/emacs
/Makefile
] ; then \
907 rootme
=`pwd` ; export rootme
; \
909 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
915 @if
[ -f .
/emacs
/Makefile
] ; then \
916 rootme
=`pwd` ; export rootme
; \
918 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
924 all-ispell
: all-emacs
925 @if
[ -f .
/ispell
/Makefile
] ; then \
926 rootme
=`pwd` ; export rootme
; \
928 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
934 @if
[ -f .
/ispell
/Makefile
] ; then \
935 rootme
=`pwd` ; export rootme
; \
937 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
942 install-ispell
: force
943 @if
[ -f .
/ispell
/Makefile
] ; then \
944 rootme
=`pwd` ; export rootme
; \
946 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
953 @if
[ -f .
/send_pr
/Makefile
] ; then \
954 rootme
=`pwd` ; export rootme
; \
956 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
962 @if
[ -f .
/send_pr
/Makefile
] ; then \
963 rootme
=`pwd` ; export rootme
; \
965 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
970 install-send_pr
: force
971 @if
[ -f .
/send_pr
/Makefile
] ; then \
972 rootme
=`pwd` ; export rootme
; \
974 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
981 @if
[ -f .
/libm
/Makefile
] ; then \
982 rootme
=`pwd` ; export rootme
; \
984 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
990 @if
[ -f .
/libm
/Makefile
] ; then \
991 rootme
=`pwd` ; export rootme
; \
993 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
999 @if
[ -f .
/libm
/Makefile
] ; then \
1000 rootme
=`pwd` ; export rootme
; \
1002 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1009 all-libg
++: all-gas all-ld all-gcc
1010 @if
[ -f .
/libg
++/Makefile
] ; then \
1011 rootme
=`pwd` ; export rootme
; \
1013 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" all) ; \
1019 @if
[ -f .
/libg
++/Makefile
] ; then \
1020 rootme
=`pwd` ; export rootme
; \
1022 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" clean) ; \
1027 install-libg
++: force
1028 @if
[ -f .
/libg
++/Makefile
] ; then \
1029 rootme
=`pwd` ; export rootme
; \
1031 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" install) ; \
1036 ### other supporting targets
1037 # this is a bad hack.
1038 all.xclib
: all.normal
1039 if
[ -f clib
/Makefile
] ; then \
1040 (cd clib
; $(MAKE
) $(FLAGS_TO_PASS
)) ; \
1044 @for i in
$(DODIRS
); do \
1045 if
[ -f .
/$$i/localenv
] ; then \
1046 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1047 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1048 else exit
1 ; fi
; \
1049 else if
[ -f .
/$$i/Makefile
] ; then \
1050 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1051 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1052 else exit
1 ; fi
; \
1057 # The "else true" stuff is for Ultrix; the shell returns the exit code
1058 # of the "if" command, if no commands are run in the "then" or "else" part,
1059 # causing Make to quit.
1083 for i in
$(MAKEDIRS
) ; do \
1084 echo Making
$$i...
; \
1085 parent
=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
1086 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
; \
1087 if
[ ! -d
$$i ] ; then \
1088 if mkdir
$$i ; then \
1104 if
[ -d
$(prefix) ] ; then true
; else mkdir
$(prefix) ; fi
1105 # if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
1106 # if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
1109 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
1110 mv
-f
dir.
info.new
dir.
info
1119 @for i in
$(SUBDIRS
); \
1123 wd
=`basename $$pwd`; \
1124 for j in
`$(MAKE) ls`; \
1132 # with the gnu make, this is done automatically.
1134 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
1135 $(SHELL
) .
/config.status
1138 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1140 DEVO_SUPPORT
= README cfg-paper.texi Makefile.in configure configure.in \
1141 config.sub config configure.man move-if-change
1142 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc readline glob
1143 GDB_SUPPORT_FILES
= $(GDB_SUPPORT_DIRS
) texinfo
/fsf
/texinfo.
tex
1145 setup-dirs
: force_update
1148 .
/configure
-rm sun4
1149 chmod og
=u
`find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1151 bfd.ilrt.
tar.Z
: setup-dirs
1152 rm -f bfd.ilrt.
tar.Z
1153 tar cf
- $(DEVO_SUPPORT
) $(GDB_SUPPORT_FILES
) \
1154 | compress
-v
>bfd.ilrt.
tar.Z
1156 gdb.
tar.Z
: setup-dirs
1157 (cd gdb
; $(MAKE
) -f Makefile.in make-proto-gdb.
dir)
1158 $(MAKE
) $(MFLAGS
) -f Makefile.in make-gdb.
tar.Z
1160 make-gdb.
tar.Z
: $(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb texinfo
/fsf
/texinfo.
tex
1161 rm -rf proto-toplev
; mkdir proto-toplev
1162 ln
-s ..
/gdb
/proto-gdb.
dir proto-toplev
/gdb
1163 (cd proto-toplev
; for i in
$(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
); do \
1166 # Put only one copy (four hard links) of COPYING in the tar file.
1167 rm proto-toplev
/bfd
/COPYING
1168 ln proto-toplev
/gdb
/COPYING proto-toplev
/bfd
/COPYING
1169 rm proto-toplev
/include/COPYING
1170 ln proto-toplev
/gdb
/COPYING proto-toplev
/include/COPYING
1171 rm proto-toplev
/readline
/COPYING
1172 ln proto-toplev
/gdb
/COPYING proto-toplev
/readline
/COPYING
1173 # Take out texinfo from configurable dirs
1174 rm proto-toplev
/configure.in
1175 sed
'/^configdirs=/s/texinfo //' <configure.in
>proto-toplev
/configure.in
1176 # Take out glob from buildable dirs
1177 rm proto-toplev
/Makefile.in
1179 sed
-e
'/^SUBDIRS =/s/glob //' \
1180 -e
'/^all\.normal: /s/\all-texinfo //' \
1181 -e
'/^clean: /s/clean-texinfo //' \
1182 -e
'/^install\.all: /s/install-texinfo //' \
1183 <Makefile.in
>proto-toplev
/Makefile.in
1185 mkdir proto-toplev
/texinfo
1186 mkdir proto-toplev
/texinfo
/fsf
1187 ln
-s ..
/..
/..
/texinfo
/fsf
/texinfo.
tex proto-toplev
/texinfo
/fsf
/
1188 chmod og
=u
`find proto-toplev -print`
1189 (VER
=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1190 echo
"==> Making gdb-$$VER.tar.Z"; \
1191 ln
-s proto-toplev gdb-
$$VER; \
1192 tar cfh
- gdb-
$$VER \
1193 | compress
-v
>gdb-
$$VER.
tar.Z
)
1199 # end of Makefile.in