Files
i2p.itoopie/core/c/build.sh

36 lines
978 B
Bash
Raw Normal View History

2004-04-08 04:48:39 +00:00
#!/bin/sh
# linux settings:
CC="gcc"
ANT="ant"
JAVA="java"
COMPILEFLAGS="-fPIC -Wall"
LINKFLAGS="-shared -Wl,-soname,libjbigi.so"
INCLUDES="-Iinclude -I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
INCLUDELIBS="-lgmp"
STATICLIBS=""
LIBFILE="libjbigi.so"
# jrandom's mingw setup:
2004-04-08 10:40:43 +00:00
#COMPILEFLAGS="-Wall"
2004-04-08 04:48:39 +00:00
#INCLUDES="-Iinclude -Ic:/software/j2sdk1.4.2/include/win32/ -Ic:/software/j2sdk1.4.2/include/ -Ic:/dev/gmp-4.1.2/"
#LINKFLAGS="-shared -Wl,--kill-at"
#LIBFILE="jbigi.dll"
#INCLUDELIBS=""
2004-04-08 10:40:43 +00:00
#STATICLIBS="libgmp.a"
2004-04-08 04:48:39 +00:00
rm -f jbigi.o $LIBFILE
$CC -c $COMPILEFLAGS $INCLUDES src/jbigi.c
$CC $LINKFLAGS $INCLUDES $INCLUDELIBS -o $LIBFILE jbigi.o $STATICLIBS
echo "built, now testing"
2004-04-08 10:40:43 +00:00
(cd ../java/ ; $ANT build)
LD_LIBRARY_PATH=. $JAVA -cp ../java/build/i2p.jar -DloggerConfigLocation=../../installer/java/src/logger.config.template net.i2p.util.NativeBigInteger
2004-04-08 04:48:39 +00:00
echo ""
echo ""
echo "test complete. please review the lines 'native run time:', 'java run time:', and 'native = '"