daily update
[binutils/dougsmingw.git] / bfd / Makefile.am
blobac38177ed0c1974d5a00326ce201222cd813707b
1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = 1.11 no-dist foreign
4 ACLOCAL_AMFLAGS = -I . -I .. -I ../config
6 # Uncomment the following line when doing a release.
7 # RELEASE=y
9 INCDIR = $(srcdir)/../include
10 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
12 SUBDIRS = doc po
14 bfddocdir = doc
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
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
39 # bfd.h goes here, for now
40 BFD_H = bfd.h
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
57 BFD64_LIBS = archive64.lo
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
67 BFD64_LIBS_CFILES = archive64.c
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
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
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-gsd.lo \
395         vms-hdr.lo \
396         vms-lib.lo \
397         vms-misc.lo \
398         vms-tir.lo \
399         vms.lo \
400         xcofflink.lo \
401         xsym.lo \
402         xtensa-isa.lo \
403         xtensa-modules.lo
405 BFD32_BACKENDS_CFILES = \
406         aout-adobe.c \
407         aout-arm.c \
408         aout-cris.c \
409         aout-ns32k.c \
410         aout-sparcle.c \
411         aout-tic30.c \
412         aout0.c \
413         aout32.c \
414         armnetbsd.c \
415         bout.c \
416         cf-i386lynx.c \
417         cf-sparclynx.c \
418         coff-apollo.c \
419         coff-arm.c \
420         coff-aux.c \
421         coff-go32.c \
422         coff-h8300.c \
423         coff-h8500.c \
424         coff-i386.c \
425         coff-i860.c \
426         coff-i960.c \
427         coff-m68k.c \
428         coff-m88k.c \
429         coff-maxq.c \
430         coff-mips.c \
431         coff-or32.c \
432         coff-rs6000.c \
433         coff-sh.c \
434         coff-sparc.c \
435         coff-stgo32.c \
436         coff-svm68k.c \
437         coff-tic30.c \
438         coff-tic4x.c \
439         coff-tic54x.c \
440         coff-tic80.c \
441         coff-u68k.c \
442         coff-w65.c \
443         coff-we32k.c \
444         coff-z80.c \
445         coff-z8k.c \
446         cofflink.c \
447         dwarf1.c \
448         ecoff.c \
449         ecofflink.c \
450         elf-attrs.c \
451         elf-eh-frame.c \
452         elf-ifunc.c \
453         elf-m10200.c \
454         elf-m10300.c \
455         elf-strtab.c \
456         elf-vxworks.c \
457         elf.c \
458         elf32-am33lin.c \
459         elf32-arc.c \
460         elf32-arm.c \
461         elf32-avr.c \
462         elf32-bfin.c \
463         elf32-cr16.c \
464         elf32-cr16c.c \
465         elf32-cris.c \
466         elf32-crx.c \
467         elf32-d10v.c \
468         elf32-d30v.c \
469         elf32-dlx.c \
470         elf32-fr30.c \
471         elf32-frv.c \
472         elf32-gen.c \
473         elf32-h8300.c \
474         elf32-hppa.c \
475         elf32-i370.c \
476         elf32-i386.c \
477         elf32-i860.c \
478         elf32-i960.c \
479         elf32-ip2k.c \
480         elf32-iq2000.c \
481         elf32-lm32.c \
482         elf32-m32c.c \
483         elf32-m32r.c \
484         elf32-m68hc11.c \
485         elf32-m68hc12.c \
486         elf32-m68hc1x.c \
487         elf32-m68k.c \
488         elf32-m88k.c \
489         elf32-mcore.c \
490         elf32-mep.c \
491         elf32-microblaze.c \
492         elf32-mips.c \
493         elf32-moxie.c \
494         elf32-msp430.c \
495         elf32-mt.c \
496         elf32-openrisc.c \
497         elf32-or32.c \
498         elf32-pj.c \
499         elf32-ppc.c \
500         elf32-rx.c \
501         elf32-s390.c \
502         elf32-sh-symbian.c \
503         elf32-sh.c \
504         elf32-sh64-com.c \
505         elf32-sh64.c \
506         elf32-sparc.c \
507         elf32-spu.c \
508         elf32-tic6x.c \
509         elf32-v850.c \
510         elf32-vax.c \
511         elf32-xc16x.c \
512         elf32-xstormy16.c \
513         elf32-xtensa.c \
514         elf32.c \
515         elflink.c \
516         elfxx-mips.c \
517         elfxx-sparc.c \
518         epoc-pe-arm.c \
519         epoc-pei-arm.c \
520         hp300bsd.c \
521         hp300hpux.c \
522         i386aout.c \
523         i386bsd.c \
524         i386dynix.c \
525         i386freebsd.c \
526         i386linux.c \
527         i386lynx.c \
528         i386mach3.c \
529         i386msdos.c \
530         i386netbsd.c \
531         i386os9k.c \
532         ieee.c \
533         m68k4knetbsd.c \
534         m68klinux.c \
535         m68knetbsd.c \
536         m88kmach3.c \
537         m88kopenbsd.c \
538         mach-o.c \
539         mach-o-i386.c \
540         mipsbsd.c \
541         newsos3.c \
542         nlm.c \
543         nlm32-i386.c \
544         nlm32-ppc.c \
545         nlm32-sparc.c \
546         nlm32.c \
547         ns32knetbsd.c \
548         oasys.c \
549         pc532-mach.c \
550         pdp11.c \
551         pe-arm-wince.c \
552         pe-arm.c \
553         pe-i386.c \
554         pe-mcore.c \
555         pe-mips.c \
556         pe-ppc.c \
557         pe-sh.c \
558         pef.c \
559         pei-arm-wince.c \
560         pei-arm.c \
561         pei-i386.c \
562         pei-mcore.c \
563         pei-mips.c \
564         pei-ppc.c \
565         pei-sh.c \
566         plugin.c \
567         ppcboot.c \
568         reloc16.c \
569         riscix.c \
570         som.c \
571         sparclinux.c \
572         sparclynx.c \
573         sparcnetbsd.c \
574         sunos.c \
575         vax1knetbsd.c \
576         vaxbsd.c \
577         vaxnetbsd.c \
578         versados.c \
579         vms-gsd.c \
580         vms-hdr.c \
581         vms-lib.c \
582         vms-misc.c \
583         vms-tir.c \
584         vms.c \
585         xcofflink.c \
586         xsym.c \
587         xtensa-isa.c \
588         xtensa-modules.c
590 # The .o files needed by all of the 64 bit vectors that are configured into
591 # target_vector in targets.c if configured with --enable-targets=all
592 # and --enable-64-bit-bfd.
593 # elf32-ia64.c requires a 64-bit bfd_vma, and hence can not be put in
594 # BFD32_BACKENDS.
595 BFD64_BACKENDS = \
596         aix5ppc-core.lo \
597         aout64.lo \
598         coff-alpha.lo \
599         coff-x86_64.lo \
600         coff64-rs6000.lo \
601         demo64.lo \
602         elf32-ia64.lo \
603         elf32-score.lo \
604         elf32-score7.lo \
605         elf64-alpha.lo \
606         elf64-gen.lo \
607         elf64-hppa.lo \
608         elf64-ia64.lo \
609         elf64-mips.lo \
610         elf64-mmix.lo \
611         elf64-ppc.lo \
612         elf64-s390.lo \
613         elf64-sh64.lo \
614         elf64-sparc.lo \
615         elf64-x86-64.lo \
616         elf64.lo \
617         elfn32-mips.lo \
618         mach-o-x86-64.lo \
619         mmo.lo \
620         nlm32-alpha.lo \
621         nlm64.lo \
622         pe-x86_64.lo \
623         pei-ia64.lo \
624         pei-x86_64.lo \
625         pepigen.lo \
626         pex64igen.lo
628 BFD64_BACKENDS_CFILES = \
629         aix5ppc-core.c \
630         aout64.c \
631         coff-alpha.c \
632         coff-x86_64.c \
633         coff64-rs6000.c \
634         demo64.c \
635         elf32-score.c \
636         elf32-score7.c \
637         elf64-alpha.c \
638         elf64-gen.c \
639         elf64-hppa.c \
640         elf64-mips.c \
641         elf64-mmix.c \
642         elf64-ppc.c \
643         elf64-s390.c \
644         elf64-sh64.c \
645         elf64-sparc.c \
646         elf64-x86-64.c \
647         elf64.c \
648         elfn32-mips.c \
649         mach-o-x86-64.c \
650         mmo.c \
651         nlm32-alpha.c \
652         nlm64.c \
653         pe-x86_64.c \
654         pei-ia64.c \
655         pei-x86_64.c
657 OPTIONAL_BACKENDS = \
658         aix386-core.lo \
659         cisco-core.lo \
660         hpux-core.lo \
661         irix-core.lo \
662         lynx-core.lo \
663         osf-core.lo \
664         sco5-core.lo \
665         trad-core.lo
667 OPTIONAL_BACKENDS_CFILES = \
668         aix386-core.c \
669         cisco-core.c \
670         hpux-core.c \
671         irix-core.c \
672         lynx-core.c \
673         osf-core.c \
674         sco5-core.c \
675         trad-core.c
677 # We want to rerun configure if configure.in, config.bfd or
678 # configure.host change. configure.in is needed since the version
679 # number in Makefile comes from configure.in.
680 CONFIG_STATUS_DEPENDENCIES = \
681         $(srcdir)/configure.in \
682         $(srcdir)/config.bfd \
683         $(srcdir)/configure.host
685 # These are defined by configure.in:
686 WORDSIZE = @wordsize@
687 ALL_BACKENDS = @all_backends@
688 BFD_BACKENDS = @bfd_backends@
689 BFD_MACHINES = @bfd_machines@
690 TDEFAULTS = @tdefaults@
692 INCLUDES = @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) @INCINTL@
694 # C source files that correspond to .o's.
695 SOURCE_CFILES = \
696         $(BFD32_LIBS_CFILES) \
697         $(BFD64_LIBS_CFILES) \
698         $(ALL_MACHINES_CFILES) \
699         $(BFD32_BACKENDS_CFILES) \
700         $(BFD64_BACKENDS_CFILES) \
701         $(OPTIONAL_BACKENDS_CFILES)
703 BUILD_CFILES = \
704         elf32-ia64.c elf64-ia64.c peigen.c pepigen.c pex64igen.c
706 CFILES = $(SOURCE_CFILES) $(BUILD_CFILES)
708 ## This is a list of all .h files which are in the source tree.
709 SOURCE_HFILES = \
710         aout-target.h aoutf1.h aoutx.h coffcode.h coffswap.h ecoffswap.h \
711         elf-bfd.h elf-hppa.h elf32-hppa.h \
712         elf64-hppa.h elfcode.h elfcore.h \
713         freebsd.h genlink.h go32stub.h \
714         libaout.h libbfd.h libcoff.h libecoff.h libhppa.h libieee.h \
715         libnlm.h liboasys.h libpei.h libxcoff.h mach-o.h \
716         netbsd.h nlm-target.h nlmcode.h nlmswap.h ns32k.h \
717         pef.h pef-traceback.h peicode.h som.h version.h \
718         vms.h xcoff-target.h xsym.h
720 ## ... and all .h files which are in the build tree.
721 BUILD_HFILES = \
722         bfdver.h elf32-target.h elf64-target.h targmatch.h bfd_stdint.h
724 # Ensure they are built early:
725 BUILT_SOURCES = $(BUILD_HFILES)
727 HFILES = $(SOURCE_HFILES) $(BUILD_HFILES)
729 SRC_POTFILES = $(SOURCE_CFILES) $(SOURCE_HFILES)
730 BLD_POTFILES = $(BUILD_CFILES) $(BUILD_HFILES)
732 po/SRC-POTFILES.in: @MAINT@ Makefile $(SRC_POTFILES)
733         for file in $(SRC_POTFILES); do echo $$file; done \
734           | LC_ALL=C sort > tmp.src \
735           && mv tmp.src $(srcdir)/po/SRC-POTFILES.in
737 po/BLD-POTFILES.in: @MAINT@ Makefile $(BLD_POTFILES)
738         for file in $(BLD_POTFILES); do echo $$file; done \
739           | LC_ALL=C sort > tmp.bld \
740           && mv tmp.bld $(srcdir)/po/BLD-POTFILES.in
742 all diststuff: info
744 # Various kinds of .o files to put in libbfd.a:
745 # BFD_BACKENDS  Routines the configured targets need.
746 # BFD_MACHINES  Architecture-specific routines the configured targets need.
747 # COREFILE      Core file routines for a native configuration
748 # bfd64_libs    Routines for 64bit support
749 OFILES = $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@ @bfd64_libs@
751 stamp-ofiles: Makefile
752         rm -f tofiles
753         f=""; \
754         for i in $(OFILES) ; do \
755           case " $$f " in \
756             *" $$i "*) ;; \
757             *) f="$$f $$i" ;; \
758           esac ; \
759         done ; \
760         echo $$f > tofiles
761         $(SHELL) $(srcdir)/../move-if-change tofiles ofiles
762         touch stamp-ofiles
764 ofiles: stamp-ofiles ; @true
766 # Since BFD64_LIBS is optional and we can't have substitution in
767 # libbfd_la_SOURCES, we put BFD64_LIBS in OFILES instead.
768 # However, list all sources in EXTRA_libbfd_la_SOURCES so the
769 # dependency tracking fragments are picked up in the Makefile.
770 libbfd_la_SOURCES = $(BFD32_LIBS_CFILES)
771 EXTRA_libbfd_la_SOURCES = $(CFILES)
772 libbfd_la_DEPENDENCIES = $(OFILES) ofiles
773 libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ $(LIBDL)
774 libbfd_la_LDFLAGS += -release `cat libtool-soversion` @SHARED_LDFLAGS@
776 # libtool will build .libs/libbfd.a.  We create libbfd.a in the build
777 # directory so that we don't have to convert all the programs that use
778 # libbfd.a simultaneously.  This is a hack which should be removed if
779 # everything else starts using libtool.  FIXME.
781 noinst_LIBRARIES = libbfd.a
782 libbfd_a_SOURCES =
784 stamp-lib: libbfd.la
785         libtooldir=`$(LIBTOOL) --config | sed -n -e 's/^objdir=//p'`; \
786         if [ -f $$libtooldir/libbfd.a ]; then \
787           cp $$libtooldir/libbfd.a libbfd.tmp; \
788           $(RANLIB) libbfd.tmp; \
789           $(SHELL) $(srcdir)/../move-if-change libbfd.tmp libbfd.a; \
790         else true; fi
791         touch stamp-lib
793 libbfd.a: stamp-lib ; @true
795 # This file holds an array associating configuration triplets and
796 # vector names.  It is built from config.bfd.  It is not compiled by
797 # itself, but is included by targets.c.
798 targmatch.h: config.bfd targmatch.sed
799         rm -f targmatch.h
800         sed -f $(srcdir)/targmatch.sed < $(srcdir)/config.bfd > targmatch.new
801         mv -f targmatch.new targmatch.h
803 # When compiling archures.c and targets.c, supply the default target
804 # info from configure.
806 targets.lo: targets.c Makefile
807 if am__fastdepCC
808         $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(TDEFAULTS) $(srcdir)/targets.c
809         mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
810 else
811 if AMDEP
812         source='targets.c' object='$@' libtool=yes @AMDEPBACKSLASH@
813         DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
814 endif
815         $(LTCOMPILE) -c -o $@ $(TDEFAULTS) $(srcdir)/targets.c
816 endif
818 archures.lo: archures.c Makefile
819 if am__fastdepCC
820         $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(TDEFAULTS) $(srcdir)/archures.c
821         mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
822 else
823 if AMDEP
824         source='archures.c' object='$@' libtool=yes @AMDEPBACKSLASH@
825         DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
826 endif
827         $(LTCOMPILE) -c -o $@ $(TDEFAULTS) $(srcdir)/archures.c
828 endif
830 dwarf2.lo: dwarf2.c Makefile
831 if am__fastdepCC
832         $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ -DDEBUGDIR=\"$(DEBUGDIR)\" $(srcdir)/dwarf2.c
833         mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
834 else
835 if AMDEP
836         source='dwarf2.c' object='$@' libtool=yes @AMDEPBACKSLASH@
837         DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
838 endif
839         $(LTCOMPILE) -c -o $@ -DDEBUGDIR=\"$(DEBUGDIR)\" $(srcdir)/dwarf2.c
840 endif
842 elf32-target.h : elfxx-target.h
843         rm -f elf32-target.h
844         sed -e s/NN/32/g < $(srcdir)/elfxx-target.h > elf32-target.new
845         mv -f elf32-target.new elf32-target.h
847 elf64-target.h : elfxx-target.h
848         rm -f elf64-target.h
849         sed -e s/NN/64/g < $(srcdir)/elfxx-target.h > elf64-target.new
850         mv -f elf64-target.new elf64-target.h
852 elf32-ia64.c : elfxx-ia64.c
853         rm -f elf32-ia64.c
854         sed -e s/NN/32/g < $(srcdir)/elfxx-ia64.c > elf32-ia64.new
855         mv -f elf32-ia64.new elf32-ia64.c
857 elf64-ia64.c : elfxx-ia64.c
858         rm -f elf64-ia64.c
859         sed -e s/NN/64/g < $(srcdir)/elfxx-ia64.c > elf64-ia64.new
860         mv -f elf64-ia64.new elf64-ia64.c
862 peigen.c : peXXigen.c
863         rm -f peigen.c
864         sed -e s/XX/pe/g < $(srcdir)/peXXigen.c > peigen.new
865         mv -f peigen.new peigen.c
867 pepigen.c : peXXigen.c
868         rm -f pepigen.c
869         sed -e s/XX/pep/g < $(srcdir)/peXXigen.c > pepigen.new
870         mv -f pepigen.new pepigen.c
872 pex64igen.c: peXXigen.c
873         rm -f pex64igen.c
874         sed -e s/XX/pex64/g < $(srcdir)/peXXigen.c > pex64igen.new
875         mv -f pex64igen.new pex64igen.c
877 BFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h
878 LOCAL_H_DEPS= libbfd.h sysdep.h config.h
879 $(BFD32_LIBS) \
880  $(BFD64_LIBS) \
881  $(ALL_MACHINES) \
882  $(BFD32_BACKENDS) \
883  $(BFD64_BACKENDS) \
884  $(OPTIONAL_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
886 host-aout.lo: Makefile
888 # The following program can be used to generate a simple config file
889 # which can be folded into an h-XXX file for a new host, with some editing.
890 aout-params.h: gen-aout
891         ./gen-aout host > aout-params.h
892 gen-aout: $(srcdir)/gen-aout.c Makefile
893         $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
895 $(BFD_H): stmp-bfd-h ; @true
897 stmp-bfd-h: bfd-in3.h
898         rm -f bfd-tmp.h
899         cp bfd-in3.h bfd-tmp.h
900         $(SHELL) $(srcdir)/../move-if-change bfd-tmp.h $(BFD_H)
901         rm -f bfd-tmp.h
902         touch stmp-bfd-h
904 BFD_H_FILES = bfd-in.h init.c opncls.c libbfd.c section.c archures.c \
905         reloc.c syms.c bfd.c bfdio.c bfdwin.c \
906         archive.c corefile.c targets.c format.c compress.c
907 BFD64_H_FILES = archive64.c
908 LIBBFD_H_FILES = libbfd-in.h init.c libbfd.c bfdio.c bfdwin.c \
909         cache.c reloc.c archures.c elf.c
910 LIBCOFF_H_FILES = libcoff-in.h coffcode.h
912 # Could really use a "copy-if-change"...
913 headers:
914         (cd $(bfddocdir); $(MAKE) protos $(FLAGS_TO_PASS))
915         cp $(bfddocdir)/bfd.h bfd-in2.h-new
916         $(SHELL) $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
917         cp $(bfddocdir)/libbfd.h libbfd.h-new
918         $(SHELL) $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
919         cp $(bfddocdir)/libcoff.h libcoff.h-new
920         $(SHELL) $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
922 # We only rebuild the header files automatically if we have been
923 # configured with --enable-maintainer-mode.
925 $(srcdir)/bfd-in2.h: @MAINT@ stmp-bin2-h ; @true
926 stmp-bin2-h: $(BFD_H_FILES) $(BFD64_H_FILES)
927         (cd $(bfddocdir); $(MAKE) $(FLAGS_TO_PASS) bfd.h)
928         cp $(bfddocdir)/bfd.h bfd-in2.h-new
929         $(SHELL) $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
930         touch stmp-bin2-h
932 $(srcdir)/libbfd.h: @MAINT@ stmp-lbfd-h ; @true
933 stmp-lbfd-h: $(LIBBFD_H_FILES)
934         (cd $(bfddocdir); $(MAKE) $(FLAGS_TO_PASS) libbfd.h)
935         cp $(bfddocdir)/libbfd.h libbfd.h-new
936         $(SHELL) $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
937         touch stmp-lbfd-h
939 $(srcdir)/libcoff.h: @MAINT@ stmp-lcoff-h ; @true
940 stmp-lcoff-h: $(LIBCOFF_H_FILES)
941         (cd $(bfddocdir); $(MAKE) $(FLAGS_TO_PASS) libcoff.h)
942         cp $(bfddocdir)/libcoff.h libcoff.h-new
943         $(SHELL) $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
944         touch stmp-lcoff-h
946 MOSTLYCLEANFILES = ofiles stamp-ofiles
948 CLEANFILES = bfd.h dep.sed stmp-bfd-h DEP DEPA DEP1 DEP2 libbfd.a stamp-lib \
949         stmp-bin2-h stmp-lbfd-h stmp-lcoff-h
951 DISTCLEANFILES = $(BUILD_CFILES) $(BUILD_HFILES) libtool-soversion
953 bfdver.h: $(srcdir)/version.h $(srcdir)/Makefile.in
954         @echo "creating $@"
955         @bfd_version=`echo "$(VERSION)" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
956         bfd_version_string="\"$(VERSION)\"" ;\
957         bfd_soversion="$(VERSION)" ;\
958         bfd_version_package="\"$(PKGVERSION)\"" ;\
959         report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
960         if test "x$(RELEASE)" = x ; then \
961           bfd_version_date=`sed -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\
962           bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\
963           bfd_soversion="$(VERSION).$${bfd_version_date}" ;\
964         fi ;\
965         sed -e "s,@bfd_version@,$$bfd_version," \
966             -e "s,@bfd_version_string@,$$bfd_version_string," \
967             -e "s,@bfd_version_package@,$$bfd_version_package," \
968             -e "s,@report_bugs_to@,$$report_bugs_to," \
969             < $(srcdir)/version.h > $@; \
970         echo "$${bfd_soversion}" > libtool-soversion