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