From ecd94a4b45924c3c65feabc87bbc7a075e951249 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 15 Nov 2010 18:37:57 +0100 Subject: misc: Introduce a --enable-coverage mode to build with gprof coverage This adds a test coverage build. One can use gcov and lcov on the resulting data afterwards to see which code paths were executed and which were not. --- openbsc/src/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsc/src/Makefile.am') diff --git a/openbsc/src/Makefile.am b/openbsc/src/Makefile.am index 1566af955..2766d938c 100644 --- a/openbsc/src/Makefile.am +++ b/openbsc/src/Makefile.am @@ -1,6 +1,6 @@ INCLUDES = $(all_includes) -I$(top_srcdir)/include -I$(top_builddir) -AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS) -AM_LDFLAGS = $(LIBOSMOCORE_LIBS) +AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS) $(COVERAGE_CFLAGS) +AM_LDFLAGS = $(LIBOSMOCORE_LIBS) $(COVERAGE_LDFLAGS) # build current directory before building gprs SUBDIRS = . ipaccess gprs -- cgit v1.2.3