Add Visium support to bfd
[deliverable/binutils-gdb.git] / bfd / Makefile.am
index 50c84ee0ea5f724692f54e9c34532d06af5c18db..cea3794c30bf075b32d75783cb6edc16a62733ba 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)
 
@@ -35,7 +49,7 @@ AM_CFLAGS = $(WARN_CFLAGS)
 AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
 if PLUGINS
 bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
-LIBDL = -ldl
+LIBDL = @lt_cv_dlopen_libs@
 endif
 
 # bfd.h goes here, for now
@@ -71,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 \
@@ -105,19 +120,23 @@ 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 \
@@ -138,16 +157,20 @@ ALL_MACHINES = \
        cpu-tilegx.lo \
        cpu-tilepro.lo \
        cpu-v850.lo \
+       cpu-v850_rh850.lo \
        cpu-vax.lo \
+       cpu-visium.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 \
@@ -182,19 +205,23 @@ 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 \
@@ -215,10 +242,13 @@ ALL_MACHINES_CFILES = \
        cpu-tilegx.c \
        cpu-tilepro.c \
        cpu-v850.c \
+       cpu-v850_rh850.c \
        cpu-vax.c \
+       cpu-visium.c \
        cpu-w65.c \
        cpu-we32k.c \
        cpu-xc16x.c \
+       cpu-xgate.c \
        cpu-xstormy16.c \
        cpu-xtensa.c \
        cpu-z80.c \
@@ -251,7 +281,6 @@ BFD32_BACKENDS = \
        coff-m68k.lo \
        coff-m88k.lo \
        coff-mips.lo \
-       coff-or32.lo \
        coff-rs6000.lo \
        coff-sh.lo \
        coff-sparc.lo \
@@ -313,13 +342,14 @@ 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 \
@@ -336,12 +366,13 @@ BFD32_BACKENDS = \
        elf32-tilepro.lo \
        elf32-v850.lo \
        elf32-vax.lo \
+       elf32-visium.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 \
@@ -438,7 +469,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 \
@@ -500,13 +530,14 @@ 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 \
@@ -523,12 +554,13 @@ BFD32_BACKENDS_CFILES = \
        elf32-tilepro.c \
        elf32-v850.c \
        elf32-vax.c \
+       elf32-visium.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 \
@@ -605,20 +637,24 @@ 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 \
        coff-x86_64.lo \
        coff64-rs6000.lo \
        demo64.lo \
-       elf-nacl.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 \
@@ -630,6 +666,7 @@ BFD64_BACKENDS = \
        elf64.lo \
        elfn32-mips.lo \
        elfxx-ia64.lo \
+       elfxx-mips.lo \
        mach-o-x86-64.lo \
        mmo.lo \
        nlm32-alpha.lo \
@@ -648,12 +685,13 @@ BFD64_BACKENDS_CFILES = \
        coff-x86_64.c \
        coff64-rs6000.c \
        demo64.c \
-       elf-nacl.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 \
@@ -664,7 +702,9 @@ BFD64_BACKENDS_CFILES = \
        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 \
@@ -696,15 +736,14 @@ OPTIONAL_BACKENDS_CFILES = \
        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@
@@ -725,6 +764,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)
@@ -732,7 +772,7 @@ 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 \
@@ -873,6 +913,18 @@ 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-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
@@ -974,14 +1026,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.028338 seconds and 4 git commands to generate.