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
)/include
21 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsql
24 dbapiexample insert update delete
26 ifeq ($(PlatForm
), supported
)
31 $(CPlus
) $(CPlusFlags
) $(INCL
) -c
-o
$@
$<
33 dbapiexample
: dbapiexample.o
34 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
35 insert
: manDBAPIinsert.o
36 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
37 update
: manDBAPIupdate.o
38 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)
39 delete
: manDBAPIdelete.o
40 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(LIBS
) $(SYSLIBS
)