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
25 INCL
= -I
$(CSQL_INSTALL_ROOT
)/include -I..
/..
/include
26 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlodbc
-lcsqlsql
-lcsqlsqllog
-lcsql
-lcsqlnw
-lcsqlodbcadapter
30 ifeq ($(PlatForm
), supported
)
34 echo
"CSQL is not supported on $(OSNAME) platform"
38 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
41 rm -f
$(TARGETS
) *.class