windows fixes for test directory
[csql.git] / test / dbapi / Index / Makefile
blob16234734c706c8420a95c66c81831e316f72b660
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 test005a test005b test005c
44 ifeq ($(PlatForm), supported)
45 all: $(TARGETS)
46 else
47 all:
48 echo "CSQL is not supported on $(OSNAME) platform"
49 endif
52 test001: uniqueindex1.c common.h
53 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
54 test001a: uniqueindex1.c common.h
55 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
56 test002: uniqueindex2.c common.h
57 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
58 test002a: uniqueindex2.c common.h
59 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
60 test003: uniqueindex3.c common.h
61 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
62 test003a: uniqueindex3.c common.h
63 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
64 test004: twoindex1.c
65 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
66 test004a: twoindex1.c
67 $(CPlus) $(CPlusFlags) -DF1TREE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
68 test004b: twoindex1.c
69 $(CPlus) $(CPlusFlags) -DF2TREE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
70 test004c: twoindex1.c
71 $(CPlus) $(CPlusFlags) -DF1TREE -DF2TREE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
72 test005: twoindex2.c
73 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
74 test005a: twoindex2.c
75 $(CPlus) $(CPlusFlags) -DF1TREE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
76 test005b: twoindex2.c
77 $(CPlus) $(CPlusFlags) -DF2TREE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
78 test005c: twoindex2.c
79 $(CPlus) $(CPlusFlags) -DF1TREE -DF2TREE -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
80 test006: dupindex1.c
81 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
82 test006a: dupindex1.c
83 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
84 test007: dupindex2.c
85 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
86 test007a: dupindex2.c
87 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
88 test008: compositekeyindex1.c
89 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
90 test008a: compositekeyindex1.c
91 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
92 test009: createindexnotexist.c
93 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
94 test009a: createindexnotexist.c
95 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
96 test010: createindexnofld.c
97 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
98 test010a: createindexnofld.c
99 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
100 test011: primarynonunique.c
101 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
102 test012: index1.c common.h
103 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
104 test012a: index1.c common.h
105 $(CPlus) $(CPlusFlags) -DTREEINDEX -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
106 test013:multiplecompositeindex1.c
107 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
108 clean:
109 rm -f $(TARGETS)