Patrick Venture | d26fff4 | 2018-09-18 15:37:59 -0700 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | |
Patrick Venture | 6bb5cfc | 2019-03-18 18:45:08 -0700 | [diff] [blame^] | 3 | # Ignore system headers |
| 4 | CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*' |
| 5 | export CODE_COVERAGE_IGNORE_PATTERN |
| 6 | |
| 7 | CODE_COVERAGE_LCOV_SHOPTS = $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT) |
| 8 | # Use our configuration file for lcov |
| 9 | CODE_COVERAGE_LCOV_SHOPTS += --config-file $(abs_srcdir)/.lcovrc |
| 10 | export CODE_COVERAGE_LCOV_SHOPTS |
| 11 | |
| 12 | CODE_COVERAGE_LCOV_OPTIONS = $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT) |
| 13 | # Use our configuration file for lcov |
| 14 | CODE_COVERAGE_LCOV_OPTIONS += --config-file $(abs_srcdir)/.lcovrc |
| 15 | export CODE_COVERAGE_LCOV_OPTIONS |
| 16 | |
| 17 | CODE_COVERAGE_LCOV_RMOPTS = $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT) |
| 18 | # Use our configuration file for lcov |
| 19 | CODE_COVERAGE_LCOV_RMOPTS += --config-file $(abs_srcdir)/.lcovrc |
| 20 | export CODE_COVERAGE_LCOV_RMOPTS |
| 21 | |
| 22 | CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) |
| 23 | # Use our configuration file for genhtml |
| 24 | CODE_COVERAGE_GENHTML_OPTIONS += --config-file $(abs_srcdir)/.lcovrc |
| 25 | # Don't generate the absolute path for each file in the HTML output |
| 26 | CODE_COVERAGE_GENHTML_OPTIONS += --prefix $(abs_srcdir) --prefix $(abs_builddir) |
| 27 | export CODE_COVERAGE_GENHTML_OPTIONS |
| 28 | |
| 29 | if AUTOCONF_CODE_COVERAGE_2019_01_06 |
| 30 | include $(top_srcdir)/aminclude_static.am |
| 31 | clean-local: code-coverage-clean |
| 32 | distclean-local: code-coverage-dist-clean |
| 33 | else |
| 34 | @CODE_COVERAGE_RULES@ |
| 35 | endif |
| 36 | |
| 37 | noinst_LTLIBRARIES = libethstatscmds_common.la |
| 38 | libethstatscmds_common_la_SOURCES = ethstats.cpp handler.cpp |
| 39 | libethstatscmds_common_la_CXXFLAGS = $(LIBIPMID_CFLAGS) $(CODE_COVERAGE_CXXFLAGS) |
| 40 | libethstatscmds_common_la_LDFLAGS = $(LIBIPMID_LIBS) $(CODE_COVERAGE_LIBS) -lstdc++fs |
| 41 | |
Patrick Venture | d26fff4 | 2018-09-18 15:37:59 -0700 | [diff] [blame] | 42 | libethstatscmddir = ${libdir}/ipmid-providers |
| 43 | libethstatscmd_LTLIBRARIES = libethstatscmd.la |
Patrick Venture | 6bb5cfc | 2019-03-18 18:45:08 -0700 | [diff] [blame^] | 44 | libethstatscmd_la_SOURCES = main.cpp |
| 45 | libethstatscmd_la_LIBADD = libethstatscmds_common.la |
Patrick Venture | 8d63aee | 2018-11-09 08:52:44 -0800 | [diff] [blame] | 46 | libethstatscmd_la_LDFLAGS = \ |
William A. Kennington III | 539f03f | 2019-02-12 13:28:45 -0800 | [diff] [blame] | 47 | $(LIBIPMID_LIBS) \ |
Patrick Venture | 6bb5cfc | 2019-03-18 18:45:08 -0700 | [diff] [blame^] | 48 | $(CODE_COVERAGE_LIBS) \ |
Patrick Venture | d26fff4 | 2018-09-18 15:37:59 -0700 | [diff] [blame] | 49 | -lstdc++fs \ |
| 50 | -version-info 0:0:0 -shared |
Patrick Venture | ee22bfb | 2018-11-09 08:53:15 -0800 | [diff] [blame] | 51 | libethstatscmd_la_CXXFLAGS = \ |
William A. Kennington III | 539f03f | 2019-02-12 13:28:45 -0800 | [diff] [blame] | 52 | $(LIBIPMID_CFLAGS) \ |
Patrick Venture | 6bb5cfc | 2019-03-18 18:45:08 -0700 | [diff] [blame^] | 53 | $(CODE_COVERAGE_CXXFLAGS) \ |
Patrick Venture | ee22bfb | 2018-11-09 08:53:15 -0800 | [diff] [blame] | 54 | -flto |
Patrick Venture | f1586f5 | 2019-03-18 10:41:22 -0700 | [diff] [blame] | 55 | |
| 56 | SUBDIRS = . test |