]> Shamusworld >> Repos - apple2/blob - cross-compile
517fc72c3be7c072384b5f2d50f2a997f43c46eb
[apple2] / cross-compile
1 #!/bin/bash
2 #
3 # Short script to do cross compilation with MXE on Linux
4 #
5 # by James Hammons
6 # (C) 2012 Underground Software
7 #
8 export PATH=/opt/mxe/usr/bin:$PATH
9 make CROSS=i686-pc-mingw32- clean  && make CROSS=i686-pc-mingw32-
10
11 #TARGET = apple2
12 #echo "Cross compiling $(TARGET) for Win32..."
13 #export PATH=/opt/mxe/usr/bin:$PATH
14 #rm Makefile
15 #/opt/mxe/usr/i686-pc-mingw32/qt/bin/qmake
16 #make clean && make
17 #make CROSS=i686-pc-mingw32-
18 #rel=`svn info | grep Revision | cut -f 2 -d ' '`
19 #rel=`git log -1 --pretty=format:%ci | cut -d ' ' -f 1 | tr -d -`
20 #cd release && upx -9v $(TARGET).exe && zip -9v $(TARGET)-$rel.zip $(TARGET).exe
21