changes for libcsqlstorage and inclusion of libcsqlbase
[csql.git] / test / sqlgw / Select / Makefile
blobbbc78736ed00a13624d475dff1eb347e25f93acb
1 OSNAME = $(shell uname -s)
2 PlatForm=notsupported
3 ifeq ($(OSNAME), SunOS)
4 CPlus = CC
5 CPlusFlags = -O2 -w $(COMPILER_FLAG)
6 SYSLIBS=-ldl -lnsl -lsocket -lposix4
7 PlatForm=supported
8 endif
9 ifeq ($(OSNAME), Linux)
10 CPlus = g++
11 CPlusFlags = -g -w
12 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
13 PlatForm=supported
14 endif
15 ifeq ($(OSNAME), FreeBSD)
16 CPlus = g++
17 CPlusFlags = -g -w
18 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
19 PlatForm=supported
20 endif
23 INCL= -I$(CSQL_INSTALL_ROOT)/install/include -I../../../include
24 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlgw -lcsqlnw -lcsqlodbcadapter -lcsqlsqlnw -lcacheload -lcsqlstorage -lcsqlbase -lcsqlsql -lcsqlsqllog
27 TARGETS = \
28 selecttest1 selecttest2 selecttest3 selecttest4 selecttest5 selecttest6 \
29 selecttest7 selecttest8 singleconngateway
31 ifeq ($(PlatForm), supported)
32 all: $(TARGETS)
33 else
34 all:
35 echo "CSQL is not supported on $(OSNAME) platform"
36 endif
38 selecttest1: selecttest1.c common.h
39 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
40 selecttest2: selecttest2.c common.h
41 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
42 selecttest3: selecttest3.c common.h
43 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
44 selecttest4: selecttest4.c common.h
45 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
46 selecttest5: selecttest5.c common.h
47 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
48 selecttest6: selecttest6.c common.h
49 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
50 selecttest7: selecttest7.c common.h
51 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
52 selecttest8: selecttest8.c common.h
53 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
54 singleconngateway:singleconngateway.c common.h
55 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
56 clean:
57 rm -f *.o ${TARGETS}