From 945196d79b56356aef945fad6f34a6a1a3a97ce1 Mon Sep 17 00:00:00 2001 From: Amadeusz Żołnowski Date: Sat, 26 Nov 2011 22:14:20 +0100 Subject: 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. --- test/Makefile.local | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/Makefile.local') 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 -- cgit v1.2.3