start only if sql server if turned on in csql.conf file
[csql.git] / test / dbapi / Connection / Makefile
blobaa3a3a477be909c146c382d17d0aef4fa3ef8ecf
2 OSNAME = $(shell uname -s)
3 PlatForm=supported
5 ifeq ($(OSNAME), SunOS)
6 CPlus = CC
7 CPlusFlags = -O2 -w -mt -xarch=v8
8 SYSLIBS=-ldl -lnsl -lsocket -lposix4
9 else
10 ifeq ($(OSNAME), Linux)
11 CPlus = g++
12 CPlusFlags = -g -w
13 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
14 else
15 PlatForm=notsupported
16 all:
17 echo "CSQL is not supported on $(OSNAME) platform"
18 endif
19 endif
21 INCL= -I$(CSQL_INSTALL_ROOT)/include
22 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsql
24 TARGETS = \
25 test001 test003 test004 test005 test006 test007 test008 \
26 test009 test010 test011 test012 test013 test014 test015 test016 \
27 test017 \
28 test051 test052 test053 test054 test055 test056 test057 test058 \
29 test059 test060 \
30 test061 test062 test063 test064 test065 test066 test067 test068 \
31 test069 test070 \
32 test071 test072 test073 test074 test075 test076 test077 test078 \
33 test079 test080 \
34 test081 test082 test083 test084 test085 test086 test087 test088 \
35 test089 test090 \
36 test101 test102 \
37 serverOff
40 ifeq ($(PlatForm), supported)
41 all: $(TARGETS)
42 endif
44 test001: conntest1.c
45 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
46 serverOff: conntest2.c
47 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
48 test003: conntest3.c
49 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
50 test004: conntest4.c
51 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
52 test005: conntest5.c
53 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
54 test006: conntest6.c
55 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
56 test007: conntest7.c
57 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
58 test008: conntest8.c
59 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
60 test009: conntest9.c
61 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
62 test010: conntest10.c
63 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
64 test011: conntest11.c
65 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
66 test012: conntest12.c
67 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
68 test013: conntest13.c
69 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
70 test014: conntest14.c
71 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
72 test015: conntest15.c
73 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
74 test016: conntest16.c
75 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
76 test017: conntest17.c
77 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
78 test051: isotest1.c common.h
79 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
80 test052: isotest2.c common.h
81 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
82 test053: isotest3.c common.h
83 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
84 test054: isotest4.c common.h
85 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
86 test055: isotest5.c common.h
87 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
88 test056: isotest6.c common.h
89 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
90 test057: isotest7.c common.h
91 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
92 test058: isotest8.c common.h
93 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
94 test059: isotest9.c common.h
95 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
96 test060: isotest10.c common.h
97 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
98 test061: isotest1.c common.h
99 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
100 test062: isotest2.c common.h
101 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
102 test063: isotest3.c common.h
103 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
104 test064: isotest4.c common.h
105 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
106 test065: isotest5.c common.h
107 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
108 test066: isotest6.c common.h
109 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
110 test067: isotest7.c common.h
111 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
112 test068: isotest8.c common.h
113 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
114 test069: isotest9.c common.h
115 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
116 test070: isotest10.c common.h
117 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
118 test071: isotest11.c common.h
119 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
120 test072: isotest12.c common.h
121 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
122 test073: isotest13.c common.h
123 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
124 test074: isotest14.c common.h
125 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
126 test075: isotest15.c common.h
127 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
128 test076: isotest16.c common.h
129 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
130 test077: isotest17.c common.h
131 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
132 test078: isotest18.c common.h
133 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
134 test079: isotest19.c common.h
135 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
136 test080: isotest20.c common.h
137 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
138 test081: isotest21.c common.h
139 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
140 test082: isotest22.c common.h
141 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
142 test083: isotest23.c common.h
143 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
144 test084: isotest24.c common.h
145 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
146 test085: isotest25.c common.h
147 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
148 test086: isotest26.c common.h
149 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
150 test087: isotest27.c common.h
151 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
152 test088: isotest28.c common.h
153 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
154 test089: isotest29.c common.h
155 $(CPlus) -DDEFAULT $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
156 test090: isotest30.c common.h
157 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
158 test101: threadtest1.c
159 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
160 test102: threadtest2.c
161 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
163 clean:
164 rm -f $(TARGETS)