X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=Makefile.in;h=9eae8e65edcc45e11b072b529ef70ffed0e3d461;hb=1b2660412156e2eec0545da6d3d6d7744c39a6ad;hp=2d143060944df4b3c1dcd99fa2d1240349e3eb0e;hpb=abd8680d6efd97e7ba848a6392ee3ad72be18cd0;p=binutils-gdb.git diff --git a/Makefile.in b/Makefile.in index 2d143060944..9eae8e65edc 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1414,6 +1414,17 @@ $(INSTALL_X11_MODULES): installdirs # gcc is the only module which uses GCC_FLAGS_TO_PASS. .PHONY: all-gcc all-gcc: + # When configured with --enable-shared, libtool creates a + # script in the build directory which automatically relinks + # the program to search for shared libraries in the build + # directory. However, when ld/ld-new is called the first time + # from the new gcc, all the compiler environment variables are + # set to use the new gcc. ld/ld-new will use the new gcc to + # relink the new linker. It is incorrect. We cannot run + # ld/ld-new the first time from the new gcc. It is a very + # special case. We deal with it here. + -if test -f gcc/Makefile -a -x ld/ld-new -a -x ld/.libs/ld-new; then \ + ld/ld-new -v >/dev/null 2>&1; fi @if [ -f ./gcc/Makefile ] ; then \ r=`pwd`; export r; \ s=`cd $(srcdir); pwd`; export s; \ @@ -1747,14 +1758,19 @@ taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex else \ ver=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \ fi; \ - $(MAKE) -f Makefile.in do-tar-bz2 TOOL=$(TOOL) VER=$$ver + if test x"$(PACKAGE)" = x; then \ + package="$(TOOL)"; \ + else \ + package="$(PACKAGE)"; \ + fi; \ + $(MAKE) -f Makefile.in do-tar-bz2 TOOL=$(TOOL) VER=$$ver PACKAGE=$$package do-tar-bz2: - echo "==> Making $(TOOL)-$(VER).tar.bz2" - -rm -f $(TOOL)-$(VER) - ln -s proto-toplev $(TOOL)-$(VER) - tar cfh $(TOOL)-$(VER).tar $(TOOL)-$(VER) - $(BZIPPROG) -v -9 $(TOOL)-$(VER).tar + echo "==> Making $(PACKAGE)-$(VER).tar.bz2" + -rm -f $(PACKAGE)-$(VER) + ln -s proto-toplev $(PACKAGE)-$(VER) + tar cfh $(PACKAGE)-$(VER).tar $(PACKAGE)-$(VER) + $(BZIPPROG) -v -9 $(PACKAGE)-$(VER).tar TEXINFO_SUPPORT= texinfo/texinfo.tex DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT) @@ -1791,10 +1807,33 @@ gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats .PHONY: gdb.tar.bz2 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl -GDBTK_SUPPORT_DIRS= `if [ -d tcl -a -d tk ] ; then echo tcl tk itcl tix libgui; fi` gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb $(MAKE) -f Makefile.in taz TOOL=gdb \ - SUPPORT_FILES="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)" + SUPPORT_FILES="$(GDB_SUPPORT_DIRS)" + +.PHONY: dejagnu.tar.bz2 +DEJAGNU_SUPPORT_DIRS= tcl expect libiberty +dejagnu.tar.bz2: $(DIST_SUPPORT) $(DEJAGNU_SUPPORT_DIRS) dejagnu + $(MAKE) -f Makefile.in taz TOOL=dejagnu \ + SUPPORT_FILES="$(DEJAGNU_SUPPORT_DIRS)" + +.PHONY: gdb+dejagnu.tar.bz2 +GDBD_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl expect dejagnu +gdb+dejagnu.tar.bz2: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb + $(MAKE) -f Makefile.in taz TOOL=gdb PACKAGE=gdb+dejagnu \ + SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)" + +.PHONY: insight.tar.bz2 +INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl tix libgui +insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb + $(MAKE) -f Makefile.in taz TOOL=gdb PACKAGE=insight \ + SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)" + +.PHONY: insight+dejagnu.tar.bz2 +INSIGHTD_SUPPORT_DIRS= $(INSIGHT_SUPPORT_DIRS) expect dejagnu +insight+dejagnu.tar.bz2: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb + $(MAKE) -f Makefile.in taz TOOL=gdb PACKAGE="insight+dejagnu" \ + SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)" .PHONY: newlib.tar.bz2 NEWLIB_SUPPORT_DIRS=libgloss