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
)
12 CPlusFlags
= -g
-rdynamic
13 SYSLIBS
= -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
23 #LIBS= -L$(CSQL_INSTALL_ROOT)/lib -L.. -lcsql
34 ifeq ($(PlatForm
), supported
)
39 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
41 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
43 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
45 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
48 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
50 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)