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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [bfd/] [Makefile.am] - Blame information for rev 859

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

Line No. Rev Author Line
1 330 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-mcore.lo \
107
        cpu-mep.lo \
108
        cpu-microblaze.lo \
109
        cpu-mips.lo \
110
        cpu-mmix.lo \
111
        cpu-moxie.lo \
112
        cpu-msp430.lo \
113
        cpu-mt.lo \
114
        cpu-ns32k.lo \
115
        cpu-openrisc.lo \
116
        cpu-or32.lo \
117
        cpu-pdp11.lo \
118
        cpu-pj.lo \
119
        cpu-plugin.lo \
120
        cpu-powerpc.lo \
121
        cpu-rs6000.lo \
122
        cpu-rx.lo \
123
        cpu-s390.lo \
124
        cpu-score.lo \
125
        cpu-sh.lo \
126
        cpu-sparc.lo \
127
        cpu-spu.lo \
128
        cpu-tic30.lo \
129
        cpu-tic4x.lo \
130
        cpu-tic54x.lo \
131
        cpu-tic6x.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-mcore.c \
179
        cpu-mep.c \
180
        cpu-microblaze.c \
181
        cpu-mips.c \
182
        cpu-mmix.c \
183
        cpu-moxie.c \
184
        cpu-msp430.c \
185
        cpu-mt.c \
186
        cpu-ns32k.c \
187
        cpu-openrisc.c \
188
        cpu-or32.c \
189
        cpu-pdp11.c \
190
        cpu-pj.c \
191
        cpu-plugin.c \
192
        cpu-powerpc.c \
193
        cpu-rs6000.c \
194
        cpu-rx.c \
195
        cpu-s390.c \
196
        cpu-score.c \
197
        cpu-sh.c \
198
        cpu-sparc.c \
199
        cpu-spu.c \
200
        cpu-tic30.c \
201
        cpu-tic4x.c \
202
        cpu-tic54x.c \
203
        cpu-tic6x.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-mips.lo \
242
        coff-or32.lo \
243
        coff-rs6000.lo \
244
        coff-sh.lo \
245
        coff-sparc.lo \
246
        coff-stgo32.lo \
247
        coff-svm68k.lo \
248
        coff-tic30.lo \
249
        coff-tic4x.lo \
250
        coff-tic54x.lo \
251
        coff-tic80.lo \
252
        coff-u68k.lo \
253
        coff-w65.lo \
254
        coff-we32k.lo \
255
        coff-z80.lo \
256
        coff-z8k.lo \
257
        cofflink.lo \
258
        dwarf1.lo \
259
        ecoff.lo \
260
        ecofflink.lo \
261
        elf-attrs.lo \
262
        elf-eh-frame.lo \
263
        elf-ifunc.lo \
264
        elf-m10200.lo \
265
        elf-m10300.lo \
266
        elf-strtab.lo \
267
        elf-vxworks.lo \
268
        elf.lo \
269
        elf32-am33lin.lo \
270
        elf32-arc.lo \
271
        elf32-arm.lo \
272
        elf32-avr.lo \
273
        elf32-bfin.lo \
274
        elf32-cr16.lo \
275
        elf32-cr16c.lo \
276
        elf32-cris.lo \
277
        elf32-crx.lo \
278
        elf32-d10v.lo \
279
        elf32-d30v.lo \
280
        elf32-dlx.lo \
281
        elf32-fr30.lo \
282
        elf32-frv.lo \
283
        elf32-gen.lo \
284
        elf32-h8300.lo \
285
        elf32-hppa.lo \
286
        elf32-i370.lo \
287
        elf32-i386.lo \
288
        elf32-i860.lo \
289
        elf32-i960.lo \
290
        elf32-ip2k.lo \
291
        elf32-iq2000.lo \
292
        elf32-lm32.lo \
293
        elf32-m32c.lo \
294
        elf32-m32r.lo \
295
        elf32-m68hc11.lo \
296
        elf32-m68hc12.lo \
297
        elf32-m68hc1x.lo \
298
        elf32-m68k.lo \
299
        elf32-m88k.lo \
300
        elf32-mcore.lo \
