Files
harbour-core/harbour/source/vm/Makefile
Przemyslaw Czerpak 14507e8487 2009-03-03 16:40 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/Makefile
    ! fixed compilation with C compilers which does not support MT mode
      (HB_MT=no) - it's seldom situation but may exists on some platforms,
      f.e. in *nixes when PTHREADS is not available

  * harbour/config/win/bcc.cf
    ! fixed compilation in SHELL environment
      (if exists ... del ...  is COMMAND.COM/CMD.EXE only command)

  * harbour/source/rtl/hbstrfmt.c
    ! casting for C++ compilation

  * harbour/contrib/xhb/dbf2txt.c
    ! casting for C++ compilation
    ! fixed two bad bugs which can cause GPF or some other bad results
      I'd seen after short check. I haven't analyzed this code carefully
      for others.

  * harbour/bin/postinst.sh
    ! fixed hb*-mkslib link in cross builds (MinGW/MinGWCE)
2009-03-03 15:34:58 +00:00

100 lines
1.4 KiB
Makefile

#
# $Id$
#
ROOT = ../../
ifeq ($(HB_ARCHITECTURE),win)
ifeq ($(HB_COMPILER),mingw)
C_MAIN = mainwin.c
DIRS = mainstd
else
ifeq ($(HB_COMPILER),mingwce)
C_MAIN = mainwin.c
DIRS = mainstd mainwin
else
C_MAIN = mainstd.c mainwin.c
DIRS = mainstd mainwin
endif
endif
else
ifeq ($(HB_ARCHITECTURE),os2)
C_MAIN = mainstd.c
else
C_MAIN = main.c
endif
endif
ifeq ($(HB_ARCHITECTURE),win)
ifeq ($(HB_COMPILER),bcc)
DIRS += maindllh
endif
ifeq ($(HB_COMPILER),msvc)
DIRS += maindllh
endif
ifeq ($(HB_COMPILER),msvc64)
DIRS += maindllh
endif
ifeq ($(HB_COMPILER),msvcia64)
DIRS += maindllh
endif
ifeq ($(HB_COMPILER),owatcom)
DIRS += maindllh
endif
endif
C_SOURCES=\
hvm.c \
arrays.c \
arrayshb.c \
asort.c \
break.c \
classes.c \
cmdarg.c \
debug.c \
dynlibhb.c \
dynsym.c \
codebloc.c \
estack.c \
eval.c \
evalhb.c \
extend.c \
extrap.c \
fm.c \
garbage.c \
hashes.c \
hashfunc.c \
initexit.c \
initsymb.c \
itemapi.c \
macro.c \
$(C_MAIN) \
memvars.c \
memvclip.c \
pcount.c \
proc.c \
pvalue.c \
runner.c \
set.c \
thread.c \
vm.c \
PRG_SOURCES=\
harbinit.prg \
LIBNAME=hbvm
DIRS+= fm
HB_USER_CFLAGS:=$(subst -DHB_MT_VM,,$(HB_USER_CFLAGS))
ifneq ($(HB_ARCHITECTURE),dos)
ifneq ($(HB_MT),no)
DIRS+= vmmt fmmt
endif
endif
include $(TOP)$(ROOT)config/lib.cf
ifneq ($(DIRS),)
include $(TOP)$(ROOT)config/dir.cf
endif