source: core/c/build.sh @ e40b94c

Last change on this file since e40b94c was e40b94c, checked in by zzz <zzz@…>, 16 years ago

great renaming (cont.)

  • Property mode set to 100644
File size: 938 bytes
Line 
1#!/bin/sh
2# linux settings:
3CC="gcc"
4ANT="ant"
5JAVA="java"
6
7COMPILEFLAGS="-fPIC -Wall"
8LINKFLAGS="-shared -Wl,-soname,libjbigi.so"
9
10INCLUDES="-Iinclude -I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
11INCLUDELIBS="-lgmp"
12STATICLIBS=""
13
14LIBFILE="libjbigi.so"
15
16# jrandom's mingw setup:
17#INCLUDES="-Iinclude -Ic:/software/j2sdk1.4.2/include/win32/ -Ic:/software/j2sdk1.4.2/include/ -Ic:/dev/gmp-4.1.2/"
18#LINKFLAGS="-shared -Wl,--kill-at"
19#LIBFILE="jbigi.dll"
20#INCLUDELIBS=""
21#STATICLIBS="c:/dev/libgmp.a"
22
23rm -f jbigi.o $LIBFILE
24$CC -c $COMPILEFLAGS $INCLUDES src/jbigi.c
25$CC $LINKFLAGS $INCLUDES $INCLUDELIBS -o $LIBFILE jbigi.o $STATICLIBS
26
27echo "built, now testing"
28(cd ../java/src/ ; $ANT )
29LD_LIBRARY_PATH=. $JAVA -cp ../java/src/i2p.jar -DloggerConfigLocation=../java/src/logger.config net.i2p.util.NativeBigInteger
30
31
32echo ""
33echo ""
34echo "test complete.  please review the lines 'native run time:', 'java run time:', and 'native = '"
Note: See TracBrowser for help on using the repository browser.