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}/bison ] ; \
56 then echo $${rootme}/bison -L $${rootme}/bison/ -y ; \
58 if [ -d $${rootme}/byacc ] ; \
59 then echo $${rootme}/byacc/byacc ; \
60 else echo bison -y ; \
64 LEX
= `if [ -d $${rootme}/flex ] ; \
65 then echo $${rootme}/flex/flex -S$${rootme}/flex/flex.skel ; \
68 MAKEINFO
= `if [ -d $${rootme}/texinfo/C ] ; \
69 then echo $${rootme}/texinfo/C/makeinfo ; \
70 else echo makeinfo ; fi`
72 SUBDIRS
= libiberty mmalloc glob readline bfd gdb binutils
ld gas tgas gcc libg
++ libgcc clib newlib libm
76 INSTALL_TARGET
= install.
all
81 GXX
= `if [ -d $${rootme}/gcc ] ; \
82 then echo $${rootme}/gcc/gcc -B$${rootme}/gcc/ ; \
85 XTRAFLAGS
= `if [ -d $${rootme}/gcc ] ; \
86 then echo -I$${rootme}/gcc/include ; \
89 #### host and target specific makefile fragments come in here.
94 "exec_prefix=$(exec_prefix)" \
95 "tooldir=$(tooldir)" \
97 "AR_FLAGS=$(AR_FLAGS)" \
101 "LOADLIBES=$(LOADLIBES)" \
102 "LDFLAGS=$(LDFLAGS)" \
105 "MAKEINFO=$(MAKEINFO)" \
106 "INSTALL=$(INSTALL)" \
107 "INSTALL_DATA=$(INSTALL_DATA)" \
108 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
110 .PHONY
: all info install-info clean-info
115 info: cfg-paper.
info configure.
info standards.
info
116 @rootme
=`pwd` ; export rootme
; $(MAKE
) subdir_do DO
=info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS
)
118 # Note libg++ has to be handled specially (we can't compile it with CC=cc).
120 @rootme
=`pwd` ; export rootme
; $(MAKE
) subdir_do DO
=check \
121 "DODIRS=`echo $(SUBDIRS) | sed -e \"s/libg\+\+//\"" $(FLAGS_TO_PASS
)
122 @rootme
=`pwd` ; export rootme
; $(MAKE
) subdir_do DO
=check \
123 "DODIRS=libg++" $(FLAGS_TO_PASS
) "CC=${GXX}" "XTRAFLAGS=${XTRAFLAGS}"
126 @
$(MAKE
) $(FLAGS_TO_PASS
) subdir_do DO
=clean-info
"DODIRS=$(SUBDIRS)"
129 cfg-paper.
info: cfg-paper.texi
130 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o cfg-paper.
info $(srcdir)/cfg-paper.texi
132 configure.
info: configure.texi
133 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o configure.
info $(srcdir)/configure.texi
135 standards.
info: standards.texi
136 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o standards.
info $(srcdir)/standards.texi
138 install-info
: install-info-dirs
force
139 [ -d
$(infodir) ] || mkdir
$(infodir)
140 @
$(MAKE
) $(FLAGS_TO_PASS
) subdir_do DO
=install-info
"DODIRS=$(SUBDIRS)"
141 $(INSTALL_DATA
) cfg-paper.
info $(infodir)/cfg-paper.
info
142 $(INSTALL_DATA
) configure.
info $(infodir)/configure.
info
143 $(INSTALL_DATA
) standards.
info $(infodir)/standards.
info
144 @
$(MAKE
) $(FLAGS_TO_PASS
) dir.
info install-dir.
info
147 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info
149 all.normal
: all-autoconf all-libiberty all-mmalloc all-texinfo \
150 all-bison all-byacc all-flex all-bfd all-ld all-gas all-tgas all-gcc \
151 all-binutils all-libg
++ all-readline all-gdb \
152 all-make all-rcs all-cvs all-diff all-grep \
153 all-patch all-emacs all-ispell \
154 all-newlib all-gprof all-send_pr all-libm
156 all.cross
: all-libiberty all-mmalloc all-gas all-tgas all-byacc all-ld \
157 all-bfd all-libgcc all-readline all-gdb all-newlib
158 # $(MAKE) $(FLAGS_TO_PASS) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
160 clean: clean-autoconf clean-libiberty clean-mmalloc clean-texinfo \
161 clean-bfd clean-newlib clean-binutils clean-flex \
162 clean-bison clean-byacc clean-ld clean-gas \
163 clean-gcc clean-libgcc clean-readline clean-glob clean-gdb \
164 clean-make clean-diff clean-grep clean-rcs \
165 clean-cvs clean-patch clean-emacs clean-ispell \
166 clean-libg
++ clean-gprof clean-send_pr clean-libm
167 -rm -rf
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
172 install: $(INSTALL_TARGET
) $(srcdir)/configure.man
173 $(INSTALL_DATA
) $(srcdir)/configure.man
$(man1dir)/configure
.1
175 install.
all: install-no-fixedincludes
176 @if
[ -f .
/gcc
/Makefile
] ; then \
177 rootme
=`pwd` ; export rootme
; \
179 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
184 install-no-fixedincludes
: install-dirs gcc-no-fixedincludes
185 install-autoconf install-texinfo install-mmalloc \
186 install-libiberty install-bfd install-binutils install-bison \
187 install-byacc install-flex install-ld install-gas \
188 install-gprof install-libgcc install-readline install-glob \
189 install-gdb install-make install-diff install-cvs \
190 install-patch install-emacs install-ispell install-libg
++ \
191 install-newlib install-send_pr install-libm
193 gcc-no-fixedincludes
:
194 @if
[ -f .
/gcc
/Makefile
] ; then \
195 rootme
=`pwd` ; export rootme
; \
197 $(MAKE
) $(FLAGS_TO_PASS
) install install-man \
198 "INSTALL_HEADERS=install-common-headers install-float-h install-limits-h") ; \
203 install.cross
: install-dirs install-libiberty install-mmalloc \
204 install-binutils install-bison install-byacc install-flex \
205 install-ld install-gas install-libgcc install-readline \
206 install-glob install-gdb install-mmalloc install-gprof \
207 install-newlib install-gcc
211 @if
[ -f .
/autoconf
/Makefile
] ; then \
212 rootme
=`pwd` ; export rootme
; \
214 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
219 clean-autoconf
: force
220 @if
[ -f .
/autoconf
/Makefile
] ; then \
221 rootme
=`pwd` ; export rootme
; \
223 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
228 install-autoconf
: force
229 @if
[ -f .
/autoconf
/Makefile
] ; then \
230 rootme
=`pwd` ; export rootme
; \
232 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
239 @if
[ -f .
/libiberty
/Makefile
] ; then \
240 rootme
=`pwd` ; export rootme
; \
242 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
247 clean-libiberty
: force
248 @if
[ -f .
/libiberty
/Makefile
] ; then \
249 rootme
=`pwd` ; export rootme
; \
251 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
256 install-libiberty
: force
257 @if
[ -f .
/libiberty
/Makefile
] ; then \
258 rootme
=`pwd` ; export rootme
; \
260 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
267 @if
[ -f .
/mmalloc
/Makefile
] ; then \
268 rootme
=`pwd` ; export rootme
; \
270 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
276 @if
[ -f .
/mmalloc
/Makefile
] ; then \
277 rootme
=`pwd` ; export rootme
; \
279 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
284 install-mmalloc
: force
285 @if
[ -f .
/mmalloc
/Makefile
] ; then \
286 rootme
=`pwd` ; export rootme
; \
288 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
294 all-texinfo
: all-libiberty
295 @if
[ -f .
/texinfo
/Makefile
] ; then \
296 rootme
=`pwd` ; export rootme
; \
297 rootme
=`pwd` ; export rootme
; \
299 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
305 @if
[ -f .
/texinfo
/Makefile
] ; then \
306 rootme
=`pwd` ; export rootme
; \
308 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
313 install-texinfo
: force
314 @if
[ -f .
/texinfo
/Makefile
] ; then \
315 rootme
=`pwd` ; export rootme
; \
317 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
324 @if
[ -f .
/bfd
/Makefile
] ; then \
325 rootme
=`pwd` ; export rootme
; \
327 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
333 @if
[ -f .
/bfd
/Makefile
] ; then \
334 rootme
=`pwd` ; export rootme
; \
336 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
342 @if
[ -f .
/bfd
/Makefile
] ; then \
343 rootme
=`pwd` ; export rootme
; \
345 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
351 all-binutils
: all-libiberty all-bfd all-flex
352 @if
[ -f .
/binutils
/Makefile
] ; then \
353 rootme
=`pwd` ; export rootme
; \
355 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
360 clean-binutils
: force
361 @if
[ -f .
/binutils
/Makefile
] ; then \
362 rootme
=`pwd` ; export rootme
; \
364 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
369 install-binutils
: force
370 @if
[ -f .
/binutils
/Makefile
] ; then \
371 rootme
=`pwd` ; export rootme
; \
373 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
380 @if
[ -f .
/newlib
/Makefile
] ; then \
381 rootme
=`pwd` ; export rootme
; \
383 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
389 @if
[ -f .
/newlib
/Makefile
] ; then \
390 rootme
=`pwd` ; export rootme
; \
392 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
397 install-newlib
: force
398 @if
[ -f .
/newlib
/Makefile
] ; then \
399 rootme
=`pwd` ; export rootme
; \
401 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
407 all-gprof
: all-libiberty all-bfd
408 @if
[ -f .
/gprof
/Makefile
] ; then \
409 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
415 @if
[ -f .
/gprof
/Makefile
] ; then \
416 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
422 @if
[ -f .
/gprof
/Makefile
] ; then \
423 (cd gprof
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
430 @if
[ -f .
/byacc
/Makefile
] ; then \
431 rootme
=`pwd` ; export rootme
; \
433 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
439 @if
[ -f .
/byacc
/Makefile
] ; then \
440 rootme
=`pwd` ; export rootme
; \
442 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
448 @if
[ -f .
/byacc
/Makefile
] ; then \
449 rootme
=`pwd` ; export rootme
; \
451 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
457 all-bison
: all-libiberty
458 @if
[ -f .
/bison
/Makefile
] ; then \
459 rootme
=`pwd` ; export rootme
; \
461 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
467 @if
[ -f .
/bison
/Makefile
] ; then \
468 rootme
=`pwd` ; export rootme
; \
470 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
476 @if
[ -f .
/bison
/Makefile
] ; then \
477 rootme
=`pwd` ; export rootme
; \
479 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
485 all-flex
: all-libiberty
486 @if
[ -f .
/flex
/Makefile
] ; then \
487 rootme
=`pwd` ; export rootme
; \
489 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
495 @if
[ -f .
/flex
/Makefile
] ; then \
496 rootme
=`pwd` ; export rootme
; \
498 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
504 @if
[ -f .
/flex
/Makefile
] ; then \
505 rootme
=`pwd` ; export rootme
; \
507 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
512 all-gcc
: all-libiberty all-byacc
513 @if
[ -f .
/gcc
/Makefile
] ; then \
514 rootme
=`pwd` ; export rootme
; \
516 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
522 @if
[ -f .
/gcc
/Makefile
] ; then \
523 rootme
=`pwd` ; export rootme
; \
525 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
531 @if
[ -f .
/gcc
/Makefile
] ; then \
532 rootme
=`pwd` ; export rootme
; \
534 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
541 @if
[ -f .
/readline
/Makefile
] ; then \
542 rootme
=`pwd` ; export rootme
; \
544 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
549 clean-readline
: force
550 @if
[ -f .
/readline
/Makefile
] ; then \
551 rootme
=`pwd` ; export rootme
; \
553 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
558 install-readline
: force
559 @if
[ -f .
/readline
/Makefile
] ; then \
560 rootme
=`pwd` ; export rootme
; \
562 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
569 @if
[ -f .
/glob
/Makefile
] ; then \
570 rootme
=`pwd` ; export rootme
; \
572 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
578 @if
[ -f .
/glob
/Makefile
] ; then \
579 rootme
=`pwd` ; export rootme
; \
581 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
587 @if
[ -f .
/glob
/Makefile
] ; then \
588 rootme
=`pwd` ; export rootme
; \
590 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
596 all-gas
: all-libiberty all-bfd
597 @if
[ -f .
/gas
/Makefile
] ; then \
598 rootme
=`pwd` ; export rootme
; \
600 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
606 @if
[ -f .
/gas
/Makefile
] ; then \
607 rootme
=`pwd` ; export rootme
; \
609 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
615 @if
[ -f .
/gas
/Makefile
] ; then \
616 rootme
=`pwd` ; export rootme
; \
618 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
624 all-tgas
: all-libiberty all-bfd
625 @if
[ -f .
/tgas
/Makefile
] ; then \
626 rootme
=`pwd` ; export rootme
; \
628 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
635 all-ld
: all-libiberty all-bfd all-byacc all-flex
636 @if
[ -f .
/ld/Makefile
] ; then \
637 rootme
=`pwd` ; export rootme
; \
639 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
645 @if
[ -f .
/ld/Makefile
] ; then \
646 rootme
=`pwd` ; export rootme
; \
648 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
654 @if
[ -f .
/ld/Makefile
] ; then \
655 rootme
=`pwd` ; export rootme
; \
657 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
662 ### libgcc (and libgcc1)
663 all-libgcc1
: all-gas all-binutils
664 @if
[ -f .
/libgcc
/Makefile
] ; then \
665 rootme
=`pwd` ; export rootme
; \
667 $(MAKE
) $(FLAGS_TO_PASS
) libgcc1.a
) ; \
673 @if
[ -f .
/libgcc
/Makefile
] ; then \
674 rootme
=`pwd` ; export rootme
; \
676 $(MAKE
) $(FLAGS_TO_PASS
) clean-libgcc1
) ; \
681 install-libgcc1
: force
682 echo libgcc1 is a component
, not an installable target
684 all-libgcc
: all-gas all-gcc all-binutils
686 @if
[ -f .
/libgcc
/Makefile
] ; then \
687 rootme
=`pwd` ; export rootme
; \
689 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
695 @if
[ -f .
/libgcc
/Makefile
] ; then \
696 rootme
=`pwd` ; export rootme
; \
698 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
703 install-libgcc
: force
704 @if
[ -f .
/libgcc
/Makefile
] ; then \
705 rootme
=`pwd` ; export rootme
; \
707 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
713 all-gdb
: all-bfd all-libiberty all-mmalloc all-readline all-glob all-byacc
714 @if
[ -f .
/gdb
/Makefile
] ; then \
715 rootme
=`pwd` ; export rootme
; \
717 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
723 @if
[ -f .
/gdb
/Makefile
] ; then \
724 rootme
=`pwd` ; export rootme
; \
726 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
732 @if
[ -f .
/gdb
/Makefile
] ; then \
733 rootme
=`pwd` ; export rootme
; \
735 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
741 all-make
: all-libiberty
742 @if
[ -f .
/make
/Makefile
] ; then \
743 rootme
=`pwd` ; export rootme
; \
745 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
751 @if
[ -f .
/make
/Makefile
] ; then \
752 rootme
=`pwd` ; export rootme
; \
754 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
760 @if
[ -f .
/make
/Makefile
] ; then \
761 rootme
=`pwd` ; export rootme
; \
763 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
770 @if
[ -f .
/diff
/Makefile
] ; then \
771 rootme
=`pwd` ; export rootme
; \
773 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
779 @if
[ -f .
/diff
/Makefile
] ; then \
780 rootme
=`pwd` ; export rootme
; \
782 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
788 @if
[ -f .
/diff
/Makefile
] ; then \
789 rootme
=`pwd` ; export rootme
; \
791 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
798 @if
[ -f .
/grep
/Makefile
] ; then \
799 rootme
=`pwd` ; export rootme
; \
801 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
807 @if
[ -f .
/grep
/Makefile
] ; then \
808 rootme
=`pwd` ; export rootme
; \
810 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
816 @if
[ -f .
/grep
/Makefile
] ; then \
817 rootme
=`pwd` ; export rootme
; \
819 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
826 @if
[ -f .
/rcs
/Makefile
] ; then \
827 rootme
=`pwd` ; export rootme
; \
829 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
835 @if
[ -f .
/rcs
/Makefile
] ; then \
836 rootme
=`pwd` ; export rootme
; \
838 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
844 @if
[ -f .
/rcs
/Makefile
] ; then \
845 rootme
=`pwd` ; export rootme
; \
847 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
854 @if
[ -f .
/cvs
/Makefile
] ; then \
855 rootme
=`pwd` ; export rootme
; \
857 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
863 @if
[ -f .
/cvs
/Makefile
] ; then \
864 rootme
=`pwd` ; export rootme
; \
866 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
872 @if
[ -f .
/cvs
/Makefile
] ; then \
873 rootme
=`pwd` ; export rootme
; \
875 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
882 @if
[ -f .
/patch
/Makefile
] ; then \
883 rootme
=`pwd` ; export rootme
; \
885 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
891 @if
[ -f .
/patch
/Makefile
] ; then \
892 rootme
=`pwd` ; export rootme
; \
894 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
900 @if
[ -f .
/patch
/Makefile
] ; then \
901 rootme
=`pwd` ; export rootme
; \
903 $(MAKE
) $(FLAGS_TO_PASS
) \
905 man1dir=$(man1dir) install) ; \
912 @if
[ -f .
/emacs
/Makefile
] ; then \
913 rootme
=`pwd` ; export rootme
; \
915 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
921 @if
[ -f .
/emacs
/Makefile
] ; then \
922 rootme
=`pwd` ; export rootme
; \
924 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
930 @if
[ -f .
/emacs
/Makefile
] ; then \
931 rootme
=`pwd` ; export rootme
; \
933 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
939 all-ispell
: all-emacs
940 @if
[ -f .
/ispell
/Makefile
] ; then \
941 rootme
=`pwd` ; export rootme
; \
943 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
949 @if
[ -f .
/ispell
/Makefile
] ; then \
950 rootme
=`pwd` ; export rootme
; \
952 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
957 install-ispell
: force
958 @if
[ -f .
/ispell
/Makefile
] ; then \
959 rootme
=`pwd` ; export rootme
; \
961 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
968 @if
[ -f .
/send_pr
/Makefile
] ; then \
969 rootme
=`pwd` ; export rootme
; \
971 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
977 @if
[ -f .
/send_pr
/Makefile
] ; then \
978 rootme
=`pwd` ; export rootme
; \
980 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
985 install-send_pr
: force
986 @if
[ -f .
/send_pr
/Makefile
] ; then \
987 rootme
=`pwd` ; export rootme
; \
989 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
996 @if
[ -d .
/libm
] ; then \
997 rootme
=`pwd` ; export rootme
; \
999 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1005 @if
[ -d .
/libm
] ; then \
1006 rootme
=`pwd` ; export rootme
; \
1008 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
1014 @if
[ -d .
/libm
] ; then \
1015 rootme
=`pwd` ; export rootme
; \
1017 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1024 all-libg
++: all-gas all-ld all-gcc
1025 @if
[ -f .
/libg
++/Makefile
] ; then \
1026 rootme
=`pwd` ; export rootme
; \
1028 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" all) ; \
1034 @if
[ -f .
/libg
++/Makefile
] ; then \
1035 rootme
=`pwd` ; export rootme
; \
1037 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" clean) ; \
1042 install-libg
++: force
1043 @if
[ -f .
/libg
++/Makefile
] ; then \
1044 rootme
=`pwd` ; export rootme
; \
1046 $(MAKE
) $(FLAGS_TO_PASS
) "CC=${GXX}" install) ; \
1051 ### other supporting targets
1052 # this is a bad hack.
1053 all.xclib
: all.normal
1054 if
[ -d clib
] ; then \
1055 (cd clib
; $(MAKE
) $(FLAGS_TO_PASS
)) ; \
1059 @for i in
$(DODIRS
); do \
1060 if
[ -f .
/$$i/localenv
] ; then \
1061 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1062 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1063 else exit
1 ; fi
; \
1064 else if
[ -f .
/$$i/Makefile
] ; then \
1065 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1066 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1067 else exit
1 ; fi
; \
1072 # The "else true" stuff is for Ultrix; the shell returns the exit code
1073 # of the "if" command, if no commands are run in the "then" or "else" part,
1074 # causing Make to quit.
1097 for i in
$(MAKEDIRS
) ; do \
1098 echo Making
$$i...
; \
1099 if
[ ! -d
$$i ] ; then \
1100 if mkdir
$$i ; then \
1115 if
[ -d
$(prefix) ] ; then true
; else mkdir
$(prefix) ; fi
1116 if
[ -d
$(datadir) ] ; then true
; else mkdir
$(datadir) ; fi
1117 if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
1120 $(srcdir)/texinfo
/gen-info-dir
$(infodir) > dir.
info.new
1121 mv
-f
dir.
info.new
dir.
info
1130 @for i in
$(SUBDIRS
); \
1134 wd
=`basename $$pwd`; \
1135 for j in
`$(MAKE) ls`; \
1143 # with the gnu make, this is done automatically.
1145 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
1146 $(SHELL
) .
/config.status
1149 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1151 DEVO_SUPPORT
= README cfg-paper.texi Makefile.in configure configure.in \
1152 config.sub config configure.man move-if-change
1153 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc readline glob
1154 GDB_SUPPORT_FILES
= $(GDB_SUPPORT_DIRS
) texinfo
/fsf
/texinfo.
tex
1156 setup-dirs
: force_update
1159 .
/configure
-rm sun4
1160 chmod og
=u
`find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1162 bfd.ilrt.
tar.Z
: setup-dirs
1163 rm -f bfd.ilrt.
tar.Z
1164 tar cf
- $(DEVO_SUPPORT
) $(GDB_SUPPORT_FILES
) \
1165 | compress
-v
>bfd.ilrt.
tar.Z
1167 gdb.
tar.Z
: setup-dirs
1168 (cd gdb
; $(MAKE
) -f Makefile.in make-proto-gdb.
dir)
1169 $(MAKE
) $(MFLAGS
) -f Makefile.in make-gdb.
tar.Z
1171 make-gdb.
tar.Z
: $(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb texinfo
/fsf
/texinfo.
tex
1172 rm -rf proto-toplev
; mkdir proto-toplev
1173 ln
-s ..
/gdb
/proto-gdb.
dir proto-toplev
/gdb
1174 (cd proto-toplev
; for i in
$(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
); do \
1177 # Put only one copy (four hard links) of COPYING in the tar file.
1178 rm proto-toplev
/bfd
/COPYING
1179 ln proto-toplev
/gdb
/COPYING proto-toplev
/bfd
/COPYING
1180 rm proto-toplev
/include/COPYING
1181 ln proto-toplev
/gdb
/COPYING proto-toplev
/include/COPYING
1182 rm proto-toplev
/readline
/COPYING
1183 ln proto-toplev
/gdb
/COPYING proto-toplev
/readline
/COPYING
1184 # Take out texinfo from configurable dirs
1185 rm proto-toplev
/configure.in
1186 sed
'/^configdirs=/s/texinfo //' <configure.in
>proto-toplev
/configure.in
1187 # Take out glob from buildable dirs
1188 rm proto-toplev
/Makefile.in
1190 sed
-e
'/^SUBDIRS =/s/glob //' \
1191 -e
'/^all\.normal: /s/\all-texinfo //' \
1192 -e
'/^clean: /s/clean-texinfo //' \
1193 -e
'/^install\.all: /s/install-texinfo //' \
1194 <Makefile.in
>proto-toplev
/Makefile.in
1196 mkdir proto-toplev
/texinfo
1197 mkdir proto-toplev
/texinfo
/fsf
1198 ln
-s ..
/..
/..
/texinfo
/fsf
/texinfo.
tex proto-toplev
/texinfo
/fsf
/
1199 chmod og
=u
`find proto-toplev -print`
1200 (VER
=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1201 echo
"==> Making gdb-$$VER.tar.Z"; \
1202 ln
-s proto-toplev gdb-
$$VER; \
1203 tar cfh
- gdb-
$$VER \
1204 | compress
-v
>gdb-
$$VER.
tar.Z
)
1210 # end of Makefile.in