]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/gdb/bfd/doc/Makefile.in
This commit was generated by cvs2svn to compensate for changes in r40269,
[FreeBSD/FreeBSD.git] / contrib / gdb / bfd / doc / Makefile.in
1 #
2 # Makefile
3 #   Copyright (C) 1990, 1991, 1992, 1993 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 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
18 #
19
20 VPATH = @srcdir@
21 srcdir = @srcdir@
22
23 prefix = @prefix@
24
25 exec_prefix = @exec_prefix@
26 bindir = $(exec_prefix)/bin
27 libdir = $(exec_prefix)/lib
28
29 datadir = $(prefix)/lib
30 mandir = $(prefix)/man
31 man1dir = $(mandir)/man1
32 man2dir = $(mandir)/man2
33 man3dir = $(mandir)/man3
34 man4dir = $(mandir)/man4
35 man5dir = $(mandir)/man5
36 man6dir = $(mandir)/man6
37 man7dir = $(mandir)/man7
38 man8dir = $(mandir)/man8
39 man9dir = $(mandir)/man9
40 infodir = $(prefix)/info
41 includedir = $(prefix)/include
42 docdir = $(datadir)/doc
43
44 MKDOC=./chew
45 SHELL = /bin/sh
46
47 INSTALL = `cd $(srcdir)/../..;pwd`/install.sh -c
48 INSTALL_PROGRAM = $(INSTALL)
49 INSTALL_DATA = $(INSTALL)
50
51 MAKEINFO = makeinfo
52 TEXI2DVI = texi2dvi
53 CFLAGS = -g
54
55 CC_FOR_BUILD = $(CC)
56
57 #### Host, target, and site specific Makefile fragments come in here.
58 ###
59
60 .c.o:
61         $(CC) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include $(H_CFLAGS) $(CFLAGS) $<
62
63 DOCFILES = aoutx.texi  archive.texi archures.texi \
64         bfd.texi  cache.texi coffcode.texi \
65         core.texi elf.texi elfcode.texi  format.texi  libbfd.texi  \
66         opncls.texi  reloc.texi  section.texi  \
67         syms.texi  targets.texi init.texi hash.texi linker.texi
68
69 PROTOS = archive.p archures.p bfd.p \
70          core.p format.p \
71         libbfd.p opncls.p reloc.p \
72         section.p syms.p targets.p  \
73         format.p  core.p init.p
74
75 IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip coffcode.ip
76
77 # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction 
78 # between VPATH and suffix rules.  If you use GNU Make, perhaps other Makes,
79 # you don't need these three:
80 SRCDOC = $(srcdir)/../aoutx.h  $(srcdir)/../archive.c \
81         $(srcdir)/../archures.c $(srcdir)/../bfd.c \
82         $(srcdir)/../cache.c $(srcdir)/../coffcode.h \
83         $(srcdir)/../corefile.c $(srcdir)/../elf.c \
84         $(srcdir)/../elfcode.h  $(srcdir)/../format.c \
85         $(srcdir)/../libbfd.c $(srcdir)/../opncls.c \
86         $(srcdir)/../reloc.c  $(srcdir)/../section.c \
87         $(srcdir)/../syms.c  $(srcdir)/../targets.c \
88         $(srcdir)/../hash.c $(srcdir)/../linker.c
89
90 SRCPROT = $(srcdir)/../archive.c $(srcdir)/../archures.c \
91         $(srcdir)/../bfd.c $(srcdir)/../coffcode.h $(srcdir)/../corefile.c \
92         $(srcdir)/../format.c $(srcdir)/../libbfd.c \
93         $(srcdir)/../opncls.c $(srcdir)/../reloc.c \
94         $(srcdir)/../section.c $(srcdir)/../syms.c \
95         $(srcdir)/../targets.c $(srcdir)/../init.c
96
97 SRCIPROT = $(srcdir)/../cache.c $(srcdir)/../libbfd.c \
98         $(srcdir)/../reloc.c $(srcdir)/../cpu-h8300.c \
99         $(srcdir)/../cpu-i960.c $(srcdir)/../archures.c \
100         $(srcdir)/../init.c
101
102 STAGESTUFF = $(DOCFILES) *.info*
103
104 TEXIDIR = $(srcdir)/../../texinfo/fsf
105
106 all install:
107
108 info: bfd.info
109
110 dvi: bfd.dvi
111
112 install-info: info
113         for i in *.info* ; do \
114                 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
115         done
116
117 docs: $(MKDOC) protos bfd.info bfd.dvi bfd.ps
118
119 $(MKDOC): chew.o
120         $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(LOADLIBES) $(LDFLAGS)
121
122 chew.o: chew.c
123         $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include $(H_CFLAGS) $(CFLAGS) $(srcdir)/chew.c
124
125 protos: libbfd.h libcoff.h bfd.h
126
127
128 # We can't replace these rules with an implicit rule, because
129 # makes without VPATH support couldn't find the .h files in `..'.
130
131 aoutx.texi: $(MKDOC) $(srcdir)/../aoutx.h $(srcdir)/doc.str
132         $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.texi
133
134 archive.texi: $(MKDOC) $(srcdir)/../archive.c $(srcdir)/doc.str
135         $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.texi 
136
137 archures.texi: $(MKDOC) $(srcdir)/../archures.c $(srcdir)/doc.str
138         $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.texi 
139
140 bfd.texi: $(MKDOC) $(srcdir)/../bfd.c $(srcdir)/doc.str
141         $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.texi
142
143 cache.texi: $(MKDOC) $(srcdir)/../cache.c $(srcdir)/doc.str
144         $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.texi
145
146 coffcode.texi:  $(MKDOC) $(srcdir)/../coffcode.h $(srcdir)/doc.str
147         $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../coffcode.h >coffcode.texi
148
149 core.texi: $(MKDOC) $(srcdir)/../corefile.c $(srcdir)/doc.str
150         $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../corefile.c >core.texi
151
152 elf.texi: $(MKDOC) $(srcdir)/../elf.c $(srcdir)/doc.str
153         $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elf.c >elf.texi
154
155 elfcode.texi: $(MKDOC) $(srcdir)/../elfcode.h $(srcdir)/doc.str
156         $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elfcode.h >elfcode.texi
157
158 format.texi: $(MKDOC) $(srcdir)/../format.c $(srcdir)/doc.str
159         $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../format.c >format.texi
160
161 libbfd.texi: $(MKDOC) $(srcdir)/../libbfd.c $(srcdir)/doc.str
162         $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.texi 
163
164 opncls.texi: $(MKDOC) $(srcdir)/../opncls.c $(srcdir)/doc.str
165         $(MKDOC) -f $(srcdir)/doc.str  <$(srcdir)/../opncls.c >opncls.texi
166
167 reloc.texi : $(MKDOC) $(srcdir)/../reloc.c
168         $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.texi 
169
170 section.texi: $(MKDOC) $(srcdir)/../section.c $(srcdir)/doc.str
171         $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../section.c >section.texi 
172
173 syms.texi : $(MKDOC) $(srcdir)/../syms.c
174         $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.texi
175
176 targets.texi: $(MKDOC) $(srcdir)/../targets.c $(srcdir)/doc.str
177         $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../targets.c >targets.texi
178
179 init.texi: $(MKDOC) $(srcdir)/../init.c $(srcdir)/doc.str
180         $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../init.c >init.texi
181
182 hash.texi: $(MKDOC) $(srcdir)/../hash.c $(srcdir)/doc.str
183         $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../hash.c >hash.texi
184
185 linker.texi: $(MKDOC) $(srcdir)/../linker.c $(srcdir)/doc.str
186         $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../linker.c >linker.texi
187
188 libbfd.h: $(srcdir)/../libbfd-in.h      \
189         $(srcdir)/../init.c             \
190         $(srcdir)/../libbfd.c           \
191         $(srcdir)/../cache.c            \
192         $(srcdir)/../reloc.c            \
193         $(srcdir)/../cpu-h8300.c        \
194         $(srcdir)/../cpu-i960.c         \
195         $(srcdir)/../archures.c         \
196         $(srcdir)/../elfcode.h          \
197         $(srcdir)/proto.str             \
198         $(MKDOC)
199         cat $(srcdir)/../libbfd-in.h >libbfd.h 
200         $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../init.c >>libbfd.h
201         $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../libbfd.c >>libbfd.h
202         $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cache.c >>libbfd.h
203         $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../reloc.c >>libbfd.h
204         $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cpu-h8300.c >>libbfd.h
205         $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cpu-i960.c >>libbfd.h
206         $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../archures.c >>libbfd.h
207         $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../elf.c >>libbfd.h
208         $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../elfcode.h >>libbfd.h
209
210 libcoff.h: $(srcdir)/../libcoff-in.h    \
211         $(srcdir)/../coffcode.h         \
212         $(srcdir)/proto.str             \
213         $(MKDOC)
214         cat $(srcdir)/../libcoff-in.h >libcoff.h
215         $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../coffcode.h >>libcoff.h
216
217 bfd.h: $(srcdir)/../bfd-in.h            \
218         $(srcdir)/../init.c             \
219         $(srcdir)/../opncls.c           \
220         $(srcdir)/../libbfd.c           \
221         $(srcdir)/../section.c          \
222         $(srcdir)/../archures.c         \
223         $(srcdir)/../reloc.c            \
224         $(srcdir)/../syms.c             \
225         $(srcdir)/../bfd.c              \
226         $(srcdir)/../archive.c          \
227         $(srcdir)/../corefile.c         \
228         $(srcdir)/../targets.c          \
229         $(srcdir)/../format.c           \
230         $(srcdir)/proto.str             \
231         $(MKDOC)
232         cat $(srcdir)/../bfd-in.h >bfd.h
233         $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../init.c >>bfd.h
234         $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../opncls.c >>bfd.h
235         $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../libbfd.c >>bfd.h
236         $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../section.c >>bfd.h
237         $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archures.c >>bfd.h
238         $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../reloc.c >>bfd.h
239         $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../syms.c >>bfd.h
240         $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../bfd.c >>bfd.h
241         $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archive.c >>bfd.h
242         $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../corefile.c >>bfd.h
243         $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../targets.c >>bfd.h
244         $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../format.c >>bfd.h   
245         echo "#ifdef __cplusplus" >>bfd.h
246         echo "}" >>bfd.h
247         echo "#endif" >>bfd.h
248         echo "#endif" >>bfd.h
249
250
251 clean-info: clean
252
253 mostlyclean:
254         rm -rf *.log *.ps *~* *.dvi *# $(MKDOC) *.o
255
256 clean: mostlyclean
257         rm -rf $(STAGESTUFF)
258         rm -f *.p *.ip  bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log 
259
260 distclean: clean
261         rm -f Makefile config.status
262
263 maintainer-clean realclean: clean
264         rm -f Makefile config.status
265
266 bfd.info: $(DOCFILES) bfdsumm.texi bfd.texinfo
267         $(MAKEINFO) -I$(srcdir) -o bfd.info $(srcdir)/bfd.texinfo
268
269 bfd.dvi: $(DOCFILES) bfdsumm.texi bfd.texinfo
270         $(TEXI2DVI) $(srcdir)/bfd.texinfo
271
272 bfd.ps: bfd.dvi
273         dvips bfd -o
274
275 quickdoc: $(DOCFILES) bfdsumm.texi bfd.texinfo
276         TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
277
278 stage1: force
279         - mkdir stage1
280         - mv -f $(STAGESTUFF) stage1
281
282 stage2: force
283         - mkdir stage2
284         - mv -f $(STAGESTUFF) stage2
285
286 stage3: force
287         - mkdir stage3
288         - mv -f $(STAGESTUFF) stage3
289
290 against=stage2
291
292 comparison: force
293         for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i || exit 1 ; done
294
295 de-stage1: force
296         - (cd stage1 ; mv -f $(STAGESTUFF) ..)
297         - rmdir stage1
298
299 de-stage2: force
300         - (cd stage2 ; mv -f $(STAGESTUFF) ..)
301         - rmdir stage2
302
303 de-stage3: force
304         - (cd stage3 ; mv -f $(STAGESTUFF) ..)
305         - rmdir stage3
306
307 force:
308
309 Makefile: $(srcdir)/Makefile.in
310         cd .. && CONFIG_FILES=doc/$@ CONFIG_HEADERS= $(SHELL) ./config.status
311