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