301
        elf32-mep.lo \
302
        elf32-microblaze.lo \
303
        elf32-mips.lo \
304
        elf32-moxie.lo \
305
        elf32-msp430.lo \
306
        elf32-mt.lo \
307
        elf32-openrisc.lo \
308
        elf32-or32.lo \
309
        elf32-pj.lo \
310
        elf32-ppc.lo \
311
        elf32-rx.lo \
312
        elf32-s390.lo \
313
        elf32-sh-symbian.lo \
314
        elf32-sh.lo \
315
        elf32-sh64-com.lo \
316
        elf32-sh64.lo \
317
        elf32-sparc.lo \
318
        elf32-spu.lo \
319
        elf32-tic6x.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-lib.lo \
392
        vms-misc.lo \
393
        xcofflink.lo \
394
        xsym.lo \
395
        xtensa-isa.lo \
396
        xtensa-modules.lo
397
 
398
BFD32_BACKENDS_CFILES = \
399
        aout-adobe.c \
400
        aout-arm.c \
401
        aout-cris.c \
402
        aout-ns32k.c \
403
        aout-sparcle.c \
404
        aout-tic30.c \
405
        aout0.c \
406
        aout32.c \
407
        armnetbsd.c \
408
        bout.c \
409
        cf-i386lynx.c \
410
        cf-sparclynx.c \
411
        coff-apollo.c \
412
        coff-arm.c \
413
        coff-aux.c \
414
        coff-go32.c \
415
        coff-h8300.c \
416
        coff-h8500.c \
417
        coff-i386.c \
418
        coff-i860.c \
419
        coff-i960.c \
420
        coff-m68k.c \
421
        coff-m88k.c \
422
        coff-mips.c \
423
        coff-or32.c \
424
        coff-rs6000.c \
425
        coff-sh.c \
426
        coff-sparc.c \
427
        coff-stgo32.c \
428
        coff-svm68k.c \
429
        coff-tic30.c \
430
        coff-tic4x.c \
431
        coff-tic54x.c \
432
        coff-tic80.c \
433
        coff-u68k.c \
434
        coff-w65.c \
435
        coff-we32k.c \
436
        coff-z80.c \
437
        coff-z8k.c \
438
        cofflink.c \
439
        dwarf1.c \
440
        ecoff.c \
441
        ecofflink.c \
442
        elf-attrs.c \
443
        elf-eh-frame.c \
444
        elf-ifunc.c \
445
        elf-m10200.c \
446
        elf-m10300.c \
447
        elf-strtab.c \
448
        elf-vxworks.c \
449
        elf.c \
450
        elf32-am33lin.c \
451
        elf32-arc.c \
452
        elf32-arm.c \
453
        elf32-avr.c \
454
        elf32-bfin.c \
455
        elf32-cr16.c \
456
        elf32-cr16c.c \
457
        elf32-cris.c \
458
        elf32-crx.c \
459
        elf32-d10v.c \
460
        elf32-d30v.c \
461
        elf32-dlx.c \
462
        elf32-fr30.c \
463
        elf32-frv.c \
464
        elf32-gen.c \
465
        elf32-h8300.c \
466
        elf32-hppa.c \
467
        elf32-i370.c \
468
        elf32-i386.c \
469
        elf32-i860.c \
470
        elf32-i960.c \
471
        elf32-ip2k.c \
472
        elf32-iq2000.c \
473
        elf32-lm32.c \
474
        elf32-m32c.c \
475
        elf32-m32r.c \
476
        elf32-m68hc11.c \
477
        elf32-m68hc12.c \
478
        elf32-m68hc1x.c \
479
        elf32-m68k.c \
480
        elf32-m88k.c \
481
        elf32-mcore.c \
482
        elf32-mep.c \
483
        elf32-microblaze.c \
484
        elf32-mips.c \
485
        elf32-moxie.c \
486
        elf32-msp430.c \
487
        elf32-mt.c \
488
        elf32-openrisc.c \
489
        elf32-or32.c \
490
        elf32-pj.c \
491
        elf32-ppc.c \
492
        elf32-rx.c \
493
        elf32-s390.c \
