Makefile.am 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013
  1. ## Process this file with automake to generate Makefile.in
  2. #
  3. # Copyright (C) 2012-2022 Free Software Foundation, Inc.
  4. #
  5. # This file is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; see the file COPYING3. If not see
  17. # <http://www.gnu.org/licenses/>.
  18. #
  19. AUTOMAKE_OPTIONS = no-dist foreign info-in-builddir no-texinfo.tex
  20. ACLOCAL_AMFLAGS = -I . -I .. -I ../config
  21. MOSTLYCLEANFILES =
  22. CLEANFILES =
  23. DISTCLEANFILES =
  24. MAINTAINERCLEANFILES =
  25. INCDIR = $(srcdir)/../include
  26. CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
  27. SUBDIRS = po
  28. bfddocdir = doc
  29. libbfd_la_LDFLAGS =
  30. if INSTALL_LIBBFD
  31. bfdlibdir = @bfdlibdir@
  32. bfdincludedir = @bfdincludedir@
  33. bfdlib_LTLIBRARIES = libbfd.la
  34. bfdinclude_HEADERS = $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
  35. $(INCDIR)/diagnostics.h $(INCDIR)/bfdlink.h
  36. else !INSTALL_LIBBFD
  37. # Empty these so that the respective installation directories will not be created.
  38. bfdlibdir =
  39. bfdincludedir =
  40. bfdinclude_HEADERS =
  41. rpath_bfdlibdir = @bfdlibdir@
  42. noinst_LTLIBRARIES = libbfd.la
  43. libbfd_la_LDFLAGS += -rpath $(rpath_bfdlibdir)
  44. endif
  45. # This is where we get zlib from. zlibdir is -L../zlib and zlibinc is
  46. # -I../zlib, unless we were configured with --with-system-zlib, in which
  47. # case both are empty.
  48. ZLIB = @zlibdir@ -lz
  49. ZLIBINC = @zlibinc@
  50. WARN_CFLAGS = @WARN_CFLAGS@
  51. NO_WERROR = @NO_WERROR@
  52. AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
  53. AM_CPPFLAGS = -DBINDIR='"$(bindir)"' -DLIBDIR='"$(libdir)"' @LARGEFILE_CPPFLAGS@
  54. if PLUGINS
  55. bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
  56. LIBDL = @lt_cv_dlopen_libs@
  57. endif
  58. # bfd.h goes here, for now
  59. BFD_H = bfd.h
  60. # Jim Kingdon notes:
  61. # Writing S-records should be included in all (or at least most)
  62. # *-*-coff, *-*-aout, etc., configurations, because people will want to
  63. # be able to use objcopy to create S-records. (S-records are not useful
  64. # for the debugger, so if you are downloading things as S-records you
  65. # need two copies of the executable, one to download and one for the
  66. # debugger).
  67. BFD32_LIBS = \
  68. archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo \
  69. coff-bfd.lo compress.lo corefile.lo elf-properties.lo format.lo \
  70. hash.lo init.lo libbfd.lo linker.lo merge.lo opncls.lo reloc.lo \
  71. section.lo simple.lo stab-syms.lo stabs.lo syms.lo targets.lo \
  72. binary.lo ihex.lo srec.lo tekhex.lo verilog.lo
  73. BFD64_LIBS = archive64.lo
  74. BFD32_LIBS_CFILES = \
  75. archive.c archures.c bfd.c bfdio.c bfdwin.c cache.c coff-bfd.c \
  76. compress.c corefile.c elf-properties.c format.c hash.c \
  77. init.c libbfd.c linker.c merge.c opncls.c reloc.c \
  78. section.c simple.c stab-syms.c stabs.c syms.c targets.c \
  79. binary.c ihex.c srec.c tekhex.c verilog.c
  80. BFD64_LIBS_CFILES = archive64.c
  81. # This list is alphabetized to make it easier to keep in sync
  82. # with the decls and initializer in archures.c.
  83. ALL_MACHINES = \
  84. cpu-aarch64.lo \
  85. cpu-alpha.lo \
  86. cpu-amdgcn.lo \
  87. cpu-arc.lo \
  88. cpu-arm.lo \
  89. cpu-avr.lo \
  90. cpu-bfin.lo \
  91. cpu-bpf.lo \
  92. cpu-cr16.lo \
  93. cpu-cris.lo \
  94. cpu-crx.lo \
  95. cpu-csky.lo \
  96. cpu-d10v.lo \
  97. cpu-d30v.lo \
  98. cpu-dlx.lo \
  99. cpu-epiphany.lo \
  100. cpu-fr30.lo \
  101. cpu-frv.lo \
  102. cpu-ft32.lo \
  103. cpu-h8300.lo \
  104. cpu-hppa.lo \
  105. cpu-i386.lo \
  106. cpu-iamcu.lo \
  107. cpu-ia64.lo \
  108. cpu-ip2k.lo \
  109. cpu-iq2000.lo \
  110. cpu-lm32.lo \
  111. cpu-loongarch.lo \
  112. cpu-m10200.lo \
  113. cpu-m10300.lo \
  114. cpu-m32c.lo \
  115. cpu-m32r.lo \
  116. cpu-m68hc11.lo \
  117. cpu-m68hc12.lo \
  118. cpu-m9s12x.lo \
  119. cpu-s12z.lo \
  120. cpu-m9s12xg.lo \
  121. cpu-m68k.lo \
  122. cpu-mcore.lo \
  123. cpu-mep.lo \
  124. cpu-metag.lo \
  125. cpu-microblaze.lo \
  126. cpu-mips.lo \
  127. cpu-mmix.lo \
  128. cpu-moxie.lo \
  129. cpu-msp430.lo \
  130. cpu-mt.lo \
  131. cpu-nds32.lo \
  132. cpu-nfp.lo \
  133. cpu-nios2.lo \
  134. cpu-ns32k.lo \
  135. cpu-or1k.lo \
  136. cpu-pdp11.lo \
  137. cpu-pj.lo \
  138. cpu-powerpc.lo \
  139. cpu-pru.lo \
  140. cpu-rs6000.lo \
  141. cpu-riscv.lo \
  142. cpu-rl78.lo \
  143. cpu-rx.lo \
  144. cpu-s390.lo \
  145. cpu-score.lo \
  146. cpu-sh.lo \
  147. cpu-sparc.lo \
  148. cpu-spu.lo \
  149. cpu-tic30.lo \
  150. cpu-tic4x.lo \
  151. cpu-tic54x.lo \
  152. cpu-tic6x.lo \
  153. cpu-tilegx.lo \
  154. cpu-tilepro.lo \
  155. cpu-v850.lo \
  156. cpu-v850_rh850.lo \
  157. cpu-vax.lo \
  158. cpu-visium.lo \
  159. cpu-wasm32.lo \
  160. cpu-xc16x.lo \
  161. cpu-xgate.lo \
  162. cpu-xstormy16.lo \
  163. cpu-xtensa.lo \
  164. cpu-z80.lo \
  165. cpu-z8k.lo
  166. ALL_MACHINES_CFILES = \
  167. cpu-aarch64.c \
  168. cpu-alpha.c \
  169. cpu-amdgcn.c \
  170. cpu-arc.c \
  171. cpu-arm.c \
  172. cpu-avr.c \
  173. cpu-bfin.c \
  174. cpu-bpf.c \
  175. cpu-cr16.c \
  176. cpu-cris.c \
  177. cpu-crx.c \
  178. cpu-csky.c \
  179. cpu-d10v.c \
  180. cpu-d30v.c \
  181. cpu-dlx.c \
  182. cpu-epiphany.c \
  183. cpu-fr30.c \
  184. cpu-frv.c \
  185. cpu-ft32.c \
  186. cpu-h8300.c \
  187. cpu-hppa.c \
  188. cpu-i386.c \
  189. cpu-iamcu.c \
  190. cpu-ia64.c \
  191. cpu-ip2k.c \
  192. cpu-iq2000.c \
  193. cpu-lm32.c \
  194. cpu-loongarch.c \
  195. cpu-m10200.c \
  196. cpu-m10300.c \
  197. cpu-m32c.c \
  198. cpu-m32r.c \
  199. cpu-m68hc11.c \
  200. cpu-m68hc12.c \
  201. cpu-m9s12x.c \
  202. cpu-s12z.c \
  203. cpu-m9s12xg.c \
  204. cpu-m68k.c \
  205. cpu-mcore.c \
  206. cpu-mep.c \
  207. cpu-metag.c \
  208. cpu-microblaze.c \
  209. cpu-mips.c \
  210. cpu-mmix.c \
  211. cpu-moxie.c \
  212. cpu-msp430.c \
  213. cpu-mt.c \
  214. cpu-nds32.c \
  215. cpu-nfp.c \
  216. cpu-ns32k.c \
  217. cpu-nios2.c \
  218. cpu-or1k.c \
  219. cpu-pdp11.c \
  220. cpu-pj.c \
  221. cpu-powerpc.c \
  222. cpu-pru.c \
  223. cpu-rs6000.c \
  224. cpu-riscv.c \
  225. cpu-rl78.c \
  226. cpu-rx.c \
  227. cpu-s390.c \
  228. cpu-score.c \
  229. cpu-sh.c \
  230. cpu-sparc.c \
  231. cpu-spu.c \
  232. cpu-tic30.c \
  233. cpu-tic4x.c \
  234. cpu-tic54x.c \
  235. cpu-tic6x.c \
  236. cpu-tilegx.c \
  237. cpu-tilepro.c \
  238. cpu-v850.c \
  239. cpu-v850_rh850.c \
  240. cpu-vax.c \
  241. cpu-visium.c \
  242. cpu-wasm32.c \
  243. cpu-xc16x.c \
  244. cpu-xgate.c \
  245. cpu-xstormy16.c \
  246. cpu-xtensa.c \
  247. cpu-z80.c \
  248. cpu-z8k.c
  249. # The .o files needed by all of the 32 bit vectors that are configured into
  250. # target_vector in targets.c if configured with --enable-targets=all.
  251. BFD32_BACKENDS = \
  252. aout-cris.lo \
  253. aout-ns32k.lo \
  254. aout32.lo \
  255. cf-i386lynx.lo \
  256. coff-go32.lo \
  257. coff-i386.lo \
  258. coff-mips.lo \
  259. coff-rs6000.lo \
  260. coff-sh.lo \
  261. coff-stgo32.lo \
  262. coff-tic30.lo \
  263. coff-tic4x.lo \
  264. coff-tic54x.lo \
  265. coff-z80.lo \
  266. coff-z8k.lo \
  267. coffgen.lo \
  268. cofflink.lo \
  269. dwarf1.lo \
  270. dwarf2.lo \
  271. ecoff.lo \
  272. ecofflink.lo \
  273. elf-attrs.lo \
  274. elf-eh-frame.lo \
  275. elf-ifunc.lo \
  276. elf-m10200.lo \
  277. elf-m10300.lo \
  278. elf-nacl.lo \
  279. elf-strtab.lo \
  280. elf-vxworks.lo \
  281. elf.lo \
  282. elf32-am33lin.lo \
  283. elf32-arc.lo \
  284. elf32-arm.lo \
  285. elf32-avr.lo \
  286. elf32-bfin.lo \
  287. elf32-cr16.lo \
  288. elf32-cris.lo \
  289. elf32-crx.lo \
  290. elf32-csky.lo \
  291. elf32-d10v.lo \
  292. elf32-d30v.lo \
  293. elf32-dlx.lo \
  294. elf32-epiphany.lo \
  295. elf32-fr30.lo \
  296. elf32-frv.lo \
  297. elf32-ft32.lo \
  298. elf32-gen.lo \
  299. elf32-h8300.lo \
  300. elf32-hppa.lo \
  301. elf32-i386.lo \
  302. elfxx-x86.lo \
  303. elf32-ip2k.lo \
  304. elf32-iq2000.lo \
  305. elf32-lm32.lo \
  306. elf32-m32c.lo \
  307. elf32-m32r.lo \
  308. elf32-m68hc11.lo \
  309. elf32-m68hc12.lo \
  310. elf32-m68hc1x.lo \
  311. elf32-m68k.lo \
  312. elf32-s12z.lo \
  313. elf32-mcore.lo \
  314. elf32-mep.lo \
  315. elf32-metag.lo \
  316. elf32-microblaze.lo \
  317. elf32-moxie.lo \
  318. elf32-msp430.lo \
  319. elf32-mt.lo \
  320. elf32-nds32.lo \
  321. elf32-nios2.lo \
  322. elf32-or1k.lo \
  323. elf32-pj.lo \
  324. elf32-ppc.lo \
  325. elf32-pru.lo \
  326. elf32-rl78.lo \
  327. elf32-rx.lo \
  328. elf32-s390.lo \
  329. elf32-sh.lo \
  330. elf32-sparc.lo \
  331. elf32-spu.lo \
  332. elf32-tic6x.lo \
  333. elf32-tilegx.lo \
  334. elf32-tilepro.lo \
  335. elf32-v850.lo \
  336. elf32-vax.lo \
  337. elf32-visium.lo \
  338. elf32-wasm32.lo \
  339. elf32-xc16x.lo \
  340. elf32-xgate.lo \
  341. elf32-xstormy16.lo \
  342. elf32-xtensa.lo \
  343. elf32-z80.lo \
  344. elf32.lo \
  345. elflink.lo \
  346. elfxx-sparc.lo \
  347. elfxx-tilegx.lo \
  348. i386aout.lo \
  349. i386bsd.lo \
  350. i386lynx.lo \
  351. i386msdos.lo \
  352. mach-o.lo \
  353. mach-o-i386.lo \
  354. mach-o-arm.lo \
  355. ns32knetbsd.lo \
  356. pc532-mach.lo \
  357. pdp11.lo \
  358. pe-arm-wince.lo \
  359. pe-arm.lo \
  360. pe-i386.lo \
  361. pe-mcore.lo \
  362. pe-sh.lo \
  363. pef.lo \
  364. pei-arm-wince.lo \
  365. pei-arm.lo \
  366. pei-i386.lo \
  367. pei-mcore.lo \
  368. pei-sh.lo \
  369. peigen.lo \
  370. plugin.lo \
  371. ppcboot.lo \
  372. reloc16.lo \
  373. som.lo \
  374. vax1knetbsd.lo \
  375. vaxnetbsd.lo \
  376. vms-lib.lo \
  377. vms-misc.lo \
  378. wasm-module.lo \
  379. xcofflink.lo \
  380. xsym.lo \
  381. xtensa-isa.lo \
  382. xtensa-modules.lo
  383. BFD32_BACKENDS_CFILES = \
  384. aout-cris.c \
  385. aout-ns32k.c \
  386. aout32.c \
  387. cf-i386lynx.c \
  388. coff-go32.c \
  389. coff-i386.c \
  390. coff-mips.c \
  391. coff-rs6000.c \
  392. coff-sh.c \
  393. coff-stgo32.c \
  394. coff-tic30.c \
  395. coff-tic4x.c \
  396. coff-tic54x.c \
  397. coff-z80.c \
  398. coff-z8k.c \
  399. coffgen.c \
  400. cofflink.c \
  401. dwarf1.c \
  402. dwarf2.c \
  403. ecoff.c \
  404. ecofflink.c \
  405. elf-attrs.c \
  406. elf-eh-frame.c \
  407. elf-ifunc.c \
  408. elf-m10200.c \
  409. elf-m10300.c \
  410. elf-nacl.c \
  411. elf-strtab.c \
  412. elf-vxworks.c \
  413. elf.c \
  414. elf32-am33lin.c \
  415. elf32-arc.c \
  416. elf32-arm.c \
  417. elf32-avr.c \
  418. elf32-bfin.c \
  419. elf32-cr16.c \
  420. elf32-cris.c \
  421. elf32-crx.c \
  422. elf32-csky.c \
  423. elf32-d10v.c \
  424. elf32-d30v.c \
  425. elf32-dlx.c \
  426. elf32-epiphany.c \
  427. elf32-fr30.c \
  428. elf32-frv.c \
  429. elf32-ft32.c \
  430. elf32-gen.c \
  431. elf32-h8300.c \
  432. elf32-hppa.c \
  433. elf32-i386.c \
  434. elfxx-x86.c \
  435. elf32-ip2k.c \
  436. elf32-iq2000.c \
  437. elf32-lm32.c \
  438. elf32-m32c.c \
  439. elf32-m32r.c \
  440. elf32-m68hc11.c \
  441. elf32-m68hc12.c \
  442. elf32-m68hc1x.c \
  443. elf32-m68k.c \
  444. elf32-s12z.c \
  445. elf32-mcore.c \
  446. elf32-mep.c \
  447. elf32-metag.c \
  448. elf32-microblaze.c \
  449. elf32-moxie.c \
  450. elf32-msp430.c \
  451. elf32-mt.c \
  452. elf32-nds32.c \
  453. elf32-nios2.c \
  454. elf32-or1k.c \
  455. elf32-pj.c \
  456. elf32-ppc.c \
  457. elf32-pru.c \
  458. elf32-rl78.c \
  459. elf32-rx.c \
  460. elf32-s390.c \
  461. elf32-sh.c \
  462. elf32-sparc.c \
  463. elf32-spu.c \
  464. elf32-tic6x.c \
  465. elf32-tilegx.c \
  466. elf32-tilepro.c \
  467. elf32-v850.c \
  468. elf32-vax.c \
  469. elf32-visium.c \
  470. elf32-wasm32.c \
  471. elf32-xc16x.c \
  472. elf32-xgate.c \
  473. elf32-xstormy16.c \
  474. elf32-xtensa.c \
  475. elf32-z80.c \
  476. elf32.c \
  477. elflink.c \
  478. elfxx-sparc.c \
  479. elfxx-tilegx.c \
  480. i386aout.c \
  481. i386bsd.c \
  482. i386lynx.c \
  483. i386msdos.c \
  484. mach-o.c \
  485. mach-o-i386.c \
  486. mach-o-arm.c \
  487. ns32knetbsd.c \
  488. pc532-mach.c \
  489. pdp11.c \
  490. pe-arm-wince.c \
  491. pe-arm.c \
  492. pe-i386.c \
  493. pe-mcore.c \
  494. pe-sh.c \
  495. pef.c \
  496. pei-arm-wince.c \
  497. pei-arm.c \
  498. pei-i386.c \
  499. pei-mcore.c \
  500. pei-sh.c \
  501. plugin.c \
  502. ppcboot.c \
  503. reloc16.c \
  504. som.c \
  505. vax1knetbsd.c \
  506. vaxnetbsd.c \
  507. vms-lib.c \
  508. vms-misc.c \
  509. wasm-module.c \
  510. xcofflink.c \
  511. xsym.c \
  512. xtensa-isa.c \
  513. xtensa-modules.c
  514. # The .o files needed by all of the 64 bit vectors that are configured into
  515. # target_vector in targets.c if configured with --enable-targets=all
  516. # and --enable-64-bit-bfd.
  517. # elf32-ia64.c requires a 64-bit bfd_vma, and hence can not be put in
  518. # BFD32_BACKENDS.
  519. BFD64_BACKENDS = \
  520. elf32-aarch64.lo \
  521. elf64-aarch64.lo \
  522. elfxx-aarch64.lo \
  523. aix5ppc-core.lo \
  524. aout64.lo \
  525. coff-alpha.lo \
  526. coff-x86_64.lo \
  527. coff64-rs6000.lo \
  528. elf32-ia64.lo \
  529. elf32-mips.lo \
  530. elf32-score.lo \
  531. elf32-score7.lo \
  532. elf64-alpha.lo \
  533. elf64-amdgcn.lo \
  534. elf64-gen.lo \
  535. elf64-hppa.lo \
  536. elf64-ia64.lo \
  537. elf64-ia64-vms.lo \
  538. elfxx-ia64.lo \
  539. elf32-loongarch.lo \
  540. elf64-loongarch.lo \
  541. elfxx-loongarch.lo \
  542. elfn32-mips.lo \
  543. elf64-mips.lo \
  544. elfxx-mips.lo \
  545. elf64-mmix.lo \
  546. elf64-nfp.lo \
  547. elf64-ppc.lo \
  548. elf32-riscv.lo \
  549. elf64-riscv.lo \
  550. elfxx-riscv.lo \
  551. elf64-s390.lo \
  552. elf64-sparc.lo \
  553. elf64-tilegx.lo \
  554. elf64-x86-64.lo \
  555. elfxx-x86.lo \
  556. elf64-bpf.lo \
  557. elf64.lo \
  558. mach-o-aarch64.lo \
  559. mach-o-x86-64.lo \
  560. mmo.lo \
  561. pe-aarch64igen.lo \
  562. pe-x86_64.lo \
  563. pei-aarch64.lo \
  564. pei-ia64.lo \
  565. pei-x86_64.lo \
  566. pepigen.lo \
  567. pex64igen.lo \
  568. vms-alpha.lo
  569. BFD64_BACKENDS_CFILES = \
  570. aix5ppc-core.c \
  571. aout64.c \
  572. coff-alpha.c \
  573. coff-x86_64.c \
  574. coff64-rs6000.c \
  575. elf32-mips.c \
  576. elf32-score.c \
  577. elf32-score7.c \
  578. elf64-alpha.c \
  579. elf64-amdgcn.c \
  580. elf64-gen.c \
  581. elf64-hppa.c \
  582. elf64-ia64-vms.c \
  583. elf64-mips.c \
  584. elf64-mmix.c \
  585. elf64-nfp.c \
  586. elf64-ppc.c \
  587. elf64-s390.c \
  588. elf64-sparc.c \
  589. elf64-tilegx.c \
  590. elf64-x86-64.c \
  591. elfxx-x86.c \
  592. elf64-bpf.c \
  593. elf64.c \
  594. elfn32-mips.c \
  595. elfxx-aarch64.c \
  596. elfxx-ia64.c \
  597. elfxx-loongarch.c \
  598. elfxx-mips.c \
  599. elfxx-riscv.c \
  600. mach-o-aarch64.c \
  601. mach-o-x86-64.c \
  602. mmo.c \
  603. pe-x86_64.c \
  604. pei-aarch64.c \
  605. pei-ia64.c \
  606. pei-x86_64.c \
  607. vms-alpha.c
  608. OPTIONAL_BACKENDS = \
  609. aix386-core.lo \
  610. cisco-core.lo \
  611. hpux-core.lo \
  612. irix-core.lo \
  613. lynx-core.lo \
  614. netbsd-core.lo \
  615. osf-core.lo \
  616. rs6000-core.lo \
  617. sco5-core.lo \
  618. trad-core.lo
  619. OPTIONAL_BACKENDS_CFILES = \
  620. aix386-core.c \
  621. cisco-core.c \
  622. hpux-core.c \
  623. irix-core.c \
  624. lynx-core.c \
  625. netbsd-core.c \
  626. osf-core.c \
  627. rs6000-core.c \
  628. sco5-core.c \
  629. trad-core.c
  630. # Reconfigure if config.bfd or configure.host changes.
  631. # development.sh is used to determine -Werror default.
  632. CONFIG_STATUS_DEPENDENCIES = \
  633. $(srcdir)/config.bfd \
  634. $(srcdir)/configure.host \
  635. $(srcdir)/development.sh
  636. # These are defined by configure:
  637. WORDSIZE = @wordsize@
  638. ALL_BACKENDS = @all_backends@
  639. BFD_BACKENDS = @bfd_backends@
  640. BFD_MACHINES = @bfd_machines@
  641. TDEFAULTS = @tdefaults@
  642. HAVEVECS = @havevecs@
  643. AM_CPPFLAGS += @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) \
  644. $(HAVEVECS) @INCINTL@
  645. # C source files that correspond to .o's.
  646. SOURCE_CFILES = \
  647. $(BFD32_LIBS_CFILES) \
  648. $(BFD64_LIBS_CFILES) \
  649. $(ALL_MACHINES_CFILES) \
  650. $(BFD32_BACKENDS_CFILES) \
  651. $(BFD64_BACKENDS_CFILES) \
  652. $(OPTIONAL_BACKENDS_CFILES)
  653. BUILD_CFILES = \
  654. elf32-aarch64.c elf64-aarch64.c \
  655. elf32-ia64.c elf64-ia64.c \
  656. elf32-loongarch.c elf64-loongarch.c \
  657. elf32-riscv.c elf64-riscv.c \
  658. peigen.c pepigen.c pex64igen.c pe-aarch64igen.c
  659. CFILES = $(SOURCE_CFILES) $(BUILD_CFILES)
  660. ## This is a list of all .h files in the source tree minus those that
  661. ## are processed to produce other .h files
  662. SOURCE_HFILES = \
  663. aout-target.h aoutx.h arc-got.h arc-plt.h \
  664. coff-arm.h coff-bfd.h coffcode.h coffswap.h \
  665. cpu-aarch64.h cpu-arm.h cpu-h8300.h cpu-m68k.h cpu-riscv.h \
  666. ecoff-bfd.h ecoffswap.h \
  667. elf32-arm.h elf32-avr.h elf32-bfin.h elf32-cr16.h elf32-csky.h \
  668. elf32-dlx.h elf32-hppa.h elf32-m68hc1x.h elf32-m68k.h \
  669. elf32-metag.h elf32-nds32.h elf32-nios2.h elf32-ppc.h \
  670. elf32-rx.h elf32-score.h elf32-sh-relocs.h elf32-spu.h \
  671. elf32-tic6x.h elf32-tilegx.h elf32-tilepro.h elf32-v850.h \
  672. elf64-hppa.h elf64-ppc.h elf64-tilegx.h \
  673. elf-bfd.h elfcode.h elfcore.h elf-hppa.h elf-linker-x86.h \
  674. elf-linux-core.h elf-nacl.h elf-s390.h elf-vxworks.h \
  675. elfxx-aarch64.h elfxx-ia64.h elfxx-mips.h elfxx-riscv.h \
  676. elfxx-sparc.h elfxx-tilegx.h elfxx-x86.h elfxx-loongarch.h \
  677. genlink.h go32stub.h \
  678. libaout.h libbfd.h libcoff.h libecoff.h libhppa.h \
  679. libpei.h libxcoff.h \
  680. mach-o.h \
  681. netbsd.h ns32k.h \
  682. pef.h pef-traceback.h peicode.h plugin.h \
  683. som.h sysdep.h \
  684. version.h vms.h \
  685. wasm-module.h \
  686. xcofflink.h xsym.h
  687. ## ... and .h files which are in the build tree, minus config.h and bfd.h
  688. BUILD_HFILES = \
  689. bfdver.h elf32-target.h elf64-target.h targmatch.h
  690. # Ensure they are built early:
  691. BUILT_SOURCES = $(BUILD_HFILES)
  692. HFILES = $(SOURCE_HFILES) $(BUILD_HFILES)
  693. BFD_H_DEPS = $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/diagnostics.h
  694. LOCAL_H_DEPS = libbfd.h sysdep.h config.h
  695. $(BFD32_LIBS) \
  696. $(BFD64_LIBS) \
  697. $(ALL_MACHINES) \
  698. $(BFD32_BACKENDS) \
  699. $(BFD64_BACKENDS) \
  700. $(OPTIONAL_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
  701. SRC_POTFILES = $(SOURCE_CFILES) $(SOURCE_HFILES)
  702. BLD_POTFILES = $(BUILD_CFILES) $(BUILD_HFILES)
  703. po/SRC-POTFILES.in: @MAINT@ Makefile $(SRC_POTFILES)
  704. for file in $(SRC_POTFILES); do echo $$file; done \
  705. | LC_ALL=C sort > tmp.src \
  706. && mv tmp.src $(srcdir)/po/SRC-POTFILES.in
  707. po/BLD-POTFILES.in: @MAINT@ Makefile $(BLD_POTFILES)
  708. for file in $(BLD_POTFILES); do echo $$file; done \
  709. | LC_ALL=C sort > tmp.bld \
  710. && mv tmp.bld $(srcdir)/po/BLD-POTFILES.in
  711. all diststuff: info
  712. # Various kinds of .o files to put in libbfd.a:
  713. # BFD_BACKENDS Routines the configured targets need.
  714. # BFD_MACHINES Architecture-specific routines the configured targets need.
  715. # COREFILE Core file routines for a native configuration
  716. # bfd64_libs Routines for 64bit support
  717. OFILES = $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@ @bfd64_libs@
  718. stamp-ofiles: Makefile
  719. rm -f tofiles
  720. f=""; \
  721. for i in $(OFILES) ; do \
  722. case " $$f " in \
  723. *" $$i "*) ;; \
  724. *) f="$$f $$i" ;; \
  725. esac ; \
  726. done ; \
  727. echo $$f > tofiles
  728. $(SHELL) $(srcdir)/../move-if-change tofiles ofiles
  729. touch stamp-ofiles
  730. ofiles: stamp-ofiles ; @true
  731. # Since BFD64_LIBS is optional and we can't have substitution in
  732. # libbfd_la_SOURCES, we put BFD64_LIBS in OFILES instead.
  733. # However, list all sources in EXTRA_libbfd_la_SOURCES so the
  734. # dependency tracking fragments are picked up in the Makefile.
  735. libbfd_la_SOURCES = $(BFD32_LIBS_CFILES)
  736. EXTRA_libbfd_la_SOURCES = $(CFILES)
  737. libbfd_la_DEPENDENCIES = $(OFILES) ofiles
  738. libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ $(LIBDL) $(ZLIB)
  739. libbfd_la_LDFLAGS += -release `cat libtool-soversion` @SHARED_LDFLAGS@
  740. # libtool will build .libs/libbfd.a. We create libbfd.a in the build
  741. # directory so that we don't have to convert all the programs that use
  742. # libbfd.a simultaneously. This is a hack which should be removed if
  743. # everything else starts using libtool. FIXME.
  744. noinst_LIBRARIES = libbfd.a
  745. libbfd_a_SOURCES =
  746. stamp-lib: libbfd.la
  747. libtooldir=`$(LIBTOOL) --config | $(SED) -n -e 's/^objdir=//p'`; \
  748. if [ -f $$libtooldir/libbfd.a ]; then \
  749. cp $$libtooldir/libbfd.a libbfd.tmp; \
  750. $(RANLIB) libbfd.tmp; \
  751. $(SHELL) $(srcdir)/../move-if-change libbfd.tmp libbfd.a; \
  752. else true; fi
  753. touch stamp-lib
  754. libbfd.a: stamp-lib ; @true
  755. # This file holds an array associating configuration triplets and
  756. # vector names. It is built from config.bfd. It is not compiled by
  757. # itself, but is included by targets.c.
  758. targmatch.h: config.bfd targmatch.sed
  759. $(AM_V_at)rm -f targmatch.h
  760. $(AM_V_GEN)$(SED) -f $(srcdir)/targmatch.sed < $(srcdir)/config.bfd > targmatch.new
  761. $(AM_V_at)mv -f targmatch.new targmatch.h
  762. # When compiling archures.c and targets.c, supply the default target
  763. # info from configure.
  764. targets.lo: targets.c Makefile
  765. if am__fastdepCC
  766. $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(TDEFAULTS) $(srcdir)/targets.c
  767. $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  768. else
  769. if AMDEP
  770. source='targets.c' object='$@' libtool=yes @AMDEPBACKSLASH@
  771. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  772. endif
  773. $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(TDEFAULTS) $(srcdir)/targets.c
  774. endif
  775. archures.lo: archures.c Makefile
  776. if am__fastdepCC
  777. $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(TDEFAULTS) $(srcdir)/archures.c
  778. $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  779. else
  780. if AMDEP
  781. source='archures.c' object='$@' libtool=yes @AMDEPBACKSLASH@
  782. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  783. endif
  784. $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(TDEFAULTS) $(srcdir)/archures.c
  785. endif
  786. dwarf2.lo: dwarf2.c Makefile
  787. if am__fastdepCC
  788. $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ -DDEBUGDIR=\"$(DEBUGDIR)\" $(srcdir)/dwarf2.c
  789. $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  790. else
  791. if AMDEP
  792. source='dwarf2.c' object='$@' libtool=yes @AMDEPBACKSLASH@
  793. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  794. endif
  795. $(AM_V_CC)$(LTCOMPILE) -c -o $@ -DDEBUGDIR=\"$(DEBUGDIR)\" $(srcdir)/dwarf2.c
  796. endif
  797. elf32-target.h : elfxx-target.h
  798. $(AM_V_GEN)$(SED) -e s/NN/32/g < $< > $@
  799. elf64-target.h : elfxx-target.h
  800. $(AM_V_GEN)$(SED) -e s/NN/64/g < $< > $@
  801. elf32-aarch64.c : elfnn-aarch64.c
  802. $(AM_V_at)echo "#line 1 \"elfnn-aarch64.c\"" > $@
  803. $(AM_V_GEN)$(SED) -e s/NN/32/g < $< >> $@
  804. elf64-aarch64.c : elfnn-aarch64.c
  805. $(AM_V_at)echo "#line 1 \"elfnn-aarch64.c\"" > $@
  806. $(AM_V_GEN)$(SED) -e s/NN/64/g < $< >> $@
  807. elf32-ia64.c : elfnn-ia64.c
  808. $(AM_V_at)echo "#line 1 \"elfnn-ia64.c\"" > $@
  809. $(AM_V_GEN)$(SED) -e s/NN/32/g < $< >> $@
  810. elf64-ia64.c : elfnn-ia64.c
  811. $(AM_V_at)echo "#line 1 \"elfnn-ia64.c\"" > $@
  812. $(AM_V_GEN)$(SED) -e s/NN/64/g < $< >> $@
  813. elf32-loongarch.c : elfnn-loongarch.c
  814. $(AM_V_at)echo "#line 1 \"elfnn-loongarch.c\"" > $@
  815. $(AM_V_GEN)$(SED) -e s/NN/32/g < $< >> $@
  816. elf64-loongarch.c : elfnn-loongarch.c
  817. $(AM_V_at)echo "#line 1 \"elfnn-loongarch.c\"" > $@
  818. $(AM_V_GEN)$(SED) -e s/NN/64/g < $< >> $@
  819. elf32-riscv.c : elfnn-riscv.c
  820. $(AM_V_at)echo "#line 1 \"elfnn-riscv.c\"" > $@
  821. $(AM_V_GEN)$(SED) -e s/NN/32/g < $< >> $@
  822. elf64-riscv.c : elfnn-riscv.c
  823. $(AM_V_at)echo "#line 1 \"elfnn-riscv.c\"" > $@
  824. $(AM_V_GEN)$(SED) -e s/NN/64/g < $< >> $@
  825. peigen.c : peXXigen.c
  826. $(AM_V_at)echo "#line 1 \"peXXigen.c\"" > $@
  827. $(AM_V_GEN)$(SED) -e s/XX/pe/g < $< >> $@
  828. pepigen.c : peXXigen.c
  829. $(AM_V_at)echo "#line 1 \"peXXigen.c\"" > $@
  830. $(AM_V_GEN)$(SED) -e s/XX/pep/g < $< >> $@
  831. pex64igen.c: peXXigen.c
  832. $(AM_V_at)echo "#line 1 \"peXXigen.c\"" > $@
  833. $(AM_V_GEN)$(SED) -e s/XX/pex64/g < $< >> $@
  834. pe-aarch64igen.c: peXXigen.c
  835. $(AM_V_at)echo "#line 1 \"peXXigen.c\"" > $@
  836. $(AM_V_GEN)$(SED) -e s/XX/peAArch64/g < $< >> $@
  837. host-aout.lo: Makefile
  838. # The following program can be used to generate a simple config file
  839. # which can be folded into an h-XXX file for a new host, with some editing.
  840. aout-params.h: gen-aout
  841. ./gen-aout host > aout-params.h
  842. gen-aout: $(srcdir)/gen-aout.c Makefile
  843. $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
  844. $(BFD_H): stmp-bfd-h ; @true
  845. stmp-bfd-h: bfd-in3.h
  846. rm -f bfd-tmp.h
  847. cp bfd-in3.h bfd-tmp.h
  848. $(SHELL) $(srcdir)/../move-if-change bfd-tmp.h $(BFD_H)
  849. rm -f bfd-tmp.h
  850. touch stmp-bfd-h
  851. BFD_H_FILES = bfd-in.h init.c opncls.c libbfd.c \
  852. bfdio.c bfdwin.c section.c archures.c reloc.c \
  853. syms.c bfd.c archive.c corefile.c targets.c format.c \
  854. linker.c simple.c compress.c
  855. BFD64_H_FILES = archive64.c
  856. LIBBFD_H_FILES = libbfd-in.h libbfd.c bfdio.c bfdwin.c \
  857. cache.c reloc.c archures.c linker.c
  858. LIBCOFF_H_FILES = libcoff-in.h coffcode.h
  859. headers: stmp-bin2-h stmp-lbfd-h stmp-lcoff-h
  860. # We only rebuild the header files automatically if we have been
  861. # configured with --enable-maintainer-mode.
  862. REGEN_HEADER = \
  863. ( \
  864. set -e; \
  865. echo "$$H_FILES" | sed -f $(srcdir)/doc/header.sed; \
  866. for file in $$H_FILES; do \
  867. file="$(srcdir)/$$file"; \
  868. case $$file in \
  869. *-in.h) cat $$file;; \
  870. *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \
  871. -e 's,$$,. */,'; \
  872. $(MKDOC) $$CHEW_FLAGS -f $(srcdir)/doc/proto.str < $$file;; \
  873. esac; \
  874. done; \
  875. echo "\#ifdef __cplusplus"; \
  876. echo "}"; \
  877. echo "\#endif"; \
  878. echo "\#endif"; \
  879. )
  880. $(srcdir)/bfd-in2.h: @MAINT@ stmp-bin2-h ; @true
  881. stmp-bin2-h: $(BFD_H_FILES) $(BFD64_H_FILES) $(MKDOC)
  882. $(AM_V_GEN)H_FILES="$(BFD_H_FILES)" CHEW_FLAGS= ; $(REGEN_HEADER) > bfd-in2.h-new
  883. $(AM_V_at)$(SHELL) $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
  884. $(AM_V_at)touch stmp-bin2-h
  885. $(srcdir)/libbfd.h: @MAINT@ stmp-lbfd-h ; @true
  886. stmp-lbfd-h: $(LIBBFD_H_FILES) $(MKDOC)
  887. $(AM_V_GEN)H_FILES="$(LIBBFD_H_FILES)" CHEW_FLAGS=-i ; $(REGEN_HEADER) > libbfd.h-new
  888. $(AM_V_at)$(SHELL) $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
  889. $(AM_V_at)touch stmp-lbfd-h
  890. $(srcdir)/libcoff.h: @MAINT@ stmp-lcoff-h ; @true
  891. stmp-lcoff-h: $(LIBCOFF_H_FILES) $(MKDOC)
  892. $(AM_V_GEN)H_FILES="$(LIBCOFF_H_FILES)" CHEW_FLAGS=-i ; $(REGEN_HEADER) > libcoff.h-new
  893. $(AM_V_at)$(SHELL) $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
  894. $(AM_V_at)touch stmp-lcoff-h
  895. MOSTLYCLEANFILES += ofiles stamp-ofiles
  896. CLEANFILES += bfd.h dep.sed stmp-bfd-h DEP DEPA DEP1 DEP2 libbfd.a stamp-lib \
  897. stmp-bin2-h stmp-lbfd-h stmp-lcoff-h
  898. DISTCLEANFILES += $(BUILD_CFILES) $(BUILD_HFILES) libtool-soversion
  899. bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
  900. $(AM_V_GEN)\
  901. bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
  902. bfd_version_string="\"$(VERSION)\"" ;\
  903. bfd_soversion="$(VERSION)" ;\
  904. bfd_version_package="\"$(PKGVERSION)\"" ;\
  905. report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
  906. . $(srcdir)/development.sh ;\
  907. if test "$$development" = true ; then \
  908. bfd_version_date=`$(SED) -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\
  909. bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\
  910. bfd_soversion="$(VERSION).$${bfd_version_date}" ;\
  911. fi ;\
  912. $(SED) -e "s,@bfd_version@,$$bfd_version," \
  913. -e "s,@bfd_version_string@,$$bfd_version_string," \
  914. -e "s,@bfd_version_package@,$$bfd_version_package," \
  915. -e "s,@report_bugs_to@,$$report_bugs_to," \
  916. < $(srcdir)/version.h > $@; \
  917. echo "$${bfd_soversion}" > libtool-soversion
  918. # Disable -Werror, if it has been enabled, since coffswap.h won't
  919. # compile with gcc 4.5 and above.
  920. coff-tic4x.lo: coff-tic4x.c
  921. @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR)
  922. @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  923. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  924. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  925. @am__fastdepCC_FALSE@ $(AM_V_CC)$(LTCOMPILE) -c -o $@ $< $(NO_WERROR)
  926. coff-tic54x.lo: coff-tic54x.c
  927. @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR)
  928. @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  929. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  930. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  931. @am__fastdepCC_FALSE@ $(AM_V_CC)$(LTCOMPILE) -c -o $@ $< $(NO_WERROR)
  932. include doc/local.mk