Browse Source

Allow build type of COVERAGE for code coverage analysis

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1152 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 19 years ago
parent
commit
fe0261332e
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Makefile.inc

+ 5 - 5
Makefile.inc

@@ -29,7 +29,6 @@ ifndef OPENAIS_BUILD
 endif
 
 # OPENAIS_PROFILE
-# OPENAIS_COVERAGE
 
 # default CFLAGS, LDFLAGS
 #
@@ -51,15 +50,16 @@ ifeq (${OPENAIS_BUILD}, DEBUG)
 	CFLAGS += -O0 -g -Wall -DDEBUG 
 	LDFLAGS += -g
 endif
+ifeq (${OPENAIS_BUILD}, COVERAGE)
+	CFLAGS += -O0 -g -ftest-coverage -fprofile-arcs
+	LDFLAGS += -g -ftest-coverage -fprofile-arcs
+	BUILD_DYNAMIC=0
+endif
 
 ifdef OPENAIS_PROFILE
 	CFLAGS += -pg
 	LDFLAGS += -pg
 endif
-ifdef OPENAIS_COVERAGE
-	CFLAGS += -ftest-coverage -fprofile-arcs
-	LDFLAGS += -ftest-coverage -fprofile-arcs
-endif
 
 # platform specific CFLAGS, LDFLAGS
 #