]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/Makefile.am
* Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
[thirdparty/binutils-gdb.git] / bfd / Makefile.am
index aa3059398d50962b4799d3abfd69e006157c59f9..c1cd2df02404595c77c6b78971cc56ad9cf18439 100644 (file)
@@ -29,13 +29,15 @@ BFD_LIBS = \
        archive.lo archures.lo bfd.lo cache.lo coffgen.lo corefile.lo \
        format.lo init.lo libbfd.lo opncls.lo reloc.lo \
        section.lo syms.lo targets.lo hash.lo linker.lo \
-       srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo
+       srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo \
+       dwarf2.lo
 
 BFD_LIBS_CFILES = \
        archive.c archures.c bfd.c cache.c coffgen.c corefile.c \
        format.c init.c libbfd.c opncls.c reloc.c \
        section.c syms.c targets.c hash.c linker.c \
-       srec.c binary.c tekhex.c ihex.c stabs.c stab-syms.c
+       srec.c binary.c tekhex.c ihex.c stabs.c stab-syms.c \
+       dwarf2.c
 
 # This list is alphabetized to make it easier to keep in sync
 # with the decls and initializer in archures.c.
@@ -45,6 +47,7 @@ ALL_MACHINES = \
        cpu-arc.lo \
        cpu-arm.lo \
        cpu-avr.lo \
+       cpu-cris.lo \
        cpu-d10v.lo \
        cpu-d30v.lo \
        cpu-fr30.lo \
@@ -69,6 +72,7 @@ ALL_MACHINES = \
        cpu-pj.lo \
        cpu-powerpc.lo \
        cpu-rs6000.lo \
+       cpu-s390.lo \
        cpu-sh.lo \
        cpu-sparc.lo \
        cpu-tic30.lo \
@@ -86,6 +90,7 @@ ALL_MACHINES_CFILES = \
        cpu-arc.c \
        cpu-arm.c \
        cpu-avr.c \
+       cpu-cris.c \
        cpu-d10v.c \
        cpu-d30v.c \
        cpu-fr30.c \
@@ -110,6 +115,7 @@ ALL_MACHINES_CFILES = \
        cpu-pj.c \
        cpu-powerpc.c \
        cpu-rs6000.c \
+       cpu-s390.c \
        cpu-sh.c \
        cpu-sparc.c \
        cpu-tic30.c \
@@ -126,6 +132,7 @@ ALL_MACHINES_CFILES = \
 BFD32_BACKENDS = \
        aout-adobe.lo \
        aout-arm.lo \
+       aout-cris.lo \
        aout-ns32k.lo \
        aout-sparcle.lo \
        aout-tic30.lo \
@@ -164,7 +171,6 @@ BFD32_BACKENDS = \
        coff-z8k.lo \
        cofflink.lo \
        dwarf1.lo \
-       dwarf2.lo \
        ecoff.lo \
        ecofflink.lo \
        efi-app-ia32.lo \
@@ -173,6 +179,7 @@ BFD32_BACKENDS = \
        elfarm-oabi.lo \
        elfarm-nabi.lo \
        elf32-avr.lo \
+       elf32-cris.lo \
        elf32-d10v.lo \
        elf32-d30v.lo \
        elf32-fr30.lo \
@@ -182,6 +189,7 @@ BFD32_BACKENDS = \
        elf32-i386.lo \
        elf32-i860.lo \
        elf32-i960.lo \
+       elf32-ia64.lo \
        elf32-m32r.lo \
        elf32-m68hc11.lo \
        elf32-m68hc12.lo \
@@ -193,7 +201,9 @@ BFD32_BACKENDS = \
        elf32-mips.lo \
        elf32-pj.lo \
        elf32-ppc.lo \
+       elf32-s390.lo \
        elf32-sh.lo \
+       elf32-sh-lin.lo \
        elf32-sparc.lo \
        elf32-v850.lo \
        elf32.lo \
