Added code auditing with cppcheck.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 5 Jun 2014 18:31:29 +0000 (14:31 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 5 Jun 2014 18:31:29 +0000 (14:31 -0400)
Makefile

index f924ccb0ced8cc94c5e764c81d068d230f797d96..bbd26698f3a78c77e912723e28c1c82792dc569f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,11 @@ uninstall:
        rm /usr/bin/wumpus /usr/bin/superhack
        rm /usr/share/man/man6/wumpus.6
 
+CPPCHECKOPTS =
+cppcheck:
+       cppcheck -DREVISION=$(VERS) $(CPPCHECKOPTS) wumpus.c
+       cppcheck -DREVISION=$(VERS) $(CPPCHECKOPTS) superhack.c
+
 wumpus-$(VERS).tar.gz: $(SOURCES) wumpus.6
        @ls $(SOURCES) wumpus.6 | sed s:^:wumpus-$(VERS)/: >MANIFEST
        @(cd ..; ln -s wumpus wumpus-$(VERS))