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