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 -S$${rootme}/flex/flex.skel ; \
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 [ -d
$(infodir) ] || mkdir
$(infodir)
136 @
$(MAKE
) $(FLAGS_TO_PASS
) subdir_do DO
=install-info
"DODIRS=$(SUBDIRS)"
137 $(INSTALL_DATA
) cfg-paper.
info $(infodir)/cfg-paper.
info
138 $(INSTALL_DATA
) configure.
info $(infodir)/configure.
info
139 $(INSTALL_DATA
) standards.
info $(infodir)/standards.
info
140 @
$(MAKE
) $(FLAGS_TO_PASS
) dir.
info install-dir.
info
143 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info
145 all.normal
: all-autoconf all-libiberty all-mmalloc all-texinfo \
146 all-byacc all-flex all-bfd all-ld all-gas all-tgas all-gcc \
147 all-binutils all-libg
++ all-readline all-gdb \
148 all-make all-rcs all-cvs all-diff all-grep \
149 all-patch all-emacs all-ispell \
150 all-newlib all-gprof all-send_pr all-libm
152 all.cross
: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
153 all-bfd all-readline all-gdb all-binutils all-gcc all-newlib
154 # $(MAKE) $(FLAGS_TO_PASS) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
156 clean: clean-autoconf clean-libiberty clean-mmalloc clean-texinfo \
157 clean-bfd clean-newlib clean-binutils clean-flex \
158 clean-byacc clean-ld clean-gas \
159 clean-gcc clean-readline clean-glob clean-gdb \
160 clean-make clean-diff clean-grep clean-rcs \
161 clean-cvs clean-patch clean-emacs clean-ispell \
162 clean-libg
++ clean-gprof clean-send_pr clean-libm
163 -rm -rf
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
168 install: $(INSTALL_TARGET
) $(srcdir)/configure.man
169 $(INSTALL_DATA
) $(srcdir)/configure.man
$(man1dir)/configure
.1
171 install.
all: install-no-fixedincludes
172 @if
[ -f .
/gcc
/Makefile
] ; then \
173 rootme
=`pwd` ; export rootme
; \
175 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
180 install-no-fixedincludes
: install-dirs gcc-no-fixedincludes \
208 gcc-no-fixedincludes
:
209 @if
[ -f .
/gcc
/Makefile
] ; then \
210 rootme
=`pwd` ; export rootme
; \
212 $(MAKE
) $(FLAGS_TO_PASS
) install install-man \
213 "INSTALL_HEADERS=install-common-headers install-float-h install-limits-h") ; \
218 install.cross
: install-dirs install-libiberty install-mmalloc \
219 install-binutils install-byacc install-flex \
220 install-ld install-gas install-readline \
221 install-glob install-gdb install-mmalloc \
222 install-newlib install-gcc
226 @if
[ -f .
/autoconf
/Makefile
] ; then \
227 rootme
=`pwd` ; export rootme
; \
229 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
234 clean-autoconf
: force
235 @if
[ -f .
/autoconf
/Makefile
] ; then \
236 rootme
=`pwd` ; export rootme
; \
238 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
243 install-autoconf
: force
244 @if
[ -f .
/autoconf
/Makefile
] ; then \
245 rootme
=`pwd` ; export rootme
; \
247 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
254 @if
[ -f .
/libiberty
/Makefile
] ; then \
255 rootme
=`pwd` ; export rootme
; \
257 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
262 clean-libiberty
: force
263 @if
[ -f .
/libiberty
/Makefile
] ; then \
264 rootme
=`pwd` ; export rootme
; \
266 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
271 install-libiberty
: force
272 @if
[ -f .
/libiberty
/Makefile
] ; then \
273 rootme
=`pwd` ; export rootme
; \
275 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
282 @if
[ -f .
/mmalloc
/Makefile
] ; then \
283 rootme
=`pwd` ; export rootme
; \
285 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
291 @if
[ -f .
/mmalloc
/Makefile
] ; then \
292 rootme
=`pwd` ; export rootme
; \
294 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
299 install-mmalloc
: force
300 @if
[ -f .
/mmalloc
/Makefile
] ; then \
301 rootme
=`pwd` ; export rootme
; \
303 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
309 all-texinfo
: all-libiberty
310 @if
[ -f .
/texinfo
/Makefile
] ; then \
311 rootme
=`pwd` ; export rootme
; \
312 rootme
=`pwd` ; export rootme
; \
314 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
320 @if
[ -f .
/texinfo
/Makefile
] ; then \
321 rootme
=`pwd` ; export rootme
; \
323 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
328 install-texinfo
: force
329 @if
[ -f .
/texinfo
/Makefile
] ; then \
330 rootme
=`pwd` ; export rootme
; \
332 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
339 @if
[ -f .
/bfd
/Makefile
] ; then \
340 rootme
=`pwd` ; export rootme
; \
342 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
348 @if
[ -f .
/bfd
/Makefile
] ; then \
349 rootme
=`pwd` ; export rootme
; \
351 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
357 @if
[ -f .
/bfd
/Makefile
] ; then \
358 rootme
=`pwd` ; export rootme
; \
360 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
366 all-binutils
: all-libiberty all-bfd all-flex
367 @if
[ -f .
/binutils
/Makefile
] ; then \
368 rootme
=`pwd` ; export rootme
; \
370 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
375 clean-binutils
: force
376 @if
[ -f .
/binutils
/Makefile
] ; then \
377 rootme
=`pwd` ; export rootme
; \
379 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
384 install-binutils
: force
385 @if
[ -f .
/binutils
/Makefile
] ; then \
386 rootme
=`pwd` ; export rootme
; \
388 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
395 @if
[ -f .
/newlib
/Makefile
] ; then \
396 rootme
=`pwd` ; export rootme
; \
398 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
404 @if
[ -f .
/newlib
/Makefile
] ; then \
405 rootme
=`pwd` ; export rootme
; \
407 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
412 install-newlib
: force
413 @if
[ -f .
/newlib
/Makefile
] ; then \
414 rootme
=`pwd` ; export rootme
; \
416 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
422 all-gprof
: all-libiberty all-bfd
423 @if
[ -f .
/gprof
/Makefile
] ; then \
424 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
430 @if
[ -f .
/gprof
/Makefile
] ; then \
431 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
437 @if
[ -f .
/gprof
/Makefile
] ; then \
438 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
445 @if
[ -f .
/byacc
/Makefile
] ; then \
446 rootme
=`pwd` ; export rootme
; \
448 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
454 @if
[ -f .
/byacc
/Makefile
] ; then \
455 rootme
=`pwd` ; export rootme
; \
457 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
463 @if
[ -f .
/byacc
/Makefile
] ; then \
464 rootme
=`pwd` ; export rootme
; \
466 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
472 all-flex
: all-libiberty
473 @if
[ -f .
/flex
/Makefile
] ; then \
474 rootme
=`pwd` ; export rootme
; \
476 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
482 @if
[ -f .
/flex
/Makefile
] ; then \
483 rootme
=`pwd` ; export rootme
; \
485 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
491 @if
[ -f .
/flex
/Makefile
] ; then \
492 rootme
=`pwd` ; export rootme
; \
494 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
499 all-gcc
: all-libiberty all-byacc
500 @if
[ -f .
/gcc
/Makefile
] ; then \
501 rootme
=`pwd` ; export rootme
; \
503 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
509 @if
[ -f .
/gcc
/Makefile
] ; then \
510 rootme
=`pwd` ; export rootme
; \
512 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
518 @if
[ -f .
/gcc
/Makefile
] ; then \
519 rootme
=`pwd` ; export rootme
; \
521 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
528 @if
[ -f .
/readline
/Makefile
] ; then \
529 rootme
=`pwd` ; export rootme
; \
531 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
536 clean-readline
: force
537 @if
[ -f .
/readline
/Makefile
] ; then \
538 rootme
=`pwd` ; export rootme
; \
540 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
545 install-readline
: force
546 @if
[ -f .
/readline
/Makefile
] ; then \
547 rootme
=`pwd` ; export rootme
; \
549 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
556 @if
[ -f .
/glob
/Makefile
] ; then \
557 rootme
=`pwd` ; export rootme
; \
559 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
565 @if
[ -f .
/glob
/Makefile
] ; then \
566 rootme
=`pwd` ; export rootme
; \
568 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
574 @if
[ -f .
/glob
/Makefile
] ; then \
575 rootme
=`pwd` ; export rootme
; \
577 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
583 all-gas
: all-libiberty all-bfd
584 @if
[ -f .
/gas
/Makefile
] ; then \
585 rootme
=`pwd` ; export rootme
; \
587 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
593 @if
[ -f .
/gas
/Makefile
] ; then \
594 rootme
=`pwd` ; export rootme
; \
596 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
602 @if
[ -f .
/gas
/Makefile
] ; then \
603 rootme
=`pwd` ; export rootme
; \
605 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
611 all-tgas
: all-libiberty all-bfd
612 @if
[ -f .
/tgas
/Makefile
] ; then \
613 rootme
=`pwd` ; export rootme
; \
615 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
622 all-ld
: all-libiberty all-bfd all-byacc all-flex
623 @if
[ -f .
/ld/Makefile
] ; then \
624 rootme
=`pwd` ; export rootme
; \
626 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
632 @if
[ -f .
/ld/Makefile
] ; then \
633 rootme
=`pwd` ; export rootme
; \
635 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
641 @if
[ -f .
/ld/Makefile
] ; then \
642 rootme
=`pwd` ; export rootme
; \
644 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
650 all-gdb
: all-bfd all-libiberty all-mmalloc all-readline all-glob all-byacc
651 @if
[ -f .
/gdb
/Makefile
] ; then \
652 rootme
=`pwd` ; export rootme
; \
654 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
660 @if
[ -f .
/gdb
/Makefile
] ; then \
661 rootme
=`pwd` ; export rootme
; \
663 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
669 @if
[ -f .
/gdb
/Makefile
] ; then \
670 rootme
=`pwd` ; export rootme
; \
672 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
678 all-make
: all-libiberty
679 @if
[ -f .
/make
/Makefile
] ; then \
680 rootme
=`pwd` ; export rootme
; \
682 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
688 @if
[ -f .
/make
/Makefile
] ; then \
689 rootme
=`pwd` ; export rootme
; \
691 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
697 @if
[ -f .
/make
/Makefile
] ; then \
698 rootme
=`pwd` ; export rootme
; \
700 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
707 @if
[ -f .
/diff
/Makefile
] ; then \
708 rootme
=`pwd` ; export rootme
; \
710 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
716 @if
[ -f .
/diff
/Makefile
] ; then \
717 rootme
=`pwd` ; export rootme
; \
719 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
725 @if
[ -f .
/diff
/Makefile
] ; then \
726 rootme
=`pwd` ; export rootme
; \
728 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
735 @if
[ -f .
/grep
/Makefile
] ; then \
736 rootme
=`pwd` ; export rootme
; \
738 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
744 @if
[ -f .
/grep
/Makefile
] ; then \
745 rootme
=`pwd` ; export rootme
; \
747 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
753 @if
[ -f .
/grep
/Makefile
] ; then \
754 rootme
=`pwd` ; export rootme
; \
756 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
763 @if
[ -f .
/rcs
/Makefile
] ; then \
764 rootme
=`pwd` ; export rootme
; \
766 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
772 @if
[ -f .
/rcs
/Makefile
] ; then \
773 rootme
=`pwd` ; export rootme
; \
775 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
781 @if
[ -f .
/rcs
/Makefile
] ; then \
782 rootme
=`pwd` ; export rootme
; \
784 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
791 @if
[ -f .
/cvs
/Makefile
] ; then \
792 rootme
=`pwd` ; export rootme
; \
794 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
800 @if
[ -f .
/cvs
/Makefile
] ; then \
801 rootme
=`pwd` ; export rootme
; \
803 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
809 @if
[ -f .
/cvs
/Makefile
] ; then \
810 rootme
=`pwd` ; export rootme
; \
812 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
819 @if
[ -f .
/patch
/Makefile
] ; then \
820 rootme
=`pwd` ; export rootme
; \
822 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
828 @if
[ -f .
/patch
/Makefile
] ; then \
829 rootme
=`pwd` ; export rootme
; \
831 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
837 @if
[ -f .
/patch
/Makefile
] ; then \
838 rootme
=`pwd` ; export rootme
; \
840 $(MAKE
) $(FLAGS_TO_PASS
) \
842 man1dir=$(man1dir) install) ; \
849 @if
[ -f .
/emacs
/Makefile
] ; then \
850 rootme
=`pwd` ; export rootme
; \
852 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
858 @if
[ -f .
/emacs
/Makefile
] ; then \
859 rootme
=`pwd` ; export rootme
; \
861 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
867 @if
[ -f .
/emacs
/Makefile
] ; then \
868 rootme
=`pwd` ; export rootme
; \
870 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
876 all-ispell
: all-emacs
877 @if
[ -f .
/ispell
/Makefile
] ; then \
878 rootme
=`pwd` ; export rootme
; \
880 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
886 @if
[ -f .
/ispell
/Makefile
] ; then \
887 rootme
=`pwd` ; export rootme
; \
889 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
894 install-ispell
: force
895 @if
[ -f .
/ispell
/Makefile
] ; then \
896 rootme
=`pwd` ; export rootme
; \
898 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
905 @if
[ -f .
/send_pr
/Makefile
] ; then \
906 rootme
=`pwd` ; export rootme
; \
908 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
914 @if
[ -f .
/send_pr
/Makefile
] ; then \
915 rootme
=`pwd` ; export rootme
; \
917 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
922 install-send_pr
: force
923 @if
[ -f .
/send_pr
/Makefile
] ; then \
924 rootme
=`pwd` ; export rootme
; \
926 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
933 @if
[ -d .
/libm
] ; then \
934 rootme
=`pwd` ; export rootme
; \
936 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
942 @if
[ -d .
/libm
] ; then \
943 rootme
=`pwd` ; export rootme
; \
945 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
951 @if
[ -d .
/libm
] ; then \
952 rootme
=`pwd` ; export rootme
; \
954 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
961 all-libg
++: all-gas all-ld all-gcc
962 @if
[ -f .
/libg
++/Makefile
] ; then \
963 rootme
=`pwd` ; export rootme
; \
965 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" all) ; \
971 @if
[ -f .
/libg
++/Makefile
] ; then \
972 rootme
=`pwd` ; export rootme
; \
974 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" clean) ; \
979 install-libg
++: force
980 @if
[ -f .
/libg
++/Makefile
] ; then \
981 rootme
=`pwd` ; export rootme
; \
983 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" install) ; \
988 ### other supporting targets
989 # this is a bad hack.
990 all.xclib
: all.normal
991 if
[ -d clib
] ; then \
992 (cd clib
; $(MAKE
) $(FLAGS_TO_PASS
)) ; \
996 @for i in
$(DODIRS
); do \
997 if
[ -f .
/$$i/localenv
] ; then \
998 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
999 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1000 else exit
1 ; fi
; \
1001 else if
[ -f .
/$$i/Makefile
] ; then \
1002 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1003 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1004 else exit
1 ; fi
; \
1009 # The "else true" stuff is for Ultrix; the shell returns the exit code
1010 # of the "if" command, if no commands are run in the "then" or "else" part,
1011 # causing Make to quit.
1034 for i in
$(MAKEDIRS
) ; do \
1035 echo Making
$$i...
; \
1036 if
[ ! -d
$$i ] ; then \
1037 if mkdir
$$i ; then \
1052 if
[ -d
$(prefix) ] ; then true
; else mkdir
$(prefix) ; fi
1053 if
[ -d
$(datadir) ] ; then true
; else mkdir
$(datadir) ; fi
1054 if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
1057 $(srcdir)/texinfo
/gen-info-dir
$(infodir) > dir.
info.new
1058 mv
-f
dir.
info.new
dir.
info
1067 @for i in
$(SUBDIRS
); \
1071 wd
=`basename $$pwd`; \
1072 for j in
`$(MAKE) ls`; \
1080 # with the gnu make, this is done automatically.
1082 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
1083 $(SHELL
) .
/config.status
1086 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1088 DEVO_SUPPORT
= README cfg-paper.texi Makefile.in configure configure.in \
1089 config.sub config configure.man move-if-change
1090 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc readline glob
1091 GDB_SUPPORT_FILES
= $(GDB_SUPPORT_DIRS
) texinfo
/fsf
/texinfo.
tex
1093 setup-dirs
: force_update
1096 .
/configure
-rm sun4
1097 chmod og
=u
`find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1099 bfd.ilrt.
tar.Z
: setup-dirs
1100 rm -f bfd.ilrt.
tar.Z
1101 tar cf
- $(DEVO_SUPPORT
) $(GDB_SUPPORT_FILES
) \
1102 | compress
-v
>bfd.ilrt.
tar.Z
1104 gdb.
tar.Z
: setup-dirs
1105 (cd gdb
; $(MAKE
) -f Makefile.in make-proto-gdb.
dir)
1106 $(MAKE
) $(MFLAGS
) -f Makefile.in make-gdb.
tar.Z
1108 make-gdb.
tar.Z
: $(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb texinfo
/fsf
/texinfo.
tex
1109 rm -rf proto-toplev
; mkdir proto-toplev
1110 ln
-s ..
/gdb
/proto-gdb.
dir proto-toplev
/gdb
1111 (cd proto-toplev
; for i in
$(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
); do \
1114 # Put only one copy (four hard links) of COPYING in the tar file.
1115 rm proto-toplev
/bfd
/COPYING
1116 ln proto-toplev
/gdb
/COPYING proto-toplev
/bfd
/COPYING
1117 rm proto-toplev
/include/COPYING
1118 ln proto-toplev
/gdb
/COPYING proto-toplev
/include/COPYING
1119 rm proto-toplev
/readline
/COPYING
1120 ln proto-toplev
/gdb
/COPYING proto-toplev
/readline
/COPYING
1121 # Take out texinfo from configurable dirs
1122 rm proto-toplev
/configure.in
1123 sed
'/^configdirs=/s/texinfo //' <configure.in
>proto-toplev
/configure.in
1124 # Take out glob from buildable dirs
1125 rm proto-toplev
/Makefile.in
1127 sed
-e
'/^SUBDIRS =/s/glob //' \
1128 -e
'/^all\.normal: /s/\all-texinfo //' \
1129 -e
'/^clean: /s/clean-texinfo //' \
1130 -e
'/^install\.all: /s/install-texinfo //' \
1131 <Makefile.in
>proto-toplev
/Makefile.in
1133 mkdir proto-toplev
/texinfo
1134 mkdir proto-toplev
/texinfo
/fsf
1135 ln
-s ..
/..
/..
/texinfo
/fsf
/texinfo.
tex proto-toplev
/texinfo
/fsf
/
1136 chmod og
=u
`find proto-toplev -print`
1137 (VER
=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1138 echo
"==> Making gdb-$$VER.tar.Z"; \
1139 ln
-s proto-toplev gdb-
$$VER; \
1140 tar cfh
- gdb-
$$VER \
1141 | compress
-v
>gdb-
$$VER.
tar.Z
)
1147 # end of Makefile.in