adding test scripts
[csql.git] / test / sqlapi / Csql / Isolation / Makefile
blob082d710b4a1525d978af4b868b37bc041040abc9
1 OSNAME = $(shell uname -s)
2 PlatForm=notsupported
3 ifeq ($(OSNAME), SunOS)
4 CPlus = CC
5 CPlusFlags = -O2 -w $(COMPILER_FLAG)
6 SYSLIBS=-ldl -lnsl -lsocket -lposix4
7 PlatForm=supported
8 endif
9 ifeq ($(OSNAME), Linux)
10 CPlus = g++
11 CPlusFlags = -g -w
12 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
13 PlatForm=supported
14 endif
15 ifeq ($(OSNAME), FreeBSD)
16 CPlus = g++
17 CPlusFlags = -g -w
18 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
19 PlatForm=supported
20 endif
23 INCL= -I$(CSQL_INSTALL_ROOT)/include -I../../../../include
24 ifeq ($(BUILDTYPE), MMDB)
25 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlsql -lcsql -lcsqlsqllog -lcsqlnw -lcsqlsqlnw -lcsqlsqlnw
26 else
27 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlsql -lcsql -lcsqlsqllog -lcsqlnw -lcacheload -lcsqlsqlnw -lcsqlgw -lcsqlsqlnw -lcsqlodbcadapter
28 endif
30 TARGETS = \
31 test001 test002 test003 test004 test005\
32 test006 test007 test008 test009 test010\
33 test011 test012 test013 test014 test015\
34 test016 test017 test018 test019 test020\
35 test021 test022 test023 test024 test025\
36 test026 test027 test028 test029 test030\
38 ifeq ($(PlatForm), supported)
39 all: $(TARGETS)
40 else
41 all:
42 echo "CSQL is not supported on $(OSNAME) platform"
43 endif
45 test001:isotest1.c common.h
46 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
47 test002:isotest2.c common.h
48 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
49 test003:isotest3.c common.h
50 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
51 test004:isotest4.c common.h
52 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
53 test005:isotest5.c common.h
54 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
55 test006:isotest6.c common.h
56 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
57 test007:isotest7.c common.h
58 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
59 test008:isotest8.c common.h
60 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
61 test009:isotest9.c common.h
62 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
63 test010:isotest10.c common.h
64 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
65 test011:isotest1.c common.h
66 $(CPlus) -DRDUNCOM $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
67 test012:isotest2.c common.h
68 $(CPlus) -DRDUNCOM $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
69 test013:isotest3.c common.h
70 $(CPlus) -DRDUNCOM $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
71 test014:isotest4.c common.h
72 $(CPlus) -DRDUNCOM $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
73 test015:isotest5.c common.h
74 $(CPlus) -DRDUNCOM $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
75 test016:isotest6.c common.h
76 $(CPlus) -DRDUNCOM $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
77 test017:isotest7.c common.h
78 $(CPlus) -DRDUNCOM $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
79 test018:isotest8.c common.h
80 $(CPlus) -DRDUNCOM $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
81 test019:isotest9.c common.h
82 $(CPlus) -DRDUNCOM $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
83 test020:isotest10.c common.h
84 $(CPlus) -DRDUNCOM $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
85 test021:isotest1.c common.h
86 $(CPlus) -DRDRPT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
87 test022:isotest2.c common.h
88 $(CPlus) -DRDRPT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
89 test023:isotest3.c common.h
90 $(CPlus) -DRDRPT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
91 test024:isotest4.c common.h
92 $(CPlus) -DRDRPT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
93 test025:isotest5.c common.h
94 $(CPlus) -DRDRPT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
95 test026:isotest6.c common.h
96 $(CPlus) -DRDRPT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
97 test027:isotest7.c common.h
98 $(CPlus) -DRDRPT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
99 test028:isotest8.c common.h
100 $(CPlus) -DRDRPT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
101 test029:isotest9.c common.h
102 $(CPlus) -DRDRPT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
103 test030:isotest10.c common.h
104 $(CPlus) -DRDRPT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
106 clean:
107 rm -f $(TARGETS)