mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-22 20:31:11 +00:00
IOQ3 commit 2095
This commit is contained in:
parent
a7ef1ea4e4
commit
fd2ed93c90
2 changed files with 58 additions and 3 deletions
|
@ -1,7 +1,31 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
export ARCH=x86
|
CMD_PREFIX="i686-pc-mingw32 i586-mingw32msvc i686-w64-mingw32";
|
||||||
export CC=i686-pc-mingw32-gcc
|
|
||||||
export WINDRES=i686-pc-mingw32-windres
|
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
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "X$WINDRES" = "X" -o "X$CC" = "X" ]; then
|
||||||
|
echo "Error: Must define or find WINDRES and CC"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
export PLATFORM=mingw32
|
export PLATFORM=mingw32
|
||||||
|
export ARCH=x86
|
||||||
|
|
||||||
exec make $*
|
exec make $*
|
||||||
|
|
31
reaction/cross-make-mingw64.sh
Executable file
31
reaction/cross-make-mingw64.sh
Executable file
|
@ -0,0 +1,31 @@
|
||||||
|
#!/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
|
||||||
|
|
||||||
|
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
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "X$WINDRES" = "X" -o "X$CC" = "X" ]; then
|
||||||
|
echo "Error: Must define or find WINDRES and CC"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
export PLATFORM=mingw32
|
||||||
|
export ARCH=x64
|
||||||
|
|
||||||
|
exec make $*
|
Loading…
Reference in a new issue