64 bit build fix
[csql.git] / test / load / Makefile
blobe1605528dd9a4c14bfffe7ff32130ba5ecb14a02
2 OSNAME = $(shell uname -s)
3 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 = -O2 -w
14 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
15 PlatForm=supported
16 endif
18 ifeq ($(OSNAME), FreeBSD)
19 CPlus = g++
20 CPlusFlags = -O2 -w
21 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
22 PlatForm=supported
23 endif
26 JAVAC = javac -g:none
27 INCL= -I$(CSQL_INSTALL_ROOT)/include -I../../include
28 LIBS= -L/home/prabatuty/myroot/lib -L$(CSQL_INSTALL_ROOT)/lib -L/usr/local/lib -lcsqlsql -lcsqlsqllog -lcsql -lcsqlnw -lodbc -lcsqlgw -lcacheload -lcsqlsqlnw -lcsqlodbcadapter
30 TARGETS = \
31 SQLAdapterTest
34 ifeq ($(PlatForm), supported)
35 all: $(TARGETS)
36 else
37 all:
38 echo "CSQL is not supported on $(OSNAME) platform"
39 endif
42 SQLAdapterTest: SQLAdapterTest.c
43 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
45 clean:
46 rm -f $(TARGETS) *.class