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