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