adding test scripts
[csql.git] / test / performance / Makefile
blobd5f3f53f6e431f9091d7940d275d39c0ded83553
2 OSNAME = $(shell uname -s)
4 PlatForm=notsupported
5 ifeq ($(OSNAME), SunOS)
6 CPlus = CC
7 CPlusFlags = -O2 -w $(COMPILER_FLAG)
8 SYSLIBS=-ldl -lnsl -lsocket -lposix4
9 PlatForm=supported
10 endif
11 ifeq ($(OSNAME), Linux)
12 CPlus = g++
13 CPlusFlags = -g -w
14 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
15 PlatForm=supported
16 endif
17 ifeq ($(OSNAME), FreeBSD)
18 CPlus = g++
19 CPlusFlags = -g -w
20 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
21 PlatForm=supported
22 endif
24 JAVAC = javac -g:none
25 INCL= -I$(CSQL_INSTALL_ROOT)/include -I../../include
26 LIBS= -L/home/prabatuty/myroot/lib -L$(CSQL_INSTALL_ROOT)/lib -lcsqlodbc -lcsqlsql -lcsqlsqllog -lcsql -lcsqlnw -lodbc -lcsqlgw -lcacheload
28 TARGETS = \
29 SQLGWTest \
30 SQLAdapterTest \
31 SQLTest \
32 DMLTest \
33 DMLThroughput \
34 DMLThreadTest \
35 ODBCTest \
36 ODBCConTest\
37 JDBCTest
39 ifeq ($(PlatForm), supported)
40 all: $(TARGETS)
41 else
42 all:
43 echo "CSQL is not supported on $(OSNAME) platform"
44 endif
46 DMLTest: DMLTest.c
47 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
48 DMLThroughput: DMLThroughput.c
49 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
50 SQLTest: SQLTest.c
51 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
52 SQLGWTest: SQLGWTest.c
53 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
54 SQLAdapterTest: SQLAdapterTest.c
55 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
56 DMLThreadTest: DMLThreadTest.c
57 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
59 ODBCConTest: ODBCConTest.c
60 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
62 ODBCTest: ODBCTest.c
63 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
64 JDBCTest: JDBCTest.java
65 $(JAVAC) JDBCTest.java
67 clean:
68 rm -f $(TARGETS) *.class