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