File Removed
[csql.git] / test / tools / catalog / Makefile
blob3764f3a22dcafd7121168f822de6636afae5ca7e
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 create drop insert
28 ifeq ($(PlatForm), supported)
29 all: $(TARGETS)
30 endif
32 create: create.c
33 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
34 drop: drop.c
35 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
36 insert: insert.c
37 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
38 clean:
39 rm -f $(TARGETS)