blob: de39e666d3359c7085c543f7c404fc271e6fc1de [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
Lakshminarayana R. Kammath27693a42019-06-24 00:51:47 -050030SUBDIRS = libpldm libpldmresponder test tool
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