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