compile-linux-tools 1.21 KB
Newer Older
1
#! /bin/sh
unknown's avatar
unknown committed
2

3
# debug
unknown's avatar
unknown committed
4 5
#set -x

6 7 8
# stop on errors
set -e

unknown's avatar
unknown committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
if test ! -r ./sql/mysqld.cc
then
  echo "you must start from the top source directory"
  exit 1
fi

path=`dirname $0`

# clean
if test -e "Makefile"; then make -k clean; fi

# remove files
rm -f */.deps/*.P
rm -f */*.linux

# run autotools
. $path/compile-AUTOTOOLS

# configure
./configure --without-innodb --without-docs

# build	tools only
unknown's avatar
unknown committed
31
make clean all-local
unknown's avatar
unknown committed
32 33 34 35 36 37 38 39 40 41 42 43 44
(cd dbug; make libdbug.a)
(cd strings; make libmystrings.a)
(cd mysys; make libmysys.a)
(cd heap; make libheap.a)
(cd vio; make libvio.a)
(cd regex; make libregex.a)
(cd isam; make libnisam.a)
(cd merge; make libmerge.a)
(cd myisam; make libmyisam.a)
(cd myisammrg; make libmyisammrg.a)
(cd extra; make comp_err)
(cd libmysql; make conf_to_src)
(cd libmysql_r; make conf_to_src)
45 46
# so the file will be linked
(cd sql; make sql_yacc.cc)
unknown's avatar
unknown committed
47 48 49
(cd sql; make gen_lex_hash)
(cd strings; make conf_to_src)

50 51 52
# so the file will be linked
(cd sql; make sql_yacc.cc)

unknown's avatar
unknown committed
53 54 55 56 57 58 59
# copying required linux tools
cp extra/comp_err extra/comp_err.linux
cp libmysql/conf_to_src libmysql/conf_to_src.linux
cp libmysql_r/conf_to_src libmysql_r/conf_to_src.linux
cp sql/gen_lex_hash sql/gen_lex_hash.linux
cp strings/conf_to_src strings/conf_to_src.linux