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