blob: 6522adb1bbe6037730050c8c7b5cc2aa95a77fae [file] [log] [blame]
Patrick Ventured26fff42018-09-18 15:37:59 -07001AM_DEFAULT_SOURCE_EXT = .cpp
2
Patrick Venture6bb5cfc2019-03-18 18:45:08 -07003# Ignore system headers
4CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*'
5export CODE_COVERAGE_IGNORE_PATTERN
6
7CODE_COVERAGE_LCOV_SHOPTS = $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
8# Use our configuration file for lcov
9CODE_COVERAGE_LCOV_SHOPTS += --config-file $(abs_srcdir)/.lcovrc
10export CODE_COVERAGE_LCOV_SHOPTS
11
12CODE_COVERAGE_LCOV_OPTIONS = $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
13# Use our configuration file for lcov
14CODE_COVERAGE_LCOV_OPTIONS += --config-file $(abs_srcdir)/.lcovrc
15export CODE_COVERAGE_LCOV_OPTIONS
16
17CODE_COVERAGE_LCOV_RMOPTS = $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
18# Use our configuration file for lcov
19CODE_COVERAGE_LCOV_RMOPTS += --config-file $(abs_srcdir)/.lcovrc
20export CODE_COVERAGE_LCOV_RMOPTS
21
22CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
23# Use our configuration file for genhtml
24CODE_COVERAGE_GENHTML_OPTIONS += --config-file $(abs_srcdir)/.lcovrc
25# Don't generate the absolute path for each file in the HTML output
26CODE_COVERAGE_GENHTML_OPTIONS += --prefix $(abs_srcdir) --prefix $(abs_builddir)
27export CODE_COVERAGE_GENHTML_OPTIONS
28
29if AUTOCONF_CODE_COVERAGE_2019_01_06
30include $(top_srcdir)/aminclude_static.am
31clean-local: code-coverage-clean
32distclean-local: code-coverage-dist-clean
33else
34@CODE_COVERAGE_RULES@
35endif
36
37noinst_LTLIBRARIES = libethstatscmds_common.la
38libethstatscmds_common_la_SOURCES = ethstats.cpp handler.cpp
39libethstatscmds_common_la_CXXFLAGS = $(LIBIPMID_CFLAGS) $(CODE_COVERAGE_CXXFLAGS)
40libethstatscmds_common_la_LDFLAGS = $(LIBIPMID_LIBS) $(CODE_COVERAGE_LIBS) -lstdc++fs
41
Patrick Ventured26fff42018-09-18 15:37:59 -070042libethstatscmddir = ${libdir}/ipmid-providers
43libethstatscmd_LTLIBRARIES = libethstatscmd.la
Patrick Venture6bb5cfc2019-03-18 18:45:08 -070044libethstatscmd_la_SOURCES = main.cpp
45libethstatscmd_la_LIBADD = libethstatscmds_common.la
Patrick Venture8d63aee2018-11-09 08:52:44 -080046libethstatscmd_la_LDFLAGS = \
William A. Kennington III539f03f2019-02-12 13:28:45 -080047 $(LIBIPMID_LIBS) \
Patrick Venture6bb5cfc2019-03-18 18:45:08 -070048 $(CODE_COVERAGE_LIBS) \
Patrick Ventured26fff42018-09-18 15:37:59 -070049 -lstdc++fs \
50 -version-info 0:0:0 -shared
Patrick Ventureee22bfb2018-11-09 08:53:15 -080051libethstatscmd_la_CXXFLAGS = \
William A. Kennington III539f03f2019-02-12 13:28:45 -080052 $(LIBIPMID_CFLAGS) \
Patrick Venture6bb5cfc2019-03-18 18:45:08 -070053 $(CODE_COVERAGE_CXXFLAGS) \
Patrick Ventureee22bfb2018-11-09 08:53:15 -080054 -flto
Patrick Venturef1586f52019-03-18 10:41:22 -070055
56SUBDIRS = . test