diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-06-16 21:59:41 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-06-16 21:59:41 +0000 |
commit | 6f88f0312286a7356b43ff479642a4894ea07890 (patch) | |
tree | 18edf24a4cbd948ab51e8001e204dfa3479cf533 /binutils/Makefile.in | |
parent | e3400040faa27cb517fad2393b68c5345968f25f (diff) | |
download | gdb-6f88f0312286a7356b43ff479642a4894ea07890.zip gdb-6f88f0312286a7356b43ff479642a4894ea07890.tar.gz gdb-6f88f0312286a7356b43ff479642a4894ea07890.tar.bz2 |
* configure.in: Set UNDERSCORE in Makefile based on result of
invoking config.bfd with a second argument of ``_''.
* Makefile.in (underscore.c): Depend upon Makefile. Don't try to
run $(CC) and $(NM), just use $(UNDERSCORE). Create via temporary
file.
(demangle.o): Remove target.
($(NM_PROG)): Don't depend upon demangle.o, and don't link against
demangle.o. It's in libiberty anyhow.
(cplus-dem.o): Don't depend upon demangle.o.
* binutils.texi: Mention -n and --no-strip-underscores arguments
to c++filt.
Diffstat (limited to 'binutils/Makefile.in')
-rw-r--r-- | binutils/Makefile.in | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/binutils/Makefile.in b/binutils/Makefile.in index e7fdee3..6373595 100644 --- a/binutils/Makefile.in +++ b/binutils/Makefile.in @@ -198,33 +198,22 @@ $(STRINGS_PROG): $(ADDL_LIBS) strings.o $(BFD) $(STRIP_PROG): $(ADDL_LIBS) objcopy.o is-strip.o $(BFD) $(CC) $(CFLAGS) $(LDFLAGS) -o $(STRIP_PROG) objcopy.o is-strip.o $(ADDL_LIBS) $(EXTRALIBS) -$(NM_PROG): $(ADDL_LIBS) nm.o demangle.o $(BFD) - $(CC) $(CFLAGS) $(LDFLAGS) -o $(NM_PROG) nm.o demangle.o $(ADDL_LIBS) $(EXTRALIBS) +$(NM_PROG): $(ADDL_LIBS) nm.o $(BFD) + $(CC) $(CFLAGS) $(LDFLAGS) -o $(NM_PROG) nm.o $(ADDL_LIBS) $(EXTRALIBS) $(OBJDUMP_PROG): $(ADDL_LIBS) objdump.o $(BFD) $(OPCODES) $(CC) $(CFLAGS) $(LDFLAGS) -o $(OBJDUMP_PROG) objdump.o $(OPCODES) $(ADDL_LIBS) $(EXTRALIBS) -underscore.c: - echo "int xxy_us_dummy;" >dummy.c - $(CC) -c dummy.c +underscore.c: Makefile rm -f underscore.c - echo '/*WARNING: This file is automatically generated!*/' >underscore.c - if [ "`$(NM) dummy.o | grep _xxy_us_dummy ; true`" != "" ]; then \ - echo "int prepends_underscore = 1;" >>underscore.c; \ - else \ - echo "int prepends_underscore = 0;" >>underscore.c; \ - fi - -rm -f dummy.c dummy.o + echo '/*WARNING: This file is automatically generated!*/' >underscore.t + echo "int prepends_underscore = $(UNDERSCORE);" >>underscore.t + mv -f underscore.t underscore.c version.o: version.c $(CC) $(INCLUDES) $(HDEFINES) $(TDEFINES) -DVERSION='"$(VERSION)"' $(CFLAGS) -c $(srcdir)/version.c -demangle.o: $(BASEDIR)/libiberty/cplus-dem.c - $(CC) -c $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CFLAGS) $(BASEDIR)/libiberty/cplus-dem.c - mv cplus-dem.o demangle.o - -# For parallel compiling, depend on demangle.o so that one gets done first. -cplus-dem.o: $(BASEDIR)/libiberty/cplus-dem.c $(INCDIR)/getopt.h demangle.o +cplus-dem.o: $(BASEDIR)/libiberty/cplus-dem.c $(INCDIR)/getopt.h $(CC) -c -DMAIN $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CFLAGS) $(BASEDIR)/libiberty/cplus-dem.c $(DEMANGLER_PROG): cplus-dem.o $(LIBIBERTY) underscore.o version.o |