1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +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 MANPAGES += torture/man/locktest.1
GCOV=0
ifeq ($(MAKECMDGOALS),gcov) ifeq ($(MAKECMDGOALS),gcov)
GCOV?=1 GCOV=1
endif endif
ifeq ($(MAKECMDGOALS),lcov) ifeq ($(MAKECMDGOALS),lcov)
GCOV?=1 GCOV=1
endif endif
ifeq ($(MAKECMDGOALS),testcov-html) ifeq ($(MAKECMDGOALS),testcov-html)
GCOV?=1 GCOV=1
endif endif
ifdef GCOV ifeq ($(GCOV),1)
CFLAGS += --coverage CFLAGS += --coverage
LDFLAGS += --coverage LDFLAGS += --coverage
endif endif