494
        elf32-sh-symbian.c \
495
        elf32-sh.c \
496
        elf32-sh64-com.c \
497
        elf32-sh64.c \
498
        elf32-sparc.c \
499
        elf32-spu.c \
500
        elf32-tic6x.c \
501
        elf32-v850.c \
502
        elf32-vax.c \
503
        elf32-xc16x.c \
504
        elf32-xstormy16.c \
505
        elf32-xtensa.c \
506
        elf32.c \
507
        elflink.c \
508
        elfxx-mips.c \
509
        elfxx-sparc.c \
510
        epoc-pe-arm.c \
511
        epoc-pei-arm.c \
512
        hp300bsd.c \
513
        hp300hpux.c \
514
        i386aout.c \
515
        i386bsd.c \
516
        i386dynix.c \
517
        i386freebsd.c \
518
        i386linux.c \
519
        i386lynx.c \
520
        i386mach3.c \
521
        i386msdos.c \
522
        i386netbsd.c \
523
        i386os9k.c \
524
        ieee.c \
525
        m68k4knetbsd.c \
526
        m68klinux.c \
527
        m68knetbsd.c \
528
        m88kmach3.c \
529
        m88kopenbsd.c \
530
        mach-o.c \
531
        mach-o-i386.c \
532
        mipsbsd.c \
533
        newsos3.c \
534
        nlm.c \
535
        nlm32-i386.c \
536
        nlm32-ppc.c \
537
        nlm32-sparc.c \
538
        nlm32.c \
539
        ns32knetbsd.c \
540
        oasys.c \
541
        pc532-mach.c \
542
        pdp11.c \
543
        pe-arm-wince.c \
544
        pe-arm.c \
545
        pe-i386.c \
546
        pe-mcore.c \
547
        pe-mips.c \
548
        pe-ppc.c \
549
        pe-sh.c \
550
        pef.c \
551
        pei-arm-wince.c \
552
        pei-arm.c \
553
        pei-i386.c \
554
        pei-mcore.c \
555
        pei-mips.c \
556
        pei-ppc.c \
557
        pei-sh.c \
558
        plugin.c \
559
        ppcboot.c \
560
        reloc16.c \
561
        riscix.c \
562
        som.c \
563
        sparclinux.c \
564
        sparclynx.c \
565
        sparcnetbsd.c \
566
        sunos.c \
567
        vax1knetbsd.c \
568
        vaxbsd.c \
569
        vaxnetbsd.c \
570
        versados.c \
571
        vms-lib.c \
572
        vms-misc.c \
573
        xcofflink.c \
574
        xsym.c \
575
        xtensa-isa.c \
576
        xtensa-modules.c
577
 
578
# The .o files needed by all of the 64 bit vectors that are configured into
579
# target_vector in targets.c if configured with --enable-targets=all
580
# and --enable-64-bit-bfd.
581
# elf32-ia64.c requires a 64-bit bfd_vma, and hence can not be put in
582
# BFD32_BACKENDS.
583
BFD64_BACKENDS = \
584
        aix5ppc-core.lo \
585
        aout64.lo \
586
        coff-alpha.lo \
587
        coff-x86_64.lo \
588
        coff64-rs6000.lo \
589
        demo64.lo \
590
        elf32-ia64.lo \
591
        elf32-score.lo \
592
        elf32-score7.lo \
593
        elf64-alpha.lo \
594
        elf64-gen.lo \
595
        elf64-hppa.lo \
596
        elf64-ia64.lo \
597
        elf64-mips.lo \
598
        elf64-mmix.lo \
599
        elf64-ppc.lo \
600
        elf64-s390.lo \
601
        elf64-sh64.lo \
602
        elf64-sparc.lo \
603
        elf64-x86-64.lo \
604
        elf64.lo \
605
        elfn32-mips.lo \
606
        mach-o-x86-64.lo \
607
        mmo.lo \
608
        nlm32-alpha.lo \
609
        nlm64.lo \
610
        pe-x86_64.lo \
611
        pei-ia64.lo \
612
        pei-x86_64.lo \
613
        pepigen.lo \
614
        pex64igen.lo \
615
        vms-alpha.lo
