source: core/c/build.sh @ 6b1d671

Last change on this file since 6b1d671 was 6b1d671, checked in by zzz <zzz@…>, 17 years ago

Little restyle of output text
(duck)

  • Property mode set to 100644
File size: 1.1 KB
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#COMPILEFLAGS="-Wall"
18#INCLUDES="-Iinclude -Ic:/software/j2sdk1.4.2/include/win32/ -Ic:/software/j2sdk1.4.2/include/ -Ic:/dev/gmp-4.1.2/"
19#LINKFLAGS="-shared -Wl,--kill-at"
20#LIBFILE="jbigi.dll"
21#INCLUDELIBS=""
22#STATICLIBS="libgmp.a"
23
24echo "Compiling C code..."
25rm -f jbigi.o $LIBFILE
26$CC -c $COMPILEFLAGS $INCLUDES src/jbigi.c
27$CC $LINKFLAGS $INCLUDES $INCLUDELIBS -o $LIBFILE jbigi.o $STATICLIBS
28
29echo ""
30echo "Doing an ant build..."
31(cd ../java/ ; $ANT build)
32
33echo ""
34echo "Built, now testing... This will take a while."
35LD_LIBRARY_PATH=. $JAVA -cp ../java/build/i2p.jar -DloggerConfigLocation=../../installer/java/src/logger.config.template net.i2p.util.NativeBigInteger
36
37
38echo ""
39echo ""
40echo "Test complete. Please review the lines 'native run time:', 'java run time:', and 'native = '"
Note: See TracBrowser for help on using the repository browser.