Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | ## Process this file with automake to generate Makefile.in |
2 | ||
3 | AUTOMAKE_OPTIONS = cygnus | |
4 | ||
5 | DOCFILES = 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 \ | |
3c3bdf30 NC |
9 | syms.texi targets.texi init.texi hash.texi linker.texi \ |
10 | mmo.texi | |
252b5132 RH |
11 | |
12 | PROTOS = archive.p archures.p bfd.p \ | |
13 | core.p format.p \ | |
14 | libbfd.p opncls.p reloc.p \ | |
15 | section.p syms.p targets.p \ | |
16 | format.p core.p init.p | |
17 | ||
18 | IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip coffcode.ip | |
19 | ||
20 | # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction | |
21 | # between VPATH and suffix rules. If you use GNU Make, perhaps other Makes, | |
22 | # you don't need these three: | |
23 | SRCDOC = $(srcdir)/../aoutx.h $(srcdir)/../archive.c \ | |
24 | $(srcdir)/../archures.c $(srcdir)/../bfd.c \ | |
25 | $(srcdir)/../cache.c $(srcdir)/../coffcode.h \ | |
26 | $(srcdir)/../corefile.c $(srcdir)/../elf.c \ | |
27 | $(srcdir)/../elfcode.h $(srcdir)/../format.c \ | |
28 | $(srcdir)/../libbfd.c $(srcdir)/../opncls.c \ | |
29 | $(srcdir)/../reloc.c $(srcdir)/../section.c \ | |
30 | $(srcdir)/../syms.c $(srcdir)/../targets.c \ | |
3c3bdf30 NC |
31 | $(srcdir)/../hash.c $(srcdir)/../linker.c \ |
32 | $(srcdir)/../mmo.c | |
252b5132 RH |
33 | |
34 | SRCPROT = $(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 | ||
41 | SRCIPROT = $(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 | ||
46 | TEXIDIR = $(srcdir)/../../texinfo/fsf | |
47 | ||
48 | info_TEXINFOS = bfd.texinfo | |
49 | ||
50 | MKDOC = chew$(EXEEXT_FOR_BUILD) | |
51 | ||
52 | $(MKDOC): chew.o | |
53 | $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(LOADLIBES) $(LDFLAGS) | |
54 | ||
55 | chew.o: chew.c | |
56 | $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS) $(srcdir)/chew.c | |
57 | ||
58 | protos: libbfd.h libcoff.h bfd.h | |
59 | ||
60 | bfd.info bfd.dvi: $(DOCFILES) bfdsumm.texi bfd.texinfo | |
61 | ||
62 | # We can't replace these rules with an implicit rule, because | |
63 | # makes without VPATH support couldn't find the .h files in `..'. | |
64 | ||
65 | # We use s-XXX targets so that we can distribute the info files, | |
66 | # and permit people to rebuild them, without requiring the makeinfo | |
67 | # program. If somebody tries to rebuild info, but none of the .texi | |
68 | # files have changed, then this Makefile will build chew, and will | |
69 | # build all of the stamp files, but will not actually have to rebuild | |
70 | # bfd.info. | |
71 | ||
72 | s-aoutx: $(MKDOC) $(srcdir)/../aoutx.h $(srcdir)/doc.str | |
73 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.tmp | |
74 | $(srcdir)/../../move-if-change aoutx.tmp aoutx.texi | |
75 | touch s-aoutx | |
76 | aoutx.texi: s-aoutx | |
77 | ||
78 | s-archive: $(MKDOC) $(srcdir)/../archive.c $(srcdir)/doc.str | |
79 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.tmp | |
80 | $(srcdir)/../../move-if-change archive.tmp archive.texi | |
81 | touch s-archive | |
82 | archive.texi: s-archive | |
83 | ||
84 | s-archures: $(MKDOC) $(srcdir)/../archures.c $(srcdir)/doc.str | |
85 | ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.tmp | |
86 | $(srcdir)/../../move-if-change archures.tmp archures.texi | |
87 | touch s-archures | |
88 | archures.texi: s-archures | |
89 | ||
90 | # We use bfdt.texi, rather than bfd.texi, to avoid conflicting with | |
91 | # bfd.texinfo on an 8.3 filesystem. | |
92 | s-bfd: $(MKDOC) $(srcdir)/../bfd.c $(srcdir)/doc.str | |
93 | ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.tmp | |
94 | $(srcdir)/../../move-if-change bfd.tmp bfdt.texi | |
95 | touch s-bfd | |
96 | bfdt.texi: s-bfd | |
97 | ||
98 | s-cache: $(MKDOC) $(srcdir)/../cache.c $(srcdir)/doc.str | |
99 | ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.tmp | |
100 | $(srcdir)/../../move-if-change cache.tmp cache.texi | |
101 | touch s-cache | |
102 | cache.texi: s-cache | |
103 | ||
104 | s-coffcode: $(MKDOC) $(srcdir)/../coffcode.h $(srcdir)/doc.str | |
105 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../coffcode.h >coffcode.tmp | |
106 | $(srcdir)/../../move-if-change coffcode.tmp coffcode.texi | |
107 | touch s-coffcode | |
108 | coffcode.texi: s-coffcode | |
109 | ||
110 | s-core: $(MKDOC) $(srcdir)/../corefile.c $(srcdir)/doc.str | |
111 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../corefile.c >core.tmp | |
112 | $(srcdir)/../../move-if-change core.tmp core.texi | |
113 | touch s-core | |
114 | core.texi: s-core | |
115 | ||
116 | s-elf: $(MKDOC) $(srcdir)/../elf.c $(srcdir)/doc.str | |
117 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elf.c >elf.tmp | |
118 | $(srcdir)/../../move-if-change elf.tmp elf.texi | |
119 | touch s-elf | |
120 | elf.texi: s-elf | |
121 | ||
122 | s-elfcode: $(MKDOC) $(srcdir)/../elfcode.h $(srcdir)/doc.str | |
123 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elfcode.h >elfcode.tmp | |
124 | $(srcdir)/../../move-if-change elfcode.tmp elfcode.texi | |
125 | touch s-elfcode | |
126 | elfcode.texi: s-elfcode | |
127 | ||
3c3bdf30 NC |
128 | s-mmo: $(MKDOC) $(srcdir)/../mmo.c $(srcdir)/doc.str |
129 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../mmo.c >mmo.tmp | |
130 | $(srcdir)/../../move-if-change mmo.tmp mmo.texi | |
131 | touch s-mmo | |
132 | mmo.texi: s-mmo | |
133 | ||
252b5132 RH |
134 | s-format: $(MKDOC) $(srcdir)/../format.c $(srcdir)/doc.str |
135 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../format.c >format.tmp | |
136 | $(srcdir)/../../move-if-change format.tmp format.texi | |
137 | touch s-format | |
138 | format.texi: s-format | |
139 | ||
140 | s-libbfd: $(MKDOC) $(srcdir)/../libbfd.c $(srcdir)/doc.str | |
141 | ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.tmp | |
142 | $(srcdir)/../../move-if-change libbfd.tmp libbfd.texi | |
143 | touch s-libbfd | |
144 | libbfd.texi: s-libbfd | |
145 | ||
146 | s-opncls: $(MKDOC) $(srcdir)/../opncls.c $(srcdir)/doc.str | |
147 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../opncls.c >opncls.tmp | |
148 | $(srcdir)/../../move-if-change opncls.tmp opncls.texi | |
149 | touch s-opncls | |
150 | opncls.texi: s-opncls | |
151 | ||
152 | s-reloc: $(MKDOC) $(srcdir)/../reloc.c $(srcdir)/doc.str | |
153 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.tmp | |
154 | $(srcdir)/../../move-if-change reloc.tmp reloc.texi | |
155 | touch s-reloc | |
156 | reloc.texi: s-reloc | |
157 | ||
158 | s-section: $(MKDOC) $(srcdir)/../section.c $(srcdir)/doc.str | |
159 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../section.c >section.tmp | |
160 | $(srcdir)/../../move-if-change section.tmp section.texi | |
161 | touch s-section | |
162 | section.texi: s-section | |
163 | ||
164 | s-syms: $(MKDOC) $(srcdir)/../syms.c $(srcdir)/doc.str | |
165 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.tmp | |
166 | $(srcdir)/../../move-if-change syms.tmp syms.texi | |
167 | touch s-syms | |
168 | syms.texi: s-syms | |
169 | ||
170 | s-targets: $(MKDOC) $(srcdir)/../targets.c $(srcdir)/doc.str | |
171 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../targets.c >targets.tmp | |
172 | $(srcdir)/../../move-if-change targets.tmp targets.texi | |
173 | touch s-targets | |
174 | targets.texi: s-targets | |
175 | ||
176 | s-init: $(MKDOC) $(srcdir)/../init.c $(srcdir)/doc.str | |
177 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../init.c >init.tmp | |
178 | $(srcdir)/../../move-if-change init.tmp init.texi | |
179 | touch s-init | |
180 | init.texi: s-init | |
181 | ||
182 | s-hash: $(MKDOC) $(srcdir)/../hash.c $(srcdir)/doc.str | |
183 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../hash.c >hash.tmp | |
184 | $(srcdir)/../../move-if-change hash.tmp hash.texi | |
185 | touch s-hash | |
186 | hash.texi: s-hash | |
187 | ||
188 | s-linker: $(MKDOC) $(srcdir)/../linker.c $(srcdir)/doc.str | |
189 | ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../linker.c >linker.tmp | |
190 | $(srcdir)/../../move-if-change linker.tmp linker.texi | |
191 | touch s-linker | |
192 | linker.texi: s-linker | |
193 | ||
87b632fc AM |
194 | LIBBFD_H_DEP = \ |
195 | $(srcdir)/../libbfd-in.h \ | |
252b5132 RH |
196 | $(srcdir)/../init.c \ |
197 | $(srcdir)/../libbfd.c \ | |
198 | $(srcdir)/../cache.c \ | |
199 | $(srcdir)/../reloc.c \ | |
200 | $(srcdir)/../archures.c \ | |
4eef72c7 AM |
201 | $(srcdir)/../elf.c \ |
202 | $(srcdir)/header.sed \ | |
252b5132 RH |
203 | $(srcdir)/proto.str \ |
204 | $(MKDOC) | |
4eef72c7 AM |
205 | |
206 | libbfd.h: $(LIBBFD_H_DEP) | |
207 | echo "$(LIBBFD_H_DEP)" | sed -f $(srcdir)/header.sed > $@ | |
208 | for file in $(LIBBFD_H_DEP); do \ | |
209 | case $$file in \ | |
210 | *-in.h) cat $$file >> $@ ;; \ | |
211 | */header.sed) break ;; \ | |
796f6cb7 | 212 | *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \ |
c46f20ef | 213 | -e 's,$$,. */,' >> $@ ; \ |
86fb1dec | 214 | ./$(MKDOC) -i -f $(srcdir)/proto.str < $$file >> $@ ;; \ |
4eef72c7 AM |
215 | esac; \ |
216 | done | |
217 | ||
87b632fc AM |
218 | LIBCOFF_H_DEP = \ |
219 | $(srcdir)/../libcoff-in.h \ | |
252b5132 | 220 | $(srcdir)/../coffcode.h \ |
4eef72c7 | 221 | $(srcdir)/header.sed \ |
252b5132 RH |
222 | $(srcdir)/proto.str \ |
223 | $(MKDOC) | |
252b5132 | 224 | |
4eef72c7 AM |
225 | libcoff.h: $(LIBCOFF_H_DEP) |
226 | echo "$(LIBCOFF_H_DEP)" | sed -f $(srcdir)/header.sed > $@ | |
227 | for file in $(LIBCOFF_H_DEP); do \ | |
228 | case $$file in \ | |
229 | *-in.h) cat $$file >> $@ ;; \ | |
230 | */header.sed) break ;; \ | |
796f6cb7 | 231 | *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \ |
c46f20ef | 232 | -e 's,$$,. */,' >> $@ ; \ |
86fb1dec | 233 | ./$(MKDOC) -i -f $(srcdir)/proto.str < $$file >> $@ ;; \ |
4eef72c7 AM |
234 | esac; \ |
235 | done | |
236 | ||
87b632fc AM |
237 | BFD_H_DEP = \ |
238 | $(srcdir)/../bfd-in.h \ | |
252b5132 RH |
239 | $(srcdir)/../init.c \ |
240 | $(srcdir)/../opncls.c \ | |
241 | $(srcdir)/../libbfd.c \ | |
242 | $(srcdir)/../section.c \ | |
243 | $(srcdir)/../archures.c \ | |
244 | $(srcdir)/../reloc.c \ | |
245 | $(srcdir)/../syms.c \ | |
246 | $(srcdir)/../bfd.c \ | |
247 | $(srcdir)/../archive.c \ | |
248 | $(srcdir)/../corefile.c \ | |
249 | $(srcdir)/../targets.c \ | |
250 | $(srcdir)/../format.c \ | |
eda81658 DJ |
251 | $(srcdir)/../linker.c \ |
252 | $(srcdir)/../simple.c \ | |
4eef72c7 | 253 | $(srcdir)/header.sed \ |
252b5132 | 254 | $(srcdir)/proto.str \ |
87b632fc | 255 | $(srcdir)/../version.h \ |
252b5132 | 256 | $(MKDOC) |
4eef72c7 AM |
257 | |
258 | bfd.h: $(BFD_H_DEP) | |
259 | echo "$(BFD_H_DEP)" | sed -f $(srcdir)/header.sed > $@ | |
260 | for file in $(BFD_H_DEP); do \ | |
261 | case $$file in \ | |
262 | *-in.h) cat $$file >> $@ ;; \ | |
263 | */header.sed) break ;; \ | |
796f6cb7 | 264 | *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \ |
c46f20ef | 265 | -e 's,$$,. */,' >> $@ ; \ |
86fb1dec | 266 | ./$(MKDOC) -f $(srcdir)/proto.str < $$file >> $@ ;; \ |
4eef72c7 AM |
267 | esac; \ |
268 | done | |
269 | echo "#ifdef __cplusplus" >> $@ | |
270 | echo "}" >> $@ | |
271 | echo "#endif" >> $@ | |
272 | echo "#endif" >> $@ | |
252b5132 RH |
273 | |
274 | noinst_TEXINFOS = bfdint.texi | |
275 | ||
276 | MOSTLYCLEANFILES = $(MKDOC) *.o | |
277 | ||
278 | CLEANFILES = s-* *.p *.ip | |
279 | ||
280 | DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log | |
281 | ||
282 | MAINTAINERCLEANFILES = $(DOCFILES) | |
7562a296 HPN |
283 | |
284 | # We want install to imply install-info as per GNU standards, despite the | |
285 | # cygnus option. | |
286 | install: install-info |