Commit | Line | Data |
---|---|---|
252b5132 | 1 | ## Process this file with automake to generate Makefile.in |
5bf135a7 NC |
2 | # |
3 | # Copyright 2012 Free Software Foundation | |
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 | 20 | AUTOMAKE_OPTIONS = 1.9 cygnus |
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 RH |
30 | |
31 | PROTOS = 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 | ||
38 | IPROTOS = 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: | |
43 | SRCDOC = $(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 | |
55 | SRCPROT = $(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 | ||
63 | SRCIPROT = $(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 | ||
69 | TEXIDIR = $(srcdir)/../../texinfo/fsf | |
70 | ||
71 | info_TEXINFOS = bfd.texinfo | |
37d037c1 | 72 | bfd_TEXINFOS = $(DOCFILES) bfdsumm.texi |
252b5132 RH |
73 | |
74 | MKDOC = chew$(EXEEXT_FOR_BUILD) | |
75 | ||
14ec8efd | 76 | AM_CPPFLAGS = -I.. -I$(srcdir)/.. -I$(srcdir)/../../include \ |
34f3e815 L |
77 | -I$(srcdir)/../../intl -I../../intl |
78 | ||
dbdb27ec | 79 | $(MKDOC): $(srcdir)/chew.c |
50fbf7fe | 80 | $(CC_FOR_BUILD) -o chew.$$$$ $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \ |
14ec8efd | 81 | $(H_CFLAGS) $(AM_CPPFLAGS) $(srcdir)/chew.c; \ |
dbdb27ec | 82 | $(SHELL) $(srcdir)/../../move-if-change chew.$$$$ $(MKDOC) |
252b5132 | 83 | |
252b5132 RH |
84 | protos: libbfd.h libcoff.h bfd.h |
85 | ||
252b5132 RH |
86 | # We can't replace these rules with an implicit rule, because |
87 | # makes without VPATH support couldn't find the .h files in `..'. | |
88 | ||
b8c449bf DJ |
89 | # We do not depend on chew directly so that we can distribute the info |
90 | # files, and permit people to rebuild them, without requiring the makeinfo | |
91 | # program. If somebody tries to rebuild info, but none of the .texi files | |
92 | # have changed, then nothing will be rebuilt. | |
93 | ||
94 | aoutx.texi: chew.c $(srcdir)/../aoutx.h $(srcdir)/doc.str | |
95 | $(MAKE) $(MKDOC) | |
252b5132 | 96 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.tmp |
d639b1c3 | 97 | $(SHELL) $(srcdir)/../../move-if-change aoutx.tmp aoutx.texi |
252b5132 | 98 | |
b8c449bf DJ |
99 | archive.texi: chew.c $(srcdir)/../archive.c $(srcdir)/doc.str |
100 | $(MAKE) $(MKDOC) | |
252b5132 | 101 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.tmp |
d639b1c3 | 102 | $(SHELL) $(srcdir)/../../move-if-change archive.tmp archive.texi |
252b5132 | 103 | |
b8c449bf DJ |
104 | archures.texi: chew.c $(srcdir)/../archures.c $(srcdir)/doc.str |
105 | $(MAKE) $(MKDOC) | |
252b5132 | 106 | ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.tmp |
d639b1c3 | 107 | $(SHELL) $(srcdir)/../../move-if-change archures.tmp archures.texi |
252b5132 RH |
108 | |
109 | # We use bfdt.texi, rather than bfd.texi, to avoid conflicting with | |
110 | # bfd.texinfo on an 8.3 filesystem. | |
b8c449bf DJ |
111 | bfdt.texi: chew.c $(srcdir)/../bfd.c $(srcdir)/doc.str |
112 | $(MAKE) $(MKDOC) | |
252b5132 | 113 | ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.tmp |
d639b1c3 | 114 | $(SHELL) $(srcdir)/../../move-if-change bfd.tmp bfdt.texi |
252b5132 | 115 | |
b8c449bf DJ |
116 | cache.texi: chew.c $(srcdir)/../cache.c $(srcdir)/doc.str |
117 | $(MAKE) $(MKDOC) | |
252b5132 | 118 | ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.tmp |
d639b1c3 | 119 | $(SHELL) $(srcdir)/../../move-if-change cache.tmp cache.texi |
252b5132 | 120 | |
b8c449bf DJ |
121 | coffcode.texi: chew.c $(srcdir)/../coffcode.h $(srcdir)/doc.str |
122 | $(MAKE) $(MKDOC) | |
252b5132 | 123 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../coffcode.h >coffcode.tmp |
d639b1c3 | 124 | $(SHELL) $(srcdir)/../../move-if-change coffcode.tmp coffcode.texi |
252b5132 | 125 | |
b8c449bf DJ |
126 | core.texi: chew.c $(srcdir)/../corefile.c $(srcdir)/doc.str |
127 | $(MAKE) $(MKDOC) | |
252b5132 | 128 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../corefile.c >core.tmp |
d639b1c3 | 129 | $(SHELL) $(srcdir)/../../move-if-change core.tmp core.texi |
252b5132 | 130 | |
b8c449bf DJ |
131 | elf.texi: chew.c $(srcdir)/../elf.c $(srcdir)/doc.str |
132 | $(MAKE) $(MKDOC) | |
252b5132 | 133 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elf.c >elf.tmp |
d639b1c3 | 134 | $(SHELL) $(srcdir)/../../move-if-change elf.tmp elf.texi |
252b5132 | 135 | |
b8c449bf DJ |
136 | elfcode.texi: chew.c $(srcdir)/../elfcode.h $(srcdir)/doc.str |
137 | $(MAKE) $(MKDOC) | |
252b5132 | 138 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elfcode.h >elfcode.tmp |
d639b1c3 | 139 | $(SHELL) $(srcdir)/../../move-if-change elfcode.tmp elfcode.texi |
252b5132 | 140 | |
b8c449bf DJ |
141 | mmo.texi: chew.c $(srcdir)/../mmo.c $(srcdir)/doc.str |
142 | $(MAKE) $(MKDOC) | |
3c3bdf30 | 143 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../mmo.c >mmo.tmp |
d639b1c3 | 144 | $(SHELL) $(srcdir)/../../move-if-change mmo.tmp mmo.texi |
3c3bdf30 | 145 | |
b8c449bf DJ |
146 | format.texi: chew.c $(srcdir)/../format.c $(srcdir)/doc.str |
147 | $(MAKE) $(MKDOC) | |
252b5132 | 148 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../format.c >format.tmp |
d639b1c3 | 149 | $(SHELL) $(srcdir)/../../move-if-change format.tmp format.texi |
252b5132 | 150 | |
b8c449bf DJ |
151 | libbfd.texi: chew.c $(srcdir)/../libbfd.c $(srcdir)/doc.str |
152 | $(MAKE) $(MKDOC) | |
252b5132 | 153 | ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.tmp |
d639b1c3 | 154 | $(SHELL) $(srcdir)/../../move-if-change libbfd.tmp libbfd.texi |
252b5132 | 155 | |
b8c449bf DJ |
156 | bfdio.texi: chew.c $(srcdir)/../bfdio.c $(srcdir)/doc.str |
157 | $(MAKE) $(MKDOC) | |
93509525 | 158 | ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfdio.c >bfdio.tmp |
d639b1c3 | 159 | $(SHELL) $(srcdir)/../../move-if-change bfdio.tmp bfdio.texi |
93509525 | 160 | |
b8c449bf DJ |
161 | bfdwin.texi: chew.c $(srcdir)/../bfdwin.c $(srcdir)/doc.str |
162 | $(MAKE) $(MKDOC) | |
93509525 | 163 | ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfdwin.c >bfdwin.tmp |
d639b1c3 | 164 | $(SHELL) $(srcdir)/../../move-if-change bfdwin.tmp bfdwin.texi |
93509525 | 165 | |
b8c449bf DJ |
166 | opncls.texi: chew.c $(srcdir)/../opncls.c $(srcdir)/doc.str |
167 | $(MAKE) $(MKDOC) | |
252b5132 | 168 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../opncls.c >opncls.tmp |
d639b1c3 | 169 | $(SHELL) $(srcdir)/../../move-if-change opncls.tmp opncls.texi |
252b5132 | 170 | |
b8c449bf DJ |
171 | reloc.texi: chew.c $(srcdir)/../reloc.c $(srcdir)/doc.str |
172 | $(MAKE) $(MKDOC) | |
252b5132 | 173 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.tmp |
d639b1c3 | 174 | $(SHELL) $(srcdir)/../../move-if-change reloc.tmp reloc.texi |
252b5132 | 175 | |
b8c449bf DJ |
176 | section.texi: chew.c $(srcdir)/../section.c $(srcdir)/doc.str |
177 | $(MAKE) $(MKDOC) | |
252b5132 | 178 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../section.c >section.tmp |
d639b1c3 | 179 | $(SHELL) $(srcdir)/../../move-if-change section.tmp section.texi |
252b5132 | 180 | |
b8c449bf DJ |
181 | syms.texi: chew.c $(srcdir)/../syms.c $(srcdir)/doc.str |
182 | $(MAKE) $(MKDOC) | |
252b5132 | 183 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.tmp |
d639b1c3 | 184 | $(SHELL) $(srcdir)/../../move-if-change syms.tmp syms.texi |
252b5132 | 185 | |
b8c449bf DJ |
186 | targets.texi: chew.c $(srcdir)/../targets.c $(srcdir)/doc.str |
187 | $(MAKE) $(MKDOC) | |
252b5132 | 188 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../targets.c >targets.tmp |
d639b1c3 | 189 | $(SHELL) $(srcdir)/../../move-if-change targets.tmp targets.texi |
252b5132 | 190 | |
b8c449bf DJ |
191 | init.texi: chew.c $(srcdir)/../init.c $(srcdir)/doc.str |
192 | $(MAKE) $(MKDOC) | |
252b5132 | 193 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../init.c >init.tmp |
d639b1c3 | 194 | $(SHELL) $(srcdir)/../../move-if-change init.tmp init.texi |
252b5132 | 195 | |
b8c449bf DJ |
196 | hash.texi: chew.c $(srcdir)/../hash.c $(srcdir)/doc.str |
197 | $(MAKE) $(MKDOC) | |
252b5132 | 198 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../hash.c >hash.tmp |
d639b1c3 | 199 | $(SHELL) $(srcdir)/../../move-if-change hash.tmp hash.texi |
252b5132 | 200 | |
b8c449bf DJ |
201 | linker.texi: chew.c $(srcdir)/../linker.c $(srcdir)/doc.str |
202 | $(MAKE) $(MKDOC) | |
252b5132 | 203 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../linker.c >linker.tmp |
d639b1c3 | 204 | $(SHELL) $(srcdir)/../../move-if-change linker.tmp linker.texi |
252b5132 | 205 | |
87b632fc AM |
206 | LIBBFD_H_DEP = \ |
207 | $(srcdir)/../libbfd-in.h \ | |
252b5132 RH |
208 | $(srcdir)/../init.c \ |
209 | $(srcdir)/../libbfd.c \ | |
93509525 KD |
210 | $(srcdir)/../bfdio.c \ |
211 | $(srcdir)/../bfdwin.c \ | |
252b5132 RH |
212 | $(srcdir)/../cache.c \ |
213 | $(srcdir)/../reloc.c \ | |
214 | $(srcdir)/../archures.c \ | |
4eef72c7 AM |
215 | $(srcdir)/../elf.c \ |
216 | $(srcdir)/header.sed \ | |
252b5132 RH |
217 | $(srcdir)/proto.str \ |
218 | $(MKDOC) | |
4eef72c7 AM |
219 | |
220 | libbfd.h: $(LIBBFD_H_DEP) | |
221 | echo "$(LIBBFD_H_DEP)" | sed -f $(srcdir)/header.sed > $@ | |
222 | for file in $(LIBBFD_H_DEP); do \ | |
223 | case $$file in \ | |
224 | *-in.h) cat $$file >> $@ ;; \ | |
225 | */header.sed) break ;; \ | |
796f6cb7 | 226 | *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \ |
c46f20ef | 227 | -e 's,$$,. */,' >> $@ ; \ |
86fb1dec | 228 | ./$(MKDOC) -i -f $(srcdir)/proto.str < $$file >> $@ ;; \ |
4eef72c7 AM |
229 | esac; \ |
230 | done | |
231 | ||
87b632fc AM |
232 | LIBCOFF_H_DEP = \ |
233 | $(srcdir)/../libcoff-in.h \ | |
252b5132 | 234 | $(srcdir)/../coffcode.h \ |
4eef72c7 | 235 | $(srcdir)/header.sed \ |
252b5132 RH |
236 | $(srcdir)/proto.str \ |
237 | $(MKDOC) | |
252b5132 | 238 | |
4eef72c7 AM |
239 | libcoff.h: $(LIBCOFF_H_DEP) |
240 | echo "$(LIBCOFF_H_DEP)" | sed -f $(srcdir)/header.sed > $@ | |
241 | for file in $(LIBCOFF_H_DEP); do \ | |
242 | case $$file in \ | |
243 | *-in.h) cat $$file >> $@ ;; \ | |
244 | */header.sed) break ;; \ | |
796f6cb7 | 245 | *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \ |
c46f20ef | 246 | -e 's,$$,. */,' >> $@ ; \ |
86fb1dec | 247 | ./$(MKDOC) -i -f $(srcdir)/proto.str < $$file >> $@ ;; \ |
4eef72c7 AM |
248 | esac; \ |
249 | done | |
250 | ||
87b632fc AM |
251 | BFD_H_DEP = \ |
252 | $(srcdir)/../bfd-in.h \ | |
252b5132 RH |
253 | $(srcdir)/../init.c \ |
254 | $(srcdir)/../opncls.c \ | |
255 | $(srcdir)/../libbfd.c \ | |
93509525 KD |
256 | $(srcdir)/../bfdio.c \ |
257 | $(srcdir)/../bfdwin.c \ | |
252b5132 RH |
258 | $(srcdir)/../section.c \ |
259 | $(srcdir)/../archures.c \ | |
260 | $(srcdir)/../reloc.c \ | |
261 | $(srcdir)/../syms.c \ | |
262 | $(srcdir)/../bfd.c \ | |
263 | $(srcdir)/../archive.c \ | |
264 | $(srcdir)/../corefile.c \ | |
265 | $(srcdir)/../targets.c \ | |
266 | $(srcdir)/../format.c \ | |
eda81658 DJ |
267 | $(srcdir)/../linker.c \ |
268 | $(srcdir)/../simple.c \ | |
1b315056 | 269 | $(srcdir)/../compress.c \ |
4eef72c7 | 270 | $(srcdir)/header.sed \ |
252b5132 | 271 | $(srcdir)/proto.str \ |
87b632fc | 272 | $(srcdir)/../version.h \ |
252b5132 | 273 | $(MKDOC) |
4eef72c7 AM |
274 | |
275 | bfd.h: $(BFD_H_DEP) | |
276 | echo "$(BFD_H_DEP)" | sed -f $(srcdir)/header.sed > $@ | |
277 | for file in $(BFD_H_DEP); do \ | |
278 | case $$file in \ | |
279 | *-in.h) cat $$file >> $@ ;; \ | |
280 | */header.sed) break ;; \ | |
796f6cb7 | 281 | *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \ |
c46f20ef | 282 | -e 's,$$,. */,' >> $@ ; \ |
86fb1dec | 283 | ./$(MKDOC) -f $(srcdir)/proto.str < $$file >> $@ ;; \ |
4eef72c7 AM |
284 | esac; \ |
285 | done | |
286 | echo "#ifdef __cplusplus" >> $@ | |
287 | echo "}" >> $@ | |
288 | echo "#endif" >> $@ | |
289 | echo "#endif" >> $@ | |
252b5132 | 290 | |
91506736 DJ |
291 | bfdver.texi: $(srcdir)/Makefile.in |
292 | @echo "creating $@"; \ | |
293 | echo "@set VERSION $(VERSION)" > bfdver.texi; \ | |
294 | if [ -n "$(PKGVERSION)" ]; then \ | |
295 | echo "@set VERSION_PACKAGE $(PKGVERSION)" >> bfdver.texi; \ | |
296 | fi; \ | |
297 | echo "@set UPDATED `date '+%B %Y'`" >> bfdver.texi; \ | |
298 | if [ -n "$(REPORT_BUGS_TEXI)" ]; then \ | |
299 | echo "@set BUGURL $(REPORT_BUGS_TEXI)" >> bfdver.texi; \ | |
300 | fi | |
301 | ||
252b5132 RH |
302 | noinst_TEXINFOS = bfdint.texi |
303 | ||
304 | MOSTLYCLEANFILES = $(MKDOC) *.o | |
305 | ||
b8c449bf | 306 | CLEANFILES = *.p *.ip |
252b5132 RH |
307 | |
308 | DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log | |
309 | ||
310 | MAINTAINERCLEANFILES = $(DOCFILES) | |
7562a296 HPN |
311 | |
312 | # We want install to imply install-info as per GNU standards, despite the | |
313 | # cygnus option. | |
314 | install: install-info | |
108a6f8e | 315 | |
d5fbea21 | 316 | MAINTAINERCLEANFILES += bfd.info |
108a6f8e | 317 | |
d5fbea21 DJ |
318 | # Automake 1.9 will only build info files in the objdir if they are |
319 | # mentioned in DISTCLEANFILES. It doesn't have to be unconditional, | |
320 | # though, so we use a bogus condition. | |
321 | if GENINSRC_NEVER | |
322 | DISTCLEANFILES += bfd.info | |
323 | endif |