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