catalog with -l option.
[csql.git] / tmptest / Makefile
blob2a952eea2edd30c450fa972eb79e30c5caaf5288
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
24 TARGETS = \
25 test \
26 create\
27 upd\
28 del\
29 select
32 ifeq ($(PlatForm), supported)
33 all: $(TARGETS)
34 endif
36 test: test.c
37 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
38 del: del.c
39 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
40 upd: upd.c
41 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
43 create: create.c
44 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
45 select: select.c
46 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
47 clean:
48 rm -f $(TARGETS)