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/bison -L $${rootme}/bison/ -y ; \
57 else echo bison -y ; fi`
59 LEX
= `if [ -d $${rootme}/flex ] ; \
60 then echo $${rootme}/flex/flex -S$${rootme}/flex/flex.skel ; \
63 MAKEINFO
= `if [ -d $${rootme}/texinfo/C ] ; \
64 then echo $${rootme}/texinfo/C/makeinfo ; \
65 else echo makeinfo ; fi`
67 SUBDIRS
= libiberty mmalloc glob readline bfd gdb binutils
ld gas gcc libg
++ libgcc clib newlib
71 INSTALL_TARGET
= install.
all
77 #### host and target specific makefile fragments come in here.
82 "exec_prefix=$(exec_prefix)" \
83 "tooldir=$(tooldir)" \
85 "AR_FLAGS=$(AR_FLAGS)" \
89 "LOADLIBES=$(LOADLIBES)" \
90 "LDFLAGS=$(LDFLAGS)" \
93 "MAKEINFO=$(MAKEINFO)" \
94 "INSTALL=$(INSTALL)" \
95 "INSTALL_DATA=$(INSTALL_DATA)" \
96 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
98 .PHONY
: all info install-info clean-info
103 info: cfg-paper.
info configure.
info standards.
info
104 @rootme
=`pwd` ; export rootme
; $(MAKE
) subdir_do DO
=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
106 # Note libg++ has to be handled specially (we can't compile it with CC=cc).
108 @rootme
=`pwd` ; export rootme
; $(MAKE
) subdir_do DO
=check \
109 "DODIRS=`echo $(SUBDIRS) | sed -e \"s/libg\+\+//\"" \
110 "MAKEINFO=$(MAKEINFO)"
111 @rootme
=`pwd` ; export rootme
; $(MAKE
) subdir_do DO
=check \
112 "DODIRS=libg++" "CC=${GXX}" "XTRAFLAGS=${XTRAFLAGS}" \
113 "MAKEINFO=$(MAKEINFO)"
116 @
$(MAKE
) subdir_do DO
=clean-info
"DODIRS=$(SUBDIRS)"
119 cfg-paper.
info: cfg-paper.texi
120 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o cfg-paper.
info $(srcdir)/cfg-paper.texi
122 configure.
info: configure.texi
123 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o configure.
info $(srcdir)/configure.texi
125 standards.
info: standards.texi
126 rootme
=`pwd` ; export rootme
; $(MAKEINFO
) -o standards.
info $(srcdir)/standards.texi
128 install-info
: install-info-dirs
force
129 [ -d
$(infodir) ] || mkdir
$(infodir)
130 @
$(MAKE
) subdir_do DO
=install-info
"DODIRS=$(SUBDIRS)"
131 $(INSTALL_DATA
) cfg-paper.
info $(infodir)/cfg-paper.
info
132 $(INSTALL_DATA
) configure.
info $(infodir)/configure.
info
133 $(INSTALL_DATA
) standards.
info $(infodir)/standards.
info
134 @
$(MAKE
) dir.
info install-dir.
info
137 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info
139 all.normal
: all-autoconf all-libiberty all-mmalloc all-texinfo \
140 all-bison all-byacc all-flex all-bfd all-ld all-gas all-gcc \
141 all-binutils all-libg
++ all-readline all-gdb \
142 all-make all-rcs all-cvs all-diff all-grep \
143 all-patch all-emacs all-ispell \
144 all-newlib all-gprof all-send_pr
146 all.cross
: all-libiberty all-mmalloc all-gas all-bison all-ld \
147 all-bfd all-libgcc all-readline all-gdb
148 # $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
150 clean: clean-autoconf clean-libiberty clean-mmalloc clean-texinfo \
151 clean-bfd clean-newlib clean-binutils clean-flex \
152 clean-bison clean-byacc clean-ld clean-gas \
153 clean-gcc clean-libgcc clean-readline clean-glob clean-gdb \
154 clean-make clean-diff clean-grep clean-rcs \
155 clean-cvs clean-patch clean-emacs clean-ispell \
156 clean-libg
++ clean-gprof clean-send_pr
157 -rm -rf
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
162 install: $(INSTALL_TARGET
) $(srcdir)/configure.man
163 $(INSTALL_DATA
) $(srcdir)/configure.man
$(man1dir)/configure
.1
166 install.
all: install-dirs install-autoconf install-libiberty \
167 install-mmalloc install-texinfo install-bfd install-binutils \
168 install-bison install-byacc install-flex install-ld \
169 install-gas install-gcc install-gprof install-libgcc \
170 install-readline install-glob install-gdb install-make \
171 install-cvs install-patch install-emacs install-ispell \
172 install-libg
++ install-newlib \
175 install.cross
: install-dirs install-libiberty install-mmalloc \
176 install-binutils install-bison install-byacc install-flex \
177 install-ld install-gas install-libgcc install-readline \
178 install-glob install-gdb install-mmalloc install-gprof
182 @if
[ -d .
/autoconf
] ; then \
183 rootme
=`pwd` ; export rootme
; \
185 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
190 clean-autoconf
: force
191 @if
[ -d .
/autoconf
] ; then \
192 rootme
=`pwd` ; export rootme
; \
194 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
199 install-autoconf
: force
200 @if
[ -d .
/autoconf
] ; then \
201 rootme
=`pwd` ; export rootme
; \
203 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
210 @if
[ -d .
/libiberty
] ; then \
211 rootme
=`pwd` ; export rootme
; \
213 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
218 clean-libiberty
: force
219 @if
[ -d .
/libiberty
] ; then \
220 rootme
=`pwd` ; export rootme
; \
222 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
227 install-libiberty
: force
228 @if
[ -d .
/libiberty
] ; then \
229 rootme
=`pwd` ; export rootme
; \
231 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
238 @if
[ -d .
/mmalloc
] ; then \
239 rootme
=`pwd` ; export rootme
; \
241 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
247 @if
[ -d .
/mmalloc
] ; then \
248 rootme
=`pwd` ; export rootme
; \
250 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
255 install-mmalloc
: force
256 @if
[ -d .
/mmalloc
] ; then \
257 rootme
=`pwd` ; export rootme
; \
259 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
265 all-texinfo
: all-libiberty
266 @if
[ -d .
/texinfo
] ; then \
267 rootme
=`pwd` ; export rootme
; \
268 rootme
=`pwd` ; export rootme
; \
270 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
276 @if
[ -d .
/texinfo
] ; then \
277 rootme
=`pwd` ; export rootme
; \
279 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
284 install-texinfo
: force
285 @if
[ -d .
/texinfo
] ; then \
286 rootme
=`pwd` ; export rootme
; \
288 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
295 @if
[ -d .
/bfd
] ; then \
296 rootme
=`pwd` ; export rootme
; \
298 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
304 @if
[ -d .
/bfd
] ; then \
305 rootme
=`pwd` ; export rootme
; \
307 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
313 @if
[ -d .
/bfd
] ; then \
314 rootme
=`pwd` ; export rootme
; \
316 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
322 all-binutils
: all-libiberty all-bfd all-flex
323 @if
[ -d .
/binutils
] ; then \
324 rootme
=`pwd` ; export rootme
; \
326 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
331 clean-binutils
: force
332 @if
[ -d .
/binutils
] ; then \
333 rootme
=`pwd` ; export rootme
; \
335 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
340 install-binutils
: force
341 @if
[ -d .
/binutils
] ; then \
342 rootme
=`pwd` ; export rootme
; \
344 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
351 @if
[ -d .
/newlib
] ; then \
352 rootme
=`pwd` ; export rootme
; \
354 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
360 @if
[ -d .
/newlib
] ; then \
361 rootme
=`pwd` ; export rootme
; \
363 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
368 install-newlib
: force
369 @if
[ -d .
/newlib
] ; then \
370 rootme
=`pwd` ; export rootme
; \
372 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
378 all-gprof
: all-libiberty all-bfd
379 @if
[ -d .
/gprof
] ; then \
381 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
387 @if
[ -d
$(unsubdir
)/gprof
] ; then \
388 (cd
$(unsubdir
)/gprof
$(subdir
); \
389 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
395 @if
[ -d
$(unsubdir
)/gprof
] ; then \
396 (cd
$(unsubdir
)/gprof
$(subdir
); \
397 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
404 @if
[ -d .
/byacc
] ; then \
405 rootme
=`pwd` ; export rootme
; \
407 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
413 @if
[ -d .
/byacc
] ; then \
414 rootme
=`pwd` ; export rootme
; \
416 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
422 @if
[ -d .
/byacc
] ; then \
423 rootme
=`pwd` ; export rootme
; \
425 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
431 all-bison
: all-libiberty
432 @if
[ -d .
/bison
] ; then \
433 rootme
=`pwd` ; export rootme
; \
435 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
441 @if
[ -d .
/bison
] ; then \
442 rootme
=`pwd` ; export rootme
; \
444 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
450 @if
[ -d .
/bison
] ; then \
451 rootme
=`pwd` ; export rootme
; \
453 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
459 all-flex
: all-libiberty
460 @if
[ -d .
/flex
] ; then \
461 rootme
=`pwd` ; export rootme
; \
463 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
469 @if
[ -d .
/flex
] ; then \
470 rootme
=`pwd` ; export rootme
; \
472 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
478 @if
[ -d .
/flex
] ; then \
479 rootme
=`pwd` ; export rootme
; \
481 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
486 all-gcc
: all-libiberty all-bison
487 @if
[ -d .
/gcc
] ; then \
488 rootme
=`pwd` ; export rootme
; \
490 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
496 @if
[ -d .
/gcc
] ; then \
497 rootme
=`pwd` ; export rootme
; \
499 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
505 @if
[ -d .
/gcc
] ; then \
506 rootme
=`pwd` ; export rootme
; \
508 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
515 @if
[ -d .
/readline
] ; then \
516 rootme
=`pwd` ; export rootme
; \
518 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
523 clean-readline
: force
524 @if
[ -d .
/readline
] ; then \
525 rootme
=`pwd` ; export rootme
; \
527 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
532 install-readline
: force
533 @if
[ -d .
/readline
] ; then \
534 rootme
=`pwd` ; export rootme
; \
536 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
543 @if
[ -d .
/glob
] ; then \
544 rootme
=`pwd` ; export rootme
; \
546 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
552 @if
[ -d .
/glob
] ; then \
553 rootme
=`pwd` ; export rootme
; \
555 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
561 @if
[ -d .
/glob
] ; then \
562 rootme
=`pwd` ; export rootme
; \
564 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
570 all-gas
: all-libiberty all-bfd
571 @if
[ -d .
/gas
] ; then \
572 rootme
=`pwd` ; export rootme
; \
574 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
580 @if
[ -d .
/gas
] ; then \
581 rootme
=`pwd` ; export rootme
; \
583 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
589 @if
[ -d .
/gas
] ; then \
590 rootme
=`pwd` ; export rootme
; \
592 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
598 all-ld
: all-libiberty all-bfd all-bison all-flex
599 @if
[ -d .
/ld ] ; then \
600 rootme
=`pwd` ; export rootme
; \
602 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
608 @if
[ -d .
/ld ] ; then \
609 rootme
=`pwd` ; export rootme
; \
611 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
617 @if
[ -d .
/ld ] ; then \
618 rootme
=`pwd` ; export rootme
; \
620 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
625 ### libgcc (and libgcc1)
626 all-libgcc1
: all-gas all-binutils
627 @if
[ -d .
/libgcc
] ; then \
628 rootme
=`pwd` ; export rootme
; \
630 $(MAKE
) $(FLAGS_TO_PASS
) libgcc1.a
) ; \
636 @if
[ -d .
/libgcc
] ; then \
637 rootme
=`pwd` ; export rootme
; \
639 $(MAKE
) $(FLAGS_TO_PASS
) clean-libgcc1
) ; \
644 install-libgcc1
: force
645 echo libgcc1 is a component
, not an installable target
647 all-libgcc
: all-gas all-gcc all-binutils
649 @if
[ -d .
/libgcc
] ; then \
650 rootme
=`pwd` ; export rootme
; \
652 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
658 @if
[ -d .
/libgcc
] ; then \
659 rootme
=`pwd` ; export rootme
; \
661 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
666 install-libgcc
: force
667 @if
[ -d .
/libgcc
] ; then \
668 rootme
=`pwd` ; export rootme
; \
670 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
676 all-gdb
: all-bfd all-libiberty all-mmalloc all-readline all-glob all-bison
677 @if
[ -d .
/gdb
] ; then \
678 rootme
=`pwd` ; export rootme
; \
680 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
686 @if
[ -d .
/gdb
] ; then \
687 rootme
=`pwd` ; export rootme
; \
689 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
695 @if
[ -d .
/gdb
] ; then \
696 rootme
=`pwd` ; export rootme
; \
698 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
704 all-make
: all-libiberty
705 @if
[ -d .
/make
] ; then \
706 rootme
=`pwd` ; export rootme
; \
708 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
714 @if
[ -d .
/make
] ; then \
715 rootme
=`pwd` ; export rootme
; \
717 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
723 @if
[ -d .
/make
] ; then \
724 rootme
=`pwd` ; export rootme
; \
726 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
733 @if
[ -d .
/diff
] ; then \
734 rootme
=`pwd` ; export rootme
; \
736 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
742 @if
[ -d .
/diff
] ; then \
743 rootme
=`pwd` ; export rootme
; \
745 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
751 @if
[ -d .
/diff
] ; then \
752 rootme
=`pwd` ; export rootme
; \
754 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
761 @if
[ -d .
/grep
] ; then \
762 rootme
=`pwd` ; export rootme
; \
764 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
770 @if
[ -d .
/grep
] ; then \
771 rootme
=`pwd` ; export rootme
; \
773 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
779 @if
[ -d .
/grep
] ; then \
780 rootme
=`pwd` ; export rootme
; \
782 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
789 @if
[ -d .
/rcs
] ; then \
790 rootme
=`pwd` ; export rootme
; \
792 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
798 @if
[ -d .
/rcs
] ; then \
799 rootme
=`pwd` ; export rootme
; \
801 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
807 @if
[ -d .
/rcs
] ; then \
808 rootme
=`pwd` ; export rootme
; \
810 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
817 @if
[ -d .
/cvs
] ; then \
818 rootme
=`pwd` ; export rootme
; \
820 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
826 @if
[ -d .
/cvs
] ; then \
827 rootme
=`pwd` ; export rootme
; \
829 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
835 @if
[ -d .
/cvs
] ; then \
836 rootme
=`pwd` ; export rootme
; \
838 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
845 @if
[ -d .
/patch
] ; then \
846 rootme
=`pwd` ; export rootme
; \
848 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
854 @if
[ -d .
/patch
] ; then \
855 rootme
=`pwd` ; export rootme
; \
857 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
863 @if
[ -d .
/patch
] ; then \
864 rootme
=`pwd` ; export rootme
; \
866 $(MAKE
) $(FLAGS_TO_PASS
) \
868 man1dir=$(man1dir) install) ; \
875 @if
[ -d .
/emacs
] ; then \
876 rootme
=`pwd` ; export rootme
; \
878 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
884 @if
[ -d .
/emacs
] ; then \
885 rootme
=`pwd` ; export rootme
; \
887 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
893 @if
[ -d .
/emacs
] ; then \
894 rootme
=`pwd` ; export rootme
; \
896 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
902 all-ispell
: all-emacs
903 @if
[ -d .
/ispell
] ; then \
904 rootme
=`pwd` ; export rootme
; \
906 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
912 @if
[ -d .
/ispell
] ; then \
913 rootme
=`pwd` ; export rootme
; \
915 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
920 install-ispell
: force
921 @if
[ -d .
/ispell
] ; then \
922 rootme
=`pwd` ; export rootme
; \
924 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
931 @if
[ -d .
/send_pr
] ; then \
932 rootme
=`pwd` ; export rootme
; \
934 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
940 @if
[ -d .
/send_pr
] ; then \
941 rootme
=`pwd` ; export rootme
; \
943 $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
948 install-send_pr
: force
949 @if
[ -d .
/send_pr
] ; then \
950 rootme
=`pwd` ; export rootme
; \
952 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
958 GXX
= `if [ -d $${rootme}/gcc ] ; \
959 then echo $${rootme}/gcc/gcc -B$${rootme}/gcc/ ; \
962 XTRAFLAGS
= `if [ -d $${rootme}/gcc ] ; \
963 then echo -I$${rootme}/gcc/include ; \
966 all-libg
++: all-gas all-ld all-gcc
967 @if
[ -d .
/libg
++ ] ; then \
968 rootme
=`pwd` ; export rootme
; \
972 "AR_FLAGS=$(AR_FLAGS)" \
975 "XTRAFLAGS=${XTRAFLAGS}" \
977 "LOADLIBES=$(LOADLIBES)" \
978 "LDFLAGS=$(LDFLAGS)" \
980 "MAKEINFO=$(MAKEINFO)" \
987 @if
[ -d .
/libg
++ ] ; then \
988 rootme
=`pwd` ; export rootme
; \
992 "AR_FLAGS=$(AR_FLAGS)" \
996 "LOADLIBES=$(LOADLIBES)" \
997 "LDFLAGS=$(LDFLAGS)" \
999 "MAKEINFO=$(MAKEINFO)" \
1005 install-libg
++: force
1006 @if
[ -d .
/libg
++ ] ; then \
1007 rootme
=`pwd` ; export rootme
; \
1011 "AR_FLAGS=$(AR_FLAGS)" \
1013 "CFLAGS=$(CFLAGS)" \
1014 "RANLIB=$(RANLIB)" \
1015 "LOADLIBES=$(LOADLIBES)" \
1016 "LDFLAGS=$(LDFLAGS)" \
1018 "MAKEINFO=$(MAKEINFO)" \
1019 "INSTALL=$(INSTALL)" \
1020 "INSTALL_DATA=$(INSTALL_DATA)" \
1021 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
1027 ### other supporting targets
1028 # this is a bad hack.
1029 all.xclib
: all.normal
1030 if
[ -d clib
] ; then \
1031 (cd clib
; $(MAKE
) $(FLAGS_TO_PASS
)) ; \
1035 @for i in
$(DODIRS
); do \
1036 if
[ -f .
/$$i/localenv
] ; then \
1037 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1038 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1039 else exit
1 ; fi
; \
1040 else if
[ -d .
/$$i ] ; then \
1041 if
(rootme
=`pwd` ; export rootme
; cd .
/$$i; \
1042 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1043 else exit
1 ; fi
; \
1048 # The "else true" stuff is for Ultrix; the shell returns the exit code
1049 # of the "if" command, if no commands are run in the "then" or "else" part,
1050 # causing Make to quit.
1073 for i in
$(MAKEDIRS
) ; do \
1074 echo Making
$$i...
; \
1075 [ -d
$$i ] || mkdir
$$i || exit
1 ; \
1083 if
[ -d
$(prefix) ] ; then true
; else mkdir
$(prefix) ; fi
1084 if
[ -d
$(datadir) ] ; then true
; else mkdir
$(datadir) ; fi
1085 if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
1088 $(srcdir)/texinfo
/gen-info-dir
$(infodir) > dir.
info.new
1089 mv
-f
dir.
info.new
dir.
info
1098 @for i in
$(SUBDIRS
); \
1102 wd
=`basename $$pwd`; \
1103 for j in
`$(MAKE) ls`; \
1111 # with the gnu make, this is done automatically.
1113 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
1114 $(SHELL
) .
/config.status
1117 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1119 DEVO_SUPPORT
= README cfg-paper.texi Makefile.in configure configure.in \
1120 config.sub config configure.man
1121 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc readline glob
1122 GDB_SUPPORT_FILES
= $(GDB_SUPPORT_DIRS
) texinfo
/fsf
/texinfo.
tex
1124 setup-dirs
: force_update
1127 .
/configure
-rm sun4
1128 chmod og
=u
`find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1130 bfd.ilrt.
tar.Z
: setup-dirs
1131 rm -f bfd.ilrt.
tar.Z
1132 tar cf
- $(DEVO_SUPPORT
) $(GDB_SUPPORT_FILES
) \
1133 | compress
-v
>bfd.ilrt.
tar.Z
1135 gdb.
tar.Z
: setup-dirs
1136 (cd gdb
; $(MAKE
) -f Makefile.in make-proto-gdb.
dir)
1137 $(MAKE
) $(MFLAGS
) -f Makefile.in make-gdb.
tar.Z
1139 make-gdb.
tar.Z
: $(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb texinfo
/fsf
/texinfo.
tex
1140 rm -rf proto-toplev
; mkdir proto-toplev
1141 ln
-s ..
/gdb
/proto-gdb.
dir proto-toplev
/gdb
1142 (cd proto-toplev
; for i in
$(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
); do \
1145 # Put only one copy (four hard links) of COPYING in the tar file.
1146 rm proto-toplev
/bfd
/COPYING
1147 ln proto-toplev
/gdb
/COPYING proto-toplev
/bfd
/COPYING
1148 rm proto-toplev
/include/COPYING
1149 ln proto-toplev
/gdb
/COPYING proto-toplev
/include/COPYING
1150 rm proto-toplev
/readline
/COPYING
1151 ln proto-toplev
/gdb
/COPYING proto-toplev
/readline
/COPYING
1152 # Take out texinfo from configurable dirs
1153 rm proto-toplev
/configure.in
1154 sed
'/^configdirs=/s/texinfo //' <configure.in
>proto-toplev
/configure.in
1155 # Take out glob from buildable dirs
1156 rm proto-toplev
/Makefile.in
1157 sed
'/^SUBDIRS =/s/glob //' <Makefile.in
>proto-toplev
/Makefile.in
1158 # Take out texinfo from buildable dirs
1159 cp proto-toplev
/Makefile.in temp.
$$
1160 sed
'/^all\.normal: /s/\all-texinfo //' <temp.
$$ >temp1.
$$
1161 sed
'/^clean: /s/clean-texinfo //' <temp1.
$$ >temp.
$$
1162 sed
'/^install\.all: /s/install-texinfo //' <temp.
$$ >proto-toplev
/Makefile.in
1164 mkdir proto-toplev
/texinfo
1165 mkdir proto-toplev
/texinfo
/fsf
1166 ln
-s ..
/..
/..
/texinfo
/fsf
/texinfo.
tex proto-toplev
/texinfo
/fsf
/
1167 chmod og
=u
`find proto-toplev -print`
1168 (VER
=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1169 echo
"==> Making gdb-$$VER.tar.Z"; \
1170 ln
-s proto-toplev gdb-
$$VER; \
1171 tar cfh
- gdb-
$$VER \
1172 | compress
-v
>gdb-
$$VER.
tar.Z
)
1178 # end of Makefile.in