*** empty log message ***
[csql.git] / test / adapter / Select / Makefile
blob0fc12a1564f2953c7233afc795304b756c776008
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
22 INCL= -I$(CSQL_INSTALL_ROOT)/install/include -I../../../include
23 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlgw -lcsqlnw -lcsqlodbcadapter -lcsqlsqlnw -lcacheload -lcsql -lcsqlsql -lcsqlsqllog
26 TARGETS = \
27 test001 selecttest1na\
28 test002 selecttest2na\
29 test003 selecttest3na\
30 test004 selecttest4na\
31 test005 selecttest5na\
32 test006 selecttest6na\
33 test007 selecttest7na\
34 test008 selecttest8na\
35 test009 selecttest9na\
36 test010 selecttest10na\
37 test011 singleconnadapterna
39 ifeq ($(PlatForm), supported)
40 all: $(TARGETS)
41 else
42 all:
43 echo "CSQL is not supported on $(OSNAME) platform"
44 endif
46 test001: selecttest1.c common.h
47 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
48 selecttest1na: selecttest1.c common.h
49 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
50 test002:selecttest2.c common.h
51 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
52 selecttest2na: selecttest2.c common.h
53 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
54 test003:selecttest3.c common.h
55 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
56 selecttest3na: selecttest3.c common.h
57 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
58 test004:selecttest4.c common.h
59 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
60 selecttest4na: selecttest4.c common.h
61 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
62 test005:selecttest5.c common.h
63 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
64 selecttest5na: selecttest5.c common.h
65 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
66 test006:selecttest6.c common.h
67 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
68 selecttest6na: selecttest6.c common.h
69 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
70 test007:selecttest7.c common.h
71 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
72 selecttest7na: selecttest7.c common.h
73 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
74 test008:selecttest8.c common.h
75 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
76 selecttest8na: selecttest8.c common.h
77 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
78 test009:selecttest9.c common.h
79 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
80 selecttest9na: selecttest9.c common.h
81 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
82 test010:selecttest10.c common.h
83 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
84 selecttest10na: selecttest10.c common.h
85 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
86 test011:singleconnadapter.c common.h
87 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
88 singleconnadapterna: singleconnadapter.c common.h
89 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
91 clean:
92 rm -f *.o ${TARGETS}