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
27 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlsql
-lcsql
-lcsqlsqllog
-lcsqlnw
-lcacheload
-lcsqlsqlnw
-lcsqlgw
-lcsqlodbcadapter
34 ifeq ($(PlatForm
), supported
)
38 echo
"CSQL is not supported on $(OSNAME) platform"
41 test001
: paratest1.c common.h
42 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
43 test001n
: paratest1.c common.h
44 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
45 test002
: paratest2.c common.h
46 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
47 test002n
: paratest2.c common.h
48 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)