aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/Makefile.local
diff options
context:
space:
mode:
Diffstat (limited to 'test/Makefile.local')
-rw-r--r--test/Makefile.local11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/Makefile.local b/test/Makefile.local
index bffbbdbd..6cb6c829 100644
--- a/test/Makefile.local
+++ b/test/Makefile.local
@@ -2,12 +2,17 @@
dir := test
+extra_cflags += -I.
+
smtp_dummy_srcs = \
$(notmuch_compat_srcs) \
$(dir)/smtp-dummy.c
smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o)
+$(dir)/arg-test: $(dir)/arg-test.o command-line-arguments.o util/libutil.a
+ $(call quiet,CC) -I. $^ -o $@
+
$(dir)/smtp-dummy: $(smtp_dummy_modules)
$(call quiet,CC) $^ -o $@
@@ -16,11 +21,13 @@ $(dir)/symbol-test: $(dir)/symbol-test.o
.PHONY: test check
-test-binaries: $(dir)/smtp-dummy $(dir)/symbol-test
+test-binaries: $(dir)/arg-test $(dir)/smtp-dummy $(dir)/symbol-test
test: all test-binaries
@${dir}/notmuch-test $(OPTIONS)
check: test
-CLEAN := $(CLEAN) $(dir)/smtp-dummy $(dir)/smtp-dummy.o $(dir)/symbol-test $(dir)/symbol-test.o
+CLEAN := $(CLEAN) $(dir)/smtp-dummy $(dir)/smtp-dummy.o \
+ $(dir)/symbol-test $(dir)/symbol-test.o \
+ $(dir)/arg-test $(dir)/arg-test.o