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