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