616
 
617
BFD64_BACKENDS_CFILES = \
618
        aix5ppc-core.c \
619
        aout64.c \
620
        coff-alpha.c \
621
        coff-x86_64.c \
622
        coff64-rs6000.c \
623
        demo64.c \
624
        elf32-score.c \
625
        elf32-score7.c \
626
        elf64-alpha.c \
627
        elf64-gen.c \
628
        elf64-hppa.c \
629
        elf64-mips.c \
630
        elf64-mmix.c \
631
        elf64-ppc.c \
632
        elf64-s390.c \
633
        elf64-sh64.c \
634
        elf64-sparc.c \
635
        elf64-x86-64.c \
636
        elf64.c \
637
        elfn32-mips.c \
638
        mach-o-x86-64.c \
639
        mmo.c \
640
        nlm32-alpha.c \
641
        nlm64.c \
642
        pe-x86_64.c \
643
        pei-ia64.c \
644
        pei-x86_64.c \
645
        vms-alpha.c
646
 
647
OPTIONAL_BACKENDS = \
648
        aix386-core.lo \
649
        cisco-core.lo \
650
        hpux-core.lo \
651
        irix-core.lo \
652
        lynx-core.lo \
653
        osf-core.lo \
654
        sco5-core.lo \
655
        trad-core.lo
656
 
657
OPTIONAL_BACKENDS_CFILES = \
658
        aix386-core.c \
659
        cisco-core.c \
660
        hpux-core.c \
661
        irix-core.c \
662
        lynx-core.c \
663
        osf-core.c \
664
        sco5-core.c \
665
        trad-core.c
666
 
667
# We want to rerun configure if configure.in, config.bfd or
668
# configure.host change. configure.in is needed since the version
669
# number in Makefile comes from configure.in.
670
CONFIG_STATUS_DEPENDENCIES = \
671
        $(srcdir)/configure.in \
672
        $(srcdir)/config.bfd \
673
        $(srcdir)/configure.host
674
 
675
# These are defined by configure.in:
676
WORDSIZE = @wordsize@
677
ALL_BACKENDS = @all_backends@
678
BFD_BACKENDS = @bfd_backends@
679
BFD_MACHINES = @bfd_machines@
680
TDEFAULTS = @tdefaults@
681
HAVEVECS = @havevecs@
682
 
683
INCLUDES = @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) \
684
        $(HAVEVECS) @INCINTL@
685
 
686
# C source files that correspond to .o's.
687
SOURCE_CFILES = \
688
        $(BFD32_LIBS_CFILES) \
689
        $(BFD64_LIBS_CFILES) \
690
        $(ALL_MACHINES_CFILES) \
691
        $(BFD32_BACKENDS_CFILES) \
692
        $(BFD64_BACKENDS_CFILES) \
693
        $(OPTIONAL_BACKENDS_CFILES)
694
 
695
BUILD_CFILES = \
696
        elf32-ia64.c elf64-ia64.c peigen.c pepigen.c pex64igen.c
697
 
698
CFILES = $(SOURCE_CFILES) $(BUILD_CFILES)
699
 
700
## This is a list of all .h files which are in the source tree.
701
SOURCE_HFILES = \
702
        aout-target.h aoutf1.h aoutx.h coffcode.h coffswap.h ecoffswap.h \
703
        elf-bfd.h elf-hppa.h elf32-hppa.h \
704
        elf64-hppa.h elfcode.h elfcore.h \
705
        freebsd.h genlink.h go32stub.h \
706
        libaout.h libbfd.h libcoff.h libecoff.h libhppa.h libieee.h \
707
        libnlm.h liboasys.h libpei.h libxcoff.h mach-o.h \
708
        netbsd.h nlm-target.h nlmcode.h nlmswap.h ns32k.h \
709
        pef.h pef-traceback.h peicode.h som.h version.h \
710
        vms.h xcoff-target.h xsym.h
711
 
712
## ... and all .h files which are in the build tree.
713
BUILD_HFILES = \
714
        bfdver.h elf32-target.h elf64-target.h targmatch.h bfd_stdint.h
715
 
