Added cross compile shellscripts (untested)

This commit is contained in:
Walter Julius Hennecke 2012-01-24 12:05:46 +01:00
parent 5732476c65
commit 54f7a556bc
2 changed files with 34 additions and 0 deletions

17
cross-make-mingw.sh Normal file
View file

@ -0,0 +1,17 @@
#!/bin/sh
CMD_PREFIX="i586-mingw32msvc i686-w64-mingw32";
if [ "X$CC" = "X" ]; then
for check in $CMD_PREFIX; do
full_check="${check}-gcc"
if [ ! $(which "$full_check") = "" ]; then
export CC="$full_check"
fi
done
fi
export PLATFORM=mingw32
export ARCH=x86
exec make $*

17
cross-make-mingw64.sh Normal file
View file

@ -0,0 +1,17 @@
#!/bin/sh
CMD_PREFIX="amd64-mingw32msvc x86_64-w64-mingw32";
if [ "X$CC" = "X" ]; then
for check in $CMD_PREFIX; do
full_check="${check}-gcc"
if [ ! $(which "$full_check") = "" ]; then
export CC="$full_check"
fi
done
fi
export PLATFORM=mingw32
export ARCH=x64
exec make $*