]> Shamusworld >> Repos - apple2/blob - cross-compile
Misc. cleanups, incl. cleanup up Makefile.
[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 make CROSS=x86_64-w64-mingw32- clean  && make CROSS=x86_64-w64-mingw32.static-
11 upx -9v apple2.exe
12
13 #TARGET = apple2
14 #echo "Cross compiling $(TARGET) for Win32..."
15 #export PATH=/opt/mxe/usr/bin:$PATH
16 #rm Makefile
17 #/opt/mxe/usr/i686-pc-mingw32/qt/bin/qmake
18 #make clean && make
19 #make CROSS=i686-pc-mingw32-
20 #rel=`svn info | grep Revision | cut -f 2 -d ' '`
21 #rel=`git log -1 --pretty=format:%ci | cut -d ' ' -f 1 | tr -d -`
22 #cd release && upx -9v $(TARGET).exe && zip -9v $(TARGET)-$rel.zip $(TARGET).exe
23