-GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob sim
-GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS)
-
-.PHONY: setup-dirs-gdb gdb.tar.Z make-gdb.tar.Z
-setup-dirs-gdb:
- ./configure sun4
- $(MAKE) clean
- ./configure -rm sun4
- chmod og=u `find etc $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
-
-gdb.tar.Z: 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.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 = /,/^$$/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/tex3patch proto-toplev/texinfo/
- chmod og=u `find proto-toplev -print`
- (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
- ln -s proto-toplev gdb-$$VER; \
- echo "==> Making gdb-$$VER.tar.Z"; \
- tar cfh - gdb-$$VER | $(COMPRESS) -v >gdb-$$VER.tar.Z; \
- echo "==> Making gdb-$$VER.tar.gz"; \
- tar cfh - gdb-$$VER | $(GZIP) -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.Z"; \
- tar cfh - gdb-$$VER/configure gdb-$$VER/config.guess \
- gdb-$$VER/config.sub gdb-$$VER/move-if-change \
- gdb-$$VER/gdb/testsuite | \
- $(COMPRESS) -v >gdb-$$VER-testsuite.tar.Z; \
- 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 | \
- $(GZIP) -v -9 >gdb-$$VER-testsuite.tar.gz)