d0ac1c4488
When trying to run the update-gnulib.sh script in gdb, I get this: Error: Wrong automake version (Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ =:+{}]+)}/ at /opt/automake/1.11.1/bin/automake line 4113.), we need 1.11.1. Aborting. Apparently, it's an issue with a regex in automake that triggers a warning starting with Perl 5.22. It has been fixed in automake 1.15.1. So I think it's a good excuse to bump the versions of autoconf and automake used in the gnulib import. And to avoid requiring multiple builds of autoconf/automake, it was suggested that we bump the required version of those tools for all binutils-gdb. For autoconf, the 2.69 version is universally available, so it's an easy choice. For automake, different distros and distro versions have different automake versions. But 1.15.1 seems to be the most readily available as a package. In any case, it's easy to build it from source. I removed the version checks from AUTOMAKE_OPTIONS and AC_PREREQ, because I don't think they are useful in our case. They only specify a lower bound for the acceptable version of automake/autoconf. That's useful if you let the user choose the version of the tool they want to use, but want to set a minimum version (because you use a feature that was introduced in that version). In our case, we force people to use a specific version anyway. For the autoconf version, we have the check in config/override.m4 that enforces the version we want. It will be one less thing to update next time we change autotools version. I hit a few categories of problems that required some changes. They are described below along with the chosen solutions. Problem 1: configure.ac:17: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.ac:17: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation Solution 1: Adjust the code based on the example at that URL. Problem 2 (in zlib/): Makefile.am: error: required file './INSTALL' not found Makefile.am: 'automake --add-missing' can install 'INSTALL' Makefile.am: error: required file './NEWS' not found Makefile.am: error: required file './AUTHORS' not found Makefile.am: error: required file './COPYING' not found Makefile.am: 'automake --add-missing' can install 'COPYING' Solution 2: Add the foreign option to AUTOMAKE_OPTIONS. Problem 3: doc/Makefile.am:20: error: support for Cygnus-style trees has been removed Solution 3: Remove the cygnus options. Problem 4: Makefile.am:656: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') Solution 4: Rename "INCLUDES = " to "AM_CPPFLAGS += " (because AM_CPPFLAGS is already defined earlier). Problem 5: doc/Makefile.am:71: warning: suffix '.texinfo' for Texinfo files is discouraged; use '.texi' instead doc/Makefile.am: warning: Oops! doc/Makefile.am: It appears this file (or files included by it) are triggering doc/Makefile.am: an undocumented, soon-to-be-removed automake hack. doc/Makefile.am: Future automake versions will no longer place in the builddir doc/Makefile.am: (rather than in the srcdir) the generated '.info' files that doc/Makefile.am: appear to be cleaned, by e.g. being listed in CLEANFILES or doc/Makefile.am: DISTCLEANFILES. doc/Makefile.am: If you want your '.info' files to be placed in the builddir doc/Makefile.am: rather than in the srcdir, you have to use the shiny new doc/Makefile.am: 'info-in-builddir' automake option. Solution 5: Rename .texinfo files to .texi. Problem 6: doc/Makefile.am: warning: Oops! doc/Makefile.am: It appears this file (or files included by it) are triggering doc/Makefile.am: an undocumented, soon-to-be-removed automake hack. doc/Makefile.am: Future automake versions will no longer place in the builddir doc/Makefile.am: (rather than in the srcdir) the generated '.info' files that doc/Makefile.am: appear to be cleaned, by e.g. being listed in CLEANFILES or doc/Makefile.am: DISTCLEANFILES. doc/Makefile.am: If you want your '.info' files to be placed in the builddir doc/Makefile.am: rather than in the srcdir, you have to use the shiny new doc/Makefile.am: 'info-in-builddir' automake option. Solution 6: Remove the hack at the bottom of doc/Makefile.am and use the info-in-builddir automake option. Problem 7: doc/Makefile.am:35: error: required file '../texinfo.tex' not found doc/Makefile.am:35: 'automake --add-missing' can install 'texinfo.tex' Solution 7: Use the no-texinfo.tex automake option. We also have one in texinfo/texinfo.tex, not sure if we should point to that, or move it (or a newer version of it added with automake --add-missing) to top-level. Problem 8: Makefile.am:131: warning: source file 'config/tc-aarch64.c' is in a subdirectory, Makefile.am:131: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. Solution 8: Use subdir-objects, that means adjusting references to some .o that will now be in config/. Problem 9: configure.ac:375: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2601: _AC_COMPILE_IFELSE is expanded from... ../../lib/autoconf/general.m4:2617: AC_COMPILE_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from... ../../lib/autoconf/general.m4:2042: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2063: AC_CACHE_CHECK is expanded from... configure.ac:375: the top level Solution 9: Use AC_LANG_SOURCE, or use proper quoting. Problem 10 (in intl/): configure.ac:7: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS /usr/share/aclocal/threadlib.m4:36: gl_THREADLIB_EARLY_BODY is expanded from... /usr/share/aclocal/threadlib.m4:29: gl_THREADLIB_EARLY is expanded from... /usr/share/aclocal/threadlib.m4:318: gl_THREADLIB is expanded from... /usr/share/aclocal/lock.m4:9: gl_LOCK is expanded from... /usr/share/aclocal/intl.m4:211: gt_INTL_SUBDIR_CORE is expanded from... /usr/share/aclocal/intl.m4:25: AM_INTL_SUBDIR is expanded from... /usr/share/aclocal/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.ac:7: the top level Solution 10: Add AC_USE_SYSTEM_EXTENSIONS in configure.ac. ChangeLog: * libtool.m4: Use AC_LANG_SOURCE. * configure.ac: Remove AC_PREREQ, use AC_LANG_SOURCE. * README-maintainer-mode: Update version requirements. * ar-lib: New file. * test-driver: New file. * configure: Re-generate. bfd/ChangeLog: * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.11. (INCLUDES): Rename to ... (AM_CPPFLAGS): ... this. * configure.ac: Remove AC_PREREQ. * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove 1.9, cygnus, add info-in-builddir no-texinfo.tex. (info_TEXINFOS): Rename bfd.texinfo to bfd.texi. * doc/bfd.texinfo: Rename to ... * doc/bfd.texi: ... this. * Makefile.in: Re-generate. * aclocal.m4: Re-generate. * config.in: Re-generate. * configure: Re-generate. * doc/Makefile.in: Re-generate. binutils/ChangeLog: * configure.ac: Remove AC_PREREQ. * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add info-in-builddir no-texinfo.tex. * Makefile.in: Re-generate. * aclocal.m4: Re-generate. * config.in: Re-generate. * configure: Re-generate. * doc/Makefile.in: Re-generate. config/ChangeLog: * override.m4 (_GCC_AUTOCONF_VERSION): Bump from 2.64 to 2.69. etc/ChangeLog: * configure.in: Remove AC_PREREQ. * configure: Re-generate. gas/ChangeLog: * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.11, add subdir-objects. (TARG_CPU_O, OBJ_FORMAT_O, ATOF_TARG_O): Add config/ prefix. * configure.ac (TARG_CPU_O, OBJ_FORMAT_O, ATOF_TARG_O, emfiles, extra_objects): Add config/ prefix. * doc/as.texinfo: Rename to... * doc/as.texi: ... this. * doc/Makefile.am: Rename as.texinfo to as.texi throughout. Remove DISTCLEANFILES hack. (AUTOMAKE_OPTIONS): Remove 1.8, cygnus, add no-texinfo.tex and info-in-builddir. * Makefile.in: Re-generate. * aclocal.m4: Re-generate. * config.in: Re-generate. * configure: Re-generate. * doc/Makefile.in: Re-generate. gdb/ChangeLog: * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION, PACKAGE_STRING, PACKAGE_TARNAME): Undefine. * configure.ac: Remove AC_PREREQ, add missing quoting. * gnulib/configure.ac: Modernize usage of AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ. * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69. (AUTOMAKE_VERSION): Bump to 1.15.1. * configure: Re-generate. * config.in: Re-generate. * aclocal.m4: Re-generate. * gnulib/aclocal.m4: Re-generate. * gnulib/config.in: Re-generate. * gnulib/configure: Re-generate. * gnulib/import/Makefile.in: Re-generate. gdb/gdbserver/ChangeLog: * configure.ac: Remove AC_PREREQ, add missing quoting. * configure: Re-generate. * config.in: Re-generate. * aclocal.m4: Re-generate. gdb/testsuite/ChangeLog: * configure.ac: Remove AC_PREREQ. * configure: Re-generate. gold/ChangeLog: * configure.ac: Remove AC_PREREQ, add missing quoting and usage of AC_LANG_SOURCE. * Makefile.in: Re-generate. * aclocal.m4: Re-generate. * configure: Re-generate. * testsuite/Makefile.in: Re-generate. gprof/ChangeLog: * configure.ac: Remove AC_PREREQ. * Makefile.am: Remove DISTCLEANFILES hack. (AUTOMAKE_OPTIONS): Remove 1.11, add info-in-builddir. * Makefile.in: Re-generate. * aclocal.m4: Re-generate. * configure: Re-generate. * gconfig.in: Re-generate. intl/ChangeLog: * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS, remove AC_PREREQ. * configure: Re-generate. * config.h.in: Re-generate. * aclocal.m4: Re-generate. ld/ChangeLog: * configure.ac: Remove AC_PREREQ. * Makefile.am: Remove DISTCLEANFILES hack, rename ld.texinfo to ld.texi, ldint.texinfo to ldint.texi throughout. (AUTOMAKE_OPTIONS): Add info-in-builddir. * README: Rename ld.texinfo to ld.texi, ldint.texinfo to ldint.texi throughout. * gen-doc.texi: Likewise. * h8-doc.texi: Likewise. * ld.texinfo: Rename to ... * ld.texi: ... this. * ldint.texinfo: Rename to ... * ldint.texi: ... this. * Makefile.in: Re-generate. * aclocal.m4: Re-generate. * config.in: Re-generate. * configure: Re-generate. libdecnumber/ChangeLog: * configure.ac: Remove AC_PREREQ. * configure: Re-generate. * aclocal.m4. libiberty/ChangeLog: * configure.ac: Remove AC_PREREQ. * configure: Re-generate. * config.in: Re-generate. opcodes/ChangeLog: * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.11. * configure.ac: Remove AC_PREREQ. * Makefile.in: Re-generate. * aclocal.m4: Re-generate. * configure: Re-generate. readline/ChangeLog.gdb: * configure: Re-generate. * examples/rlfe/configure: Re-generate. sim/ChangeLog: * All configure.ac: Remove AC_PREREQ. * All configure: Re-generate. zlib/ChangeLog.bin-gdb: * configure.ac: Modernize AC_INIT call, remove AC_PREREQ. * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.8, cygnus, add foreign. * Makefile.in: Re-generate. * aclocal.m4: Re-generate. * configure: Re-generate.
985 lines
24 KiB
Makefile
985 lines
24 KiB
Makefile
## Process this file with automake to generate Makefile.in
|
|
#
|
|
# Copyright (C) 2012-2018 Free Software Foundation, Inc.
|
|
#
|
|
# 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.
|
|
#
|
|
# 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.
|
|
#
|
|
# 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/>.
|
|
#
|
|
|
|
AUTOMAKE_OPTIONS = no-dist foreign
|
|
ACLOCAL_AMFLAGS = -I . -I .. -I ../config
|
|
|
|
INCDIR = $(srcdir)/../include
|
|
CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
|
|
|
|
SUBDIRS = doc po
|
|
|
|
bfddocdir = doc
|
|
|
|
libbfd_la_LDFLAGS =
|
|
if INSTALL_LIBBFD
|
|
bfdlibdir = @bfdlibdir@
|
|
bfdincludedir = @bfdincludedir@
|
|
bfdlib_LTLIBRARIES = libbfd.la
|
|
bfdinclude_HEADERS = $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/bfdlink.h
|
|
else !INSTALL_LIBBFD
|
|
# Empty these so that the respective installation directories will not be created.
|
|
bfdlibdir =
|
|
bfdincludedir =
|
|
bfdinclude_HEADERS =
|
|
rpath_bfdlibdir = @bfdlibdir@
|
|
noinst_LTLIBRARIES = libbfd.la
|
|
libbfd_la_LDFLAGS += -rpath $(rpath_bfdlibdir)
|
|
endif
|
|
|
|
# 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@
|
|
|
|
WARN_CFLAGS = @WARN_CFLAGS@
|
|
NO_WERROR = @NO_WERROR@
|
|
AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
|
|
AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
|
|
if PLUGINS
|
|
bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
|
|
LIBDL = @lt_cv_dlopen_libs@
|
|
endif
|
|
|
|
# bfd.h goes here, for now
|
|
BFD_H = bfd.h
|
|
|
|
# Jim Kingdon notes:
|
|
# Writing S-records should be included in all (or at least most)
|
|
# *-*-coff, *-*-aout, etc., configurations, because people will want to
|
|
# be able to use objcopy to create S-records. (S-records are not useful
|
|
# for the debugger, so if you are downloading things as S-records you
|
|
# need two copies of the executable, one to download and one for the
|
|
# debugger).
|
|
BFD32_LIBS = \
|
|
archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo \
|
|
cache.lo coff-bfd.lo compress.lo corefile.lo format.lo hash.lo \
|
|
init.lo libbfd.lo linker.lo merge.lo opncls.lo reloc.lo \
|
|
section.lo simple.lo stab-syms.lo stabs.lo syms.lo targets.lo \
|
|
binary.lo ihex.lo srec.lo tekhex.lo verilog.lo
|
|
|
|
BFD64_LIBS = archive64.lo
|
|
|
|
BFD32_LIBS_CFILES = \
|
|
archive.c archures.c bfd.c bfdio.c bfdwin.c \
|
|
cache.c coff-bfd.c compress.c corefile.c format.c hash.c \
|
|
init.c libbfd.c linker.c merge.c opncls.c reloc.c \
|
|
section.c simple.c stab-syms.c stabs.c syms.c targets.c \
|
|
binary.c ihex.c srec.c tekhex.c verilog.c
|
|
|
|
BFD64_LIBS_CFILES = archive64.c
|
|
|
|
# This list is alphabetized to make it easier to keep in sync
|
|
# with the decls and initializer in archures.c.
|
|
ALL_MACHINES = \
|
|
cpu-aarch64.lo \
|
|
cpu-alpha.lo \
|
|
cpu-arc.lo \
|
|
cpu-arm.lo \
|
|
cpu-avr.lo \
|
|
cpu-bfin.lo \
|
|
cpu-cr16.lo \
|
|
cpu-cr16c.lo \
|
|
cpu-cris.lo \
|
|
cpu-crx.lo \
|
|
cpu-d10v.lo \
|
|
cpu-d30v.lo \
|
|
cpu-dlx.lo \
|
|
cpu-epiphany.lo \
|
|
cpu-fr30.lo \
|
|
cpu-frv.lo \
|
|
cpu-ft32.lo \
|
|
cpu-h8300.lo \
|
|
cpu-hppa.lo \
|
|
cpu-i386.lo \
|
|
cpu-iamcu.lo \
|
|
cpu-l1om.lo \
|
|
cpu-k1om.lo \
|
|
cpu-ia64.lo \
|
|
cpu-ip2k.lo \
|
|
cpu-iq2000.lo \
|
|
cpu-lm32.lo \
|
|
cpu-m10200.lo \
|
|
cpu-m10300.lo \
|
|
cpu-m32c.lo \
|
|
cpu-m32r.lo \
|
|
cpu-m68hc11.lo \
|
|
cpu-m68hc12.lo \
|
|
cpu-m9s12x.lo \
|
|
cpu-s12z.lo \
|
|
cpu-m9s12xg.lo \
|
|
cpu-m68k.lo \
|
|
cpu-mcore.lo \
|
|
cpu-mep.lo \
|
|
cpu-metag.lo \
|
|
cpu-microblaze.lo \
|
|
cpu-mips.lo \
|
|
cpu-mmix.lo \
|
|
cpu-moxie.lo \
|
|
cpu-msp430.lo \
|
|
cpu-mt.lo \
|
|
cpu-nds32.lo \
|
|
cpu-nfp.lo \
|
|
cpu-nios2.lo \
|
|
cpu-ns32k.lo \
|
|
cpu-or1k.lo \
|
|
cpu-pdp11.lo \
|
|
cpu-pj.lo \
|
|
cpu-plugin.lo \
|
|
cpu-powerpc.lo \
|
|
cpu-pru.lo \
|
|
cpu-rs6000.lo \
|
|
cpu-riscv.lo \
|
|
cpu-rl78.lo \
|
|
cpu-rx.lo \
|
|
cpu-s390.lo \
|
|
cpu-score.lo \
|
|
cpu-sh.lo \
|
|
cpu-sparc.lo \
|
|
cpu-spu.lo \
|
|
cpu-tic30.lo \
|
|
cpu-tic4x.lo \
|
|
cpu-tic54x.lo \
|
|
cpu-tic6x.lo \
|
|
cpu-tic80.lo \
|
|
cpu-tilegx.lo \
|
|
cpu-tilepro.lo \
|
|
cpu-v850.lo \
|
|
cpu-v850_rh850.lo \
|
|
cpu-vax.lo \
|
|
cpu-visium.lo \
|
|
cpu-wasm32.lo \
|
|
cpu-xc16x.lo \
|
|
cpu-xgate.lo \
|
|
cpu-xstormy16.lo \
|
|
cpu-xtensa.lo \
|
|
cpu-z80.lo \
|
|
cpu-z8k.lo
|
|
|
|
ALL_MACHINES_CFILES = \
|
|
cpu-aarch64.c \
|
|
cpu-alpha.c \
|
|
cpu-arc.c \
|
|
cpu-arm.c \
|
|
cpu-avr.c \
|
|
cpu-bfin.c \
|
|
cpu-cr16.c \
|
|
cpu-cr16c.c \
|
|
cpu-cris.c \
|
|
cpu-crx.c \
|
|
cpu-d10v.c \
|
|
cpu-d30v.c \
|
|
cpu-dlx.c \
|
|
cpu-epiphany.c \
|
|
cpu-fr30.c \
|
|
cpu-frv.c \
|
|
cpu-ft32.c \
|
|
cpu-h8300.c \
|
|
cpu-hppa.c \
|
|
cpu-i386.c \
|
|
cpu-iamcu.c \
|
|
cpu-l1om.c \
|
|
cpu-k1om.c \
|
|
cpu-ia64.c \
|
|
cpu-ip2k.c \
|
|
cpu-iq2000.c \
|
|
cpu-lm32.c \
|
|
cpu-m10200.c \
|
|
cpu-m10300.c \
|
|
cpu-m32c.c \
|
|
cpu-m32r.c \
|
|
cpu-m68hc11.c \
|
|
cpu-m68hc12.c \
|
|
cpu-m9s12x.c \
|
|
cpu-s12z.c \
|
|
cpu-m9s12xg.c \
|
|
cpu-m68k.c \
|
|
cpu-mcore.c \
|
|
cpu-mep.c \
|
|
cpu-metag.c \
|
|
cpu-microblaze.c \
|
|
cpu-mips.c \
|
|
cpu-mmix.c \
|
|
cpu-moxie.c \
|
|
cpu-msp430.c \
|
|
cpu-mt.c \
|
|
cpu-nds32.c \
|
|
cpu-nfp.c \
|
|
cpu-ns32k.c \
|
|
cpu-nios2.c \
|
|
cpu-or1k.c \
|
|
cpu-pdp11.c \
|
|
cpu-pj.c \
|
|
cpu-plugin.c \
|
|
cpu-powerpc.c \
|
|
cpu-pru.c \
|
|
cpu-rs6000.c \
|
|
cpu-riscv.c \
|
|
cpu-rl78.c \
|
|
cpu-rx.c \
|
|
cpu-s390.c \
|
|
cpu-score.c \
|
|
cpu-sh.c \
|
|
cpu-sparc.c \
|
|
cpu-spu.c \
|
|
cpu-tic30.c \
|
|
cpu-tic4x.c \
|
|
cpu-tic54x.c \
|
|
cpu-tic6x.c \
|
|
cpu-tic80.c \
|
|
cpu-tilegx.c \
|
|
cpu-tilepro.c \
|
|
cpu-v850.c \
|
|
cpu-v850_rh850.c \
|
|
cpu-vax.c \
|
|
cpu-visium.c \
|
|
cpu-wasm32.c \
|
|
cpu-xc16x.c \
|
|
cpu-xgate.c \
|
|
cpu-xstormy16.c \
|
|
cpu-xtensa.c \
|
|
cpu-z80.c \
|
|
cpu-z8k.c
|
|
|
|
# The .o files needed by all of the 32 bit vectors that are configured into
|
|
# target_vector in targets.c if configured with --enable-targets=all.
|
|
BFD32_BACKENDS = \
|
|
aout-cris.lo \
|
|
aout-ns32k.lo \
|
|
aout-tic30.lo \
|
|
aout32.lo \
|
|
cf-i386lynx.lo \
|
|
coff-go32.lo \
|
|
coff-i386.lo \
|
|
coff-mips.lo \
|
|
coff-rs6000.lo \
|
|
coff-sh.lo \
|
|
coff-stgo32.lo \
|
|
coff-tic30.lo \
|
|
coff-tic4x.lo \
|
|
coff-tic54x.lo \
|
|
coff-tic80.lo \
|
|
coff-z80.lo \
|
|
coff-z8k.lo \
|
|
coffgen.lo \
|
|
cofflink.lo \
|
|
dwarf1.lo \
|
|
dwarf2.lo \
|
|
ecoff.lo \
|
|
ecofflink.lo \
|
|
elf-attrs.lo \
|
|
elf-eh-frame.lo \
|
|
elf-ifunc.lo \
|
|
elf-m10200.lo \
|
|
elf-m10300.lo \
|
|
elf-nacl.lo \
|
|
elf-properties.lo \
|
|
elf-strtab.lo \
|
|
elf-vxworks.lo \
|
|
elf.lo \
|
|
elf32-am33lin.lo \
|
|
elf32-arc.lo \
|
|
elf32-arm.lo \
|
|
elf32-avr.lo \
|
|
elf32-bfin.lo \
|
|
elf32-cr16.lo \
|
|
elf32-cr16c.lo \
|
|
elf32-cris.lo \
|
|
elf32-crx.lo \
|
|
elf32-d10v.lo \
|
|
elf32-d30v.lo \
|
|
elf32-dlx.lo \
|
|
elf32-epiphany.lo \
|
|
elf32-fr30.lo \
|
|
elf32-frv.lo \
|
|
elf32-ft32.lo \
|
|
elf32-gen.lo \
|
|
elf32-h8300.lo \
|
|
elf32-hppa.lo \
|
|
elf32-i386.lo \
|
|
elfxx-x86.lo \
|
|
elf32-ip2k.lo \
|
|
elf32-iq2000.lo \
|
|
elf32-lm32.lo \
|
|
elf32-m32c.lo \
|
|
elf32-m32r.lo \
|
|
elf32-m68hc11.lo \
|
|
elf32-m68hc12.lo \
|
|
elf32-m68hc1x.lo \
|
|
elf32-m68k.lo \
|
|
elf32-s12z.lo \
|
|
elf32-mcore.lo \
|
|
elf32-mep.lo \
|
|
elf32-metag.lo \
|
|
elf32-microblaze.lo \
|
|
elf32-moxie.lo \
|
|
elf32-msp430.lo \
|
|
elf32-mt.lo \
|
|
elf32-nds32.lo \
|
|
elf32-nios2.lo \
|
|
elf32-or1k.lo \
|
|
elf32-pj.lo \
|
|
elf32-ppc.lo \
|
|
elf32-pru.lo \
|
|
elf32-rl78.lo \
|
|
elf32-rx.lo \
|
|
elf32-s390.lo \
|
|
elf32-sh.lo \
|
|
elf32-sparc.lo \
|
|
elf32-spu.lo \
|
|
elf32-tic6x.lo \
|
|
elf32-tilegx.lo \
|
|
elf32-tilepro.lo \
|
|
elf32-v850.lo \
|
|
elf32-vax.lo \
|
|
elf32-visium.lo \
|
|
elf32-wasm32.lo \
|
|
elf32-xc16x.lo \
|
|
elf32-xgate.lo \
|
|
elf32-xstormy16.lo \
|
|
elf32-xtensa.lo \
|
|
elf32.lo \
|
|
elflink.lo \
|
|
elfxx-sparc.lo \
|
|
elfxx-tilegx.lo \
|
|
i386aout.lo \
|
|
i386bsd.lo \
|
|
i386lynx.lo \
|
|
i386msdos.lo \
|
|
mach-o.lo \
|
|
mach-o-i386.lo \
|
|
mach-o-arm.lo \
|
|
ns32knetbsd.lo \
|
|
pc532-mach.lo \
|
|
pdp11.lo \
|
|
pe-arm-wince.lo \
|
|
pe-arm.lo \
|
|
pe-i386.lo \
|
|
pe-mcore.lo \
|
|
pe-ppc.lo \
|
|
pe-sh.lo \
|
|
pef.lo \
|
|
pei-arm-wince.lo \
|
|
pei-arm.lo \
|
|
pei-i386.lo \
|
|
pei-mcore.lo \
|
|
pei-ppc.lo \
|
|
pei-sh.lo \
|
|
peigen.lo \
|
|
plugin.lo \
|
|
ppcboot.lo \
|
|
reloc16.lo \
|
|
som.lo \
|
|
vax1knetbsd.lo \
|
|
vaxnetbsd.lo \
|
|
vms-lib.lo \
|
|
vms-misc.lo \
|
|
wasm-module.lo \
|
|
xcofflink.lo \
|
|
xsym.lo \
|
|
xtensa-isa.lo \
|
|
xtensa-modules.lo
|
|
|
|
BFD32_BACKENDS_CFILES = \
|
|
aout-cris.c \
|
|
aout-ns32k.c \
|
|
aout-tic30.c \
|
|
aout32.c \
|
|
cf-i386lynx.c \
|
|
coff-go32.c \
|
|
coff-i386.c \
|
|
coff-mips.c \
|
|
coff-rs6000.c \
|
|
coff-sh.c \
|
|
coff-stgo32.c \
|
|
coff-tic30.c \
|
|
coff-tic4x.c \
|
|
coff-tic54x.c \
|
|
coff-tic80.c \
|
|
coff-z80.c \
|
|
coff-z8k.c \
|
|
coffgen.c \
|
|
cofflink.c \
|
|
dwarf1.c \
|
|
dwarf2.c \
|
|
ecoff.c \
|
|
ecofflink.c \
|
|
elf-attrs.c \
|
|
elf-eh-frame.c \
|
|
elf-ifunc.c \
|
|
elf-m10200.c \
|
|
elf-m10300.c \
|
|
elf-nacl.c \
|
|
elf-properties.c \
|
|
elf-strtab.c \
|
|
elf-vxworks.c \
|
|
elf.c \
|
|
elf32-am33lin.c \
|
|
elf32-arc.c \
|
|
elf32-arm.c \
|
|
elf32-avr.c \
|
|
elf32-bfin.c \
|
|
elf32-cr16.c \
|
|
elf32-cr16c.c \
|
|
elf32-cris.c \
|
|
elf32-crx.c \
|
|
elf32-d10v.c \
|
|
elf32-d30v.c \
|
|
elf32-dlx.c \
|
|
elf32-epiphany.c \
|
|
elf32-fr30.c \
|
|
elf32-frv.c \
|
|
elf32-ft32.c \
|
|
elf32-gen.c \
|
|
elf32-h8300.c \
|
|
elf32-hppa.c \
|
|
elf32-i386.c \
|
|
elfxx-x86.c \
|
|
elf32-ip2k.c \
|
|
elf32-iq2000.c \
|
|
elf32-lm32.c \
|
|
elf32-m32c.c \
|
|
elf32-m32r.c \
|
|
elf32-m68hc11.c \
|
|
elf32-m68hc12.c \
|
|
elf32-m68hc1x.c \
|
|
elf32-m68k.c \
|
|
elf32-s12z.c \
|
|
elf32-mcore.c \
|
|
elf32-mep.c \
|
|
elf32-metag.c \
|
|
elf32-microblaze.c \
|
|
elf32-moxie.c \
|
|
elf32-msp430.c \
|
|
elf32-mt.c \
|
|
elf32-nds32.c \
|
|
elf32-nios2.c \
|
|
elf32-or1k.c \
|
|
elf32-pj.c \
|
|
elf32-ppc.c \
|
|
elf32-pru.c \
|
|
elf32-rl78.c \
|
|
elf32-rx.c \
|
|
elf32-s390.c \
|
|
elf32-sh.c \
|
|
elf32-sparc.c \
|
|
elf32-spu.c \
|
|
elf32-tic6x.c \
|
|
elf32-tilegx.c \
|
|
elf32-tilepro.c \
|
|
elf32-v850.c \
|
|
elf32-vax.c \
|
|
elf32-visium.c \
|
|
elf32-wasm32.c \
|
|
elf32-xc16x.c \
|
|
elf32-xgate.c \
|
|
elf32-xstormy16.c \
|
|
elf32-xtensa.c \
|
|
elf32.c \
|
|
elflink.c \
|
|
elfxx-sparc.c \
|
|
elfxx-tilegx.c \
|
|
i386aout.c \
|
|
i386bsd.c \
|
|
i386lynx.c \
|
|
i386msdos.c \
|
|
mach-o.c \
|
|
mach-o-i386.c \
|
|
mach-o-arm.c \
|
|
ns32knetbsd.c \
|
|
pc532-mach.c \
|
|
pdp11.c \
|
|
pe-arm-wince.c \
|
|
pe-arm.c \
|
|
pe-i386.c \
|
|
pe-mcore.c \
|
|
pe-ppc.c \
|
|
pe-sh.c \
|
|
pef.c \
|
|
pei-arm-wince.c \
|
|
pei-arm.c \
|
|
pei-i386.c \
|
|
pei-mcore.c \
|
|
pei-ppc.c \
|
|
pei-sh.c \
|
|
plugin.c \
|
|
ppcboot.c \
|
|
reloc16.c \
|
|
som.c \
|
|
vax1knetbsd.c \
|
|
vaxnetbsd.c \
|
|
vms-lib.c \
|
|
vms-misc.c \
|
|
wasm-module.c \
|
|
xcofflink.c \
|
|
xsym.c \
|
|
xtensa-isa.c \
|
|
xtensa-modules.c
|
|
|
|
# The .o files needed by all of the 64 bit vectors that are configured into
|
|
# target_vector in targets.c if configured with --enable-targets=all
|
|
# and --enable-64-bit-bfd.
|
|
# elf32-ia64.c requires a 64-bit bfd_vma, and hence can not be put in
|
|
# BFD32_BACKENDS.
|
|
BFD64_BACKENDS = \
|
|
elf32-aarch64.lo \
|
|
elf64-aarch64.lo \
|
|
elfxx-aarch64.lo \
|
|
aix5ppc-core.lo \
|
|
aout64.lo \
|
|
coff-alpha.lo \
|
|
coff-x86_64.lo \
|
|
coff64-rs6000.lo \
|
|
elf32-ia64.lo \
|
|
elf32-mips.lo \
|
|
elf32-score.lo \
|
|
elf32-score7.lo \
|
|
elf64-alpha.lo \
|
|
elf64-gen.lo \
|
|
elf64-hppa.lo \
|
|
elf64-ia64.lo \
|
|
elf64-ia64-vms.lo \
|
|
elfxx-ia64.lo \
|
|
elfn32-mips.lo \
|
|
elf64-mips.lo \
|
|
elfxx-mips.lo \
|
|
elf64-mmix.lo \
|
|
elf64-nfp.lo \
|
|
elf64-ppc.lo \
|
|
elf32-riscv.lo \
|
|
elf64-riscv.lo \
|
|
elfxx-riscv.lo \
|
|
elf64-s390.lo \
|
|
elf64-sparc.lo \
|
|
elf64-tilegx.lo \
|
|
elf64-x86-64.lo \
|
|
elfxx-x86.lo \
|
|
elf64.lo \
|
|
mach-o-aarch64.lo \
|
|
mach-o-x86-64.lo \
|
|
mmo.lo \
|
|
pe-x86_64.lo \
|
|
pei-ia64.lo \
|
|
pei-x86_64.lo \
|
|
pepigen.lo \
|
|
pex64igen.lo \
|
|
vms-alpha.lo
|
|
|
|
BFD64_BACKENDS_CFILES = \
|
|
aix5ppc-core.c \
|
|
aout64.c \
|
|
coff-alpha.c \
|
|
coff-x86_64.c \
|
|
coff64-rs6000.c \
|
|
elf32-mips.c \
|
|
elf32-score.c \
|
|
elf32-score7.c \
|
|
elf64-alpha.c \
|
|
elf64-gen.c \
|
|
elf64-hppa.c \
|
|
elf64-ia64-vms.c \
|
|
elf64-mips.c \
|
|
elf64-mmix.c \
|
|
elf64-nfp.c \
|
|
elf64-ppc.c \
|
|
elf64-s390.c \
|
|
elf64-sparc.c \
|
|
elf64-tilegx.c \
|
|
elf64-x86-64.c \
|
|
elfxx-x86.c \
|
|
elf64.c \
|
|
elfn32-mips.c \
|
|
elfxx-aarch64.c \
|
|
elfxx-ia64.c \
|
|
elfxx-mips.c \
|
|
elfxx-riscv.c \
|
|
mach-o-aarch64.c \
|
|
mach-o-x86-64.c \
|
|
mmo.c \
|
|
pe-x86_64.c \
|
|
pei-ia64.c \
|
|
pei-x86_64.c \
|
|
vms-alpha.c
|
|
|
|
OPTIONAL_BACKENDS = \
|
|
aix386-core.lo \
|
|
cisco-core.lo \
|
|
hpux-core.lo \
|
|
irix-core.lo \
|
|
lynx-core.lo \
|
|
netbsd-core.lo \
|
|
osf-core.lo \
|
|
rs6000-core.lo \
|
|
sco5-core.lo \
|
|
trad-core.lo
|
|
|
|
OPTIONAL_BACKENDS_CFILES = \
|
|
aix386-core.c \
|
|
cisco-core.c \
|
|
hpux-core.c \
|
|
irix-core.c \
|
|
lynx-core.c \
|
|
netbsd-core.c \
|
|
osf-core.c \
|
|
rs6000-core.c \
|
|
sco5-core.c \
|
|
trad-core.c
|
|
|
|
# Reconfigure if config.bfd or configure.host changes.
|
|
# development.sh is used to determine -Werror default.
|
|
CONFIG_STATUS_DEPENDENCIES = \
|
|
$(srcdir)/config.bfd \
|
|
$(srcdir)/configure.host \
|
|
$(srcdir)/development.sh
|
|
|
|
# These are defined by configure:
|
|
WORDSIZE = @wordsize@
|
|
ALL_BACKENDS = @all_backends@
|
|
BFD_BACKENDS = @bfd_backends@
|
|
BFD_MACHINES = @bfd_machines@
|
|
TDEFAULTS = @tdefaults@
|
|
HAVEVECS = @havevecs@
|
|
|
|
AM_CPPFLAGS += @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) \
|
|
$(HAVEVECS) @INCINTL@
|
|
|
|
# C source files that correspond to .o's.
|
|
SOURCE_CFILES = \
|
|
$(BFD32_LIBS_CFILES) \
|
|
$(BFD64_LIBS_CFILES) \
|
|
$(ALL_MACHINES_CFILES) \
|
|
$(BFD32_BACKENDS_CFILES) \
|
|
$(BFD64_BACKENDS_CFILES) \
|
|
$(OPTIONAL_BACKENDS_CFILES)
|
|
|
|
BUILD_CFILES = \
|
|
elf32-aarch64.c elf64-aarch64.c \
|
|
elf32-ia64.c elf64-ia64.c \
|
|
elf32-riscv.c elf64-riscv.c \
|
|
peigen.c pepigen.c pex64igen.c
|
|
|
|
CFILES = $(SOURCE_CFILES) $(BUILD_CFILES)
|
|
|
|
## This is a list of all .h files which are in the source tree.
|
|
SOURCE_HFILES = \
|
|
aout-target.h aoutx.h coffcode.h coffswap.h ecoffswap.h \
|
|
elf-bfd.h elf-hppa.h elf-linux-core.h elf32-hppa.h \
|
|
elf64-hppa.h elfcode.h elfcore.h \
|
|
genlink.h go32stub.h \
|
|
libaout.h libbfd.h libcoff.h libecoff.h libhppa.h \
|
|
libpei.h libxcoff.h mach-o.h \
|
|
netbsd.h ns32k.h \
|
|
pef.h pef-traceback.h peicode.h som.h version.h \
|
|
vms.h xsym.h
|
|
|
|
## ... and all .h files which are in the build tree.
|
|
BUILD_HFILES = \
|
|
bfdver.h elf32-target.h elf64-target.h targmatch.h bfd_stdint.h
|
|
|
|
# Ensure they are built early:
|
|
BUILT_SOURCES = $(BUILD_HFILES)
|
|
|
|
HFILES = $(SOURCE_HFILES) $(BUILD_HFILES)
|
|
|
|
SRC_POTFILES = $(SOURCE_CFILES) $(SOURCE_HFILES)
|
|
BLD_POTFILES = $(BUILD_CFILES) $(BUILD_HFILES)
|
|
|
|
po/SRC-POTFILES.in: @MAINT@ Makefile $(SRC_POTFILES)
|
|
for file in $(SRC_POTFILES); do echo $$file; done \
|
|
| LC_ALL=C sort > tmp.src \
|
|
&& mv tmp.src $(srcdir)/po/SRC-POTFILES.in
|
|
|
|
po/BLD-POTFILES.in: @MAINT@ Makefile $(BLD_POTFILES)
|
|
for file in $(BLD_POTFILES); do echo $$file; done \
|
|
| LC_ALL=C sort > tmp.bld \
|
|
&& mv tmp.bld $(srcdir)/po/BLD-POTFILES.in
|
|
|
|
all diststuff: info
|
|
|
|
# Various kinds of .o files to put in libbfd.a:
|
|
# BFD_BACKENDS Routines the configured targets need.
|
|
# BFD_MACHINES Architecture-specific routines the configured targets need.
|
|
# COREFILE Core file routines for a native configuration
|
|
# bfd64_libs Routines for 64bit support
|
|
OFILES = $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@ @bfd64_libs@
|
|
|
|
stamp-ofiles: Makefile
|
|
rm -f tofiles
|
|
f=""; \
|
|
for i in $(OFILES) ; do \
|
|
case " $$f " in \
|
|
*" $$i "*) ;; \
|
|
*) f="$$f $$i" ;; \
|
|
esac ; \
|
|
done ; \
|
|
echo $$f > tofiles
|
|
$(SHELL) $(srcdir)/../move-if-change tofiles ofiles
|
|
touch stamp-ofiles
|
|
|
|
ofiles: stamp-ofiles ; @true
|
|
|
|
# Since BFD64_LIBS is optional and we can't have substitution in
|
|
# libbfd_la_SOURCES, we put BFD64_LIBS in OFILES instead.
|
|
# However, list all sources in EXTRA_libbfd_la_SOURCES so the
|
|
# dependency tracking fragments are picked up in the Makefile.
|
|
libbfd_la_SOURCES = $(BFD32_LIBS_CFILES)
|
|
EXTRA_libbfd_la_SOURCES = $(CFILES)
|
|
libbfd_la_DEPENDENCIES = $(OFILES) ofiles
|
|
libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ $(LIBDL) $(ZLIB)
|
|
libbfd_la_LDFLAGS += -release `cat libtool-soversion` @SHARED_LDFLAGS@
|
|
|
|
# libtool will build .libs/libbfd.a. We create libbfd.a in the build
|
|
# directory so that we don't have to convert all the programs that use
|
|
# libbfd.a simultaneously. This is a hack which should be removed if
|
|
# everything else starts using libtool. FIXME.
|
|
|
|
noinst_LIBRARIES = libbfd.a
|
|
libbfd_a_SOURCES =
|
|
|
|
stamp-lib: libbfd.la
|
|
libtooldir=`$(LIBTOOL) --config | $(SED) -n -e 's/^objdir=//p'`; \
|
|
if [ -f $$libtooldir/libbfd.a ]; then \
|
|
cp $$libtooldir/libbfd.a libbfd.tmp; \
|
|
$(RANLIB) libbfd.tmp; \
|
|
$(SHELL) $(srcdir)/../move-if-change libbfd.tmp libbfd.a; \
|
|
else true; fi
|
|
touch stamp-lib
|
|
|
|
libbfd.a: stamp-lib ; @true
|
|
|
|
# This file holds an array associating configuration triplets and
|
|
# vector names. It is built from config.bfd. It is not compiled by
|
|
# itself, but is included by targets.c.
|
|
targmatch.h: config.bfd targmatch.sed
|
|
rm -f targmatch.h
|
|
$(SED) -f $(srcdir)/targmatch.sed < $(srcdir)/config.bfd > targmatch.new
|
|
mv -f targmatch.new targmatch.h
|
|
|
|
# When compiling archures.c and targets.c, supply the default target
|
|
# info from configure.
|
|
|
|
targets.lo: targets.c Makefile
|
|
if am__fastdepCC
|
|
$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(TDEFAULTS) $(srcdir)/targets.c
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
|
else
|
|
if AMDEP
|
|
source='targets.c' object='$@' libtool=yes @AMDEPBACKSLASH@
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
endif
|
|
$(LTCOMPILE) -c -o $@ $(TDEFAULTS) $(srcdir)/targets.c
|
|
endif
|
|
|
|
archures.lo: archures.c Makefile
|
|
if am__fastdepCC
|
|
$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(TDEFAULTS) $(srcdir)/archures.c
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
|
else
|
|
if AMDEP
|
|
source='archures.c' object='$@' libtool=yes @AMDEPBACKSLASH@
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
endif
|
|
$(LTCOMPILE) -c -o $@ $(TDEFAULTS) $(srcdir)/archures.c
|
|
endif
|
|
|
|
dwarf2.lo: dwarf2.c Makefile
|
|
if am__fastdepCC
|
|
$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ -DDEBUGDIR=\"$(DEBUGDIR)\" $(srcdir)/dwarf2.c
|
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
|
else
|
|
if AMDEP
|
|
source='dwarf2.c' object='$@' libtool=yes @AMDEPBACKSLASH@
|
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
endif
|
|
$(LTCOMPILE) -c -o $@ -DDEBUGDIR=\"$(DEBUGDIR)\" $(srcdir)/dwarf2.c
|
|
endif
|
|
|
|
elf32-target.h : elfxx-target.h
|
|
rm -f elf32-target.h
|
|
$(SED) -e s/NN/32/g < $(srcdir)/elfxx-target.h > elf32-target.new
|
|
mv -f elf32-target.new elf32-target.h
|
|
|
|
elf64-target.h : elfxx-target.h
|
|
rm -f elf64-target.h
|
|
$(SED) -e s/NN/64/g < $(srcdir)/elfxx-target.h > elf64-target.new
|
|
mv -f elf64-target.new elf64-target.h
|
|
|
|
elf32-aarch64.c : elfnn-aarch64.c
|
|
rm -f elf32-aarch64.c
|
|
echo "#line 1 \"$(srcdir)/elfnn-aarch64.c\"" > elf32-aarch64.new
|
|
$(SED) -e s/NN/32/g < $(srcdir)/elfnn-aarch64.c >> elf32-aarch64.new
|
|
mv -f elf32-aarch64.new elf32-aarch64.c
|
|
|
|
elf64-aarch64.c : elfnn-aarch64.c
|
|
rm -f elf64-aarch64.c
|
|
echo "#line 1 \"$(srcdir)/elfnn-aarch64.c\"" > elf64-aarch64.new
|
|
$(SED) -e s/NN/64/g < $(srcdir)/elfnn-aarch64.c >> elf64-aarch64.new
|
|
mv -f elf64-aarch64.new elf64-aarch64.c
|
|
|
|
elf32-ia64.c : elfnn-ia64.c
|
|
rm -f elf32-ia64.c
|
|
$(SED) -e s/NN/32/g < $(srcdir)/elfnn-ia64.c > elf32-ia64.new
|
|
mv -f elf32-ia64.new elf32-ia64.c
|
|
|
|
elf64-ia64.c : elfnn-ia64.c
|
|
rm -f elf64-ia64.c
|
|
$(SED) -e s/NN/64/g < $(srcdir)/elfnn-ia64.c > elf64-ia64.new
|
|
mv -f elf64-ia64.new elf64-ia64.c
|
|
|
|
elf32-riscv.c : elfnn-riscv.c
|
|
rm -f elf32-riscv.c
|
|
echo "#line 1 \"$(srcdir)/elfnn-riscv.c\"" > elf32-riscv.new
|
|
sed -e s/NN/32/g < $(srcdir)/elfnn-riscv.c >> elf32-riscv.new
|
|
mv -f elf32-riscv.new elf32-riscv.c
|
|
|
|
elf64-riscv.c : elfnn-riscv.c
|
|
rm -f elf64-riscv.c
|
|
echo "#line 1 \"$(srcdir)/elfnn-riscv.c\"" > elf64-riscv.new
|
|
sed -e s/NN/64/g < $(srcdir)/elfnn-riscv.c >> elf64-riscv.new
|
|
mv -f elf64-riscv.new elf64-riscv.c
|
|
|
|
peigen.c : peXXigen.c
|
|
rm -f peigen.c
|
|
$(SED) -e s/XX/pe/g < $(srcdir)/peXXigen.c > peigen.new
|
|
mv -f peigen.new peigen.c
|
|
|
|
pepigen.c : peXXigen.c
|
|
rm -f pepigen.c
|
|
$(SED) -e s/XX/pep/g < $(srcdir)/peXXigen.c > pepigen.new
|
|
mv -f pepigen.new pepigen.c
|
|
|
|
pex64igen.c: peXXigen.c
|
|
rm -f pex64igen.c
|
|
$(SED) -e s/XX/pex64/g < $(srcdir)/peXXigen.c > pex64igen.new
|
|
mv -f pex64igen.new pex64igen.c
|
|
|
|
BFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h
|
|
LOCAL_H_DEPS= libbfd.h sysdep.h config.h
|
|
$(BFD32_LIBS) \
|
|
$(BFD64_LIBS) \
|
|
$(ALL_MACHINES) \
|
|
$(BFD32_BACKENDS) \
|
|
$(BFD64_BACKENDS) \
|
|
$(OPTIONAL_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
|
|
|
|
host-aout.lo: Makefile
|
|
|
|
# The following program can be used to generate a simple config file
|
|
# which can be folded into an h-XXX file for a new host, with some editing.
|
|
aout-params.h: gen-aout
|
|
./gen-aout host > aout-params.h
|
|
gen-aout: $(srcdir)/gen-aout.c Makefile
|
|
$(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
|
|
|
|
$(BFD_H): stmp-bfd-h ; @true
|
|
|
|
stmp-bfd-h: bfd-in3.h
|
|
rm -f bfd-tmp.h
|
|
cp bfd-in3.h bfd-tmp.h
|
|
$(SHELL) $(srcdir)/../move-if-change bfd-tmp.h $(BFD_H)
|
|
rm -f bfd-tmp.h
|
|
touch stmp-bfd-h
|
|
|
|
BFD_H_FILES = bfd-in.h init.c opncls.c libbfd.c \
|
|
bfdio.c bfdwin.c section.c archures.c reloc.c \
|
|
syms.c bfd.c archive.c corefile.c targets.c format.c \
|
|
linker.c simple.c compress.c
|
|
BFD64_H_FILES = archive64.c
|
|
LIBBFD_H_FILES = libbfd-in.h libbfd.c bfdio.c bfdwin.c \
|
|
cache.c reloc.c archures.c linker.c
|
|
LIBCOFF_H_FILES = libcoff-in.h coffcode.h
|
|
|
|
# Could really use a "copy-if-change"...
|
|
headers:
|
|
(cd $(bfddocdir); $(MAKE) protos $(FLAGS_TO_PASS))
|
|
cp $(bfddocdir)/bfd.h bfd-in2.h-new
|
|
$(SHELL) $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
|
|
cp $(bfddocdir)/libbfd.h libbfd.h-new
|
|
$(SHELL) $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
|
|
cp $(bfddocdir)/libcoff.h libcoff.h-new
|
|
$(SHELL) $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
|
|
|
|
# We only rebuild the header files automatically if we have been
|
|
# configured with --enable-maintainer-mode.
|
|
|
|
$(srcdir)/bfd-in2.h: @MAINT@ stmp-bin2-h ; @true
|
|
stmp-bin2-h: $(BFD_H_FILES) $(BFD64_H_FILES)
|
|
(cd $(bfddocdir); $(MAKE) $(FLAGS_TO_PASS) bfd.h)
|
|
cp $(bfddocdir)/bfd.h bfd-in2.h-new
|
|
$(SHELL) $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
|
|
touch stmp-bin2-h
|
|
|
|
$(srcdir)/libbfd.h: @MAINT@ stmp-lbfd-h ; @true
|
|
stmp-lbfd-h: $(LIBBFD_H_FILES)
|
|
(cd $(bfddocdir); $(MAKE) $(FLAGS_TO_PASS) libbfd.h)
|
|
cp $(bfddocdir)/libbfd.h libbfd.h-new
|
|
$(SHELL) $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
|
|
touch stmp-lbfd-h
|
|
|
|
$(srcdir)/libcoff.h: @MAINT@ stmp-lcoff-h ; @true
|
|
stmp-lcoff-h: $(LIBCOFF_H_FILES)
|
|
(cd $(bfddocdir); $(MAKE) $(FLAGS_TO_PASS) libcoff.h)
|
|
cp $(bfddocdir)/libcoff.h libcoff.h-new
|
|
$(SHELL) $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
|
|
touch stmp-lcoff-h
|
|
|
|
MOSTLYCLEANFILES = ofiles stamp-ofiles
|
|
|
|
CLEANFILES = bfd.h dep.sed stmp-bfd-h DEP DEPA DEP1 DEP2 libbfd.a stamp-lib \
|
|
stmp-bin2-h stmp-lbfd-h stmp-lcoff-h
|
|
|
|
DISTCLEANFILES = $(BUILD_CFILES) $(BUILD_HFILES) libtool-soversion
|
|
|
|
bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
|
|
@echo "creating $@"
|
|
@bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
|
|
bfd_version_string="\"$(VERSION)\"" ;\
|
|
bfd_soversion="$(VERSION)" ;\
|
|
bfd_version_package="\"$(PKGVERSION)\"" ;\
|
|
report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
|
|
. $(srcdir)/development.sh ;\
|
|
if test "$$development" = true ; then \
|
|
bfd_version_date=`$(SED) -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\
|
|
bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\
|
|
bfd_soversion="$(VERSION).$${bfd_version_date}" ;\
|
|
fi ;\
|
|
$(SED) -e "s,@bfd_version@,$$bfd_version," \
|
|
-e "s,@bfd_version_string@,$$bfd_version_string," \
|
|
-e "s,@bfd_version_package@,$$bfd_version_package," \
|
|
-e "s,@report_bugs_to@,$$report_bugs_to," \
|
|
< $(srcdir)/version.h > $@; \
|
|
echo "$${bfd_soversion}" > libtool-soversion
|
|
|
|
# Disable -Werror, if it has been enabled, since coffswap.h won't
|
|
# compile with gcc 4.5 and above.
|
|
coff-tic4x.lo: coff-tic4x.c
|
|
@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR)
|
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< $(NO_WERROR)
|
|
|
|
coff-tic54x.lo: coff-tic54x.c
|
|
@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR)
|
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< $(NO_WERROR)
|