mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / netware / BUILD / compile-linux-tools
blob6a6abd32639d2a444d924a2e8020688d88837a6e
1 #! /bin/sh
3 # debug
4 #set -x
6 # stop on errors
7 set -e
9 if test ! -r ./sql/mysqld.cc
10 then
11 echo "you must start from the top source directory"
12 exit 1
15 path=`dirname $0`
17 # clean
18 if test -e "Makefile"; then make -k clean; fi
20 # remove files
21 rm -f */.deps/*.P
22 rm -f */*.linux
24 # run autotools
25 . $path/compile-AUTOTOOLS
27 # configure
28 ./configure --without-innodb --without-docs
30 # build tools only
31 make clean
32 make
34 # Create mysql_version.h which was deleted my previous step
35 ./config.status include/mysql_version.h
37 (cd dbug; make libdbug.a)
38 (cd strings; make libmystrings.a)
39 (cd mysys; make libmysys.a)
40 (cd storage/heap; make libheap.a)
41 (cd vio; make libvio.a)
42 (cd regex; make libregex.a)
43 (cd storage/myisam; make libmyisam.a)
44 (cd storage/myisammrg; make libmyisammrg.a)
45 (cd extra; make comp_err)
46 (cd libmysql; make conf_to_src)
47 (cd libmysql_r; make conf_to_src)
48 # so the file will be linked
49 (cd sql; make sql_yacc.cc)
50 (cd sql; make gen_lex_hash)
51 (cd strings; make conf_to_src)
53 # so the file will be linked
54 (cd sql; make sql_yacc.cc)
56 # we need initilizing SQL files.
57 (cd netware; make test_db.sql init_db.sql)
59 # copying required linux tools
60 cp extra/comp_err extra/comp_err.linux
61 cp libmysql/conf_to_src libmysql/conf_to_src.linux
62 #cp libmysql_r/conf_to_src libmysql_r/conf_to_src.linux
63 cp sql/gen_lex_hash sql/gen_lex_hash.linux
64 cp strings/conf_to_src strings/conf_to_src.linux
66 # Delete mysql_version.h
67 rm -f include/mysql_version.h