Test case for Inferior.thread_from_thread_handle
[deliverable/binutils-gdb.git] / bfd / Makefile.am
index 295a83adf59e3adc403363d3fc3dc3573ff9e926..f7007a72aef9f1ad0a59fea00ff0147ccef761e5 100644 (file)
@@ -1,17 +1,17 @@
 ## Process this file with automake to generate Makefile.in
 #
-#   Copyright (C) 2012-2015 Free Software Foundation, Inc.
+#   Copyright (C) 2012-2017 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/>.
@@ -147,7 +147,9 @@ ALL_MACHINES = \
        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 \
@@ -167,6 +169,7 @@ ALL_MACHINES = \
        cpu-vax.lo \
        cpu-visium.lo \
        cpu-w65.lo \
+       cpu-wasm32.lo \
        cpu-we32k.lo \
        cpu-xc16x.lo \
        cpu-xgate.lo \
@@ -234,7 +237,9 @@ ALL_MACHINES_CFILES = \
        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 \
@@ -253,6 +258,7 @@ ALL_MACHINES_CFILES = \
        cpu-v850_rh850.c \
        cpu-vax.c \
        cpu-visium.c \
+       cpu-wasm32.c \
        cpu-w65.c \
        cpu-we32k.c \
        cpu-xc16x.c \
@@ -315,6 +321,7 @@ BFD32_BACKENDS = \
        elf-m10200.lo \
        elf-m10300.lo \
        elf-nacl.lo \
+       elf-properties.lo \
        elf-strtab.lo \
        elf-vxworks.lo \
        elf.lo \
@@ -339,6 +346,7 @@ BFD32_BACKENDS = \
        elf32-hppa.lo \
        elf32-i370.lo \
        elf32-i386.lo \
+       elfxx-x86.lo \
        elf32-i860.lo \
        elf32-i960.lo \
        elf32-ip2k.lo \
@@ -363,6 +371,7 @@ BFD32_BACKENDS = \
        elf32-or1k.lo \
        elf32-pj.lo \
        elf32-ppc.lo \
+       elf32-pru.lo \
        elf32-rl78.lo \
        elf32-rx.lo \
        elf32-s390.lo \
@@ -378,6 +387,7 @@ BFD32_BACKENDS = \
        elf32-v850.lo \
        elf32-vax.lo \
        elf32-visium.lo \
+       elf32-wasm32.lo \
        elf32-xc16x.lo \
        elf32-xgate.lo \
        elf32-xstormy16.lo \
@@ -408,6 +418,7 @@ BFD32_BACKENDS = \
        m88kopenbsd.lo \
        mach-o.lo \
        mach-o-i386.lo \
+       mach-o-arm.lo \
        mipsbsd.lo \
        newsos3.lo \
        nlm.lo \
@@ -450,6 +461,7 @@ BFD32_BACKENDS = \
        versados.lo \
        vms-lib.lo \
        vms-misc.lo \
+       wasm-module.lo \
        xcofflink.lo \
        xsym.lo \
        xtensa-isa.lo \
@@ -506,6 +518,7 @@ BFD32_BACKENDS_CFILES = \
        elf-m10200.c \
        elf-m10300.c \
        elf-nacl.c \
+       elf-properties.c \
        elf-strtab.c \
        elf-vxworks.c \
        elf.c \
@@ -530,6 +543,7 @@ BFD32_BACKENDS_CFILES = \
        elf32-hppa.c \
        elf32-i370.c \
        elf32-i386.c \
+       elfxx-x86.c \
        elf32-i860.c \
        elf32-i960.c \
        elf32-ip2k.c \
@@ -554,6 +568,7 @@ BFD32_BACKENDS_CFILES = \
        elf32-or1k.c \
        elf32-pj.c \
        elf32-ppc.c \
+       elf32-pru.c \
        elf32-rl78.c \
        elf32-rx.c \
        elf32-s390.c \
@@ -569,6 +584,7 @@ BFD32_BACKENDS_CFILES = \
        elf32-v850.c \
        elf32-vax.c \
        elf32-visium.c \
+       elf32-wasm32.c \
        elf32-xc16x.c \
        elf32-xgate.c \
        elf32-xstormy16.c \
