Cross compiling script

origin
stpohle 23 years ago
parent b7a916e2b1
commit 71eaf136e5

@ -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
Loading…
Cancel
Save