1 include ..
/..
/config.mk
3 CFLAGS
=-DHAVE_CONFIG_H
-I.
-I.
-I..
/..
/..
/include -I..
/..
/..
/include
4 CFLAGS
+=-D_FREETDS_LIBRARY_SOURCE
-DUNIXODBC
-D_REENTRANT
-D_THREAD_SAFE
9 XPLC
=$(WVDIR
)/wvports
/xplc
/build
/xplc
10 BOOST
=$(WVDIR
)/wvports
/boost
/build
/boost
11 DBUS
=$(WVDIR
)/wvports
/dbus
/build
/dbus
12 ARGP
=$(WVDIR
)/wvports
/argp
/build
/argp
13 WVSTREAMS
=$(WVDIR
)/wvstreams
14 VALGRIND
=valgrind
--tool
=memcheck
--leak-check
=yes
--num-callers
=10 --suppressions
=$(WVSTREAMS
)/wvstreams.supp
--log-file
=valgrind.log
15 RUNTEST
=$(WVSTREAMS
)/wvtestrunner.pl
17 CFLAGS
+=-Wall
-Wno-long-long
19 CFLAGS
+=-I
$(WVSTREAMS
)/include -I
$(XPLC
)/include -I
$(BOOST
)
20 CFLAGS
+=-DODBCVER
=0x0351
23 ifeq ($(BUILD_TARGET
),win32
)
24 CC
=i586-mingw32msvc-g
++
25 CXX
=i586-mingw32msvc-g
++
26 CFLAGS
+= -D_MSC_VER
=1300 -D_WIN32_WINNT
=0x0501 -DWIN_MULTITHREAD_SUPPORT
27 LIBS
+=-L.
-L..
-L
$(WVSTREAMS
) -L
$(WVLIBDIR
)
28 LIBS
+=-lwvstatic
-lssl
-lcrypto
-lxplc-cxx
29 LIBS
+=..
/vxodbc.a
$(DBUS
)/dbus
/.libs
/libdbus-1.a
30 LIBS
+=$(WVSTREAMS
)/wvtestmain.o
$(WVSTREAMS
)/utils
/wvcrash.o
31 LIBS
+=-lwsock32
-lgdi32
-lrpcrt4
-lole32
-lodbc32
-limagehlp
-lcrypt32
33 RUNTEST
=$(RUNTEST
) wine
37 LIBS
+=..
/vxodbc-test.so
$(WVSTREAMS
)/libwvtest.a
/usr
/lib
/libodbc.a
38 export LD_LIBRARY_PATH
=..
:$(WVLIBDIR
):$(WVSTREAMS
)
39 LIBS
+=-L
$(WVSTREAMS
) -lwvdbus
/usr
/lib
/libltdl.so
-ldl
-lpthread
42 TESTSOURCES
=$(wildcard *.t.
cc)
43 TESTHEADERS
=$(wildcard *.h
)
44 TESTOBJS
=$(patsubst %.
cc,%.o
,$(TESTSOURCES
))
55 $(RUNTEST
) $(VALGRIND
) .
/all.t
$(TESTNAME
)
57 # FIXME: Should be using GCC-generated dependencies here
58 all.t
: $(HELPEROBJS
) $(TESTOBJS
)
59 $(CXX
) -o
$@
$^
$(LIBS
)
61 # FIXME: Should be using GCC-generated dependencies here
62 %.o
: %.
cc $(TESTHEADERS
)
63 $(CXX
) $(CXXFLAGS
) -c
-o
$@
$<
66 rm -f
$(HELPEROBJS
) $(TESTOBJS
) all.t valgrind.log.
*