8 $(notmuch_compat_srcs) \
11 smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o)
13 $(dir)/arg-test: $(dir)/arg-test.o command-line-arguments.o util/libutil.a
14 $(call quiet,CC) -I. $^ -o $@
16 $(dir)/hex-xcode: $(dir)/hex-xcode.o command-line-arguments.o util/libutil.a
17 $(call quiet,CC) -I. $^ -o $@ -ltalloc
19 random_corpus_deps = $(dir)/random-corpus.o $(dir)/database-test.o \
20 notmuch-config.o command-line-arguments.o \
21 lib/libnotmuch.a util/libutil.a \
22 parse-time-string/libparse-time-string.a
24 $(dir)/random-corpus: $(random_corpus_deps)
25 $(call quiet,CXX) $(CFLAGS_FINAL) $^ -o $@ $(CONFIGURE_LDFLAGS)
27 $(dir)/smtp-dummy: $(smtp_dummy_modules)
28 $(call quiet,CC) $^ -o $@
30 $(dir)/symbol-test: $(dir)/symbol-test.o
31 $(call quiet,CXX) $^ -o $@ -Llib -lnotmuch $(XAPIAN_LDFLAGS)
33 $(dir)/parse-time: $(dir)/parse-time.o parse-time-string/parse-time-string.o
34 $(call quiet,CC) $^ -o $@
38 TEST_BINARIES=$(dir)/arg-test \
40 $(dir)/random-corpus \
45 test-binaries: $(TEST_BINARIES)
47 test: all test-binaries
48 @${dir}/notmuch-test $(OPTIONS)
52 SRCS := $(SRCS) $(smtp_dummy_srcs)
53 CLEAN := $(CLEAN) $(dir)/smtp-dummy $(dir)/smtp-dummy.o \
54 $(dir)/symbol-test $(dir)/symbol-test.o \
55 $(dir)/arg-test $(dir)/arg-test.o \
56 $(dir)/hex-xcode $(dir)/hex-xcode.o \
57 $(dir)/database-test.o \
58 $(dir)/random-corpus $(dir)/random-corpus.o \
59 $(dir)/parse-time $(dir)/parse-time.o \
60 $(dir)/corpus.mail $(dir)/test-results $(dir)/tmp.*