# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * # * This file is part of SableVM. * # * See the file "LICENSE" for Copyright information and the * # * terms and conditions for copying, distribution and * # * modification of SableVM. * # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #===================================================================== # set version #===================================================================== VERSION=1.0.5 #===================================================================== # set location #===================================================================== if test x$1 == x ; then LOCATION=/usr/local else LOCATION=$1 fi #===================================================================== # compile and install SableVM native library #===================================================================== #tar -xzf sablevm-native-library-$VERSION.tar.gz cd sablevm-native-library-$VERSION CPPFLAGS='-DPCL_PEN' export CPPFLAGS LDFLAGS='-lpcl' export LDFLAGS ./configure --prefix=$LOCATION make make install make distclean ./configure --prefix=$LOCATION --enable-debugging-features \ --libdir=$LOCATION/lib/sablevm/debug-lib make make install cd .. #===================================================================== # compile and install SableVM class library #===================================================================== #tar -xzf sablevm-class-library-$VERSION.tar.gz cd sablevm-class-library-$VERSION mkdir classes find | grep \\.java$ | xargs jikes -g -d classes \ -bootclasspath src:classes -classpath src:classes -sourcepath src find resource -type f | cut -d\/ -f2- | \ awk '{print "cp resource/" $0 " classes/" $0 }' | sh chmod -R a+rX classes rm -rf $LOCATION/lib/sablevm/classes-$VERSION mv classes $LOCATION/lib/sablevm/classes-$VERSION ln -s $LOCATION/lib/sablevm/classes-$VERSION \ $LOCATION/lib/sablevm/debug-lib/sablevm/classes-$VERSION cd .. #===================================================================== # compile and install SableVM #===================================================================== #tar -xzf sablevm-$VERSION.tar.gz cd sablevm-$VERSION #===================================================================== # inlined #===================================================================== CPPFLAGS='-DPCL_PEN' export CPPFLAGS LDFLAGS='-lpcl' export LDFLAGS ./configure \ --prefix=$LOCATION \ --program-suffix=-biOrg \ --libdir=$LOCATION/lib/sablevm-biOrg \ --disable-debugging-features \ --enable-signals-for-exceptions \ --with-gc=copying \ --with-obj-layout=bidirectional \ --with-threading=inlined make ; make install ; make distclean ln -s $LOCATION/lib/sablevm \ $LOCATION/lib/sablevm-biOrg/sablevm cd ..