Handling no group on Aggregates
[csql.git] / test / dbapi / Table / Makefile
blob933788ecd3a3b3cbdaa68501e71c49bd283ec573
3 OSNAME = $(shell uname -s)
4 PlatForm=supported
6 ifeq ($(OSNAME), SunOS)
7 CPlus = CC
8 CPlusFlags = -O2 -w -mt -xarch=v8
9 SYSLIBS=-ldl -lnsl -lsocket -lposix4
10 else
11 ifeq ($(OSNAME), Linux)
12 CPlus = g++
13 CPlusFlags = -g -w
14 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
15 else
16 PlatForm=notsupported
17 all:
18 echo "CSQL is not supported on $(OSNAME) platform"
19 endif
20 endif
22 INCL= -I$(CSQL_INSTALL_ROOT)/include
23 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsql
25 TARGETS = \
26 test001 \
27 test002 \
28 insert \
29 test004 \
30 test005 \
31 test006 \
32 test010 \
33 test020 \
34 test021
37 ifeq ($(PlatForm), supported)
38 all: $(TARGETS)
39 endif
41 test001: inserttest1.c
42 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
43 test002: inserttest2.c
44 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
45 insert: inserttest3.c
46 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
47 test004: insertnulltest1.c
48 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
49 test005: insertnulltest2.c
50 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
51 test006: insertnulltest3.c
52 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
53 test010: duptable1.c
54 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
55 test020: bindtest1.c
56 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
57 test021: bindtest2.c
58 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
60 clean:
61 rm -f $(TARGETS)