summaryrefslogtreecommitdiff
path: root/ndb/test/odbc/client/Makefile
blob: 4b962f5b65af247c27b2f36ee5f19146437b5e84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
include .defs.mk

TYPE :=		odbcclient
#TYPE :=	odbcdriver

BIN_TARGET :=	testOdbcClient
#BIN_TARGET :=	testodbc2


# Source files of non-templated classes (.C files)
SOURCES =	main.cpp \
		SQLFetchTest.cpp \
		SQLDisconnectTest.cpp \
		SQLTablesTest.cpp \
		SQLGetInfoTest.cpp \
		SQLGetTypeInfoTest.cpp \
		SQLGetFunctionsTest.cpp \
		SQLGetDataTest.cpp \
		SQLCancelTest.cpp \
		SQLTransactTest.cpp \
		SQLGetCursorNameTest.cpp \
		SQLSetCursorNameTest.cpp \
		SQLRowCountTest.cpp \
		SQLNumResultColsTest.cpp \
		SQLDescribeColTest.cpp \
		SQLExecDirectTest.cpp \
		SQLColAttributeTest.cpp \
		SQLColAttributeTest1.cpp \
		SQLColAttributeTest2.cpp \
		SQLColAttributeTest3.cpp \
		SQLBindColTest.cpp \
		SQLDriverConnectTest.cpp \
		SQLPrepareTest.cpp \
		SQLGetDiagRecSimpleTest.cpp \
		SQLConnectTest.cpp

XSOURCES =	testodbc2.cpp
XSOURCES = \
		main.cpp \
		SQLDriverConnectTest.cpp \
		SQLPrepareTest.cpp \
		SQLMoreResultsTest.cpp \
		SQLGetStmtAttrTest.cpp \
		SQLGetEnvAttrTest.cpp \
		SQLGetConnectAttrTest.cpp \
		SQLExecuteTest.cpp \
		SQLExecDirectTest.cpp \
		SQLDisconnectTest.cpp \
		SQLCloseCursorTest.cpp \
		SQLCancelTest.cpp \
		SQLBindColTest.cpp \
		SQLDescribeColTest.cpp \
		SQLGetTypeInfoTest.cpp \
		SQLGetFunctionsTest.cpp \
		SQLNumResultColsTest.cpp \
		SQLSetDescFieldTest.cpp \
		SQLGetDescRecTest.cpp \
		SQLEndTranTest.cpp \
		SQLGetInfoTest.cpp \
		SQLConnectTest.cpp \
		SQLAllocHandleTest.cpp \
		SQLAllocEnvTest.cpp \
		SQLRowCountTest.cpp \
		SQLFetchScrollTest.cpp \
		SQLFetchTest.cpp \
		SQLGetDescFieldTest.cpp \
		SQLSetDescRecTest.cpp \
		SQLFreeHandleTest.cpp

ifeq ($(TYPE),odbcdriver)
LIBS_SPEC += \
		-lodbcdriver_pic \
		-lodbchandles_pic \
		-lodbccodegen_pic \
		-lodbccompiler_pic \
		-lodbcexecutor_pic \
		-lodbccommon_pic \
		-lodbcdictionary_pic \
		-lNDBT \
		-lportlib
endif

ifeq ($(TYPE),odbcclient)
LIBS_SPEC += \
		-lportlib \
		-lNDBT 
endif

CCFLAGS_LOC += 	-I/usr/local/include \
	        -I$(NDB_TOP)/include/ndbapi \
		-I$(NDB_TOP)/test/include

include $(NDB_TOP)/Epilogue.mk
#LIBS_LOC +=	-L/usr/local/opt/iODBC/lib
#LIBS_SPEC =	-liodbc -lNDBT -lportlib