daily update
[deliverable/binutils-gdb.git] / bfd / Makefile.am
index 03c5fc786a0961c46ad0b3986db38e27b3bc915a..6f64f0629732aea7b3f88e99771a9d4ede4b6c71 100644 (file)
@@ -1,11 +1,25 @@
 ## Process this file with automake to generate Makefile.in
+#
+#   Copyright (C) 2012-2014 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 = 1.11 no-dist foreign
 ACLOCAL_AMFLAGS = -I . -I .. -I ../config
 
-# Uncomment the following line when doing a release.
-# RELEASE=y
-
 INCDIR = $(srcdir)/../include
 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
 
@@ -23,6 +37,7 @@ 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)
@@ -33,7 +48,8 @@ NO_WERROR = @NO_WERROR@
 AM_CFLAGS = $(WARN_CFLAGS)
 AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
 if PLUGINS
-LIBDL = -ldl
+bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
+LIBDL = @lt_cv_dlopen_libs@
 endif
 
 # bfd.h goes here, for now
@@ -69,6 +85,7 @@ 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 \
@@ -81,6 +98,7 @@ ALL_MACHINES = \
        cpu-d10v.lo \
        cpu-d30v.lo \
        cpu-dlx.lo \
+       cpu-epiphany.lo \
        cpu-fr30.lo \
        cpu-frv.lo \
        cpu-h8300.lo \
@@ -89,6 +107,7 @@ ALL_MACHINES = \
        cpu-i370.lo \
        cpu-i386.lo \
        cpu-l1om.lo \
+       cpu-k1om.lo \
        cpu-i860.lo \
        cpu-i960.lo \
        cpu-ia64.lo \
@@ -101,24 +120,29 @@ ALL_MACHINES = \
        cpu-m32r.lo \
        cpu-m68hc11.lo \
        cpu-m68hc12.lo \
+       cpu-m9s12x.lo \
+       cpu-m9s12xg.lo \
        cpu-m68k.lo \
        cpu-m88k.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-nios2.lo \
        cpu-ns32k.lo \
-       cpu-openrisc.lo \
-       cpu-or32.lo \
+       cpu-or1k.lo \
        cpu-pdp11.lo \
        cpu-pj.lo \
        cpu-plugin.lo \
        cpu-powerpc.lo \
        cpu-rs6000.lo \
+       cpu-rl78.lo \
        cpu-rx.lo \
        cpu-s390.lo \
        cpu-score.lo \
@@ -130,17 +154,22 @@ ALL_MACHINES = \
        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-w65.lo \
        cpu-we32k.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 \
@@ -153,6 +182,7 @@ ALL_MACHINES_CFILES = \
        cpu-d10v.c \
        cpu-d30v.c \
        cpu-dlx.c \
+       cpu-epiphany.c \
        cpu-fr30.c \
        cpu-frv.c \
        cpu-h8300.c \
@@ -161,6 +191,7 @@ ALL_MACHINES_CFILES = \
        cpu-i370.c \
        cpu-i386.c \
        cpu-l1om.c \
+       cpu-k1om.c \
        cpu-i860.c \
        cpu-i960.c \
        cpu-ia64.c \
@@ -173,24 +204,29 @@ ALL_MACHINES_CFILES = \
        cpu-m32r.c \
        cpu-m68hc11.c \
        cpu-m68hc12.c \
+       cpu-m9s12x.c \
+       cpu-m9s12xg.c \
        cpu-m68k.c \
        cpu-m88k.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-ns32k.c \
-       cpu-openrisc.c \
-       cpu-or32.c \
+       cpu-nios2.c \
+       cpu-or1k.c \
        cpu-pdp11.c \
        cpu-pj.c \
        cpu-plugin.c \
        cpu-powerpc.c \
        cpu-rs6000.c \
+       cpu-rl78.c \
        cpu-rx.c \
        cpu-s390.c \
        cpu-score.c \
@@ -202,11 +238,15 @@ ALL_MACHINES_CFILES = \
        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-w65.c \
        cpu-we32k.c \
        cpu-xc16x.c \
+       cpu-xgate.c \
        cpu-xstormy16.c \
        cpu-xtensa.c \
        cpu-z80.c \
@@ -239,7 +279,6 @@ BFD32_BACKENDS = \
        coff-m68k.lo \
        coff-m88k.lo \
        coff-mips.lo \
-       coff-or32.lo \
        coff-rs6000.lo \
        coff-sh.lo \
        coff-sparc.lo \
