adding test scripts
[csql.git] / test / sqlgw / Parameter / Makefile
blob8cfb781090efcb12d7aaea907902328f16ae3b39
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 -lcsql -lcsqlsql -lcsqlsqllog
26 TARGETS = \
27 paratest1 paratest2 paratest3 paratest4 paratest5 paratest6
29 ifeq ($(PlatForm), supported)
30 all: $(TARGETS)
31 else
32 all:
33 echo "CSQL is not supported on $(OSNAME) platform"
34 endif
36 paratest1:paratest1.c common.h
37 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
38 paratest2:paratest2.c common.h
39 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
40 paratest3:paratest3.c common.h
41 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
42 paratest4:paratest4.c common.h
43 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
44 paratest5:paratest5.c common.h
45 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
46 paratest6:paratest6.c common.h
47 $(CPlus) -DGATEWAY $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
49 clean:
50 rm -f *.o ${TARGETS}