* config/global.cf
! Fixed 'sh' HB_SHELL detection. Problem experienced with
Cygwin GNU Make, where SHLVL isn't defined on the first
level. Now also checking for SHELL=/bin/sh to detect sh
shell.
* tests/multifnc/Makefile
* external/sqlite3/Makefile
* external/libhpdf/Makefile
* external/libpng/Makefile
* contrib/gtalleg/Makefile
* contrib/hbodbc/Makefile
* contrib/hbtpathy/Makefile
* contrib/hbsqlit3/Makefile
* contrib/hbblat/Makefile
* contrib/hbqt/Makefile
* contrib/hbfbird/Makefile
* contrib/hbxbp/Makefile
* contrib/hbcurl/Makefile
* contrib/gtqtc/Makefile
* contrib/rddsql/sddfb/Makefile
* contrib/rddsql/sddodbc/Makefile
* contrib/rddado/Makefile
* contrib/gtwvg/Makefile
* contrib/rddads/Makefile
* contrib/hbfimage/Makefile
* contrib/hbtip/Makefile
* contrib/hbwin/Makefile
* contrib/hbssl/Makefile
* source/vm/Makefile
* source/vm/vmmt/Makefile
* source/rtl/gtdos/Makefile
* source/rtl/gtwin/Makefile
* source/rtl/gtxwc/Makefile
* source/rtl/gtcrs/Makefile
* source/rtl/gttrm/Makefile
* source/rtl/Makefile
* source/rtl/gtos2/Makefile
* source/rtl/gtsln/Makefile
* source/rtl/gtgui/Makefile
* source/rtl/gtwvt/Makefile
* source/rdd/Makefile
* source/rdd/dbffpt/Makefile
! Including 'global.cf' directly to make HB_ARCHITECTURE/HB_COMPILER/HB_COMMERCE
variables work in case we're relying on autodetection.
; TODO: May need to do this for a few other cases where detection is relying
on some additional variables. Like HB_XBUILD, which needs to be
cleaned further, maybe autodetection added.
; NOTE: Above changes mean that from now on for basic build usage it's
enough to have the compiler in PATH and to issue a simple 'make'
or 'mingw32-make' (or whatever GNU Make is called in that environment),
and make process should just work. IOW, no need to go through
"starter" scripts in root (make_gnu.*).
129 lines
1.8 KiB
Makefile
129 lines
1.8 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
ROOT := ../../
|
|
|
|
include $(TOP)$(ROOT)config/global.cf
|
|
|
|
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
|
|
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_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.cf
|
|
ifneq ($(DIRS),)
|
|
include $(TOP)$(ROOT)config/dir.cf
|
|
endif
|