William A. Kennington III | 8f90e28 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 1 | ACLOCAL_AMFLAGS = -I m4 |
| 2 | |
William A. Kennington III | 154a2b3 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 3 | # Ignore system headers |
| 4 | CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*' |
| 5 | # Ignore the real implementation sources for sd_event |
| 6 | CODE_COVERAGE_IGNORE_PATTERN += \ |
| 7 | '$(abs_builddir)/src/sdeventplus/internal/sdevent.*' |
| 8 | export CODE_COVERAGE_IGNORE_PATTERN |
William A. Kennington III | ed05921 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 9 | |
| 10 | CODE_COVERAGE_LCOV_SHOPTS = $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT) |
| 11 | # Use our configuration file for lcov |
| 12 | CODE_COVERAGE_LCOV_SHOPTS += --config-file $(abs_srcdir)/.lcovrc |
| 13 | export CODE_COVERAGE_LCOV_SHOPTS |
| 14 | |
| 15 | CODE_COVERAGE_LCOV_OPTIONS = $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT) |
| 16 | # Use our configuration file for lcov |
| 17 | CODE_COVERAGE_LCOV_OPTIONS += --config-file $(abs_srcdir)/.lcovrc |
| 18 | export CODE_COVERAGE_LCOV_OPTIONS |
| 19 | |
| 20 | CODE_COVERAGE_LCOV_RMOPTS = $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT) |
| 21 | # Use our configuration file for lcov |
| 22 | CODE_COVERAGE_LCOV_RMOPTS += --config-file $(abs_srcdir)/.lcovrc |
| 23 | export CODE_COVERAGE_LCOV_RMOPTS |
| 24 | |
William A. Kennington III | f28b28e | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 25 | CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) |
William A. Kennington III | ed05921 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 26 | # Use our configuration file for genhtml |
| 27 | CODE_COVERAGE_GENHTML_OPTIONS += --config-file $(abs_srcdir)/.lcovrc |
William A. Kennington III | f28b28e | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 28 | # Don't generate the absolute path for each file in the HTML output |
| 29 | CODE_COVERAGE_GENHTML_OPTIONS += --prefix $(abs_srcdir) --prefix $(abs_builddir) |
| 30 | export CODE_COVERAGE_GENHTML_OPTIONS |
William A. Kennington III | 154a2b3 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 31 | |
William A. Kennington III | d41a942 | 2019-03-15 13:36:37 -0700 | [diff] [blame] | 32 | if AUTOCONF_CODE_COVERAGE_2019_01_06 |
| 33 | include $(top_srcdir)/aminclude_static.am |
| 34 | clean-local: code-coverage-clean |
| 35 | distclean-local: code-coverage-dist-clean |
| 36 | else |
| 37 | @CODE_COVERAGE_RULES@ |
| 38 | endif |
| 39 | |
William A. Kennington III | ae7d4c5 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 40 | export AM_CPPFLAGS = -I$(abs_builddir)/src -I$(abs_srcdir)/src \ |
William A. Kennington III | e04cb03 | 2018-11-13 14:28:36 -0800 | [diff] [blame] | 41 | $(SYSTEMD_CFLAGS) $(STDPLUS_CFLAGS) \ |
| 42 | $(CODE_COVERAGE_CPPFLAGS) |
William A. Kennington III | ae7d4c5 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 43 | export AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
| 44 | export AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) |
| 45 | |
William A. Kennington III | e04cb03 | 2018-11-13 14:28:36 -0800 | [diff] [blame] | 46 | export COMMON_LIBS = $(SYSTEMD_LIBS) $(STDPLUS_LIBS) $(CODE_COVERAGE_LIBS) |
William A. Kennington III | ae7d4c5 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 47 | export SDEVENTPLUS_LIBS = $(abs_builddir)/src/libsdeventplus.la $(COMMON_LIBS) |
| 48 | |
| 49 | |
William A. Kennington III | 8f90e28 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 50 | EXTRA_DIST = LICENSE MAINTAINERS README.md |
| 51 | SUBDIRS = src example test |