1 OSNAME
= $(shell uname
-s
)
4 ifeq ($(OSNAME
), SunOS
)
7 SYSLIBS
=-ldl
-lnsl
-lsocket
-lposix4
9 ifeq ($(OSNAME
), Linux
)
12 SYSLIBS
= -rdynamic
-lrt
-lpthread
-lcrypt
16 echo
"CSQL is not supported on $(OSNAME) platform"
20 INCL
= -I
$(CSQL_INSTALL_ROOT
)/include
21 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlsql
-lcsqlstorage
-lcsqlbase
-lcsqlsqllog
-lcsqlnw
-lcacheload
-lcsqlgw
-lcsqlodbcadapter
-lcsqlsqlnw
23 TARGETS
= sqlapiexample
25 ifeq ($(PlatForm
), supported
)
30 $(CPlus
) $(CPlusFlags
) $(INCL
) -c
-o
$@
$<
32 sqlapiexample
: sqlapiexample.o
33 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)