* Makefile.am: New file, based on old Makefile.in.
[deliverable/binutils-gdb.git] / bfd / doc / Makefile.am
CommitLineData
bc6b39f5
ILT
1## Process this file with automake to generate Makefile.in
2
3DOCFILES = aoutx.texi archive.texi archures.texi \
4 bfdt.texi cache.texi coffcode.texi \
5 core.texi elf.texi elfcode.texi format.texi libbfd.texi \
6 opncls.texi reloc.texi section.texi \
7 syms.texi targets.texi init.texi hash.texi linker.texi
8
9PROTOS = archive.p archures.p bfd.p \
10 core.p format.p \
11 libbfd.p opncls.p reloc.p \
12 section.p syms.p targets.p \
13 format.p core.p init.p
14
15IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip coffcode.ip
16
17# SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction
18# between VPATH and suffix rules. If you use GNU Make, perhaps other Makes,
19# you don't need these three:
20SRCDOC = $(srcdir)/../aoutx.h $(srcdir)/../archive.c \
21 $(srcdir)/../archures.c $(srcdir)/../bfd.c \
22 $(srcdir)/../cache.c $(srcdir)/../coffcode.h \
23 $(srcdir)/../corefile.c $(srcdir)/../elf.c \
24 $(srcdir)/../elfcode.h $(srcdir)/../format.c \
25 $(srcdir)/../libbfd.c $(srcdir)/../opncls.c \
26 $(srcdir)/../reloc.c $(srcdir)/../section.c \
27 $(srcdir)/../syms.c $(srcdir)/../targets.c \
28 $(srcdir)/../hash.c $(srcdir)/../linker.c
29
30SRCPROT = $(srcdir)/../archive.c $(srcdir)/../archures.c \
31 $(srcdir)/../bfd.c $(srcdir)/../coffcode.h $(srcdir)/../corefile.c \
32 $(srcdir)/../format.c $(srcdir)/../libbfd.c \
33 $(srcdir)/../opncls.c $(srcdir)/../reloc.c \
34 $(srcdir)/../section.c $(srcdir)/../syms.c \
35 $(srcdir)/../targets.c $(srcdir)/../init.c
36
37SRCIPROT = $(srcdir)/../cache.c $(srcdir)/../libbfd.c \
38 $(srcdir)/../reloc.c $(srcdir)/../cpu-h8300.c \
39 $(srcdir)/../cpu-i960.c $(srcdir)/../archures.c \
40 $(srcdir)/../init.c
41
42STAGESTUFF = $(DOCFILES) *.info*
43
44TEXIDIR = $(srcdir)/../../texinfo/fsf
45
46info_TEXINFOS = bfd.texinfo
47
48MKDOC = chew$(EXEEXT)
49
50$(MKDOC): chew.o
51 $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(LOADLIBES) $(LDFLAGS)
52
53chew.o: chew.c
54 $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include $(H_CFLAGS) $(CFLAGS) $(srcdir)/chew.c
55
56protos: libbfd.h libcoff.h bfd.h
57
58bfd.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
70s-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
74aoutx.texi: s-aoutx
75
76s-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
80archive.texi: s-archive
81
82s-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
86archures.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.
90s-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
94bfdt.texi: s-bfd
95
96s-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
100cache.texi: s-cache
101
102s-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
106coffcode.texi: s-coffcode
107
108s-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
112core.texi: s-core
113
114s-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
118elf.texi: s-elf
119
120s-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
124elfcode.texi: s-elfcode
125
126s-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
130format.texi: s-format
131
132s-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
136libbfd.texi: s-libbfd
137
138s-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
142opncls.texi: s-opncls
143
144s-reloc: $(MKDOC) $(srcdir)/../reloc.c
145 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.tmp
146 $(srcdir)/../../move-if-change reloc.tmp reloc.texi
147 touch s-reloc
148reloc.texi: s-reloc
149
150s-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
154section.texi: s-section
155
156s-syms: $(MKDOC) $(srcdir)/../syms.c
157 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.tmp
158 $(srcdir)/../../move-if-change syms.tmp syms.texi
159 touch s-syms
160syms.texi: s-syms
161
162s-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
166targets.texi: s-targets
167
168s-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
172init.texi: s-init
173
174s-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
178hash.texi: s-hash
179
180s-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
184linker.texi: s-linker
185
186libbfd.h: $(srcdir)/../libbfd-in.h \
187 $(srcdir)/../init.c \
188 $(srcdir)/../libbfd.c \
189 $(srcdir)/../cache.c \
190 $(srcdir)/../reloc.c \
191 $(srcdir)/../cpu-h8300.c \
192 $(srcdir)/../cpu-i960.c \
193 $(srcdir)/../archures.c \
194 $(srcdir)/../elfcode.h \
195 $(srcdir)/proto.str \
196 $(MKDOC)
197 cat $(srcdir)/../libbfd-in.h >libbfd.h
198 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../init.c >>libbfd.h
199 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../libbfd.c >>libbfd.h
200 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../cache.c >>libbfd.h
201 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../reloc.c >>libbfd.h
202 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../cpu-h8300.c >>libbfd.h
203 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../cpu-i960.c >>libbfd.h
204 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../archures.c >>libbfd.h
205 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../elf.c >>libbfd.h
206 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../elfcode.h >>libbfd.h
207
208libcoff.h: $(srcdir)/../libcoff-in.h \
209 $(srcdir)/../coffcode.h \
210 $(srcdir)/proto.str \
211 $(MKDOC)
212 cat $(srcdir)/../libcoff-in.h >libcoff.h
213 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../coffcode.h >>libcoff.h
214
215bfd.h: $(srcdir)/../bfd-in.h \
216 $(srcdir)/../init.c \
217 $(srcdir)/../opncls.c \
218 $(srcdir)/../libbfd.c \
219 $(srcdir)/../section.c \
220 $(srcdir)/../archures.c \
221 $(srcdir)/../reloc.c \
222 $(srcdir)/../syms.c \
223 $(srcdir)/../bfd.c \
224 $(srcdir)/../archive.c \
225 $(srcdir)/../corefile.c \
226 $(srcdir)/../targets.c \
227 $(srcdir)/../format.c \
228 $(srcdir)/proto.str \
229 $(MKDOC)
230 cat $(srcdir)/../bfd-in.h >bfd.h
231 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../init.c >>bfd.h
232 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../opncls.c >>bfd.h
233 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../libbfd.c >>bfd.h
234 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../section.c >>bfd.h
235 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archures.c >>bfd.h
236 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../reloc.c >>bfd.h
237 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../syms.c >>bfd.h
238 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../bfd.c >>bfd.h
239 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archive.c >>bfd.h
240 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../corefile.c >>bfd.h
241 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../targets.c >>bfd.h
242 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../format.c >>bfd.h
243 echo "#ifdef __cplusplus" >>bfd.h
244 echo "}" >>bfd.h
245 echo "#endif" >>bfd.h
246 echo "#endif" >>bfd.h
247
248
249MOSTLYCLEANFILES = $(MKDOC) *.o
250
251CLEANFILES = $(STAGESTUFF) s-* *.p *.ip
This page took 0.031072 seconds and 4 git commands to generate.