* harbour/make_gnu.sh
+ harbour/make_xmingw.sh
* harbour/bin/hb-mkslib.sh
* harbour/bin/postinst.sh
* harbour/config/w32/mingw32.cf
* added support for cross compilation (Windows binaries at Linux) with
MinGW - borrowed from xHarbour Phil Krylov solution
* harbour/contrib/btree/hb_btree.c
* casting
* harbour/contrib/libct/files.c
! fixed iAttr initialization in SETFATTR()
* harbour/contrib/ole/ole2.c
! fixed names of included files
* harbour/contrib/rdd_ads/ace.h
* cover #pragma warning( error : 4706 ) by !defined( __GNUC__ )
* harbour/include/hbapi.h
* harbour/include/hbdefs.h
+ harbour/source/common/hbarch.c
* harbour/source/common/Makefile
* added functions for machine independent double and long long conversions
(my code borrowed from xHarbour)
* harbour/include/hbapifs.h
* synced file IO with xHarbour - it fixes some problems, adds some
missing functionality and long (64bit) file support for Windows.
For Linux I added it some time ago.
* harbour/include/hbcomp.h
* changed 'char cScope' to 'HB_SYMBOLSCOPE cScope'
* harbour/source/common/hbfsapi.c
! fixed some possible buffer overflow
* harbour/source/common/hbstr.c
* synced with xHarbour
* harbour/source/common/hbver.c
+ added hb_iswinnt() (borrowed from xHarbour)
* harbour/source/compiler/cmdcheck.c
+ added -undef: compiler switch (borrowed from xHarbour)
* harbour/source/compiler/gencobj.c
* cleanup
* harbour/source/pp/ppcore.c
! fixed path delimiters in included file names
* harbour/source/rtl/Makefile
+ harbour/source/rtl/fserror.c
+ added C -> OS file error trnalsations - not perfect but better then
the used hacks (borrowed from xHarbour)
* harbour/source/rtl/file.c
* use hb_fileNameConv() instead of hb_filecase() - hb_fileNameConv()
is the only one function to make file name conversions dependent on
some SETs.
* harbour/source/rtl/filesys.c
* synced file IO with xHarbour - it fixes some problems, adds some
missing functionality and long (64bit) file support for Windows.
For Linux I added it some time ago.
* harbour/source/rtl/fstemp.c
* synced with xHarbour
* harbour/source/rtl/strings.c
* use ULONG instead of size_t in hb_strnicmp declaration - we have to
decide what we should use. Using size_t or its Harbour version f.e.
HB_SIZE_T seems to be reasonable but it has to be global - redefining
single functions does not make sense and will create troubles only.
77 lines
2.3 KiB
Bash
77 lines
2.3 KiB
Bash
#!/bin/sh
|
|
[ "$BASH" ] || exec bash `which $0` ${1+"$@"}
|
|
#
|
|
# $Id$
|
|
#
|
|
|
|
# ---------------------------------------------------------------
|
|
# Copyright 2003 Przemyslaw Czerpak <druzus@priv.onet.pl>
|
|
# simple script run after Harbour make install to finish install
|
|
# process
|
|
#
|
|
# See doc/license.txt for licensing terms.
|
|
# ---------------------------------------------------------------
|
|
|
|
if [ -z "$HB_ARCHITECTURE" ] || [ -z "$HB_COMPILER" ] || \
|
|
[ -z "$HB_BIN_INSTALL" ] || \
|
|
[ -z "$HB_INC_INSTALL" ] || \
|
|
[ -z "$HB_LIB_INSTALL" ]
|
|
then
|
|
echo "The following envvars must be set:"
|
|
echo " HB_ARCHITECTURE"
|
|
echo " HB_COMPILER"
|
|
echo " HB_BIN_INSTALL"
|
|
echo " HB_INC_INSTALL"
|
|
echo " HB_LIB_INSTALL"
|
|
exit 1
|
|
fi
|
|
|
|
hb_root=`dirname "$0"`
|
|
if [ "${hb_root}" = "." ]
|
|
then
|
|
hb_root=".."
|
|
else
|
|
hb_root=`dirname "${hb_root}"`
|
|
fi
|
|
. ${hb_root}/bin/hb-func.sh
|
|
|
|
if [ "$HB_COMPILER" = "gcc" ] || [ "$HB_COMPILER" = "gpp" ] || \
|
|
[ "$HB_COMPILER" = "mingw32" ] || [ "$HB_COMPILER" = "djgpp" ]
|
|
then
|
|
RANLIB=""
|
|
MAKE=make
|
|
AR="${CCPREFIX}ar -cr"
|
|
if [ "${HB_ARCHITECTURE}" = "bsd" ] || [ `uname` = "FreeBSD" ]; then
|
|
MAKE=gmake
|
|
elif [ "${HB_ARCHITECTURE}" = "darwin" ]; then
|
|
# We must build an archive index on Darwin
|
|
AR="${CCPREFIX}ar -crs"
|
|
fi
|
|
if [ "${HB_ARCHITECTURE}" = "sunos" ]; then
|
|
install -m 755 -f "${HB_BIN_INSTALL}" "${hb_root}/bin/hb-mkslib.sh"
|
|
elif [ "${HB_ARCHITECTURE}" != "dos" ]; then
|
|
# Without -c some OSes _move_ the file instead of copying it!
|
|
install -c -m 755 "${hb_root}/bin/hb-mkslib.sh" "${HB_BIN_INSTALL}/hb-mkslib"
|
|
fi
|
|
mk_hbtools "${HB_BIN_INSTALL}" "$@"
|
|
if [ "$HB_COMPILER" = "gcc" ] || [ "$HB_COMPILER" = "gpp" ] || \
|
|
[ "$HB_COMPILER" = "mingw32" ]; then
|
|
mk_hblibso "${hb_root}"
|
|
fi
|
|
# build fm lib with memory statistic
|
|
(cd ${hb_root}/source/vm
|
|
C_USR=${C_USR//-DHB_FM_STATISTICS_OFF/}
|
|
rm -f fm.o
|
|
${MAKE} -r fm.o
|
|
${AR} ${HB_LIB_INSTALL}/libfm.a fm.o
|
|
[ -n "${RANLIB}" ] && ${RANLIB} ${HB_LIB_INSTALL}/libfm.a
|
|
rm -f fm.o
|
|
if [ "${HB_MT}" = "MT" ]; then
|
|
${MAKE} -r fm.o 'HB_LIBCOMP_MT=YES'
|
|
${AR} ${HB_LIB_INSTALL}/libfmmt.a fm.o
|
|
[ -n "${RANLIB}" ] && ${RANLIB} ${HB_LIB_INSTALL}/libfmmt.a
|
|
rm -f fm.o
|
|
fi
|
|
)
|
|
fi
|