diff --git a/tools/cross-mingw32-linux.sh b/tools/cross-mingw32-linux.sh new file mode 100755 index 0000000..4f936ff --- /dev/null +++ b/tools/cross-mingw32-linux.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# to use this please read http://www.libsdl.org/extras/win32/cross/README.txt +# from there i have got all this. + +PREFIX=/usr/local/cross-tools +TARGET=i386-mingw32msvc +PATH="$PREFIX/bin:$PREFIX/$TARGET/bin:$PATH" +export PATH + +# configure +sh configure --target=$TARGET --host=$TARGET --build=i386-linux $* +rm -rf src/bomberclone.exe +exec make $* +mv src/bomberclone src/bomberclone.exe +exec strip src/bomberclone.exe