git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd0da89
)
Fix build not to always use code coverage.
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 17 Apr 2008 12:20:46 +0000
(14:20 +0200)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 17 Apr 2008 12:20:46 +0000
(14:20 +0200)
Somehow, the way this was structured before always did a gcov build.
Andrew Bartlett
(This used to be commit
052edb786418f161272a41025f8b6eee93bb433d
)
source4/torture/config.mk
patch
|
blob
|
history
diff --git
a/source4/torture/config.mk
b/source4/torture/config.mk
index c2ec7c573a77da6b534ae58b94b6d44d7945a4c4..2f3fa38863f8f371dce974d43b128497ea5a2057 100644
(file)
--- a/
source4/torture/config.mk
+++ b/
source4/torture/config.mk
@@
-313,19
+313,21
@@
locktest_OBJ_FILES = torture/locktest.o
MANPAGES += torture/man/locktest.1
+GCOV=0
+
ifeq ($(MAKECMDGOALS),gcov)
-GCOV
?
=1
+GCOV=1
endif
ifeq ($(MAKECMDGOALS),lcov)
-GCOV
?
=1
+GCOV=1
endif
ifeq ($(MAKECMDGOALS),testcov-html)
-GCOV
?
=1
+GCOV=1
endif
-if
def GCOV
+if
eq ($(GCOV),1)
CFLAGS += --coverage
LDFLAGS += --coverage
endif