2013-09-20 22:32:05 +00:00
|
|
|
#!/bin/sh
|
2014-11-30 21:19:28 +00:00
|
|
|
#
|
|
|
|
# NOTE:
|
|
|
|
# This script is not supported - see mbuild-all.sh
|
|
|
|
#
|
2004-08-21 07:56:53 +00:00
|
|
|
|
|
|
|
case `uname -sr` in
|
|
|
|
MINGW*)
|
|
|
|
echo "Building windows .dlls for all architectures";;
|
2011-05-31 19:37:29 +00:00
|
|
|
SunOS*)
|
|
|
|
echo "Building solaris .sos for all architectures";;
|
2004-08-21 07:56:53 +00:00
|
|
|
Linux*)
|
|
|
|
echo "Building linux .sos for all architectures";;
|
|
|
|
FreeBSD*)
|
|
|
|
echo "Building freebsd .sos for all architectures";;
|
|
|
|
*)
|
|
|
|
echo "Unsupported build environment"
|
|
|
|
exit;;
|
|
|
|
esac
|
|
|
|
|
2015-10-05 14:13:38 +00:00
|
|
|
# Import gmp version variables and download gmp.
|
|
|
|
. ./download_gmp.sh
|
2014-11-30 21:19:28 +00:00
|
|
|
|
2004-08-21 07:56:53 +00:00
|
|
|
echo "Building..."
|
2014-11-30 21:19:28 +00:00
|
|
|
mkdir -p lib/net/i2p/util
|
2009-03-30 05:31:40 +00:00
|
|
|
|
2014-11-30 21:19:28 +00:00
|
|
|
#
|
|
|
|
# look in configure file in gmp source for supported host CPUs, at about line 5000
|
|
|
|
#
|
|
|
|
#
|
|
|
|
for x in \
|
|
|
|
none pentium pentiummmx pentium2 pentium3 pentium4 k6 k62 k63 athlon geode pentiumm core2 \
|
|
|
|
athlon64 k10 bobcat jaguar bulldozer piledriver steamroller excavator corei atom nano
|
2004-08-21 07:56:53 +00:00
|
|
|
do
|
2014-11-30 21:19:28 +00:00
|
|
|
mkdir -p bin/$x
|
2004-08-21 07:56:53 +00:00
|
|
|
cd bin/$x
|
2015-10-05 14:13:38 +00:00
|
|
|
../../gmp-$GMP_VER/configure --with-pic --build=$x
|
2014-11-30 21:19:28 +00:00
|
|
|
make clean
|
2004-08-21 07:56:53 +00:00
|
|
|
make
|
|
|
|
sh ../../build_jbigi.sh static
|
|
|
|
case `uname -sr` in
|
|
|
|
MINGW*)
|
|
|
|
cp jbigi.dll ../../lib/net/i2p/util/jbigi-windows-$x.dll;;
|
2011-05-31 19:37:29 +00:00
|
|
|
SunOS*)
|
|
|
|
cp libjbigi.so ../../lib/net/i2p/util/libjbigi-solaris-$x.so;;
|
2004-08-21 07:56:53 +00:00
|
|
|
Linux*)
|
|
|
|
cp libjbigi.so ../../lib/net/i2p/util/libjbigi-linux-$x.so;;
|
|
|
|
FreeBSD*)
|
|
|
|
cp libjbigi.so ../../lib/net/i2p/util/libjbigi-freebsd-$x.so;;
|
|
|
|
esac
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
done
|