Files
harbour-core/harbour/external/sqlite3/Makefile
Przemyslaw Czerpak e537249bdc 2009-07-11 16:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/external/sqlite3/Makefile
    * set SQLITE_OS_OTHER for all DOS builds

  * harbour/config/dos/watcom.cf
  * harbour/config/win/watcom.cf
    * modified to work with *nix like shells so it can be used in cross build
      environment

    Now in my Linux box I can create Windows, DOS and OS2 harbour builds
    using OpenWatcom 1.8 and native Linux binaries. Final Windows executables
    works correctly. DOS one doesn't and it's probably problem with
    OpenWatcom Linux linker and DOS DPMI stubs - I'll check it yet.
    I cannot tested generated OS2 executable files. If someone has
    OS2 and can try to run it then I can send them to him for test.
2009-07-11 14:55:34 +00:00

52 lines
906 B
Makefile

#
# $Id$
#
HB_BUILD_WARN = no
HB_BUILD_MODE = c
ifeq ($(HB_ARCHITECTURE),wce)
HB_USER_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_USER_CFLAGS += -DSQLITE_OS_OTHER
endif
ROOT = ../../
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
endif
ifeq ($(HB_WITH_SQLITE3),yes)
C_SOURCES =\
sqlite3.c \
include $(TOP)$(ROOT)config/lib.cf
else
include $(TOP)$(ROOT)config/none.cf
endif