Index: library/mongodb/Makefile.in =================================================================== diff -u -r7fcc530e2cdd3a298ffde6a1c4633231e0494257 -r6252b8e8f27440a23844e4695f76c92715890bd8 --- library/mongodb/Makefile.in (.../Makefile.in) (revision 7fcc530e2cdd3a298ffde6a1c4633231e0494257) +++ library/mongodb/Makefile.in (.../Makefile.in) (revision 6252b8e8f27440a23844e4695f76c92715890bd8) @@ -127,7 +127,7 @@ TCLSH_ENV = TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library` \ @LD_LIBRARY_PATH_VAR@="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \ PATH="$(EXTRA_PATH):$(PATH)" \ - TCLLIBPATH="$(top_builddir)" + TCLLIBPATH="../../ $(top_builddir)" TCLSH_PROG = @TCLSH_PROG@ TCLSH = $(TCLSH_ENV) $(TCLSH_PROG) SHARED_BUILD = @SHARED_BUILD@ @@ -157,6 +157,8 @@ # Start of user-definable TARGETS section #======================================================================== +CPPCHECK = cppcheck + #======================================================================== # TEA TARGETS. Please note that the "libraries:" target refers to platform # independent files, and the "binaries:" target inclues executable programs and @@ -178,6 +180,9 @@ libraries: +cppcheck: + $(CPPCHECK) --enable=all *.c $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) \ + -DNDEBUG=1 -I/usr/include -D__x86_64__ doc: @echo "If you have documentation to create, place the commands to" @echo "build the docs in the 'doc:' target. For example:"