3 OSNAME
= $(shell uname
-s
)
6 ifeq ($(OSNAME
), SunOS
)
8 CPlusFlags
= -O2
-w
-mt
-xarch
=v8
9 SYSLIBS
=-ldl
-lnsl
-lsocket
-lposix4
11 ifeq ($(OSNAME
), Linux
)
14 SYSLIBS
= -rdynamic
-lrt
-lpthread
-lcrypt
18 echo
"CSQL is not supported on $(OSNAME) platform"
22 INCL
= -I
$(CSQL_INSTALL_ROOT
)/include
23 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsql
37 ifeq ($(PlatForm
), supported
)
41 test001
: inserttest1.c
42 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
43 test002
: inserttest2.c
44 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
46 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
47 test004
: insertnulltest1.c
48 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
49 test005
: insertnulltest2.c
50 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
51 test006
: insertnulltest3.c
52 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
54 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
56 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
58 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)