Adding new files for oci and sqlnetwork
[csql.git] / test / dbapi / Index / Makefile
blob66595ce1f725d17f6b60aceeeb1b6ec4a53e8a1b
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 test004 \
28 test005 \
29 test006 \
30 test007 \
31 test008 \
32 test009 \
33 test010 \
34 test011 \
35 test003 test012 test013
38 ifeq ($(PlatForm), supported)
39 all: $(TARGETS)
40 endif
42 test001: uniqueindex1.c common.h
43 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
44 test002: uniqueindex2.c common.h
45 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
46 test003: uniqueindex3.c common.h
47 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
48 test004: twoindex1.c
49 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
50 test005: twoindex2.c
51 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
52 test006: dupindex1.c
53 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
54 test007: dupindex2.c
55 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
56 test008: compositekeyindex1.c
57 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
58 test009: createindexnotexist.c
59 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
60 test010: createindexnofld.c
61 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
62 test011: primarynonunique.c
63 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
64 test012: index1.c common.h
65 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
66 test013:multiplecompositeindex1.c
67 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
68 clean:
69 rm -f $(TARGETS)