716
# Ensure they are built early:
717
BUILT_SOURCES = $(BUILD_HFILES)
718
 
719
HFILES = $(SOURCE_HFILES) $(BUILD_HFILES)
720
 
721
SRC_POTFILES = $(SOURCE_CFILES) $(SOURCE_HFILES)
722
BLD_POTFILES = $(BUILD_CFILES) $(BUILD_HFILES)
723
 
724
po/SRC-POTFILES.in: @MAINT@ Makefile $(SRC_POTFILES)
725
        for file in $(SRC_POTFILES); do echo $$file; done \
726
          | LC_ALL=C sort > tmp.src \
727
          && mv tmp.src $(srcdir)/po/SRC-POTFILES.in
728
 
729
po/BLD-POTFILES.in: @MAINT@ Makefile $(BLD_POTFILES)
730
        for file in $(BLD_POTFILES); do echo $$file; done \
731
          | LC_ALL=C sort > tmp.bld \
732
          && mv tmp.bld $(srcdir)/po/BLD-POTFILES.in
733
 
734
all diststuff: info
735
 
736
# Various kinds of .o files to put in libbfd.a:
737
# BFD_BACKENDS  Routines the configured targets need.
738
# BFD_MACHINES  Architecture-specific routines the configured targets need.
739
# COREFILE      Core file routines for a native configuration
740
# bfd64_libs    Routines for 64bit support
741
OFILES = $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@ @bfd64_libs@
742
 
743
stamp-ofiles: Makefile
744
        rm -f tofiles
745
        f=""; \
746
        for i in $(OFILES) ; do \
747
          case " $$f " in \
748
            *" $$i "*) ;; \
749
            *) f="$$f $$i" ;; \
750
          esac ; \
751
        done ; \
752
        echo $$f > tofiles
753
        $(SHELL) $(srcdir)/../move-if-change tofiles ofiles
754
        touch stamp-ofiles
755
 
756
ofiles: stamp-ofiles ; @true
757
 
758
# Since BFD64_LIBS is optional and we can't have substitution in
759
# libbfd_la_SOURCES, we put BFD64_LIBS in OFILES instead.
760
# However, list all sources in EXTRA_libbfd_la_SOURCES so the
761
# dependency tracking fragments are picked up in the Makefile.
762
libbfd_la_SOURCES = $(BFD32_LIBS_CFILES)
763
EXTRA_libbfd_la_SOURCES = $(CFILES)
764
libbfd_la_DEPENDENCIES = $(OFILES) ofiles
765
libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ $(LIBDL)
766
libbfd_la_LDFLAGS += -release `cat libtool-soversion` @SHARED_LDFLAGS@
767
 
768
# libtool will build .libs/libbfd.a.  We create libbfd.a in the build
769
# directory so that we don't have to convert all the programs that use
770
# libbfd.a simultaneously.  This is a hack which should be removed if
771
# everything else starts using libtool.  FIXME.
772
 
773
noinst_LIBRARIES = libbfd.a
774
libbfd_a_SOURCES =
775
 
776
stamp-lib: libbfd.la
777
        libtooldir=`$(LIBTOOL) --config | sed -n -e 's/^objdir=//p'`; \
778
        if [ -f $$libtooldir/libbfd.a ]; then \
779
          cp $$libtooldir/libbfd.a libbfd.tmp; \
780
          $(RANLIB) libbfd.tmp; \
781
          $(SHELL) $(srcdir)/../move-if-change libbfd.tmp libbfd.a; \
782
        else true; fi
783
        touch stamp-lib
784
 
785
libbfd.a: stamp-lib ; @true
786
 
787
# This file holds an array associating configuration triplets and
788
# vector names.  It is built from config.bfd.  It is not compiled by
789
# itself, but is included by targets.c.
790
targmatch.h: config.bfd targmatch.sed
791
        rm -f targmatch.h
792
        sed -f $(srcdir)/targmatch.sed < $(srcdir)/config.bfd > targmatch.new
793
        mv -f targmatch.new targmatch.h
794
 
795
# When compiling archures.c and targets.c, supply the default target
796
# info from configure.
797
 
