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