blob: 7473e23a96aec242a797bff6c794488a5df3ed0d [file] [log] [blame]
Patrick Venture123b5c02019-03-05 14:01:00 -08001ACLOCAL_AMFLAGS = -I m4
2
3# Ignore system headers
4CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*'
5# Ignore the real implementation sources for sys
6CODE_COVERAGE_IGNORE_PATTERN += \
7 '$(abs_builddir)/src/ipmiblob/internal/sys.*'
8export CODE_COVERAGE_IGNORE_PATTERN
9
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
25CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
26# Use our configuration file for genhtml
27CODE_COVERAGE_GENHTML_OPTIONS += --config-file $(abs_srcdir)/.lcovrc
28# 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
31
Patrick Venture51372f02019-03-18 09:06:56 -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
Patrick Venture123b5c02019-03-05 14:01:00 -080040export AM_CPPFLAGS = -I$(abs_builddir)/src -I$(abs_srcdir)/src \
41 $(CODE_COVERAGE_CPPFLAGS)
42export AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
43export AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
44
45export COMMON_LIBS = $(CODE_COVERAGE_LIBS)
46export IPMIBLOB_LIBS = $(abs_builddir)/src/libipmiblob.la $(COMMON_LIBS)
47
48
49EXTRA_DIST = LICENSE MAINTAINERS README.md
50SUBDIRS = src test