1 ## Process this file with automake to generate Makefile.in
3 ## We need to do this here because it is defined in acmacros.m4, which
4 ## automake won't read.
5 CC_FOR_BUILD = @CC_FOR_BUILD@
7 DOCFILES = aoutx.texi archive.texi archures.texi \
8 bfdt.texi cache.texi coffcode.texi \
9 core.texi elf.texi elfcode.texi format.texi libbfd.texi \
10 opncls.texi reloc.texi section.texi \
11 syms.texi targets.texi init.texi hash.texi linker.texi
13 PROTOS = archive.p archures.p bfd.p \
15 libbfd.p opncls.p reloc.p \
16 section.p syms.p targets.p \
17 format.p core.p init.p
19 IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip coffcode.ip
21 # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction
22 # between VPATH and suffix rules. If you use GNU Make, perhaps other Makes,
23 # you don't need these three:
24 SRCDOC = $(srcdir)/../aoutx.h $(srcdir)/../archive.c \
25 $(srcdir)/../archures.c $(srcdir)/../bfd.c \
26 $(srcdir)/../cache.c $(srcdir)/../coffcode.h \
27 $(srcdir)/../corefile.c $(srcdir)/../elf.c \
28 $(srcdir)/../elfcode.h $(srcdir)/../format.c \
29 $(srcdir)/../libbfd.c $(srcdir)/../opncls.c \
30 $(srcdir)/../reloc.c $(srcdir)/../section.c \
31 $(srcdir)/../syms.c $(srcdir)/../targets.c \
32 $(srcdir)/../hash.c $(srcdir)/../linker.c
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
41 SRCIPROT = $(srcdir)/../cache.c $(srcdir)/../libbfd.c \
42 $(srcdir)/../reloc.c $(srcdir)/../cpu-h8300.c \
43 $(srcdir)/../cpu-i960.c $(srcdir)/../archures.c \
46 STAGESTUFF = $(DOCFILES) *.info*
48 TEXIDIR = $(srcdir)/../../texinfo/fsf
50 info_TEXINFOS = bfd.texinfo
55 $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(LOADLIBES) $(LDFLAGS)
58 $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include $(H_CFLAGS) $(CFLAGS) $(srcdir)/chew.c
60 protos: libbfd.h libcoff.h bfd.h
62 bfd.info bfd.dvi: $(DOCFILES) bfdsumm.texi bfd.texinfo
64 # We can't replace these rules with an implicit rule, because
65 # makes without VPATH support couldn't find the .h files in `..'.
67 # We use s-XXX targets so that we can distribute the info files,
68 # and permit people to rebuild them, without requiring the makeinfo
69 # program. If somebody tries to rebuild info, but none of the .texi
70 # files have changed, then this Makefile will build chew, and will
71 # build all of the stamp files, but will not actually have to rebuild
74 s-aoutx: $(MKDOC) $(srcdir)/../aoutx.h $(srcdir)/doc.str
75 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.tmp
76 $(srcdir)/../../move-if-change aoutx.tmp aoutx.texi
80 s-archive: $(MKDOC) $(srcdir)/../archive.c $(srcdir)/doc.str
81 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.tmp
82 $(srcdir)/../../move-if-change archive.tmp archive.texi
84 archive.texi: s-archive
86 s-archures: $(MKDOC) $(srcdir)/../archures.c $(srcdir)/doc.str
87 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.tmp
88 $(srcdir)/../../move-if-change archures.tmp archures.texi
90 archures.texi: s-archures
92 # We use bfdt.texi, rather than bfd.texi, to avoid conflicting with
93 # bfd.texinfo on an 8.3 filesystem.
94 s-bfd: $(MKDOC) $(srcdir)/../bfd.c $(srcdir)/doc.str
95 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.tmp
96 $(srcdir)/../../move-if-change bfd.tmp bfdt.texi
100 s-cache: $(MKDOC) $(srcdir)/../cache.c $(srcdir)/doc.str
101 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.tmp
102 $(srcdir)/../../move-if-change cache.tmp cache.texi
106 s-coffcode: $(MKDOC) $(srcdir)/../coffcode.h $(srcdir)/doc.str
107 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../coffcode.h >coffcode.tmp
108 $(srcdir)/../../move-if-change coffcode.tmp coffcode.texi
110 coffcode.texi: s-coffcode
112 s-core: $(MKDOC) $(srcdir)/../corefile.c $(srcdir)/doc.str
113 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../corefile.c >core.tmp
114 $(srcdir)/../../move-if-change core.tmp core.texi
118 s-elf: $(MKDOC) $(srcdir)/../elf.c $(srcdir)/doc.str
119 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elf.c >elf.tmp
120 $(srcdir)/../../move-if-change elf.tmp elf.texi
124 s-elfcode: $(MKDOC) $(srcdir)/../elfcode.h $(srcdir)/doc.str
125 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elfcode.h >elfcode.tmp
126 $(srcdir)/../../move-if-change elfcode.tmp elfcode.texi
128 elfcode.texi: s-elfcode
130 s-format: $(MKDOC) $(srcdir)/../format.c $(srcdir)/doc.str
131 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../format.c >format.tmp
132 $(srcdir)/../../move-if-change format.tmp format.texi
134 format.texi: s-format
136 s-libbfd: $(MKDOC) $(srcdir)/../libbfd.c $(srcdir)/doc.str
137 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.tmp
138 $(srcdir)/../../move-if-change libbfd.tmp libbfd.texi
140 libbfd.texi: s-libbfd
142 s-opncls: $(MKDOC) $(srcdir)/../opncls.c $(srcdir)/doc.str
143 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../opncls.c >opncls.tmp
144 $(srcdir)/../../move-if-change opncls.tmp opncls.texi
146 opncls.texi: s-opncls
148 s-reloc: $(MKDOC) $(srcdir)/../reloc.c
149 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.tmp
150 $(srcdir)/../../move-if-change reloc.tmp reloc.texi
154 s-section: $(MKDOC) $(srcdir)/../section.c $(srcdir)/doc.str
155 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../section.c >section.tmp
156 $(srcdir)/../../move-if-change section.tmp section.texi
158 section.texi: s-section
160 s-syms: $(MKDOC) $(srcdir)/../syms.c
161 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.tmp
162 $(srcdir)/../../move-if-change syms.tmp syms.texi
166 s-targets: $(MKDOC) $(srcdir)/../targets.c $(srcdir)/doc.str
167 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../targets.c >targets.tmp
168 $(srcdir)/../../move-if-change targets.tmp targets.texi
170 targets.texi: s-targets
172 s-init: $(MKDOC) $(srcdir)/../init.c $(srcdir)/doc.str
173 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../init.c >init.tmp
174 $(srcdir)/../../move-if-change init.tmp init.texi
178 s-hash: $(MKDOC) $(srcdir)/../hash.c $(srcdir)/doc.str
179 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../hash.c >hash.tmp
180 $(srcdir)/../../move-if-change hash.tmp hash.texi
184 s-linker: $(MKDOC) $(srcdir)/../linker.c $(srcdir)/doc.str
185 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../linker.c >linker.tmp
186 $(srcdir)/../../move-if-change linker.tmp linker.texi
188 linker.texi: s-linker
190 libbfd.h: $(srcdir)/../libbfd-in.h \
191 $(srcdir)/../init.c \
192 $(srcdir)/../libbfd.c \
193 $(srcdir)/../cache.c \
194 $(srcdir)/../reloc.c \
195 $(srcdir)/../cpu-h8300.c \
196 $(srcdir)/../cpu-i960.c \
197 $(srcdir)/../archures.c \
198 $(srcdir)/../elfcode.h \
199 $(srcdir)/proto.str \
201 cat $(srcdir)/../libbfd-in.h >libbfd.h
202 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../init.c >>libbfd.h
203 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../libbfd.c >>libbfd.h
204 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../cache.c >>libbfd.h
205 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../reloc.c >>libbfd.h
206 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../cpu-h8300.c >>libbfd.h
207 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../cpu-i960.c >>libbfd.h
208 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../archures.c >>libbfd.h
209 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../elf.c >>libbfd.h
210 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../elfcode.h >>libbfd.h
212 libcoff.h: $(srcdir)/../libcoff-in.h \
213 $(srcdir)/../coffcode.h \
214 $(srcdir)/proto.str \
216 cat $(srcdir)/../libcoff-in.h >libcoff.h
217 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../coffcode.h >>libcoff.h
219 bfd.h: $(srcdir)/../bfd-in.h \
220 $(srcdir)/../init.c \
221 $(srcdir)/../opncls.c \
222 $(srcdir)/../libbfd.c \
223 $(srcdir)/../section.c \
224 $(srcdir)/../archures.c \
225 $(srcdir)/../reloc.c \
226 $(srcdir)/../syms.c \
228 $(srcdir)/../archive.c \
229 $(srcdir)/../corefile.c \
230 $(srcdir)/../targets.c \
231 $(srcdir)/../format.c \
232 $(srcdir)/proto.str \
234 cat $(srcdir)/../bfd-in.h >bfd.h
235 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../init.c >>bfd.h
236 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../opncls.c >>bfd.h
237 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../libbfd.c >>bfd.h
238 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../section.c >>bfd.h
239 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archures.c >>bfd.h
240 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../reloc.c >>bfd.h
241 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../syms.c >>bfd.h
242 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../bfd.c >>bfd.h
243 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archive.c >>bfd.h
244 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../corefile.c >>bfd.h
245 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../targets.c >>bfd.h
246 ./$(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../format.c >>bfd.h
247 echo "#ifdef __cplusplus" >>bfd.h
249 echo "#endif" >>bfd.h
250 echo "#endif" >>bfd.h
253 MOSTLYCLEANFILES = $(MKDOC) *.o
255 CLEANFILES = $(STAGESTUFF) s-* *.p *.ip