changes for libcsqlstorage and inclusion of libcsqlbase
[csql.git] / test / sql / DDL / Makefile
blobd389077def54714567dcafdf9da153067574f713
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
28 TARGETS = test004
30 ifeq ($(PlatForm), supported)
31 all: $(TARGETS)
32 else
33 all:
34 echo "CSQL is not supported on $(OSNAME) platform"
35 endif
37 test004: droptest4.c
38 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
40 clean:
41 rm -f $(TARGETS) *.class