Removing large file for data load. Modified README to generate mysql and psql input...
[csql.git] / test / sqlapi / Parameter / Makefile
blobfb692c0b466f8919bcbc8c724a5b24263b579b52
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 = -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)/install/include -I../../../include
21 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlsql -lcsql -lcsqlsqllog -lcsqlnw -lcacheload
23 TARGETS = \
24 test001\
25 test002\
26 test003\
27 test004\
28 test100
35 ifeq ($(PlatForm), supported)
36 all: $(TARGETS)
37 endif
39 .c.o:.c
40 $(CPlus) $(CPlusFlags) $(INCL) -c -o $@ $<
42 test001: paratest1.o
43 $(CPlus) $(CPlusFlags) -o $@ $< $(LIBS) -lcsqlsql -lcsqlsqllog -lcsqlodbcadapter -lcsql -lcsqlnw -lodbc -lcsqlgw $(SYSLIBS)
44 test002:paratest2.o
45 $(CPlus) $(CPlusFlags) -o $@ $< $(LIBS) -lcsqlsql -lcsqlsqllog -lcsqlodbcadapter -lcsql -lcsqlnw -lodbc -lcsqlgw $(SYSLIBS)
46 test003:paratest3.o
47 $(CPlus) $(CPlusFlags) -o $@ $< $(LIBS) -lcsqlsql -lcsqlsqllog -lcsqlodbcadapter -lcsql -lcsqlnw -lodbc -lcsqlgw $(SYSLIBS)
48 test004:paratest4.o
49 $(CPlus) $(CPlusFlags) -o $@ $< $(LIBS) -lcsqlsql -lcsqlsqllog -lcsqlodbcadapter -lcsql -lcsqlnw -lodbc -lcsqlgw $(SYSLIBS)
50 test100 :paratest100.o
51 $(CPlus) $(CPlusFlags) -o $@ $< $(LIBS) -lcsqlsql -lcsqlsqllog -lcsqlodbcadapter -lcsql -lcsqlnw -lodbc -lcsqlgw $(SYSLIBS)
53 clean:
54 rm -f *.o ${TARGETS}