blob: ff964e2f297b0c93b079026d0a98e8744cde84f6 [file] [log] [blame]
Priyangafb4bec92019-03-25 11:51:31 +05301# Ignore system headers
2CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*'
3export CODE_COVERAGE_IGNORE_PATTERN
4CODE_COVERAGE_LCOV_SHOPTS = $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5# Use our configuration file for lcov
6CODE_COVERAGE_LCOV_SHOPTS += --config-file $(abs_srcdir)/.lcovrc
7export CODE_COVERAGE_LCOV_SHOPTS
8CODE_COVERAGE_LCOV_OPTIONS = $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
9# Use our configuration file for lcov
10CODE_COVERAGE_LCOV_OPTIONS += --config-file $(abs_srcdir)/.lcovrc
11export CODE_COVERAGE_LCOV_OPTIONS
12CODE_COVERAGE_LCOV_RMOPTS = $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
13# Use our configuration file for lcov
14CODE_COVERAGE_LCOV_RMOPTS += --config-file $(abs_srcdir)/.lcovrc
15export CODE_COVERAGE_LCOV_RMOPTS
16CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
17# Use our configuration file for genhtml
18CODE_COVERAGE_GENHTML_OPTIONS += --config-file $(abs_srcdir)/.lcovrc
19# Don't generate the absolute path for each file in the HTML output
20CODE_COVERAGE_GENHTML_OPTIONS += --prefix $(abs_srcdir) --prefix $(abs_builddir)
21export CODE_COVERAGE_GENHTML_OPTIONS
22if AUTOCONF_CODE_COVERAGE_2019_01_06
23include $(top_srcdir)/aminclude_static.am
24clean-local: code-coverage-clean
25distclean-local: code-coverage-dist-clean
26else
27@CODE_COVERAGE_RULES@
28endif
29
Deepak Kodihalli1b24f972019-02-01 04:09:13 -060030SUBDIRS = libpldm libpldmresponder test
Jinu Joy Thomasf666db12019-05-29 05:22:31 -050031
32sbin_PROGRAMS = pldmd
33pldmd_SOURCES = \
34 pldmd.cpp \
35 registration.cpp
36pldmd_LDADD = \
37 libpldmresponder/libpldmresponder.la \
38 libpldm/libpldm.la \
39 $(SDBUSPLUS_LIBS)
40pldmd_CXXFLAGS = -I$(top_builddir)/libpldm \
41 $(PHOSPHOR_LOGGING_CFLAGS) \
42 $(SDBUSPLUS_CFLAGS)
43
44if OEM_IBM
45pldmd_CXXFLAGS += \
Deepak Kodihallida87ec62019-07-02 01:01:16 -050046 -I$(top_srcdir)/oem/ibm/ \
47 -I$(top_srcdir)/libpldm
Jinu Joy Thomasf666db12019-05-29 05:22:31 -050048endif
49
50ACLOCAL_AMFLAGS = -I m4
51