GHOP #217: add support for compiling Python with coverage checking enabled.
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 80043c2..b692a46 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -375,6 +375,12 @@
build_all_use_profile:
$(MAKE) all CFLAGS="$(CFLAGS) -fprofile-use"
+coverage:
+ @echo "Building with support for coverage checking:"
+ $(MAKE) clean
+ $(MAKE) all CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov"
+
+
# Build the interpreter
$(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY)
$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \