This adds source files in compat, test, and util to SRCS so that the
top-level Makefile.local will generate dependency files for them.
 ifneq ($(HAVE_STRCASESTR),1)
 notmuch_compat_srcs += $(dir)/strcasestr.c
 endif
+
+SRCS := $(SRCS) $(notmuch_compat_srcs)
 
 
 check: test
 
+SRCS := $(SRCS) $(smtp_dummy_srcs)
 CLEAN := $(CLEAN) $(dir)/smtp-dummy $(dir)/smtp-dummy.o \
         $(dir)/symbol-test $(dir)/symbol-test.o \
         $(dir)/arg-test $(dir)/arg-test.o
 
 $(dir)/libutil.a: $(libutil_modules)
        $(call quiet,AR) rcs $@ $^
 
+SRCS := $(SRCS) $(libutil_c_srcs)
 CLEAN := $(CLEAN) $(libutil_modules) $(dir)/libutil.a