798
targets.lo: targets.c Makefile
799
if am__fastdepCC
800
        $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(TDEFAULTS) $(srcdir)/targets.c
801
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
802
else
803
if AMDEP
804
        source='targets.c' object='$@' libtool=yes @AMDEPBACKSLASH@
805
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
806
endif
807
        $(LTCOMPILE) -c -o $@ $(TDEFAULTS) $(srcdir)/targets.c
808
endif
809
 
810
archures.lo: archures.c Makefile
811
if am__fastdepCC
812
        $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(TDEFAULTS) $(srcdir)/archures.c
813
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
814
else
815
if AMDEP
816
        source='archures.c' object='$@' libtool=yes @AMDEPBACKSLASH@
817
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
818
endif
819
        $(LTCOMPILE) -c -o $@ $(TDEFAULTS) $(srcdir)/archures.c
820
endif
821
 
822
dwarf2.lo: dwarf2.c Makefile
823
if am__fastdepCC
824
        $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ -DDEBUGDIR=\"$(DEBUGDIR)\" $(srcdir)/dwarf2.c
825
        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
826
else
827
if AMDEP
828
        source='dwarf2.c' object='$@' libtool=yes @AMDEPBACKSLASH@
829
        DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
830
endif
831
        $(LTCOMPILE) -c -o $@ -DDEBUGDIR=\"$(DEBUGDIR)\" $(srcdir)/dwarf2.c
832
endif
833
 
834
elf32-target.h : elfxx-target.h
835
        rm -f elf32-target.h
836
        sed -e s/NN/32/g < $(srcdir)/elfxx-target.h > elf32-target.new
837
        mv -f elf32-target.new elf32-target.h
838
 
839
elf64-target.h : elfxx-target.h
840
        rm -f elf64-target.h
841
        sed -e s/NN/64/g < $(srcdir)/elfxx-target.h > elf64-target.new
842
        mv -f elf64-target.new elf64-target.h
843
 
844
elf32-ia64.c : elfxx-ia64.c
845
        rm -f elf32-ia64.c
846
        sed -e s/NN/32/g < $(srcdir)/elfxx-ia64.c > elf32-ia64.new
847
        mv -f elf32-ia64.new elf32-ia64.c
848
 
849
elf64-ia64.c : elfxx-ia64.c
850
        rm -f elf64-ia64.c
851
        sed -e s/NN/64/g < $(srcdir)/elfxx-ia64.c > elf64-ia64.new
852
        mv -f elf64-ia64.new elf64-ia64.c
853
 
854
peigen.c : peXXigen.c
855
        rm -f peigen.c
856
        sed -e s/XX/pe/g < $(srcdir)/peXXigen.c > peigen.new
857
        mv -f peigen.new peigen.c
858
 
859
pepigen.c : peXXigen.c
860
        rm -f pepigen.c
861
        sed -e s/XX/pep/g < $(srcdir)/peXXigen.c > pepigen.new
862
        mv -f pepigen.new pepigen.c
863
 
864
pex64igen.c: peXXigen.c
865
        rm -f pex64igen.c
866
        sed -e s/XX/pex64/g < $(srcdir)/peXXigen.c > pex64igen.new
867
        mv -f pex64igen.new pex64igen.c
868
 
869
BFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h
870
LOCAL_H_DEPS= libbfd.h sysdep.h config.h
871
$(BFD32_LIBS) \
872
 $(BFD64_LIBS) \
873
 $(ALL_MACHINES) \
874
 $(BFD32_BACKENDS) \
875
 $(BFD64_BACKENDS) \
