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