Handling no group on Aggregates
[csql.git] / tmptest / Makefile
blob19e58ad29582629a7022c83f067e7dd6a84c80c5
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 -rdynamic
13 SYSLIBS= -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 -I../src/sql
22 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -L.. -lcsql -lcsqlsql -lcsqlnw -lcsqlsqllog -lcsqlgw
23 #LIBS= -L$(CSQL_INSTALL_ROOT)/lib -L.. -lcsql
25 TARGETS = \
26 test \
27 testproc \
28 create\
29 upd\
30 del\
31 select
34 ifeq ($(PlatForm), supported)
35 all: $(TARGETS)
36 endif
38 test: test.c
39 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
40 testproc: testproc.c
41 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
42 del: del.c
43 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
44 upd: upd.c
45 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
47 create: create.c
48 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
49 select: select.c
50 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
51 clean:
52 rm -f $(TARGETS)