]> git.notmuchmail.org Git - notmuch/blob - lib/Makefile.local
a7562c9bd28a3ee18c6c29ed38348070b3cd9f12
[notmuch] / lib / Makefile.local
1 dir=lib
2 extra_cflags += -I$(dir)
3
4 libnotmuch_c_srcs =             \
5         $(dir)/libsha1.c        \
6         $(dir)/message-file.c   \
7         $(dir)/messages.c       \
8         $(dir)/sha1.c           \
9         $(dir)/tags.c           \
10         $(dir)/xutil.c
11
12 libnotmuch_cxx_srcs =           \
13         $(dir)/database.cc      \
14         $(dir)/index.cc         \
15         $(dir)/message.cc       \
16         $(dir)/query.cc         \
17         $(dir)/thread.cc
18
19 libnotmuch_modules = $(libnotmuch_c_srcs:.c=.o) $(libnotmuch_cxx_srcs:.cc=.o)
20 $(dir)/notmuch.a: $(libnotmuch_modules)
21         $(call quiet,AR) rcs $@ $^
22
23 SRCS  := $(SRCS) $(libnotmuch_c_srcs) $(libnotmuch_cxx_srcs)
24 CLEAN := $(CLEAN) $(libnotmuch_modules) $(dir)/notmuch.a