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