Refactor delpub-commands, Allow multiple channels
[ric-plt/dbaas.git] / redismodule / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 redismoduledir = @libexecdir@/$(PACKAGE)
4 redismodule_LTLIBRARIES = libredismodule.la
5 #lib_LTLIBRARIES = libredismodule.la
6
7 BASE_LDFLAGS =
8
9 libredismodule_la_SOURCES = \
10         include/redismodule.h\
11         src/exstrings.c 
12
13 libredismodule_la_CFLAGS = \
14         -std=c11 -fPIC -g \
15         -I${includedir} -I${top_srcdir}/include 
16
17
18 libredismodule_la_LDFLAGS = $(BASE_LDFLAGS) -avoid-version -module -shared
19
20 #pkgincludedir = ${includedir}
21 #pkginclude_HEADERS = include/redismodule.h 
22
23 clean-local: 
24         rm -rf ${builddir}/libredismodule.pc
25
26 # UT
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 \
33         src/exstrings.c \
34         tst/mock/src/redismoduleStub.cpp \
35         tst/src/main.cpp \
36         tst/src/exstrings_test.cpp 
37
38
39 redismodule_ut_CFLAGS = \
40         -std=c11 -g -Wall \
41         -fprofile-arcs -ftest-coverage \
42         -D__UT__ \
43                 -I${top_srcdir}/tst/mock/include \
44                 -I${includedir} \
45                 -I${top_srcdir}/include \
46                 -I${CPP_U_TEST_LATEST}/include 
47
48 redismodule_ut_CXXFLAGS = \
49         -std=c++11 -g -Wall \
50         -fprofile-arcs -ftest-coverage \
51         -D__UT__ \
52         -I${top_srcdir}/tst/mock/include \
53         -I${includedir} \
54         -I${top_srcdir}/include \
55         -I${CPP_U_TEST_LATEST}/include 
56
57
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 
60
61 test: redismodule_ut
62         ./run-tests.sh
63
64 TESTS = run-tests.sh