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