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
37 ifeq ($(PlatForm
), supported
)
42 $(CPlus
) $(CPlusFlags
) $(INCL
) -c
-o
$@
$<
44 test001
: selecttest1.o
45 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
47 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
49 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
51 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
53 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
55 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
57 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
59 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
61 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
62 test010
:selecttest10.o
63 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)