Makefile: check target for sparse checking
authorMarko Kreen <markokr@gmail.com>
Mon, 12 Apr 2010 09:16:28 +0000 (12:16 +0300)
committerMarko Kreen <markokr@gmail.com>
Mon, 12 Apr 2010 09:16:48 +0000 (12:16 +0300)
Makefile

index 05382814fdb27575e79370ca3168094e58daf8a8..905c8e6667a5f6625965c2c2f2cffd39a515a2b7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -72,6 +72,11 @@ usual/config.h:
        @echo "Please run ./configure first"
        @exit 1
 
+# run sparse over code
+check: config.mak
+       REAL_CC="$(CC)" \
+       $(MAKE) clean libusual.a CC="cgcc -Wsparse-all"
+
 asms = $(objs:.o=.s)
 asm: $(asms)