New upstream version 0.3.7
[anytun.git] / contrib / build-anytun-mingw-cross.sh
1 #!/bin/sh
2 set -e
3 BASE=`pwd`
4
5 cd ../src
6
7 for target in w32 w64; do
8   if [ "$target" = "w32" ]; then
9     target_name=i686
10   else
11     target_name=x86_64
12   fi
13   make distclean
14   ./configure --target=mingw --use-ssl-crypto --with-boost=../contrib/boost-$target --with-openssl=../contrib/openssl-$target --cross-prefix=$target_name-w64-mingw32-
15   make
16   make strip
17   mkdir -p $BASE/anytun-$target
18   cp *.exe $BASE/anytun-$target
19 done
20
21 cd ../contrib
22
23 exit 0