changes for libcsqlstorage and inclusion of libcsqlbase
[csql.git] / test / dbapi / DatabaseManager / Makefile
blob71c7381fd8e16755c298052a9a564361aef22090
1 OSNAME = $(shell uname -s)
2 PlatForm=notsupported
3 ifeq ($(OSNAME), SunOS)
4 CPlus = CC
5 CPlusFlags = -O2 -w $(COMPILER_FLAG)
6 SYSLIBS=-ldl -lnsl -lsocket -lposix4 -ldl
7 PlatForm=supported
8 endif
9 ifeq ($(OSNAME), Linux)
10 CPlus = g++
11 CPlusFlags = -g -w
12 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt -ldl
13 PlatForm=supported
14 endif
15 ifeq ($(OSNAME), FreeBSD)
16 CPlus = g++
17 CPlusFlags = -g -w
18 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt -ldl
19 PlatForm=supported
20 endif
23 INCL= -I$(CSQL_INSTALL_ROOT)/include -I../../../include
24 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlstorage -lcsqlbase
26 TARGETS = \
27 test001
29 ifeq ($(PlatForm), supported)
30 all: $(TARGETS)
31 else
32 all:
33 echo "CSQL is not supported on $(OSNAME) platform"
34 endif
36 test001: getdbmanagertest.c
37 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
39 clean:
40 rm -f $(TARGETS)