William A. Kennington III | 1d25055 | 2018-08-16 00:46:34 -0700 | [diff] [blame] | 1 | ACLOCAL_AMFLAGS = -I m4 |
| 2 | |
| 3 | # Ignore system headers |
| 4 | CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*' |
William A. Kennington III | 203f716 | 2018-08-16 16:07:23 -0700 | [diff] [blame] | 5 | # Ignore the real implementation sources for sys |
| 6 | CODE_COVERAGE_IGNORE_PATTERN += \ |
| 7 | '$(abs_builddir)/src/gpioplus/internal/sys.*' |
William A. Kennington III | 1d25055 | 2018-08-16 00:46:34 -0700 | [diff] [blame] | 8 | export CODE_COVERAGE_IGNORE_PATTERN |
| 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 | |
| 25 | CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) |
| 26 | # Use our configuration file for genhtml |
| 27 | CODE_COVERAGE_GENHTML_OPTIONS += --config-file $(abs_srcdir)/.lcovrc |
| 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 |
| 31 | |
| 32 | export AM_CPPFLAGS = -I$(abs_builddir)/src -I$(abs_srcdir)/src \ |
| 33 | $(CODE_COVERAGE_CPPFLAGS) |
| 34 | export AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
| 35 | export AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) |
| 36 | |
| 37 | export COMMON_LIBS = $(CODE_COVERAGE_LIBS) |
| 38 | export GPIOPLUS_LIBS = $(abs_builddir)/src/libgpioplus.la $(COMMON_LIBS) |
| 39 | |
| 40 | |
| 41 | EXTRA_DIST = LICENSE MAINTAINERS README.md |
| 42 | SUBDIRS = src example test |