*** empty log message ***
[csql.git] / test / soakTest / Makefile
blobe1c9dfaf22b389fa82003590e14b3c405edf9c59
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 -lcsql -lcsqlnw -lcsqlodbcadapter
28 TARGETS = \
29 csqlInsert \
30 odbcInsert \
31 jdbcDelete \
32 jdbcUpdate \
33 jdbcSelect\
34 jdbcSelect1
36 ifeq ($(PlatForm), supported)
37 all: $(TARGETS)
38 else
39 all:
40 echo "CSQL is not supported on $(OSNAME) platform"
41 endif
43 csqlInsert: csqlInsert.c
44 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
45 odbcInsert: odbcInsert.c
46 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
47 jdbcDelete: jdbcDelete.java
48 $(JAVAC) jdbcDelete.java
49 jdbcUpdate: jdbcUpdate.java
50 $(JAVAC) jdbcUpdate.java
51 jdbcSelect: jdbcSelect.java
52 $(JAVAC) jdbcSelect.java
53 jdbcSelect1: jdbcSelect1.java
54 $(JAVAC) jdbcSelect1.java
56 clean:
57 rm -f $(TARGETS) *.class