@@ -599,6 +615,7 @@ BFD32_BACKENDS_CFILES = \
        m88kopenbsd.c \
        mach-o.c \
        mach-o-i386.c \
+       mach-o-arm.c \
        mipsbsd.c \
        newsos3.c \
        nlm.c \
@@ -640,6 +657,7 @@ BFD32_BACKENDS_CFILES = \
        versados.c \
        vms-lib.c \
        vms-misc.c \
+       wasm-module.c \
        xcofflink.c \
        xsym.c \
        xtensa-isa.c \
@@ -669,18 +687,23 @@ BFD64_BACKENDS = \
        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-ppc.lo \
+       elf32-riscv.lo \
+       elf64-riscv.lo \
+       elfxx-riscv.lo \
        elf64-s390.lo \
        elf64-sh64.lo \
        elf64-sparc.lo \
        elf64-tilegx.lo \
        elf64-x86-64.lo \
+       elfxx-x86.lo \
        elf64.lo \
-       elfn32-mips.lo \
-       elfxx-ia64.lo \
-       elfxx-mips.lo \
+       mach-o-aarch64.lo \
        mach-o-x86-64.lo \
        mmo.lo \
        nlm32-alpha.lo \
@@ -714,11 +737,14 @@ BFD64_BACKENDS_CFILES = \
        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 \
        nlm32-alpha.c \
@@ -734,6 +760,7 @@ OPTIONAL_BACKENDS = \
        hpux-core.lo \
        irix-core.lo \
        lynx-core.lo \
+       netbsd-core.lo \
        osf-core.lo \
        rs6000-core.lo \
        sco5-core.lo \
@@ -745,6 +772,7 @@ OPTIONAL_BACKENDS_CFILES = \
        hpux-core.c \
        irix-core.c \
        lynx-core.c \
+       netbsd-core.c \
        osf-core.c \
        rs6000-core.c \
        sco5-core.c \
@@ -779,14 +807,16 @@ SOURCE_CFILES = \
 
 BUILD_CFILES = \
        elf32-aarch64.c elf64-aarch64.c \
-       elf32-ia64.c elf64-ia64.c peigen.c pepigen.c pex64igen.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 aoutf1.h aoutx.h coffcode.h coffswap.h ecoffswap.h \
-       elf-bfd.h elf-hppa.h elf-linux-psinfo.h elf32-hppa.h \
+       elf-bfd.h elf-hppa.h elf-linux-core.h elf32-hppa.h \
        elf64-hppa.h elfcode.h elfcore.h \
        freebsd.h genlink.h go32stub.h \
        libaout.h libbfd.h libcoff.h libecoff.h libhppa.h libieee.h \
@@ -860,7 +890,7 @@ noinst_LIBRARIES = libbfd.a
 libbfd_a_SOURCES =
 
 stamp-lib: libbfd.la
-       libtooldir=`$(LIBTOOL) --config | sed -n -e 's/^objdir=//p'`; \
+       libtooldir=`$(LIBTOOL) --config | $(SED) -n -e 's/^objdir=//p'`; \
        if [ -f $$libtooldir/libbfd.a ]; then \
          cp $$libtooldir/libbfd.a libbfd.tmp; \
          $(RANLIB) libbfd.tmp; \
@@ -875,7 +905,7 @@ libbfd.a: stamp-lib ; @true
 # 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
+       $(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
@@ -919,49 +949,61 @@ 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
+       $(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
+       $(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
+       $(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
+       $(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
+       $(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
+       $(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
+       $(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
+       $(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
+       $(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
@@ -991,12 +1033,13 @@ stmp-bfd-h: bfd-in3.h
        rm -f bfd-tmp.h
        touch stmp-bfd-h
 
-BFD_H_FILES = bfd-in.h init.c opncls.c libbfd.c section.c archures.c \
-       reloc.c syms.c bfd.c bfdio.c bfdwin.c \
-       archive.c corefile.c targets.c format.c compress.c
+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 init.c libbfd.c bfdio.c bfdwin.c \
-       cache.c reloc.c archures.c elf.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"...
@@ -1042,18 +1085,18 @@ 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=`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_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," \
+       $(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," \
This page took 0.030012 seconds and 4 git commands to generate.