File Removed
[csql.git] / test / sqlapi / Parameter / Makefile
blob9d5bbe2ec21579574fddcec9b9d470778fcd70af
1 OSNAME = $(shell uname -s)
2 PlatForm=supported
4 ifeq ($(OSNAME), SunOS)
5 CPlus = CC
6 CPlusFlags = -O2 -w -mt -xarch=v8
7 SYSLIBS=-ldl -lnsl -lsocket -lposix4
8 else
9 ifeq ($(OSNAME), Linux)
10 CPlus = g++
11 CPlusFlags = -g -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)/install/include -I../../../include
21 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlsql -lcsql -lcsqlsqllog -lcsqlnw -lcsqlsqlnw
23 TARGETS = \
24 test001 test001n\
25 test002 test002n\
26 test003 test003n\
27 test004 test004n\
28 test100 test100n
30 ifeq ($(PlatForm), supported)
31 all: $(TARGETS)
32 endif
34 test001: paratest1.c common.h
35 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
36 test001n: paratest1.c common.h
37 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
38 test002:paratest2.c common.h
39 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
40 test002n: paratest2.c common.h
41 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
42 test003:paratest3.c common.h
43 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
44 test003n: paratest3.c common.h
45 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
46 test004:paratest4.c common.h
47 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
48 test004n: paratest4.c common.h
49 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
50 test100:paratest100.c common.h
51 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
52 test100n: paratest100.c common.h
53 $(CPlus) -DNETWORK $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
55 clean:
56 rm -f *.o ${TARGETS}