]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | ## Process this file with automake to generate Makefile.in |
5bf135a7 | 2 | # |
a2c58332 | 3 | # Copyright (C) 2012-2022 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 | |
d388f643 | 20 | AUTOMAKE_OPTIONS = info-in-builddir no-texinfo.tex foreign |
252b5132 RH |
21 | |
22 | DOCFILES = 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 | 30 | |
252b5132 RH |
31 | # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction |
32 | # between VPATH and suffix rules. If you use GNU Make, perhaps other Makes, | |
33 | # you don't need these three: | |
34 | SRCDOC = $(srcdir)/../aoutx.h $(srcdir)/../archive.c \ | |
35 | $(srcdir)/../archures.c $(srcdir)/../bfd.c \ | |
93509525 | 36 | $(srcdir)/../bfdio.c $(srcdir)/../bfdwin.c \ |
252b5132 RH |
37 | $(srcdir)/../cache.c $(srcdir)/../coffcode.h \ |
38 | $(srcdir)/../corefile.c $(srcdir)/../elf.c \ | |
39 | $(srcdir)/../elfcode.h $(srcdir)/../format.c \ | |
40 | $(srcdir)/../libbfd.c $(srcdir)/../opncls.c \ | |
41 | $(srcdir)/../reloc.c $(srcdir)/../section.c \ | |
42 | $(srcdir)/../syms.c $(srcdir)/../targets.c \ | |
3c3bdf30 NC |
43 | $(srcdir)/../hash.c $(srcdir)/../linker.c \ |
44 | $(srcdir)/../mmo.c | |
252b5132 RH |
45 | |
46 | SRCPROT = $(srcdir)/../archive.c $(srcdir)/../archures.c \ | |
47 | $(srcdir)/../bfd.c $(srcdir)/../coffcode.h $(srcdir)/../corefile.c \ | |
48 | $(srcdir)/../format.c $(srcdir)/../libbfd.c \ | |
93509525 | 49 | $(srcdir)/../bfdio.c $(srcdir)/../bfdwin.c \ |
252b5132 RH |
50 | $(srcdir)/../opncls.c $(srcdir)/../reloc.c \ |
51 | $(srcdir)/../section.c $(srcdir)/../syms.c \ | |
52 | $(srcdir)/../targets.c $(srcdir)/../init.c | |
53 | ||
54 | SRCIPROT = $(srcdir)/../cache.c $(srcdir)/../libbfd.c \ | |
93509525 | 55 | $(srcdir)/../bfdio.c $(srcdir)/../bfdwin.c \ |
252b5132 RH |
56 | $(srcdir)/../reloc.c $(srcdir)/../cpu-h8300.c \ |
57 | $(srcdir)/../cpu-i960.c $(srcdir)/../archures.c \ | |
58 | $(srcdir)/../init.c | |
59 | ||
60 | TEXIDIR = $(srcdir)/../../texinfo/fsf | |
61 | ||
d0ac1c44 | 62 | info_TEXINFOS = bfd.texi |
37d037c1 | 63 | bfd_TEXINFOS = $(DOCFILES) bfdsumm.texi |
252b5132 | 64 | |
2faf902d MF |
65 | AM_MAKEINFOFLAGS = --no-split |
66 | ||
252b5132 RH |
67 | MKDOC = chew$(EXEEXT_FOR_BUILD) |
68 | ||
14ec8efd | 69 | AM_CPPFLAGS = -I.. -I$(srcdir)/.. -I$(srcdir)/../../include \ |
34f3e815 L |
70 | -I$(srcdir)/../../intl -I../../intl |
71 | ||
19e1c431 AM |
72 | $(MKDOC): chew.stamp ; @true |
73 | chew.stamp: $(srcdir)/chew.c | |
e4fe8f95 AM |
74 | $(CC_FOR_BUILD) -o chw$$$$$(EXEEXT_FOR_BUILD) $(CFLAGS_FOR_BUILD) \ |
75 | $(LDFLAGS_FOR_BUILD) $(H_CFLAGS) $(AM_CPPFLAGS) $(srcdir)/chew.c; \ | |
19e1c431 AM |
76 | $(SHELL) $(srcdir)/../../move-if-change \ |
77 | chw$$$$$(EXEEXT_FOR_BUILD) $(MKDOC); \ | |
78 | touch $@ | |
252b5132 | 79 | |
252b5132 RH |
80 | # We can't replace these rules with an implicit rule, because |
81 | # makes without VPATH support couldn't find the .h files in `..'. | |
82 | ||
b8c449bf DJ |
83 | # We do not depend on chew directly so that we can distribute the info |
84 | # files, and permit people to rebuild them, without requiring the makeinfo | |
85 | # program. If somebody tries to rebuild info, but none of the .texi files | |
86 | # have changed, then nothing will be rebuilt. | |
87 | ||
444cc278 MF |
88 | REGEN_TEXI = \ |
89 | ( \ | |
90 | set -e; \ | |
91 | ./$(MKDOC) -f $(srcdir)/doc.str < $< > $@.tmp; \ | |
92 | texi=$@; \ | |
93 | texi=$${texi%.stamp}.texi; \ | |
94 | test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi .; \ | |
95 | $(SHELL) $(srcdir)/../../move-if-change $@.tmp $$texi; \ | |
96 | touch $@; \ | |
97 | ) | |
98 | ||
81b1ec4f AM |
99 | aoutx.texi: aoutx.stamp ; @true |
100 | aoutx.stamp: $(srcdir)/../aoutx.h $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 101 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 102 | |
81b1ec4f AM |
103 | archive.texi: archive.stamp ; @true |
104 | archive.stamp: $(srcdir)/../archive.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 105 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 106 | |
81b1ec4f AM |
107 | archures.texi: archures.stamp ; @true |
108 | archures.stamp: $(srcdir)/../archures.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 109 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 RH |
110 | |
111 | # We use bfdt.texi, rather than bfd.texi, to avoid conflicting with | |
d0ac1c44 | 112 | # bfd.texi on an 8.3 filesystem. |
81b1ec4f AM |
113 | bfdt.texi: bfdt.stamp ; @true |
114 | bfdt.stamp: $(srcdir)/../bfd.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 115 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 116 | |
81b1ec4f AM |
117 | cache.texi: cache.stamp ; @true |
118 | cache.stamp: $(srcdir)/../cache.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 119 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 120 | |
81b1ec4f AM |
121 | coffcode.texi: coffcode.stamp ; @true |
122 | coffcode.stamp: $(srcdir)/../coffcode.h $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 123 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 124 | |
81b1ec4f AM |
125 | core.texi: core.stamp ; @true |
126 | core.stamp: $(srcdir)/../corefile.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 127 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 128 | |
81b1ec4f AM |
129 | elf.texi: elf.stamp ; @true |
130 | elf.stamp: $(srcdir)/../elf.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 131 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 132 | |
81b1ec4f AM |
133 | elfcode.texi: elfcode.stamp ; @true |
134 | elfcode.stamp: $(srcdir)/../elfcode.h $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 135 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 136 | |
81b1ec4f AM |
137 | mmo.texi: mmo.stamp ; @true |
138 | mmo.stamp: $(srcdir)/../mmo.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 139 | $(AM_V_GEN)$(REGEN_TEXI) |
3c3bdf30 | 140 | |
81b1ec4f AM |
141 | format.texi: format.stamp ; @true |
142 | format.stamp: $(srcdir)/../format.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 143 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 144 | |
81b1ec4f AM |
145 | libbfd.texi: libbfd.stamp ; @true |
146 | libbfd.stamp: $(srcdir)/../libbfd.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 147 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 148 | |
81b1ec4f AM |
149 | bfdio.texi: bfdio.stamp ; @true |
150 | bfdio.stamp: $(srcdir)/../bfdio.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 151 | $(AM_V_GEN)$(REGEN_TEXI) |
93509525 | 152 | |
81b1ec4f AM |
153 | bfdwin.texi: bfdwin.stamp ; @true |
154 | bfdwin.stamp: $(srcdir)/../bfdwin.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 155 | $(AM_V_GEN)$(REGEN_TEXI) |
93509525 | 156 | |
81b1ec4f AM |
157 | opncls.texi: opncls.stamp ; @true |
158 | opncls.stamp: $(srcdir)/../opncls.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 159 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 160 | |
81b1ec4f AM |
161 | reloc.texi: reloc.stamp ; @true |
162 | reloc.stamp: $(srcdir)/../reloc.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 163 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 164 | |
81b1ec4f AM |
165 | section.texi: section.stamp ; @true |
166 | section.stamp: $(srcdir)/../section.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 167 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 168 | |
81b1ec4f AM |
169 | syms.texi: syms.stamp ; @true |
170 | syms.stamp: $(srcdir)/../syms.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 171 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 172 | |
81b1ec4f AM |
173 | targets.texi: targets.stamp ; @true |
174 | targets.stamp: $(srcdir)/../targets.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 175 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 176 | |
81b1ec4f AM |
177 | init.texi: init.stamp ; @true |
178 | init.stamp: $(srcdir)/../init.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 179 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 180 | |
81b1ec4f AM |
181 | hash.texi: hash.stamp ; @true |
182 | hash.stamp: $(srcdir)/../hash.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 183 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 184 | |
81b1ec4f AM |
185 | linker.texi: linker.stamp ; @true |
186 | linker.stamp: $(srcdir)/../linker.c $(srcdir)/doc.str $(MKDOC) | |
444cc278 | 187 | $(AM_V_GEN)$(REGEN_TEXI) |
252b5132 | 188 | |
91506736 DJ |
189 | bfdver.texi: $(srcdir)/Makefile.in |
190 | @echo "creating $@"; \ | |
191 | echo "@set VERSION $(VERSION)" > bfdver.texi; \ | |
bba33ab1 | 192 | if test -n "$(PKGVERSION)"; then \ |
91506736 DJ |
193 | echo "@set VERSION_PACKAGE $(PKGVERSION)" >> bfdver.texi; \ |
194 | fi; \ | |
195 | echo "@set UPDATED `date '+%B %Y'`" >> bfdver.texi; \ | |
bba33ab1 | 196 | if test -n "$(REPORT_BUGS_TEXI)"; then \ |
91506736 DJ |
197 | echo "@set BUGURL $(REPORT_BUGS_TEXI)" >> bfdver.texi; \ |
198 | fi | |
199 | ||
252b5132 RH |
200 | noinst_TEXINFOS = bfdint.texi |
201 | ||
19e1c431 | 202 | MOSTLYCLEANFILES = $(MKDOC) *.o *.stamp |
252b5132 | 203 | |
19e1c431 | 204 | DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log |
252b5132 RH |
205 | |
206 | MAINTAINERCLEANFILES = $(DOCFILES) | |
7562a296 HPN |
207 | |
208 | # We want install to imply install-info as per GNU standards, despite the | |
209 | # cygnus option. | |
210 | install: install-info | |
108a6f8e | 211 | |
cf758b39 MF |
212 | html-local: bfd/index.html |
213 | bfd/index.html: bfd.texi $(bfd_TEXINFOS) | |
214 | $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \ | |
215 | --split=node -I$(srcdir) $(srcdir)/bfd.texi | |
216 | ||
d5fbea21 | 217 | MAINTAINERCLEANFILES += bfd.info |