diff --git a/Makefile b/Makefile index fe70487..2a82948 100644 --- a/Makefile +++ b/Makefile @@ -88,7 +88,7 @@ doc: clean $(QUIET)doxygen Doxyfile gcov: clean - $(QUIET)CFLAGS+="-fprofile-arcs -ftest-coverage" LDFLAGS+="-fprofile-arcs" $(MAKE) $(PROJECT) + $(QUIET)CFLAGS="${CFLAGS}-fprofile-arcs -ftest-coverage" LDFLAGS="${LDFLAGS} -fprofile-arcs" $(MAKE) $(PROJECT) $(QUIET)make -C tests $(QUIET)lcov --directory . --capture --output-file $(PROJECT).info $(QUIET)genhtml --output-directory gcov $(PROJECT).info