X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2FMakefile.am;h=9908249fdd575a3aa97ed8903fbc4d36196b2421;hb=d546b61084cec687e0063b2e0e169b4690341c23;hp=d7f9ed7c457c4360a01de9f3cec7009e674f2393;hpb=d0ac1c44885daf68f631befa37e3f3bad318fbbf;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/Makefile.am b/bfd/Makefile.am index d7f9ed7c45..9908249fdd 100644 --- a/bfd/Makefile.am +++ b/bfd/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to generate Makefile.in # -# Copyright (C) 2012-2018 Free Software Foundation, Inc. +# Copyright (C) 2012-2021 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 @@ -32,7 +32,8 @@ if INSTALL_LIBBFD bfdlibdir = @bfdlibdir@ bfdincludedir = @bfdincludedir@ bfdlib_LTLIBRARIES = libbfd.la -bfdinclude_HEADERS = $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/bfdlink.h +bfdinclude_HEADERS = $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \ + bfd_stdint.h $(INCDIR)/diagnostics.h $(INCDIR)/bfdlink.h else !INSTALL_LIBBFD # Empty these so that the respective installation directories will not be created. bfdlibdir = @@ -52,7 +53,7 @@ ZLIBINC = @zlibinc@ WARN_CFLAGS = @WARN_CFLAGS@ NO_WERROR = @NO_WERROR@ AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) -AM_CPPFLAGS = -DBINDIR='"$(bindir)"' +AM_CPPFLAGS = -DBINDIR='"$(bindir)"' -DLIBDIR='"$(libdir)"' @LARGEFILE_CPPFLAGS@ if PLUGINS bfdinclude_HEADERS += $(INCDIR)/plugin-api.h LIBDL = @lt_cv_dlopen_libs@ @@ -69,17 +70,17 @@ BFD_H = bfd.h # need two copies of the executable, one to download and one for the # debugger). BFD32_LIBS = \ - archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo \ - cache.lo coff-bfd.lo compress.lo corefile.lo format.lo hash.lo \ - init.lo libbfd.lo linker.lo merge.lo opncls.lo reloc.lo \ + archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo \ + coff-bfd.lo compress.lo corefile.lo elf-properties.lo format.lo \ + hash.lo init.lo libbfd.lo linker.lo merge.lo opncls.lo reloc.lo \ section.lo simple.lo stab-syms.lo stabs.lo syms.lo targets.lo \ binary.lo ihex.lo srec.lo tekhex.lo verilog.lo BFD64_LIBS = archive64.lo BFD32_LIBS_CFILES = \ - archive.c archures.c bfd.c bfdio.c bfdwin.c \ - cache.c coff-bfd.c compress.c corefile.c format.c hash.c \ + archive.c archures.c bfd.c bfdio.c bfdwin.c cache.c coff-bfd.c \ + compress.c corefile.c elf-properties.c format.c hash.c \ init.c libbfd.c linker.c merge.c opncls.c reloc.c \ section.c simple.c stab-syms.c stabs.c syms.c targets.c \ binary.c ihex.c srec.c tekhex.c verilog.c @@ -95,10 +96,11 @@ ALL_MACHINES = \ cpu-arm.lo \ cpu-avr.lo \ cpu-bfin.lo \ + cpu-bpf.lo \ cpu-cr16.lo \ - cpu-cr16c.lo \ cpu-cris.lo \ cpu-crx.lo \ + cpu-csky.lo \ cpu-d10v.lo \ cpu-d30v.lo \ cpu-dlx.lo \ @@ -142,7 +144,6 @@ ALL_MACHINES = \ cpu-or1k.lo \ cpu-pdp11.lo \ cpu-pj.lo \ - cpu-plugin.lo \ cpu-powerpc.lo \ cpu-pru.lo \ cpu-rs6000.lo \ @@ -158,7 +159,6 @@ ALL_MACHINES = \ cpu-tic4x.lo \ cpu-tic54x.lo \ cpu-tic6x.lo \ - cpu-tic80.lo \ cpu-tilegx.lo \ cpu-tilepro.lo \ cpu-v850.lo \ @@ -180,10 +180,11 @@ ALL_MACHINES_CFILES = \ cpu-arm.c \ cpu-avr.c \ cpu-bfin.c \ + cpu-bpf.c \ cpu-cr16.c \ - cpu-cr16c.c \ cpu-cris.c \ cpu-crx.c \ + cpu-csky.c \ cpu-d10v.c \ cpu-d30v.c \ cpu-dlx.c \ @@ -227,7 +228,6 @@ ALL_MACHINES_CFILES = \ cpu-or1k.c \ cpu-pdp11.c \ cpu-pj.c \ - cpu-plugin.c \ cpu-powerpc.c \ cpu-pru.c \ cpu-rs6000.c \ @@ -243,7 +243,6 @@ ALL_MACHINES_CFILES = \ cpu-tic4x.c \ cpu-tic54x.c \ cpu-tic6x.c \ - cpu-tic80.c \ cpu-tilegx.c \ cpu-tilepro.c \ cpu-v850.c \ @@ -263,7 +262,6 @@ ALL_MACHINES_CFILES = \ BFD32_BACKENDS = \ aout-cris.lo \ aout-ns32k.lo \ - aout-tic30.lo \ aout32.lo \ cf-i386lynx.lo \ coff-go32.lo \ @@ -275,7 +273,6 @@ BFD32_BACKENDS = \ coff-tic30.lo \ coff-tic4x.lo \ coff-tic54x.lo \ - coff-tic80.lo \ coff-z80.lo \ coff-z8k.lo \ coffgen.lo \ @@ -290,7 +287,6 @@ BFD32_BACKENDS = \ elf-m10200.lo \ elf-m10300.lo \ elf-nacl.lo \ - elf-properties.lo \ elf-strtab.lo \ elf-vxworks.lo \ elf.lo \ @@ -300,9 +296,9 @@ BFD32_BACKENDS = \ elf32-avr.lo \ elf32-bfin.lo \ elf32-cr16.lo \ - elf32-cr16c.lo \ elf32-cris.lo \ elf32-crx.lo \ + elf32-csky.lo \ elf32-d10v.lo \ elf32-d30v.lo \ elf32-dlx.lo \ @@ -355,6 +351,7 @@ BFD32_BACKENDS = \ elf32-xgate.lo \ elf32-xstormy16.lo \ elf32-xtensa.lo \ + elf32-z80.lo \ elf32.lo \ elflink.lo \ elfxx-sparc.lo \ @@ -373,14 +370,12 @@ BFD32_BACKENDS = \ pe-arm.lo \ pe-i386.lo \ pe-mcore.lo \ - pe-ppc.lo \ pe-sh.lo \ pef.lo \ pei-arm-wince.lo \ pei-arm.lo \ pei-i386.lo \ pei-mcore.lo \ - pei-ppc.lo \ pei-sh.lo \ peigen.lo \ plugin.lo \ @@ -400,7 +395,6 @@ BFD32_BACKENDS = \ BFD32_BACKENDS_CFILES = \ aout-cris.c \ aout-ns32k.c \ - aout-tic30.c \ aout32.c \ cf-i386lynx.c \ coff-go32.c \ @@ -412,7 +406,6 @@ BFD32_BACKENDS_CFILES = \ coff-tic30.c \ coff-tic4x.c \ coff-tic54x.c \ - coff-tic80.c \ coff-z80.c \ coff-z8k.c \ coffgen.c \ @@ -427,7 +420,6 @@ BFD32_BACKENDS_CFILES = \ elf-m10200.c \ elf-m10300.c \ elf-nacl.c \ - elf-properties.c \ elf-strtab.c \ elf-vxworks.c \ elf.c \ @@ -437,9 +429,9 @@ BFD32_BACKENDS_CFILES = \ elf32-avr.c \ elf32-bfin.c \ elf32-cr16.c \ - elf32-cr16c.c \ elf32-cris.c \ elf32-crx.c \ + elf32-csky.c \ elf32-d10v.c \ elf32-d30v.c \ elf32-dlx.c \ @@ -492,6 +484,7 @@ BFD32_BACKENDS_CFILES = \ elf32-xgate.c \ elf32-xstormy16.c \ elf32-xtensa.c \ + elf32-z80.c \ elf32.c \ elflink.c \ elfxx-sparc.c \ @@ -510,14 +503,12 @@ BFD32_BACKENDS_CFILES = \ pe-arm.c \ pe-i386.c \ pe-mcore.c \ - pe-ppc.c \ pe-sh.c \ pef.c \ pei-arm-wince.c \ pei-arm.c \ pei-i386.c \ pei-mcore.c \ - pei-ppc.c \ pei-sh.c \ plugin.c \ ppcboot.c \ @@ -571,6 +562,7 @@ BFD64_BACKENDS = \ elf64-tilegx.lo \ elf64-x86-64.lo \ elfxx-x86.lo \ + elf64-bpf.lo \ elf64.lo \ mach-o-aarch64.lo \ mach-o-x86-64.lo \ @@ -604,6 +596,7 @@ BFD64_BACKENDS_CFILES = \ elf64-tilegx.c \ elf64-x86-64.c \ elfxx-x86.c \ + elf64-bpf.c \ elf64.c \ elfn32-mips.c \ elfxx-aarch64.c \ @@ -677,19 +670,35 @@ BUILD_CFILES = \ CFILES = $(SOURCE_CFILES) $(BUILD_CFILES) -## This is a list of all .h files which are in the source tree. +## This is a list of all .h files in the source tree minus those that +## are processed to produce other .h files SOURCE_HFILES = \ - aout-target.h aoutx.h coffcode.h coffswap.h ecoffswap.h \ - elf-bfd.h elf-hppa.h elf-linux-core.h elf32-hppa.h \ - elf64-hppa.h elfcode.h elfcore.h \ + aout-target.h aoutx.h arc-got.h arc-plt.h \ + coff-arm.h coff-bfd.h coffcode.h coffswap.h \ + cpu-aarch64.h cpu-arm.h cpu-h8300.h cpu-m68k.h \ + ecoff-bfd.h ecoffswap.h \ + elf32-arm.h elf32-avr.h elf32-bfin.h elf32-cr16.h elf32-csky.h \ + elf32-dlx.h elf32-hppa.h elf32-m68hc1x.h elf32-m68k.h \ + elf32-metag.h elf32-nds32.h elf32-nios2.h elf32-ppc.h \ + elf32-rx.h elf32-score.h elf32-sh-relocs.h elf32-spu.h \ + elf32-tic6x.h elf32-tilegx.h elf32-tilepro.h elf32-v850.h \ + elf64-hppa.h elf64-ppc.h elf64-tilegx.h \ + elf-bfd.h elfcode.h elfcore.h elf-hppa.h elf-linker-x86.h \ + elf-linux-core.h elf-nacl.h elf-s390.h elf-vxworks.h \ + elfxx-aarch64.h elfxx-ia64.h elfxx-mips.h elfxx-riscv.h \ + elfxx-sparc.h elfxx-tilegx.h elfxx-x86.h \ genlink.h go32stub.h \ libaout.h libbfd.h libcoff.h libecoff.h libhppa.h \ - libpei.h libxcoff.h mach-o.h \ + libpei.h libxcoff.h \ + mach-o.h \ netbsd.h ns32k.h \ - pef.h pef-traceback.h peicode.h som.h version.h \ - vms.h xsym.h + pef.h pef-traceback.h peicode.h plugin.h \ + som.h sysdep.h \ + version.h vms.h \ + wasm-module.h \ + xcofflink.h xsym.h -## ... and all .h files which are in the build tree. +## ... and .h files which are in the build tree, minus config.h and bfd.h BUILD_HFILES = \ bfdver.h elf32-target.h elf64-target.h targmatch.h bfd_stdint.h @@ -812,66 +821,49 @@ endif 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 - mv -f elf32-target.new elf32-target.h + $(SED) -e s/NN/32/g < $< > $@ elf64-target.h : elfxx-target.h - rm -f elf64-target.h - $(SED) -e s/NN/64/g < $(srcdir)/elfxx-target.h > elf64-target.new - mv -f elf64-target.new elf64-target.h + $(SED) -e s/NN/64/g < $< > $@ 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 + echo "#line 1 \"elfnn-aarch64.c\"" > $@ + $(SED) -e s/NN/32/g < $< >> $@ 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 + echo "#line 1 \"elfnn-aarch64.c\"" > $@ + $(SED) -e s/NN/64/g < $< >> $@ elf32-ia64.c : elfnn-ia64.c - rm -f elf32-ia64.c - $(SED) -e s/NN/32/g < $(srcdir)/elfnn-ia64.c > elf32-ia64.new - mv -f elf32-ia64.new elf32-ia64.c + echo "#line 1 \"elfnn-ia64.c\"" > $@ + $(SED) -e s/NN/32/g < $< >> $@ elf64-ia64.c : elfnn-ia64.c - rm -f elf64-ia64.c - $(SED) -e s/NN/64/g < $(srcdir)/elfnn-ia64.c > elf64-ia64.new - mv -f elf64-ia64.new elf64-ia64.c + echo "#line 1 \"elfnn-ia64.c\"" > $@ + $(SED) -e s/NN/64/g < $< >> $@ 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 + echo "#line 1 \"elfnn-riscv.c\"" > $@ + $(SED) -e s/NN/32/g < $< >> $@ 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 + echo "#line 1 \"elfnn-riscv.c\"" > $@ + $(SED) -e s/NN/64/g < $< >> $@ peigen.c : peXXigen.c - rm -f peigen.c - $(SED) -e s/XX/pe/g < $(srcdir)/peXXigen.c > peigen.new - mv -f peigen.new peigen.c + echo "#line 1 \"peXXigen.c\"" > $@ + $(SED) -e s/XX/pe/g < $< >> $@ pepigen.c : peXXigen.c - rm -f pepigen.c - $(SED) -e s/XX/pep/g < $(srcdir)/peXXigen.c > pepigen.new - mv -f pepigen.new pepigen.c + echo "#line 1 \"peXXigen.c\"" > $@ + $(SED) -e s/XX/pep/g < $< >> $@ pex64igen.c: peXXigen.c - rm -f pex64igen.c - $(SED) -e s/XX/pex64/g < $(srcdir)/peXXigen.c > pex64igen.new - mv -f pex64igen.new pex64igen.c + echo "#line 1 \"peXXigen.c\"" > $@ + $(SED) -e s/XX/pex64/g < $< >> $@ -BFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h -LOCAL_H_DEPS= libbfd.h sysdep.h config.h +BFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/diagnostics.h +LOCAL_H_DEPS= libbfd.h sysdep.h config.h bfd_stdint.h $(BFD32_LIBS) \ $(BFD64_LIBS) \ $(ALL_MACHINES) \