summaryrefslogtreecommitdiff
path: root/contrib/build-anytun-mingw-cross.sh
blob: 54e09c5a3a6663bddc29f12aaae26938c28cda62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -e
BASE=`pwd`

cd ../src

for target in w32 w64; do
  if [ "$target" = "w32" ]; then
    target_name=i686
  else
    target_name=x86_64
  fi
  make distclean
  ./configure --target=mingw --use-ssl-crypto --with-boost=../contrib/boost-$target --with-openssl=../contrib/openssl-$target --cross-prefix=$target_name-w64-mingw32-
  make
  make strip
  mkdir -p $BASE/anytun-$target
  cp *.exe $BASE/anytun-$target
done

cd ../contrib

exit 0