1 OSNAME
= $(shell uname
-s
)
3 ifeq ($(OSNAME
), SunOS
)
5 CPlusFlags
= -O2
-w
$(COMPILER_FLAG
)
6 SYSLIBS
=-ldl
-lnsl
-lsocket
-lposix4
9 ifeq ($(OSNAME
), Linux
)
12 SYSLIBS
= -rdynamic
-lrt
-lpthread
-lcrypt
15 ifeq ($(OSNAME
), FreeBSD
)
18 SYSLIBS
= -rdynamic
-lrt
-lpthread
-lcrypt
23 INCL
= -I
$(CSQL_INSTALL_ROOT
)/install/include -I..
/..
/..
/include
24 ifeq ($(BUILDTYPE
), MMDB
)
25 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlsql
-lcsqlstorage
-lcsqlbase
-lcsqlsqllog
-lcsqlnw
-lcsqlsqlnw
27 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlsql
-lcsqlstorage
-lcsqlbase
-lcsqlsqllog
-lcsqlnw
-lcacheload
-lcsqlsqlnw
-lcsqlgw
-lcsqlodbcadapter
48 ifeq ($(PlatForm
), supported
)
52 echo
"CSQL is not supported on $(OSNAME) platform"
55 test001
: selecttest1.c common.h
56 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
57 test001n
: selecttest1.c common.h
58 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
59 test002
:selecttest2.c common.h
60 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
61 test002n
: selecttest2.c common.h
62 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
63 test003
:selecttest3.c common.h
64 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
65 test003n
: selecttest3.c common.h
66 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
67 test004
:selecttest4.c common.h
68 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
69 test004n
: selecttest4.c common.h
70 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
71 test005
:selecttest5.c common.h
72 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
73 test005n
: selecttest5.c common.h
74 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
75 test006
:selecttest6.c common.h
76 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
77 test006n
: selecttest6.c common.h
78 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
79 test007
:selecttest7.c common.h
80 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
81 test007n
: selecttest7.c common.h
82 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
84 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
85 test008n
: selecttest8.c common.h
86 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
87 test009
:selecttest9.c common.h
88 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
89 test009n
: selecttest9.c common.h
90 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
91 test010
:selecttest10.c common.h
92 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
93 test010n
: selecttest10.c common.h
94 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
95 test011
:selecttest11.c common.h
96 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
97 test011n
:selecttest11.c common.h
98 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
99 test012
:selecttest12.c common.h
100 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
101 test012n
:selecttest12.c common.h
102 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
103 test013
:selecttest13.c common.h
104 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
105 test013n
:selecttest13.c common.h
106 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
107 test014
:aggseltest14.c common.h
108 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
109 test015
:selecttest14.c common.h
110 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
111 test016
:singleconn.c common.h
112 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
113 test016n
:singleconn.c common.h
114 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)