diff options
-rwxr-xr-x | build/mclean | 2 | ||||
-rwxr-xr-x | configure.ac | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/build/mclean b/build/mclean index 290814fe6..44f7662e9 100755 --- a/build/mclean +++ b/build/mclean @@ -2,3 +2,5 @@ rm -rf tmp cd .. make distclean make clean +find src -type f -name "*.gcno" -exec rm {} \; +find src -type f -name "*.gcda" -exec rm {} \; diff --git a/configure.ac b/configure.ac index 5fe9ad6f2..c64befcac 100755 --- a/configure.ac +++ b/configure.ac @@ -314,6 +314,17 @@ AC_ARG_ENABLE(applebuild, esac],[applebuild_enabled=false]) +# Option to enable gcov +AC_ARG_WITH(gcov,[ --with-gcov use gcov ] ) +if test "x$with_gcov" == "xyes"; then + with_gcov=yes + CPPFLAGS="$CPPFLAGS -coverage" + LDFLAGS="$LDFLAGS -coverage" +else + with_gcov=no +fi +AM_CONDITIONAL(USE_GCOV, test x$with_gcov = xyes) + # Option to enable OpenGL AC_ARG_WITH(opengl,[ --without-opengl don't use OpenGL ] ) if test "x$with_opengl" == "xno"; then |