'make coverage' create the same results for regular and shared makefile
diff --git a/makefile b/makefile
index 8da804e..dbf085b 100644
--- a/makefile
+++ b/makefile
@@ -19,6 +19,8 @@ ifndef LIBNAME
LIBNAME=libtommath.a
endif
+coverage: LIBNAME:=-Wl,--whole-archive $(LIBNAME) -Wl,--no-whole-archive
+
include makefile.include
LCOV_ARGS=--directory .