2005-12-29 00:04:41 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-07-18 22:27:25 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
if [ "X$WINDRES" = "X" ]; then
|
|
|
|
for check in $CMD_PREFIX; do
|
|
|
|
full_check="${check}-windres"
|
|
|
|
if [ ! $(which "$full_check") = "" ]; then
|
|
|
|
export WINDRES="$full_check"
|
|
|
|
fi
|
|
|
|
done
|
2011-06-16 22:50:33 +00:00
|
|
|
fi
|
|
|
|
|
2011-07-18 22:27:25 +00:00
|
|
|
if [ "X$WINDRES" = "X" -o "X$CC" = "X" ]; then
|
|
|
|
echo "Error: Must define or find WINDRES and CC"
|
|
|
|
exit 1
|
2010-10-19 06:48:02 +00:00
|
|
|
fi
|
2011-06-16 22:50:33 +00:00
|
|
|
|
|
|
|
export PLATFORM=mingw32
|
|
|
|
export ARCH=x86
|
|
|
|
|
2005-12-29 00:04:41 +00:00
|
|
|
exec make $*
|