--- embedaddon/sudo/plugins/system_group/Makefile.in 2013/07/22 10:46:13 1.1.1.3 +++ embedaddon/sudo/plugins/system_group/Makefile.in 2014/06/15 16:12:55 1.1.1.5 @@ -1,5 +1,5 @@ # -# Copyright (c) 2011-2013 Todd C. Miller +# Copyright (c) 2011-2014 Todd C. Miller # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -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@ @@ -119,11 +122,16 @@ install-includes: install-doc: install-plugin: install-dirs system_group.la - $(INSTALL) -b~ -m $(shlib_mode) .libs/system_group$(soext) $(DESTDIR)$(plugindir)/system_group.so + if [ X"$(soext)" != X"" ]; then \ + $(INSTALL) -b~ -m $(shlib_mode) .libs/system_group$(soext) $(DESTDIR)$(plugindir)/system_group.so; \ + fi uninstall: -rm -f $(DESTDIR)$(plugindir)/system_group.so +cppcheck: + cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c + check: clean: @@ -142,7 +150,8 @@ realclean: distclean cleandir: realclean # Autogenerated dependencies, do not modify -system_group.lo: $(srcdir)/system_group.c $(top_builddir)/config.h \ - $(top_srcdir)/compat/stdbool.h $(top_srcdir)/compat/dlfcn.h \ - $(incdir)/sudo_plugin.h $(incdir)/missing.h +system_group.lo: $(srcdir)/system_group.c $(incdir)/missing.h \ + $(incdir)/sudo_dso.h $(incdir)/sudo_plugin.h \ + $(incdir)/sudo_util.h $(top_builddir)/config.h \ + $(top_srcdir)/compat/stdbool.h $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/system_group.c