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