@@ -261,6 +271,7 @@ BFD32_BACKENDS = \
 BFD32_BACKENDS_CFILES = \
        aout-adobe.c \
        aout-arm.c \
+       aout-cris.c \
        aout-ns32k.c \
        aout-sparcle.c \
        aout-tic30.c \
@@ -299,7 +310,6 @@ BFD32_BACKENDS_CFILES = \
        coff-z8k.c \
        cofflink.c \
        dwarf1.c \
-       dwarf2.c \
        ecoff.c \
        ecofflink.c \
        efi-app-ia32.c \
@@ -308,6 +318,7 @@ BFD32_BACKENDS_CFILES = \
        elfarm-oabi.c \
        elfarm-nabi.c \
        elf32-avr.c \
+       elf32-cris.c \
        elf32-d10v.c \
        elf32-d30v.c \
        elf32-fr30.c \
@@ -328,7 +339,9 @@ BFD32_BACKENDS_CFILES = \
        elf32-mips.c \
        elf32-pj.c \
        elf32-ppc.c \
+       elf32-s390.c \
        elf32-sh.c \
+       elf32-sh-lin.c \
        elf32-sparc.c \
        elf32-v850.c \
        elf32.c \
@@ -402,11 +415,13 @@ BFD64_BACKENDS = \
        coff64-rs6000.lo \
        demo64.lo \
        efi-app-ia64.lo \
+       elf64-x86-64.lo \
        elf64-alpha.lo \
        elf64-hppa.lo \
        elf64-ia64.lo \
        elf64-gen.lo \
        elf64-mips.lo \
+       elf64-s390.lo \
        elf64-sparc.lo \
        elf64.lo \
        nlm32-alpha.lo \
@@ -418,11 +433,12 @@ BFD64_BACKENDS_CFILES = \
        coff64-rs6000.c \
        demo64.c \
        efi-app-ia64.c \
+       elf64-x86-64.c \
        elf64-alpha.c \
        elf64-hppa.c \
-       elf64-ia64.c \
        elf64-gen.c \
        elf64-mips.c \
+       elf64-s390.c \
        elf64-sparc.c \
        elf64.c \
        nlm32-alpha.c \
