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
)
13 SYSLIBS
= -rdynamic
-lrt
-lpthread
-lcrypt
17 echo
"CSQL is not supported on $(OSNAME) platform"
21 INCL
= -I
$(CSQL_INSTALL_ROOT
)/include
22 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsql
25 create createNoIndex drop \
26 insert1 insert100 insert1000 delete1 delete100 delete1000 deleteAll \
28 test025 test021 test022 test023 test024
31 ifeq ($(PlatForm
), supported
)
36 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
37 createNoIndex
: createNoIndex.c
38 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
40 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
42 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
43 insert1000
: insert1000.c
44 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
45 insert100
: insert100.c
46 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
48 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
49 delete1000
: delete1000.c
50 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
51 delete100
: delete100.c
52 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
53 deleteAll
: deleteAll.c
54 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
55 test010
: dbsizelimit.c
56 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
58 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
60 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
62 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
64 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
66 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)