mirror of http://shamusworld.gotdns.org/git/rmac
14 lines
398 B
Bash
Executable File
14 lines
398 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Short script to do cross compilation with MXE on Linux
|
|
#
|
|
# by James Hammons
|
|
# (C) 2012 Underground Software
|
|
#
|
|
echo "Cross compiling for Win32..."
|
|
export PATH=/opt/mxe/usr/bin:$PATH
|
|
#make CROSS=i686-pc-mingw32-
|
|
make CROSS=i686-w64-mingw32.static-
|
|
rel=`git log -1 --pretty=format:%ci | cut -d ' ' -f 1 | tr -d -`
|
|
mv rmac rmac.exe && upx -9v rmac.exe && zip -9v rmac-$rel.zip rmac.exe
|