* config/linux/sunpro.mk
+ Setting CXX for linux/sunpro.mk to make it build .cpp files
without forcing cpp mode explicitly. (suncc seems to do nothing
with .cpp input files.)
Same fix for sunos/sunpro?
* config/rules.mk
+ Added option to override C++ compiler tool name with
$(CXX) variable.
* external/sqlite3/Makefile
* external/libpng/Makefile
* Formatting/cleanup.
59 lines
1.2 KiB
Makefile
59 lines
1.2 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
ROOT := ../../
|
|
|
|
include $(TOP)$(ROOT)config/global.mk
|
|
|
|
LIBNAME := sqlite3
|
|
|
|
HB_BUILD_WARN := no
|
|
HB_BUILD_MODE := c
|
|
|
|
C_SOURCES := \
|
|
sqlite3.c \
|
|
|
|
ifeq ($(HB_WITH_SQLITE3),)
|
|
ifeq ($(HB_PLATFORM),win)
|
|
HB_WITH_SQLITE3 := yes
|
|
endif
|
|
ifeq ($(HB_PLATFORM),wce)
|
|
HB_WITH_SQLITE3 := yes
|
|
endif
|
|
ifeq ($(HB_PLATFORM),os2)
|
|
HB_WITH_SQLITE3 := yes
|
|
endif
|
|
ifeq ($(HB_PLATFORM),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_PLAT)-$(HB_COMPILER),dos-watcom)
|
|
HB_WITH_SQLITE3 := no
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(HB_WITH_SQLITE3),yes)
|
|
|
|
ifeq ($(HB_PLATFORM),wce)
|
|
HB_CFLAGS += -D_WIN32_WCE
|
|
endif
|
|
ifeq ($(HB_PLATFORM),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
|
|
|
|
include $(TOP)$(ROOT)config/lib.mk
|
|
else
|
|
HB_SKIP_REASON := not supported or disabled
|
|
include $(TOP)$(ROOT)config/none.mk
|
|
endif
|