build chew into the current directory
[deliverable/binutils-gdb.git] / bfd / doc / Makefile.in
1 #
2 # Makefile
3 # Copyright (C) 1990, 1991 Cygnus Support
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 2 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; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
18 #
19
20 srcdir = .
21
22 prefix = /usr/local
23
24 bindir = $(prefix)/bin
25 datadir = $(prefix)/lib
26 libdir = $(prefix)/lib
27 mandir = $(datadir)/man
28 man1dir = $(mandir)/man1
29 man2dir = $(mandir)/man2
30 man3dir = $(mandir)/man3
31 man4dir = $(mandir)/man4
32 man5dir = $(mandir)/man5
33 man6dir = $(mandir)/man6
34 man7dir = $(mandir)/man7
35 man8dir = $(mandir)/man8
36 man9dir = $(mandir)/man9
37 infodir = $(datadir)/info
38 includedir = $(prefix)/include
39 docdir = $(datadir)/doc
40
41 MKDOC=$(srcdir)/chew
42 SHELL = /bin/sh
43
44 INSTALL = install -c
45 INSTALL_PROGRAM = $(INSTALL)
46 INSTALL_DATA = $(INSTALL)
47
48 AR = ar
49 AR_FLAGS = qv
50 BISON = bison
51 MAKEINFO = makeinfo
52 RANLIB = ranlib
53
54 #### Host, target, and site specific Makefile fragments come in here.
55 ###
56
57 CFLAGS = $(H_CFLAGS) -I.. -I$(srcdir)/.. -I$(srcdir)/../../include
58
59 # main GDB source directory
60
61 DOCFILES = aoutx.texi archive.texi archures.texi \
62 bfd.texi cache.texi coffcode.texi \
63 core.texi format.texi libbfd.texi \
64 opncls.texi reloc.texi section.texi \
65 syms.texi targets.texi init.texi ctor.texi
66
67 PROTOS = archive.p archures.p bfd.p \
68 core.p format.p \
69 libbfd.p opncls.p reloc.p \
70 section.p syms.p targets.p \
71 format.p core.p init.p
72
73 IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip ctor.ip coffcode.ip
74
75 # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction
76 # between VPATH and suffix rules. If you use GNU Make, perhaps other Makes,
77 # you don't need these three:
78 SRCDOC = $(srcdir)/../aoutx.h $(srcdir)/../archive.c \
79 $(srcdir)/../archures.c $(srcdir)/../bfd.c \
80 $(srcdir)/../cache.c $(srcdir)/../coffcode.h \
81 $(srcdir)/../core.c $(srcdir)/../format.c \
82 $(srcdir)/../libbfd.c $(srcdir)/../opncls.c \
83 $(srcdir)/../reloc.c $(srcdir)/../section.c \
84 $(srcdir)/../syms.c $(srcdir)/../targets.c \
85 $(srcdir)/../init.c
86
87 SRCPROT = $(srcdir)/../archive.c $(srcdir)/../archures.c \
88 $(srcdir)/../bfd.c $(srcdir)/../coffcode.h $(srcdir)/../core.c \
89 $(srcdir)/../format.c $(srcdir)/../libbfd.c \
90 $(srcdir)/../opncls.c $(srcdir)/../reloc.c \
91 $(srcdir)/../section.c $(srcdir)/../syms.c \
92 $(srcdir)/../targets.c $(srcdir)/../init.c
93
94 SRCIPROT = $(srcdir)/../cache.c $(srcdir)/../libbfd.c \
95 $(srcdir)/../reloc.c $(srcdir)/../cpu-h8300.c \
96 $(srcdir)/../cpu-i960.c $(srcdir)/../archures.c \
97 $(srcdir)/../init.c $(srcdir)/../ctor.c
98
99 STAGESTUFF = $(DOCFILES) *.info*
100
101 all install:
102
103 info: bfd.info
104
105 install-info: info
106 for i in *.info* ; do \
107 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
108 done
109
110 docs: chew protos bfd.info bfd.dvi bfd.ps
111
112 chew:chew.c
113 $(CC) $(CFLAGS) -o ./chew $(srcdir)/chew.c $(LOADLIBES)
114
115 protos: libbfd.h libcoff.h bfd.h
116
117 aoutx.texi: $(MKDOC) $(srcdir)/../aoutx.h $(srcdir)/doc.str
118 $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.texi
119
120 archive.texi: $(MKDOC) $(srcdir)/../archive.c $(srcdir)/doc.str
121 $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.texi
122
123 archures.texi: $(srcdir)/../archures.c $(srcdir)/doc.str
124 $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.texi
125
126 bfd.texi: $(MKDOC) $(srcdir)/../bfd.c $(srcdir)/doc.str
127 $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.texi
128
129 cache.texi: $(MKDOC) $(srcdir)/../cache.c $(srcdir)/doc.str
130 $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.texi
131
132 coffcode.texi: $(MKDOC) $(srcdir)/../coffcode.h $(srcdir)/doc.str
133 $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../coffcode.h >coffcode.texi
134
135 core.texi: $(MKDOC) $(srcdir)/../core.c $(srcdir)/doc.str
136 $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../core.c >core.texi
137
138 format.texi: $(MKDOC) $(srcdir)/../format.c $(srcdir)/doc.str
139 $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../format.c >format.texi
140
141 libbfd.texi: $(MKDOC) $(srcdir)/../libbfd.c $(srcdir)/doc.str
142 $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.texi
143
144 opncls.texi: $(srcdir)/chew $(srcdir)/../opncls.c $(srcdir)/doc.str
145 $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../opncls.c >opncls.texi
146
147 reloc.texi : $(MKDOC) $(srcdir)/../reloc.c
148 $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.texi
149
150 section.texi: $(MKDOC) $(srcdir)/../section.c $(srcdir)/doc.str
151 $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../section.c >section.texi
152
153 syms.texi : $(MKDOC) $(srcdir)/../syms.c
154 $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.texi
155
156 targets.texi: $(MKDOC) $(srcdir)/../targets.c $(srcdir)/doc.str
157 $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../targets.c >targets.texi
158
159 init.texi: $(MKDOC) $(srcdir)/../init.c $(srcdir)/doc.str
160 $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../init.c >init.texi
161
162 ctor.texi: $(MKDOC) $(srcdir)/../ctor.c $(srcdir)/doc.str
163 $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../ctor.c >ctor.texi
164
165
166 libbfd.h: $(srcdir)/../libbfd-in.h \
167 $(srcdir)/../init.c \
168 $(srcdir)/../libbfd.c \
169 $(srcdir)/../init.c \
170 $(srcdir)/../libbfd.c \
171 $(srcdir)/../cache.c \
172 $(srcdir)/../ctor.c \
173 $(srcdir)/../reloc.c \
174 $(srcdir)/../cpu-h8300.c \
175 $(srcdir)/../cpu-i960.c \
176 $(srcdir)/../archures.c \
177 $(srcdir)/chew
178 cat $(srcdir)/../libbfd-in.h >libbfd.h
179 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../init.c >>libbfd.h
180 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../libbfd.c >>libbfd.h
181 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../init.c >>libbfd.h
182 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../libbfd.c >>libbfd.h
183 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../cache.c >>libbfd.h
184 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../ctor.c >>libbfd.h
185 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../reloc.c >>libbfd.h
186 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../cpu-h8300.c >>libbfd.h
187 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../cpu-i960.c >>libbfd.h
188 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../archures.c >>libbfd.h
189
190 libcoff.h: $(srcdir)/../libcoff-in.h \
191 $(srcdir)/../coffcode.h \
192 $(srcdir)/chew
193 cat $(srcdir)/../libcoff-in.h >libcoff.h
194 $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../coffcode.h >>libcoff.h
195
196 bfd.h: $(srcdir)/../bfd-in.h \
197 $(srcdir)/../init.c \
198 $(srcdir)/../opncls.c \
199 $(srcdir)/../libbfd.c \
200 $(srcdir)/../section.c \
201 $(srcdir)/../archures.c \
202 $(srcdir)/../reloc.c \
203 $(srcdir)/../syms.c \
204 $(srcdir)/../archive.c \
205 $(srcdir)/../core.c \
206 $(srcdir)/../targets.c \
207 $(srcdir)/../format.c \
208 $(srcdir)/chew
209 cat $(srcdir)/../bfd-in.h >bfd.h
210 $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../init.c >>bfd.h
211 $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../opncls.c >>bfd.h
212 $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../libbfd.c >>bfd.h
213 $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../section.c >>bfd.h
214 $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archures.c >>bfd.h
215 $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../reloc.c >>bfd.h
216 $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../syms.c >>bfd.h
217 $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../bfd.c >>bfd.h
218 $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archive.c >>bfd.h
219 $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../core.c >>bfd.h
220 $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../targets.c >>bfd.h
221 $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../format.c >>bfd.h
222 echo "#endif" >>bfd.h
223
224
225 clean:
226 rm -f $(STAGESTUFF) *.p *.ip bfd.dvi bfd.ps *~* *# bfd.?? bfd.??? chew
227
228 bfd.info: $(DOCFILES) bfd.texinfo
229 $(MAKEINFO) -o bfd.info $(srcdir)/bfd.texinfo
230
231 bfd.dvi: $(DOCFILES) bfd.texinfo
232 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
233 # texindex bfd.??
234 # TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
235
236 bfd.ps: bfd.dvi
237 dvips bfd -o
238
239 quickdoc: $(DOCFILES) bfd.texinfo
240 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
241
242 stage1: force
243 - mkdir stage1
244 - mv -f $(STAGESTUFF) stage1
245
246 stage2: force
247 - mkdir stage2
248 - mv -f $(STAGESTUFF) stage2
249
250 stage3: force
251 - mkdir stage3
252 - mv -f $(STAGESTUFF) stage3
253
254 against=stage2
255
256 comparison: force
257 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i || exit 1 ; done
258
259 de-stage1: force
260 - (cd stage1 ; mv -f $(STAGESTUFF) ..)
261 - rmdir stage1
262
263 de-stage2: force
264 - (cd stage2 ; mv -f $(STAGESTUFF) ..)
265 - rmdir stage2
266
267 de-stage3: force
268 - (cd stage3 ; mv -f $(STAGESTUFF) ..)
269 - rmdir stage3
270
271 force:
272
273 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
274 $(SHELL) ./config.status
275
This page took 0.036505 seconds and 5 git commands to generate.