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