poco/Data/ODBC/Makefile

52 lines
1.4 KiB
Makefile
Raw Normal View History

2007-05-12 14:41:03 +00:00
#
# Makefile
#
2008-01-22 02:05:04 +00:00
# $Id: //poco/Main/Data/ODBC/Makefile#2 $
2007-05-12 14:41:03 +00:00
#
# Makefile for Poco ODBC
#
# For Unicode support, add following to COMMONFLAGS:
#
# -DUNICODE
#
# Unicode is supported only for UnixODBC
#
2007-05-12 14:41:03 +00:00
include $(POCO_BASE)/build/rules/global
ifeq ($(POCO_CONFIG),MinGW)
# Lack of unixODBC or iODBC is not an error for MinGW platform since it uses Windows odbc32.lib
else
ifeq (0, $(shell test -e /usr/lib/libodbc$(SHAREDLIBLINKEXT); echo $$?))
2007-05-25 01:57:38 +00:00
SYSLIBS += -lodbc -lodbcinst
COMMONFLAGS += -DPOCO_UNIXODBC
else
2008-09-19 18:28:46 +00:00
ifeq (0, $(shell test -h /usr/lib/libodbc$(SHAREDLIBLINKEXT); echo $$?))
SYSLIBS += -lodbc -lodbcinst
COMMONFLAGS += -DPOCO_UNIXODBC
else
ifeq (0, $(shell test -e /usr/lib/libiodbc$(SHAREDLIBLINKEXT); echo $$?))
2007-05-12 14:41:03 +00:00
SYSLIBS += -liodbc -liodbcinst
COMMONFLAGS += -DPOCO_IODBC
2007-05-12 14:41:03 +00:00
else
2008-09-19 18:28:46 +00:00
ifeq (0, $(shell test -h /usr/lib/libiodbc$(SHAREDLIBLINKEXT); echo $$?))
SYSLIBS += -liodbc -liodbcinst
COMMONFLAGS += -DPOCO_IODBC
else
2007-05-25 01:57:38 +00:00
$(error No ODBC library found. Please install unixODBC or iODBC and try again)
2007-05-12 14:41:03 +00:00
endif
endif
endif
2008-09-19 18:28:46 +00:00
endif
endif
2007-05-12 14:41:03 +00:00
objects = Binder ConnectionHandle Connector EnvironmentHandle \
Extractor ODBCMetaColumn ODBCException ODBCStatementImpl \
Parameter Preparator SessionImpl TypeInfo Unicode Utility
2007-05-12 14:41:03 +00:00
target = PocoDataODBC
2007-05-12 14:41:03 +00:00
target_version = $(LIBVERSION)
target_libs = PocoData PocoFoundation
include $(POCO_BASE)/build/rules/lib