2 OSNAME
= $(shell uname
-s
)
4 ifeq ($(OSNAME
), SunOS
)
6 CPlusFlags
= -O2
-w
$(COMPILER_FLAG
)
7 SYSLIBS
=-ldl
-lnsl
-lsocket
-lposix4
10 ifeq ($(OSNAME
), Linux
)
13 SYSLIBS
= -rdynamic
-lrt
-lpthread
-lcrypt
16 ifeq ($(OSNAME
), FreeBSD
)
19 SYSLIBS
= -rdynamic
-lrt
-lpthread
-lcrypt
24 INCL
= -I
$(CSQL_INSTALL_ROOT
)/include -I..
/..
/include
25 LIBS
= -L
/home
/prabatuty
/myroot
/lib
-L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlodbc
-lcsqlsql
-lcsqlsqllog
-lcsqlstorage
-lcsqlbase
-lcsqlnw
-lodbc
-lcsqlgw
-lcacheload
28 test001 test002 test003
30 ifeq ($(PlatForm
), supported
)
34 echo
"CSQL is not supported on $(OSNAME) platform"
39 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
41 $(CPlus
) -DHASH
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
43 $(CPlus
) -DTREE
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
46 rm -f
$(TARGETS
) *.class