aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/Makefile.local
diff options
context:
space:
mode:
authorGravatar Amadeusz Żołnowski <aidecoe@aidecoe.name>2011-11-26 22:14:20 +0100
committerGravatar David Bremner <bremner@debian.org>2011-11-27 08:03:04 -0800
commit945196d79b56356aef945fad6f34a6a1a3a97ce1 (patch)
treec19f2c41ddbbd2585ed14d50560c4b5552e55738 /test/Makefile.local
parentac8576de63b4383aef597e1db5af939e3b46594c (diff)
Build symbol-test with make instead of hardcoding in symbol-hiding.
If symbol-test is built in symbol-hiding with hardcoded g++ invokation, it's not so easy to pass $(srcdir) which is required to find notmuch.h when srcdir and builddir are separate directories.
Diffstat (limited to 'test/Makefile.local')
-rw-r--r--test/Makefile.local7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/Makefile.local b/test/Makefile.local
index 9b3308a1..646779e1 100644
--- a/test/Makefile.local
+++ b/test/Makefile.local
@@ -11,10 +11,13 @@ smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o)
$(dir)/smtp-dummy: $(smtp_dummy_modules)
$(call quiet,CC) $^ -o $@
+$(dir)/symbol-test: $(dir)/symbol-test.o
+ $(call quiet,CC) $^ -o $@ -Llib -lnotmuch -lxapian
+
.PHONY: test check
-test: all $(dir)/smtp-dummy
+test: all $(dir)/smtp-dummy $(dir)/symbol-test
@${dir}/notmuch-test $(OPTIONS)
check: test
-CLEAN := $(CLEAN) $(dir)/smtp-dummy $(dir)/smtp-dummy.o
+CLEAN := $(CLEAN) $(dir)/smtp-dummy $(dir)/smtp-dummy.o $(dir)/symbol-test $(dir)/symbol-test.o