mysql for odbc
[csql.git] / test / system / lock / Makefile
blob5bdf283ac018db5980a786fae0aec015c838a216
2 OSNAME = $(shell uname -s)
3 PlatForm=supported
5 ifeq ($(OSNAME), SunOS)
6 CPlus = CC
7 CPlusFlags = -O2 -w -mt -xarch=v8
8 SYSLIBS=-ldl -lnsl -lsocket -lposix4
9 else
10 ifeq ($(OSNAME), Linux)
11 CPlus = g++
12 CPlusFlags = -g -w
13 SYSLIBS= -rdynamic -lrt -lpthread -lcrypt
14 else
15 PlatForm=notsupported
16 all:
17 echo "CSQL is not supported on $(OSNAME) platform"
18 endif
19 endif
21 INCL= -I$(CSQL_INSTALL_ROOT)/include
22 LIBS= -L$(CSQL_INSTALL_ROOT)/lib -lcsql
24 TARGETS = \
25 test001 test001a \
26 test003 test003a \
27 test004 test004a \
28 test005 test005a \
29 test006 test006a \
30 test007 test007a \
31 test008 test008a \
32 test009 test009a \
33 test002 test002a
36 ifeq ($(PlatForm), supported)
37 all: $(TARGETS)
38 endif
40 test001: locktest001.c
41 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
42 test001a: locktest001.c
43 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
44 test002: locktest002.c
45 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
46 test002a: locktest002.c
47 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
48 test003: locktest003.c
49 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
50 test003a: locktest003.c
51 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
52 test004: locktest004.c
53 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
54 test004a: locktest004.c
55 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
56 test005: locktest005.c
57 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
58 test005a: locktest005.c
59 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
60 test006: locktest006.c
61 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
62 test006a: locktest006.c
63 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
64 test007: locktest007.c
65 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
66 test007a: locktest007.c
67 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
68 test008: locktest008.c
69 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
70 test008a: locktest008.c
71 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
72 test009: locktest009.c
73 $(CPlus) $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
74 test009a: locktest009.c
75 $(CPlus) -DWITHINDEX $(CPlusFlags) -o $@ $< $(INCL) $(LIBS) $(SYSLIBS)
76 clean:
77 rm -f $(TARGETS)