blob: 43d27551e874aa27db3e6a6b7bdd6ac49c0f5a6c [file] [log] [blame]
William A. Kennington III8f90e282018-07-17 14:40:14 -07001ACLOCAL_AMFLAGS = -I m4
2
William A. Kennington III154a2b32018-07-17 14:40:14 -07003# Ignore system headers
4CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*'
5# Ignore the real implementation sources for sd_event
6CODE_COVERAGE_IGNORE_PATTERN += \
7 '$(abs_builddir)/src/sdeventplus/internal/sdevent.*'
8export CODE_COVERAGE_IGNORE_PATTERN
William A. Kennington IIIed059212018-07-17 14:40:14 -07009
10CODE_COVERAGE_LCOV_SHOPTS = $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
11# Use our configuration file for lcov
12CODE_COVERAGE_LCOV_SHOPTS += --config-file $(abs_srcdir)/.lcovrc
13export CODE_COVERAGE_LCOV_SHOPTS
14
15CODE_COVERAGE_LCOV_OPTIONS = $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16# Use our configuration file for lcov
17CODE_COVERAGE_LCOV_OPTIONS += --config-file $(abs_srcdir)/.lcovrc
18export CODE_COVERAGE_LCOV_OPTIONS
19
20CODE_COVERAGE_LCOV_RMOPTS = $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
21# Use our configuration file for lcov
22CODE_COVERAGE_LCOV_RMOPTS += --config-file $(abs_srcdir)/.lcovrc
23export CODE_COVERAGE_LCOV_RMOPTS
24
William A. Kennington IIIf28b28e2018-07-17 14:40:14 -070025CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
William A. Kennington IIIed059212018-07-17 14:40:14 -070026# Use our configuration file for genhtml
27CODE_COVERAGE_GENHTML_OPTIONS += --config-file $(abs_srcdir)/.lcovrc
William A. Kennington IIIf28b28e2018-07-17 14:40:14 -070028# Don't generate the absolute path for each file in the HTML output
29CODE_COVERAGE_GENHTML_OPTIONS += --prefix $(abs_srcdir) --prefix $(abs_builddir)
30export CODE_COVERAGE_GENHTML_OPTIONS
William A. Kennington III154a2b32018-07-17 14:40:14 -070031
William A. Kennington IIIae7d4c52018-07-17 14:40:14 -070032export AM_CPPFLAGS = -I$(abs_builddir)/src -I$(abs_srcdir)/src \
33 $(SYSTEMD_CFLAGS) $(CODE_COVERAGE_CPPFLAGS)
34export AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
35export AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
36
37export COMMON_LIBS = $(SYSTEMD_LIBS) $(CODE_COVERAGE_LIBS)
38export SDEVENTPLUS_LIBS = $(abs_builddir)/src/libsdeventplus.la $(COMMON_LIBS)
39
40
William A. Kennington III8f90e282018-07-17 14:40:14 -070041EXTRA_DIST = LICENSE MAINTAINERS README.md
42SUBDIRS = src example test