]>
Commit | Line | Data |
---|---|---|
40c0f22d RP |
1 | .SUFFIXES: .texi .o .c .h .p .ip |
2 | VPATH=.. | |
3 | .c.texi: | |
4 | ./scanit $< $@ | |
5 | ||
6 | .h.texi: | |
7 | ./scanit $< $@ | |
8 | ||
9 | .c.p: | |
10 | ./scanph $< $@ | |
11 | ||
12 | .h.p: | |
13 | ./scanph $< $@ | |
14 | ||
15 | .c.ip: | |
16 | ./scanph -i $< $@ | |
17 | ||
18 | # main GDB source directory | |
19 | srcdir = .. | |
20 | ||
21 | TEXIDIR=${srcdir}/../texinfo/fsf | |
22 | ||
23 | DOCFILES = aoutx.texi archive.texi archures.texi \ | |
24 | bfd.texi cache.texi coffcode.texi \ | |
25 | core.texi format.texi libbfd.texi \ | |
26 | opncls.texi reloc.texi section.texi \ | |
27 | syms.texi targets.texi init.texi ctor.texi | |
28 | ||
29 | ||
30 | PROTOS = archive.p archures.p bfd.p \ | |
31 | coffcode.p core.p format.p \ | |
32 | libbfd.p opncls.p reloc.p \ | |
33 | section.p syms.p targets.p \ | |
34 | format.p coffcode.p core.p machines.p init.p | |
35 | ||
36 | IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip ctor.ip | |
37 | ||
38 | # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction | |
39 | # between VPATH and suffix rules. If you use GNU Make, perhaps other Makes, | |
40 | # you don't need these three: | |
41 | SRCDOC = aoutx.h archive.c archures.c \ | |
42 | bfd.c cache.c coffcode.h \ | |
43 | core.c format.c libbfd.c \ | |
44 | opncls.c reloc.c section.c \ | |
45 | syms.c targets.c init.c | |
46 | ||
47 | SRCPROT = archive.c archures.c bfd.c \ | |
48 | coffcode.h core.c format.c \ | |
49 | libbfd.c opncls.c reloc.c \ | |
50 | section.c syms.c targets.c init.c | |
51 | ||
52 | SRCIPROT = cache.c libbfd.c reloc.c cpu-h8300.c cpu-i960.c archures.c init.c ctor.c | |
53 | ||
54 | all: bfd.info | |
55 | ||
56 | docs: protos bfd.info bfd.dvi bfd.ps | |
57 | ||
58 | protos: $(PROTOS) $(IPROTOS) | |
59 | sed -f intobfd bfd-in.h > bfd.h | |
60 | sed -f tolibbfd libbfd-in.h > libbfd.h | |
61 | sed -f tolibcoff libcoff-in.h > libcoff.h | |
62 | ||
63 | # Following three rules only for the benefit of Sun Make; see comment above | |
64 | $(DOCFILES) : $(SRCDOC) | |
65 | $(PROTOS) : $(SRCPROT) | |
66 | $(IPROTOS) : $(SRCIPROT) | |
67 | ||
68 | clean: | |
69 | rm -f $(PROTOS) *.p *.ip *.h bfd.?? $(DOCFILES) bfd.dvi bfd.ps *~* *# bfd.??? | |
70 | ||
71 | bfd.info: $(DOCFILES) bfd.texinfo | |
72 | makeinfo bfd.texinfo | |
73 | ||
74 | bfd.dvi: $(DOCFILES) bfd.texinfo | |
75 | TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo | |
76 | texindex bfd.?? | |
77 | TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo | |
78 | ||
79 | bfd.ps: bfd.dvi | |
80 | dvips bfd -o | |
81 | ||
82 | quickdoc: $(DOCFILES) bfd.texinfo | |
83 | TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo |