*** empty log message ***
[deliverable/binutils-gdb.git] / bfd / doc / Makefile.am
CommitLineData
252b5132
RH
1## Process this file with automake to generate Makefile.in
2
8976e9a2 3AUTOMAKE_OPTIONS = 1.9 cygnus
252b5132
RH
4
5DOCFILES = aoutx.texi archive.texi archures.texi \
6 bfdt.texi cache.texi coffcode.texi \
93509525
KD
7 core.texi elf.texi elfcode.texi format.texi \
8 libbfd.texi bfdwin.texi bfdio.texi \
252b5132 9 opncls.texi reloc.texi section.texi \
3c3bdf30
NC
10 syms.texi targets.texi init.texi hash.texi linker.texi \
11 mmo.texi
252b5132
RH
12
13PROTOS = archive.p archures.p bfd.p \
14 core.p format.p \
93509525 15 bfdio.p bfdwin.p \
252b5132
RH
16 libbfd.p opncls.p reloc.p \
17 section.p syms.p targets.p \
18 format.p core.p init.p
19
20IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip coffcode.ip
21
22# SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction
23# between VPATH and suffix rules. If you use GNU Make, perhaps other Makes,
24# you don't need these three:
25SRCDOC = $(srcdir)/../aoutx.h $(srcdir)/../archive.c \
26 $(srcdir)/../archures.c $(srcdir)/../bfd.c \
93509525 27 $(srcdir)/../bfdio.c $(srcdir)/../bfdwin.c \
252b5132
RH
28 $(srcdir)/../cache.c $(srcdir)/../coffcode.h \
29 $(srcdir)/../corefile.c $(srcdir)/../elf.c \
30 $(srcdir)/../elfcode.h $(srcdir)/../format.c \
31 $(srcdir)/../libbfd.c $(srcdir)/../opncls.c \
32 $(srcdir)/../reloc.c $(srcdir)/../section.c \
33 $(srcdir)/../syms.c $(srcdir)/../targets.c \
3c3bdf30
NC
34 $(srcdir)/../hash.c $(srcdir)/../linker.c \
35 $(srcdir)/../mmo.c
252b5132
RH
36
37SRCPROT = $(srcdir)/../archive.c $(srcdir)/../archures.c \
38 $(srcdir)/../bfd.c $(srcdir)/../coffcode.h $(srcdir)/../corefile.c \
39 $(srcdir)/../format.c $(srcdir)/../libbfd.c \
93509525 40 $(srcdir)/../bfdio.c $(srcdir)/../bfdwin.c \
252b5132
RH
41 $(srcdir)/../opncls.c $(srcdir)/../reloc.c \
42 $(srcdir)/../section.c $(srcdir)/../syms.c \
43 $(srcdir)/../targets.c $(srcdir)/../init.c
44
45SRCIPROT = $(srcdir)/../cache.c $(srcdir)/../libbfd.c \
93509525 46 $(srcdir)/../bfdio.c $(srcdir)/../bfdwin.c \
252b5132
RH
47 $(srcdir)/../reloc.c $(srcdir)/../cpu-h8300.c \
48 $(srcdir)/../cpu-i960.c $(srcdir)/../archures.c \
49 $(srcdir)/../init.c
50
51TEXIDIR = $(srcdir)/../../texinfo/fsf
52
53info_TEXINFOS = bfd.texinfo
54
55MKDOC = chew$(EXEEXT_FOR_BUILD)
56
57$(MKDOC): chew.o
05e24d22 58 $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD)
252b5132
RH
59
60chew.o: chew.c
05e24d22 61 $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS_FOR_BUILD) $(srcdir)/chew.c
252b5132
RH
62
63protos: libbfd.h libcoff.h bfd.h
64
8976e9a2 65$(srcdir)/bfd.info bfd.dvi: $(DOCFILES) bfdsumm.texi bfd.texinfo
252b5132
RH
66
67# We can't replace these rules with an implicit rule, because
68# makes without VPATH support couldn't find the .h files in `..'.
69
70# We use s-XXX targets so that we can distribute the info files,
71# and permit people to rebuild them, without requiring the makeinfo
72# program. If somebody tries to rebuild info, but none of the .texi
73# files have changed, then this Makefile will build chew, and will
74# build all of the stamp files, but will not actually have to rebuild
75# bfd.info.
76
77s-aoutx: $(MKDOC) $(srcdir)/../aoutx.h $(srcdir)/doc.str
78 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.tmp
d639b1c3 79 $(SHELL) $(srcdir)/../../move-if-change aoutx.tmp aoutx.texi
252b5132
RH
80 touch s-aoutx
81aoutx.texi: s-aoutx
82
83s-archive: $(MKDOC) $(srcdir)/../archive.c $(srcdir)/doc.str
84 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.tmp
d639b1c3 85 $(SHELL) $(srcdir)/../../move-if-change archive.tmp archive.texi
252b5132
RH
86 touch s-archive
87archive.texi: s-archive
88
89s-archures: $(MKDOC) $(srcdir)/../archures.c $(srcdir)/doc.str
90 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.tmp
d639b1c3 91 $(SHELL) $(srcdir)/../../move-if-change archures.tmp archures.texi
252b5132
RH
92 touch s-archures
93archures.texi: s-archures
94
95# We use bfdt.texi, rather than bfd.texi, to avoid conflicting with
96# bfd.texinfo on an 8.3 filesystem.
97s-bfd: $(MKDOC) $(srcdir)/../bfd.c $(srcdir)/doc.str
98 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.tmp
d639b1c3 99 $(SHELL) $(srcdir)/../../move-if-change bfd.tmp bfdt.texi
252b5132
RH
100 touch s-bfd
101bfdt.texi: s-bfd
102
103s-cache: $(MKDOC) $(srcdir)/../cache.c $(srcdir)/doc.str
104 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.tmp
d639b1c3 105 $(SHELL) $(srcdir)/../../move-if-change cache.tmp cache.texi
252b5132
RH
106 touch s-cache
107cache.texi: s-cache
108
109s-coffcode: $(MKDOC) $(srcdir)/../coffcode.h $(srcdir)/doc.str
110 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../coffcode.h >coffcode.tmp
d639b1c3 111 $(SHELL) $(srcdir)/../../move-if-change coffcode.tmp coffcode.texi
252b5132
RH
112 touch s-coffcode
113coffcode.texi: s-coffcode
114
115s-core: $(MKDOC) $(srcdir)/../corefile.c $(srcdir)/doc.str
116 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../corefile.c >core.tmp
d639b1c3 117 $(SHELL) $(srcdir)/../../move-if-change core.tmp core.texi
252b5132
RH
118 touch s-core
119core.texi: s-core
120
121s-elf: $(MKDOC) $(srcdir)/../elf.c $(srcdir)/doc.str
122 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elf.c >elf.tmp
d639b1c3 123 $(SHELL) $(srcdir)/../../move-if-change elf.tmp elf.texi
252b5132
RH
124 touch s-elf
125elf.texi: s-elf
126
127s-elfcode: $(MKDOC) $(srcdir)/../elfcode.h $(srcdir)/doc.str
128 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elfcode.h >elfcode.tmp
d639b1c3 129 $(SHELL) $(srcdir)/../../move-if-change elfcode.tmp elfcode.texi
252b5132
RH
130 touch s-elfcode
131elfcode.texi: s-elfcode
132
3c3bdf30
NC
133s-mmo: $(MKDOC) $(srcdir)/../mmo.c $(srcdir)/doc.str
134 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../mmo.c >mmo.tmp
d639b1c3 135 $(SHELL) $(srcdir)/../../move-if-change mmo.tmp mmo.texi
3c3bdf30
NC
136 touch s-mmo
137mmo.texi: s-mmo
138
252b5132
RH
139s-format: $(MKDOC) $(srcdir)/../format.c $(srcdir)/doc.str
140 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../format.c >format.tmp
d639b1c3 141 $(SHELL) $(srcdir)/../../move-if-change format.tmp format.texi
252b5132
RH
142 touch s-format
143format.texi: s-format
144
145s-libbfd: $(MKDOC) $(srcdir)/../libbfd.c $(srcdir)/doc.str
146 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.tmp
d639b1c3 147 $(SHELL) $(srcdir)/../../move-if-change libbfd.tmp libbfd.texi
252b5132
RH
148 touch s-libbfd
149libbfd.texi: s-libbfd
150
93509525
KD
151s-bfdio: $(MKDOC) $(srcdir)/../bfdio.c $(srcdir)/doc.str
152 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfdio.c >bfdio.tmp
d639b1c3 153 $(SHELL) $(srcdir)/../../move-if-change bfdio.tmp bfdio.texi
93509525
KD
154 touch s-bfdio
155bfdio.texi: s-bfdio
156
157s-bfdwin: $(MKDOC) $(srcdir)/../bfdwin.c $(srcdir)/doc.str
158 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfdwin.c >bfdwin.tmp
d639b1c3 159 $(SHELL) $(srcdir)/../../move-if-change bfdwin.tmp bfdwin.texi
93509525
KD
160 touch s-bfdwin
161bfdwin.texi: s-bfdwin
162
252b5132
RH
163s-opncls: $(MKDOC) $(srcdir)/../opncls.c $(srcdir)/doc.str
164 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../opncls.c >opncls.tmp
d639b1c3 165 $(SHELL) $(srcdir)/../../move-if-change opncls.tmp opncls.texi
252b5132
RH
166 touch s-opncls
167opncls.texi: s-opncls
168
169s-reloc: $(MKDOC) $(srcdir)/../reloc.c $(srcdir)/doc.str
170 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.tmp
d639b1c3 171 $(SHELL) $(srcdir)/../../move-if-change reloc.tmp reloc.texi
252b5132
RH
172 touch s-reloc
173reloc.texi: s-reloc
174
175s-section: $(MKDOC) $(srcdir)/../section.c $(srcdir)/doc.str
176 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../section.c >section.tmp
d639b1c3 177 $(SHELL) $(srcdir)/../../move-if-change section.tmp section.texi
252b5132
RH
178 touch s-section
179section.texi: s-section
180
181s-syms: $(MKDOC) $(srcdir)/../syms.c $(srcdir)/doc.str
182 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.tmp
d639b1c3 183 $(SHELL) $(srcdir)/../../move-if-change syms.tmp syms.texi
252b5132
RH
184 touch s-syms
185syms.texi: s-syms
186
187s-targets: $(MKDOC) $(srcdir)/../targets.c $(srcdir)/doc.str
188 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../targets.c >targets.tmp
d639b1c3 189 $(SHELL) $(srcdir)/../../move-if-change targets.tmp targets.texi
252b5132
RH
190 touch s-targets
191targets.texi: s-targets
192
193s-init: $(MKDOC) $(srcdir)/../init.c $(srcdir)/doc.str
194 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../init.c >init.tmp
d639b1c3 195 $(SHELL) $(srcdir)/../../move-if-change init.tmp init.texi
252b5132
RH
196 touch s-init
197init.texi: s-init
198
199s-hash: $(MKDOC) $(srcdir)/../hash.c $(srcdir)/doc.str
200 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../hash.c >hash.tmp
d639b1c3 201 $(SHELL) $(srcdir)/../../move-if-change hash.tmp hash.texi
252b5132
RH
202 touch s-hash
203hash.texi: s-hash
204
205s-linker: $(MKDOC) $(srcdir)/../linker.c $(srcdir)/doc.str
206 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../linker.c >linker.tmp
d639b1c3 207 $(SHELL) $(srcdir)/../../move-if-change linker.tmp linker.texi
252b5132
RH
208 touch s-linker
209linker.texi: s-linker
210
87b632fc
AM
211LIBBFD_H_DEP = \
212 $(srcdir)/../libbfd-in.h \
252b5132
RH
213 $(srcdir)/../init.c \
214 $(srcdir)/../libbfd.c \
93509525
KD
215 $(srcdir)/../bfdio.c \
216 $(srcdir)/../bfdwin.c \
252b5132
RH
217 $(srcdir)/../cache.c \
218 $(srcdir)/../reloc.c \
219 $(srcdir)/../archures.c \
4eef72c7
AM
220 $(srcdir)/../elf.c \
221 $(srcdir)/header.sed \
252b5132
RH
222 $(srcdir)/proto.str \
223 $(MKDOC)
4eef72c7
AM
224
225libbfd.h: $(LIBBFD_H_DEP)
226 echo "$(LIBBFD_H_DEP)" | sed -f $(srcdir)/header.sed > $@
227 for file in $(LIBBFD_H_DEP); do \
228 case $$file in \
229 *-in.h) cat $$file >> $@ ;; \
230 */header.sed) break ;; \
796f6cb7 231 *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \
c46f20ef 232 -e 's,$$,. */,' >> $@ ; \
86fb1dec 233 ./$(MKDOC) -i -f $(srcdir)/proto.str < $$file >> $@ ;; \
4eef72c7
AM
234 esac; \
235 done
236
87b632fc
AM
237LIBCOFF_H_DEP = \
238 $(srcdir)/../libcoff-in.h \
252b5132 239 $(srcdir)/../coffcode.h \
4eef72c7 240 $(srcdir)/header.sed \
252b5132
RH
241 $(srcdir)/proto.str \
242 $(MKDOC)
252b5132 243
4eef72c7
AM
244libcoff.h: $(LIBCOFF_H_DEP)
245 echo "$(LIBCOFF_H_DEP)" | sed -f $(srcdir)/header.sed > $@
246 for file in $(LIBCOFF_H_DEP); do \
247 case $$file in \
248 *-in.h) cat $$file >> $@ ;; \
249 */header.sed) break ;; \
796f6cb7 250 *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \
c46f20ef 251 -e 's,$$,. */,' >> $@ ; \
86fb1dec 252 ./$(MKDOC) -i -f $(srcdir)/proto.str < $$file >> $@ ;; \
4eef72c7
AM
253 esac; \
254 done
255
87b632fc
AM
256BFD_H_DEP = \
257 $(srcdir)/../bfd-in.h \
252b5132
RH
258 $(srcdir)/../init.c \
259 $(srcdir)/../opncls.c \
260 $(srcdir)/../libbfd.c \
93509525
KD
261 $(srcdir)/../bfdio.c \
262 $(srcdir)/../bfdwin.c \
252b5132
RH
263 $(srcdir)/../section.c \
264 $(srcdir)/../archures.c \
265 $(srcdir)/../reloc.c \
266 $(srcdir)/../syms.c \
267 $(srcdir)/../bfd.c \
268 $(srcdir)/../archive.c \
269 $(srcdir)/../corefile.c \
270 $(srcdir)/../targets.c \
271 $(srcdir)/../format.c \
eda81658
DJ
272 $(srcdir)/../linker.c \
273 $(srcdir)/../simple.c \
4eef72c7 274 $(srcdir)/header.sed \
252b5132 275 $(srcdir)/proto.str \
87b632fc 276 $(srcdir)/../version.h \
252b5132 277 $(MKDOC)
4eef72c7
AM
278
279bfd.h: $(BFD_H_DEP)
280 echo "$(BFD_H_DEP)" | sed -f $(srcdir)/header.sed > $@
281 for file in $(BFD_H_DEP); do \
282 case $$file in \
283 *-in.h) cat $$file >> $@ ;; \
284 */header.sed) break ;; \
796f6cb7 285 *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \
c46f20ef 286 -e 's,$$,. */,' >> $@ ; \
86fb1dec 287 ./$(MKDOC) -f $(srcdir)/proto.str < $$file >> $@ ;; \
4eef72c7
AM
288 esac; \
289 done
290 echo "#ifdef __cplusplus" >> $@
291 echo "}" >> $@
292 echo "#endif" >> $@
293 echo "#endif" >> $@
252b5132
RH
294
295noinst_TEXINFOS = bfdint.texi
296
297MOSTLYCLEANFILES = $(MKDOC) *.o
298
299CLEANFILES = s-* *.p *.ip
300
301DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log
302
303MAINTAINERCLEANFILES = $(DOCFILES)
7562a296
HPN
304
305# We want install to imply install-info as per GNU standards, despite the
306# cygnus option.
307install: install-info
This page took 0.309077 seconds and 4 git commands to generate.