diff options
author | Ken Raeburn <raeburn@cygnus> | 1993-05-25 04:28:56 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1993-05-25 04:28:56 +0000 |
commit | f50af42bbf2a269b78b4ff916aed6b311b96812b (patch) | |
tree | 0abcbb89f9a0029b2d97eb11805febcf27338aaf /binutils/Makefile.in | |
parent | 8a6d5d4f93d9817ab7490ab24b36ee1b3f62b3db (diff) | |
download | gdb-f50af42bbf2a269b78b4ff916aed6b311b96812b.zip gdb-f50af42bbf2a269b78b4ff916aed6b311b96812b.tar.gz gdb-f50af42bbf2a269b78b4ff916aed6b311b96812b.tar.bz2 |
Makefile.in (DISTSTUFF): Don't build binutils.mm.
objdump.c (slurp_symtab): Print warning for bad symbol table.
Diffstat (limited to 'binutils/Makefile.in')
-rw-r--r-- | binutils/Makefile.in | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/binutils/Makefile.in b/binutils/Makefile.in index 865d90f..7e6edd1 100644 --- a/binutils/Makefile.in +++ b/binutils/Makefile.in @@ -57,6 +57,8 @@ RANLIB = ranlib BISONFLAGS = -d TEXI2ROFF=texi2roff +NM_FOR_TARGET = nm +NM = $(NM_FOR_TARGET) SYMLINK = ln -s BISON = `if [ -f ../byacc/byacc ] ; then echo ../byacc/byacc ; else echo byacc ; fi` @@ -65,7 +67,7 @@ LEX_OPTIONS = -I -Cem LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi` # Distribution version -VERSION=2.1 +VERSION=2.2 # Distribution name DIST_NAME=binutils-${VERSION} @@ -96,7 +98,7 @@ DEMANGLER_PROG=c++filt PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG) STAGESTUFF = $(PROGS) *.o # Files that can be generated, but should be in the distribution. -DISTSTUFF=arparse.c arlex.c binutils.mm +DISTSTUFF=arparse.c arlex.c BASEDIR = $(srcdir)/.. LIBDIR = ./../bfd @@ -194,8 +196,22 @@ $(NM_PROG): $(ADDL_LIBS) nm.o $(BFD) $(OBJDUMP_PROG): $(ADDL_LIBS) size.o objdump.o $(BFD) $(OPCODES) $(CC) $(LDFLAGS) $(CFLAGS) -o $(OBJDUMP_PROG) objdump.o $(OPCODES) $(ADDL_LIBS) $(LOADLIBES) -$(DEMANGLER_PROG): $(LIBIBERTY_SRC_DIR)/cplus-dem.c - $(CC) $(LDFLAGS) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) -DMAIN -o $(DEMANGLER_PROG) $(LIBIBERTY_SRC_DIR)/cplus-dem.c $(LIBIBERTY) $(LOADLIBES) +underscore.c: + echo "int xxy_us_dummy;" >dummy.c + $(CC) -c dummy.c + echo '/*WARNING: This file is automatically generated!*/' >underscore.c + if [ "`$(NM) dummy.o | grep _xxy_us_dummy`" != "" ]; then \ + echo "int prepends_underscore = 1;" >>underscore.c; \ + else \ + echo "int prepends_underscore = 0;" >>underscore.c; \ + fi + -rm -f dummy.c dummy.o + +cplus-dem.o: $(LIBIBERTY_SRC_DIR)/cplus-dem.c + $(CC) -c -DMAIN $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(LIBIBERTY_SRC_DIR)/cplus-dem.c + +$(DEMANGLER_PROG): cplus-dem.o $(LIBIBERTY) underscore.o + $(CC) $(LDFLAGS) $(CFLAGS) -o $(DEMANGLER_PROG) cplus-dem.o $(LIBIBERTY) $(LOADLIBES) underscore.o arparse.c:arparse.y $(BISON) $(BISONFLAGS) $(srcdir)/arparse.y @@ -336,7 +352,7 @@ binutils.me: $(srcdir)/binutils.texi mostlyclean: -rm -f *.o *~ \#* core binutils.?? binutils.??? clean: mostlyclean - -rm -f $(PROGS) + -rm -f $(PROGS) underscore.c distclean: clean -rm -f Makefile config.status sysdep.h realclean: distclean @@ -386,11 +402,11 @@ clean-info: # Sanitize # cd {HERE}; make dist [-f Makefile.in] -dist: $(DIST_NAME).tar.Z +dist: $(DIST_NAME).tar.z diststuff: $(DISTSTUFF) -$(DIST_NAME).tar.Z: +$(DIST_NAME).tar.z: cd ../..; rm -f $(DIST_NAME); ln -s devo $(DIST_NAME) make diststuff -f Makefile.in cd ../ld; make diststuff -f Makefile.in @@ -400,7 +416,7 @@ $(DIST_NAME).tar.Z: mv ../configure.in tmp; \ sed -e '/^host_tools=/s/texinfo //' <tmp >../configure.in; rm tmp cd ..; chmod og=u `find . -print` - cd ../..; tar chf - $(DIST_NAME) | compress >$(DIST_NAME).tar.Z + cd ../..; tar chf - $(DIST_NAME) | gzip >$(DIST_NAME).tar.z rm -rf ../../$(DIST_NAME) # These get around a bug in Sun Make in SunOS 4.1.1 |