diff options
author | David MacKenzie <djm@cygnus> | 1993-08-13 00:02:25 +0000 |
---|---|---|
committer | David MacKenzie <djm@cygnus> | 1993-08-13 00:02:25 +0000 |
commit | d6a4c375697112e9f8d35e787e703464708fa052 (patch) | |
tree | 9adc2f8b3f2c5ac525358f8b6814a50fb57a8d78 /binutils/Makefile.in | |
parent | 8b46d73404b9d7d8010975e68a1279f11dfc2671 (diff) | |
download | gdb-d6a4c375697112e9f8d35e787e703464708fa052.zip gdb-d6a4c375697112e9f8d35e787e703464708fa052.tar.gz gdb-d6a4c375697112e9f8d35e787e703464708fa052.tar.bz2 |
* Makefile.in ($(NM_PROG)): Depend on demangle.o.
(demangle.o): New target.
(cplus-dem.o): Depend on it, to force compilation order when doing
parallel compiles.
* nm.c (print_symbol_info_{bsd,sysv,posix}): Take a bfd arg.
(struct output_fns print_symbol_info): Ditto.
(long_options, usage, main): Add -C --demangle option.
(print_symname): New function, demangling if requested.
(print_symbols, print_symbol_info_{bsd,sysv,posix}): Use it.
Diffstat (limited to 'binutils/Makefile.in')
-rw-r--r-- | binutils/Makefile.in | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/binutils/Makefile.in b/binutils/Makefile.in index 125ffa0..e1b3db4 100644 --- a/binutils/Makefile.in +++ b/binutils/Makefile.in @@ -197,8 +197,8 @@ $(STRINGS_PROG): $(ADDL_LIBS) strings.o $(BFD) $(STRIP_PROG): $(ADDL_LIBS) objcopy.o is-strip.o $(BFD) $(CC) $(LDFLAGS) -o $(STRIP_PROG) objcopy.o is-strip.o $(ADDL_LIBS) $(EXTRALIBS) -$(NM_PROG): $(ADDL_LIBS) nm.o $(BFD) - $(CC) $(LDFLAGS) -o $(NM_PROG) nm.o $(ADDL_LIBS) $(EXTRALIBS) +$(NM_PROG): $(ADDL_LIBS) nm.o demangle.o $(BFD) + $(CC) $(LDFLAGS) -o $(NM_PROG) nm.o demangle.o $(ADDL_LIBS) $(EXTRALIBS) $(OBJDUMP_PROG): $(ADDL_LIBS) objdump.o $(BFD) $(OPCODES) $(CC) $(LDFLAGS) -o $(OBJDUMP_PROG) objdump.o $(OPCODES) $(ADDL_LIBS) $(EXTRALIBS) @@ -220,7 +220,12 @@ underscore.c: version.o: version.c $(CC) $(INCLUDES) $(HDEFINES) $(TDEFINES) -DVERSION='"$(VERSION)"' $(CFLAGS) -c $(srcdir)/version.c -cplus-dem.o: $(BASEDIR)/libiberty/cplus-dem.c $(INCDIR)/getopt.h +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 $(CC) -c -DMAIN $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CFLAGS) $(BASEDIR)/libiberty/cplus-dem.c $(DEMANGLER_PROG): cplus-dem.o $(LIBIBERTY) underscore.o version.o @@ -292,7 +297,7 @@ nm.o: nm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \ $(INCDIR)/fopen-same.h bucomm.h $(INCDIR)/getopt.h \ $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \ - $(INCDIR)/aout/ranlib.h + $(INCDIR)/aout/ranlib.h $(INCDIR)/demangle.h ar.o: ar.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \ $(INCDIR)/fopen-same.h bucomm.h $(INCDIR)/aout/ar.h \ |