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