2009-11-10 07:14:49 -08:00
|
|
|
dir=lib
|
2009-11-10 08:34:54 -08:00
|
|
|
extra_cflags += -I$(dir)
|
2009-11-10 07:14:49 -08:00
|
|
|
|
2009-11-10 08:04:54 -08:00
|
|
|
libnotmuch_c_srcs = \
|
|
|
|
$(dir)/libsha1.c \
|
|
|
|
$(dir)/message-file.c \
|
2009-11-14 23:05:17 -08:00
|
|
|
$(dir)/messages.c \
|
2009-11-10 08:04:54 -08:00
|
|
|
$(dir)/sha1.c \
|
|
|
|
$(dir)/tags.c \
|
|
|
|
$(dir)/xutil.c
|
2009-11-10 07:14:49 -08:00
|
|
|
|
2009-11-10 08:04:54 -08:00
|
|
|
libnotmuch_cxx_srcs = \
|
|
|
|
$(dir)/database.cc \
|
|
|
|
$(dir)/index.cc \
|
|
|
|
$(dir)/message.cc \
|
|
|
|
$(dir)/query.cc \
|
|
|
|
$(dir)/thread.cc
|
|
|
|
|
|
|
|
libnotmuch_modules = $(libnotmuch_c_srcs:.c=.o) $(libnotmuch_cxx_srcs:.cc=.o)
|
|
|
|
$(dir)/notmuch.a: $(libnotmuch_modules)
|
2009-11-21 20:32:20 +00:00
|
|
|
$(call quiet,AR) rcs $@ $^
|
2009-11-10 07:14:49 -08:00
|
|
|
|
2009-11-10 08:04:54 -08:00
|
|
|
SRCS := $(SRCS) $(libnotmuch_c_srcs) $(libnotmuch_cxx_srcs)
|
|
|
|
CLEAN := $(CLEAN) $(libnotmuch_modules) $(dir)/notmuch.a
|