From 2d3d6cb7011b7fe432ffda2889e1f27860c49f37 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 17 Mar 2012 14:33:43 -0500 Subject: [PATCH] In gcov target, added warning if configured with --enable-debug. While gcov will work with it, it won't reflect optimizations that are disabled with that option. --- Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.am b/Makefile.am index 2dbab2f..def76cf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -572,6 +572,9 @@ cscope: ## targets because they will be used so infrequently, if at all. ## gcov: + @if ./config.status --config | grep -e --enable-debug >/dev/null; then \ + echo For best results with gcov, should configure \ + without --enable-debug; fi @echo rebuilding with AM_CLFAGS=--coverage . . . @(make clean && make AM_CFLAGS=--coverage) > /dev/null && make check @for i in `find . -name '*.gcda'`; do \ -- 1.7.10.4