1 ACLOCAL_AMFLAGS = -I m4
3 redismoduledir = @libexecdir@/$(PACKAGE)
4 redismodule_LTLIBRARIES = libredismodule.la
5 #lib_LTLIBRARIES = libredismodule.la
9 libredismodule_la_SOURCES = \
10 include/redismodule.h\
13 libredismodule_la_CFLAGS = \
15 -I${includedir} -I${top_srcdir}/include
18 libredismodule_la_LDFLAGS = $(BASE_LDFLAGS) -avoid-version -module -shared
20 #pkgincludedir = ${includedir}
21 #pkginclude_HEADERS = include/redismodule.h
24 rm -rf ${builddir}/libredismodule.pc
27 CPP_U_TEST=$(CPP_U_TEST_LATEST)
28 check_PROGRAMS = redismodule_ut
29 #TESTS = ${check_PROGRAMS}
30 redismodule_ut_SOURCES = \
31 tst/mock/include/redismodule.h \
32 tst/mock/include/exstringsStub.h \
34 tst/mock/src/redismoduleStub.cpp \
36 tst/src/exstrings_test.cpp
39 redismodule_ut_CFLAGS = \
41 -fprofile-arcs -ftest-coverage \
43 -I${top_srcdir}/tst/mock/include \
45 -I${top_srcdir}/include \
46 -I${CPP_U_TEST_LATEST}/include
48 redismodule_ut_CXXFLAGS = \
50 -fprofile-arcs -ftest-coverage \
52 -I${top_srcdir}/tst/mock/include \
54 -I${top_srcdir}/include \
55 -I${CPP_U_TEST_LATEST}/include
58 redismodule_ut_LDFLAGS = -Wl,-rpath=${libdir} ${UT_COVERAGE_LDFLAGS}
59 redismodule_ut_LDADD = -L${libdir} -L${CPP_U_TEST_LATEST}/lib -lCppUTest -lCppUTestExt -lgcov