forked from edrosten/threeB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_3b.sh
39 lines (31 loc) · 785 Bytes
/
build_3b.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
. /tmp/setup_build_env.sh
set -o xtrace
echo AAe Compiling 3B
cd /tmp/$threebdir
export CXXFLAGS="-DTOON_CLAPACK -O3"
#./configure $host --with-imagej=/tmp/ImageJ/ij.jar $jni
#make clean
#make $J
#touch ThreeBRunner.h
if [ x$variant != xstatic ]
then
#make $J
#touch ThreeBRunner.h
if [ x$variant == xmingw32 ] || [ x$variant == xmingw64 ]
then
LDFLAGS="$LDFLAGS -Wl,-Bstatic " LIBS="-lpng -ltiff -ljpeg -lz" ./configure $host --with-imagej=/tmp/ImageJ/ij.jar $jni
make clean
make $J threeB_jni.dll multispot5_static
else
./configure $host --with-imagej=/tmp/ImageJ/ij.jar $jni
make clean
make $J libthreeB_jni.so
make $J three_B.jar
echo AAx result: $?
fi
else
./configure $host
make clean
make $J multispot5_static make_grid_markup_static
fi
exit 0