3 # Copyright (C) 1990, 1991 Cygnus Support
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 bindir = $(prefix)/bin
25 datadir = $(prefix)/lib
26 libdir = $(prefix)/lib
27 mandir = $(datadir)/man
28 man1dir = $(mandir)/man1
29 man2dir = $(mandir)/man2
30 man3dir = $(mandir)/man3
31 man4dir = $(mandir)/man4
32 man5dir = $(mandir)/man5
33 man6dir = $(mandir)/man6
34 man7dir = $(mandir)/man7
35 man8dir = $(mandir)/man8
36 man9dir = $(mandir)/man9
37 infodir = $(datadir)/info
38 includedir = $(prefix)/include
39 docdir
= $(datadir)/doc
45 INSTALL_PROGRAM
= $(INSTALL
)
46 INSTALL_DATA
= $(INSTALL
)
54 #### Host, target, and site specific Makefile fragments come in here.
57 CFLAGS
= $(H_CFLAGS
) -I..
-I
$(srcdir)/..
-I
$(srcdir)/..
/..
/include
59 # main GDB source directory
61 DOCFILES
= aoutx.texi archive.texi archures.texi \
62 bfd.texi cache.texi coffcode.texi \
63 core.texi format.texi libbfd.texi \
64 opncls.texi reloc.texi section.texi \
65 syms.texi targets.texi init.texi ctor.texi
67 PROTOS
= archive.p archures.p bfd.p \
69 libbfd.p opncls.p reloc.p \
70 section.p syms.p targets.p \
71 format.p core.p init.p
73 IPROTOS
= cache.ip libbfd.ip reloc.ip init.ip archures.ip ctor.ip coffcode.ip
75 # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction
76 # between VPATH and suffix rules. If you use GNU Make, perhaps other Makes,
77 # you don't need these three:
78 SRCDOC
= $(srcdir)/..
/aoutx.h
$(srcdir)/..
/archive.c \
79 $(srcdir)/..
/archures.c
$(srcdir)/..
/bfd.c \
80 $(srcdir)/..
/cache.c
$(srcdir)/..
/coffcode.h \
81 $(srcdir)/..
/core.c
$(srcdir)/..
/format.c \
82 $(srcdir)/..
/libbfd.c
$(srcdir)/..
/opncls.c \
83 $(srcdir)/..
/reloc.c
$(srcdir)/..
/section.c \
84 $(srcdir)/..
/syms.c
$(srcdir)/..
/targets.c \
87 SRCPROT
= $(srcdir)/..
/archive.c
$(srcdir)/..
/archures.c \
88 $(srcdir)/..
/bfd.c
$(srcdir)/..
/coffcode.h
$(srcdir)/..
/core.c \
89 $(srcdir)/..
/format.c
$(srcdir)/..
/libbfd.c \
90 $(srcdir)/..
/opncls.c
$(srcdir)/..
/reloc.c \
91 $(srcdir)/..
/section.c
$(srcdir)/..
/syms.c \
92 $(srcdir)/..
/targets.c
$(srcdir)/..
/init.c
94 SRCIPROT
= $(srcdir)/..
/cache.c
$(srcdir)/..
/libbfd.c \
95 $(srcdir)/..
/reloc.c
$(srcdir)/..
/cpu-h8300.c \
96 $(srcdir)/..
/cpu-i960.c
$(srcdir)/..
/archures.c \
97 $(srcdir)/..
/init.c
$(srcdir)/..
/ctor.c
99 STAGESTUFF
= $(DOCFILES
) *.
info*
106 for i in
*.
info* ; do \
107 $(INSTALL_DATA
) $$i $(infodir)/$$i ; \
110 docs
: chew protos bfd.
info bfd.
dvi bfd.ps
113 $(CC
) $(CFLAGS
) -o .
/chew
$(srcdir)/chew.c
$(LOADLIBES
)
115 protos
: libbfd.h libcoff.h bfd.h
117 aoutx.texi
: $(MKDOC
) $(srcdir)/..
/aoutx.h
$(srcdir)/doc.str
118 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/aoutx.h
>aoutx.texi
120 archive.texi
: $(MKDOC
) $(srcdir)/..
/archive.c
$(srcdir)/doc.str
121 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/archive.c
>archive.texi
123 archures.texi
: $(srcdir)/..
/archures.c
$(srcdir)/doc.str
124 $(MKDOC
) -f
$(srcdir)/doc.str
< $(srcdir)/..
/archures.c
>archures.texi
126 bfd.texi
: $(MKDOC
) $(srcdir)/..
/bfd.c
$(srcdir)/doc.str
127 $(MKDOC
) -f
$(srcdir)/doc.str
< $(srcdir)/..
/bfd.c
>bfd.texi
129 cache.texi
: $(MKDOC
) $(srcdir)/..
/cache.c
$(srcdir)/doc.str
130 $(MKDOC
) -f
$(srcdir)/doc.str
< $(srcdir)/..
/cache.c
>cache.texi
132 coffcode.texi
: $(MKDOC
) $(srcdir)/..
/coffcode.h
$(srcdir)/doc.str
133 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/coffcode.h
>coffcode.texi
135 core.texi
: $(MKDOC
) $(srcdir)/..
/core.c
$(srcdir)/doc.str
136 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/core.c
>core.texi
138 format.texi
: $(MKDOC
) $(srcdir)/..
/format.c
$(srcdir)/doc.str
139 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/format.c
>format.texi
141 libbfd.texi
: $(MKDOC
) $(srcdir)/..
/libbfd.c
$(srcdir)/doc.str
142 $(MKDOC
) -f
$(srcdir)/doc.str
< $(srcdir)/..
/libbfd.c
>libbfd.texi
144 opncls.texi
: $(srcdir)/chew
$(srcdir)/..
/opncls.c
$(srcdir)/doc.str
145 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/opncls.c
>opncls.texi
147 reloc.texi
: $(MKDOC
) $(srcdir)/..
/reloc.c
148 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/reloc.c
>reloc.texi
150 section.texi
: $(MKDOC
) $(srcdir)/..
/section.c
$(srcdir)/doc.str
151 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/section.c
>section.texi
153 syms.texi
: $(MKDOC
) $(srcdir)/..
/syms.c
154 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/syms.c
>syms.texi
156 targets.texi
: $(MKDOC
) $(srcdir)/..
/targets.c
$(srcdir)/doc.str
157 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/targets.c
>targets.texi
159 init.texi
: $(MKDOC
) $(srcdir)/..
/init.c
$(srcdir)/doc.str
160 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/init.c
>init.texi
162 ctor.texi
: $(MKDOC
) $(srcdir)/..
/ctor.c
$(srcdir)/doc.str
163 $(MKDOC
) -f
$(srcdir)/doc.str
<$(srcdir)/..
/ctor.c
>ctor.texi
166 libbfd.h
: $(srcdir)/..
/libbfd-in.h \
167 $(srcdir)/..
/init.c \
168 $(srcdir)/..
/libbfd.c \
169 $(srcdir)/..
/init.c \
170 $(srcdir)/..
/libbfd.c \
171 $(srcdir)/..
/cache.c \
172 $(srcdir)/..
/ctor.c \
173 $(srcdir)/..
/reloc.c \
174 $(srcdir)/..
/cpu-h8300.c \
175 $(srcdir)/..
/cpu-i960.c \
176 $(srcdir)/..
/archures.c \
178 cat
$(srcdir)/..
/libbfd-in.h
>libbfd.h
179 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/init.c
>>libbfd.h
180 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/libbfd.c
>>libbfd.h
181 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/init.c
>>libbfd.h
182 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/libbfd.c
>>libbfd.h
183 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/cache.c
>>libbfd.h
184 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/ctor.c
>>libbfd.h
185 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/reloc.c
>>libbfd.h
186 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/cpu-h8300.c
>>libbfd.h
187 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/cpu-i960.c
>>libbfd.h
188 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/archures.c
>>libbfd.h
190 libcoff.h
: $(srcdir)/..
/libcoff-in.h \
191 $(srcdir)/..
/coffcode.h \
193 cat
$(srcdir)/..
/libcoff-in.h
>libcoff.h
194 $(MKDOC
) -i
-f
$(srcdir)/proto.str
< $(srcdir)/..
/coffcode.h
>>libcoff.h
196 bfd.h
: $(srcdir)/..
/bfd-in.h \
197 $(srcdir)/..
/init.c \
198 $(srcdir)/..
/opncls.c \
199 $(srcdir)/..
/libbfd.c \
200 $(srcdir)/..
/section.c \
201 $(srcdir)/..
/archures.c \
202 $(srcdir)/..
/reloc.c \
203 $(srcdir)/..
/syms.c \
204 $(srcdir)/..
/archive.c \
205 $(srcdir)/..
/core.c \
206 $(srcdir)/..
/targets.c \
207 $(srcdir)/..
/format.c \
209 cat
$(srcdir)/..
/bfd-in.h
>bfd.h
210 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/init.c
>>bfd.h
211 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/opncls.c
>>bfd.h
212 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/libbfd.c
>>bfd.h
213 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/section.c
>>bfd.h
214 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/archures.c
>>bfd.h
215 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/reloc.c
>>bfd.h
216 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/syms.c
>>bfd.h
217 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/bfd.c
>>bfd.h
218 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/archive.c
>>bfd.h
219 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/core.c
>>bfd.h
220 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/targets.c
>>bfd.h
221 $(MKDOC
) -f
$(srcdir)/proto.str
<$(srcdir)/..
/format.c
>>bfd.h
222 echo
"#endif" >>bfd.h
226 rm -f
$(STAGESTUFF
) *.p
*.ip bfd.
dvi bfd.ps
*~
* *# bfd.?? bfd.??? chew
228 bfd.
info: $(DOCFILES
) bfd.texinfo
229 $(MAKEINFO
) -o bfd.
info $(srcdir)/bfd.texinfo
231 bfd.
dvi: $(DOCFILES
) bfd.texinfo
232 TEXINPUTS
=${TEXIDIR}:.
:$$TEXINPUTS tex bfd.texinfo
234 # TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
239 quickdoc
: $(DOCFILES
) bfd.texinfo
240 TEXINPUTS
=${TEXIDIR}:.
:$$TEXINPUTS tex bfd.texinfo
244 - mv
-f
$(STAGESTUFF
) stage1
248 - mv
-f
$(STAGESTUFF
) stage2
252 - mv
-f
$(STAGESTUFF
) stage3
257 for i in
$(STAGESTUFF
) ; do cmp
$$i $(against
)/$$i || exit
1 ; done
260 - (cd stage1
; mv
-f
$(STAGESTUFF
) ..
)
264 - (cd stage2
; mv
-f
$(STAGESTUFF
) ..
)
268 - (cd stage3
; mv
-f
$(STAGESTUFF
) ..
)
273 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
274 $(SHELL
) .
/config.status