2010-09-17 12:10:54 -07:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
dir := test
|
|
|
|
|
2011-12-07 14:37:13 -04:00
|
|
|
extra_cflags += -I.
|
|
|
|
|
2011-05-18 13:15:46 -07:00
|
|
|
smtp_dummy_srcs = \
|
|
|
|
$(notmuch_compat_srcs) \
|
|
|
|
$(dir)/smtp-dummy.c
|
|
|
|
|
|
|
|
smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o)
|
|
|
|
|
2011-12-07 14:37:13 -04:00
|
|
|
$(dir)/arg-test: $(dir)/arg-test.o command-line-arguments.o util/libutil.a
|
|
|
|
$(call quiet,CC) -I. $^ -o $@
|
|
|
|
|
2011-05-18 13:15:46 -07:00
|
|
|
$(dir)/smtp-dummy: $(smtp_dummy_modules)
|
2010-10-27 10:42:46 -07:00
|
|
|
$(call quiet,CC) $^ -o $@
|
|
|
|
|
2011-11-26 22:14:20 +01:00
|
|
|
$(dir)/symbol-test: $(dir)/symbol-test.o
|
2011-12-15 20:41:58 +01:00
|
|
|
$(call quiet,CXX) $^ -o $@ -Llib -lnotmuch -lxapian
|
2011-11-26 22:14:20 +01:00
|
|
|
|
2010-11-05 17:50:12 -07:00
|
|
|
.PHONY: test check
|
2011-12-03 14:05:08 -08:00
|
|
|
|
2011-12-07 14:37:13 -04:00
|
|
|
test-binaries: $(dir)/arg-test $(dir)/smtp-dummy $(dir)/symbol-test
|
2011-12-03 14:05:08 -08:00
|
|
|
|
|
|
|
test: all test-binaries
|
2010-09-20 14:06:38 -07:00
|
|
|
@${dir}/notmuch-test $(OPTIONS)
|
2010-10-27 10:42:46 -07:00
|
|
|
|
2010-11-05 17:50:12 -07:00
|
|
|
check: test
|
|
|
|
|
2012-01-15 15:20:42 -05:00
|
|
|
SRCS := $(SRCS) $(smtp_dummy_srcs)
|
2011-12-07 14:37:13 -04:00
|
|
|
CLEAN := $(CLEAN) $(dir)/smtp-dummy $(dir)/smtp-dummy.o \
|
|
|
|
$(dir)/symbol-test $(dir)/symbol-test.o \
|
|
|
|
$(dir)/arg-test $(dir)/arg-test.o
|