* frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
[deliverable/binutils-gdb.git] / src-release
CommitLineData
748503c8 1# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
72bbedde 2# 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation
748503c8
NN
3#
4# This file is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17#
18
19# This Makefile contains release scripts for gdb, binutils, and other
20# packages which live in src. It used to be part of the top level Makefile,
21# but that turned out to be very messy and hard to maintain.
22
23# This stuff really ought to be cleaned up and turned into something other
24# than a Makefile. As it is it's heavily recursive.
25
26# This is the name of this script (!). Needed due to horrible recursion.
27SELF = src-release
28
29SHELL = /bin/sh
30
31BZIPPROG = bzip2
32MD5PROG = md5sum
33
34# pwd command to use. Allow user to override default by setting PWDCMD in
35# the environment to account for automounters. The make variable must not
36# be called PWDCMD, otherwise the value set here is passed to make
37# subprocesses and overrides the setting from the user's environment.
38PWD = $${PWDCMD-pwd}
39
40#
41# Support for building net releases
42
43# Files in devo used in any net release.
44# ChangeLog omitted because it may refer to files which are not in this
45# distribution (perhaps it would be better to include it anyway).
46DEVO_SUPPORT= README Makefile.in configure configure.in \
47 config.guess config.if config.sub config move-if-change \
48 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
49 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
50 mkinstalldirs ltconfig ltmain.sh missing ylwrap \
a26d7085
DJ
51 libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh \
52 Makefile.def Makefile.tpl src-release
748503c8
NN
53
54# Files in devo/etc used in any net release.
55# ChangeLog omitted because it may refer to files which are not in this
56# distribution (perhaps it would be better to include it anyway).
57ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
58 make-stds.texi standards.info* configure.texi configure.info* \
53dd8dab 59 configbuild.* configdev.* fdl.texi texi2pod.pl
748503c8
NN
60
61
62# When you use `make setup-dirs' or `make taz' you should always redefine
63# this macro.
64SUPPORT_FILES = list-of-support-files-for-tool-in-question
65
66# NOTE: No double quotes in the below. It is used within shell script
67# as VER="$(VER)"
68VER = ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \
69 sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
70 elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
71 sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
72 elif test -f $(TOOL)/version.in; then \
73 head -1 $(TOOL)/version.in; \
74 elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
75 sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
76 else \
77 echo VERSION; \
78 fi`
79PACKAGE = $(TOOL)
80
81.PHONY: taz
82taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
83 $(MAKE) -f $(SELF) do-proto-toplev \
84 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
85 MD5PROG="$(MD5PROG)" \
86 SUPPORT_FILES="$(SUPPORT_FILES)"
87 $(MAKE) -f $(SELF) do-md5sum \
88 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
89 MD5PROG="$(MD5PROG)" \
90 SUPPORT_FILES="$(SUPPORT_FILES)"
91 $(MAKE) -f $(SELF) do-tar \
92 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
93 MD5PROG="$(MD5PROG)" \
94 SUPPORT_FILES="$(SUPPORT_FILES)"
95 $(MAKE) -f $(SELF) do-bz2 \
96 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
97 MD5PROG="$(MD5PROG)" \
98 SUPPORT_FILES="$(SUPPORT_FILES)"
99
100.PHONY: gdb-tar
101gdb-tar: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
102 $(MAKE) -f $(SELF) do-proto-toplev \
103 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
104 MD5PROG="$(MD5PROG)" \
105 SUPPORT_FILES="$(SUPPORT_FILES)"
106 $(MAKE) -f $(SELF) do-md5sum \
107 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
108 MD5PROG="$(MD5PROG)" \
109 SUPPORT_FILES="$(SUPPORT_FILES)"
110 $(MAKE) -f $(SELF) do-djunpack \
111 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
112 MD5PROG="$(MD5PROG)" \
113 SUPPORT_FILES="$(SUPPORT_FILES)"
114 $(MAKE) -f $(SELF) do-tar \
115 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
116 MD5PROG="$(MD5PROG)" \
117 SUPPORT_FILES="$(SUPPORT_FILES)"
118
119.PHONY: gdb-taz
120gdb-taz: gdb-tar $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
121 $(MAKE) -f $(SELF) gdb-tar \
122 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
123 MD5PROG="$(MD5PROG)" \
124 SUPPORT_FILES="$(SUPPORT_FILES)"
125 $(MAKE) -f $(SELF) do-bz2 \
126 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
127 MD5PROG="$(MD5PROG)" \
128 SUPPORT_FILES="$(SUPPORT_FILES)"
129
130.PHONY: do-proto-toplev
131do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
132 echo "==> Making $(PACKAGE)-$(VER)/"
133 # Take out texinfo from a few places.
134 sed -e '/^all\.normal: /s/\all-texinfo //' \
135 -e '/^ install-texinfo /d' \
136 <Makefile.in >tmp
137 mv -f tmp Makefile.in
138 #
72bbedde 139 ./configure i686-pc-linux-gnu
b4fa093e 140 $(MAKE) configure-host configure-target \
748503c8
NN
141 ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \
142 CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
143 # Make links, and run "make diststuff" or "make info" when needed.
144 rm -rf proto-toplev ; mkdir proto-toplev
145 set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
146 for d in $$dirs ; do \
147 if [ -d $$d ]; then \
148 if [ ! -f $$d/Makefile ] ; then true ; \
149 elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
150 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
151 elif grep '^info:' $$d/Makefile >/dev/null ; then \
152 (cd $$d ; $(MAKE) info ) || exit 1 ; \
153 fi ; \
154 if [ -d $$d/proto-$$d.dir ]; then \
155 ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
156 else \
157 ln -s ../$$d proto-toplev/$$d ; \
158 fi ; \
159 else ln -s ../$$d proto-toplev/$$d ; fi ; \
160 done
161 cd etc && $(MAKE) info
162 $(MAKE) distclean
ca506da8
MC
163 # Kludge for pr gdb/708. 'configure' configures in
164 # dejagnu/example/calc, but 'make distclean' does not clean in
165 # dejagnu/example. Someday somebody might fix this in dejagnu,
166 # and then import a new dejagnu into sourceware. Right now, a
167 # couple of 'rm' commands will get the gdb snapshots working
168 # again. -- chastain 2003-08-15
169 rm -f dejagnu/example/calc/config.status
170 rm -f dejagnu/example/calc/config.log
d9a35680
MC
171 # Kludge for pr gdb/857. intl/Makefile.in lacks a couple
172 # of files in the distclean rule. Zack W is planning to make
173 # the gcc version of intl/ the master version and then push
174 # that version to src soon. See:
175 # http://sources.redhat.com/ml/binutils/2003-07/msg00032.html
176 # After the src version of intl/ is upgraded, we can look at
177 # moving this logic into intl/Makefile.in distclean rule
178 # if it is still needed. -- chastain 2003-09-12
179 rm -f intl/config.cache
180 rm -f intl/config.status
181 rm -f intl/config.h
182 rm -f intl/stamp-h
748503c8
NN
183 #
184 mkdir proto-toplev/etc
185 (cd proto-toplev/etc; \
186 for i in $(ETC_SUPPORT); do \
187 ln -s ../../etc/$$i . ; \
188 done)
189 #
190 # Take out texinfo from configurable dirs
191 rm proto-toplev/configure.in
192 sed -e '/^host_tools=/s/texinfo //' \
193 <configure.in >proto-toplev/configure.in
194 #
195 mkdir proto-toplev/texinfo
196 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
197 if test -r texinfo/util/tex3patch ; then \
198 mkdir proto-toplev/texinfo/util && \
199 ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
200 else true; fi
201 chmod -R og=u . || chmod og=u `find . -print`
202 #
203 # Create .gmo files from .po files.
204 for f in `find . -name '*.po' -type f -print`; do \
205 msgfmt -o `echo $$f | sed -e 's/\.po$$/.gmo/'` $$f ; \
206 done
207 #
208 -rm -f $(PACKAGE)-$(VER)
209 ln -s proto-toplev $(PACKAGE)-$(VER)
210
0558264b
AC
211CVS_NAMES= \( -name CVS -o -name '.cvsignore' \)
212
748503c8
NN
213.PHONY: do-tar
214do-tar:
215 echo "==> Making $(PACKAGE)-$(VER).tar"
216 -rm -f $(PACKAGE)-$(VER).tar
0558264b
AC
217 find $(PACKAGE)-$(VER) -follow $(CVS_NAMES) -prune \
218 -o -type f -print \
748503c8
NN
219 | tar cTfh - $(PACKAGE)-$(VER).tar
220
221.PHONY: do-bz2
222do-bz2:
223 echo "==> Bzipping $(PACKAGE)-$(VER).tar.bz2"
224 -rm -f $(PACKAGE)-$(VER).tar.bz2
225 $(BZIPPROG) -v -9 $(PACKAGE)-$(VER).tar
226
227.PHONY: do-md5sum
228do-md5sum:
229 echo "==> Adding md5 checksum to top-level directory"
0558264b
AC
230 cd proto-toplev && find * -follow $(CVS_NAMES) -prune \
231 -o -type f -print \
748503c8
NN
232 | xargs $(MD5PROG) > ../md5.sum
233 mv md5.sum proto-toplev
234
235.PHONY: do-djunpack
236do-djunpack:
237 echo "==> Adding updated djunpack.bat to top-level directory"
710068b9 238 echo - 's /gdb-[0-9\.]*/$(PACKAGE)-'"$(VER)"'/'
748503c8 239 sed < djunpack.bat > djunpack.new \
710068b9 240 -e 's/gdb-[0-9][0-9\.]*/$(PACKAGE)-'"$(VER)"'/'
748503c8
NN
241 mv djunpack.new djunpack.bat
242 -rm -f proto-toplev/djunpack.bat
243 ln -s ../djunpack.bat proto-toplev/djunpack.bat
244
245TEXINFO_SUPPORT= texinfo/texinfo.tex
246DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
247
248.PHONY: gas.tar.bz2
249GAS_SUPPORT_DIRS= bfd include libiberty opcodes intl setup.com makefile.vms mkdep
250gas.tar.bz2: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
251 $(MAKE) -f $(SELF) taz TOOL=gas \
252 MD5PROG="$(MD5PROG)" \
253 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
254
255# The FSF "binutils" release includes gprof and ld.
256.PHONY: binutils.tar.bz2
7aa673ed 257BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms mkdep cpu
748503c8
NN
258binutils.tar.bz2: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
259 $(MAKE) -f $(SELF) taz TOOL=binutils \
260 MD5PROG="$(MD5PROG)" \
261 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)"
262
263.PHONY: gas+binutils.tar.bz2
264GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
265gas+binutils.tar.bz2: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
266 $(MAKE) -f $(SELF) taz TOOL=gas \
267 MD5PROG="$(MD5PROG)" \
268 SUPPORT_FILES="$(GASB_SUPPORT_DIRS)"
269
270GNATS_SUPPORT_DIRS=include libiberty send-pr
271gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
272 $(MAKE) -f $(SELF) taz TOOL=gnats \
273 MD5PROG="$(MD5PROG)" \
274 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
275
276.PHONY: gdb.tar.bz2
277GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl
278gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
279 $(MAKE) -f $(SELF) gdb-taz TOOL=gdb \
280 MD5PROG="$(MD5PROG)" \
281 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
282.PHONY: gdb.tar
283gdb.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
284 $(MAKE) -f $(SELF) gdb-tar TOOL=gdb \
285 MD5PROG="$(MD5PROG)" \
286 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
287
288DEJAGNU_SUPPORT_DIRS= tcl expect libiberty
289.PHONY: dejagnu.tar.bz2
290dejagnu.tar.bz2: $(DIST_SUPPORT) $(DEJAGNU_SUPPORT_DIRS) dejagnu
710068b9
AC
291 $(MAKE) -f $(SELF) gdb-taz TOOL=dejagnu \
292 MD5PROG="$(MD5PROG)" \
293 SUPPORT_FILES="$(DEJAGNU_SUPPORT_DIRS)"
294.PHONY: dejagnu.tar
295dejagnu.tar: $(DIST_SUPPORT) $(DEJAGNU_SUPPORT_DIRS) dejagnu
296 $(MAKE) -f $(SELF) gdb-tar TOOL=dejagnu \
748503c8
NN
297 MD5PROG="$(MD5PROG)" \
298 SUPPORT_FILES="$(DEJAGNU_SUPPORT_DIRS)"
299
300.PHONY: gdb+dejagnu.tar.bz2
301GDBD_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl expect dejagnu
302gdb+dejagnu.tar.bz2: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
303 $(MAKE) -f $(SELF) gdb-taz TOOL=gdb PACKAGE=gdb+dejagnu \
304 MD5PROG="$(MD5PROG)" \
305 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
306.PHONY: gdb+dejagnu.tar
307gdb+dejagnu.tar: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
308 $(MAKE) -f $(SELF) gdb-tar TOOL=gdb PACKAGE=gdb+dejagnu \
309 MD5PROG="$(MD5PROG)" \
310 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
311
312.PHONY: insight.tar.bz2
313INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl tix libgui
314insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
315 $(MAKE) -f $(SELF) gdb-taz TOOL=gdb PACKAGE=insight \
316 MD5PROG="$(MD5PROG)" \
317 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
318.PHONY: insight.tar
319insight.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
320 $(MAKE) -f $(SELF) gdb-tar TOOL=gdb PACKAGE=insight \
321 MD5PROG="$(MD5PROG)" \
322 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
323
324.PHONY: insight+dejagnu.tar.bz2
325INSIGHTD_SUPPORT_DIRS= $(INSIGHT_SUPPORT_DIRS) expect dejagnu
326insight+dejagnu.tar.bz2: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
327 $(MAKE) -f $(SELF) gdb-taz TOOL=gdb PACKAGE="insight+dejagnu" \
328 MD5PROG="$(MD5PROG)" \
329 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
330.PHONY: insight+dejagnu.tar
331insight+dejagnu.tar: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
332 $(MAKE) -f $(SELF) gdb-tar TOOL=gdb PACKAGE="insight+dejagnu" \
333 MD5PROG="$(MD5PROG)" \
334 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
335
748503c8
NN
336.NOEXPORT:
337MAKEOVERRIDES=
This page took 0.100718 seconds and 4 git commands to generate.