blob: e27fbe8a05b5f90ed4f07ae71a99525154aee664 [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 \
William A. Kennington IIIe04cb032018-11-13 14:28:36 -080041 $(SYSTEMD_CFLAGS) $(STDPLUS_CFLAGS) \
42 $(CODE_COVERAGE_CPPFLAGS)
William A. Kennington IIIae7d4c52018-07-17 14:40:14 -070043export AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
44export AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
45
William A. Kennington IIIe04cb032018-11-13 14:28:36 -080046export COMMON_LIBS = $(SYSTEMD_LIBS) $(STDPLUS_LIBS) $(CODE_COVERAGE_LIBS)
William A. Kennington IIIae7d4c52018-07-17 14:40:14 -070047export SDEVENTPLUS_LIBS = $(abs_builddir)/src/libsdeventplus.la $(COMMON_LIBS)
48
49
William A. Kennington III8f90e282018-07-17 14:40:14 -070050EXTRA_DIST = LICENSE MAINTAINERS README.md
51SUBDIRS = src example test