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