Adding new files for oci and sqlnetwork
[csql.git] / test / dbapi / Predicate / Makefile
blob0fabc8e1167dbccb8fbd093d54969a79dd4bf3cb
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 test001a test002 test002a\
26 test003 test003a test003b test003c \
27 test004 test004a test004b test004c \
28 test005 test005a test005b test005c \
29 test006 test006a test006b test006c \
30 test007 \
31 test008 \
32 test009 \
33 test010 \
34 test011 \
35 test012
38 ifeq ($(PlatForm), supported)
39 all: $(TARGETS)
40 endif
42 test001: notpredicate1.c
43 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
44 test001a: notpredicate1.c
45 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
46 test002: predicate1.c
47 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
48 test002a:predicate1.c
49 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
50 test003: andpredicate1.c
51 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
52 test003a: andpredicate1.c
53 $(CPlus) -DWITHF1INDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
54 test003b: andpredicate1.c
55 $(CPlus) -DWITHF2INDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
56 test003c: andpredicate1.c
57 $(CPlus) -DWITHF1INDEX -DWITHF2INDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
58 test004: notandpredicate1.c
59 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
60 test004a: notandpredicate1.c
61 $(CPlus) -DWITHF1INDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
62 test004b: notandpredicate1.c
63 $(CPlus) -DWITHF2INDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
64 test004c: notandpredicate1.c
65 $(CPlus) -DWITHF1INDEX -DWITHF2INDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
66 test005: orpredicate1.c
67 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
68 test005a: orpredicate1.c
69 $(CPlus) -DWITHF1INDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
70 test005b: orpredicate1.c
71 $(CPlus) -DWITHF2INDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
72 test005c: orpredicate1.c
73 $(CPlus) -DWITHF1INDEX -DWITHF2INDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
74 test006: notorpredicate1.c
75 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
76 test006a: notorpredicate1.c
77 $(CPlus) -DWITHF1INDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
78 test006b: notorpredicate1.c
79 $(CPlus) -DWITHF2INDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
80 test006c: notorpredicate1.c
81 $(CPlus) -DWITHF1INDEX -DWITHF2INDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
82 test007: andorpredicate1.c
83 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
84 test008: orandpredicate1.c
85 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
86 test009: andandpredicate1.c
87 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
88 test010: ororpredicate1.c
89 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
90 test011: andorandpredicate1.c
91 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
92 test012: orandorpredicate1.c
93 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
95 clean:
96 rm -f $(TARGETS)