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