summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2013-10-30 15:08:07 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2013-10-30 15:08:07 +0000
commit148d36993eb87d9b89f0abaf19479c0881c3ad18 (patch)
tree350f0aaec9b1536d95be686136bc388a11646c36 /Makefile
parente12bb97dc596c22048864eccecc06bc18bd34b39 (diff)
downloadcups-148d36993eb87d9b89f0abaf19479c0881c3ad18.tar.gz
Fix a few STACK-detected issues:
backend/ipp.c: Off-by-one error in quote_string test/ipptool.c: Avoid possible optimizer error by using ippSetCollection API. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11369 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 25 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4a637882f..4fbbb0578 100644
--- a/Makefile
+++ b/Makefile
@@ -128,8 +128,11 @@ depend:
#
-# Run the clang.llvm.org static code analysis tool on the C sources.
-# (at least checker-231 is required for scan-build to work this way)
+# Run the Clang static code analysis tool on the sources, available here:
+#
+# http://clang-analyzer.llvm.org
+#
+# At least checker-231 is required.
#
.PHONY: clang clang-changes
@@ -141,6 +144,26 @@ clang-changes:
#
+# Run the STACK tool on the sources, available here:
+#
+# http://css.csail.mit.edu/stack/
+#
+# Do the following to pass options to configure:
+#
+# make CONFIGFLAGS="--foo --bar" stack
+#
+
+.PHONY: stack
+stack:
+ stack-build ./configure $(CONFIGFLAGS)
+ stack-build $(MAKE) $(MFLAGS) clean all
+ poptck
+ $(MAKE) $(MFLAGS) distclean
+ $(RM) */*.ll
+ $(RM) */*.ll.out
+
+
+#
# Generate a ctags file...
#