Files
harbour-core/harbour/external/sqlite3/Makefile
Viktor Szakats c3ec7cd649 2009-08-21 00:08 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* external/sqlite3/Makefile
    ! Disabled for dos hosts and watcom compiler because watcom 
      runs out of memory.
2009-08-20 22:08:46 +00:00

59 lines
1.2 KiB
Makefile

#
# $Id$
#
ROOT := ../../
include $(TOP)$(ROOT)config/global.mk
HB_BUILD_WARN := no
HB_BUILD_MODE := c
ifeq ($(HB_ARCHITECTURE),wce)
HB_CFLAGS += -D_WIN32_WCE
endif
ifeq ($(HB_ARCHITECTURE),dos)
# DJGPP and OpenWatcom in DOS aren't correctly recognized by SQLite,
# so we're forcing the next best available option. This will cause missing
# externals though. [vszakats]
HB_CFLAGS += -DSQLITE_OS_OTHER
endif
LIBNAME := sqlite3
ifeq ($(HB_WITH_SQLITE3),)
ifeq ($(HB_ARCHITECTURE),win)
HB_WITH_SQLITE3 := yes
endif
ifeq ($(HB_ARCHITECTURE),wce)
HB_WITH_SQLITE3 := yes
endif
ifeq ($(HB_ARCHITECTURE),os2)
HB_WITH_SQLITE3 := yes
endif
ifeq ($(HB_ARCHITECTURE),dos)
HB_WITH_SQLITE3 := yes
endif
ifeq ($(HB_COMPILER),mingwarm)
HB_WITH_SQLITE3 := no
endif
ifeq ($(HB_COMPILER),poccarm)
HB_WITH_SQLITE3 := no
endif
# NOTE: dos based watcom runs out of memory. [vszakats]
ifeq ($(HB_HOST_ARCH)-$(HB_COMPILER),dos-watcom)
HB_WITH_SQLITE3 := no
endif
endif
ifeq ($(HB_WITH_SQLITE3),yes)
C_SOURCES := \
sqlite3.c \
include $(TOP)$(ROOT)config/lib.mk
else
include $(TOP)$(ROOT)config/none.mk
endif