@@ -524,6 +540,7 @@ 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
@@ -557,6 +574,16 @@ 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
+       rm -f elf32-ia64.c
+       sed -e s/NN/32/g < $(srcdir)/elfxx-ia64.c > elf32-ia64.new
+       mv -f elf32-ia64.new elf32-ia64.c
+
+elf64-ia64.c : elfxx-ia64.c
+       rm -f elf64-ia64.c
+       sed -e s/NN/64/g < $(srcdir)/elfxx-ia64.c > elf64-ia64.new
+       mv -f elf64-ia64.new elf64-ia64.c
+
 BFD_H_DEPS= $(INCDIR)/ansidecl.h
 LOCAL_H_DEPS= libbfd.h sysdep.h config.h
 $(BFD_LIBS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
@@ -567,10 +594,11 @@ $(OPTIONAL_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
 # Install BFD include file, and others that it needs.
 install-data-local: $(BFD_H)
        @$(NORMAL_INSTALL)
-       $(mkinstalldirs) $(includedir)
-       $(INSTALL_DATA) $(BFD_H) $(includedir)/bfd.h
-       $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(includedir)/ansidecl.h
-       $(INSTALL_DATA) $(INCDIR)/bfdlink.h $(includedir)/bfdlink.h
+       $(mkinstalldirs) $(DESTDIR)$(includedir)
+       $(INSTALL_DATA) $(BFD_H) $(DESTDIR)$(includedir)/bfd.h
+       $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(DESTDIR)$(includedir)/ansidecl.h
+       $(INSTALL_DATA) $(INCDIR)/bfdlink.h $(DESTDIR)$(includedir)/bfdlink.h
+
 
 # Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
 DEP: dep.sed $(CFILES) $(HFILES) bfd.h
@@ -720,6 +748,7 @@ cpu-alpha.lo: cpu-alpha.c $(INCDIR)/filenames.h
 cpu-arc.lo: cpu-arc.c $(INCDIR)/filenames.h
 cpu-arm.lo: cpu-arm.c $(INCDIR)/filenames.h
 cpu-avr.lo: cpu-avr.c $(INCDIR)/filenames.h
+cpu-cris.lo: cpu-cris.c $(INCDIR)/filenames.h
 cpu-d10v.lo: cpu-d10v.c $(INCDIR)/filenames.h
 cpu-d30v.lo: cpu-d30v.c $(INCDIR)/filenames.h
 cpu-fr30.lo: cpu-fr30.c $(INCDIR)/filenames.h
@@ -745,6 +774,7 @@ cpu-ns32k.lo: cpu-ns32k.c $(INCDIR)/filenames.h ns32k.h
 cpu-pj.lo: cpu-pj.c $(INCDIR)/filenames.h
 cpu-powerpc.lo: cpu-powerpc.c $(INCDIR)/filenames.h
 cpu-rs6000.lo: cpu-rs6000.c $(INCDIR)/filenames.h
+cpu-s390.lo: cpu-s390.c $(INCDIR)/filenames.h
 cpu-sh.lo: cpu-sh.c $(INCDIR)/filenames.h
 cpu-sparc.lo: cpu-sparc.c $(INCDIR)/filenames.h
 cpu-tic30.lo: cpu-tic30.c $(INCDIR)/filenames.h
@@ -762,6 +792,10 @@ aout-arm.lo: aout-arm.c $(INCDIR)/filenames.h libaout.h \
   $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h aoutx.h \
   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \
   aout-target.h
+aout-cris.lo: aout-cris.c aout32.c aoutx.h $(INCDIR)/filenames.h \
+  $(INCDIR)/bfdlink.h libaout.h $(INCDIR)/aout/aout64.h \
+  $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \
+  aout-target.h
 aout-ns32k.lo: aout-ns32k.c $(INCDIR)/aout/aout64.h \
   ns32k.h libaout.h $(INCDIR)/bfdlink.h
 aout-sparcle.lo: aout-sparcle.c $(INCDIR)/bfdlink.h \
@@ -913,6 +947,10 @@ elf32-avr.lo: elf32-avr.c $(INCDIR)/filenames.h elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
   $(INCDIR)/bfdlink.h $(INCDIR)/elf/avr.h $(INCDIR)/elf/reloc-macros.h \
   elf32-target.h
+elf32-cris.lo: elf32-cris.c $(INCDIR)/filenames.h elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/bfdlink.h $(INCDIR)/elf/cris.h $(INCDIR)/elf/reloc-macros.h \
+  elf32-target.h
 elf32-d10v.lo: elf32-d10v.c $(INCDIR)/filenames.h elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
   $(INCDIR)/bfdlink.h $(INCDIR)/elf/d10v.h $(INCDIR)/elf/reloc-macros.h \
@@ -941,11 +979,16 @@ elf32-i386.lo: elf32-i386.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   elf32-target.h
 elf32-i860.lo: elf32-i860.c $(INCDIR)/filenames.h elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
-  $(INCDIR)/bfdlink.h elf32-target.h
+  $(INCDIR)/bfdlink.h $(INCDIR)/elf/i860.h $(INCDIR)/elf/reloc-macros.h \
+  elf32-target.h
 elf32-i960.lo: elf32-i960.c $(INCDIR)/filenames.h elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
   $(INCDIR)/bfdlink.h $(INCDIR)/elf/i960.h $(INCDIR)/elf/reloc-macros.h \
   elf32-target.h
+elf32-ia64.lo: elf32-ia64.c $(INCDIR)/filenames.h elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/bfdlink.h $(INCDIR)/opcode/ia64.h $(INCDIR)/elf/ia64.h \
+  $(INCDIR)/elf/reloc-macros.h elf32-target.h
 elf32-m32r.lo: elf32-m32r.c $(INCDIR)/filenames.h elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
   $(INCDIR)/bfdlink.h $(INCDIR)/elf/m32r.h $(INCDIR)/elf/reloc-macros.h \
@@ -990,10 +1033,19 @@ elf32-ppc.lo: elf32-ppc.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/external.h $(INCDIR)/elf/ppc.h $(INCDIR)/elf/reloc-macros.h \
   elf32-target.h
+elf32-s390.lo: elf32-s390.c $(INCDIR)/filenames.h \
+  $(INCDIR)/bfdlink.h elf-bfd.h $(INCDIR)/elf/common.h \
+  $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/elf/s390.h \
+  $(INCDIR)/elf/reloc-macros.h $(INCDIR)/opcode/s390.h \
+  elf32-target.h
 elf32-sh.lo: elf32-sh.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/external.h $(INCDIR)/elf/sh.h $(INCDIR)/elf/reloc-macros.h \
   elf32-target.h
+elf32-sh-lin.lo: elf32-sh-lin.c elf32-sh.c $(INCDIR)/filenames.h \
+  $(INCDIR)/bfdlink.h elf-bfd.h $(INCDIR)/elf/common.h \
+  $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/elf/sh.h \
+  $(INCDIR)/elf/reloc-macros.h elf32-target.h
 elf32-sparc.lo: elf32-sparc.c $(INCDIR)/filenames.h \
   $(INCDIR)/bfdlink.h elf-bfd.h $(INCDIR)/elf/common.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/elf/sparc.h \
@@ -1024,7 +1076,7 @@ hp300hpux.lo: hp300hpux.c $(INCDIR)/aout/hp300hpux.h \
   aoutx.h $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h libaout.h \
   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
   $(INCDIR)/aout/ar.h aout-target.h
-som.lo: som.c $(INCDIR)/filenames.h
+som.lo: som.c $(INCDIR)/alloca-conf.h $(INCDIR)/filenames.h
 i386aout.lo: i386aout.c $(INCDIR)/filenames.h $(INCDIR)/aout/aout64.h \
   libaout.h $(INCDIR)/bfdlink.h aout-target.h $(INCDIR)/aout/stab_gnu.h \
   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
@@ -1217,6 +1269,10 @@ elf64-ia64.lo: elf64-ia64.c $(INCDIR)/filenames.h elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
   $(INCDIR)/bfdlink.h $(INCDIR)/opcode/ia64.h $(INCDIR)/elf/ia64.h \
   $(INCDIR)/elf/reloc-macros.h elf64-target.h
+elf64-x86-64.lo: elf64-x86-64.c $(INCDIR)/filenames.h elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/bfdlink.h $(INCDIR)/opcode/i386.h $(INCDIR)/elf/x86-64.h \
+  $(INCDIR)/elf/reloc-macros.h elf64-target.h
 elf64-gen.lo: elf64-gen.c $(INCDIR)/filenames.h elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
   $(INCDIR)/bfdlink.h elf64-target.h
@@ -1226,6 +1282,11 @@ elf64-mips.lo: elf64-mips.c $(INCDIR)/filenames.h $(INCDIR)/aout/ar.h \
   $(INCDIR)/elf/reloc-macros.h $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h \
   $(INCDIR)/coff/internal.h $(INCDIR)/coff/ecoff.h $(INCDIR)/coff/alpha.h \
   ecoffswap.h elf64-target.h
+elf64-s390.lo: elf64-s390.c $(INCDIR)/filenames.h \
+  elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
+  $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/opcode/s390.h \
+  $(INCDIR)/elf/s390.h $(INCDIR)/elf/reloc-macros.h \
+  elf64-target.h
 elf64-sparc.lo: elf64-sparc.c $(INCDIR)/filenames.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/opcode/sparc.h \