2 OSNAME
= $(shell uname
-s
)
4 ifeq ($(OSNAME
), SunOS
)
6 CPlusFlags
= -O2
-w
$(COMPILER_FLAG
)
7 SYSLIBS
=-ldl
-lnsl
-lsocket
-lposix4
10 ifeq ($(OSNAME
), Linux
)
13 SYSLIBS
= -rdynamic
-lrt
-lpthread
-lcrypt
-ldl
16 ifeq ($(OSNAME
), FreeBSD
)
19 SYSLIBS
= -rdynamic
-lrt
-lpthread
-lcrypt
-ldl
24 INCL
= -I
$(CSQL_INSTALL_ROOT
)/include -I..
/..
/..
/include
25 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlstorage
-lcsqlbase
38 test012 test012a test013 \
39 test001a test002a test003a \
40 test004a test004b test004c \
41 test004d test004e test004f \
43 test005a test005b test005c \
44 test005d test005e test005f \
46 test001b test002b test003b \
47 test006b test007b test008b \
48 test009b test010b test012b
51 ifeq ($(PlatForm
), supported
)
55 echo
"CSQL is not supported on $(OSNAME) platform"
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
)
78 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
80 $(CPlus
) $(CPlusFlags
) -DF1TREE
-o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
82 $(CPlus
) $(CPlusFlags
) -DF2TREE
-o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
84 $(CPlus
) $(CPlusFlags
) -DF1TREE
-DF2TREE
-o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
86 $(CPlus
) $(CPlusFlags
) -DF1TRIE
-DF2TREE
-o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
88 $(CPlus
) $(CPlusFlags
) -DF1TREE
-DF2TRIE
-o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
90 $(CPlus
) $(CPlusFlags
) -DF1TRIE
-o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
92 $(CPlus
) $(CPlusFlags
) -DF2TRIE
-o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
94 $(CPlus
) $(CPlusFlags
) -DF1TRIE
-DF2TRIE
-o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
96 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
98 $(CPlus
) $(CPlusFlags
) -DF1TREE
-o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
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
)
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
)
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
)