test cases for trie index
[csql.git] / test / dbapi / Index / Makefile
blob7f9f3b32055548547ef02e7f1c6737305bc925ad
2 OSNAME = $(shell uname -s)
3 PlatForm=notsupported
4 ifeq ($(OSNAME), SunOS)
5 CPlus = CC
6 CPlusFlags = -O2 -w $(COMPILER_FLAG)
7 SYSLIBS=-ldl -lnsl -lsocket -lposix4
8 PlatForm=supported
9 endif
10 ifeq ($(OSNAME), Linux)
11 CPlus = g++
12 CPlusFlags = -g -w
13 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt -ldl
14 PlatForm=supported
15 endif
16 ifeq ($(OSNAME), FreeBSD)
17 CPlus = g++
18 CPlusFlags = -g -w
19 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt -ldl
20 PlatForm=supported
21 endif
24 INCL= -I$(CSQL_INSTALL_ROOT)/include -I../../../include
25 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsql
27 TARGETS = \
28 test001 \
29 test002 \
30 test004 \
31 test005 \
32 test006 test006a \
33 test007 test007a \
34 test008 test008a \
35 test009 test009a \
36 test010 test010a \
37 test011 test003 \
38 test012 test012a test013 \
39 test001a test002a test003a \
40 test004a test004b test004c \
41 test004d test004e test004f \
42 test004g test004h \
43 test005a test005b test005c \
44 test005d test005e test005f \
45 test005g test005h \
46 test001b test002b test003b \
47 test006b test007b test008b \
48 test009b test010b test012b
51 ifeq ($(PlatForm), supported)
52 all: $(TARGETS)
53 else
54 all:
55 echo "CSQL is not supported on $(OSNAME) platform"
56 endif
59 test001: uniqueindex1.c common.h
60 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
61 test001a: uniqueindex1.c common.h
62 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
63 test001b: uniqueindex1.c common.h
64 $(CPlus) $(CPlusFlags) -DTRIEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
65 test002: uniqueindex2.c common.h
66 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
67 test002a: uniqueindex2.c common.h
68 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
69 test002b: uniqueindex2.c common.h
70 $(CPlus) $(CPlusFlags) -DTRIEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
71 test003: uniqueindex3.c common.h
72 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
73 test003a: uniqueindex3.c common.h
74 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
75 test003b: uniqueindex3.c common.h
76 $(CPlus) $(CPlusFlags) -DTRIEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
77 test004: twoindex1.c
78 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
79 test004a: twoindex1.c
80 $(CPlus) $(CPlusFlags) -DF1TREE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
81 test004b: twoindex1.c
82 $(CPlus) $(CPlusFlags) -DF2TREE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
83 test004c: twoindex1.c
84 $(CPlus) $(CPlusFlags) -DF1TREE -DF2TREE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
85 test004d: twoindex1.c
86 $(CPlus) $(CPlusFlags) -DF1TRIE -DF2TREE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
87 test004e: twoindex1.c
88 $(CPlus) $(CPlusFlags) -DF1TREE -DF2TRIE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
89 test004f: twoindex1.c
90 $(CPlus) $(CPlusFlags) -DF1TRIE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
91 test004g: twoindex1.c
92 $(CPlus) $(CPlusFlags) -DF2TRIE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
93 test004h: twoindex1.c
94 $(CPlus) $(CPlusFlags) -DF1TRIE -DF2TRIE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
95 test005: twoindex2.c
96 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
97 test005a: twoindex2.c
98 $(CPlus) $(CPlusFlags) -DF1TREE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
99 test005b: twoindex2.c
100 $(CPlus) $(CPlusFlags) -DF2TREE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
101 test005c: twoindex2.c
102 $(CPlus) $(CPlusFlags) -DF1TREE -DF2TREE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
103 test005d: twoindex2.c
104 $(CPlus) $(CPlusFlags) -DF1TRIE -DF2TREE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
105 test005e: twoindex2.c
106 $(CPlus) $(CPlusFlags) -DF1TREE -DF2TRIE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
107 test005f: twoindex2.c
108 $(CPlus) $(CPlusFlags) -DF1TRIE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
109 test005g: twoindex2.c
110 $(CPlus) $(CPlusFlags) -DF2TRIE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
111 test005h: twoindex2.c
112 $(CPlus) $(CPlusFlags) -DF1TRIE -DF2TRIE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
113 test006: dupindex1.c
114 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
115 test006a: dupindex1.c
116 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
117 test006b: dupindex1.c
118 $(CPlus) $(CPlusFlags) -DTRIEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
119 test007: dupindex2.c
120 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
121 test007a: dupindex2.c
122 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
123 test007b: dupindex2.c
124 $(CPlus) $(CPlusFlags) -DTRIEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
125 test008: compositekeyindex1.c
126 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
127 test008a: compositekeyindex1.c
128 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
129 test008b: compositekeyindex1.c
130 $(CPlus) $(CPlusFlags) -DTRIEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
131 test009: createindexnotexist.c
132 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
133 test009a: createindexnotexist.c
134 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
135 test009b: createindexnotexist.c
136 $(CPlus) $(CPlusFlags) -DTRIEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
137 test010: createindexnofld.c
138 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
139 test010a: createindexnofld.c
140 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
141 test010b: createindexnofld.c
142 $(CPlus) $(CPlusFlags) -DTRIEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
143 test011: primarynonunique.c
144 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
145 test012: index1.c common.h
146 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
147 test012a: index1.c common.h
148 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
149 test012b: index1.c common.h
150 $(CPlus) $(CPlusFlags) -DTRIEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
151 test013:multiplecompositeindex1.c
152 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
153 clean:
154 rm -f $(TARGETS)