blob: 8c7e40d4106f437066c4178fca1a7de8a58af566 [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 IIId41a9422019-03-15 13:36:37 -070032if AUTOCONF_CODE_COVERAGE_2019_01_06
33include $(top_srcdir)/aminclude_static.am
34clean-local: code-coverage-clean
35distclean-local: code-coverage-dist-clean
36else
37@CODE_COVERAGE_RULES@
38endif
39
William A. Kennington IIIae7d4c52018-07-17 14:40:14 -070040export AM_CPPFLAGS = -I$(abs_builddir)/src -I$(abs_srcdir)/src \
41 $(SYSTEMD_CFLAGS) $(CODE_COVERAGE_CPPFLAGS)
42export AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
43export AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
44
45export COMMON_LIBS = $(SYSTEMD_LIBS) $(CODE_COVERAGE_LIBS)
46export SDEVENTPLUS_LIBS = $(abs_builddir)/src/libsdeventplus.la $(COMMON_LIBS)
47
48
William A. Kennington III8f90e282018-07-17 14:40:14 -070049EXTRA_DIST = LICENSE MAINTAINERS README.md
50SUBDIRS = src example test