Cure recent x86 warts.
[deliverable/binutils-gdb.git] / bfd / Makefile.am
index 586c6174fa02e38108176247794f7bc4e2c63a14..435b706ccda4b02c8ce51beda1aa432ab2147ec0 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 \
@@ -86,6 +89,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 \
@@ -126,6 +130,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 +169,6 @@ BFD32_BACKENDS = \
        coff-z8k.lo \
        cofflink.lo \
        dwarf1.lo \
-       dwarf2.lo \
        ecoff.lo \
        ecofflink.lo \
        efi-app-ia32.lo \
@@ -173,6 +177,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 +187,7 @@ BFD32_BACKENDS = \
        elf32-i386.lo \
        elf32-i860.lo \
        elf32-i960.lo \
+       elf32-ia64.lo \
        elf32-m32r.lo \
        elf32-m68hc11.lo \
        elf32-m68hc12.lo \
@@ -194,6 +200,7 @@ BFD32_BACKENDS = \
        elf32-pj.lo \
        elf32-ppc.lo \
        elf32-sh.lo \
+       elf32-sh-lin.lo \
        elf32-sparc.lo \
        elf32-v850.lo \
        elf32.lo \
@@ -261,6 +268,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 +307,6 @@ BFD32_BACKENDS_CFILES = \
        coff-z8k.c \
        cofflink.c \
        dwarf1.c \
-       dwarf2.c \
        ecoff.c \
        ecofflink.c \
        efi-app-ia32.c \
@@ -308,6 +315,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 \
@@ -329,6 +337,7 @@ BFD32_BACKENDS_CFILES = \
        elf32-pj.c \
        elf32-ppc.c \
        elf32-sh.c \
+       elf32-sh-lin.c \
        elf32-sparc.c \
        elf32-v850.c \
        elf32.c \
@@ -402,6 +411,7 @@ BFD64_BACKENDS = \
        coff64-rs6000.lo \
        demo64.lo \
        efi-app-ia64.lo \
+       elf64-x86-64.lo \
        elf64-alpha.lo \
        elf64-hppa.lo \
        elf64-ia64.lo \
@@ -418,6 +428,7 @@ 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 \
@@ -470,7 +481,7 @@ SOURCE_HFILES = \
        aout-target.h aoutf1.h aoutx.h coffcode.h coffswap.h ecoffswap.h \
        elf-bfd.h elf-hppa.h elf32-arm.h elf32-hppa.h elf64-hppa.h \
        elfcode.h elfcore.h elflink.h freebsd.h genlink.h go32stub.h \
-       hppa_stubs.h libaout.h libbfd.h libcoff.h libecoff.h libhppa.h \
+       libaout.h libbfd.h libcoff.h libecoff.h libhppa.h \
        libieee.h libnlm.h liboasys.h libpei.h netbsd.h nlm-target.h \
        nlmcode.h nlmswap.h ns32k.h peicode.h som.h vms.h xcoff-target.h
 
@@ -557,6 +568,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)
@@ -576,8 +597,13 @@ install-data-local: $(BFD_H)
 DEP: dep.sed $(CFILES) $(HFILES) bfd.h
        rm -f DEP1
        $(MAKE) MKDEP="$(MKDEP)" DEP1
-       sed -f dep.sed < DEP1 > $@
-       echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@
+       sed -f dep.sed < DEP1 > DEPA
+       echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
+       if grep ' /' DEPA > /dev/null 2> /dev/null; then \
+         echo 'make DEP failed!'; exit 1; \
+       else \
+         mv -f DEPA $@; \
+       fi
 
 DEP1: $(CFILES)
        echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
@@ -666,7 +692,7 @@ stmp-lcoff-h: $(LIBCOFF_H_FILES)
 MOSTLYCLEANFILES = elf32-target.h elf64-target.h ofiles stamp-ofiles \
        targmatch.h
 
-CLEANFILES = bfd.h dep.sed stmp-bfd-h DEP DEP1 DEP2 libbfd.a stamp-lib \
+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
 
 # We want to rerun configure if config.bfd or configure.host change.
@@ -715,6 +741,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
@@ -757,6 +784,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 \
@@ -908,6 +939,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 \
@@ -926,7 +961,7 @@ elf32-gen.lo: elf32-gen.c $(INCDIR)/filenames.h elf-bfd.h \
 elf32-hppa.lo: elf32-hppa.c $(INCDIR)/filenames.h elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
   $(INCDIR)/bfdlink.h $(INCDIR)/elf/hppa.h $(INCDIR)/elf/reloc-macros.h \
-  libhppa.h elf32-hppa.h elf-hppa.h hppa_stubs.h elf32-target.h
+  libhppa.h elf32-hppa.h elf-hppa.h elf32-target.h
 elf32-i370.lo: elf32-i370.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/external.h $(INCDIR)/elf/i370.h elf32-target.h
@@ -936,11 +971,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 \
@@ -989,6 +1029,10 @@ 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 \
@@ -1019,7 +1063,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
@@ -1212,6 +1256,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
This page took 0.026282 seconds and 4 git commands to generate.