876
 $(OPTIONAL_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
877
 
878
host-aout.lo: Makefile
879
 
880
# The following program can be used to generate a simple config file
881
# which can be folded into an h-XXX file for a new host, with some editing.
882
aout-params.h: gen-aout
883
        ./gen-aout host > aout-params.h
884
gen-aout: $(srcdir)/gen-aout.c Makefile
885
        $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
886
 
887
$(BFD_H): stmp-bfd-h ; @true
888
 
889
stmp-bfd-h: bfd-in3.h
890
        rm -f bfd-tmp.h
891
        cp bfd-in3.h bfd-tmp.h
892
        $(SHELL) $(srcdir)/../move-if-change bfd-tmp.h $(BFD_H)
893
        rm -f bfd-tmp.h
894
        touch stmp-bfd-h
895
 
896
BFD_H_FILES = bfd-in.h init.c opncls.c libbfd.c section.c archures.c \
897
        reloc.c syms.c bfd.c bfdio.c bfdwin.c \
898
        archive.c corefile.c targets.c format.c compress.c
899
BFD64_H_FILES = archive64.c
900
LIBBFD_H_FILES = libbfd-in.h init.c libbfd.c bfdio.c bfdwin.c \
901
        cache.c reloc.c archures.c elf.c
902
LIBCOFF_H_FILES = libcoff-in.h coffcode.h
903
 
904
# Could really use a "copy-if-change"...
905
headers:
906
        (cd $(bfddocdir); $(MAKE) protos $(FLAGS_TO_PASS))
907
        cp $(bfddocdir)/bfd.h bfd-in2.h-new
908
        $(SHELL) $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
909
        cp $(bfddocdir)/libbfd.h libbfd.h-new
910
        $(SHELL) $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
911
        cp $(bfddocdir)/libcoff.h libcoff.h-new
912
        $(SHELL) $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
913
 
914
# We only rebuild the header files automatically if we have been
915
# configured with --enable-maintainer-mode.
916
 
917
$(srcdir)/bfd-in2.h: @MAINT@ stmp-bin2-h ; @true
918
stmp-bin2-h: $(BFD_H_FILES) $(BFD64_H_FILES)
919
        (cd $(bfddocdir); $(MAKE) $(FLAGS_TO_PASS) bfd.h)
920
        cp $(bfddocdir)/bfd.h bfd-in2.h-new
921
        $(SHELL) $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
922
        touch stmp-bin2-h
923
 
924
$(srcdir)/libbfd.h: @MAINT@ stmp-lbfd-h ; @true
925
stmp-lbfd-h: $(LIBBFD_H_FILES)
926
        (cd $(bfddocdir); $(MAKE) $(FLAGS_TO_PASS) libbfd.h)
927
        cp $(bfddocdir)/libbfd.h libbfd.h-new
928
        $(SHELL) $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
929
        touch stmp-lbfd-h
930
 
931
$(srcdir)/libcoff.h: @MAINT@ stmp-lcoff-h ; @true
932
stmp-lcoff-h: $(LIBCOFF_H_FILES)
933
        (cd $(bfddocdir); $(MAKE) $(FLAGS_TO_PASS) libcoff.h)
934
        cp $(bfddocdir)/libcoff.h libcoff.h-new
935
        $(SHELL) $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
936
        touch stmp-lcoff-h
937
 
938
MOSTLYCLEANFILES = ofiles stamp-ofiles
939
 
940
CLEANFILES = bfd.h dep.sed stmp-bfd-h DEP DEPA DEP1 DEP2 libbfd.a stamp-lib \
941
        stmp-bin2-h stmp-lbfd-h stmp-lcoff-h
942
 
943
DISTCLEANFILES = $(BUILD_CFILES) $(BUILD_HFILES) libtool-soversion
944
 
945
bfdver.h: $(srcdir)/version.h $(srcdir)/Makefile.in
946
        @echo "creating $@"
947
        @bfd_version=`echo "$(VERSION)" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
948
        bfd_version_string="\"$(VERSION)\"" ;\
949
        bfd_soversion="$(VERSION)" ;\
950
        bfd_version_package="\"$(PKGVERSION)\"" ;\
951
        report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
952
        if test "x$(RELEASE)" = x ; then \
953
          bfd_version_date=`sed -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\
954
          bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\
955
          bfd_soversion="$(VERSION).$${bfd_version_date}" ;\
956
        fi ;\
957
        sed -e "s,@bfd_version@,$$bfd_version," \
958
            -e "s,@bfd_version_string@,$$bfd_version_string," \
959
            -e "s,@bfd_version_package@,$$bfd_version_package," \
960
            -e "s,@report_bugs_to@,$$report_bugs_to," \
961
            < $(srcdir)/version.h > $@; \
962
        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.