diff --git a/harbour/ChangeLog b/harbour/ChangeLog index a1756c6535..47aaa1cd8b 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,12 @@ 2008-12-31 13:59 UTC+0100 Foo Bar */ +2008-07-07 19:00 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl) + * make_xmingwce.mak + * Changed the way HB_COMP_PATH, HB_PPGEN_PATH, + CCPATH and CCPREFIX environment variables are + handled + 2008-07-07 17:41 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * source/vm/extrap.c ! Warning fixed. @@ -51,7 +57,7 @@ * contrib/hbtpathy/Makefile * contrib/hbziparch/Makefile - ! Fixed referring to win32 archictecture as 'win32' + ! Fixed referring to win32 archictecture as 'win32' (should be 'w32'). Recently introduced bugs. * contrib/hbfimage/fi_winfu.c @@ -64,8 +70,8 @@ 2008-07-05 03:28 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * source/rtl/transfrm.c - + Added patch by Javier. This will make @R picture - compatible with Clipper 5.01 and VFP if HB_COMPAT_FOXPRO + + Added patch by Javier. This will make @R picture + compatible with Clipper 5.01 and VFP if HB_COMPAT_FOXPRO is enabled. 2008-07-05 02:48 UTC+0200 Viktor Szakats (harbour.01 syenar hu) @@ -77,7 +83,7 @@ * source/pp/hbpp.c * source/pp/ppcore.c * source/pp/pplib.c - ! Fixed bug introduced in r8836, so that now __HARBOUR__ + ! Fixed bug introduced in r8836, so that now __HARBOUR__ will again be #defined when 'harbour /u' switch is used. Thanks Randy. diff --git a/harbour/make_xmingwce.sh b/harbour/make_xmingwce.sh index afcf143363..3ad4b31aba 100755 --- a/harbour/make_xmingwce.sh +++ b/harbour/make_xmingwce.sh @@ -44,9 +44,27 @@ export C_USR="$CC_C_USR $C_USR" export CC_PRG_USR export PRG_USR="$CC_PRG_USR $PRG_USR" -export CCPATH="/opt/mingw32ce/bin:" -export CCPREFIX="arm-wince-mingw32ce-" -export PATH="$CCPATH$PATH" +# default cegcc instalation path +[ -z "$CCPATH" ] && \ +export CCPATH="/opt/mingw32ce/bin" +export PATH="$CCPATH:$PATH" + +# cegcc executables prefix - this +# has changed in cegcc/gcc4.3.0 +if [ -z "$CCPREFIX" ]; then + if [ -x "${CCPATH}/arm-wince-mingw32ce-gcc" ]; then + export CCPREFIX="arm-wince-mingw32ce-" + else + if [ -x "${CCPATH}/arm-mingw32ce-gcc" ]; then + export CCPREFIX="arm-mingw32ce-" + else + echo "cegcc compiler executable not found. Ensure you have cegcc package installed in" + echo "/opt/mingw32ce dir, or (alternativly) set environment variable CCPATH to a cegcc" + echo "instalation directory" + exit 1 + fi + fi +fi export HB_TOOLS_PREF="hbce" export HB_XBUILD="wce" @@ -59,20 +77,39 @@ trap cleanup EXIT &>/dev/null mkdir ${HB_BIN_COMPILE} DIR=`cd $(dirname $0);pwd` -if which harbour &> /dev/null; then - HB_COMP_PATH=`which harbour 2> /dev/null` -else - HB_COMP_PATH="$DIR/source/main/$HB_HOST_ARCH/$HB_HOST_CC/harbour" +if [ -z "${HB_COMP_PATH}" ]; then + if which harbour &> /dev/null; then + HB_COMP_PATH=`which harbour 2> /dev/null` + else + HB_COMP_PATH="$DIR/source/main/$HB_HOST_ARCH/$HB_HOST_CC/harbour" + fi fi if [ -x "${HB_COMP_PATH}" ]; then ln -s "${HB_COMP_PATH}" ${HB_BIN_COMPILE}/harbour.exe else - echo "You must have a working Harbour executable for your platform on your PATH." + echo "You must have a working 'harbour' executable for your platform on your PATH." exit 1 fi -ln -s "$DIR/source/pp/$HB_HOST_ARCH/$HB_HOST_CC/hbpp" ${HB_BIN_COMPILE}/hbpp.exe -export HB_PPGEN_PATH=${HB_BIN_COMPILE} +if [ -z "${HB_PPGEN_PATH}" ]; then + if which hbpp &> /dev/null; then + HB_PPGEN_PATH=`which hbpp 2> /dev/null` + else + DIR=`dirname ${HB_COMP_PATH}` + if [ -x "${DIR}/hbpp" ]; then + HB_PPGEN_PATH="${DIR}/hbpp" + else + HB_PPGEN_PATH="$DIR/source/pp/$HB_HOST_ARCH/$HB_HOST_CC/hbpp" + fi + fi +fi +if [ -x "${HB_PPGEN_PATH}" ]; then + ln -s ${HB_PPGEN_PATH} ${HB_BIN_COMPILE}/hbpp.exe +else + echo "You must have a working 'hbpp' executable for your platform on your PATH." + exit 1 +fi +export HB_PPGEN_PATH case "$1" in tgz|gnu)