]> git.notmuchmail.org Git - notmuch/blob - test/Makefile.local
Build symbol-test with make instead of hardcoding in symbol-hiding.
[notmuch] / test / Makefile.local
1 # -*- makefile -*-
2
3 dir := test
4
5 smtp_dummy_srcs =               \
6         $(notmuch_compat_srcs)  \
7         $(dir)/smtp-dummy.c
8
9 smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o)
10
11 $(dir)/smtp-dummy: $(smtp_dummy_modules)
12         $(call quiet,CC) $^ -o $@
13
14 $(dir)/symbol-test: $(dir)/symbol-test.o
15         $(call quiet,CC) $^ -o $@ -Llib -lnotmuch -lxapian
16
17 .PHONY: test check
18 test:   all $(dir)/smtp-dummy $(dir)/symbol-test
19         @${dir}/notmuch-test $(OPTIONS)
20
21 check: test
22
23 CLEAN := $(CLEAN) $(dir)/smtp-dummy $(dir)/smtp-dummy.o $(dir)/symbol-test $(dir)/symbol-test.o