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