* add (optional) gcov flags
authorWilfried Göesgens <willi@citadel.org>
Sun, 13 Dec 2009 16:44:02 +0000 (16:44 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 13 Dec 2009 16:44:02 +0000 (16:44 +0000)
libcitadel/debian/rules

index b7664d47f41fb21fb7433b9f7167172dff8c8cc0..343c7a9c8494d05b08b9a25709585e8a4bee801c 100755 (executable)
@@ -27,6 +27,11 @@ ifneq (,$(findstring sprofiling,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -D SIZE_DEBUG
 endif
 
+ifneq (,$(findstring gcov,$(DEB_BUILD_OPTIONS)))
+       CFLAGS += -fprofile-arcs -ftest-coverage
+       LDFLAGS += -fprofile-arcs -ftest-coverage
+endif
+
 
 build: build-stamp
 build-stamp: