exp changes and test case modification as we do not support mmap to
[csql.git] / test / odbc / Transaction / Makefile
blob411524d0503c3c040563c922ec2eb0073920d23b
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
7 PlatForm=supported
8 endif
9 ifeq ($(OSNAME), Linux)
10 CPlus = g++
11 CPlusFlags = -g -w
12 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
13 PlatForm=supported
14 endif
15 ifeq ($(OSNAME), FreeBSD)
16 CPlus = g++
17 CPlusFlags = -g -w
18 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
19 PlatForm=supported
20 endif
23 INCL= -I$(CSQL_INSTALL_ROOT)/include -I../../../include
24 ifeq ($(BUILDTYPE), MMDB)
25 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlodbc -lcsqlnw -lcsqlsqlnw -lcsql -lcsqlsql -lcsqlsqllog
26 else
27 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlodbc -lcacheload -lcsqlgw -lcsqlnw -lcsqlodbcadapter -lcsqlsqlnw -lcacheload -lcsql -lcsqlsql -lcsqlsqllog
28 endif
31 ifeq ($(BUILDTYPE), MMDB)
32 TARGETS = test001 test002 \
33 test001nw test002nw
34 else
35 TARGETS = test001 test002 \
36 test001nw test002nw
37 endif
39 ifeq ($(PlatForm), supported)
40 all: $(TARGETS)
41 else
42 all:
43 echo "CSQL is not supported on $(OSNAME) platform"
44 endif
46 test001: transact1.c
47 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
48 test001nw: transact1nw.c
49 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
51 test002:transact2.c
52 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
53 test002nw: transact2nw.c
54 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
56 clean:
57 rm -f *.o $(TARGETS)