mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 08:46:41 +01:00
def90185aa
Components now supported by default: Foundation {including internal PCRE lib} Util Net XML SQL SQL/ODBC SQL/SQLite samples/{all components supported} Components supported with additional 3rd party MinGW/MSYS libs: NetSSL w/OpenSSH Components unsupported at this time: testsuite: Fails to build due to TupleTest - needs slight code change MinGW can't deal with currently. Only thing causing failure. CppUnit: Unable to support this due to WIN32 version of this functionality relying on MFC which does not ship with MinGW/MSYS. --no-wstring support due libstdc++ - will require STLPort {support coming soon} :build/config/MinGW +Fixed compiler environment flags and switches +Linkage build supports: SHARED, STATIC, or BOTH +Fixed duplicate symbol/unresolved symbol during compile +Added PCRE build flag for internal library build/eliminate link errors +Disable support of UTF-8 by default, MinGW will require STLPort +Corrected system link libs for MinGW "dumb" linker :build/rules/global +Added MinGW environment deduction logic :configure +Fine tuned environment deduction recognizing MinGW as valid :Data/ODBC/Makefile +Fixed correct ODBC libs to link :Foundation/Makefile +Added logic for building correct subsystem dependency :Util/Makefile +Added logic for building correct subsystem dependency
42 lines
1.0 KiB
Makefile
42 lines
1.0 KiB
Makefile
#
|
|
# Makefile
|
|
#
|
|
# $Id: //poco/Main/Data/ODBC/Makefile#2 $
|
|
#
|
|
# Makefile for Poco ODBC
|
|
#
|
|
# For Unicode support, add following to COMMONFLAGS:
|
|
#
|
|
# -DUNICODE
|
|
#
|
|
# Unicode is supported only for UnixODBC
|
|
#
|
|
|
|
include $(POCO_BASE)/build/rules/global
|
|
|
|
ifeq ($(POCO_CONFIG),MinGW)
|
|
SYSLIBS += -lodbc32
|
|
else
|
|
ifeq (0, $(shell test -e /usr/lib/libodbc$(SHAREDLIBLINKEXT); echo $$?))
|
|
SYSLIBS += -lodbc -lodbcinst
|
|
COMMONFLAGS += -DPOCO_UNIXODBC
|
|
else
|
|
ifeq (0, $(shell test -e /usr/lib/libiodbc$(SHAREDLIBLINKEXT); echo $$?))
|
|
SYSLIBS += -liodbc -liodbcinst
|
|
COMMONFLAGS += -DPOCO_IODBC
|
|
else
|
|
$(error No ODBC library found. Please install unixODBC or iODBC and try again)
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
objects = Binder ConnectionHandle Connector EnvironmentHandle \
|
|
Extractor ODBCMetaColumn ODBCException ODBCStatementImpl \
|
|
Parameter Preparation SessionImpl TypeInfo Unicode Utility
|
|
|
|
target = PocoODBC
|
|
target_version = $(LIBVERSION)
|
|
target_libs = PocoData PocoFoundation
|
|
|
|
include $(POCO_BASE)/build/rules/lib
|