2008-04-13 15:30:33 -07:00
|
|
|
#!/bin/sh
|
2008-04-13 19:09:33 -07:00
|
|
|
if [ -f __BUILD_CONFIG.USER ]; then
|
|
|
|
. __BUILD_CONFIG.USER
|
|
|
|
fi
|
|
|
|
|
2008-04-13 19:15:07 -07:00
|
|
|
if test "x$PREFIX" = "x"; then
|
2008-04-13 19:09:33 -07:00
|
|
|
PREFIX="${HOME}/svn/warzone/devpkg-2.1"
|
|
|
|
fi
|
|
|
|
|
2008-04-13 15:46:41 -07:00
|
|
|
export PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig"
|
2008-04-13 11:48:18 -07:00
|
|
|
PATH="${PREFIX}/bin:${PATH}"
|
|
|
|
|
2008-07-20 16:22:36 -07:00
|
|
|
__BOTHFLAGS="-pipe -m32 -march=i686 -O2 -g"
|
2008-07-20 16:15:37 -07:00
|
|
|
CFLAGS="${__BOTHFLAGS} ${CFLAGS}"
|
|
|
|
CXXFLAGS="${__BOTHFLAGS} ${CXXFLAGS}"
|
|
|
|
CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"
|
|
|
|
LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
|
2008-04-13 11:48:18 -07:00
|
|
|
|
2008-07-20 16:15:37 -07:00
|
|
|
if test "x$INSTALLER_VERSION" = "x"; then
|
|
|
|
INSTALLER_VERSION="2.0.8.0"
|
|
|
|
fi
|
2008-04-13 15:30:33 -07:00
|
|
|
|
2008-04-13 19:19:28 -07:00
|
|
|
if test "x$CROSSCOMPILETARGET" = "x"; then
|
2008-04-13 19:09:33 -07:00
|
|
|
CROSSCOMPILETARGET=mingw32
|
|
|
|
fi
|