If the LMA for a segment is known, use it for matching sections to segments.
[deliverable/binutils-gdb.git] / bfd / doc / Makefile.am
CommitLineData
252b5132
RH
1## Process this file with automake to generate Makefile.in
2
3AUTOMAKE_OPTIONS = cygnus
4
5DOCFILES = 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
11PROTOS = 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
17IPROTOS = 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:
22SRCDOC = $(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
32SRCPROT = $(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
39SRCIPROT = $(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
44TEXIDIR = $(srcdir)/../../texinfo/fsf
45
46info_TEXINFOS = bfd.texinfo
47
48MKDOC = chew$(EXEEXT_FOR_BUILD)
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 -I$(srcdir)/../../intl -I../../intl $(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 $(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
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 $(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
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
87b632fc
AM
186LIBBFD_H_DEP = \
187 $(srcdir)/../libbfd-in.h \
252b5132
RH
188 $(srcdir)/../init.c \
189 $(srcdir)/../libbfd.c \
190 $(srcdir)/../cache.c \
191 $(srcdir)/../reloc.c \
192 $(srcdir)/../archures.c \
4eef72c7
AM
193 $(srcdir)/../elf.c \
194 $(srcdir)/header.sed \
252b5132
RH
195 $(srcdir)/proto.str \
196 $(MKDOC)
4eef72c7
AM
197
198libbfd.h: $(LIBBFD_H_DEP)
199 echo "$(LIBBFD_H_DEP)" | sed -f $(srcdir)/header.sed > $@
200 for file in $(LIBBFD_H_DEP); do \
201 case $$file in \
202 *-in.h) cat $$file >> $@ ;; \
203 */header.sed) break ;; \
204 *) ./$(MKDOC) -i -f $(srcdir)/proto.str < $$file >> $@ ;; \
205 esac; \
206 done
207
87b632fc
AM
208LIBCOFF_H_DEP = \
209 $(srcdir)/../libcoff-in.h \
252b5132 210 $(srcdir)/../coffcode.h \
4eef72c7 211 $(srcdir)/header.sed \
252b5132
RH
212 $(srcdir)/proto.str \
213 $(MKDOC)
252b5132 214
4eef72c7
AM
215libcoff.h: $(LIBCOFF_H_DEP)
216 echo "$(LIBCOFF_H_DEP)" | sed -f $(srcdir)/header.sed > $@
217 for file in $(LIBCOFF_H_DEP); do \
218 case $$file in \
219 *-in.h) cat $$file >> $@ ;; \
220 */header.sed) break ;; \
221 *) ./$(MKDOC) -i -f $(srcdir)/proto.str < $$file >> $@ ;; \
222 esac; \
223 done
224
87b632fc
AM
225BFD_H_DEP = \
226 $(srcdir)/../bfd-in.h \
252b5132
RH
227 $(srcdir)/../init.c \
228 $(srcdir)/../opncls.c \
229 $(srcdir)/../libbfd.c \
230 $(srcdir)/../section.c \
231 $(srcdir)/../archures.c \
232 $(srcdir)/../reloc.c \
233 $(srcdir)/../syms.c \
234 $(srcdir)/../bfd.c \
235 $(srcdir)/../archive.c \
236 $(srcdir)/../corefile.c \
237 $(srcdir)/../targets.c \
238 $(srcdir)/../format.c \
4eef72c7 239 $(srcdir)/header.sed \
252b5132 240 $(srcdir)/proto.str \
87b632fc 241 $(srcdir)/../version.h \
252b5132 242 $(MKDOC)
4eef72c7
AM
243
244bfd.h: $(BFD_H_DEP)
245 echo "$(BFD_H_DEP)" | sed -f $(srcdir)/header.sed > $@
246 for file in $(BFD_H_DEP); do \
247 case $$file in \
248 *-in.h) cat $$file >> $@ ;; \
249 */header.sed) break ;; \
250 *) ./$(MKDOC) -f $(srcdir)/proto.str < $$file >> $@ ;; \
251 esac; \
252 done
253 echo "#ifdef __cplusplus" >> $@
254 echo "}" >> $@
255 echo "#endif" >> $@
256 echo "#endif" >> $@
252b5132
RH
257
258noinst_TEXINFOS = bfdint.texi
259
260MOSTLYCLEANFILES = $(MKDOC) *.o
261
262CLEANFILES = s-* *.p *.ip
263
264DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log
265
266MAINTAINERCLEANFILES = $(DOCFILES)
This page took 0.102965 seconds and 4 git commands to generate.