2011-11-26 03:39:30 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# just a small shell script that is used to invoke make with the right
|
|
|
|
# parameters to cross compile a binary for Windows
|
|
|
|
#
|
|
|
|
# the paths work for the default mingw32 install on OpenSUSE - adjust as
|
|
|
|
# necessary
|
|
|
|
|
2011-11-27 17:08:55 +00:00
|
|
|
export PATH=/usr/i686-w64-mingw32/sys-root/mingw/bin:$PATH
|
2011-11-26 03:39:30 +00:00
|
|
|
make CC=i686-w64-mingw32-gcc \
|
|
|
|
PKGCONFIG=i686-w64-mingw32-pkg-config \
|
|
|
|
PKG_CONFIG_PATH=/usr/i686-w64-mingw32/sys-root/i686-w64-mingw32/lib/pkgconfig/ \
|
2011-11-27 17:08:55 +00:00
|
|
|
XSLTCONFIG=/usr/i686-w64-mingw32/sys-root/mingw/bin/xslt-config \
|
2011-11-26 03:39:30 +00:00
|
|
|
XML2CONFIG=/usr/i686-w64-mingw32/sys-root/mingw/bin/xml2-config NAME=subsurface.exe
|