* source/vm/Makefile
+ Enabled "amalgamated" VM lib for all compilers/platforms,
except for those where this doesn't give any advantage, or
it breaks the build, these are: pocc*, xcc, bcc, dmc.
Please note that Open Watcom 1.7 might also fail (I didn't
test), so make sure to upgrade to 1.8.
* harbour-win-spec
* harbour-wce-spec
* mpkg_win.bat
* mpkg_tgz.sh
* harbour.spec
* bin/hb-func.sh
* include/hbsetup.h
* source/vm/Makefile
* source/vm/fm.c
- source/vm/fm
- source/vm/fmmt
* utils/hbmk2/hbmk2.prg
- Removed hbfm and hbfmmt lib references. These libs are
no longer generated or used.
* Narrowed HB_FM_STATISTICS presence in various source
files. From now on the system default for all builds is
HB_FM_STATISTICS_OFF. We may change this to
HB_FM_STATISTICS_DYN_OFF if we find a solution to the
potential and actual problems with this method.
If someone needs to change mem stat default, it can be
done by ususal means.
110 lines
1.5 KiB
Makefile
110 lines
1.5 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
ROOT = ../../
|
|
|
|
HB_HVM_ALL = yes
|
|
ifeq ($(HB_COMPILER),bcc)
|
|
HB_HVM_ALL = no
|
|
endif
|
|
ifeq ($(HB_COMPILER),pocc)
|
|
HB_HVM_ALL = no
|
|
endif
|
|
ifeq ($(HB_COMPILER),pocc64)
|
|
HB_HVM_ALL = no
|
|
endif
|
|
ifeq ($(HB_COMPILER),poccarm)
|
|
HB_HVM_ALL = no
|
|
endif
|
|
ifeq ($(HB_COMPILER),xcc)
|
|
HB_HVM_ALL = no
|
|
endif
|
|
ifeq ($(HB_COMPILER),dmc)
|
|
HB_HVM_ALL = no
|
|
endif
|
|
|
|
ifeq ($(HB_ARCHITECTURE),win)
|
|
ifeq ($(HB_COMPILER),mingw)
|
|
C_MAIN = mainwin.c
|
|
else
|
|
C_MAIN = mainstd.c mainwin.c
|
|
endif
|
|
DIRS = mainstd mainwin maindllh maindllp
|
|
else
|
|
ifeq ($(HB_ARCHITECTURE),wce)
|
|
C_MAIN = mainwin.c
|
|
DIRS = mainstd mainwin maindllh maindllp
|
|
else
|
|
ifeq ($(HB_ARCHITECTURE),os2)
|
|
C_MAIN = mainstd.c
|
|
else
|
|
C_MAIN = main.c
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(HB_HVM_ALL),yes)
|
|
|
|
C_SOURCES=\
|
|
hvmall.c \
|
|
|
|
else
|
|
|
|
C_SOURCES=\
|
|
hvm.c \
|
|
arrays.c \
|
|
classes.c \
|
|
dynsym.c \
|
|
codebloc.c \
|
|
estack.c \
|
|
extend.c \
|
|
fm.c \
|
|
garbage.c \
|
|
hashes.c \
|
|
itemapi.c \
|
|
macro.c \
|
|
memvars.c \
|
|
set.c \
|
|
thread.c \
|
|
|
|
endif
|
|
|
|
C_SOURCES+=\
|
|
arrayshb.c \
|
|
asort.c \
|
|
break.c \
|
|
cmdarg.c \
|
|
debug.c \
|
|
dynlibhb.c \
|
|
eval.c \
|
|
evalhb.c \
|
|
extrap.c \
|
|
hashfunc.c \
|
|
initexit.c \
|
|
initsymb.c \
|
|
memvclip.c \
|
|
pcount.c \
|
|
pvalue.c \
|
|
proc.c \
|
|
runner.c \
|
|
vm.c \
|
|
$(C_MAIN) \
|
|
|
|
PRG_SOURCES=\
|
|
harbinit.prg \
|
|
|
|
LIBNAME=hbvm
|
|
|
|
HB_USER_CFLAGS:=$(subst -DHB_MT_VM,,$(HB_USER_CFLAGS))
|
|
ifneq ($(HB_ARCHITECTURE),dos)
|
|
ifneq ($(HB_MT),no)
|
|
DIRS+= vmmt
|
|
endif
|
|
endif
|
|
|
|
include $(TOP)$(ROOT)config/lib.cf
|
|
ifneq ($(DIRS),)
|
|
include $(TOP)$(ROOT)config/dir.cf
|
|
endif
|