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