X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=cross-compile;fp=cross-compile;h=91fc44b0741cccc95c83156d57c11cc07464e07d;hp=0000000000000000000000000000000000000000;hb=d7d2c7f14734504d68d67ee5d46ecd3472c0922e;hpb=94655b0579354d34d57a743eaeef6ad8d988a787 diff --git a/cross-compile b/cross-compile new file mode 100755 index 0000000..91fc44b --- /dev/null +++ b/cross-compile @@ -0,0 +1,12 @@ +#!/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- +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