]> git.notmuchmail.org Git - notmuch/blob - lib/Makefile.local
Makefile: Fix dependency generation to make .d files themselves dependent.
[notmuch] / lib / Makefile.local
1 dir=lib
2
3 libnotmuch_c_srcs =             \
4         $(dir)/libsha1.c        \
5         $(dir)/message-file.c   \
6         $(dir)/sha1.c           \
7         $(dir)/tags.c           \
8         $(dir)/xutil.c
9
10 libnotmuch_cxx_srcs =           \
11         $(dir)/database.cc      \
12         $(dir)/index.cc         \
13         $(dir)/message.cc       \
14         $(dir)/query.cc         \
15         $(dir)/thread.cc
16
17 libnotmuch_modules = $(libnotmuch_c_srcs:.c=.o) $(libnotmuch_cxx_srcs:.cc=.o)
18 $(dir)/notmuch.a: $(libnotmuch_modules)
19         $(AR) rcs $@ $^
20
21 SRCS  := $(SRCS) $(libnotmuch_c_srcs) $(libnotmuch_cxx_srcs)
22 CLEAN := $(CLEAN) $(libnotmuch_modules) $(dir)/notmuch.a