Update year range in copyright notice of all files owned by the GDB project.
[deliverable/binutils-gdb.git] / bfd / doc / Makefile.am
CommitLineData
252b5132 1## Process this file with automake to generate Makefile.in
5bf135a7 2#
4b95cf5c 3# Copyright (C) 2012-2014 Free Software Foundation, Inc.
5bf135a7
NC
4#
5# This file is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; see the file COPYING3. If not see
17# <http://www.gnu.org/licenses/>.
18#
252b5132 19
8976e9a2 20AUTOMAKE_OPTIONS = 1.9 cygnus
252b5132
RH
21
22DOCFILES = aoutx.texi archive.texi archures.texi \
23 bfdt.texi cache.texi coffcode.texi \
93509525
KD
24 core.texi elf.texi elfcode.texi format.texi \
25 libbfd.texi bfdwin.texi bfdio.texi \
252b5132 26 opncls.texi reloc.texi section.texi \
3c3bdf30 27 syms.texi targets.texi init.texi hash.texi linker.texi \
91506736
DJ
28 mmo.texi \
29 bfdver.texi
252b5132
RH
30
31PROTOS = archive.p archures.p bfd.p \
32 core.p format.p \
93509525 33 bfdio.p bfdwin.p \
252b5132
RH
34 libbfd.p opncls.p reloc.p \
35 section.p syms.p targets.p \
36 format.p core.p init.p
37
38IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip coffcode.ip
39
40# SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction
41# between VPATH and suffix rules. If you use GNU Make, perhaps other Makes,
42# you don't need these three:
43SRCDOC = $(srcdir)/../aoutx.h $(srcdir)/../archive.c \
44 $(srcdir)/../archures.c $(srcdir)/../bfd.c \
93509525 45 $(srcdir)/../bfdio.c $(srcdir)/../bfdwin.c \
252b5132
RH
46 $(srcdir)/../cache.c $(srcdir)/../coffcode.h \
47 $(srcdir)/../corefile.c $(srcdir)/../elf.c \
48 $(srcdir)/../elfcode.h $(srcdir)/../format.c \
49 $(srcdir)/../libbfd.c $(srcdir)/../opncls.c \
50 $(srcdir)/../reloc.c $(srcdir)/../section.c \
51 $(srcdir)/../syms.c $(srcdir)/../targets.c \
3c3bdf30
NC
52 $(srcdir)/../hash.c $(srcdir)/../linker.c \
53 $(srcdir)/../mmo.c
252b5132
RH
54
55SRCPROT = $(srcdir)/../archive.c $(srcdir)/../archures.c \
56 $(srcdir)/../bfd.c $(srcdir)/../coffcode.h $(srcdir)/../corefile.c \
57 $(srcdir)/../format.c $(srcdir)/../libbfd.c \
93509525 58 $(srcdir)/../bfdio.c $(srcdir)/../bfdwin.c \
252b5132
RH
59 $(srcdir)/../opncls.c $(srcdir)/../reloc.c \
60 $(srcdir)/../section.c $(srcdir)/../syms.c \
61 $(srcdir)/../targets.c $(srcdir)/../init.c
62
63SRCIPROT = $(srcdir)/../cache.c $(srcdir)/../libbfd.c \
93509525 64 $(srcdir)/../bfdio.c $(srcdir)/../bfdwin.c \
252b5132
RH
65 $(srcdir)/../reloc.c $(srcdir)/../cpu-h8300.c \
66 $(srcdir)/../cpu-i960.c $(srcdir)/../archures.c \
67 $(srcdir)/../init.c
68
69TEXIDIR = $(srcdir)/../../texinfo/fsf
70
71info_TEXINFOS = bfd.texinfo
37d037c1 72bfd_TEXINFOS = $(DOCFILES) bfdsumm.texi
252b5132
RH
73
74MKDOC = chew$(EXEEXT_FOR_BUILD)
75
14ec8efd 76AM_CPPFLAGS = -I.. -I$(srcdir)/.. -I$(srcdir)/../../include \
34f3e815
L
77 -I$(srcdir)/../../intl -I../../intl
78
19e1c431
AM
79$(MKDOC): chew.stamp ; @true
80chew.stamp: $(srcdir)/chew.c
e4fe8f95
AM
81 $(CC_FOR_BUILD) -o chw$$$$$(EXEEXT_FOR_BUILD) $(CFLAGS_FOR_BUILD) \
82 $(LDFLAGS_FOR_BUILD) $(H_CFLAGS) $(AM_CPPFLAGS) $(srcdir)/chew.c; \
19e1c431
AM
83 $(SHELL) $(srcdir)/../../move-if-change \
84 chw$$$$$(EXEEXT_FOR_BUILD) $(MKDOC); \
85 touch $@
252b5132 86
252b5132
RH
87protos: libbfd.h libcoff.h bfd.h
88
252b5132
RH
89# We can't replace these rules with an implicit rule, because
90# makes without VPATH support couldn't find the .h files in `..'.
91
b8c449bf
DJ
92# We do not depend on chew directly so that we can distribute the info
93# files, and permit people to rebuild them, without requiring the makeinfo
94# program. If somebody tries to rebuild info, but none of the .texi files
95# have changed, then nothing will be rebuilt.
96
81b1ec4f
AM
97aoutx.texi: aoutx.stamp ; @true
98aoutx.stamp: $(srcdir)/../aoutx.h $(srcdir)/doc.str $(MKDOC)
99 ./$(MKDOC) -f $(srcdir)/doc.str < $< >aoutx.tmp
d639b1c3 100 $(SHELL) $(srcdir)/../../move-if-change aoutx.tmp aoutx.texi
81b1ec4f 101 touch $@
252b5132 102
81b1ec4f
AM
103archive.texi: archive.stamp ; @true
104archive.stamp: $(srcdir)/../archive.c $(srcdir)/doc.str $(MKDOC)
105 ./$(MKDOC) -f $(srcdir)/doc.str < $< >archive.tmp
d639b1c3 106 $(SHELL) $(srcdir)/../../move-if-change archive.tmp archive.texi
81b1ec4f 107 touch $@
252b5132 108
81b1ec4f
AM
109archures.texi: archures.stamp ; @true
110archures.stamp: $(srcdir)/../archures.c $(srcdir)/doc.str $(MKDOC)
111 ./$(MKDOC) -f $(srcdir)/doc.str < $< >archures.tmp
d639b1c3 112 $(SHELL) $(srcdir)/../../move-if-change archures.tmp archures.texi
81b1ec4f 113 touch $@
252b5132
RH
114
115# We use bfdt.texi, rather than bfd.texi, to avoid conflicting with
116# bfd.texinfo on an 8.3 filesystem.
81b1ec4f
AM
117bfdt.texi: bfdt.stamp ; @true
118bfdt.stamp: $(srcdir)/../bfd.c $(srcdir)/doc.str $(MKDOC)
119 ./$(MKDOC) -f $(srcdir)/doc.str < $< >bfd.tmp
d639b1c3 120 $(SHELL) $(srcdir)/../../move-if-change bfd.tmp bfdt.texi
81b1ec4f 121 touch $@
252b5132 122
81b1ec4f
AM
123cache.texi: cache.stamp ; @true
124cache.stamp: $(srcdir)/../cache.c $(srcdir)/doc.str $(MKDOC)
125 ./$(MKDOC) -f $(srcdir)/doc.str < $< >cache.tmp
d639b1c3 126 $(SHELL) $(srcdir)/../../move-if-change cache.tmp cache.texi
81b1ec4f 127 touch $@
252b5132 128
81b1ec4f
AM
129coffcode.texi: coffcode.stamp ; @true
130coffcode.stamp: $(srcdir)/../coffcode.h $(srcdir)/doc.str $(MKDOC)
131 ./$(MKDOC) -f $(srcdir)/doc.str < $< >coffcode.tmp
d639b1c3 132 $(SHELL) $(srcdir)/../../move-if-change coffcode.tmp coffcode.texi
81b1ec4f 133 touch $@
252b5132 134
81b1ec4f
AM
135core.texi: core.stamp ; @true
136core.stamp: $(srcdir)/../corefile.c $(srcdir)/doc.str $(MKDOC)
137 ./$(MKDOC) -f $(srcdir)/doc.str < $< >core.tmp
d639b1c3 138 $(SHELL) $(srcdir)/../../move-if-change core.tmp core.texi
81b1ec4f 139 touch $@
252b5132 140
81b1ec4f
AM
141elf.texi: elf.stamp ; @true
142elf.stamp: $(srcdir)/../elf.c $(srcdir)/doc.str $(MKDOC)
143 ./$(MKDOC) -f $(srcdir)/doc.str < $< >elf.tmp
d639b1c3 144 $(SHELL) $(srcdir)/../../move-if-change elf.tmp elf.texi
81b1ec4f 145 touch $@
252b5132 146
81b1ec4f
AM
147elfcode.texi: elfcode.stamp ; @true
148elfcode.stamp: $(srcdir)/../elfcode.h $(srcdir)/doc.str $(MKDOC)
149 ./$(MKDOC) -f $(srcdir)/doc.str < $< >elfcode.tmp
d639b1c3 150 $(SHELL) $(srcdir)/../../move-if-change elfcode.tmp elfcode.texi
81b1ec4f 151 touch $@
252b5132 152
81b1ec4f
AM
153mmo.texi: mmo.stamp ; @true
154mmo.stamp: $(srcdir)/../mmo.c $(srcdir)/doc.str $(MKDOC)
155 ./$(MKDOC) -f $(srcdir)/doc.str < $< >mmo.tmp
d639b1c3 156 $(SHELL) $(srcdir)/../../move-if-change mmo.tmp mmo.texi
81b1ec4f 157 touch $@
3c3bdf30 158
81b1ec4f
AM
159format.texi: format.stamp ; @true
160format.stamp: $(srcdir)/../format.c $(srcdir)/doc.str $(MKDOC)
161 ./$(MKDOC) -f $(srcdir)/doc.str < $< >format.tmp
d639b1c3 162 $(SHELL) $(srcdir)/../../move-if-change format.tmp format.texi
81b1ec4f 163 touch $@
252b5132 164
81b1ec4f
AM
165libbfd.texi: libbfd.stamp ; @true
166libbfd.stamp: $(srcdir)/../libbfd.c $(srcdir)/doc.str $(MKDOC)
167 ./$(MKDOC) -f $(srcdir)/doc.str < $< >libbfd.tmp
d639b1c3 168 $(SHELL) $(srcdir)/../../move-if-change libbfd.tmp libbfd.texi
81b1ec4f 169 touch $@
252b5132 170
81b1ec4f
AM
171bfdio.texi: bfdio.stamp ; @true
172bfdio.stamp: $(srcdir)/../bfdio.c $(srcdir)/doc.str $(MKDOC)
173 ./$(MKDOC) -f $(srcdir)/doc.str < $< >bfdio.tmp
d639b1c3 174 $(SHELL) $(srcdir)/../../move-if-change bfdio.tmp bfdio.texi
81b1ec4f 175 touch $@
93509525 176
81b1ec4f
AM
177bfdwin.texi: bfdwin.stamp ; @true
178bfdwin.stamp: $(srcdir)/../bfdwin.c $(srcdir)/doc.str $(MKDOC)
179 ./$(MKDOC) -f $(srcdir)/doc.str < $< >bfdwin.tmp
d639b1c3 180 $(SHELL) $(srcdir)/../../move-if-change bfdwin.tmp bfdwin.texi
81b1ec4f 181 touch $@
93509525 182
81b1ec4f
AM
183opncls.texi: opncls.stamp ; @true
184opncls.stamp: $(srcdir)/../opncls.c $(srcdir)/doc.str $(MKDOC)
185 ./$(MKDOC) -f $(srcdir)/doc.str < $< >opncls.tmp
d639b1c3 186 $(SHELL) $(srcdir)/../../move-if-change opncls.tmp opncls.texi
81b1ec4f 187 touch $@
252b5132 188
81b1ec4f
AM
189reloc.texi: reloc.stamp ; @true
190reloc.stamp: $(srcdir)/../reloc.c $(srcdir)/doc.str $(MKDOC)
191 ./$(MKDOC) -f $(srcdir)/doc.str < $< >reloc.tmp
d639b1c3 192 $(SHELL) $(srcdir)/../../move-if-change reloc.tmp reloc.texi
81b1ec4f 193 touch $@
252b5132 194
81b1ec4f
AM
195section.texi: section.stamp ; @true
196section.stamp: $(srcdir)/../section.c $(srcdir)/doc.str $(MKDOC)
197 ./$(MKDOC) -f $(srcdir)/doc.str < $< >section.tmp
d639b1c3 198 $(SHELL) $(srcdir)/../../move-if-change section.tmp section.texi
81b1ec4f 199 touch $@
252b5132 200
81b1ec4f
AM
201syms.texi: syms.stamp ; @true
202syms.stamp: $(srcdir)/../syms.c $(srcdir)/doc.str $(MKDOC)
203 ./$(MKDOC) -f $(srcdir)/doc.str < $< >syms.tmp
d639b1c3 204 $(SHELL) $(srcdir)/../../move-if-change syms.tmp syms.texi
81b1ec4f 205 touch $@
252b5132 206
81b1ec4f
AM
207targets.texi: targets.stamp ; @true
208targets.stamp: $(srcdir)/../targets.c $(srcdir)/doc.str $(MKDOC)
209 ./$(MKDOC) -f $(srcdir)/doc.str < $< >targets.tmp
d639b1c3 210 $(SHELL) $(srcdir)/../../move-if-change targets.tmp targets.texi
81b1ec4f 211 touch $@
252b5132 212
81b1ec4f
AM
213init.texi: init.stamp ; @true
214init.stamp: $(srcdir)/../init.c $(srcdir)/doc.str $(MKDOC)
215 ./$(MKDOC) -f $(srcdir)/doc.str < $< >init.tmp
d639b1c3 216 $(SHELL) $(srcdir)/../../move-if-change init.tmp init.texi
81b1ec4f 217 touch $@
252b5132 218
81b1ec4f
AM
219hash.texi: hash.stamp ; @true
220hash.stamp: $(srcdir)/../hash.c $(srcdir)/doc.str $(MKDOC)
221 ./$(MKDOC) -f $(srcdir)/doc.str < $< >hash.tmp
d639b1c3 222 $(SHELL) $(srcdir)/../../move-if-change hash.tmp hash.texi
81b1ec4f 223 touch $@
252b5132 224
81b1ec4f
AM
225linker.texi: linker.stamp ; @true
226linker.stamp: $(srcdir)/../linker.c $(srcdir)/doc.str $(MKDOC)
227 ./$(MKDOC) -f $(srcdir)/doc.str < $< >linker.tmp
d639b1c3 228 $(SHELL) $(srcdir)/../../move-if-change linker.tmp linker.texi
81b1ec4f 229 touch $@
252b5132 230
87b632fc
AM
231LIBBFD_H_DEP = \
232 $(srcdir)/../libbfd-in.h \
252b5132
RH
233 $(srcdir)/../init.c \
234 $(srcdir)/../libbfd.c \
93509525
KD
235 $(srcdir)/../bfdio.c \
236 $(srcdir)/../bfdwin.c \
252b5132
RH
237 $(srcdir)/../cache.c \
238 $(srcdir)/../reloc.c \
239 $(srcdir)/../archures.c \
4eef72c7
AM
240 $(srcdir)/../elf.c \
241 $(srcdir)/header.sed \
252b5132
RH
242 $(srcdir)/proto.str \
243 $(MKDOC)
4eef72c7
AM
244
245libbfd.h: $(LIBBFD_H_DEP)
246 echo "$(LIBBFD_H_DEP)" | sed -f $(srcdir)/header.sed > $@
247 for file in $(LIBBFD_H_DEP); do \
248 case $$file in \
249 *-in.h) cat $$file >> $@ ;; \
250 */header.sed) break ;; \
796f6cb7 251 *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \
c46f20ef 252 -e 's,$$,. */,' >> $@ ; \
86fb1dec 253 ./$(MKDOC) -i -f $(srcdir)/proto.str < $$file >> $@ ;; \
4eef72c7
AM
254 esac; \
255 done
256
87b632fc
AM
257LIBCOFF_H_DEP = \
258 $(srcdir)/../libcoff-in.h \
252b5132 259 $(srcdir)/../coffcode.h \
4eef72c7 260 $(srcdir)/header.sed \
252b5132
RH
261 $(srcdir)/proto.str \
262 $(MKDOC)
252b5132 263
4eef72c7
AM
264libcoff.h: $(LIBCOFF_H_DEP)
265 echo "$(LIBCOFF_H_DEP)" | sed -f $(srcdir)/header.sed > $@
266 for file in $(LIBCOFF_H_DEP); do \
267 case $$file in \
268 *-in.h) cat $$file >> $@ ;; \
269 */header.sed) break ;; \
796f6cb7 270 *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \
c46f20ef 271 -e 's,$$,. */,' >> $@ ; \
86fb1dec 272 ./$(MKDOC) -i -f $(srcdir)/proto.str < $$file >> $@ ;; \
4eef72c7
AM
273 esac; \
274 done
275
87b632fc
AM
276BFD_H_DEP = \
277 $(srcdir)/../bfd-in.h \
252b5132
RH
278 $(srcdir)/../init.c \
279 $(srcdir)/../opncls.c \
280 $(srcdir)/../libbfd.c \
93509525
KD
281 $(srcdir)/../bfdio.c \
282 $(srcdir)/../bfdwin.c \
252b5132
RH
283 $(srcdir)/../section.c \
284 $(srcdir)/../archures.c \
285 $(srcdir)/../reloc.c \
286 $(srcdir)/../syms.c \
287 $(srcdir)/../bfd.c \
288 $(srcdir)/../archive.c \
289 $(srcdir)/../corefile.c \
290 $(srcdir)/../targets.c \
291 $(srcdir)/../format.c \
eda81658
DJ
292 $(srcdir)/../linker.c \
293 $(srcdir)/../simple.c \
1b315056 294 $(srcdir)/../compress.c \
4eef72c7 295 $(srcdir)/header.sed \
252b5132 296 $(srcdir)/proto.str \
87b632fc 297 $(srcdir)/../version.h \
252b5132 298 $(MKDOC)
4eef72c7
AM
299
300bfd.h: $(BFD_H_DEP)
301 echo "$(BFD_H_DEP)" | sed -f $(srcdir)/header.sed > $@
302 for file in $(BFD_H_DEP); do \
303 case $$file in \
304 *-in.h) cat $$file >> $@ ;; \
305 */header.sed) break ;; \
796f6cb7 306 *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \
c46f20ef 307 -e 's,$$,. */,' >> $@ ; \
86fb1dec 308 ./$(MKDOC) -f $(srcdir)/proto.str < $$file >> $@ ;; \
4eef72c7
AM
309 esac; \
310 done
311 echo "#ifdef __cplusplus" >> $@
312 echo "}" >> $@
313 echo "#endif" >> $@
314 echo "#endif" >> $@
252b5132 315
91506736
DJ
316bfdver.texi: $(srcdir)/Makefile.in
317 @echo "creating $@"; \
318 echo "@set VERSION $(VERSION)" > bfdver.texi; \
319 if [ -n "$(PKGVERSION)" ]; then \
320 echo "@set VERSION_PACKAGE $(PKGVERSION)" >> bfdver.texi; \
321 fi; \
322 echo "@set UPDATED `date '+%B %Y'`" >> bfdver.texi; \
323 if [ -n "$(REPORT_BUGS_TEXI)" ]; then \
324 echo "@set BUGURL $(REPORT_BUGS_TEXI)" >> bfdver.texi; \
325 fi
326
252b5132
RH
327noinst_TEXINFOS = bfdint.texi
328
19e1c431 329MOSTLYCLEANFILES = $(MKDOC) *.o *.stamp
252b5132 330
b8c449bf 331CLEANFILES = *.p *.ip
252b5132 332
19e1c431 333DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log
252b5132
RH
334
335MAINTAINERCLEANFILES = $(DOCFILES)
7562a296
HPN
336
337# We want install to imply install-info as per GNU standards, despite the
338# cygnus option.
339install: install-info
108a6f8e 340
d5fbea21 341MAINTAINERCLEANFILES += bfd.info
108a6f8e 342
d5fbea21
DJ
343# Automake 1.9 will only build info files in the objdir if they are
344# mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
345# though, so we use a bogus condition.
346if GENINSRC_NEVER
347DISTCLEANFILES += bfd.info
348endif
This page took 0.68994 seconds and 4 git commands to generate.