3 # Copyright (C) 1990, 1991, 1992, 1993 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
)
60 #### Host, target, and site specific Makefile fragments come in here.
64 $(CC
) $(CFLAGS
) -c
$(H_CFLAGS
) -I..
-I
$(srcdir)/..
-I
$(srcdir)/..
/..
/include $<
66 # main GDB source directory
68 DOCFILES
= 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
74 PROTOS
= archive.p archures.p bfd.p \
76 libbfd.p opncls.p reloc.p \
77 section.p syms.p targets.p \
78 format.p core.p init.p
80 IPROTOS
= cache.ip libbfd.ip reloc.ip init.ip archures.ip ctor.ip coffcode.ip
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:
85 SRCDOC
= $(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 \
92 $(srcdir)/..
/init.c
$(srcdir)/..
/seclet.c
94 SRCPROT
= $(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 \
99 $(srcdir)/..
/targets.c
$(srcdir)/..
/init.c \
100 $(srcdir)/..
/seclet.c
102 SRCIPROT
= $(srcdir)/..
/cache.c
$(srcdir)/..
/libbfd.c \
103 $(srcdir)/..
/reloc.c
$(srcdir)/..
/cpu-h8300.c \
104 $(srcdir)/..
/cpu-i960.c
$(srcdir)/..
/archures.c \
105 $(srcdir)/..
/init.c
$(srcdir)/..
/ctor.c \
106 $(srcdir)/..
/seclet.c
108 STAGESTUFF
= $(DOCFILES
) *.
info*
110 TEXIDIR
= $(srcdir)/..
/..
/texinfo
/fsf
119 for i in
*.
info* ; do \
120 $(INSTALL_DATA
) $$i $(infodir)/$$i ; \
123 docs
: $(MKDOC
) protos bfd.
info bfd.
dvi bfd.ps
126 $(CC_FOR_BUILD
) $(CFLAGS
) -o
$(MKDOC
) $(H_CFLAGS
) chew.o
$(LOADLIBES
)
129 $(CC_FOR_BUILD
) $(CFLAGS
) -c
$(H_CFLAGS
) -I..
-I
$(srcdir)/..
-I
$(srcdir)/..
/..
/include $(srcdir)/chew.c
131 protos
: libbfd.h libcoff.h bfd.h
133 aoutx.texi
: $(MKDOC
) $(srcdir)/..
/aoutx.h
$(srcdir)/doc.str
134 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/aoutx.h
>aoutx.texi
136 archive.texi
: $(MKDOC
) $(srcdir)/..
/archive.c
$(srcdir)/doc.str
137 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/archive.c
>archive.texi
139 archures.texi
: $(srcdir)/..
/archures.c
$(srcdir)/doc.str
140 $(MKDOC
) -f
$(srcdir)/doc.str
< $(srcdir)/..
/archures.c
>archures.texi
142 bfd.texi
: $(MKDOC
) $(srcdir)/..
/bfd.c
$(srcdir)/doc.str
143 $(MKDOC
) -f
$(srcdir)/doc.str
< $(srcdir)/..
/bfd.c
>bfd.texi
145 cache.texi
: $(MKDOC
) $(srcdir)/..
/cache.c
$(srcdir)/doc.str
146 $(MKDOC
) -f
$(srcdir)/doc.str
< $(srcdir)/..
/cache.c
>cache.texi
148 coffcode.texi
: $(MKDOC
) $(srcdir)/..
/coffcode.h
$(srcdir)/doc.str
149 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/coffcode.h
>coffcode.texi
151 core.texi
: $(MKDOC
) $(srcdir)/..
/core.c
$(srcdir)/doc.str
152 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/core.c
>core.texi
154 format.texi
: $(MKDOC
) $(srcdir)/..
/format.c
$(srcdir)/doc.str
155 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/format.c
>format.texi
157 libbfd.texi
: $(MKDOC
) $(srcdir)/..
/libbfd.c
$(srcdir)/doc.str
158 $(MKDOC
) -f
$(srcdir)/doc.str
< $(srcdir)/..
/libbfd.c
>libbfd.texi
160 opncls.texi
: $(MKDOC
) $(srcdir)/..
/opncls.c
$(srcdir)/doc.str
161 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/opncls.c
>opncls.texi
163 reloc.texi
: $(MKDOC
) $(srcdir)/..
/reloc.c
164 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/reloc.c
>reloc.texi
166 section.texi
: $(MKDOC
) $(srcdir)/..
/section.c
$(srcdir)/doc.str
167 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/section.c
>section.texi
169 syms.texi
: $(MKDOC
) $(srcdir)/..
/syms.c
170 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/syms.c
>syms.texi
172 targets.texi
: $(MKDOC
) $(srcdir)/..
/targets.c
$(srcdir)/doc.str
173 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/targets.c
>targets.texi
175 init.texi
: $(MKDOC
) $(srcdir)/..
/init.c
$(srcdir)/doc.str
176 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/init.c
>init.texi
178 ctor.texi
: $(MKDOC
) $(srcdir)/..
/ctor.c
$(srcdir)/doc.str
179 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/ctor.c
>ctor.texi
182 libbfd.h
: $(srcdir)/..
/libbfd-in.h \
183 $(srcdir)/..
/init.c \
184 $(srcdir)/..
/libbfd.c \
185 $(srcdir)/..
/cache.c \
186 $(srcdir)/..
/ctor.c \
187 $(srcdir)/..
/reloc.c \
188 $(srcdir)/..
/seclet.c \
189 $(srcdir)/..
/cpu-h8300.c \
190 $(srcdir)/..
/cpu-i960.c \
191 $(srcdir)/..
/archures.c \
192 $(srcdir)/..
/elfcode.h \
194 cat
$(srcdir)/..
/libbfd-in.h
>libbfd.h
195 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/init.c
>>libbfd.h
196 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/libbfd.c
>>libbfd.h
197 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/cache.c
>>libbfd.h
198 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/ctor.c
>>libbfd.h
199 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/reloc.c
>>libbfd.h
200 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/seclet.c
>>libbfd.h
201 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/cpu-h8300.c
>>libbfd.h
202 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/cpu-i960.c
>>libbfd.h
203 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/archures.c
>>libbfd.h
204 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/elfcode.h
>>libbfd.h
206 libcoff.h
: $(srcdir)/..
/libcoff-in.h \
207 $(srcdir)/..
/coffcode.h \
209 cat
$(srcdir)/..
/libcoff-in.h
>libcoff.h
210 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/coffcode.h
>>libcoff.h
212 bfd.h
: $(srcdir)/..
/bfd-in.h \
213 $(srcdir)/..
/init.c \
214 $(srcdir)/..
/opncls.c \
215 $(srcdir)/..
/libbfd.c \
216 $(srcdir)/..
/section.c \
217 $(srcdir)/..
/archures.c \
218 $(srcdir)/..
/reloc.c \
219 $(srcdir)/..
/seclet.c \
220 $(srcdir)/..
/syms.c \
222 $(srcdir)/..
/archive.c \
223 $(srcdir)/..
/core.c \
224 $(srcdir)/..
/targets.c \
225 $(srcdir)/..
/format.c \
227 cat
$(srcdir)/..
/bfd-in.h
>bfd.h
228 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/init.c
>>bfd.h
229 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/opncls.c
>>bfd.h
230 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/libbfd.c
>>bfd.h
231 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/section.c
>>bfd.h
232 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/archures.c
>>bfd.h
233 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/reloc.c
>>bfd.h
234 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/seclet.c
>>bfd.h
235 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/syms.c
>>bfd.h
236 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/bfd.c
>>bfd.h
237 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/archive.c
>>bfd.h
238 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/core.c
>>bfd.h
239 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/targets.c
>>bfd.h
240 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/format.c
>>bfd.h
241 echo
"#endif" >>bfd.h
247 rm -rf
*.log
*.ps
*~
* *.
dvi *# $(MKDOC) *.o
251 rm -f
*.p
*.ip bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log
254 rm -f Makefile config.status
257 rm -f Makefile config.status
259 bfd.
info: $(DOCFILES
) bfd.texinfo
260 $(MAKEINFO
) -o bfd.
info $(srcdir)/bfd.texinfo
262 bfd.
dvi: $(DOCFILES
) bfd.texinfo
263 $(TEXI2DVI
) $(srcdir)/bfd.texinfo
268 quickdoc
: $(DOCFILES
) bfd.texinfo
269 TEXINPUTS
=${TEXIDIR}:.
:$$TEXINPUTS tex bfd.texinfo
273 - mv
-f
$(STAGESTUFF
) stage1
277 - mv
-f
$(STAGESTUFF
) stage2
281 - mv
-f
$(STAGESTUFF
) stage3
286 for i in
$(STAGESTUFF
) ; do cmp
$$i $(against
)/$$i || exit
1 ; done
289 - (cd stage1
; mv
-f
$(STAGESTUFF
) ..
)
293 - (cd stage2
; mv
-f
$(STAGESTUFF
) ..
)
297 - (cd stage3
; mv
-f
$(STAGESTUFF
) ..
)
302 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
303 $(SHELL
) .
/config.status