build: enable code coverage
Enable code coverage for the project. Valgrind not enabled in this
step.
Change-Id: I519bac32acc58ba388dc3724e187255d3237c085
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 05daf75..11ec485 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -1,12 +1,12 @@
noinst_PROGRAMS = burn_my_bmc
burn_my_bmc_SOURCES = main.cpp
-burn_my_bmc_LDADD = libupdater.la
-burn_my_bmc_CXXFLAGS = -I$(top_srcdir)
+burn_my_bmc_LDADD = libupdater.la $(CODE_COVERAGE_LIBS)
+burn_my_bmc_CXXFLAGS = -I$(top_srcdir) $(CODE_COVERAGE_CXXFLAGS)
noinst_LTLIBRARIES = libupdater.la
-libupdater_la_LDFLAGS = -static
-libupdater_la_CXXFLAGS = -I$(top_srcdir)
+libupdater_la_LDFLAGS = -static $(CODE_COVERAGE_LIBS)
+libupdater_la_CXXFLAGS = -I$(top_srcdir) $(CODE_COVERAGE_CXXFLAGS)
libupdater_la_SOURCES = \
updater.cpp \
bt.cpp \