]> git.notmuchmail.org Git - notmuch/commitdiff
test: Link to compat files when building program during "make test"
authorCarl Worth <cworth@cworth.org>
Wed, 18 May 2011 20:15:46 +0000 (13:15 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 18 May 2011 20:15:46 +0000 (13:15 -0700)
The compilation of the smtp-dummy program would fail if a build was
attempted on a system without getline. Fix this by simply including
the existing notmuch_compat_srcs variable when constructing the list
of source files for compiling smtp-dummy.

test/Makefile.local

index 7b602bcf88fadfb35fdc50377f62c7a90f513d59..8eb0433098b20958e42d6831e5bcc4e3e6e5af6d 100644 (file)
@@ -2,7 +2,13 @@
 
 dir := test
 
 
 dir := test
 
-$(dir)/smtp-dummy: $(dir)/smtp-dummy.c
+smtp_dummy_srcs =              \
+       $(notmuch_compat_srcs)  \
+       $(dir)/smtp-dummy.c
+
+smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o)
+
+$(dir)/smtp-dummy: $(smtp_dummy_modules)
        $(call quiet,CC) $^ -o $@
 
 .PHONY: test check
        $(call quiet,CC) $^ -o $@
 
 .PHONY: test check