Add moxiebox target
[deliverable/binutils-gdb.git] / src-release
index ef5b6b431a8ca9e44cb58b032c0758d1bb9f07e5..b28597c09d64f883388bb67dbbcdfc6d771cf41d 100644 (file)
@@ -13,7 +13,7 @@
 # 
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #
 
 # This Makefile contains release scripts for gdb, binutils, and other
@@ -31,6 +31,9 @@ SHELL = /bin/sh
 BZIPPROG = bzip2
 MD5PROG = md5sum
 
+# (Default to avoid splitting info files by setting the threshold high.)
+MAKEINFOFLAGS = --split-size=5000000
+
 # pwd command to use.  Allow user to override default by setting PWDCMD in
 # the environment to account for automounters.  The make variable must not
 # be called PWDCMD, otherwise the value set here is passed to make
@@ -41,21 +44,20 @@ PWD = $${PWDCMD-pwd}
 # Support for building net releases
 
 # Files in devo 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).
-DEVO_SUPPORT= README Makefile.in configure configure.in \
+DEVO_SUPPORT= README Makefile.in configure configure.ac \
        config.guess config.sub config move-if-change \
        COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
-       mkinstalldirs ltconfig ltmain.sh missing ylwrap \
-       libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh \
-       Makefile.def Makefile.tpl src-release
+       mkinstalldirs ltmain.sh missing ylwrap \
+       libtool.m4 ltsugar.m4 ltversion.m4 ltoptions.m4 \
+       Makefile.def Makefile.tpl src-release config.rpath \
+       ChangeLog MAINTAINERS README-maintainer-mode \
+       lt~obsolete.m4 ltgcc.m4 depcomp mkdep compile \
+       COPYING3 COPYING3.LIB
 
 # 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 configure configure.in standards.texi \
        make-stds.texi standards.info* configure.texi configure.info* \
-       configbuild.* configdev.* fdl.texi texi2pod.pl
+       ChangeLog configbuild.* configdev.* fdl.texi texi2pod.pl gnu-oids.texi
 
 
 # When you use `make setup-dirs' or `make taz' you should always redefine
@@ -65,9 +67,15 @@ SUPPORT_FILES = list-of-support-files-for-tool-in-question
 # NOTE: No double quotes in the below.  It is used within shell script
 # as VER="$(VER)"
 VER = `        if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \
-         sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
+         bfd/configure --version | sed -n -e '1s,.* ,,p'; \
        elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
          sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
+       elif test -f $(TOOL)/common/create-version.sh; then \
+         $(TOOL)/common/create-version.sh $(TOOL) \
+           'dummy-host' 'dummy-target' \
+           VER.tmp; \
+         cat VER.tmp | grep 'version\[\]' | sed 's/.*"\([^"]*\)".*/\1/' | sed 's/-cvs$$//'; \
+          rm -f VER.tmp; \
        elif test -f $(TOOL)/version.in; then \
          head -1 $(TOOL)/version.in; \
        elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
@@ -141,23 +149,33 @@ do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
            CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
        # Make links, and run "make diststuff" or "make info" when needed.
        rm -rf proto-toplev ; mkdir proto-toplev
-       set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
+       set -e ; dirs="$(DEVO_SUPPORT) $(SUPPORT_FILES) $(TOOL)" ; \
        for d in $$dirs ; do \
          if [ -d $$d ]; then \
            if [ ! -f $$d/Makefile ] ; then true ; \
            elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
-               (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
+               (cd $$d ; $(MAKE) MAKEINFOFLAGS="$(MAKEINFOFLAGS)" \
+                         diststuff ) || exit 1 ; \
            elif grep '^info:' $$d/Makefile >/dev/null ; then \
-               (cd $$d ; $(MAKE) info ) || exit 1 ; \
+               (cd $$d ; $(MAKE) MAKEINFOFLAGS="$(MAKEINFOFLAGS)" \
+                         info ) || exit 1 ; \
            fi ; \
            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 ; \
+         else \
+           if (echo x$$d | grep / >/dev/null); then \
+             mkdir -p proto-toplev/`dirname $$d` ; \
+             x=`dirname $$d` ; \
+             ln -s ../`echo $$x/ | sed -e 's,[^/]*/,../,g'`$$d proto-toplev/$$d ; \
+           else \
+             ln -s ../$$d proto-toplev/$$d ; \
+           fi ; \
+         fi ; \
        done
-       cd etc && $(MAKE) info
+       cd etc && $(MAKE) MAKEINFOFLAGS="$(MAKEINFOFLAGS)" info
        $(MAKE) distclean
        # Kludge for pr gdb/857.  intl/Makefile.in lacks a couple
        # of files in the distclean rule.  Zack W is planning to make
@@ -179,9 +197,9 @@ do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
         done)
        #
        # Take out texinfo from configurable dirs
-       rm proto-toplev/configure.in
+       rm proto-toplev/configure.ac
        sed -e '/^host_tools=/s/texinfo //' \
-           <configure.in >proto-toplev/configure.in
+           <configure.ac >proto-toplev/configure.ac
        #
        mkdir proto-toplev/texinfo
        ln -s ../../texinfo/texinfo.tex         proto-toplev/texinfo/
@@ -245,7 +263,7 @@ gas.tar.bz2: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
 
 # The FSF "binutils" release includes gprof and ld.
 .PHONY: binutils.tar.bz2
-BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms mkdep cpu
+BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld elfcpp gold gprof intl setup.com makefile.vms cpu
 binutils.tar.bz2: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
        $(MAKE) -f $(SELF) taz TOOL=binutils \
                MD5PROG="$(MD5PROG)" \
@@ -265,7 +283,7 @@ gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
                SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
 
 .PHONY: gdb.tar.bz2
-GDB_SUPPORT_DIRS= bfd include libiberty opcodes readline sim
+GDB_SUPPORT_DIRS= bfd include libiberty opcodes readline sim intl libdecnumber cpu
 gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
        $(MAKE) -f $(SELF) gdb-taz TOOL=gdb \
                MD5PROG="$(MD5PROG)" \
@@ -276,6 +294,14 @@ gdb.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
                MD5PROG="$(MD5PROG)" \
                SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
 
+# Corresponding to the CVS "sim" module.
+.PHONY: sim.tar.bz2
+SIM_SUPPORT_DIRS= bfd opcodes libiberty include intl gdb/version.in makefile.vms
+sim.tar.bz2: $(DIST_SUPPORT) $(SIM_SUPPORT_DIRS) sim
+       $(MAKE) -f $(SELF) taz TOOL=sim \
+               MD5PROG="$(MD5PROG)" \
+               SUPPORT_FILES="$(SIM_SUPPORT_DIRS)"
+
 .PHONY: insight.tar.bz2
 INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl libgui
 insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
This page took 0.027147 seconds and 4 git commands to generate.