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