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