trie index tests addition
[csql.git] / test / dbapi / DataType / Makefile
blobc195b7021d31d3439d84f2d3131573ebfc2ab47b
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 test002 test003 test004 test005 test006 test007 \
29 test008 test009 test010 test011 test012 test013 test014 \
30 test015 test016 test017 test018 test019 test020 test021 \
31 test022 test002a test004a test006a test008a test010a \
32 test012a test014a test016a test018a test020a test022a test002b \
33 test004b test006b test016b
35 ifeq ($(PlatForm), supported)
36 all: $(TARGETS)
37 else
38 all:
39 echo "CSQL is not supported on $(OSNAME) platform"
40 endif
43 test001: inttest.c
44 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
45 test002: inttest.c
46 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
47 test002a: inttest.c
48 $(CPlus) -DWITHTREEINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
49 test002b: inttest.c
50 $(CPlus) -DWITHTRIEINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
51 test003: longtest.c
52 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
53 test004: longtest.c
54 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
55 test004a: longtest.c
56 $(CPlus) -DWITHTREEINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
57 test004b: longtest.c
58 $(CPlus) -DWITHTRIEINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
59 test005: longlongtest.c
60 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
61 test006: longlongtest.c
62 $(CPlus) $(CPlusFlags) -DWITHINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
63 test006a: longlongtest.c
64 $(CPlus) $(CPlusFlags) -DWITHTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
65 test006b: longlongtest.c
66 $(CPlus) $(CPlusFlags) -DWITHTRIEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
67 test007: shorttest.c
68 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
69 test008: shorttest.c
70 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
71 test008a: shorttest.c
72 $(CPlus) -DWITHTREEINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
73 test009: byteinttest.c
74 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
75 test010: byteinttest.c
76 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
77 test010a: byteinttest.c
78 $(CPlus) -DWITHTREEINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
79 test011: floattest.c
80 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
81 test012: floattest.c
82 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
83 test012a: floattest.c
84 $(CPlus) -DWITHTREEINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
85 test013: doubletest.c
86 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
87 test014: doubletest.c
88 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
89 test014a: doubletest.c
90 $(CPlus) -DWITHTREEINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
91 test015: chartest.c
92 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
93 test016: chartest.c
94 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
95 test016a: chartest.c
96 $(CPlus) -DWITHTREEINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
97 test016b: chartest.c
98 $(CPlus) -DWITHTRIEINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
99 test017: datetest.c
100 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
101 test018: datetest.c
102 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
103 test018a: datetest.c
104 $(CPlus) -DWITHTREEINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
105 test019: timetest.c
106 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
107 test020: timetest.c
108 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
109 test020a: timetest.c
110 $(CPlus) -DWITHTREEINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
111 test021: timestamptest.c
112 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
113 test022: timestamptest.c
114 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
115 test022a: timestamptest.c
116 $(CPlus) -DWITHTREEINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
118 clean:
119 rm -f $(TARGETS)