* Makefile.in (LIBIBERTY_SRC_DIR, LIBIBERTY_BIN_DIR): New macros.
authorFred Fish <fnf@specifix.com>
Fri, 12 Feb 1993 18:08:35 +0000 (18:08 +0000)
committerFred Fish <fnf@specifix.com>
Fri, 12 Feb 1993 18:08:35 +0000 (18:08 +0000)
* Makefile.in (LIBIBERTY):  Use LIBIBERTY_BIN_DIR.
* Makefile.in (DEMANGLER_PROG):  New program to build.  Add macro
and rule.
* Makefile.in (PROGS):  Add DEMANGLER_PROG.

binutils/ChangeLog
binutils/Makefile.in

index 2b4d4a436718ae79196eeb061be2804cd7824e3e..c8b0f3e503e06143a74e7b7ed23b432b26a6a783 100644 (file)
@@ -1,3 +1,31 @@
+Fri Feb 12 10:05:20 1993  Fred Fish  (fnf@cygnus.com)
+
+       * Makefile.in (LIBIBERTY_SRC_DIR, LIBIBERTY_BIN_DIR): New macros.
+       * Makefile.in (LIBIBERTY):  Use LIBIBERTY_BIN_DIR.
+       * Makefile.in (DEMANGLER_PROG):  New program to build.  Add macro
+       and rule.
+       * Makefile.in (PROGS):  Add DEMANGLER_PROG.
+
+Tue Jan 26 11:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * copy.c, nm.c, objdump.c, size.c: Use new bfd_is_com_section
+       macro rather than checking for equality to bfd_com_section.
+
+Fri Jan  8 15:50:05 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * objdump.c (disassemble_data): Fix code to find first useless
+       symbol.
+
+Thu Jan  7 13:13:31 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * objdump.c (disassemble_data): Use mips_print_insn for MIPS.
+       Don't core dump if bfd_find_nearest_line returns false.
+
+Wed Jan  6 17:14:01 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
+
+       * objdump.c (disassemble_data): know how to disassemble z8000s
+       too.
+
 Wed Jan  6 15:16:27 1993  Per Bothner  (bothner@cygnus.com)
 
        * arsup.h (interactive), bucomm.h (program_name):  Prefix
index 7272893dc0f78a8f9b3297c081e6b6c6a874c7c7..29b0cfe26e16ae583381f1c81b891cd217348183 100644 (file)
@@ -52,6 +52,7 @@ AR = ar
 AR_FLAGS = qv
 CFLAGS = -g
 MAKEINFO = makeinfo
+TEXI2DVI = texi2dvi
 RANLIB = ranlib
 BISONFLAGS = -d
 TEXI2ROFF=texi2roff
@@ -89,7 +90,10 @@ SIZE_PROG=size
 NM_PROG=nm
 OBJDUMP_PROG=objdump
 
-PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRIP_PROG) $(RANLIB_PROG)
+# This is the demangler, as a standalone program.
+DEMANGLER_PROG=demangle
+
+PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG)
 STAGESTUFF = $(PROGS) *.o
 # Files that can be generated, but should be in the distribution.
 DISTSTUFF=arparse.c arlex.c binutils.mm
@@ -126,7 +130,9 @@ DISASMS = m68k-pinsn.o i960-pinsn.o i386-pinsn.o sparc-pinsn.o  am29k-pinsn.o
 # Use the GNU getopt unless you have problems with it.
 # The IRIS version could probably benefit from being assembled with
 # libmalloc rather than the ordinary malloc.
-LIBIBERTY = ./../libiberty/libiberty.a
+LIBIBERTY_SRC_DIR = $(srcdir)/../libiberty
+LIBIBERTY_BIN_DIR = ./../libiberty
+LIBIBERTY = $(LIBIBERTY_BIN_DIR)/libiberty.a
 
 # Code shared by all the binutils.
 BULIBS = bucomm.o version.o filemode.o
@@ -148,6 +154,8 @@ test-install:
 
 info: binutils.info
 
+dvi: binutils.dvi
+
 #$(BFD):$(LIBDIR)/../common/*.c
 #      (cd $(LIBDIR); make)
 
@@ -166,6 +174,9 @@ $(NM_PROG): $(ADDL_LIBS) nm.o $(BFD)
 $(OBJDUMP_PROG): $(ADDL_LIBS) size.o objdump.o $(DISASMS) $(BFD) $(OPCODES)
        $(CC) $(LDFLAGS) $(CFLAGS) -o $(OBJDUMP_PROG) objdump.o $(DISASMS) $(ADDL_LIBS) $(OPCODES) $(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)
+
 arparse.c:arparse.y
        $(BISON) $(BISONFLAGS)  $(srcdir)/arparse.y
        -mv y.tab.c arparse.c
@@ -234,9 +245,7 @@ de-stage3: force
 # DOCUMENTATION TARGETS
 # TeX output
 binutils.dvi: $(srcdir)/binutils.texi
-       TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex $(srcdir)/binutils.texi
-       texindex binutils.??
-       TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex $(srcdir)/binutils.texi
+       $(TEXI2DVI) $(srcdir)/binutils.texi
 
 # info file for online browsing
 binutils.info: $(srcdir)/binutils.texi