-### gprof
-all-gprof: all-libiberty all-bfd
- @if [ -f ./gprof/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gprof; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-gprof: force
- @if [ -f ./gprof/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gprof; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### byacc
-all-byacc: force
- @if [ -f ./byacc/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./byacc; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-byacc: force
- @if [ -f ./byacc/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./byacc; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### flex
-all-flex: all-libiberty
- @if [ -f ./flex/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./flex; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-flex: force
- @if [ -f ./flex/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./flex; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-### gcc
-all-gcc: all-libiberty all-byacc all-binutils all-gas
- @if [ -f ./gcc/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
- (cd ./gcc; \
- $(MAKE) $(GCC_FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-gcc: force
- @if [ -f ./gcc/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
- (cd ./gcc; \
- $(MAKE) $(GCC_FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### readline
-all-readline: force
- @if [ -f ./readline/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./readline; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-readline: force
- @if [ -f ./readline/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./readline; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### glob
-all-glob: force
- @if [ -f ./glob/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./glob; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-glob: force
- @if [ -f ./glob/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./glob; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### gas
-all-gas: all-libiberty all-opcodes all-bfd
- @if [ -f ./gas/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gas; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-gas: force
- @if [ -f ./gas/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gas; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### gas
-all-tgas: all-libiberty all-bfd
- @if [ -f ./tgas/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./tgas; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-
-### ld
-all-ld: all-libiberty all-bfd all-byacc all-flex
- @if [ -f ./ld/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./ld; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-ld: force
- @if [ -f ./ld/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./ld; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### gdb
-all-gdb: all-bfd all-opcodes all-libiberty all-mmalloc all-readline all-glob all-byacc
- @if [ -f ./gdb/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gdb; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-gdb: force
- @if [ -f ./gdb/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gdb; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### make
-all-make: all-libiberty
- @if [ -f ./make/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./make; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-make: force
- @if [ -f ./make/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./make; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### diff
-all-diff: force
- @if [ -f ./diff/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./diff; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-diff: force
- @if [ -f ./diff/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./diff/; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### grep
-all-grep: force
- @if [ -f ./grep/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./grep; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-grep: force
- @if [ -f ./grep/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./grep; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### rcs
-all-rcs: force
- @if [ -f ./rcs/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./rcs; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-rcs: force
- @if [ -f ./rcs/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./rcs; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### cvs
-all-cvs: force
- @if [ -f ./cvs/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./cvs; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-cvs: force
- @if [ -f ./cvs/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./cvs; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### patch
-all-patch: force
- @if [ -f ./patch/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./patch; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-patch: force
- @if [ -f ./patch/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./patch; \
- $(MAKE) $(FLAGS_TO_PASS) \
- bindir=$(bindir) \
- man1dir=$(man1dir) install) ; \
- else \
- true ; \
- fi
-
-### emacs
-all-emacs: force
- @if [ -f ./emacs/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./emacs; \
- $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-emacs: force
- @if [ -f ./emacs/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./emacs; \
- $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### ispell
-all-ispell: all-emacs
- @if [ -f ./ispell/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./ispell; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-ispell: force
- @if [ -f ./ispell/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./ispell; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### send_pr
-all-send_pr: force
- @if [ -f ./send_pr/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./send_pr; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-send_pr: force
- @if [ -f ./send_pr/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./send_pr; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### libm
-all-libm: force
- @if [ -f ./libm/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./libm; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-libm: force
- @if [ -f ./libm/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./libm; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### libg++
-
-all-libg++: all-gas all-ld all-gcc all-xiberty all-newlib
- @if [ -f ./libg++/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
- (cd ./libg++; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-libg++: force
- @if [ -f ./libg++/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
- (cd ./libg++; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-### tcl
-all-tcl:
- @if [ -f ./tcl/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd`; export srcroot ; \
- (cd ./tcl; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-tcl: force
- @if [ -f ./tcl/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd`; export srcroot ; \
- (cd ./tcl; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-
-### tk
-all-tk: all-tcl
- @if [ -f ./tk/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd`; export srcroot ; \
- (cd ./tk; \
- $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-tk: force
- @if [ -f ./tk/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd`; export srcroot ; \
- (cd ./tk; \
- $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### expect
-all-expect: all-tcl
- @if [ -f ./expect/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd`; export srcroot ; \
- (cd ./expect; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-expect: force
- @if [ -f ./expect/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd`; export srcroot ; \
- (cd ./expect; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### sim
-all-sim: all-bfd
- @if [ -f ./sim/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./sim; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-sim: force
- @if [ -f ./sim/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./sim; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### fileutils
-all-fileutils: force
- @if [ -f ./fileutils/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-fileutils: force
- @if [ -f ./fileutils/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### find
-all-find: force
- @if [ -f ./find/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./find; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-find: force
- @if [ -f ./find/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./find; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### gawk
-all-gawk: force
- @if [ -f ./gawk/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-gawk: force
- @if [ -f ./gawk/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### m4
-all-m4: all-libiberty
- @if [ -f ./m4/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-m4: force
- @if [ -f ./m4/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### sed
-all-sed: force
- @if [ -f ./sed/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-sed: force
- @if [ -f ./sed/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### time
-all-time: force
- @if [ -f ./time/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./time; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-time: force
- @if [ -f ./time/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./time; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### wdiff
-all-wdiff: force
- @if [ -f ./wdiff/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-wdiff: force
- @if [ -f ./wdiff/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### uudecode
-all-uudecode: all-libiberty
- @if [ -f ./uudecode/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./uudecode; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-uudecode: force
- @if [ -f ./uudecode/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./uudecode; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### shellutils
-all-shellutils: force
- @if [ -f ./shellutils/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-shellutils: force
- @if [ -f ./shellutils/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### textutils
-all-textutils: force
- @if [ -f ./textutils/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-textutils: force
- @if [ -f ./textutils/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-
-
-### other supporting targets
-
-MAKEDIRS= \
- $(prefix) \
- $(exec_prefix) \
- $(tooldir)
-
-# $(bindir) \
-# $(libdir) \
-# $(includedir) \
-# $(datadir) \
-# $(docdir) \
-# $(mandir) \
-# $(man1dir) \
-# $(man5dir)
-
-# $(man2dir) \
-# $(man3dir) \
-# $(man4dir) \
-# $(man6dir) \
-# $(man7dir) \
-# $(man8dir)
-
-install-dirs:
- for i in $(MAKEDIRS) ; do \
- echo Making $$i... ; \
- parent=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
- if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \
- if [ ! -d $$i ] ; then \
- if mkdir $$i ; then \
- true ; \
- else \
- exit 1 ; \
- fi ; \
- else \
- true ; \
- fi ; \
- done
-
-install-info-dirs:
- if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi
- -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
- if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
- -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
-
-dir.info: do-install-info
- $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new
- mv -f dir.info.new dir.info
-
-dist:
- @echo "Building a full distribution of this tree isn't done"
- @echo "via 'make dist'. Check out the etc/ subdirectory"
-
-etags tags: TAGS
-
-TAGS:
- etags `$(MAKE) ls`
-
-ls:
- @echo Makefile
- @for i in $(SUBDIRS); \
- do \
- (cd $$i; \
- pwd=`pwd`; \
- wd=`basename $$pwd`; \
- for j in `$(MAKE) ls`; \
- do \
- echo $$wd/$$j; \
- done) \
- done
-
-force:
-
-# with the gnu make, this is done automatically.
-
-Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
- $(SHELL) ./config.status
-
-#
-# Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
-
-DEVO_SUPPORT= README Makefile.in configure configure.in \
- config.guess config.sub config move-if-change
-ETC_SUPPORT= Makefile.in cfg-paper.texi configure.in configure.man \
- configure.texi
-GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob
-GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS)
-
-setup-dirs: force
- ./configure sun4
- make clean
- ./configure -rm sun4
- chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
-
-gdb.tar.Z: setup-dirs
- (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir)
- $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
-
-make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/texinfo.tex
- rm -rf proto-toplev; mkdir proto-toplev
- ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
- (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
- ln -s ../$$i . ; \
- done)
- mkdir proto-toplev/etc
- (cd proto-toplev/etc; for i in $(ETC_SUPPORT); do \
- ln -s ../../etc/$$i . ; \
- done)
- # Put only one copy (four hard links) of COPYING in the tar file.
- rm proto-toplev/bfd/COPYING
- ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING
- rm proto-toplev/include/COPYING
- ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING
- rm proto-toplev/readline/COPYING
- ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING
-
- # Take out texinfo and glob from configurable dirs
- rm proto-toplev/configure.in
- sed -e '/^host_tools=/s/texinfo //' \
- -e '/^host_libs=/s/glob //' \
- <configure.in >proto-toplev/configure.in
-
- # Take out texinfo from a few places; make simple BISON=bison line.
- rm proto-toplev/Makefile.in
- sed -e '/^all\.normal: /s/\all-texinfo //' \
- -e '/^ install-texinfo /d' \
- -e '\/^BISON =/,\/^$$/c\
- BISON = bison -y' \
- <Makefile.in >proto-toplev/Makefile.in
-
- mkdir proto-toplev/texinfo
- ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
- chmod og=u `find proto-toplev -print`
- (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
- echo "==> Making gdb-$$VER.tar.Z"; \
- ln -s proto-toplev gdb-$$VER; \
- tar cfh - gdb-$$VER \
- | compress -v >gdb-$$VER.tar.Z)
+# Files in devo/etc used in any net release.
+# ChangeLog omitted because it may refer to files which are not in this
+# distribution (perhaps it would be better to include it anyway).
+ETC_SUPPORT= Makefile.in cfg-paper.texi configure.in configure.man \
+ configure.texi standards.texi make-stds.texi
+ETC_SUPPORT_PFX=configure.info standards.info cfg-paper.info
+
+# When you use `make setup-dirs' or `make taz' you should always redefine
+# this macro.
+SUPPORT_FILES = list-of-support-files-for-tool-in-question
+# Directories that might want `make diststuff' run.
+DISTSTUFFDIRS= ld gprof gdb libg++ binutils gnats gas
+# Files where "byacc" (Cygnus version) should be changed to "bison -y" (FSF).
+DISTBISONFILES= binutils/Makefile.in gas/Makefile.in gdb/Makefile.in
+# Directories where "info" should be built.
+DISTDOCDIRS= ld gprof binutils gas bfd libg++ libio gdb gnats send-pr etc
+
+.PHONY: taz
+
+taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
+ texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
+ # Make sure "diststuff" files get built properly.
+ for f in $(DISTBISONFILES) ; do \
+ if [ -r $$f ]; then \
+ sed '/^BISON *=.*$$/s/.*/BISON = bison -y/' <$$f >tmp ; \
+ mv -f tmp $$f ; \
+ else true; fi ; \
+ done
+ # Take out texinfo from a few places; make simple BISON=bison line.
+ sed -e '/^all\.normal: /s/\all-texinfo //' \
+ -e '/^ install-texinfo /d' \
+ -e '/^BISON = /,/^$$/d' \
+ -e '/^# BISON:/s/.*/BISON = bison -y/' \
+ <Makefile.in >tmp
+ mv -f tmp Makefile.in
+ #
+ $(start-sanitize-Sanitize)
+ @if [ -f .Sanitize ] ; then echo "RUN Sanitize FIRST!" ; false ; fi ;
+ $(end-sanitize-Sanitize)
+ ./configure sun4
+ # Doc files don't change; include them in distribution.
+ for f in $(DISTDOCDIRS) ; do \
+ if [ -r $$f/Makefile ]; then \
+ (cd $$f ; $(MAKE) info) || exit 1 ; \
+ else true ; fi ; \
+ done
+ # Make links, and run "make diststuff" when needed.
+ # The `echo' for setting `p' is to convert all whitespace to spaces.
+ # Then the `case' further below should tell whether $$d is in
+ # DISTSTUFFDIRS.
+ rm -rf proto-toplev ; mkdir proto-toplev
+ set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
+ p=" `echo $(DISTSTUFFDIRS)` " ; \
+ for d in $$dirs ; do \
+ if [ -d $$d ]; then \
+ case " $$p " in \
+ *" $$d "*) \
+ (cd $$d ; $(MAKE) diststuff ) || exit 1 ;; \
+ esac ; \
+ if [ -d $$d/proto-$$d.dir ]; then \
+ ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
+ else \
+ ln -s ../$$d proto-toplev/$$d ; \
+ fi ; \
+ else ln -s ../$$d proto-toplev/$$d ; fi ; \
+ done
+ $(MAKE) distclean
+ #
+ mkdir proto-toplev/etc
+ (cd proto-toplev/etc; \
+ for i in $(ETC_SUPPORT); do \
+ ln -s ../../etc/$$i . ; \
+ done ; \
+ for i in $(ETC_SUPPORT_PFX); do \
+ ln -s ../../etc/$$i* . ; \
+ done)
+ #
+ # Take out texinfo from configurable dirs
+ rm proto-toplev/configure.in
+ sed -e '/^host_tools=/s/texinfo //' \
+ <configure.in >proto-toplev/configure.in
+ #
+ mkdir proto-toplev/texinfo
+ ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
+ ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
+ ln -s ../../texinfo/lgpl.texinfo proto-toplev/texinfo/
+ ln -s ../../texinfo/tex3patch proto-toplev/texinfo/
+ chmod og=u `find . -print`
+ (VER=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
+ echo "==> Making $(TOOL)-$$VER.tar.gz"; \
+ rm -f $(TOOL)-$$VER; ln -s proto-toplev $(TOOL)-$$VER; \
+ tar cfh - $(TOOL)-$$VER \
+ | $(GZIPPROG) -v -9 >$(TOOL)-$$VER.tar.gz )
+
+TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
+DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
+
+.PHONY: gas.tar.gz
+GAS_SUPPORT_DIRS= bfd include libiberty opcodes
+gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
+ $(MAKE) -f Makefile.in taz TOOL=gas \
+ SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
+
+# The FSF "binutils" release includes gprof and ld.
+.PHONY: binutils.tar.gz
+BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof
+binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
+ $(MAKE) -f Makefile.in taz TOOL=binutils \
+ SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
+
+.PHONY: gas+binutils.tar.gz
+GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
+gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
+ $(MAKE) -f Makefile.in taz TOOL=gas \
+ SUPPORT_FILES="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"
+
+.PHONY: libg++.tar.gz
+LIBGXX_SUPPORT_DIRS=include libstdc++ libio librx libiberty xiberty
+libg++.tar.gz: $(DIST_SUPPORT) libg++
+ $(MAKE) -f Makefile.in taz TOOL=libg++ \
+ SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)"
+
+GNATS_SUPPORT_DIRS=include libiberty send-pr
+gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
+ $(MAKE) -f Makefile.in taz TOOL=gnats \
+ SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
+
+.PHONY: gdb.tar.gz
+GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils
+GDBTK_SUPPORT_DIRS= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi`
+gdb.tar.gz: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
+ $(MAKE) -f Makefile.in taz TOOL=gdb \
+ SUPPORT_FILES="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
+
+.PHONY: newlib.tar.gz
+NEWLIB_SUPPORT_DIRS=libgloss
+# taz configures for the sun4 target which won't configure newlib.
+# We need newlib configured so that the .info files are made.
+# Unfortunately, it is not enough to just configure newlib separately:
+# taz will build the .info files but since SUBDIRS won't contain newlib,
+# distclean won't be run (leaving Makefile, config.status, and the tmp files
+# used in building the .info files, eg: *.def, *.ref).
+# Compensate here by configuring newlib for a simple (no multilib support)
+# cross target (sparc64), building the info files, and doing make distclean
+# ourselves.
+newlib.tar.gz: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
+ rootme=`pwd` ; \
+ cd newlib && ../configure --srcdir $$rootme/newlib \
+ --host sun4 --target sparc64-elf
+ cd newlib ; make info
+ cd newlib ; make distclean
+ $(MAKE) -f Makefile.in taz TOOL=newlib \
+ SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
+ DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" \
+ DISTDOCDIRS="$(DISTDOCDIRS) newlib"