diff options
Diffstat (limited to 'compat/Makefile.in')
-rw-r--r-- | compat/Makefile.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/compat/Makefile.in b/compat/Makefile.in index 843200e38..034daedaf 100644 --- a/compat/Makefile.in +++ b/compat/Makefile.in @@ -1,5 +1,5 @@ # -# Copyright (c) 2011-2013 Todd C. Miller <Todd.Miller@courtesan.com> +# Copyright (c) 2011-2014 Todd C. Miller <Todd.Miller@courtesan.com> # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -54,6 +54,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 + # OS dependent defines DEFS = @OSDEFS@ @@ -130,6 +133,9 @@ install-plugin: uninstall: +cppcheck: + cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c + check: $(TEST_PROGS) @if test X"$(cross_compiling)" != X"yes"; then \ if test -f fnm_test; then \ @@ -164,6 +170,9 @@ realclean: distclean cleandir: realclean # Autogenerated dependencies, do not modify +clock_gettime.lo: $(srcdir)/clock_gettime.c $(incdir)/missing.h \ + $(top_builddir)/config.h $(top_srcdir)/compat/timespec.h + $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/clock_gettime.c closefrom.lo: $(srcdir)/closefrom.c $(incdir)/missing.h $(top_builddir)/config.h $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/closefrom.c fnm_test.o: $(srcdir)/regress/fnmatch/fnm_test.c $(incdir)/missing.h \ |