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
)/include -I..
/..
/..
/include
24 ifeq ($(BUILDTYPE
), MMDB
)
25 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlodbc
-lcsqlnw
-lcsqlsqlnw
-lcsql
-lcsqlsql
-lcsqlsqllog
27 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlodbc
-lcacheload
-lcsqlgw
-lcsqlnw
-lcsqlodbcadapter
-lcsqlsqlnw
-lcacheload
-lcsql
-lcsqlsql
-lcsqlsqllog
31 ifeq ($(BUILDTYPE
), MMDB
)
32 TARGETS
= test001 test002 \
35 TARGETS
= test001 test002 \
39 ifeq ($(PlatForm
), supported
)
43 echo
"CSQL is not supported on $(OSNAME) platform"
47 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
48 test001nw
: transact1nw.c
49 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
52 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
53 test002nw
: transact2nw.c
54 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)