show table implemented partially
[csql.git] / test / sqlapi / Connect / Makefile
blob0bdaf4f66d5b408652e366c4643adb6218d179ad
1 OSNAME = $(shell uname -s)
2 PlatForm=supported
4 ifeq ($(OSNAME), SunOS)
5 CPlus = CC
6 CPlusFlags = -O2 -w -mt -xarch=v8
7 SYSLIBS=-ldl -lnsl -lsocket -lposix4
8 else
9 ifeq ($(OSNAME), Linux)
10 CPlus = g++
11 CPlusFlags = -g -w
12 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
13 else
14 PlatForm=notsupported
15 all:
16 echo "CSQL is not supported on $(OSNAME) platform"
17 endif
18 endif
20 INCL= -I$(CSQL_INSTALL_ROOT)/install/include -I../../../include
21 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlsql -lcsql -lcsqlsqllog -lcsqlnw -lcacheload -lcsqlsqlnw
23 TARGETS = \
24 test001 test001n\
25 test002 test002n\
26 test003 test003n\
27 test004 test004n\
28 test005 test005n\
29 test006 test006n\
30 test007 test007n\
31 test008 test008n\
32 test009 test009n\
33 test010 test010n\
34 test011 test011n
37 ifeq ($(PlatForm), supported)
38 all: $(TARGETS)
39 endif
41 test001:conntest1.c common.h
42 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
43 test001n:conntest1.c common.h
44 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
45 test002:conntest2.c common.h
46 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
47 test002n:conntest2.c common.h
48 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
49 test003:conntest3.c common.h
50 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
51 test003n:conntest3.c common.h
52 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
53 test004:conntest4.c common.h
54 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
55 test004n:conntest4.c common.h
56 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
57 test005:conntest5.c common.h
58 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
59 test005n:conntest5.c common.h
60 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
61 test006:conntest6.c common.h
62 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
63 test006n:conntest6.c common.h
64 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
65 test007:conntest7.c common.h
66 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
67 test007n:conntest7.c common.h
68 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
69 test008:conntest8.c common.h
70 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
71 test008n:conntest8.c common.h
72 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
73 test009:conntest9.c common.h
74 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
75 test009n:conntest9.c common.h
76 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
77 test010:conntest10.c common.h
78 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
79 test010n:conntest10.c common.h
80 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
81 test011:conntest11.c common.h
82 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
83 test011n:conntest11.c common.h
84 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
86 clean:
87 rm -f ${TARGETS}