changing libcsql.so library name to libcsqlstorage.so
[csql.git] / build.ksh
blob136fa7622d427569a0cef02ec45f2360cb3843c8
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 -Wno-write-strings"
15 #./configure --prefix=`pwd`/install CXXFLAGS="-O2 -I$JDK_HOME/include -I$JDK_HOME/include/linux -Wno-write-strings"
16 libtoolavailable=`which libtool`
17 if [ -z "$libtoolavailable" ]
18 then
19 echo "libtool not available. Build may fail"
20 else
21 mv libtool libtool.bk
22 ln -s $libtoolavailable libtool
24 make
25 make install
26 ./csqlinstall.ksh