ia64/xen-unstable

view tools/debugger/gdb/gdbbuild @ 11351:a202eef97aa0

[TOOLS] Fix gdbserver build.
Signed-off-by: Travis Betak <travis.betak@amd.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Aug 30 17:52:35 2006 +0100 (2006-08-30)
parents 3c05406f5e0a
children fd6c2b5e041f 0bdd578c417f
line source
1 #!/bin/sh
3 [ "$GDB_MIRROR" ] || GDB_MIRROR="ftp://ftp.gnu.org/gnu/gdb/"
5 rm -rf gdb-6.2.1 gdb-6.2.1-linux-i386-xen
6 [ -a gdb-6.2.1.tar.bz2 ] || wget -c "$GDB_MIRROR/gdb-6.2.1.tar.bz2"
7 tar xjf gdb-6.2.1.tar.bz2
9 cd gdb-6.2.1-xen-sparse
10 bash ./mkbuildtree ../gdb-6.2.1
12 cd ..
13 mkdir gdb-6.2.1-linux-i386-xen
14 cd gdb-6.2.1-linux-i386-xen
15 ../gdb-6.2.1/configure
17 # Use $MAKE if set, else use gmake if present, otherwise use make
18 if [ "$MAKE" ]; then
19 $MAKE
20 elif which gmake ; then
21 gmake -j4 CFLAGS=-D__XEN_TOOLS__
22 else
23 make -j4 CFLAGS=-D__XEN_TOOLS__
24 fi