2 OSNAME
= $(shell uname
-s
)
5 ifeq ($(OSNAME
), SunOS
)
7 CPlusFlags
= -O2
-w
-mt
-xarch
=v8
8 SYSLIBS
=-ldl
-lnsl
-lsocket
-lposix4
10 ifeq ($(OSNAME
), Linux
)
13 SYSLIBS
= -rdynamic
-lrt
-lpthread
-lcrypt
17 echo
"CSQL is not supported on $(OSNAME) platform"
21 INCL
= -I
$(CSQL_INSTALL_ROOT
)/include -I..
/src
/sql
22 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-L..
-lcsql
-lcsqlsql
31 ifeq ($(PlatForm
), supported
)
36 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
38 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
41 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
43 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)