mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 20:38:08 +01:00
test: use $(srcdir) instead of . as include path
This is needed for out of tree builds. The functional change is the modification of extra_cflags; the other changes are cosmetic.
This commit is contained in:
parent
26556f9b11
commit
68c2c5d31c
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ dir := test
|
||||||
|
|
||||||
# save against changes in $(dir)
|
# save against changes in $(dir)
|
||||||
test_src_dir := $(dir)
|
test_src_dir := $(dir)
|
||||||
extra_cflags += -I.
|
extra_cflags += -I$(srcdir)
|
||||||
|
|
||||||
smtp_dummy_srcs = \
|
smtp_dummy_srcs = \
|
||||||
$(notmuch_compat_srcs) \
|
$(notmuch_compat_srcs) \
|
||||||
|
@ -13,10 +13,10 @@ smtp_dummy_srcs = \
|
||||||
smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o)
|
smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o)
|
||||||
|
|
||||||
$(dir)/arg-test: $(dir)/arg-test.o command-line-arguments.o util/libutil.a
|
$(dir)/arg-test: $(dir)/arg-test.o command-line-arguments.o util/libutil.a
|
||||||
$(call quiet,CC) -I. $^ -o $@
|
$(call quiet,CC) $^ -o $@
|
||||||
|
|
||||||
$(dir)/hex-xcode: $(dir)/hex-xcode.o command-line-arguments.o util/libutil.a
|
$(dir)/hex-xcode: $(dir)/hex-xcode.o command-line-arguments.o util/libutil.a
|
||||||
$(call quiet,CC) -I. $^ -o $@ -ltalloc
|
$(call quiet,CC) $^ -o $@ -ltalloc
|
||||||
|
|
||||||
random_corpus_deps = $(dir)/random-corpus.o $(dir)/database-test.o \
|
random_corpus_deps = $(dir)/random-corpus.o $(dir)/database-test.o \
|
||||||
notmuch-config.o command-line-arguments.o \
|
notmuch-config.o command-line-arguments.o \
|
||||||
|
|
Loading…
Reference in a new issue