mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
277101a054
* testsuite/Makefile - Replaced .so suffix in ifeq tests with $(SHAREDLIBLINKEXT) instead since MacOS uses .dylib.
38 lines
963 B
Makefile
38 lines
963 B
Makefile
#
|
|
# Makefile
|
|
#
|
|
# $Id: //poco/Main/Data/ODBC/testsuite/Makefile#1 $
|
|
#
|
|
# Makefile for Poco SQLite testsuite
|
|
#
|
|
# For Unicode support, add following to COMMONFLAGS:
|
|
#
|
|
# -DUNICODE
|
|
#
|
|
# Unicode is supported only for UnixODBC
|
|
#
|
|
|
|
include $(POCO_BASE)/build/rules/global
|
|
|
|
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
|
|
|
|
objects = ODBCTestSuite Driver \
|
|
ODBCDB2Test ODBCMySQLTest ODBCOracleTest ODBCPostgreSQLTest \
|
|
ODBCSQLiteTest ODBCSQLServerTest ODBCTest SQLExecutor
|
|
|
|
target = testrunner
|
|
target_version = 1
|
|
target_libs = PocoODBC PocoData PocoFoundation CppUnit
|
|
|
|
include $(POCO_BASE)/build/rules/exec
|