소스 검색

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 년 전
부모
커밋
fe0261332e
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  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
 #