mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
parent
91ee0709b2
commit
a45cc42a68
@ -338,9 +338,18 @@ GCOV_LIBS = -lgcov
|
||||
|
||||
gcov:
|
||||
@$(MAKE) test \
|
||||
HOSTCC_CFLAGS="$(HOSTCC_CFLAGS) $(GCOV_FLAGS)" \
|
||||
CFLAGS="$(CFLAGS) $(GCOV_FLAGS)" \
|
||||
LD_FLAGS="$(LD_FLAGS) $(GCOV_FLAGS)" \
|
||||
LIBS="$(LIBS) $(GCOV_LIBS)"
|
||||
LDFLAGS="$(LDFLAGS) $(GCOV_FLAGS) $(GCOV_LIBS)"
|
||||
for I in $(sort $(dir $(ALL_OBJS))); \
|
||||
do $(GCOV) -p -o $$I $$I/*.c; \
|
||||
done
|
||||
|
||||
lcov:
|
||||
@$(MAKE) test \
|
||||
HOSTCC_CFLAGS="$(HOSTCC_CFLAGS) $(GCOV_FLAGS)" \
|
||||
CFLAGS="$(CFLAGS) $(GCOV_FLAGS)" \
|
||||
LDFLAGS="$(LDFLAGS) $(GCOV_FLAGS) $(GCOV_LIBS)"
|
||||
rm **/{lex,parse}.{gcda,gcno}
|
||||
lcov --base-directory `pwd` --directory . --capture --output-file samba.info
|
||||
genhtml -o coverage samba.info
|
||||
|
Loading…
Reference in New Issue
Block a user