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