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
-lcsql
-lcsqlsqllog
-lcsqlnw
-lcsqlsqlnw
-lcsqlsqlnw
27 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlsql
-lcsql
-lcsqlsqllog
-lcsqlnw
-lcacheload
-lcsqlsqlnw
-lcsqlgw
-lcsqlsqlnw
-lcsqlodbcadapter
44 ifeq ($(PlatForm
), supported
)
48 echo
"CSQL is not supported on $(OSNAME) platform"
51 test001
:conntest1.c common.h
52 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
53 test001n
:conntest1.c common.h
54 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
55 test002
:conntest2.c common.h
56 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
57 test002n
:conntest2.c common.h
58 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
59 test003
:conntest3.c common.h
60 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
61 test003n
:conntest3.c common.h
62 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
63 test004
:conntest4.c common.h
64 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
65 test004n
:conntest4.c common.h
66 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
67 test005
:conntest5.c common.h
68 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
69 test005n
:conntest5.c common.h
70 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
71 test006
:conntest6.c common.h
72 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
73 test006n
:conntest6.c common.h
74 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
75 test007
:conntest7.c common.h
76 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
77 test007n
:conntest7.c common.h
78 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
79 test008
:conntest8.c common.h
80 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
81 test008n
:conntest8.c common.h
82 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
83 test009
:conntest9.c common.h
84 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
85 test009n
:conntest9.c common.h
86 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
87 test010
:conntest10.c common.h
88 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
89 test010n
:conntest10.c common.h
90 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
91 test011
:conntest11.c common.h
92 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
93 test011n
:conntest11.c common.h
94 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)