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