# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * # * 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 ./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 #===================================================================== ./configure \ --prefix=$LOCATION \ --program-suffix=-inlined \ --libdir=$LOCATION/lib/sablevm-inlined \ --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-inlined/sablevm #===================================================================== # direct #===================================================================== ./configure \ --prefix=$LOCATION \ --program-suffix=-direct \ --libdir=$LOCATION/lib/sablevm-direct \ --disable-debugging-features \ --enable-signals-for-exceptions \ --with-gc=copying \ --with-obj-layout=bidirectional \ --with-threading=direct make ; make install ; make distclean ln -s $LOCATION/lib/sablevm \ $LOCATION/lib/sablevm-direct/sablevm #===================================================================== # switch #===================================================================== ./configure \ --prefix=$LOCATION \ --program-suffix=-switch \ --libdir=$LOCATION/lib/sablevm-switch \ --disable-debugging-features \ --enable-signals-for-exceptions \ --with-gc=copying \ --with-obj-layout=bidirectional \ --with-threading=switch make ; make install ; make distclean ln -s $LOCATION/lib/sablevm \ $LOCATION/lib/sablevm-switch/sablevm #===================================================================== # traditional #===================================================================== ./configure \ --prefix=$LOCATION \ --program-suffix=-traditional \ --libdir=$LOCATION/lib/sablevm-traditional \ --disable-debugging-features \ --enable-signals-for-exceptions \ --with-gc=copying \ --with-obj-layout=traditional \ --with-threading=inlined make ; make install ; make distclean ln -s $LOCATION/lib/sablevm \ $LOCATION/lib/sablevm-traditional/sablevm #===================================================================== # nosig #===================================================================== ./configure \ --prefix=$LOCATION \ --program-suffix=-nosig \ --libdir=$LOCATION/lib/sablevm-nosig \ --disable-debugging-features \ --disable-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-nosig/sablevm #===================================================================== # debug #===================================================================== ./configure \ --prefix=$LOCATION \ --program-suffix=-debug \ --libdir=$LOCATION/lib/sablevm-debug \ --enable-debugging-features \ --disable-signals-for-exceptions \ --with-gc=copying \ --with-obj-layout=bidirectional \ --with-threading=switch make ; make install ln -s $LOCATION/lib/sablevm/debug-lib/sablevm \ $LOCATION/lib/sablevm-debug/sablevm cd ..