changes for libcsqlstorage and inclusion of libcsqlbase
[csql.git] / test / odbc / Threads / Makefile
blob0572266d310969e12f24f4d76b0ac42810f31271
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
14 PlatForm=supported
15 endif
16 ifeq ($(OSNAME), FreeBSD)
17 CPlus = g++
18 CPlusFlags = -g -w
19 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
20 PlatForm=supported
21 endif
24 INCL= -I$(CSQL_INSTALL_ROOT)/include -I../../include
25 LIBS= -L/home/prabatuty/myroot/lib -L$(CSQL_INSTALL_ROOT)/lib -lcsqlodbc -lcsqlsql -lcsqlsqllog -lcsqlstorage -lcsqlbase -lcsqlnw -lodbc -lcsqlgw -lcacheload
27 TARGETS = \
28 test001 test002 test003
30 ifeq ($(PlatForm), supported)
31 all: $(TARGETS)
32 else
33 all:
34 echo "CSQL is not supported on $(OSNAME) platform"
35 endif
38 test001:ODBCThread.c
39 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
40 test002:ODBCThread.c
41 $(CPlus) -DHASH $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
42 test003:ODBCThread.c
43 $(CPlus) -DTREE $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
45 clean:
46 rm -f $(TARGETS) *.class