changes for libcsqlstorage and inclusion of libcsqlbase
[csql.git] / test / adapter / Parameter / Makefile
blobbd39fc70679a47d8b002620b68e8438b1d78237e
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
26 TARGETS = \
27 test001 paratest1na\
28 test002 paratest2na\
29 test003 paratest3na\
30 test004 paratest4na\
31 test005 paratest5na\
32 test006 paratest6na
34 ifeq ($(PlatForm), supported)
35 all: $(TARGETS)
36 else
37 all:
38 echo "CSQL is not supported on $(OSNAME) platform"
39 endif
41 test001:paratest1.c common.h
42 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
43 paratest1na:paratest1.c common.h
44 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
45 test002:paratest2.c common.h
46 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
47 paratest2na:paratest2.c common.h
48 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
49 test003:paratest3.c common.h
50 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
51 paratest3na:paratest3.c common.h
52 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
53 test004:paratest4.c common.h
54 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
55 paratest4na:paratest4.c common.h
56 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
57 test005:paratest5.c common.h
58 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
59 paratest5na:paratest5.c common.h
60 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
61 test006:paratest6.c common.h
62 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
63 paratest6na:paratest6.c common.h
64 $(CPlus) -DNETWORKADAPTER $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
66 clean:
67 rm -f *.o ${TARGETS}