1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Fix build not to always use code coverage.

Somehow, the way this was structured before always did a gcov build.

Andrew Bartlett
(This used to be commit 052edb7864)
This commit is contained in:
Andrew Bartlett 2008-04-17 14:20:46 +02:00
parent dd0da89e84
commit 0b4c401f06

View File

@ -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
ifdef GCOV
ifeq ($(GCOV),1)
CFLAGS += --coverage
LDFLAGS += --coverage
endif