* infrun.c (wait_for_inferior): Mark registers as invalid when
[external/binutils.git] / Makefile.in
index 5b74f17..f1acf87 100644 (file)
@@ -45,7 +45,7 @@ GDB_NLM_DEPS =
 
 SHELL = /bin/sh
 
-INSTALL = $$s/install-sh -c
+INSTALL = $(SHELL) $$s/install-sh -c
 INSTALL_PROGRAM = $(INSTALL)
 INSTALL_DATA = $(INSTALL) -m 644
 
@@ -62,9 +62,10 @@ HOST_CC = $(CC_FOR_BUILD)
 HOST_PREFIX = 
 HOST_PREFIX_1 = loser-
 
-# We don't specify -g -O because many compilers don't support -g -O,
-# and/or -O is broken in and of itself.
+# These flag values are normally overridden by the configure script.
 CFLAGS = -g
+CXXFLAGS = -g -O2
+
 LIBCFLAGS = $(CFLAGS)
 CFLAGS_FOR_TARGET = $(CFLAGS)
 LDFLAGS_FOR_TARGET = 
@@ -79,7 +80,6 @@ CHILL_LIB = -lchill
 CXX = c++
 
 # Use -O2 to stress test the compiler.
-CXXFLAGS = -g -O2
 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
@@ -89,6 +89,9 @@ RANLIB = ranlib
 DLLTOOL = dlltool
 
 NM = nm
+
+LD = ld
+
 # Not plain GZIP, since gzip looks there for extra command-line options.
 GZIPPROG = gzip
 
@@ -352,6 +355,7 @@ EXTRA_HOST_FLAGS = \
        'CC=$(CC)' \
        'CXX=$(CXX)' \
        'DLLTOOL=$(DLLTOOL)' \
+       'LD=$(LD)' \
        'NM=$(NM)' \
        'RANLIB=$(RANLIB)' 
 
@@ -426,6 +430,7 @@ GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
 ALL_MODULES = \
        all-apache \
        all-autoconf \
+       all-automake \
        all-bash \
        all-bfd \
        all-binutils \
@@ -501,6 +506,7 @@ NATIVE_CHECK_MODULES = \
 CROSS_CHECK_MODULES = \
        check-apache \
        check-autoconf \
+       check-automake \
        check-bash \
        check-bfd \
        check-binutils \
@@ -562,11 +568,16 @@ CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
 
 # This is a list of the install targets for all of the modules which are
 # compiled using $(FLAGS_TO_PASS).
+# We put install-opcodes before install-binutils because the installed
+# binutils might be on PATH, and they might need the shared opcodes
+# library.
 INSTALL_MODULES = \
        install-apache \
        install-autoconf \
+       install-automake \
        install-bash \
        install-bfd \
+       install-opcodes \
        install-binutils \
        install-byacc \
        install-cvs \
@@ -602,7 +613,6 @@ INSTALL_MODULES = \
        install-m4 \
        install-make \
        install-mmalloc \
-       install-opcodes \
        install-patch \
        install-perl \
        install-prms \
@@ -711,6 +721,7 @@ INSTALL_TARGET_MODULES = \
 CLEAN_MODULES = \
        clean-apache \
        clean-autoconf \
+       clean-automake \
        clean-bash \
        clean-bfd \
        clean-binutils \
@@ -845,10 +856,10 @@ $(DO_X):
              done; \
              ;; \
            esac ; \
-           export AR AS CC CXX NM RANLIB DLLTOOL; \
+           export AR AS CC CXX LD NM RANLIB DLLTOOL; \
            if (cd ./$$i; \
                $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
-                       "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
+                       "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
                        "RANLIB=$${RANLIB}" \
                        "DLLTOOL=$${DLLTOOL}" \
                        $${target}); \
@@ -864,10 +875,10 @@ $(DO_X):
            for flag in $(EXTRA_TARGET_FLAGS); do \
                eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
            done; \
-           export AR AS CC CXX NM RANLIB DLLTOOL; \
+           export AR AS CC CXX LD NM RANLIB DLLTOOL; \
            if (cd $(TARGET_SUBDIR)/$$i; \
                $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
-                       "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
+                       "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
                        "RANLIB=$${RANLIB}" \
                        "DLLTOOL=$${DLLTOOL}" \
                        $${target}); \
@@ -1331,6 +1342,7 @@ install-dosrel-fake:
 # This is a list of inter-dependencies among modules.
 all-apache:
 all-autoconf: all-m4
+all-automake:
 all-bash:
 all-bfd:
 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-byacc
@@ -1480,25 +1492,16 @@ ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
 # 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
-# Files where "byacc" (Cygnus version) should be changed to "bison -y" (FSF).
-DISTBISONFILES= binutils/Makefile.in gas/Makefile.in gdb/Makefile.in ld/Makefile.in
 
 .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/' \
+           -e '/^BISON = `if/,/^$$/d' \
+           -e '/^# BISON:/s/.*/BISON = $(DEFAULT_YACC)/' \
        <Makefile.in >tmp
        mv -f tmp Makefile.in
        #