OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [bfd/] [Makefile.am] - Blame information for rev 853

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.