changes for libcsqlstorage and inclusion of libcsqlbase
[csql.git] / test / odbc / Select / Makefile
blob7002b52f25e5e186947c2e2aaeea0eec37b97914
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)/include -I../../../include
24 ifeq ($(BUILDTYPE), MMDB)
25 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlodbc -lcsqlnw -lcsqlsqlnw -lcsqlstorage -lcsqlbase -lcsqlsql -lcsqlsqllog
26 else
27 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsqlodbc -lcacheload -lcsqlgw -lcsqlnw -lcsqlodbcadapter -lcsqlsqlnw -lcacheload -lcsqlstorage -lcsqlbase -lcsqlsql -lcsqlsqllog
28 endif
31 ifeq ($(BUILDTYPE), MMDB)
32 TARGETS = test001 test002 test003 test004 test005 \
33 test006 test007 test008 test009 test010 \
34 test001nw test002nw test003nw test004nw test005nw \
35 test006nw test007nw test008nw test009nw test010nw
36 else
37 TARGETS = test001 test002 test003 test004 test005 \
38 test006 test007 test008 test009 test010 \
39 test001nw test002nw test003nw test004nw test005nw \
40 test006nw test007nw test008nw test009nw test010nw
41 endif
43 ifeq ($(PlatForm), supported)
44 all: $(TARGETS)
45 else
46 all:
47 echo "CSQL is not supported on $(OSNAME) platform"
48 endif
50 test001: odbcselect1.c
51 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
52 test001nw: odbcselect1nw.c
53 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
54 test002:odbcselect2.c
55 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
56 test002nw: odbcselect2nw.c
57 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
58 test003:odbcselect3.c
59 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
60 test003nw: odbcselect3nw.c
61 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
62 test004:odbcselect4.c
63 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
64 test004nw: odbcselect4nw.c
65 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
66 test005:odbcselect5.c
67 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
68 test005nw: odbcselect5nw.c
69 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
70 test006:odbcselect6.c
71 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
72 test006nw: odbcselect6nw.c
73 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
74 test007:odbcselect7.c
75 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
76 test007nw: odbcselect7nw.c
77 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
78 test008:odbcselect8.c
79 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
80 test008nw: odbcselect8nw.c
81 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
82 test009:odbcselect9.c
83 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
84 test009nw: odbcselect9nw.c
85 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
86 test010:odbcselect10.c
87 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
88 test010nw: odbcselect10nw.c
89 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
91 clean:
92 rm -f *.o $(TARGETS)