blob: d7b5c3580ade1e745f8641360d16642bf35cf5e4 [file] [log] [blame]
Patrick Venture2f3b4b62019-03-08 13:22:40 -08001# Ignore system headers
2CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*'
3# Ignore the real implementation sources for sys
4CODE_COVERAGE_IGNORE_PATTERN += '$(abs_builddir)/internal/sys.*'
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
Patrick Venture30993b32018-11-28 14:52:00 -080029ACLOCAL_AMFLAGS = -I m4
Patrick Venturec7ca2912018-11-02 11:38:33 -070030AM_DEFAULT_SOURCE_EXT = .cpp
31
32libfirmwareblobdir = ${libdir}/ipmid-providers
33libfirmwareblob_LTLIBRARIES = libfirmwareblob.la
Patrick Venture6cb4dc72018-11-07 15:31:16 -080034libfirmwareblob_la_SOURCES = \
35 main.cpp \
36 firmware_handler.cpp \
Patrick Venture6cb4dc72018-11-07 15:31:16 -080037 lpc_handler.cpp \
Patrick Venturee2e56112018-11-08 09:42:45 -080038 pci_handler.cpp \
Patrick Venture09114c12018-11-16 20:55:54 -080039 file_handler.cpp \
40 lpc_aspeed.cpp \
Patrick Venture8b588562018-11-18 08:44:33 -080041 lpc_nuvoton.cpp \
42 internal/sys.cpp
Patrick Venture6cb4dc72018-11-07 15:31:16 -080043libfirmwareblob_la_LDFLAGS = \
Patrick Venture4eb55952018-11-16 15:36:24 -080044 $(SDBUSPLUS_LIBS) \
Patrick Venture6cb4dc72018-11-07 15:31:16 -080045 $(PHOSPHOR_LOGGING_LIBS) \
Patrick Venture2f3b4b62019-03-08 13:22:40 -080046 $(CODE_COVERAGE_LIBS) \
Patrick Venture4cbb5a22018-12-14 16:09:16 -080047 -lstdc++fs \
Patrick Venture6cb4dc72018-11-07 15:31:16 -080048 -version-info 0:0:0 -shared
49libfirmwareblob_la_CXXFLAGS = \
Patrick Venture4eb55952018-11-16 15:36:24 -080050 $(SDBUSPLUS_CFLAGS) \
Patrick Venture6cb4dc72018-11-07 15:31:16 -080051 $(PHOSPHOR_LOGGING_CFLAGS) \
Patrick Venture2f3b4b62019-03-08 13:22:40 -080052 $(CODE_COVERAGE_CXXFLAGS) \
Patrick Venture6cb4dc72018-11-07 15:31:16 -080053 -flto
Patrick Venture21be45a2018-11-06 12:08:52 -080054
Patrick Venturebf58cd62018-12-11 09:05:46 -080055SUBDIRS = . test tools