changes for libcsqlstorage and inclusion of libcsqlbase
[csql.git] / test / adapter / Connect / Makefile
blob1529781aaf9ad2d5de7ef64ba2f0abc77ec361d7
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)/install/include -I../../../include
24 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlgw -lcsqlnw -lcsqlodbcadapter -lcsqlsqlnw -lcsqlstorage -lcsqlbase -lcsqlsql -lcacheload -lcsqlsqllog
26 TARGETS = \
27 test001 conntest1na\
28 test002 conntest2na\
29 test003 conntest3na\
30 test004 conntest4na\
31 test005 conntest5na\
32 test007 conntest7na\
33 test010 conntest10na\
34 test011 conntest11na test012 test013
36 ifeq ($(PlatForm), supported)
37 all: $(TARGETS)
38 else
39 all:
40 echo "CSQL is not supported on $(OSNAME) platform"
41 endif
43 test001: conntest1.c common.h
44 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
45 conntest1na: conntest1.c common.h
46 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
47 test002:conntest2.c common.h
48 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
49 conntest2na: conntest2.c common.h
50 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
51 test003:conntest3.c common.h
52 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
53 conntest3na: conntest3.c common.h
54 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
55 test004:conntest4.c common.h
56 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
57 conntest4na: conntest4.c common.h
58 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
59 test005:conntest5.c common.h
60 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
61 conntest5na: conntest5.c common.h
62 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
63 test007:conntest7.c common.h
64 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
65 conntest7na: conntest7.c common.h
66 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
67 test010:conntest10.c common.h
68 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
69 conntest10na: conntest10.c common.h
70 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
71 test011:conntest11.c common.h
72 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
73 conntest11na: conntest11.c common.h
74 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
75 test012:conntest12.c common.h
76 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
77 test013:conntest13.c common.h
78 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
80 clean:
81 rm -f *.o ${TARGETS}