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
-lcsqlsqlnw
36 ifeq ($(PlatForm
), supported
)
41 $(CPlus
) $(CPlusFlags
) $(INCL
) -c
-o
$@
$<
44 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
46 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
48 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
50 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
52 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
54 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
56 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
58 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
60 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
62 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
64 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)