diff --git a/src/modules/math/Makefile.in b/src/modules/math/Makefile.in
index c8bc844b334887bfb5941097e0af5378f811d83e..5ab2b7cdbc86a94e682cfb3ab5a0cf0477622eff 100644
--- a/src/modules/math/Makefile.in
+++ b/src/modules/math/Makefile.in
@@ -11,7 +11,7 @@ math.a: $(FILES)
 	-@RANLIB@ math.a
 
 clean:
-	-rm -f *.o
+	-rm -f *.o *.a
 
 depend:
 	gcc -MM $(PREFLAGS) $(SRCDIR)/*.c  >$(SRCDIR)/dependencies
diff --git a/src/modules/math/Makefile.in.src b/src/modules/math/Makefile.in.src
index 3a45219c6eab407d0dd76656d9df81af0ae642d5..b37199672fca99c789ec41132c52b5194dd78b5d 100644
--- a/src/modules/math/Makefile.in.src
+++ b/src/modules/math/Makefile.in.src
@@ -11,7 +11,7 @@ math.a: $(FILES)
 	-@RANLIB@ math.a
 
 clean:
-	-rm -f *.o
+	-rm -f *.o *.a
 
 depend:
 	gcc -MM $(PREFLAGS) $(SRCDIR)/*.c  >$(SRCDIR)/dependencies