diff options
author | Tristan Gingold <gingold@adacore.com> | 2011-05-16 12:22:13 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2011-05-16 12:22:13 +0000 |
commit | 6abcee9042f9603cf9fdeb62fa55335a6aa974e9 (patch) | |
tree | b39c076736f3af34bd9e1bb7a766598a3c6a96d1 /binutils/Makefile.am | |
parent | f37a7048a8608dcc4465a4b425cc4fd3b0f9e1cd (diff) | |
download | gdb-6abcee9042f9603cf9fdeb62fa55335a6aa974e9.zip gdb-6abcee9042f9603cf9fdeb62fa55335a6aa974e9.tar.gz gdb-6abcee9042f9603cf9fdeb62fa55335a6aa974e9.tar.bz2 |
2011-05-16 Tristan Gingold <gingold@adacore.com>
* od-xcoff.c: New file.
* objdump.h: New file.
* objdump.c: Include objdump.h
(dump_private_options, objdump_private_vectors): New variables.
(usage): Mention -P/--private. Display handled options.
(long_options): Add -P/--private.
(dump_target_specific): New function.
(dump_bfd): Handle dump_private_options.
(main): Handle -P.
* doc/binutils.texi (objdump): Document -P/--private.
* configure.in (OBJDUMP_PRIVATE_VECTORS, OBJDUMP_PRIVATE_OFILES):
New variables, compute them.
(od_vectors): Add vectors for private dumpers. Make them uniq.
(OBJDUMP_DEFS): Add OBJDUMP_PRIVATE_VECTORS.
* Makefile.am (HFILES): Add objdump.h
(CFILES): Add od-xcoff.c
(OBJDUMP_PRIVATE_OFILES): New variable.
(objdump_DEPENDENCIES): Append OBJDUMP_PRIVATE_OFILES.
(objdump_LDADD): Ditto.
(EXTRA_objdump_SOURCES): Define.
* Makefile.in: Regenerate.
* configure: Regenerate.
Diffstat (limited to 'binutils/Makefile.am')
-rw-r--r-- | binutils/Makefile.am | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/binutils/Makefile.am b/binutils/Makefile.am index 6546087..6f9e4a8 100644 --- a/binutils/Makefile.am +++ b/binutils/Makefile.am @@ -85,7 +85,7 @@ AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \ HFILES = \ arsup.h binemul.h bucomm.h budbg.h \ coffgrok.h debug.h dlltool.h dwarf.h elfcomm.h nlmconv.h \ - sysdep.h unwind-ia64.h windres.h winduni.h windint.h \ + objdump.h sysdep.h unwind-ia64.h windres.h winduni.h windint.h \ windmc.h GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h mcparse.h @@ -99,6 +99,7 @@ CFILES = \ ieee.c is-ranlib.c is-strip.c maybe-ranlib.c maybe-strip.c \ nlmconv.c nm.c not-ranlib.c not-strip.c \ objcopy.c objdump.c prdbg.c \ + od-xcoff.c \ rclex.c rdcoff.c rddbg.c readelf.c rename.c \ resbin.c rescoff.c resrc.c resres.c \ size.c srconv.c stabs.c strings.c sysdump.c \ @@ -113,6 +114,9 @@ GENERATED_CFILES = \ DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c +# Extra object files for objdump +OBJDUMP_PRIVATE_OFILES = @OBJDUMP_PRIVATE_OFILES@ + # Code shared by all the binutils. BULIBS = bucomm.c version.c filemode.c @@ -167,7 +171,7 @@ installcheck-local: # which depends on libintl, since we don't know whether LIBINTL_DEP will be # non-empty until configure time. Ugh! size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) -objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES) +objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES) $(OBJDUMP_PRIVATE_OFILES) nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) @@ -206,7 +210,8 @@ strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS) nm_new_SOURCES = nm.c $(BULIBS) objdump_SOURCES = objdump.c dwarf.c prdbg.c $(DEBUG_SRCS) $(BULIBS) $(ELFLIBS) -objdump_LDADD = $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL) +EXTRA_objdump_SOURCES = od-xcoff.c +objdump_LDADD = $(OBJDUMP_PRIVATE_OFILES) $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL) objdump.@OBJEXT@:objdump.c if am__fastdepCC |