Files
harbour-core/harbour/source/vm/Makefile
Viktor Szakats 2a8789652e 2009-08-21 21:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/vm/maindllh.c
  * source/vm/Makefile
    + Added support for os2 .dll. Please review.

  * config/os2/watcom.mk
    + Added os2 .dll generation for watcom.
      Now it generates OK.

  * source/Makefile
  * config/lib.mk
    + Added support for os2 and some level of *nix support.

  * INSTALL
    * Minor update to a few option description.

  * utils/hbmk2/hbmk2.prg
    + Added preliminary/experimental/untested OS/2 -shared (.dll)
      support for watcom targets.
2009-08-21 19:00:06 +00:00

128 lines
1.8 KiB
Makefile

#
# $Id$
#
ROOT := ../../
include $(TOP)$(ROOT)config/global.mk
ifeq ($(HB_HVM_ALL),)
HB_HVM_ALL := yes
ifeq ($(HB_COMPILER),watcom)
HB_HVM_ALL := no
endif
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
export HB_HVM_ALL
endif
DIRS :=
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
DIRS := maindllh
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
ifneq ($(HB_MT),yes)
ifeq ($(HB_ARCHITECTURE),dos)
ifneq ($(HB_COMPILER),djgpp)
ifneq ($(HB_COMPILER),watcom)
HB_MT := no
endif
endif
endif
endif
ifneq ($(HB_MT),no)
DIRS += vmmt
endif
include $(TOP)$(ROOT)config/lib.mk
ifneq ($(DIRS),)
include $(TOP)$(ROOT)config/dir.mk
endif