1999-05-03 15:29:11 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
2012-12-18 00:56:12 +08:00
|
|
|
#
|
2020-01-01 15:57:01 +08:00
|
|
|
# Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
2012-12-18 00:56:12 +08:00
|
|
|
#
|
|
|
|
# This file is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
2013-12-11 06:01:01 +08:00
|
|
|
#
|
2012-12-18 00:56:12 +08:00
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2013-12-11 06:01:01 +08:00
|
|
|
#
|
2012-12-18 00:56:12 +08:00
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; see the file COPYING3. If not see
|
|
|
|
# <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2019-07-23 16:44:57 +08:00
|
|
|
AUTOMAKE_OPTIONS = dejagnu no-dist foreign subdir-objects
|
2007-06-14 23:31:01 +08:00
|
|
|
ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-06-19 19:57:29 +08:00
|
|
|
SUBDIRS = doc po
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
tooldir = $(exec_prefix)/$(target_alias)
|
|
|
|
|
|
|
|
## These aren't set by automake, because they appear in
|
|
|
|
## bfd/acinclude.m4, which is included by binutils/acinclude.m4, and
|
|
|
|
## thus is not seen by automake.
|
|
|
|
CC_FOR_BUILD = @CC_FOR_BUILD@
|
|
|
|
EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
|
|
|
|
|
1999-08-05 23:35:10 +08:00
|
|
|
YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
|
1999-05-03 15:29:11 +08:00
|
|
|
YFLAGS = -d
|
1999-08-05 23:35:10 +08:00
|
|
|
LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
|
2013-09-18 18:33:02 +08:00
|
|
|
LEXLIB = @LEXLIB@
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2009-08-24 13:55:55 +08:00
|
|
|
# Automake 1.10+ disables lex and yacc output file regeneration if
|
|
|
|
# maintainer mode is disabled. Avoid this.
|
|
|
|
am__skiplex =
|
|
|
|
am__skipyacc =
|
|
|
|
|
2015-03-31 18:53:41 +08:00
|
|
|
# This is where we get zlib from. zlibdir is -L../zlib and zlibinc is
|
|
|
|
# -I../zlib, unless we were configured with --with-system-zlib, in which
|
|
|
|
# case both are empty.
|
|
|
|
ZLIB = @zlibdir@ -lz
|
|
|
|
ZLIBINC = @zlibinc@
|
|
|
|
|
2000-04-09 20:17:43 +08:00
|
|
|
WARN_CFLAGS = @WARN_CFLAGS@
|
2016-09-26 23:36:08 +08:00
|
|
|
WARN_CFLAGS_FOR_BUILD = @WARN_CFLAGS_FOR_BUILD@
|
2005-04-14 13:26:44 +08:00
|
|
|
NO_WERROR = @NO_WERROR@
|
2015-03-31 18:53:41 +08:00
|
|
|
AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
|
2016-09-26 23:36:08 +08:00
|
|
|
AM_CFLAGS_FOR_BUILD = $(WARN_CFLAGS_FOR_BUILD) $(ZLIBINC)
|
* Makefile.am: Add LIBICONV to windres.
* acinclude.m4: Added missing "lib-*.m4" and "lt*.m4" files.
* configure.in: Add AC_CHECK_HEADER for iconv.h and use AM_ICONV.
* config.in: Add ICONV defines.
* aclocal: Regenerate.
* confugure: Regenerate.
* winduni.c: (local_iconv_map codepages, wind_language_t, languages, unicode_is$
(ascii_from_unicode): Use codepage_from_unicode.
(ascii_from_unicode): Use unicode_from_codepage.
Use for cygwin windows API for unicode transformation.
* winduni.h: (CP_ACP, CP_UTF7, CP_UTF8, CP_OEM, CP_UTF16): New macros.
(wind_language_t, local_iconv_map): New types.
(wind_find_language_by_id, wind_find_language_by_codepage,
(unicode_is_valid_codepage, wind_find_codepage_info, unicode_from_codepage, c$
2007-06-05 21:10:30 +08:00
|
|
|
LIBICONV = @LIBICONV@
|
2000-04-09 20:17:43 +08:00
|
|
|
|
2020-01-09 21:19:20 +08:00
|
|
|
LIBDEBUGINFOD = @LIBDEBUGINFOD@
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
# these two are almost the same program
|
|
|
|
AR_PROG=ar
|
|
|
|
RANLIB_PROG=ranlib
|
|
|
|
|
|
|
|
# objcopy and strip should be the same program
|
|
|
|
OBJCOPY_PROG=objcopy
|
|
|
|
STRIP_PROG=strip-new
|
|
|
|
|
|
|
|
STRINGS_PROG=strings
|
|
|
|
|
|
|
|
READELF_PROG=readelf
|
|
|
|
|
2010-01-07 00:52:15 +08:00
|
|
|
ELFEDIT_PROG=elfedit
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
# These should all be the same program too.
|
|
|
|
SIZE_PROG=size
|
|
|
|
NM_PROG=nm-new
|
|
|
|
OBJDUMP_PROG=objdump
|
|
|
|
|
|
|
|
# This is the demangler, as a standalone program.
|
|
|
|
# Note: This one is used as the installed name too, unlike the above.
|
1999-08-09 02:09:48 +08:00
|
|
|
DEMANGLER_PROG=cxxfilt
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
ADDR2LINE_PROG=addr2line
|
|
|
|
|
|
|
|
DLLTOOL_PROG=dlltool
|
|
|
|
WINDRES_PROG=windres
|
2007-06-19 21:24:33 +08:00
|
|
|
WINDMC_PROG=windmc
|
1999-05-03 15:29:11 +08:00
|
|
|
DLLWRAP_PROG=dllwrap
|
|
|
|
|
2006-06-23 14:04:37 +08:00
|
|
|
SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2018-04-16 13:41:22 +08:00
|
|
|
bin_PROGRAMS = $(SIZE_PROG) $(OBJDUMP_PROG) $(AR_PROG) $(STRINGS_PROG) $(RANLIB_PROG) $(OBJCOPY_PROG) @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@ @BUILD_WINDMC@ $(ADDR2LINE_PROG) $(READELF_PROG) $(ELFEDIT_PROG) @BUILD_DLLWRAP@
|
2011-05-30 14:12:03 +08:00
|
|
|
|
|
|
|
bin_SCRIPTS = @BUILD_INSTALL_MISC@
|
|
|
|
EXTRA_SCRIPTS = embedspu
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2012-08-17 04:31:34 +08:00
|
|
|
## Test programs.
|
|
|
|
BFDTEST1_PROG = bfdtest1
|
2012-11-07 07:45:43 +08:00
|
|
|
BFDTEST2_PROG = bfdtest2
|
2019-07-23 16:44:57 +08:00
|
|
|
GENTESTDLLS_PROG = testsuite/gentestdlls
|
2012-08-17 04:31:34 +08:00
|
|
|
|
2019-07-23 16:44:57 +08:00
|
|
|
TEST_PROGS = $(BFDTEST1_PROG) $(BFDTEST2_PROG) $(GENTESTDLLS_PROG)
|
2012-08-17 04:31:34 +08:00
|
|
|
|
1999-08-09 02:09:48 +08:00
|
|
|
## We need a special rule to install the programs which are built with
|
|
|
|
## -new, and to rename cxxfilt to c++filt.
|
2007-02-28 15:10:52 +08:00
|
|
|
RENAMED_PROGS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG)
|
2012-08-17 04:31:34 +08:00
|
|
|
noinst_PROGRAMS = $(RENAMED_PROGS) $(TEST_PROGS) @BUILD_MISC@
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2018-04-16 13:41:22 +08:00
|
|
|
EXTRA_PROGRAMS = srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(WINDMC_PROG) $(DLLWRAP_PROG)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2002-03-18 20:46:27 +08:00
|
|
|
# Stuff that goes in tooldir/ if appropriate.
|
2015-08-28 23:34:44 +08:00
|
|
|
TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump objcopy readelf
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
BASEDIR = $(srcdir)/..
|
|
|
|
BFDDIR = $(BASEDIR)/bfd
|
|
|
|
INCDIR = $(BASEDIR)/include
|
|
|
|
|
Cleanups in binutils makefiles.
ld/:
* Makefile.am (bin_PROGRAMS): Renamed from ...
(noinst_PROGRAMS): ... this.
(transform): Override, including the renaming of ld-new to ld.
(install-exec-local): Installation of ld in $(bindir) not needed
here any more.
(AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
(MAINTAINERCLEANFILES): Add ld.1.
* Makefile.in: Regenerate.
gold/:
* Makefile.am (AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Add -Wno-portability.
(AM_CPPFLAGS): Renamed from ...
(INCLUDE): ... this.
* Makefile.in, testsuite/Makefile.in: Regenerate.
bfd/:
* Makefile.am (libbfd_la_LDFLAGS): Initialize early, to allow
appending.
[INSTALL_LIBBFD] (bfdlib_LTLIBRARIES, bfdinclude_HEADERS): Set
only in this condition.
[!INSTALL_LIBBFD] (noinst_LTLIBRARIES, libbfd_la_LDFLAGS): New,
to build but not install libbfd.la in this condition.
(install-bfdlibLTLIBRARIES, uninstall-bfdlibLTLIBRARIES)
(install_libbfd, install_libbfd): Remove.
* Makefile.in: Regenerate.
binutils/:
* Makefile.am (AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
(bin2c$(EXEEXT_FOR_BUILD): Adjust rule.
(installcheck-local): Renamed from ...
(installcheck): ... this.
* Makefile.in: Regenerate.
gas/:
* Makefile.am (YFLAGS): Remove, not needed any more.
(AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
* Makefile.in: Regenerate.
gprof/:
* Makefile.am (AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
* Makefile.in: Regenerate.
opcodes/:
* Makefile.am (libopcodes_la_LDFLAGS): Initialize early.
[INSTALL_LIBBFD] (bfdlib_LTLIBRARIES): Set only in this condition.
[INSTALL_LIBBFD] (bfdinclude_DATA): New.
[!INSTALL_LIBBFD] (noinst_LTLIBRARIES): New.
[!INSTALL_LIBBFD] (libopcodes_la_LDFLAGS): Ensure libopcodes.la
is built shared even if it is not to be installed.
(install-bfdlibLTLIBRARIES,uninstall-bfdlibLTLIBRARIES)
(install_libopcodes, uninstall_libopcodes): Remove.
(AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
* Makefile.in: Regenerate.
2009-08-23 03:02:57 +08:00
|
|
|
AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
|
2002-03-18 20:46:27 +08:00
|
|
|
@HDEFINES@ \
|
2006-05-31 23:14:46 +08:00
|
|
|
@INCINTL@ \
|
2004-12-01 01:20:48 +08:00
|
|
|
-DLOCALEDIR="\"$(datadir)/locale\"" \
|
2002-03-18 20:46:27 +08:00
|
|
|
-Dbin_dummy_emulation=$(EMULATION_VECTOR)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2002-07-02 12:21:25 +08:00
|
|
|
HFILES = \
|
2007-04-19 18:43:47 +08:00
|
|
|
arsup.h binemul.h bucomm.h budbg.h \
|
2018-04-16 13:41:22 +08:00
|
|
|
coffgrok.h debug.h dlltool.h dwarf.h elfcomm.h \
|
2011-05-16 20:22:13 +08:00
|
|
|
objdump.h sysdep.h unwind-ia64.h windres.h winduni.h windint.h \
|
2007-06-19 21:24:33 +08:00
|
|
|
windmc.h
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2007-06-19 21:24:33 +08:00
|
|
|
GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h mcparse.h
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
BUILT_SOURCES = $(GENERATED_HFILES)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2002-07-02 12:21:25 +08:00
|
|
|
CFILES = \
|
2007-04-19 18:43:47 +08:00
|
|
|
addr2line.c ar.c arsup.c bin2c.c binemul.c bucomm.c \
|
2005-09-30 22:55:05 +08:00
|
|
|
coffdump.c coffgrok.c cxxfilt.c \
|
|
|
|
dwarf.c debug.c dlltool.c dllwrap.c \
|
2010-11-22 05:27:15 +08:00
|
|
|
elfcomm.c emul_aix.c emul_vanilla.c filemode.c \
|
2018-04-16 13:46:00 +08:00
|
|
|
is-ranlib.c is-strip.c maybe-ranlib.c maybe-strip.c \
|
2018-04-16 13:41:22 +08:00
|
|
|
nm.c not-ranlib.c not-strip.c \
|
2002-07-02 12:21:25 +08:00
|
|
|
objcopy.c objdump.c prdbg.c \
|
2011-12-13 17:13:15 +08:00
|
|
|
od-xcoff.c od-macho.c \
|
2007-05-23 16:48:29 +08:00
|
|
|
rclex.c rdcoff.c rddbg.c readelf.c rename.c \
|
2002-07-02 12:21:25 +08:00
|
|
|
resbin.c rescoff.c resrc.c resres.c \
|
2007-07-08 20:57:07 +08:00
|
|
|
size.c srconv.c stabs.c strings.c sysdump.c \
|
2012-05-16 22:26:46 +08:00
|
|
|
syslex_wrap.c unwind-ia64.c elfedit.c version.c \
|
2007-06-19 21:24:33 +08:00
|
|
|
windres.c winduni.c wrstabs.c \
|
|
|
|
windmc.c mclex.c
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
GENERATED_CFILES = \
|
2002-09-17 15:09:47 +08:00
|
|
|
arparse.c arlex.c sysroff.c sysinfo.c syslex.c \
|
2018-04-16 13:41:22 +08:00
|
|
|
defparse.c deflex.c rcparse.c mcparse.c
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2018-04-16 13:46:00 +08:00
|
|
|
DEBUG_SRCS = rddbg.c debug.c stabs.c rdcoff.c
|
1999-05-03 15:29:11 +08:00
|
|
|
WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
|
|
|
|
|
2011-05-16 20:22:13 +08:00
|
|
|
# Extra object files for objdump
|
|
|
|
OBJDUMP_PRIVATE_OFILES = @OBJDUMP_PRIVATE_OFILES@
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
# Code shared by all the binutils.
|
|
|
|
BULIBS = bucomm.c version.c filemode.c
|
|
|
|
|
2010-11-22 05:27:15 +08:00
|
|
|
# Code shared by the ELF related programs.
|
|
|
|
ELFLIBS = elfcomm.c
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
BFDLIB = ../bfd/libbfd.la
|
|
|
|
|
|
|
|
OPCODES = ../opcodes/libopcodes.la
|
|
|
|
|
libctf: installable libctf as a shared library
This lets other programs read and write CTF-format data.
Two versioned shared libraries are created: libctf.so and
libctf-nobfd.so. They contain identical content except that
libctf-nobfd.so contains no references to libbfd and does not implement
ctf_open, ctf_fdopen, ctf_bfdopen or ctf_bfdopen_ctfsect, so it can be
used by programs that cannot use BFD, like readelf.
The soname major version is presently .0 until the linker API
stabilizes, when it will flip to .1 and hopefully never change again.
New in v3.
v4: libtoolize and turn into a pair of shared libraries. Drop
--enable-install-ctf: now controlled by --enable-shared and
--enable-install-libbfd, like everything else.
v5: Add ../bfd to ACLOCAL_AMFLAGS and AC_CONFIG_MACRO_DIR. Fix tabdamage.
* Makefile.def (host_modules): libctf is no longer no_install.
* Makefile.in: Regenerated.
libctf/
* configure.ac (AC_DISABLE_SHARED): New, like opcodes/.
(LT_INIT): Likewise.
(AM_INSTALL_LIBBFD): Likewise.
(dlopen): Note why this is necessary in a comment.
(SHARED_LIBADD): Initialize for possibly-PIC libiberty: derived from
opcodes/.
(SHARED_LDFLAGS): Likewise.
(BFD_LIBADD): Likewise, for libbfd.
(BFD_DEPENDENCIES): Likewise.
(VERSION_FLAGS): Initialize, using a version script if ld supports
one, or libtool -export-symbols-regex otherwise.
(AC_CONFIG_MACRO_DIR): Add ../BFD.
* Makefile.am (ACLOCAL_AMFLAGS): Likewise.
(INCDIR): New.
(AM_CPPFLAGS): Use $(srcdir), not $(top_srcdir).
(noinst_LIBRARIES): Replace with...
[INSTALL_LIBBFD] (lib_LTLIBRARIES): This, or...
[!INSTALL_LIBBFD] (noinst_LTLIBRARIES): ... this, mentioning new
libctf-nobfd.la as well.
[INSTALL_LIBCTF] (include_HEADERS): Add the CTF headers.
[!INSTALL_LIBCTF] (include_HEADERS): New, empty.
(libctf_a_SOURCES): Rename to...
(libctf_nobfd_la_SOURCES): ... this, all of libctf other than
ctf-open-bfd.c.
(libctf_la_SOURCES): Now derived from libctf_nobfd_la_SOURCES,
with ctf-open-bfd.c added.
(libctf_nobfd_la_LIBADD): New, using @SHARED_LIBADD@.
(libctf_la_LIBADD): New, using @BFD_LIBADD@ as well.
(libctf_la_DEPENDENCIES): New, using @BFD_DEPENDENCIES@.
* Makefile.am [INSTALL_LIBCTF]: Use it.
* aclocal.m4: Add ../bfd/acinclude.m4, ../config/acx.m4, and the
libtool macros.
* libctf.ver: New, everything is version LIBCTF_1.0 currently (even
the unstable components).
* Makefile.in: Regenerated.
* config.h.in: Likewise.
* configure: Likewise.
binutils/
* Makefile.am (LIBCTF): Mention the .la file.
(LIBCTF_NOBFD): New.
(readelf_DEPENDENCIES): Use it.
(readelf_LDADD): Likewise.
* Makefile.in: Regenerated.
ld/
* configure.ac (TESTCTFLIB): Set to the .so or .a, like TESTBFDLIB.
* Makefile.am (TESTCTFLIB): Use it.
(LIBCTF): Use the .la file.
(check-DEJAGNU): Use it.
* Makefile.in: Regenerated.
* configure: Likewise.
include/
* ctf-api.h: Note the instability of the ctf_link interfaces.
2019-07-20 21:45:12 +08:00
|
|
|
LIBCTF = ../libctf/libctf.la
|
|
|
|
LIBCTF_NOBFD = ../libctf/libctf-nobfd.la
|
binutils: CTF support for objdump and readelf
This introduces CTF support for objdump and readelf. objdump has the
following new arguments:
--ctf=SECTION: display CTF in the given SECTION
--ctf-parent=SECTION: name of CTF section that is the parent of this section
readelf has the above, and these two as well:
--ctf-symbols=SECTION: name of symbol table section (optional)
--ctf-strings=SECTION: name of string table section (optional)
(objdump can always use BFD machinery to determine the applicable string
and symbol tables automatically, so these arguments are unnecessary.)
Nearly all the work is done by the ctf_dump machinery in libctf: most of
the remaining work is option-processing and section-reading, and thus is
different for objdump and readelf: the minimal amount of similar code
remaining is, in my view, too small to share, particularly given that
objdump uses ctf_bfdopen() and readelf uses ctf_simple_open() since it
doesn't have a bfd.
I am not particularly satisfied with the way resources are freed in
either of these (I was forced to do it at the top level, for lack of
anywhere else to free resources allocated during option processing), but
I can't see any better way to do it without introducing new
infrastructure for no other purpose.
There are essentially arbitrary ordering changes to the Makefile.in's
order of libtool-related stuff that I can't get rid of, but they have no
semantic effect. (It is possible that some hunks of these changes could
be dropped, but that seems a bit risky to me.)
binutils/
* objdump.c (ctf-api.h): New include.
(dump_ctf_section_info): New variable.
(dump_ctf_section_name): Likewise.
(usage): Describe new options.
(enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
(main): Use them to add --ctf and --ctf-parent.
(read_section_stabs): Add new parameter, entsize_ptr.
(find_stabs_section): Adjust accordingly.
(make_ctfsect): New.
(dump_ctf_indent_lines): New.
(dump_ctf_archive_member): New.
(dump_ctf): New.
(dump_bfd): Call it. Free resources afterwards.
* readelf.c (ctf-api.h): New include.
(CTF_DUMP): New.
(static bfd_boolean do_ctf): Likewise.
(dump_ctf_parent_name): Likewise.
(dump_ctf_symtab_name): Likewise.
(dump_ctf_strtab_name): Likewise.
(OPTION_CTF_DUMP): Likewise.
(OPTION_CTF_PARENT): Likewise.
(OPTION_CTF_SYMBOLS): Likewise.
(OPTION_CTF_STRINGS): Likewise.
(options): Add them.
(usage): Likewise.
(parse_args): Handle the new options, requesting CTF_DUMP.
(process_section_contents): Handle CTF_DUMP.
(shdr_to_ctf_sect): New.
(dump_ctf_indent_lines): New.
(dump_section_as_ctf): New.
(main): Free resources.
* Makefile.am (LIBCTF): New variable.
(objdump_DEPENDENCIES): Use it.
(readelf_DEPENDENCIES): Likewise.
(objdump_LDADD): Likewise.
(readelf_LDADD): Likewise.
* aclocal.m4: Regenerated.
* Makefile.in: Likewise.
* doc/binutils.texi (objdump): Document the new options.
(readelf): Likewise.
* doc/ctf.options.texi: New.
* doc/Makefile.in: Regenerated.
* NEWS: Mention the new feature.
2019-04-24 19:04:33 +08:00
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
LIBIBERTY = ../libiberty/libiberty.a
|
|
|
|
|
|
|
|
POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
|
|
|
|
po/POTFILES.in: @MAINT@ Makefile
|
2008-08-04 14:55:33 +08:00
|
|
|
for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
|
1999-05-03 15:29:11 +08:00
|
|
|
&& mv tmp $(srcdir)/po/POTFILES.in
|
|
|
|
|
2005-06-30 04:30:00 +08:00
|
|
|
EXPECT = expect
|
|
|
|
RUNTEST = runtest
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
CC_FOR_TARGET = ` \
|
|
|
|
if [ -f $$r/../gcc/xgcc ] ; then \
|
|
|
|
if [ -f $$r/../newlib/Makefile ] ; then \
|
|
|
|
echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
|
|
|
|
else \
|
|
|
|
echo $$r/../gcc/xgcc -B$$r/../gcc/; \
|
|
|
|
fi; \
|
|
|
|
else \
|
|
|
|
if [ "@host@" = "@target@" ] ; then \
|
|
|
|
echo $(CC); \
|
|
|
|
else \
|
|
|
|
echo gcc | sed '$(transform)'; \
|
|
|
|
fi; \
|
|
|
|
fi`
|
|
|
|
|
|
|
|
check-DEJAGNU: site.exp
|
|
|
|
srcdir=`cd $(srcdir) && pwd`; export srcdir; \
|
|
|
|
r=`pwd`; export r; \
|
2012-05-08 20:14:15 +08:00
|
|
|
LC_ALL=C; export LC_ALL; \
|
1999-05-03 15:29:11 +08:00
|
|
|
EXPECT=$(EXPECT); export EXPECT; \
|
|
|
|
runtest=$(RUNTEST); \
|
|
|
|
if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
|
2016-01-29 05:29:53 +08:00
|
|
|
CC="$(CC)" CC_FOR_BUILD="$(CC_FOR_BUILD)" \
|
2001-11-30 01:00:58 +08:00
|
|
|
CC_FOR_TARGET="$(CC_FOR_TARGET)" CFLAGS_FOR_TARGET="$(CFLAGS)" \
|
|
|
|
$$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
|
|
|
|
$(RUNTESTFLAGS); \
|
1999-05-03 15:29:11 +08:00
|
|
|
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
|
|
|
|
fi
|
|
|
|
|
2018-08-23 21:12:37 +08:00
|
|
|
development.exp: $(BFDDIR)/development.sh
|
|
|
|
$(EGREP) "[development|experimental]=" $(BFDDIR)/development.sh \
|
|
|
|
| $(AWK) -F= '{ print "set " $$1 " " $$2 }' > $@
|
|
|
|
|
Cleanups in binutils makefiles.
ld/:
* Makefile.am (bin_PROGRAMS): Renamed from ...
(noinst_PROGRAMS): ... this.
(transform): Override, including the renaming of ld-new to ld.
(install-exec-local): Installation of ld in $(bindir) not needed
here any more.
(AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
(MAINTAINERCLEANFILES): Add ld.1.
* Makefile.in: Regenerate.
gold/:
* Makefile.am (AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Add -Wno-portability.
(AM_CPPFLAGS): Renamed from ...
(INCLUDE): ... this.
* Makefile.in, testsuite/Makefile.in: Regenerate.
bfd/:
* Makefile.am (libbfd_la_LDFLAGS): Initialize early, to allow
appending.
[INSTALL_LIBBFD] (bfdlib_LTLIBRARIES, bfdinclude_HEADERS): Set
only in this condition.
[!INSTALL_LIBBFD] (noinst_LTLIBRARIES, libbfd_la_LDFLAGS): New,
to build but not install libbfd.la in this condition.
(install-bfdlibLTLIBRARIES, uninstall-bfdlibLTLIBRARIES)
(install_libbfd, install_libbfd): Remove.
* Makefile.in: Regenerate.
binutils/:
* Makefile.am (AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
(bin2c$(EXEEXT_FOR_BUILD): Adjust rule.
(installcheck-local): Renamed from ...
(installcheck): ... this.
* Makefile.in: Regenerate.
gas/:
* Makefile.am (YFLAGS): Remove, not needed any more.
(AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
* Makefile.in: Regenerate.
gprof/:
* Makefile.am (AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
* Makefile.in: Regenerate.
opcodes/:
* Makefile.am (libopcodes_la_LDFLAGS): Initialize early.
[INSTALL_LIBBFD] (bfdlib_LTLIBRARIES): Set only in this condition.
[INSTALL_LIBBFD] (bfdinclude_DATA): New.
[!INSTALL_LIBBFD] (noinst_LTLIBRARIES): New.
[!INSTALL_LIBBFD] (libopcodes_la_LDFLAGS): Ensure libopcodes.la
is built shared even if it is not to be installed.
(install-bfdlibLTLIBRARIES,uninstall-bfdlibLTLIBRARIES)
(install_libopcodes, uninstall_libopcodes): Remove.
(AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
* Makefile.in: Regenerate.
2009-08-23 03:02:57 +08:00
|
|
|
installcheck-local:
|
1999-05-03 15:29:11 +08:00
|
|
|
/bin/sh $(srcdir)/sanity.sh $(bindir)
|
|
|
|
|
2006-05-31 23:14:46 +08:00
|
|
|
# There's no global DEPENDENCIES. So, we must explicitly list everything
|
|
|
|
# which depends on libintl, since we don't know whether LIBINTL_DEP will be
|
|
|
|
# non-empty until configure time. Ugh!
|
2006-06-23 14:04:37 +08:00
|
|
|
size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
binutils: CTF support for objdump and readelf
This introduces CTF support for objdump and readelf. objdump has the
following new arguments:
--ctf=SECTION: display CTF in the given SECTION
--ctf-parent=SECTION: name of CTF section that is the parent of this section
readelf has the above, and these two as well:
--ctf-symbols=SECTION: name of symbol table section (optional)
--ctf-strings=SECTION: name of string table section (optional)
(objdump can always use BFD machinery to determine the applicable string
and symbol tables automatically, so these arguments are unnecessary.)
Nearly all the work is done by the ctf_dump machinery in libctf: most of
the remaining work is option-processing and section-reading, and thus is
different for objdump and readelf: the minimal amount of similar code
remaining is, in my view, too small to share, particularly given that
objdump uses ctf_bfdopen() and readelf uses ctf_simple_open() since it
doesn't have a bfd.
I am not particularly satisfied with the way resources are freed in
either of these (I was forced to do it at the top level, for lack of
anywhere else to free resources allocated during option processing), but
I can't see any better way to do it without introducing new
infrastructure for no other purpose.
There are essentially arbitrary ordering changes to the Makefile.in's
order of libtool-related stuff that I can't get rid of, but they have no
semantic effect. (It is possible that some hunks of these changes could
be dropped, but that seems a bit risky to me.)
binutils/
* objdump.c (ctf-api.h): New include.
(dump_ctf_section_info): New variable.
(dump_ctf_section_name): Likewise.
(usage): Describe new options.
(enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
(main): Use them to add --ctf and --ctf-parent.
(read_section_stabs): Add new parameter, entsize_ptr.
(find_stabs_section): Adjust accordingly.
(make_ctfsect): New.
(dump_ctf_indent_lines): New.
(dump_ctf_archive_member): New.
(dump_ctf): New.
(dump_bfd): Call it. Free resources afterwards.
* readelf.c (ctf-api.h): New include.
(CTF_DUMP): New.
(static bfd_boolean do_ctf): Likewise.
(dump_ctf_parent_name): Likewise.
(dump_ctf_symtab_name): Likewise.
(dump_ctf_strtab_name): Likewise.
(OPTION_CTF_DUMP): Likewise.
(OPTION_CTF_PARENT): Likewise.
(OPTION_CTF_SYMBOLS): Likewise.
(OPTION_CTF_STRINGS): Likewise.
(options): Add them.
(usage): Likewise.
(parse_args): Handle the new options, requesting CTF_DUMP.
(process_section_contents): Handle CTF_DUMP.
(shdr_to_ctf_sect): New.
(dump_ctf_indent_lines): New.
(dump_section_as_ctf): New.
(main): Free resources.
* Makefile.am (LIBCTF): New variable.
(objdump_DEPENDENCIES): Use it.
(readelf_DEPENDENCIES): Likewise.
(objdump_LDADD): Likewise.
(readelf_LDADD): Likewise.
* aclocal.m4: Regenerated.
* Makefile.in: Likewise.
* doc/binutils.texi (objdump): Document the new options.
(readelf): Likewise.
* doc/ctf.options.texi: New.
* doc/Makefile.in: Regenerated.
* NEWS: Mention the new feature.
2019-04-24 19:04:33 +08:00
|
|
|
objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES) $(LIBCTF) $(OBJDUMP_PRIVATE_OFILES)
|
2006-06-23 14:04:37 +08:00
|
|
|
nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
2006-06-23 22:30:59 +08:00
|
|
|
ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
2006-06-23 14:04:37 +08:00
|
|
|
strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
|
|
|
strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
2006-06-23 22:30:59 +08:00
|
|
|
ranlib_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
2006-06-23 14:04:37 +08:00
|
|
|
cxxfilt_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
|
|
|
objcopy_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
|
|
|
srconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
|
|
|
sysdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
|
|
|
coffdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
2006-06-23 22:30:59 +08:00
|
|
|
dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
2007-06-26 22:39:52 +08:00
|
|
|
windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
|
|
|
windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
2006-06-23 14:04:37 +08:00
|
|
|
addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
libctf: installable libctf as a shared library
This lets other programs read and write CTF-format data.
Two versioned shared libraries are created: libctf.so and
libctf-nobfd.so. They contain identical content except that
libctf-nobfd.so contains no references to libbfd and does not implement
ctf_open, ctf_fdopen, ctf_bfdopen or ctf_bfdopen_ctfsect, so it can be
used by programs that cannot use BFD, like readelf.
The soname major version is presently .0 until the linker API
stabilizes, when it will flip to .1 and hopefully never change again.
New in v3.
v4: libtoolize and turn into a pair of shared libraries. Drop
--enable-install-ctf: now controlled by --enable-shared and
--enable-install-libbfd, like everything else.
v5: Add ../bfd to ACLOCAL_AMFLAGS and AC_CONFIG_MACRO_DIR. Fix tabdamage.
* Makefile.def (host_modules): libctf is no longer no_install.
* Makefile.in: Regenerated.
libctf/
* configure.ac (AC_DISABLE_SHARED): New, like opcodes/.
(LT_INIT): Likewise.
(AM_INSTALL_LIBBFD): Likewise.
(dlopen): Note why this is necessary in a comment.
(SHARED_LIBADD): Initialize for possibly-PIC libiberty: derived from
opcodes/.
(SHARED_LDFLAGS): Likewise.
(BFD_LIBADD): Likewise, for libbfd.
(BFD_DEPENDENCIES): Likewise.
(VERSION_FLAGS): Initialize, using a version script if ld supports
one, or libtool -export-symbols-regex otherwise.
(AC_CONFIG_MACRO_DIR): Add ../BFD.
* Makefile.am (ACLOCAL_AMFLAGS): Likewise.
(INCDIR): New.
(AM_CPPFLAGS): Use $(srcdir), not $(top_srcdir).
(noinst_LIBRARIES): Replace with...
[INSTALL_LIBBFD] (lib_LTLIBRARIES): This, or...
[!INSTALL_LIBBFD] (noinst_LTLIBRARIES): ... this, mentioning new
libctf-nobfd.la as well.
[INSTALL_LIBCTF] (include_HEADERS): Add the CTF headers.
[!INSTALL_LIBCTF] (include_HEADERS): New, empty.
(libctf_a_SOURCES): Rename to...
(libctf_nobfd_la_SOURCES): ... this, all of libctf other than
ctf-open-bfd.c.
(libctf_la_SOURCES): Now derived from libctf_nobfd_la_SOURCES,
with ctf-open-bfd.c added.
(libctf_nobfd_la_LIBADD): New, using @SHARED_LIBADD@.
(libctf_la_LIBADD): New, using @BFD_LIBADD@ as well.
(libctf_la_DEPENDENCIES): New, using @BFD_DEPENDENCIES@.
* Makefile.am [INSTALL_LIBCTF]: Use it.
* aclocal.m4: Add ../bfd/acinclude.m4, ../config/acx.m4, and the
libtool macros.
* libctf.ver: New, everything is version LIBCTF_1.0 currently (even
the unstable components).
* Makefile.in: Regenerated.
* config.h.in: Likewise.
* configure: Likewise.
binutils/
* Makefile.am (LIBCTF): Mention the .la file.
(LIBCTF_NOBFD): New.
(readelf_DEPENDENCIES): Use it.
(readelf_LDADD): Likewise.
* Makefile.in: Regenerated.
ld/
* configure.ac (TESTCTFLIB): Set to the .so or .a, like TESTBFDLIB.
* Makefile.am (TESTCTFLIB): Use it.
(LIBCTF): Use the .la file.
(check-DEJAGNU): Use it.
* Makefile.in: Regenerated.
* configure: Likewise.
include/
* ctf-api.h: Note the instability of the ctf_link interfaces.
2019-07-20 21:45:12 +08:00
|
|
|
readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(LIBCTF_NOBFD)
|
2019-06-03 23:28:15 +08:00
|
|
|
elfedit_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
|
2006-06-23 14:04:37 +08:00
|
|
|
dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
|
2012-08-17 04:31:34 +08:00
|
|
|
bfdtest1_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
2012-11-07 07:45:43 +08:00
|
|
|
bfdtest2_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
|
2006-05-31 23:14:46 +08:00
|
|
|
|
|
|
|
LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
size_SOURCES = size.c $(BULIBS)
|
|
|
|
|
|
|
|
objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
|
|
|
|
|
|
|
|
strings_SOURCES = strings.c $(BULIBS)
|
|
|
|
|
2010-11-22 05:27:15 +08:00
|
|
|
readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c $(ELFLIBS)
|
2020-01-09 21:19:20 +08:00
|
|
|
readelf_LDADD = $(LIBINTL) $(LIBCTF_NOBFD) $(LIBIBERTY) $(ZLIB) $(LIBDEBUGINFOD)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2010-11-22 05:27:15 +08:00
|
|
|
elfedit_SOURCES = elfedit.c version.c $(ELFLIBS)
|
2010-01-07 00:52:15 +08:00
|
|
|
elfedit_LDADD = $(LIBINTL) $(LIBIBERTY)
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
|
|
|
|
|
2007-04-19 18:43:47 +08:00
|
|
|
nm_new_SOURCES = nm.c $(BULIBS)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2010-11-22 05:27:15 +08:00
|
|
|
objdump_SOURCES = objdump.c dwarf.c prdbg.c $(DEBUG_SRCS) $(BULIBS) $(ELFLIBS)
|
2011-05-16 20:22:13 +08:00
|
|
|
EXTRA_objdump_SOURCES = od-xcoff.c
|
2020-01-09 21:19:20 +08:00
|
|
|
objdump_LDADD = $(OBJDUMP_PRIVATE_OFILES) $(OPCODES) $(LIBCTF) $(BFDLIB) $(LIBIBERTY) $(LIBINTL) $(LIBDEBUGINFOD)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2010-05-25 22:02:38 +08:00
|
|
|
objdump.@OBJEXT@:objdump.c
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
if am__fastdepCC
|
|
|
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(OBJDUMP_DEFS) $(srcdir)/objdump.c
|
|
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
|
|
|
else
|
|
|
|
if AMDEP
|
|
|
|
source='objdump.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
|
endif
|
2001-01-10 04:25:31 +08:00
|
|
|
$(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
endif
|
2001-01-10 04:25:31 +08:00
|
|
|
|
2002-09-17 15:09:47 +08:00
|
|
|
cxxfilt_SOURCES = cxxfilt.c $(BULIBS)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2002-03-18 20:46:27 +08:00
|
|
|
ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
|
|
|
|
emul_$(EMULATION).c $(BULIBS)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
EXTRA_ar_SOURCES = $(CFILES)
|
2013-09-18 18:33:02 +08:00
|
|
|
ar_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2002-03-18 20:46:27 +08:00
|
|
|
ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
|
|
|
|
binemul.c emul_$(EMULATION).c $(BULIBS)
|
2013-09-18 18:33:02 +08:00
|
|
|
ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2007-04-19 18:43:47 +08:00
|
|
|
addr2line_SOURCES = addr2line.c $(BULIBS)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2000-04-04 18:53:56 +08:00
|
|
|
# The following is commented out for the conversion to automake.
|
1999-05-03 15:29:11 +08:00
|
|
|
# This rule creates a single binary that switches between ar and ranlib
|
|
|
|
# by looking at argv[0]. Use this kludge to save some disk space.
|
|
|
|
# However, you have to install things by hand.
|
|
|
|
# (That is after 'make install', replace the installed ranlib by a link to ar.)
|
|
|
|
# Alternatively, you can install ranlib.sh as ranlib.
|
|
|
|
# ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
|
|
|
|
# $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
|
|
|
|
# -rm -f $(RANLIB_PROG)
|
|
|
|
# -ln $(AR_PROG) $(RANLIB_PROG)
|
|
|
|
#
|
|
|
|
# objcopy and strip in one binary that uses argv[0] to decide its action.
|
|
|
|
#
|
|
|
|
#objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
|
|
|
|
# $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
|
|
|
|
# -rm -f $(STRIP_PROG)
|
|
|
|
# -ln $(OBJCOPY_PROG) $(STRIP_PROG)
|
|
|
|
|
2006-06-23 14:04:37 +08:00
|
|
|
sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
|
1999-05-03 15:29:11 +08:00
|
|
|
./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
|
|
|
|
./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
|
|
|
|
./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
|
|
|
|
|
|
|
|
sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
|
|
|
|
./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
|
|
|
|
|
2012-05-16 22:26:46 +08:00
|
|
|
sysinfo$(EXEEXT_FOR_BUILD): sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
|
|
|
|
$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2012-05-16 22:26:46 +08:00
|
|
|
syslex_wrap.@OBJEXT@: syslex_wrap.c syslex.c sysinfo.h config.h
|
2016-09-26 23:36:08 +08:00
|
|
|
$(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex_wrap.c
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2010-05-25 22:02:38 +08:00
|
|
|
sysinfo.@OBJEXT@: sysinfo.c
|
1999-05-03 15:29:11 +08:00
|
|
|
if [ -r sysinfo.c ]; then \
|
2016-09-26 23:36:08 +08:00
|
|
|
$(CC_FOR_BUILD) -c -I. $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \
|
1999-05-03 15:29:11 +08:00
|
|
|
else \
|
2016-09-26 23:36:08 +08:00
|
|
|
$(CC_FOR_BUILD) -c -I. $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
|
1999-05-03 15:29:11 +08:00
|
|
|
fi
|
|
|
|
|
2010-11-05 18:50:59 +08:00
|
|
|
bin2c$(EXEEXT_FOR_BUILD): bin2c.c
|
2016-09-26 23:36:08 +08:00
|
|
|
$(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
|
2007-02-28 09:29:32 +08:00
|
|
|
|
2011-05-30 14:12:03 +08:00
|
|
|
embedspu: embedspu.sh Makefile
|
2011-08-08 08:27:15 +08:00
|
|
|
awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
|
2007-01-11 14:24:40 +08:00
|
|
|
chmod a+x $@
|
|
|
|
|
2000-04-04 18:53:56 +08:00
|
|
|
# We need these for parallel make.
|
|
|
|
sysinfo.h: sysinfo.c
|
|
|
|
|
2005-04-12 10:50:28 +08:00
|
|
|
# Disable -Werror, if it has been enabled, since old versions of bison/
|
2006-06-23 14:04:37 +08:00
|
|
|
# yacc will produce working code which contain compile time warnings.
|
2010-05-25 22:02:38 +08:00
|
|
|
arparse.@OBJEXT@: arparse.c
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
if am__fastdepCC
|
Fix VPATH search for generated sources in binutils, gas, ld.
binutils/:
* Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
(deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
gas/:
* Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
Supply correct source file name for generated files which may be
in $(srcdir).
* Makefile.in: Regenerate.
ld/:
* Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
2009-09-02 04:56:51 +08:00
|
|
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
|
|
|
else
|
|
|
|
if AMDEP
|
|
|
|
source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
|
endif
|
Fix VPATH search for generated sources in binutils, gas, ld.
binutils/:
* Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
(deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
gas/:
* Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
Supply correct source file name for generated files which may be
in $(srcdir).
* Makefile.in: Regenerate.
ld/:
* Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
2009-09-02 04:56:51 +08:00
|
|
|
$(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
endif
|
|
|
|
|
2010-05-25 22:02:38 +08:00
|
|
|
arlex.@OBJEXT@: arlex.c
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
if am__fastdepCC
|
Fix VPATH search for generated sources in binutils, gas, ld.
binutils/:
* Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
(deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
gas/:
* Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
Supply correct source file name for generated files which may be
in $(srcdir).
* Makefile.in: Regenerate.
ld/:
* Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
2009-09-02 04:56:51 +08:00
|
|
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
|
|
|
else
|
|
|
|
if AMDEP
|
|
|
|
source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
|
endif
|
Fix VPATH search for generated sources in binutils, gas, ld.
binutils/:
* Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
(deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
gas/:
* Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
Supply correct source file name for generated files which may be
in $(srcdir).
* Makefile.in: Regenerate.
ld/:
* Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
2009-09-02 04:56:51 +08:00
|
|
|
$(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
endif
|
|
|
|
|
2010-05-25 22:02:38 +08:00
|
|
|
sysroff.@OBJEXT@: sysroff.c
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
if am__fastdepCC
|
Fix VPATH search for generated sources in binutils, gas, ld.
binutils/:
* Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
(deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
gas/:
* Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
Supply correct source file name for generated files which may be
in $(srcdir).
* Makefile.in: Regenerate.
ld/:
* Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
2009-09-02 04:56:51 +08:00
|
|
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
|
|
|
else
|
|
|
|
if AMDEP
|
|
|
|
source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
|
endif
|
Fix VPATH search for generated sources in binutils, gas, ld.
binutils/:
* Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
(deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
gas/:
* Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
Supply correct source file name for generated files which may be
in $(srcdir).
* Makefile.in: Regenerate.
ld/:
* Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
2009-09-02 04:56:51 +08:00
|
|
|
$(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
endif
|
|
|
|
|
2010-05-25 22:02:38 +08:00
|
|
|
defparse.@OBJEXT@: defparse.c
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
if am__fastdepCC
|
Fix VPATH search for generated sources in binutils, gas, ld.
binutils/:
* Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
(deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
gas/:
* Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
Supply correct source file name for generated files which may be
in $(srcdir).
* Makefile.in: Regenerate.
ld/:
* Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
2009-09-02 04:56:51 +08:00
|
|
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
|
|
|
else
|
|
|
|
if AMDEP
|
|
|
|
source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
|
endif
|
Fix VPATH search for generated sources in binutils, gas, ld.
binutils/:
* Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
(deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
gas/:
* Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
Supply correct source file name for generated files which may be
in $(srcdir).
* Makefile.in: Regenerate.
ld/:
* Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
2009-09-02 04:56:51 +08:00
|
|
|
$(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
endif
|
|
|
|
|
2010-05-25 22:02:38 +08:00
|
|
|
deflex.@OBJEXT@: deflex.c
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
if am__fastdepCC
|
Fix VPATH search for generated sources in binutils, gas, ld.
binutils/:
* Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
(deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
gas/:
* Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
Supply correct source file name for generated files which may be
in $(srcdir).
* Makefile.in: Regenerate.
ld/:
* Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
2009-09-02 04:56:51 +08:00
|
|
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
|
|
|
else
|
|
|
|
if AMDEP
|
|
|
|
source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
|
endif
|
Fix VPATH search for generated sources in binutils, gas, ld.
binutils/:
* Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
(deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
gas/:
* Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
Supply correct source file name for generated files which may be
in $(srcdir).
* Makefile.in: Regenerate.
ld/:
* Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
2009-09-02 04:56:51 +08:00
|
|
|
$(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
endif
|
|
|
|
|
2010-05-25 22:02:38 +08:00
|
|
|
rcparse.@OBJEXT@: rcparse.c
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
if am__fastdepCC
|
Fix VPATH search for generated sources in binutils, gas, ld.
binutils/:
* Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
(deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
gas/:
* Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
Supply correct source file name for generated files which may be
in $(srcdir).
* Makefile.in: Regenerate.
ld/:
* Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
2009-09-02 04:56:51 +08:00
|
|
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
|
|
|
else
|
|
|
|
if AMDEP
|
|
|
|
source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
|
endif
|
Fix VPATH search for generated sources in binutils, gas, ld.
binutils/:
* Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
(deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
gas/:
* Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
Supply correct source file name for generated files which may be
in $(srcdir).
* Makefile.in: Regenerate.
ld/:
* Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
2009-09-02 04:56:51 +08:00
|
|
|
$(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
endif
|
|
|
|
|
2010-05-25 22:02:38 +08:00
|
|
|
mcparse.@OBJEXT@: mcparse.c
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
if am__fastdepCC
|
Fix VPATH search for generated sources in binutils, gas, ld.
binutils/:
* Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
(deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
gas/:
* Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
Supply correct source file name for generated files which may be
in $(srcdir).
* Makefile.in: Regenerate.
ld/:
* Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
2009-09-02 04:56:51 +08:00
|
|
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
|
|
|
else
|
|
|
|
if AMDEP
|
|
|
|
source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
|
endif
|
Fix VPATH search for generated sources in binutils, gas, ld.
binutils/:
* Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
(deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
gas/:
* Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
Supply correct source file name for generated files which may be
in $(srcdir).
* Makefile.in: Regenerate.
ld/:
* Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
source file name for generated files which may be in $(srcdir).
* Makefile.in: Regenerate.
2009-09-02 04:56:51 +08:00
|
|
|
$(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
endif
|
|
|
|
|
2010-05-25 22:02:38 +08:00
|
|
|
rclex.@OBJEXT@: rclex.c
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
if am__fastdepCC
|
|
|
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/rclex.c $(NO_WERROR)
|
|
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
|
|
|
else
|
|
|
|
if AMDEP
|
|
|
|
source='rclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
|
endif
|
|
|
|
$(COMPILE) -c $(srcdir)/rclex.c $(NO_WERROR)
|
|
|
|
endif
|
|
|
|
|
2010-05-25 22:02:38 +08:00
|
|
|
mclex.@OBJEXT@: mclex.c
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
if am__fastdepCC
|
|
|
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/mclex.c $(NO_WERROR)
|
|
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
|
|
|
else
|
|
|
|
if AMDEP
|
|
|
|
source='mclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
|
endif
|
|
|
|
$(COMPILE) -c $(srcdir)/mclex.c $(NO_WERROR)
|
|
|
|
endif
|
2005-04-12 10:50:28 +08:00
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
|
2010-05-25 22:02:38 +08:00
|
|
|
srconv.@OBJEXT@: sysroff.c
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2000-06-16 08:46:22 +08:00
|
|
|
dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
|
2013-09-18 18:33:02 +08:00
|
|
|
dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2010-05-25 22:02:38 +08:00
|
|
|
dlltool.@OBJEXT@:
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
if am__fastdepCC
|
|
|
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
|
|
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
|
|
|
else
|
|
|
|
if AMDEP
|
|
|
|
source='dlltool.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
|
endif
|
1999-05-03 15:29:11 +08:00
|
|
|
$(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
endif
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2010-05-25 22:02:38 +08:00
|
|
|
rescoff.@OBJEXT@:
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
if am__fastdepCC
|
|
|
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
|
|
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
|
|
|
else
|
|
|
|
if AMDEP
|
|
|
|
source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
|
endif
|
1999-05-12 05:06:16 +08:00
|
|
|
$(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
|
dependency tracking in binutils
binutils/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
foreign.
(MKDEP, CLEANFILES): Remove now-unneeded variables.
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
(mkdep section): Remove.
(BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
(EXTRA_ar_SOURCES): New, list $(CFILES).
(syslex.o): Depend on syslex.c.
(sysinfo.o): Depend on sysinfo.c.
(arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
Remove dependencies, now tracked by automake.
(srconv.o): Depend on sysroff.c.
(objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
(nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
(rescoff.o, nlmconv.o): Rewrite using automake-style dependency
tracking rules; only list the dependency upon the primary source
file, but no included headers.
* Makefile.in: Regenerate.
2009-08-23 02:18:42 +08:00
|
|
|
endif
|
1999-05-12 05:06:16 +08:00
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
|
|
|
|
|
|
|
|
sysdump_SOURCES = sysdump.c $(BULIBS)
|
2010-05-25 22:02:38 +08:00
|
|
|
sysdump.@OBJEXT@: sysroff.c
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2007-05-23 16:48:29 +08:00
|
|
|
windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.c \
|
1999-05-03 15:29:11 +08:00
|
|
|
winduni.c resres.c $(BULIBS)
|
2013-09-18 18:33:02 +08:00
|
|
|
windres_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2007-06-19 21:24:33 +08:00
|
|
|
windmc_SOURCES = windmc.c mcparse.y mclex.c \
|
|
|
|
winduni.c $(BULIBS)
|
2013-09-18 18:33:02 +08:00
|
|
|
windmc_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
|
2007-06-19 21:24:33 +08:00
|
|
|
|
2000-06-16 08:46:22 +08:00
|
|
|
dllwrap_SOURCES = dllwrap.c version.c
|
2006-05-31 23:14:46 +08:00
|
|
|
dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
|
2018-04-16 13:41:22 +08:00
|
|
|
EXTRA_DIST = arparse.c arparse.h arlex.c sysinfo.c sysinfo.h \
|
2007-06-19 21:24:33 +08:00
|
|
|
syslex.c deflex.c defparse.h defparse.c rcparse.h rcparse.c \
|
2011-05-30 14:12:03 +08:00
|
|
|
mcparse.h mcparse.c embedspu.sh
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-06-19 19:57:29 +08:00
|
|
|
diststuff: $(EXTRA_DIST) info
|
2005-05-20 07:49:52 +08:00
|
|
|
all: info
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2014-07-04 10:05:16 +08:00
|
|
|
# development.sh is used to determine -Werror default.
|
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
|
2010-03-30 23:41:17 +08:00
|
|
|
|
2018-08-23 21:12:37 +08:00
|
|
|
EXTRA_DEJAGNU_SITE_CONFIG = development.exp
|
|
|
|
|
|
|
|
DISTCLEANFILES = sysroff.c sysroff.h site.exp development.exp \
|
|
|
|
site.bak embedspu
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2007-02-28 09:29:32 +08:00
|
|
|
MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \
|
|
|
|
binutils.log binutils.sum abcdefgh*
|
1999-05-03 15:29:11 +08:00
|
|
|
mostlyclean-local:
|
|
|
|
-rm -rf tmpdir
|
|
|
|
|
|
|
|
.PHONY: install-exec-local
|
|
|
|
|
2007-03-01 20:35:40 +08:00
|
|
|
install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
|
2007-02-28 15:10:52 +08:00
|
|
|
@list='$(RENAMED_PROGS)'; for p in $$list; do \
|
2007-03-01 20:35:40 +08:00
|
|
|
if test -f $$p$(EXEEXT); then \
|
2013-12-11 06:01:01 +08:00
|
|
|
echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(bindir)/`echo $$p|sed -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
|
|
|
|
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
1999-05-03 15:29:11 +08:00
|
|
|
else :; fi; \
|
|
|
|
done
|
2002-05-08 01:22:20 +08:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
|
1999-05-03 15:29:11 +08:00
|
|
|
for i in $(TOOL_PROGS); do \
|
|
|
|
if [ -f $$i$(EXEEXT) ]; then \
|
|
|
|
j=`echo $$i | sed -e 's/-new//'`; \
|
|
|
|
k=`echo $$j | sed '$(transform)'`; \
|
2003-11-28 12:58:41 +08:00
|
|
|
if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \
|
2002-05-08 01:22:20 +08:00
|
|
|
rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
|
|
|
|
ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
|
2013-12-11 06:01:01 +08:00
|
|
|
|| $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
|
1999-05-03 15:29:11 +08:00
|
|
|
fi; \
|
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|