1 OSNAME
= $(shell uname
-s
)
4 ifeq ($(OSNAME
), SunOS
)
6 CPlusFlags
= -O2
-w
-mt
-xarch
=v8
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
)/install/include -I..
/..
/..
/include
21 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlsql
-lcsql
-lcsqlsqllog
-lcsqlnw
-lcacheload
35 ifeq ($(PlatForm
), supported
)
40 $(CPlus
) $(CPlusFlags
) $(INCL
) -c
-o
$@
$<
43 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) -lcsqlsql
-lcsqlsqllog
-lcsqlodbcadapter
-lcsql
-lcsqlnw
-lodbc
-lcsqlgw
$(SYSLIBS
)
45 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) -lcsqlsql
-lcsqlsqllog
-lcsqlodbcadapter
-lcsql
-lcsqlnw
-lodbc
-lcsqlgw
$(SYSLIBS
)
47 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) -lcsqlsql
-lcsqlsqllog
-lcsqlodbcadapter
-lcsql
-lcsqlnw
-lodbc
-lcsqlgw
$(SYSLIBS
)
49 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) -lcsqlsql
-lcsqlsqllog
-lcsqlodbcadapter
-lcsql
-lcsqlnw
-lodbc
-lcsqlgw
$(SYSLIBS
)
50 test100
:paratest100.o
51 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) -lcsqlsql
-lcsqlsqllog
-lcsqlodbcadapter
-lcsql
-lcsqlnw
-lodbc
-lcsqlgw
$(SYSLIBS
)