-ETC_SUPPORT= Makefile.in cfg-paper.texi configure.in configure.man \
- configure.texi standards.texi make-stds.texi
-
-GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob sim
-GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS)
-
-.PHONY: setup-dirs-gdb gdb.tar.gz make-gdb.tar.gz
-setup-dirs-gdb:
- $(start-sanitize-Sanitize)
- @if [ -f .Sanitize ] ; then echo "RUN Sanitize FIRST!" ; false ; fi ;
- $(end-sanitize-Sanitize)
- ./configure sun4
- $(MAKE) clean
- ./configure -rm sun4
- chmod og=u `find etc $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
-
-gdb.tar.gz: setup-dirs-gdb
- (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir BISON="byacc")
- (cd gdb; $(MAKE) -f Makefile.in make-proto-testsuite.dir)
- $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.gz
-
-make-gdb.tar.gz: $(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
-
- # Change the bug reporting address in configure to bug-gdb
- rm proto-toplev/configure
- <configure >proto-toplev/configure
- chmod a+x proto-toplev/configure
-
- # 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 = /,/^$$/d' \
- -e '/^# BISON:/s/.*/BISON = bison -y/' \
- <Makefile.in >proto-toplev/Makefile.in
-
- mkdir proto-toplev/texinfo
- ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
- ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
- ln -s ../../texinfo/tex3patch proto-toplev/texinfo/
- chmod og=u `find proto-toplev -print`
- (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
- echo "==> Making gdb-$$VER.tar.gz"; \
- rm -f gdb-$$VER; ln -s proto-toplev gdb-$$VER; \
- tar cfh - gdb-$$VER \
- | $(GZIPPROG) -v -9 >gdb-$$VER.tar.gz)
-
- # Make the testsuite archive separately.
- ln -s ../../gdb/proto-testsuite.dir/testsuite proto-toplev/gdb/testsuite
- # Blow away the Chill test that requires a Chill compiled executable,
- # since GNU Chill is not yet publically available.
- rm -rf proto-toplev/gdb/testsuite/gdb.t31
-
- # Put a copy of COPYING in the tar file.
- ln proto-toplev/gdb/COPYING proto-toplev/gdb/testsuite/COPYING
- chmod og=u `find proto-toplev/gdb/testsuite -print`
- (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
- echo "==> Making gdb-$$VER-testsuite.tar.gz"; \
- tar cfh - gdb-$$VER/configure gdb-$$VER/config.guess \
- gdb-$$VER/config.sub gdb-$$VER/move-if-change \
- gdb-$$VER/gdb/testsuite \
- | $(GZIPPROG) -v -9 >gdb-$$VER-testsuite.tar.gz)