added icsql tool with no dependency on readline libraryw
[csql.git] / demo / gateway / odbc / Makefile
blob013253a39bebb180209e4fdfed0976e33b62d2bb
1 OSNAME = $(shell uname -s)
2 PlatForm=supported
4 ifeq ($(OSNAME), SunOS)
5 CPlus = g++
6 CPlusFlags = -O2 -w
7 SYSLIBS=-ldl -lnsl -lsocket -lposix4
8 else
9 ifeq ($(OSNAME), Linux)
10 CPlus = g++
11 CPlusFlags = -O2 -w
12 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
13 else
14 PlatForm=notsupported
15 all:
16 echo "CSQL is not supported on $(OSNAME) platform"
17 endif
18 endif
20 INCL= -I$(CSQL_INSTALL_ROOT)/include
22 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlodbc
25 TARGETS = GwStmt
27 ifeq ($(PlatForm), supported)
28 all: $(TARGETS)
29 endif
31 .c.o:.c
32 $(CPlus) $(CPlusFlags) $(INCL) -c -o $@ $<
34 GwStmt: GwStmt.o
35 $(CPlus) $(CPlusFlags) -o $@ $< $(LIBS) $(SYSLIBS)
37 clean:
38 rm -f *.o $(TARGETS)