3 # Copyright (C) 1990, 1991, 1992 Free Software Foundation
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.
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.
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. */
24 exec_prefix = $(prefix)
25 bindir = $(exec_prefix)/bin
26 libdir = $(exec_prefix)/lib
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
47 INSTALL_PROGRAM
= $(INSTALL
)
48 INSTALL_DATA
= $(INSTALL
)
57 #### Host, target, and site specific Makefile fragments come in here.
61 $(CC
) $(CFLAGS
) -c
$(H_CFLAGS
) -I..
-I
$(srcdir)/..
-I
$(srcdir)/..
/..
/include $<
63 # main GDB source directory
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
71 PROTOS
= archive.p archures.p bfd.p \
73 libbfd.p opncls.p reloc.p \
74 section.p syms.p targets.p \
75 format.p core.p init.p
77 IPROTOS
= cache.ip libbfd.ip reloc.ip init.ip archures.ip ctor.ip coffcode.ip
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 \
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
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
103 STAGESTUFF
= $(DOCFILES
) *.
info*
110 for i in
*.
info* ; do \
111 $(INSTALL_DATA
) $$i $(infodir)/$$i ; \
114 docs
: $(MKDOC
) protos bfd.
info bfd.
dvi bfd.ps
117 $(CC
) $(CFLAGS
) -o
$(MKDOC
) $(srcdir)/chew.c
$(LOADLIBES
)
119 protos
: libbfd.h libcoff.h bfd.h
121 aoutx.texi
: $(MKDOC
) $(srcdir)/..
/aoutx.h
$(srcdir)/doc.str
122 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/aoutx.h
>aoutx.texi
124 archive.texi
: $(MKDOC
) $(srcdir)/..
/archive.c
$(srcdir)/doc.str
125 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/archive.c
>archive.texi
127 archures.texi
: $(srcdir)/..
/archures.c
$(srcdir)/doc.str
128 $(MKDOC
) -f
$(srcdir)/doc.str
< $(srcdir)/..
/archures.c
>archures.texi
130 bfd.texi
: $(MKDOC
) $(srcdir)/..
/bfd.c
$(srcdir)/doc.str
131 $(MKDOC
) -f
$(srcdir)/doc.str
< $(srcdir)/..
/bfd.c
>bfd.texi
133 cache.texi
: $(MKDOC
) $(srcdir)/..
/cache.c
$(srcdir)/doc.str
134 $(MKDOC
) -f
$(srcdir)/doc.str
< $(srcdir)/..
/cache.c
>cache.texi
136 coffcode.texi
: $(MKDOC
) $(srcdir)/..
/coffcode.h
$(srcdir)/doc.str
137 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/coffcode.h
>coffcode.texi
139 core.texi
: $(MKDOC
) $(srcdir)/..
/core.c
$(srcdir)/doc.str
140 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/core.c
>core.texi
142 format.texi
: $(MKDOC
) $(srcdir)/..
/format.c
$(srcdir)/doc.str
143 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/format.c
>format.texi
145 libbfd.texi
: $(MKDOC
) $(srcdir)/..
/libbfd.c
$(srcdir)/doc.str
146 $(MKDOC
) -f
$(srcdir)/doc.str
< $(srcdir)/..
/libbfd.c
>libbfd.texi
148 opncls.texi
: $(MKDOC
) $(srcdir)/..
/opncls.c
$(srcdir)/doc.str
149 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/opncls.c
>opncls.texi
151 reloc.texi
: $(MKDOC
) $(srcdir)/..
/reloc.c
152 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/reloc.c
>reloc.texi
154 section.texi
: $(MKDOC
) $(srcdir)/..
/section.c
$(srcdir)/doc.str
155 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/section.c
>section.texi
157 syms.texi
: $(MKDOC
) $(srcdir)/..
/syms.c
158 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/syms.c
>syms.texi
160 targets.texi
: $(MKDOC
) $(srcdir)/..
/targets.c
$(srcdir)/doc.str
161 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/targets.c
>targets.texi
163 init.texi
: $(MKDOC
) $(srcdir)/..
/init.c
$(srcdir)/doc.str
164 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/init.c
>init.texi
166 ctor.texi
: $(MKDOC
) $(srcdir)/..
/ctor.c
$(srcdir)/doc.str
167 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/ctor.c
>ctor.texi
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 \
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
194 libcoff.h
: $(srcdir)/..
/libcoff-in.h \
195 $(srcdir)/..
/coffcode.h \
197 cat
$(srcdir)/..
/libcoff-in.h
>libcoff.h
198 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/coffcode.h
>>libcoff.h
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 \
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
230 rm -f
$(STAGESTUFF
) *.p
*.ip bfd.
dvi bfd.ps
*~
* *# bfd.?? \
231 bfd.???
$(MKDOC
) bfd.h libbfd.h libcoff.h texput.log
235 bfd.
info: $(DOCFILES
) bfd.texinfo
236 $(MAKEINFO
) -o bfd.
info $(srcdir)/bfd.texinfo
238 bfd.
dvi: $(DOCFILES
) bfd.texinfo
239 TEXINPUTS
=${TEXIDIR}:.
:$$TEXINPUTS tex bfd.texinfo
241 # TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
246 quickdoc
: $(DOCFILES
) bfd.texinfo
247 TEXINPUTS
=${TEXIDIR}:.
:$$TEXINPUTS tex bfd.texinfo
251 - mv
-f
$(STAGESTUFF
) stage1
255 - mv
-f
$(STAGESTUFF
) stage2
259 - mv
-f
$(STAGESTUFF
) stage3
264 for i in
$(STAGESTUFF
) ; do cmp
$$i $(against
)/$$i || exit
1 ; done
267 - (cd stage1
; mv
-f
$(STAGESTUFF
) ..
)
271 - (cd stage2
; mv
-f
$(STAGESTUFF
) ..
)
275 - (cd stage3
; mv
-f
$(STAGESTUFF
) ..
)
280 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
281 $(SHELL
) .
/config.status