test integration changes
[csql.git] / build.ksh
blob94ef6b10a4e1c01c11ff2f5e5d26acb02b18ab7a
1 #!/bin/sh
2 if [ -z "$JDK_HOME" ]
3 then
4 echo "Please set JDK_HOME"
5 exit 1
6 fi
8 cp src/tools/Makefile.am.full src/tools/Makefile.am
9 cp src/odbc/Makefile.am.full src/odbc/Makefile.am
10 cp src/jdbc/Makefile.am.full src/jdbc/Makefile.am
11 cp src/Makefile.am.full src/Makefile.am
13 make -f Makefile.cvs
14 ./configure --prefix=`pwd`/install CXXFLAGS="-g -I$JDK_HOME/include -I$JDK_HOME/include/linux"
15 #./configure --prefix=`pwd`/install CXXFLAGS="-g -I$JDK_HOME/include -I$JDK_HOME/include/linux -Wno-write-strings"
16 #./configure --prefix=`pwd`/install CXXFLAGS=-g
17 libtoolavailable=`which libtool`
18 if [ -z "$libtoolavailable" ]
19 then
20 echo "libtool not available. Build may fail"
21 else
22 mv libtool libtool.bk
23 ln -s $libtoolavailable libtool
25 make
26 make install
27 ./csqlinstall.ksh