Adding tests for checking unique index creation
[csql.git] / test / dbapi / Index / Makefile
blobc8178a479ce48db32f3b8f151415ce322d732c06
2 OSNAME = $(shell uname -s)
3 PlatForm=supported
5 ifeq ($(OSNAME), SunOS)
6 CPlus = CC
7 CPlusFlags = -O2 -w -mt -xarch=v8
8 SYSLIBS=-ldl -lnsl -lsocket -lposix4
9 else
10 ifeq ($(OSNAME), Linux)
11 CPlus = g++
12 CPlusFlags = -g -w
13 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
14 else
15 PlatForm=notsupported
16 all:
17 echo "CSQL is not supported on $(OSNAME) platform"
18 endif
19 endif
21 INCL= -I$(CSQL_INSTALL_ROOT)/include
22 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsql
24 TARGETS = \
25 test001 \
26 test002 \
27 test003
30 ifeq ($(PlatForm), supported)
31 all: $(TARGETS)
32 endif
34 test001: uniqueindex1.c
35 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
36 test002: uniqueindex2.c
37 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
38 test003: uniqueindex3.c
39 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
41 clean:
42 rm -f $(TARGETS)