diff options
author | Todd C. Miller <Todd.Miller@courtesan.com> | 2014-01-13 09:50:39 -0700 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@courtesan.com> | 2014-01-13 09:50:39 -0700 |
commit | 98cbd308811f1dcd592fdb32beacf7744a053f2b (patch) | |
tree | b436bd5f645db6e5211d279efd085bebe861c871 /src | |
parent | b509096023e02c58b0008fec6c3939bad9292811 (diff) | |
download | sudo-98cbd308811f1dcd592fdb32beacf7744a053f2b.tar.gz |
Add cppcheck target to run cppcheck on all source files.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index d418971a6..83c8a2e4a 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -55,6 +55,9 @@ PIE_LDFLAGS = @PIE_LDFLAGS@ SSP_CFLAGS = @SSP_CFLAGS@ SSP_LDFLAGS = @SSP_LDFLAGS@ +# cppcheck options, usually set in the top-level Makefile +CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX + # Where to install things... prefix = @prefix@ exec_prefix = @exec_prefix@ @@ -160,6 +163,9 @@ uninstall: $(DESTDIR)$(libexecdir)/sudo/sesh \ $(DESTDIR)$(noexecdir)/$(noexecfile) +cppcheck: + cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I. -I$(srcdir) -I$(top_srcdir) $(srcdir)/*.c + check: $(TEST_PROGS) ./check_ttyname |