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