@@ -263,6 +302,7 @@ BFD32_BACKENDS = \
        elf-ifunc.lo \
        elf-m10200.lo \
        elf-m10300.lo \
+       elf-nacl.lo \
        elf-strtab.lo \
        elf-vxworks.lo \
        elf.lo \
@@ -278,6 +318,7 @@ BFD32_BACKENDS = \
        elf32-d10v.lo \
        elf32-d30v.lo \
        elf32-dlx.lo \
+       elf32-epiphany.lo \
        elf32-fr30.lo \
        elf32-frv.lo \
        elf32-gen.lo \
@@ -299,15 +340,17 @@ BFD32_BACKENDS = \
        elf32-m88k.lo \
        elf32-mcore.lo \
        elf32-mep.lo \
+       elf32-metag.lo \
        elf32-microblaze.lo \
-       elf32-mips.lo \
        elf32-moxie.lo \
        elf32-msp430.lo \
        elf32-mt.lo \
-       elf32-openrisc.lo \
-       elf32-or32.lo \
+       elf32-nds32.lo \
+       elf32-nios2.lo \
+       elf32-or1k.lo \
        elf32-pj.lo \
        elf32-ppc.lo \
+       elf32-rl78.lo \
        elf32-rx.lo \
        elf32-s390.lo \
        elf32-sh-symbian.lo \
@@ -317,15 +360,18 @@ BFD32_BACKENDS = \
        elf32-sparc.lo \
        elf32-spu.lo \
        elf32-tic6x.lo \
+       elf32-tilegx.lo \
+       elf32-tilepro.lo \
        elf32-v850.lo \
        elf32-vax.lo \
        elf32-xc16x.lo \
+       elf32-xgate.lo \
        elf32-xstormy16.lo \
        elf32-xtensa.lo \
        elf32.lo \
        elflink.lo \
-       elfxx-mips.lo \
        elfxx-sparc.lo \
+       elfxx-tilegx.lo \
        epoc-pe-arm.lo \
        epoc-pei-arm.lo \
        hp300bsd.lo \
@@ -420,7 +466,6 @@ BFD32_BACKENDS_CFILES = \
        coff-m68k.c \
        coff-m88k.c \
        coff-mips.c \
-       coff-or32.c \
        coff-rs6000.c \
        coff-sh.c \
        coff-sparc.c \
@@ -444,6 +489,7 @@ BFD32_BACKENDS_CFILES = \
        elf-ifunc.c \
        elf-m10200.c \
        elf-m10300.c \
+       elf-nacl.c \
        elf-strtab.c \
        elf-vxworks.c \
        elf.c \
@@ -459,6 +505,7 @@ BFD32_BACKENDS_CFILES = \
        elf32-d10v.c \
        elf32-d30v.c \
        elf32-dlx.c \
+       elf32-epiphany.c \
        elf32-fr30.c \
        elf32-frv.c \
        elf32-gen.c \
@@ -480,15 +527,17 @@ BFD32_BACKENDS_CFILES = \
        elf32-m88k.c \
        elf32-mcore.c \
        elf32-mep.c \
+       elf32-metag.c \
        elf32-microblaze.c \
-       elf32-mips.c \
        elf32-moxie.c \
        elf32-msp430.c \
        elf32-mt.c \
-       elf32-openrisc.c \
-       elf32-or32.c \
+       elf32-nds32.c \
+       elf32-nios2.c \
+       elf32-or1k.c \
        elf32-pj.c \
        elf32-ppc.c \
+       elf32-rl78.c \
        elf32-rx.c \
        elf32-s390.c \
        elf32-sh-symbian.c \
@@ -498,15 +547,18 @@ BFD32_BACKENDS_CFILES = \
        elf32-sparc.c \
        elf32-spu.c \
        elf32-tic6x.c \
+       elf32-tilegx.c \
+       elf32-tilepro.c \
        elf32-v850.c \
        elf32-vax.c \
        elf32-xc16x.c \
+       elf32-xgate.c \
        elf32-xstormy16.c \
        elf32-xtensa.c \
        elf32.c \
        elflink.c \
-       elfxx-mips.c \
        elfxx-sparc.c \
+       elfxx-tilegx.c \
        epoc-pe-arm.c \
        epoc-pei-arm.c \
        hp300bsd.c \
@@ -581,6 +633,9 @@ BFD32_BACKENDS_CFILES = \
 # 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 \
