*** empty log message ***
[csql.git] / examples / sqlapi / Makefile
blobba066c8bfe8ab99a0c7251b5eddf344c124f4096
1 OSNAME = $(shell uname -s)
2 PlatForm=supported
4 ifeq ($(OSNAME), SunOS)
5 CPlus = CC
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
21 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlsql -lcsqlstorage -lcsqlbase -lcsqlsqllog -lcsqlnw -lcacheload -lcsqlgw -lcsqlodbcadapter -lcsqlsqlnw
23 TARGETS = sqlapiexample
25 ifeq ($(PlatForm), supported)
26 all: $(TARGETS)
27 endif
29 .c.o:.c
30 $(CPlus) $(CPlusFlags) $(INCL) -c -o $@ $<
32 sqlapiexample: sqlapiexample.o
33 $(CPlus) $(CPlusFlags) -o $@ $< $(LIBS) $(SYSLIBS)
35 clean:
36 rm -f *.o $(TARGETS)