1377e23a2Schristos## Process this file with automake to generate Makefile.in 248596154Schristos# 3*1424dfb3Schristos# Copyright (C) 2012-2020 Free Software Foundation, Inc. 448596154Schristos# 548596154Schristos# This file is free software; you can redistribute it and/or modify 648596154Schristos# it under the terms of the GNU General Public License as published by 748596154Schristos# the Free Software Foundation; either version 3 of the License, or 848596154Schristos# (at your option) any later version. 948596154Schristos# 1048596154Schristos# This program is distributed in the hope that it will be useful, 1148596154Schristos# but WITHOUT ANY WARRANTY; without even the implied warranty of 1248596154Schristos# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1348596154Schristos# GNU General Public License for more details. 1448596154Schristos# 1548596154Schristos# You should have received a copy of the GNU General Public License 1648596154Schristos# along with this program; see the file COPYING3. If not see 1748596154Schristos# <http://www.gnu.org/licenses/>. 1848596154Schristos# 19377e23a2Schristos 2007163879SchristosAUTOMAKE_OPTIONS = no-dist foreign 21377e23a2SchristosACLOCAL_AMFLAGS = -I . -I .. -I ../config 22377e23a2Schristos 23377e23a2SchristosINCDIR = $(srcdir)/../include 24377e23a2SchristosCSEARCH = -I. -I$(srcdir) -I$(INCDIR) 25377e23a2Schristos 26377e23a2SchristosSUBDIRS = doc po 27377e23a2Schristos 28377e23a2Schristosbfddocdir = doc 29377e23a2Schristos 30377e23a2Schristoslibbfd_la_LDFLAGS = 31377e23a2Schristosif INSTALL_LIBBFD 32377e23a2Schristosbfdlibdir = @bfdlibdir@ 33377e23a2Schristosbfdincludedir = @bfdincludedir@ 34377e23a2Schristosbfdlib_LTLIBRARIES = libbfd.la 3507163879Schristosbfdinclude_HEADERS = $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \ 3607163879Schristos bfd_stdint.h $(INCDIR)/diagnostics.h $(INCDIR)/bfdlink.h 37377e23a2Schristoselse !INSTALL_LIBBFD 38377e23a2Schristos# Empty these so that the respective installation directories will not be created. 39377e23a2Schristosbfdlibdir = 40377e23a2Schristosbfdincludedir = 41377e23a2Schristosbfdinclude_HEADERS = 42377e23a2Schristosrpath_bfdlibdir = @bfdlibdir@ 43377e23a2Schristosnoinst_LTLIBRARIES = libbfd.la 44377e23a2Schristoslibbfd_la_LDFLAGS += -rpath $(rpath_bfdlibdir) 45377e23a2Schristosendif 46377e23a2Schristos 47ed6a76a9Schristos# This is where we get zlib from. zlibdir is -L../zlib and zlibinc is 48ed6a76a9Schristos# -I../zlib, unless we were configured with --with-system-zlib, in which 49ed6a76a9Schristos# case both are empty. 50ed6a76a9SchristosZLIB = @zlibdir@ -lz 51ed6a76a9SchristosZLIBINC = @zlibinc@ 52ed6a76a9Schristos 53377e23a2SchristosWARN_CFLAGS = @WARN_CFLAGS@ 54377e23a2SchristosNO_WERROR = @NO_WERROR@ 55ed6a76a9SchristosAM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) 56*1424dfb3SchristosAM_CPPFLAGS = -DBINDIR='"$(bindir)"' -DLIBDIR='"$(libdir)"' @LARGEFILE_CPPFLAGS@ 57377e23a2Schristosif PLUGINS 58377e23a2Schristosbfdinclude_HEADERS += $(INCDIR)/plugin-api.h 5948596154SchristosLIBDL = @lt_cv_dlopen_libs@ 60377e23a2Schristosendif 61377e23a2Schristos 62377e23a2Schristos# bfd.h goes here, for now 63377e23a2SchristosBFD_H = bfd.h 64377e23a2Schristos 65377e23a2Schristos# Jim Kingdon notes: 66377e23a2Schristos# Writing S-records should be included in all (or at least most) 67377e23a2Schristos# *-*-coff, *-*-aout, etc., configurations, because people will want to 68377e23a2Schristos# be able to use objcopy to create S-records. (S-records are not useful 69377e23a2Schristos# for the debugger, so if you are downloading things as S-records you 70377e23a2Schristos# need two copies of the executable, one to download and one for the 71377e23a2Schristos# debugger). 72377e23a2SchristosBFD32_LIBS = \ 7307163879Schristos archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo \ 7407163879Schristos coff-bfd.lo compress.lo corefile.lo elf-properties.lo format.lo \ 7507163879Schristos hash.lo init.lo libbfd.lo linker.lo merge.lo opncls.lo reloc.lo \ 765e098073Schristos section.lo simple.lo stab-syms.lo stabs.lo syms.lo targets.lo \ 775e098073Schristos binary.lo ihex.lo srec.lo tekhex.lo verilog.lo 78377e23a2Schristos 79377e23a2SchristosBFD64_LIBS = archive64.lo 80377e23a2Schristos 81377e23a2SchristosBFD32_LIBS_CFILES = \ 8207163879Schristos archive.c archures.c bfd.c bfdio.c bfdwin.c cache.c coff-bfd.c \ 8307163879Schristos compress.c corefile.c elf-properties.c format.c hash.c \ 845e098073Schristos init.c libbfd.c linker.c merge.c opncls.c reloc.c \ 855e098073Schristos section.c simple.c stab-syms.c stabs.c syms.c targets.c \ 865e098073Schristos binary.c ihex.c srec.c tekhex.c verilog.c 87377e23a2Schristos 88377e23a2SchristosBFD64_LIBS_CFILES = archive64.c 89377e23a2Schristos 90377e23a2Schristos# This list is alphabetized to make it easier to keep in sync 91377e23a2Schristos# with the decls and initializer in archures.c. 92377e23a2SchristosALL_MACHINES = \ 9348596154Schristos cpu-aarch64.lo \ 94377e23a2Schristos cpu-alpha.lo \ 95377e23a2Schristos cpu-arc.lo \ 96377e23a2Schristos cpu-arm.lo \ 97377e23a2Schristos cpu-avr.lo \ 98377e23a2Schristos cpu-bfin.lo \ 99*1424dfb3Schristos cpu-bpf.lo \ 100377e23a2Schristos cpu-cr16.lo \ 101377e23a2Schristos cpu-cris.lo \ 102377e23a2Schristos cpu-crx.lo \ 10307163879Schristos cpu-csky.lo \ 104377e23a2Schristos cpu-d10v.lo \ 105377e23a2Schristos cpu-d30v.lo \ 106377e23a2Schristos cpu-dlx.lo \ 10748596154Schristos cpu-epiphany.lo \ 108377e23a2Schristos cpu-fr30.lo \ 109377e23a2Schristos cpu-frv.lo \ 110ed6a76a9Schristos cpu-ft32.lo \ 111377e23a2Schristos cpu-h8300.lo \ 112377e23a2Schristos cpu-hppa.lo \ 113377e23a2Schristos cpu-i386.lo \ 114ed6a76a9Schristos cpu-iamcu.lo \ 115377e23a2Schristos cpu-l1om.lo \ 11648596154Schristos cpu-k1om.lo \ 117377e23a2Schristos cpu-ia64.lo \ 118377e23a2Schristos cpu-ip2k.lo \ 119377e23a2Schristos cpu-iq2000.lo \ 120377e23a2Schristos cpu-lm32.lo \ 121377e23a2Schristos cpu-m10200.lo \ 122377e23a2Schristos cpu-m10300.lo \ 123377e23a2Schristos cpu-m32c.lo \ 124377e23a2Schristos cpu-m32r.lo \ 125377e23a2Schristos cpu-m68hc11.lo \ 126377e23a2Schristos cpu-m68hc12.lo \ 12748596154Schristos cpu-m9s12x.lo \ 12807163879Schristos cpu-s12z.lo \ 12948596154Schristos cpu-m9s12xg.lo \ 130377e23a2Schristos cpu-m68k.lo \ 131377e23a2Schristos cpu-mcore.lo \ 132377e23a2Schristos cpu-mep.lo \ 13348596154Schristos cpu-metag.lo \ 134377e23a2Schristos cpu-microblaze.lo \ 135377e23a2Schristos cpu-mips.lo \ 136377e23a2Schristos cpu-mmix.lo \ 137377e23a2Schristos cpu-moxie.lo \ 138377e23a2Schristos cpu-msp430.lo \ 139377e23a2Schristos cpu-mt.lo \ 1407af5a897Schristos cpu-nds32.lo \ 14107163879Schristos cpu-nfp.lo \ 14248596154Schristos cpu-nios2.lo \ 143377e23a2Schristos cpu-ns32k.lo \ 1445e098073Schristos cpu-or1k.lo \ 145377e23a2Schristos cpu-pdp11.lo \ 146377e23a2Schristos cpu-pj.lo \ 147377e23a2Schristos cpu-powerpc.lo \ 1481c468f90Schristos cpu-pru.lo \ 149377e23a2Schristos cpu-rs6000.lo \ 1501c468f90Schristos cpu-riscv.lo \ 15148596154Schristos cpu-rl78.lo \ 152377e23a2Schristos cpu-rx.lo \ 153377e23a2Schristos cpu-s390.lo \ 154377e23a2Schristos cpu-score.lo \ 155377e23a2Schristos cpu-sh.lo \ 156377e23a2Schristos cpu-sparc.lo \ 157377e23a2Schristos cpu-spu.lo \ 158377e23a2Schristos cpu-tic30.lo \ 159377e23a2Schristos cpu-tic4x.lo \ 160377e23a2Schristos cpu-tic54x.lo \ 161377e23a2Schristos cpu-tic6x.lo \ 16248596154Schristos cpu-tilegx.lo \ 16348596154Schristos cpu-tilepro.lo \ 164377e23a2Schristos cpu-v850.lo \ 16548596154Schristos cpu-v850_rh850.lo \ 166377e23a2Schristos cpu-vax.lo \ 1675e098073Schristos cpu-visium.lo \ 1681c468f90Schristos cpu-wasm32.lo \ 169377e23a2Schristos cpu-xc16x.lo \ 17048596154Schristos cpu-xgate.lo \ 171377e23a2Schristos cpu-xstormy16.lo \ 172377e23a2Schristos cpu-xtensa.lo \ 173377e23a2Schristos cpu-z80.lo \ 174377e23a2Schristos cpu-z8k.lo 175377e23a2Schristos 176377e23a2SchristosALL_MACHINES_CFILES = \ 17748596154Schristos cpu-aarch64.c \ 178377e23a2Schristos cpu-alpha.c \ 179377e23a2Schristos cpu-arc.c \ 180377e23a2Schristos cpu-arm.c \ 181377e23a2Schristos cpu-avr.c \ 182377e23a2Schristos cpu-bfin.c \ 183*1424dfb3Schristos cpu-bpf.c \ 184377e23a2Schristos cpu-cr16.c \ 185377e23a2Schristos cpu-cris.c \ 186377e23a2Schristos cpu-crx.c \ 18707163879Schristos cpu-csky.c \ 188377e23a2Schristos cpu-d10v.c \ 189377e23a2Schristos cpu-d30v.c \ 190377e23a2Schristos cpu-dlx.c \ 19148596154Schristos cpu-epiphany.c \ 192377e23a2Schristos cpu-fr30.c \ 193377e23a2Schristos cpu-frv.c \ 194ed6a76a9Schristos cpu-ft32.c \ 195377e23a2Schristos cpu-h8300.c \ 196377e23a2Schristos cpu-hppa.c \ 197377e23a2Schristos cpu-i386.c \ 198ed6a76a9Schristos cpu-iamcu.c \ 199377e23a2Schristos cpu-l1om.c \ 20048596154Schristos cpu-k1om.c \ 201377e23a2Schristos cpu-ia64.c \ 202377e23a2Schristos cpu-ip2k.c \ 203377e23a2Schristos cpu-iq2000.c \ 204377e23a2Schristos cpu-lm32.c \ 205377e23a2Schristos cpu-m10200.c \ 206377e23a2Schristos cpu-m10300.c \ 207377e23a2Schristos cpu-m32c.c \ 208377e23a2Schristos cpu-m32r.c \ 209377e23a2Schristos cpu-m68hc11.c \ 210377e23a2Schristos cpu-m68hc12.c \ 21148596154Schristos cpu-m9s12x.c \ 21207163879Schristos cpu-s12z.c \ 21348596154Schristos cpu-m9s12xg.c \ 214377e23a2Schristos cpu-m68k.c \ 215377e23a2Schristos cpu-mcore.c \ 216377e23a2Schristos cpu-mep.c \ 21748596154Schristos cpu-metag.c \ 218377e23a2Schristos cpu-microblaze.c \ 219377e23a2Schristos cpu-mips.c \ 220377e23a2Schristos cpu-mmix.c \ 221377e23a2Schristos cpu-moxie.c \ 222377e23a2Schristos cpu-msp430.c \ 223377e23a2Schristos cpu-mt.c \ 2247af5a897Schristos cpu-nds32.c \ 22507163879Schristos cpu-nfp.c \ 226377e23a2Schristos cpu-ns32k.c \ 22748596154Schristos cpu-nios2.c \ 2285e098073Schristos cpu-or1k.c \ 229377e23a2Schristos cpu-pdp11.c \ 230377e23a2Schristos cpu-pj.c \ 231377e23a2Schristos cpu-powerpc.c \ 2321c468f90Schristos cpu-pru.c \ 233377e23a2Schristos cpu-rs6000.c \ 2341c468f90Schristos cpu-riscv.c \ 23548596154Schristos cpu-rl78.c \ 236377e23a2Schristos cpu-rx.c \ 237377e23a2Schristos cpu-s390.c \ 238377e23a2Schristos cpu-score.c \ 239377e23a2Schristos cpu-sh.c \ 240377e23a2Schristos cpu-sparc.c \ 241377e23a2Schristos cpu-spu.c \ 242377e23a2Schristos cpu-tic30.c \ 243377e23a2Schristos cpu-tic4x.c \ 244377e23a2Schristos cpu-tic54x.c \ 245377e23a2Schristos cpu-tic6x.c \ 24648596154Schristos cpu-tilegx.c \ 24748596154Schristos cpu-tilepro.c \ 248377e23a2Schristos cpu-v850.c \ 24948596154Schristos cpu-v850_rh850.c \ 250377e23a2Schristos cpu-vax.c \ 2515e098073Schristos cpu-visium.c \ 2521c468f90Schristos cpu-wasm32.c \ 253377e23a2Schristos cpu-xc16x.c \ 25448596154Schristos cpu-xgate.c \ 255377e23a2Schristos cpu-xstormy16.c \ 256377e23a2Schristos cpu-xtensa.c \ 257377e23a2Schristos cpu-z80.c \ 258377e23a2Schristos cpu-z8k.c 259377e23a2Schristos 260377e23a2Schristos# The .o files needed by all of the 32 bit vectors that are configured into 261377e23a2Schristos# target_vector in targets.c if configured with --enable-targets=all. 262377e23a2SchristosBFD32_BACKENDS = \ 263377e23a2Schristos aout-cris.lo \ 264377e23a2Schristos aout-ns32k.lo \ 265377e23a2Schristos aout32.lo \ 266377e23a2Schristos cf-i386lynx.lo \ 267377e23a2Schristos coff-go32.lo \ 268377e23a2Schristos coff-i386.lo \ 269377e23a2Schristos coff-mips.lo \ 270377e23a2Schristos coff-rs6000.lo \ 271377e23a2Schristos coff-sh.lo \ 272377e23a2Schristos coff-stgo32.lo \ 273377e23a2Schristos coff-tic30.lo \ 274377e23a2Schristos coff-tic4x.lo \ 275377e23a2Schristos coff-tic54x.lo \ 276377e23a2Schristos coff-z80.lo \ 277377e23a2Schristos coff-z8k.lo \ 2785e098073Schristos coffgen.lo \ 279377e23a2Schristos cofflink.lo \ 280377e23a2Schristos dwarf1.lo \ 2815e098073Schristos dwarf2.lo \ 282377e23a2Schristos ecoff.lo \ 283377e23a2Schristos ecofflink.lo \ 284377e23a2Schristos elf-attrs.lo \ 285377e23a2Schristos elf-eh-frame.lo \ 286377e23a2Schristos elf-ifunc.lo \ 287377e23a2Schristos elf-m10200.lo \ 288377e23a2Schristos elf-m10300.lo \ 28948596154Schristos elf-nacl.lo \ 290377e23a2Schristos elf-strtab.lo \ 291377e23a2Schristos elf-vxworks.lo \ 292377e23a2Schristos elf.lo \ 293377e23a2Schristos elf32-am33lin.lo \ 294377e23a2Schristos elf32-arc.lo \ 295377e23a2Schristos elf32-arm.lo \ 296377e23a2Schristos elf32-avr.lo \ 297377e23a2Schristos elf32-bfin.lo \ 298377e23a2Schristos elf32-cr16.lo \ 299377e23a2Schristos elf32-cris.lo \ 300377e23a2Schristos elf32-crx.lo \ 30107163879Schristos elf32-csky.lo \ 302377e23a2Schristos elf32-d10v.lo \ 303377e23a2Schristos elf32-d30v.lo \ 304377e23a2Schristos elf32-dlx.lo \ 30548596154Schristos elf32-epiphany.lo \ 306377e23a2Schristos elf32-fr30.lo \ 307377e23a2Schristos elf32-frv.lo \ 308ed6a76a9Schristos elf32-ft32.lo \ 309377e23a2Schristos elf32-gen.lo \ 310377e23a2Schristos elf32-h8300.lo \ 311377e23a2Schristos elf32-hppa.lo \ 312377e23a2Schristos elf32-i386.lo \ 31307163879Schristos elfxx-x86.lo \ 314377e23a2Schristos elf32-ip2k.lo \ 315377e23a2Schristos elf32-iq2000.lo \ 316377e23a2Schristos elf32-lm32.lo \ 317377e23a2Schristos elf32-m32c.lo \ 318377e23a2Schristos elf32-m32r.lo \ 319377e23a2Schristos elf32-m68hc11.lo \ 320377e23a2Schristos elf32-m68hc12.lo \ 321377e23a2Schristos elf32-m68hc1x.lo \ 322377e23a2Schristos elf32-m68k.lo \ 32307163879Schristos elf32-s12z.lo \ 324377e23a2Schristos elf32-mcore.lo \ 325377e23a2Schristos elf32-mep.lo \ 32648596154Schristos elf32-metag.lo \ 327377e23a2Schristos elf32-microblaze.lo \ 328377e23a2Schristos elf32-moxie.lo \ 329377e23a2Schristos elf32-msp430.lo \ 330377e23a2Schristos elf32-mt.lo \ 3317af5a897Schristos elf32-nds32.lo \ 33248596154Schristos elf32-nios2.lo \ 3335e098073Schristos elf32-or1k.lo \ 334377e23a2Schristos elf32-pj.lo \ 335377e23a2Schristos elf32-ppc.lo \ 3361c468f90Schristos elf32-pru.lo \ 33748596154Schristos elf32-rl78.lo \ 338377e23a2Schristos elf32-rx.lo \ 339377e23a2Schristos elf32-s390.lo \ 340377e23a2Schristos elf32-sh.lo \ 341377e23a2Schristos elf32-sparc.lo \ 342377e23a2Schristos elf32-spu.lo \ 343377e23a2Schristos elf32-tic6x.lo \ 34448596154Schristos elf32-tilegx.lo \ 34548596154Schristos elf32-tilepro.lo \ 346377e23a2Schristos elf32-v850.lo \ 347377e23a2Schristos elf32-vax.lo \ 3485e098073Schristos elf32-visium.lo \ 3491c468f90Schristos elf32-wasm32.lo \ 350377e23a2Schristos elf32-xc16x.lo \ 35148596154Schristos elf32-xgate.lo \ 352377e23a2Schristos elf32-xstormy16.lo \ 353377e23a2Schristos elf32-xtensa.lo \ 354*1424dfb3Schristos elf32-z80.lo \ 355377e23a2Schristos elf32.lo \ 356377e23a2Schristos elflink.lo \ 357377e23a2Schristos elfxx-sparc.lo \ 35848596154Schristos elfxx-tilegx.lo \ 359377e23a2Schristos i386aout.lo \ 360377e23a2Schristos i386bsd.lo \ 361377e23a2Schristos i386lynx.lo \ 362377e23a2Schristos i386msdos.lo \ 363377e23a2Schristos mach-o.lo \ 364377e23a2Schristos mach-o-i386.lo \ 365c03b94e9Schristos mach-o-arm.lo \ 366377e23a2Schristos ns32knetbsd.lo \ 367377e23a2Schristos pc532-mach.lo \ 368377e23a2Schristos pdp11.lo \ 369377e23a2Schristos pe-arm-wince.lo \ 370377e23a2Schristos pe-arm.lo \ 371377e23a2Schristos pe-i386.lo \ 372377e23a2Schristos pe-mcore.lo \ 373377e23a2Schristos pe-sh.lo \ 374377e23a2Schristos pef.lo \ 375377e23a2Schristos pei-arm-wince.lo \ 376377e23a2Schristos pei-arm.lo \ 377377e23a2Schristos pei-i386.lo \ 378377e23a2Schristos pei-mcore.lo \ 379377e23a2Schristos pei-sh.lo \ 380377e23a2Schristos peigen.lo \ 381377e23a2Schristos plugin.lo \ 382377e23a2Schristos ppcboot.lo \ 383377e23a2Schristos reloc16.lo \ 384377e23a2Schristos som.lo \ 385377e23a2Schristos vax1knetbsd.lo \ 386377e23a2Schristos vaxnetbsd.lo \ 387377e23a2Schristos vms-lib.lo \ 388377e23a2Schristos vms-misc.lo \ 3891c468f90Schristos wasm-module.lo \ 390377e23a2Schristos xcofflink.lo \ 391377e23a2Schristos xsym.lo \ 392377e23a2Schristos xtensa-isa.lo \ 393377e23a2Schristos xtensa-modules.lo 394377e23a2Schristos 395377e23a2SchristosBFD32_BACKENDS_CFILES = \ 396377e23a2Schristos aout-cris.c \ 397377e23a2Schristos aout-ns32k.c \ 398377e23a2Schristos aout32.c \ 399377e23a2Schristos cf-i386lynx.c \ 400377e23a2Schristos coff-go32.c \ 401377e23a2Schristos coff-i386.c \ 402377e23a2Schristos coff-mips.c \ 403377e23a2Schristos coff-rs6000.c \ 404377e23a2Schristos coff-sh.c \ 405377e23a2Schristos coff-stgo32.c \ 406377e23a2Schristos coff-tic30.c \ 407377e23a2Schristos coff-tic4x.c \ 408377e23a2Schristos coff-tic54x.c \ 409377e23a2Schristos coff-z80.c \ 410377e23a2Schristos coff-z8k.c \ 4115e098073Schristos coffgen.c \ 412377e23a2Schristos cofflink.c \ 413377e23a2Schristos dwarf1.c \ 4145e098073Schristos dwarf2.c \ 415377e23a2Schristos ecoff.c \ 416377e23a2Schristos ecofflink.c \ 417377e23a2Schristos elf-attrs.c \ 418377e23a2Schristos elf-eh-frame.c \ 419377e23a2Schristos elf-ifunc.c \ 420377e23a2Schristos elf-m10200.c \ 421377e23a2Schristos elf-m10300.c \ 42248596154Schristos elf-nacl.c \ 423377e23a2Schristos elf-strtab.c \ 424377e23a2Schristos elf-vxworks.c \ 425377e23a2Schristos elf.c \ 426377e23a2Schristos elf32-am33lin.c \ 427377e23a2Schristos elf32-arc.c \ 428377e23a2Schristos elf32-arm.c \ 429377e23a2Schristos elf32-avr.c \ 430377e23a2Schristos elf32-bfin.c \ 431377e23a2Schristos elf32-cr16.c \ 432377e23a2Schristos elf32-cris.c \ 433377e23a2Schristos elf32-crx.c \ 43407163879Schristos elf32-csky.c \ 435377e23a2Schristos elf32-d10v.c \ 436377e23a2Schristos elf32-d30v.c \ 437377e23a2Schristos elf32-dlx.c \ 43848596154Schristos elf32-epiphany.c \ 439377e23a2Schristos elf32-fr30.c \ 440377e23a2Schristos elf32-frv.c \ 441ed6a76a9Schristos elf32-ft32.c \ 442377e23a2Schristos elf32-gen.c \ 443377e23a2Schristos elf32-h8300.c \ 444377e23a2Schristos elf32-hppa.c \ 445377e23a2Schristos elf32-i386.c \ 44607163879Schristos elfxx-x86.c \ 447377e23a2Schristos elf32-ip2k.c \ 448377e23a2Schristos elf32-iq2000.c \ 449377e23a2Schristos elf32-lm32.c \ 450377e23a2Schristos elf32-m32c.c \ 451377e23a2Schristos elf32-m32r.c \ 452377e23a2Schristos elf32-m68hc11.c \ 453377e23a2Schristos elf32-m68hc12.c \ 454377e23a2Schristos elf32-m68hc1x.c \ 455377e23a2Schristos elf32-m68k.c \ 45607163879Schristos elf32-s12z.c \ 457377e23a2Schristos elf32-mcore.c \ 458377e23a2Schristos elf32-mep.c \ 45948596154Schristos elf32-metag.c \ 460377e23a2Schristos elf32-microblaze.c \ 461377e23a2Schristos elf32-moxie.c \ 462377e23a2Schristos elf32-msp430.c \ 463377e23a2Schristos elf32-mt.c \ 4647af5a897Schristos elf32-nds32.c \ 46548596154Schristos elf32-nios2.c \ 4665e098073Schristos elf32-or1k.c \ 467377e23a2Schristos elf32-pj.c \ 468377e23a2Schristos elf32-ppc.c \ 4691c468f90Schristos elf32-pru.c \ 47048596154Schristos elf32-rl78.c \ 471377e23a2Schristos elf32-rx.c \ 472377e23a2Schristos elf32-s390.c \ 473377e23a2Schristos elf32-sh.c \ 474377e23a2Schristos elf32-sparc.c \ 475377e23a2Schristos elf32-spu.c \ 476377e23a2Schristos elf32-tic6x.c \ 47748596154Schristos elf32-tilegx.c \ 47848596154Schristos elf32-tilepro.c \ 479377e23a2Schristos elf32-v850.c \ 480377e23a2Schristos elf32-vax.c \ 4815e098073Schristos elf32-visium.c \ 4821c468f90Schristos elf32-wasm32.c \ 483377e23a2Schristos elf32-xc16x.c \ 48448596154Schristos elf32-xgate.c \ 485377e23a2Schristos elf32-xstormy16.c \ 486377e23a2Schristos elf32-xtensa.c \ 487*1424dfb3Schristos elf32-z80.c \ 488377e23a2Schristos elf32.c \ 489377e23a2Schristos elflink.c \ 490377e23a2Schristos elfxx-sparc.c \ 49148596154Schristos elfxx-tilegx.c \ 492377e23a2Schristos i386aout.c \ 493377e23a2Schristos i386bsd.c \ 494377e23a2Schristos i386lynx.c \ 495377e23a2Schristos i386msdos.c \ 496377e23a2Schristos mach-o.c \ 497377e23a2Schristos mach-o-i386.c \ 498c03b94e9Schristos mach-o-arm.c \ 499377e23a2Schristos ns32knetbsd.c \ 500377e23a2Schristos pc532-mach.c \ 501377e23a2Schristos pdp11.c \ 502377e23a2Schristos pe-arm-wince.c \ 503377e23a2Schristos pe-arm.c \ 504377e23a2Schristos pe-i386.c \ 505377e23a2Schristos pe-mcore.c \ 506377e23a2Schristos pe-sh.c \ 507377e23a2Schristos pef.c \ 508377e23a2Schristos pei-arm-wince.c \ 509377e23a2Schristos pei-arm.c \ 510377e23a2Schristos pei-i386.c \ 511377e23a2Schristos pei-mcore.c \ 512377e23a2Schristos pei-sh.c \ 513377e23a2Schristos plugin.c \ 514377e23a2Schristos ppcboot.c \ 515377e23a2Schristos reloc16.c \ 516377e23a2Schristos som.c \ 517377e23a2Schristos vax1knetbsd.c \ 518377e23a2Schristos vaxnetbsd.c \ 519377e23a2Schristos vms-lib.c \ 520377e23a2Schristos vms-misc.c \ 5211c468f90Schristos wasm-module.c \ 522377e23a2Schristos xcofflink.c \ 523377e23a2Schristos xsym.c \ 524377e23a2Schristos xtensa-isa.c \ 525377e23a2Schristos xtensa-modules.c 526377e23a2Schristos 527377e23a2Schristos# The .o files needed by all of the 64 bit vectors that are configured into 528377e23a2Schristos# target_vector in targets.c if configured with --enable-targets=all 529377e23a2Schristos# and --enable-64-bit-bfd. 530377e23a2Schristos# elf32-ia64.c requires a 64-bit bfd_vma, and hence can not be put in 531377e23a2Schristos# BFD32_BACKENDS. 532377e23a2SchristosBFD64_BACKENDS = \ 5337af5a897Schristos elf32-aarch64.lo \ 53448596154Schristos elf64-aarch64.lo \ 5357af5a897Schristos elfxx-aarch64.lo \ 536377e23a2Schristos aix5ppc-core.lo \ 537377e23a2Schristos aout64.lo \ 538377e23a2Schristos coff-alpha.lo \ 539377e23a2Schristos coff-x86_64.lo \ 540377e23a2Schristos coff64-rs6000.lo \ 541377e23a2Schristos elf32-ia64.lo \ 5427af5a897Schristos elf32-mips.lo \ 543377e23a2Schristos elf32-score.lo \ 544377e23a2Schristos elf32-score7.lo \ 545377e23a2Schristos elf64-alpha.lo \ 546377e23a2Schristos elf64-gen.lo \ 547377e23a2Schristos elf64-hppa.lo \ 548377e23a2Schristos elf64-ia64.lo \ 54948596154Schristos elf64-ia64-vms.lo \ 5501c468f90Schristos elfxx-ia64.lo \ 5511c468f90Schristos elfn32-mips.lo \ 552377e23a2Schristos elf64-mips.lo \ 5531c468f90Schristos elfxx-mips.lo \ 554377e23a2Schristos elf64-mmix.lo \ 55507163879Schristos elf64-nfp.lo \ 556377e23a2Schristos elf64-ppc.lo \ 5571c468f90Schristos elf32-riscv.lo \ 5581c468f90Schristos elf64-riscv.lo \ 5591c468f90Schristos elfxx-riscv.lo \ 560377e23a2Schristos elf64-s390.lo \ 561377e23a2Schristos elf64-sparc.lo \ 56248596154Schristos elf64-tilegx.lo \ 563377e23a2Schristos elf64-x86-64.lo \ 56407163879Schristos elfxx-x86.lo \ 565*1424dfb3Schristos elf64-bpf.lo \ 566377e23a2Schristos elf64.lo \ 567c03b94e9Schristos mach-o-aarch64.lo \ 568377e23a2Schristos mach-o-x86-64.lo \ 569377e23a2Schristos mmo.lo \ 570377e23a2Schristos pe-x86_64.lo \ 571377e23a2Schristos pei-ia64.lo \ 572377e23a2Schristos pei-x86_64.lo \ 573377e23a2Schristos pepigen.lo \ 574377e23a2Schristos pex64igen.lo \ 575377e23a2Schristos vms-alpha.lo 576377e23a2Schristos 577377e23a2SchristosBFD64_BACKENDS_CFILES = \ 578377e23a2Schristos aix5ppc-core.c \ 579377e23a2Schristos aout64.c \ 580377e23a2Schristos coff-alpha.c \ 581377e23a2Schristos coff-x86_64.c \ 582377e23a2Schristos coff64-rs6000.c \ 5837af5a897Schristos elf32-mips.c \ 584377e23a2Schristos elf32-score.c \ 585377e23a2Schristos elf32-score7.c \ 586377e23a2Schristos elf64-alpha.c \ 587377e23a2Schristos elf64-gen.c \ 588377e23a2Schristos elf64-hppa.c \ 58948596154Schristos elf64-ia64-vms.c \ 590377e23a2Schristos elf64-mips.c \ 591377e23a2Schristos elf64-mmix.c \ 59207163879Schristos elf64-nfp.c \ 593377e23a2Schristos elf64-ppc.c \ 594377e23a2Schristos elf64-s390.c \ 595377e23a2Schristos elf64-sparc.c \ 59648596154Schristos elf64-tilegx.c \ 597377e23a2Schristos elf64-x86-64.c \ 59807163879Schristos elfxx-x86.c \ 599*1424dfb3Schristos elf64-bpf.c \ 600377e23a2Schristos elf64.c \ 601377e23a2Schristos elfn32-mips.c \ 6027af5a897Schristos elfxx-aarch64.c \ 60348596154Schristos elfxx-ia64.c \ 6047af5a897Schristos elfxx-mips.c \ 6051c468f90Schristos elfxx-riscv.c \ 606c03b94e9Schristos mach-o-aarch64.c \ 607377e23a2Schristos mach-o-x86-64.c \ 608377e23a2Schristos mmo.c \ 609377e23a2Schristos pe-x86_64.c \ 610377e23a2Schristos pei-ia64.c \ 611377e23a2Schristos pei-x86_64.c \ 612377e23a2Schristos vms-alpha.c 613377e23a2Schristos 614377e23a2SchristosOPTIONAL_BACKENDS = \ 615377e23a2Schristos aix386-core.lo \ 616377e23a2Schristos cisco-core.lo \ 617377e23a2Schristos hpux-core.lo \ 618377e23a2Schristos irix-core.lo \ 619377e23a2Schristos lynx-core.lo \ 620c03b94e9Schristos netbsd-core.lo \ 621377e23a2Schristos osf-core.lo \ 622377e23a2Schristos rs6000-core.lo \ 623377e23a2Schristos sco5-core.lo \ 624377e23a2Schristos trad-core.lo 625377e23a2Schristos 626377e23a2SchristosOPTIONAL_BACKENDS_CFILES = \ 627377e23a2Schristos aix386-core.c \ 628377e23a2Schristos cisco-core.c \ 629377e23a2Schristos hpux-core.c \ 630377e23a2Schristos irix-core.c \ 631377e23a2Schristos lynx-core.c \ 632c03b94e9Schristos netbsd-core.c \ 633377e23a2Schristos osf-core.c \ 634377e23a2Schristos rs6000-core.c \ 635377e23a2Schristos sco5-core.c \ 636377e23a2Schristos trad-core.c 637377e23a2Schristos 6385e098073Schristos# Reconfigure if config.bfd or configure.host changes. 6395e098073Schristos# development.sh is used to determine -Werror default. 640377e23a2SchristosCONFIG_STATUS_DEPENDENCIES = \ 641377e23a2Schristos $(srcdir)/config.bfd \ 6425e098073Schristos $(srcdir)/configure.host \ 6435e098073Schristos $(srcdir)/development.sh 644377e23a2Schristos 6455e098073Schristos# These are defined by configure: 646377e23a2SchristosWORDSIZE = @wordsize@ 647377e23a2SchristosALL_BACKENDS = @all_backends@ 648377e23a2SchristosBFD_BACKENDS = @bfd_backends@ 649377e23a2SchristosBFD_MACHINES = @bfd_machines@ 650377e23a2SchristosTDEFAULTS = @tdefaults@ 651377e23a2SchristosHAVEVECS = @havevecs@ 652377e23a2Schristos 65307163879SchristosAM_CPPFLAGS += @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) \ 654377e23a2Schristos $(HAVEVECS) @INCINTL@ 655377e23a2Schristos 656377e23a2Schristos# C source files that correspond to .o's. 657377e23a2SchristosSOURCE_CFILES = \ 658377e23a2Schristos $(BFD32_LIBS_CFILES) \ 659377e23a2Schristos $(BFD64_LIBS_CFILES) \ 660377e23a2Schristos $(ALL_MACHINES_CFILES) \ 661377e23a2Schristos $(BFD32_BACKENDS_CFILES) \ 662377e23a2Schristos $(BFD64_BACKENDS_CFILES) \ 663377e23a2Schristos $(OPTIONAL_BACKENDS_CFILES) 664377e23a2Schristos 665377e23a2SchristosBUILD_CFILES = \ 6667af5a897Schristos elf32-aarch64.c elf64-aarch64.c \ 6671c468f90Schristos elf32-ia64.c elf64-ia64.c \ 6681c468f90Schristos elf32-riscv.c elf64-riscv.c \ 6691c468f90Schristos peigen.c pepigen.c pex64igen.c 670377e23a2Schristos 671377e23a2SchristosCFILES = $(SOURCE_CFILES) $(BUILD_CFILES) 672377e23a2Schristos 673*1424dfb3Schristos## This is a list of all .h files in the source tree minus those that 674*1424dfb3Schristos## are processed to produce other .h files 675377e23a2SchristosSOURCE_HFILES = \ 676*1424dfb3Schristos aout-target.h aoutx.h arc-got.h arc-plt.h \ 677*1424dfb3Schristos coff-arm.h coff-bfd.h coffcode.h coffswap.h \ 678*1424dfb3Schristos cpu-aarch64.h cpu-arm.h cpu-h8300.h cpu-m68k.h \ 679*1424dfb3Schristos ecoff-bfd.h ecoffswap.h \ 680*1424dfb3Schristos elf32-arm.h elf32-avr.h elf32-bfin.h elf32-cr16.h elf32-csky.h \ 681*1424dfb3Schristos elf32-dlx.h elf32-hppa.h elf32-m68hc1x.h elf32-m68k.h \ 682*1424dfb3Schristos elf32-metag.h elf32-nds32.h elf32-nios2.h elf32-ppc.h \ 683*1424dfb3Schristos elf32-rx.h elf32-score.h elf32-sh-relocs.h elf32-spu.h \ 684*1424dfb3Schristos elf32-tic6x.h elf32-tilegx.h elf32-tilepro.h elf32-v850.h \ 685*1424dfb3Schristos elf64-hppa.h elf64-ppc.h elf64-tilegx.h \ 686*1424dfb3Schristos elf-bfd.h elfcode.h elfcore.h elf-hppa.h elf-linker-x86.h \ 687*1424dfb3Schristos elf-linux-core.h elf-nacl.h elf-s390.h elf-vxworks.h \ 688*1424dfb3Schristos elfxx-aarch64.h elfxx-ia64.h elfxx-mips.h elfxx-riscv.h \ 689*1424dfb3Schristos elfxx-sparc.h elfxx-tilegx.h elfxx-x86.h \ 69007163879Schristos genlink.h go32stub.h \ 69107163879Schristos libaout.h libbfd.h libcoff.h libecoff.h libhppa.h \ 692*1424dfb3Schristos libpei.h libxcoff.h \ 693*1424dfb3Schristos mach-o.h \ 69407163879Schristos netbsd.h ns32k.h \ 695*1424dfb3Schristos pef.h pef-traceback.h peicode.h plugin.h \ 696*1424dfb3Schristos som.h sysdep.h \ 697*1424dfb3Schristos version.h vms.h \ 698*1424dfb3Schristos wasm-module.h \ 699*1424dfb3Schristos xcofflink.h xsym.h 700377e23a2Schristos 701*1424dfb3Schristos## ... and .h files which are in the build tree, minus config.h and bfd.h 702377e23a2SchristosBUILD_HFILES = \ 703377e23a2Schristos bfdver.h elf32-target.h elf64-target.h targmatch.h bfd_stdint.h 704377e23a2Schristos 705377e23a2Schristos# Ensure they are built early: 706377e23a2SchristosBUILT_SOURCES = $(BUILD_HFILES) 707377e23a2Schristos 708377e23a2SchristosHFILES = $(SOURCE_HFILES) $(BUILD_HFILES) 709377e23a2Schristos 710377e23a2SchristosSRC_POTFILES = $(SOURCE_CFILES) $(SOURCE_HFILES) 711377e23a2SchristosBLD_POTFILES = $(BUILD_CFILES) $(BUILD_HFILES) 712377e23a2Schristos 713377e23a2Schristospo/SRC-POTFILES.in: @MAINT@ Makefile $(SRC_POTFILES) 714377e23a2Schristos for file in $(SRC_POTFILES); do echo $$file; done \ 715377e23a2Schristos | LC_ALL=C sort > tmp.src \ 716377e23a2Schristos && mv tmp.src $(srcdir)/po/SRC-POTFILES.in 717377e23a2Schristos 718377e23a2Schristospo/BLD-POTFILES.in: @MAINT@ Makefile $(BLD_POTFILES) 719377e23a2Schristos for file in $(BLD_POTFILES); do echo $$file; done \ 720377e23a2Schristos | LC_ALL=C sort > tmp.bld \ 721377e23a2Schristos && mv tmp.bld $(srcdir)/po/BLD-POTFILES.in 722377e23a2Schristos 723377e23a2Schristosall diststuff: info 724377e23a2Schristos 725377e23a2Schristos# Various kinds of .o files to put in libbfd.a: 726377e23a2Schristos# BFD_BACKENDS Routines the configured targets need. 727377e23a2Schristos# BFD_MACHINES Architecture-specific routines the configured targets need. 728377e23a2Schristos# COREFILE Core file routines for a native configuration 729377e23a2Schristos# bfd64_libs Routines for 64bit support 730377e23a2SchristosOFILES = $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@ @bfd64_libs@ 731377e23a2Schristos 732377e23a2Schristosstamp-ofiles: Makefile 733377e23a2Schristos rm -f tofiles 734377e23a2Schristos f=""; \ 735377e23a2Schristos for i in $(OFILES) ; do \ 736377e23a2Schristos case " $$f " in \ 737377e23a2Schristos *" $$i "*) ;; \ 738377e23a2Schristos *) f="$$f $$i" ;; \ 739377e23a2Schristos esac ; \ 740377e23a2Schristos done ; \ 741377e23a2Schristos echo $$f > tofiles 742377e23a2Schristos $(SHELL) $(srcdir)/../move-if-change tofiles ofiles 743377e23a2Schristos touch stamp-ofiles 744377e23a2Schristos 745377e23a2Schristosofiles: stamp-ofiles ; @true 746377e23a2Schristos 747377e23a2Schristos# Since BFD64_LIBS is optional and we can't have substitution in 748377e23a2Schristos# libbfd_la_SOURCES, we put BFD64_LIBS in OFILES instead. 749377e23a2Schristos# However, list all sources in EXTRA_libbfd_la_SOURCES so the 750377e23a2Schristos# dependency tracking fragments are picked up in the Makefile. 751377e23a2Schristoslibbfd_la_SOURCES = $(BFD32_LIBS_CFILES) 752377e23a2SchristosEXTRA_libbfd_la_SOURCES = $(CFILES) 753377e23a2Schristoslibbfd_la_DEPENDENCIES = $(OFILES) ofiles 754ed6a76a9Schristoslibbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ $(LIBDL) $(ZLIB) 755377e23a2Schristoslibbfd_la_LDFLAGS += -release `cat libtool-soversion` @SHARED_LDFLAGS@ 756377e23a2Schristos 757377e23a2Schristos# libtool will build .libs/libbfd.a. We create libbfd.a in the build 758377e23a2Schristos# directory so that we don't have to convert all the programs that use 759377e23a2Schristos# libbfd.a simultaneously. This is a hack which should be removed if 760377e23a2Schristos# everything else starts using libtool. FIXME. 761377e23a2Schristos 762377e23a2Schristosnoinst_LIBRARIES = libbfd.a 763377e23a2Schristoslibbfd_a_SOURCES = 764377e23a2Schristos 765377e23a2Schristosstamp-lib: libbfd.la 766c03b94e9Schristos libtooldir=`$(LIBTOOL) --config | $(SED) -n -e 's/^objdir=//p'`; \ 767377e23a2Schristos if [ -f $$libtooldir/libbfd.a ]; then \ 768377e23a2Schristos cp $$libtooldir/libbfd.a libbfd.tmp; \ 769377e23a2Schristos $(RANLIB) libbfd.tmp; \ 770377e23a2Schristos $(SHELL) $(srcdir)/../move-if-change libbfd.tmp libbfd.a; \ 771377e23a2Schristos else true; fi 772377e23a2Schristos touch stamp-lib 773377e23a2Schristos 774377e23a2Schristoslibbfd.a: stamp-lib ; @true 775377e23a2Schristos 776377e23a2Schristos# This file holds an array associating configuration triplets and 777377e23a2Schristos# vector names. It is built from config.bfd. It is not compiled by 778377e23a2Schristos# itself, but is included by targets.c. 779377e23a2Schristostargmatch.h: config.bfd targmatch.sed 780377e23a2Schristos rm -f targmatch.h 781c03b94e9Schristos $(SED) -f $(srcdir)/targmatch.sed < $(srcdir)/config.bfd > targmatch.new 782377e23a2Schristos mv -f targmatch.new targmatch.h 783377e23a2Schristos 784377e23a2Schristos# When compiling archures.c and targets.c, supply the default target 785377e23a2Schristos# info from configure. 786377e23a2Schristos 787377e23a2Schristostargets.lo: targets.c Makefile 788377e23a2Schristosif am__fastdepCC 789377e23a2Schristos $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(TDEFAULTS) $(srcdir)/targets.c 790377e23a2Schristos mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo 791377e23a2Schristoselse 792377e23a2Schristosif AMDEP 793377e23a2Schristos source='targets.c' object='$@' libtool=yes @AMDEPBACKSLASH@ 794377e23a2Schristos DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 795377e23a2Schristosendif 796377e23a2Schristos $(LTCOMPILE) -c -o $@ $(TDEFAULTS) $(srcdir)/targets.c 797377e23a2Schristosendif 798377e23a2Schristos 799377e23a2Schristosarchures.lo: archures.c Makefile 800377e23a2Schristosif am__fastdepCC 801377e23a2Schristos $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(TDEFAULTS) $(srcdir)/archures.c 802377e23a2Schristos mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo 803377e23a2Schristoselse 804377e23a2Schristosif AMDEP 805377e23a2Schristos source='archures.c' object='$@' libtool=yes @AMDEPBACKSLASH@ 806377e23a2Schristos DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 807377e23a2Schristosendif 808377e23a2Schristos $(LTCOMPILE) -c -o $@ $(TDEFAULTS) $(srcdir)/archures.c 809377e23a2Schristosendif 810377e23a2Schristos 811377e23a2Schristosdwarf2.lo: dwarf2.c Makefile 812377e23a2Schristosif am__fastdepCC 813377e23a2Schristos $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ -DDEBUGDIR=\"$(DEBUGDIR)\" $(srcdir)/dwarf2.c 814377e23a2Schristos mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo 815377e23a2Schristoselse 816377e23a2Schristosif AMDEP 817377e23a2Schristos source='dwarf2.c' object='$@' libtool=yes @AMDEPBACKSLASH@ 818377e23a2Schristos DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 819377e23a2Schristosendif 820377e23a2Schristos $(LTCOMPILE) -c -o $@ -DDEBUGDIR=\"$(DEBUGDIR)\" $(srcdir)/dwarf2.c 821377e23a2Schristosendif 822377e23a2Schristos 823377e23a2Schristoself32-target.h : elfxx-target.h 824*1424dfb3Schristos $(SED) -e s/NN/32/g < $< > $@ 825377e23a2Schristos 826377e23a2Schristoself64-target.h : elfxx-target.h 827*1424dfb3Schristos $(SED) -e s/NN/64/g < $< > $@ 828377e23a2Schristos 8297af5a897Schristoself32-aarch64.c : elfnn-aarch64.c 830*1424dfb3Schristos echo "#line 1 \"elfnn-aarch64.c\"" > $@ 831*1424dfb3Schristos $(SED) -e s/NN/32/g < $< >> $@ 8327af5a897Schristos 8337af5a897Schristoself64-aarch64.c : elfnn-aarch64.c 834*1424dfb3Schristos echo "#line 1 \"elfnn-aarch64.c\"" > $@ 835*1424dfb3Schristos $(SED) -e s/NN/64/g < $< >> $@ 8367af5a897Schristos 83748596154Schristoself32-ia64.c : elfnn-ia64.c 838*1424dfb3Schristos echo "#line 1 \"elfnn-ia64.c\"" > $@ 839*1424dfb3Schristos $(SED) -e s/NN/32/g < $< >> $@ 840377e23a2Schristos 84148596154Schristoself64-ia64.c : elfnn-ia64.c 842*1424dfb3Schristos echo "#line 1 \"elfnn-ia64.c\"" > $@ 843*1424dfb3Schristos $(SED) -e s/NN/64/g < $< >> $@ 844377e23a2Schristos 8451c468f90Schristoself32-riscv.c : elfnn-riscv.c 846*1424dfb3Schristos echo "#line 1 \"elfnn-riscv.c\"" > $@ 847*1424dfb3Schristos $(SED) -e s/NN/32/g < $< >> $@ 8481c468f90Schristos 8491c468f90Schristoself64-riscv.c : elfnn-riscv.c 850*1424dfb3Schristos echo "#line 1 \"elfnn-riscv.c\"" > $@ 851*1424dfb3Schristos $(SED) -e s/NN/64/g < $< >> $@ 8521c468f90Schristos 853377e23a2Schristospeigen.c : peXXigen.c 854*1424dfb3Schristos echo "#line 1 \"peXXigen.c\"" > $@ 855*1424dfb3Schristos $(SED) -e s/XX/pe/g < $< >> $@ 856377e23a2Schristos 857377e23a2Schristospepigen.c : peXXigen.c 858*1424dfb3Schristos echo "#line 1 \"peXXigen.c\"" > $@ 859*1424dfb3Schristos $(SED) -e s/XX/pep/g < $< >> $@ 860377e23a2Schristos 861377e23a2Schristospex64igen.c: peXXigen.c 862*1424dfb3Schristos echo "#line 1 \"peXXigen.c\"" > $@ 863*1424dfb3Schristos $(SED) -e s/XX/pex64/g < $< >> $@ 864377e23a2Schristos 86507163879SchristosBFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/diagnostics.h 86607163879SchristosLOCAL_H_DEPS= libbfd.h sysdep.h config.h bfd_stdint.h 867377e23a2Schristos$(BFD32_LIBS) \ 868377e23a2Schristos $(BFD64_LIBS) \ 869377e23a2Schristos $(ALL_MACHINES) \ 870377e23a2Schristos $(BFD32_BACKENDS) \ 871377e23a2Schristos $(BFD64_BACKENDS) \ 872377e23a2Schristos $(OPTIONAL_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS) 873377e23a2Schristos 874377e23a2Schristoshost-aout.lo: Makefile 875377e23a2Schristos 876377e23a2Schristos# The following program can be used to generate a simple config file 877377e23a2Schristos# which can be folded into an h-XXX file for a new host, with some editing. 878377e23a2Schristosaout-params.h: gen-aout 879377e23a2Schristos ./gen-aout host > aout-params.h 880377e23a2Schristosgen-aout: $(srcdir)/gen-aout.c Makefile 881377e23a2Schristos $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c 882377e23a2Schristos 883377e23a2Schristos$(BFD_H): stmp-bfd-h ; @true 884377e23a2Schristos 885377e23a2Schristosstmp-bfd-h: bfd-in3.h 886377e23a2Schristos rm -f bfd-tmp.h 887377e23a2Schristos cp bfd-in3.h bfd-tmp.h 888377e23a2Schristos $(SHELL) $(srcdir)/../move-if-change bfd-tmp.h $(BFD_H) 889377e23a2Schristos rm -f bfd-tmp.h 890377e23a2Schristos touch stmp-bfd-h 891377e23a2Schristos 8921c468f90SchristosBFD_H_FILES = bfd-in.h init.c opncls.c libbfd.c \ 8931c468f90Schristos bfdio.c bfdwin.c section.c archures.c reloc.c \ 8941c468f90Schristos syms.c bfd.c archive.c corefile.c targets.c format.c \ 8951c468f90Schristos linker.c simple.c compress.c 896377e23a2SchristosBFD64_H_FILES = archive64.c 8971c468f90SchristosLIBBFD_H_FILES = libbfd-in.h libbfd.c bfdio.c bfdwin.c \ 8981c468f90Schristos cache.c reloc.c archures.c linker.c 899377e23a2SchristosLIBCOFF_H_FILES = libcoff-in.h coffcode.h 900377e23a2Schristos 901377e23a2Schristos# Could really use a "copy-if-change"... 902377e23a2Schristosheaders: 903377e23a2Schristos (cd $(bfddocdir); $(MAKE) protos $(FLAGS_TO_PASS)) 904377e23a2Schristos cp $(bfddocdir)/bfd.h bfd-in2.h-new 905377e23a2Schristos $(SHELL) $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h 906377e23a2Schristos cp $(bfddocdir)/libbfd.h libbfd.h-new 907377e23a2Schristos $(SHELL) $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h 908377e23a2Schristos cp $(bfddocdir)/libcoff.h libcoff.h-new 909377e23a2Schristos $(SHELL) $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h 910377e23a2Schristos 911377e23a2Schristos# We only rebuild the header files automatically if we have been 912377e23a2Schristos# configured with --enable-maintainer-mode. 913377e23a2Schristos 914377e23a2Schristos$(srcdir)/bfd-in2.h: @MAINT@ stmp-bin2-h ; @true 915377e23a2Schristosstmp-bin2-h: $(BFD_H_FILES) $(BFD64_H_FILES) 916377e23a2Schristos (cd $(bfddocdir); $(MAKE) $(FLAGS_TO_PASS) bfd.h) 917377e23a2Schristos cp $(bfddocdir)/bfd.h bfd-in2.h-new 918377e23a2Schristos $(SHELL) $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h 919377e23a2Schristos touch stmp-bin2-h 920377e23a2Schristos 921377e23a2Schristos$(srcdir)/libbfd.h: @MAINT@ stmp-lbfd-h ; @true 922377e23a2Schristosstmp-lbfd-h: $(LIBBFD_H_FILES) 923377e23a2Schristos (cd $(bfddocdir); $(MAKE) $(FLAGS_TO_PASS) libbfd.h) 924377e23a2Schristos cp $(bfddocdir)/libbfd.h libbfd.h-new 925377e23a2Schristos $(SHELL) $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h 926377e23a2Schristos touch stmp-lbfd-h 927377e23a2Schristos 928377e23a2Schristos$(srcdir)/libcoff.h: @MAINT@ stmp-lcoff-h ; @true 929377e23a2Schristosstmp-lcoff-h: $(LIBCOFF_H_FILES) 930377e23a2Schristos (cd $(bfddocdir); $(MAKE) $(FLAGS_TO_PASS) libcoff.h) 931377e23a2Schristos cp $(bfddocdir)/libcoff.h libcoff.h-new 932377e23a2Schristos $(SHELL) $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h 933377e23a2Schristos touch stmp-lcoff-h 934377e23a2Schristos 935377e23a2SchristosMOSTLYCLEANFILES = ofiles stamp-ofiles 936377e23a2Schristos 937377e23a2SchristosCLEANFILES = bfd.h dep.sed stmp-bfd-h DEP DEPA DEP1 DEP2 libbfd.a stamp-lib \ 938377e23a2Schristos stmp-bin2-h stmp-lbfd-h stmp-lcoff-h 939377e23a2Schristos 940377e23a2SchristosDISTCLEANFILES = $(BUILD_CFILES) $(BUILD_HFILES) libtool-soversion 941377e23a2Schristos 9425e098073Schristosbfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in 943377e23a2Schristos @echo "creating $@" 944c03b94e9Schristos @bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\ 945377e23a2Schristos bfd_version_string="\"$(VERSION)\"" ;\ 946377e23a2Schristos bfd_soversion="$(VERSION)" ;\ 947377e23a2Schristos bfd_version_package="\"$(PKGVERSION)\"" ;\ 948377e23a2Schristos report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\ 9495e098073Schristos . $(srcdir)/development.sh ;\ 9505e098073Schristos if test "$$development" = true ; then \ 951c03b94e9Schristos bfd_version_date=`$(SED) -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\ 952377e23a2Schristos bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\ 953377e23a2Schristos bfd_soversion="$(VERSION).$${bfd_version_date}" ;\ 954377e23a2Schristos fi ;\ 955c03b94e9Schristos $(SED) -e "s,@bfd_version@,$$bfd_version," \ 956377e23a2Schristos -e "s,@bfd_version_string@,$$bfd_version_string," \ 957377e23a2Schristos -e "s,@bfd_version_package@,$$bfd_version_package," \ 958377e23a2Schristos -e "s,@report_bugs_to@,$$report_bugs_to," \ 959377e23a2Schristos < $(srcdir)/version.h > $@; \ 960377e23a2Schristos echo "$${bfd_soversion}" > libtool-soversion 961377e23a2Schristos 962377e23a2Schristos# Disable -Werror, if it has been enabled, since coffswap.h won't 963377e23a2Schristos# compile with gcc 4.5 and above. 964377e23a2Schristoscoff-tic4x.lo: coff-tic4x.c 965377e23a2Schristos@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR) 966377e23a2Schristos@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo 967377e23a2Schristos@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 968377e23a2Schristos@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 969377e23a2Schristos@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< $(NO_WERROR) 970377e23a2Schristos 971377e23a2Schristoscoff-tic54x.lo: coff-tic54x.c 972377e23a2Schristos@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR) 973377e23a2Schristos@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo 974377e23a2Schristos@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 975377e23a2Schristos@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 976377e23a2Schristos@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< $(NO_WERROR) 977