changes for libcsqlstorage and inclusion of libcsqlbase
[csql.git] / test / durability / redologs / Makefile
blob382b78d3a0f0b31813ff030e5c66df5e2fc96c8b
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
24 JAVAC = javac -g:none
25 INCL= -I$(CSQL_INSTALL_ROOT)/include -I../../include
26 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlodbc -lcsqlsql -lcsqlsqllog -lcsqlstorage -lcsqlbase -lcsqlnw -lcsqlodbcadapter -lcsqlfault
28 TARGETS = stmtTest3 stmtTest5 stmtTest6 stmtTest7 stmtTest8 stmtTest9
30 ifeq ($(PlatForm), supported)
31 all: $(TARGETS)
32 else
33 all:
34 echo "CSQL is not supported on $(OSNAME) platform"
35 endif
37 stmtTest3: stmtTest3.c
38 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
39 stmtTest5: stmtTest5.c
40 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
41 stmtTest6: stmtTest6.c
42 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
43 stmtTest7: stmtTest7.c
44 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
45 stmtTest8: stmtTest8.c
46 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
47 stmtTest9: stmtTest9.c
48 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
50 clean:
51 rm -f $(TARGETS) *.class