]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - bfd/doc/Makefile.am
import gdb-1999-08-09 snapshot
[thirdparty/binutils-gdb.git] / bfd / doc / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 AUTOMAKE_OPTIONS = cygnus
4
5 DOCFILES = aoutx.texi archive.texi archures.texi \
6 bfdt.texi cache.texi coffcode.texi \
7 core.texi elf.texi elfcode.texi format.texi libbfd.texi \
8 opncls.texi reloc.texi section.texi \
9 syms.texi targets.texi init.texi hash.texi linker.texi
10
11 PROTOS = archive.p archures.p bfd.p \
12 core.p format.p \
13 libbfd.p opncls.p reloc.p \
14 section.p syms.p targets.p \
15 format.p core.p init.p
16
17 IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip coffcode.ip
18
19 # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction
20 # between VPATH and suffix rules. If you use GNU Make, perhaps other Makes,
21 # you don't need these three:
22 SRCDOC = $(srcdir)/../aoutx.h $(srcdir)/../archive.c \
23 $(srcdir)/../archures.c $(srcdir)/../bfd.c \
24 $(srcdir)/../cache.c $(srcdir)/../coffcode.h \
25 $(srcdir)/../corefile.c $(srcdir)/../elf.c \
26 $(srcdir)/../elfcode.h $(srcdir)/../format.c \
27 $(srcdir)/../libbfd.c $(srcdir)/../opncls.c \
28 $(srcdir)/../reloc.c $(srcdir)/../section.c \
29 $(srcdir)/../syms.c $(srcdir)/../targets.c \
30 $(srcdir)/../hash.c $(srcdir)/../linker.c
31
32 SRCPROT = $(srcdir)/../archive.c $(srcdir)/../archures.c \
33 $(srcdir)/../bfd.c $(srcdir)/../coffcode.h $(srcdir)/../corefile.c \
34 $(srcdir)/../format.c $(srcdir)/../libbfd.c \
35 $(srcdir)/../opncls.c $(srcdir)/../reloc.c \
36 $(srcdir)/../section.c $(srcdir)/../syms.c \
37 $(srcdir)/../targets.c $(srcdir)/../init.c
38
39 SRCIPROT = $(srcdir)/../cache.c $(srcdir)/../libbfd.c \
40 $(srcdir)/../reloc.c $(srcdir)/../cpu-h8300.c \
41 $(srcdir)/../cpu-i960.c $(srcdir)/../archures.c \
42 $(srcdir)/../init.c
43
44 TEXIDIR = $(srcdir)/../../texinfo/fsf
45
46 info_TEXINFOS = bfd.texinfo
47
48 MKDOC = chew$(EXEEXT_FOR_BUILD)
49
50 $(MKDOC): chew.o
51 $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(LOADLIBES) $(LDFLAGS)
52
53 chew.o: chew.c
54 $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS) $(srcdir)/chew.c
55
56 protos: libbfd.h libcoff.h bfd.h
57
58 bfd.info bfd.dvi: $(DOCFILES) bfdsumm.texi bfd.texinfo
59
60 # We can't replace these rules with an implicit rule, because
61 # makes without VPATH support couldn't find the .h files in `..'.
62
63 # We use s-XXX targets so that we can distribute the info files,
64 # and permit people to rebuild them, without requiring the makeinfo
65 # program. If somebody tries to rebuild info, but none of the .texi
66 # files have changed, then this Makefile will build chew, and will
67 # build all of the stamp files, but will not actually have to rebuild
68 # bfd.info.
69
70 s-aoutx: $(MKDOC) $(srcdir)/../aoutx.h $(srcdir)/doc.str
71 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.tmp
72 $(srcdir)/../../move-if-change aoutx.tmp aoutx.texi
73 touch s-aoutx
74 aoutx.texi: s-aoutx
75
76 s-archive: $(MKDOC) $(srcdir)/../archive.c $(srcdir)/doc.str
77 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.tmp
78 $(srcdir)/../../move-if-change archive.tmp archive.texi
79 touch s-archive
80 archive.texi: s-archive
81
82 s-archures: $(MKDOC) $(srcdir)/../archures.c $(srcdir)/doc.str
83 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.tmp
84 $(srcdir)/../../move-if-change archures.tmp archures.texi
85 touch s-archures
86 archures.texi: s-archures
87
88 # We use bfdt.texi, rather than bfd.texi, to avoid conflicting with
89 # bfd.texinfo on an 8.3 filesystem.
90 s-bfd: $(MKDOC) $(srcdir)/../bfd.c $(srcdir)/doc.str
91 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.tmp
92 $(srcdir)/../../move-if-change bfd.tmp bfdt.texi
93 touch s-bfd
94 bfdt.texi: s-bfd
95
96 s-cache: $(MKDOC) $(srcdir)/../cache.c $(srcdir)/doc.str
97 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.tmp
98 $(srcdir)/../../move-if-change cache.tmp cache.texi
99 touch s-cache
100 cache.texi: s-cache
101
102 s-coffcode: $(MKDOC) $(srcdir)/../coffcode.h $(srcdir)/doc.str
103 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../coffcode.h >coffcode.tmp
104 $(srcdir)/../../move-if-change coffcode.tmp coffcode.texi
105 touch s-coffcode
106 coffcode.texi: s-coffcode
107
108 s-core: $(MKDOC) $(srcdir)/../corefile.c $(srcdir)/doc.str
109 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../corefile.c >core.tmp
110 $(srcdir)/../../move-if-change core.tmp core.texi
111 touch s-core
112 core.texi: s-core
113
114 s-elf: $(MKDOC) $(srcdir)/../elf.c $(srcdir)/doc.str
115 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elf.c >elf.tmp
116 $(srcdir)/../../move-if-change elf.tmp elf.texi
117 touch s-elf
118 elf.texi: s-elf
119
120 s-elfcode: $(MKDOC) $(srcdir)/../elfcode.h $(srcdir)/doc.str
121 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elfcode.h >elfcode.tmp
122 $(srcdir)/../../move-if-change elfcode.tmp elfcode.texi
123 touch s-elfcode
124 elfcode.texi: s-elfcode
125
126 s-format: $(MKDOC) $(srcdir)/../format.c $(srcdir)/doc.str
127 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../format.c >format.tmp
128 $(srcdir)/../../move-if-change format.tmp format.texi
129 touch s-format
130 format.texi: s-format
131
132 s-libbfd: $(MKDOC) $(srcdir)/../libbfd.c $(srcdir)/doc.str
133 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.tmp
134 $(srcdir)/../../move-if-change libbfd.tmp libbfd.texi
135 touch s-libbfd
136 libbfd.texi: s-libbfd
137
138 s-opncls: $(MKDOC) $(srcdir)/../opncls.c $(srcdir)/doc.str
139 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../opncls.c >opncls.tmp
140 $(srcdir)/../../move-if-change opncls.tmp opncls.texi
141 touch s-opncls
142 opncls.texi: s-opncls
143
144 s-reloc: $(MKDOC) $(srcdir)/../reloc.c $(srcdir)/doc.str
145 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.tmp
146 $(srcdir)/../../move-if-change reloc.tmp reloc.texi
147 touch s-reloc
148 reloc.texi: s-reloc
149
150 s-section: $(MKDOC) $(srcdir)/../section.c $(srcdir)/doc.str
151 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../section.c >section.tmp
152 $(srcdir)/../../move-if-change section.tmp section.texi
153 touch s-section
154 section.texi: s-section
155
156 s-syms: $(MKDOC) $(srcdir)/../syms.c $(srcdir)/doc.str
157 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.tmp
158 $(srcdir)/../../move-if-change syms.tmp syms.texi
159 touch s-syms
160 syms.texi: s-syms
161
162 s-targets: $(MKDOC) $(srcdir)/../targets.c $(srcdir)/doc.str
163 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../targets.c >targets.tmp
164 $(srcdir)/../../move-if-change targets.tmp targets.texi
165 touch s-targets
166 targets.texi: s-targets
167
168 s-init: $(MKDOC) $(srcdir)/../init.c $(srcdir)/doc.str
169 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../init.c >init.tmp
170 $(srcdir)/../../move-if-change init.tmp init.texi
171 touch s-init
172 init.texi: s-init
173
174 s-hash: $(MKDOC) $(srcdir)/../hash.c $(srcdir)/doc.str
175 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../hash.c >hash.tmp
176 $(srcdir)/../../move-if-change hash.tmp hash.texi
177 touch s-hash
178 hash.texi: s-hash
179
180 s-linker: $(MKDOC) $(srcdir)/../linker.c $(srcdir)/doc.str
181 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../linker.c >linker.tmp
182 $(srcdir)/../../move-if-change linker.tmp linker.texi
183 touch s-linker
184 linker.texi: s-linker
185
186 libbfd.h: $(srcdir)/../libbfd-in.h \
187 $(srcdir)/../init.c \
188 $(srcdir)/../libbfd.c \
189 $(srcdir)/../cache.c \
190 $(srcdir)/../reloc.c \
191 $(srcdir)/../archures.c \
192 $(srcdir)/proto.str \
193 $(MKDOC)
194 cat $(srcdir)/../libbfd-in.h >libbfd.h
195 ./$(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../init.c >>libbfd.h
196 ./$(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../libbfd.c >>libbfd.h
197 ./$(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../cache.c >>libbfd.h
198 ./$(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../reloc.c >>libbfd.h
199 ./$(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../archures.c >>libbfd.h
200 ./$(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../elf.c >>libbfd.h
201
202 libcoff.h: $(srcdir)/../libcoff-in.h \
203 $(srcdir)/../coffcode.h \
204 $(srcdir)/proto.str \
205 $(MKDOC)
206 cat $(srcdir)/../libcoff-in.h >libcoff.h
207 ./$(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../coffcode.h >>libcoff.h
208
209 bfd.h: $(srcdir)/../bfd-in.h \
210 $(srcdir)/../init.c \
211 $(srcdir)/../opncls.c \
212 $(srcdir)/../libbfd.c \
213 $(srcdir)/../section.c \
214 $(srcdir)/../archures.c \
215 $(srcdir)/../reloc.c \
216 $(srcdir)/../syms.c \
217 $(srcdir)/../bfd.c \
218 $(srcdir)/../archive.c \
219 $(srcdir)/../corefile.c \
220 $(srcdir)/../targets.c \
221 $(srcdir)/../format.c \
222 $(srcdir)/proto.str \
223 $(MKDOC)
224 cat $(srcdir)/../bfd-in.h >bfd.h
225 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../init.c >>bfd.h
226 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../opncls.c >>bfd.h
227 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../libbfd.c >>bfd.h
228 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../section.c >>bfd.h
229 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archures.c >>bfd.h
230 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../reloc.c >>bfd.h
231 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../syms.c >>bfd.h
232 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../bfd.c >>bfd.h
233 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archive.c >>bfd.h
234 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../corefile.c >>bfd.h
235 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../targets.c >>bfd.h
236 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../format.c >>bfd.h
237 echo "#ifdef __cplusplus" >>bfd.h
238 echo "}" >>bfd.h
239 echo "#endif" >>bfd.h
240 echo "#endif" >>bfd.h
241
242 noinst_TEXINFOS = bfdint.texi
243
244 MOSTLYCLEANFILES = $(MKDOC) *.o
245
246 CLEANFILES = s-* *.p *.ip
247
248 DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log
249
250 MAINTAINERCLEANFILES = $(DOCFILES)