@@ -588,21 +643,26 @@ BFD64_BACKENDS = \
        coff64-rs6000.lo \
        demo64.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 \
        elf64-mips.lo \
        elf64-mmix.lo \
        elf64-ppc.lo \
        elf64-s390.lo \
        elf64-sh64.lo \
        elf64-sparc.lo \
+       elf64-tilegx.lo \
        elf64-x86-64.lo \
        elf64.lo \
        elfn32-mips.lo \
+       elfxx-ia64.lo \
+       elfxx-mips.lo \
        mach-o-x86-64.lo \
        mmo.lo \
        nlm32-alpha.lo \
@@ -621,20 +681,26 @@ BFD64_BACKENDS_CFILES = \
        coff-x86_64.c \
        coff64-rs6000.c \
        demo64.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-ppc.c \
        elf64-s390.c \
        elf64-sh64.c \
        elf64-sparc.c \
+       elf64-tilegx.c \
        elf64-x86-64.c \
        elf64.c \
        elfn32-mips.c \
+       elfxx-aarch64.c \
+       elfxx-ia64.c \
+       elfxx-mips.c \
        mach-o-x86-64.c \
        mmo.c \
        nlm32-alpha.c \
@@ -651,6 +717,7 @@ OPTIONAL_BACKENDS = \
        irix-core.lo \
        lynx-core.lo \
        osf-core.lo \
+       rs6000-core.lo \
        sco5-core.lo \
        trad-core.lo
 
@@ -661,18 +728,18 @@ OPTIONAL_BACKENDS_CFILES = \
        irix-core.c \
        lynx-core.c \
        osf-core.c \
+       rs6000-core.c \
        sco5-core.c \
        trad-core.c
 
-# We want to rerun configure if configure.in, config.bfd or
-# configure.host change. configure.in is needed since the version
-# number in Makefile comes from configure.in.
+# Reconfigure if config.bfd or configure.host changes.
+# development.sh is used to determine -Werror default.
 CONFIG_STATUS_DEPENDENCIES = \
-       $(srcdir)/configure.in \
        $(srcdir)/config.bfd \
-       $(srcdir)/configure.host
+       $(srcdir)/configure.host \
+       $(srcdir)/development.sh
 
-# These are defined by configure.in:
+# These are defined by configure:
 WORDSIZE = @wordsize@
 ALL_BACKENDS = @all_backends@
 BFD_BACKENDS = @bfd_backends@
@@ -693,6 +760,7 @@ SOURCE_CFILES = \
        $(OPTIONAL_BACKENDS_CFILES)
 
 BUILD_CFILES = \
+       elf32-aarch64.c elf64-aarch64.c \
        elf32-ia64.c elf64-ia64.c peigen.c pepigen.c pex64igen.c
 
 CFILES = $(SOURCE_CFILES) $(BUILD_CFILES)
@@ -700,14 +768,14 @@ 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 elf32-hppa.h \
+       elf-bfd.h elf-hppa.h elf-linux-psinfo.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 \
        libnlm.h liboasys.h libpei.h libxcoff.h mach-o.h \
        netbsd.h nlm-target.h nlmcode.h nlmswap.h ns32k.h \
        pef.h pef-traceback.h peicode.h som.h version.h \
-       vms.h xcoff-target.h xsym.h
+       vms.h xsym.h
 
 ## ... and all .h files which are in the build tree.
 BUILD_HFILES = \
@@ -841,14 +909,26 @@ elf64-target.h : elfxx-target.h
        sed -e s/NN/64/g < $(srcdir)/elfxx-target.h > elf64-target.new
        mv -f elf64-target.new elf64-target.h
 
-elf32-ia64.c : elfxx-ia64.c
+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)/elfxx-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 : elfxx-ia64.c
+elf64-ia64.c : elfnn-ia64.c
        rm -f elf64-ia64.c
-       sed -e s/NN/64/g < $(srcdir)/elfxx-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
 
 peigen.c : peXXigen.c
@@ -942,14 +1022,15 @@ CLEANFILES = bfd.h dep.sed stmp-bfd-h DEP DEPA DEP1 DEP2 libbfd.a stamp-lib \
 
 DISTCLEANFILES = $(BUILD_CFILES) $(BUILD_HFILES) libtool-soversion
 
-bfdver.h: $(srcdir)/version.h $(srcdir)/Makefile.in
+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)\"" ;\
-       if test "x$(RELEASE)" = x ; then \
+       . $(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}" ;\
This page took 0.028341 seconds and 4 git commands to generate.