aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-28 10:42:07 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-28 12:50:10 -0700
commitf9bbd7baa07110c7f345c8413e2426d00382cb1c (patch)
tree4669ed380656bfd23b8203d4fa93601e8dd4e553 /Makefile
parentb04cc337388ea93cdd8a569a87f8bdc442f0cb33 (diff)
Add full-text indexing using the GMime library for parsing.
This is based on the old notmuch-index-message.cc from early in the history of notmuch, but considerably cleaned up now that we have some experience with Xapian and know just what we want to index, (rather than just blindly trying to index exactly what sup does). This does slow down notmuch_database_add_message a *lot*, but I've got some ideas for getting some time back.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index b4d77b4e..a1a7a15c 100644
--- a/Makefile
+++ b/Makefile
@@ -2,27 +2,30 @@ PROGS=notmuch
WARN_FLAGS=-Wall -Wextra -Wmissing-declarations -Wwrite-strings -Wswitch-enum
-CDEPENDS_FLAGS=`pkg-config --cflags glib-2.0 talloc`
-CXXDEPENDS_FLAGS=`pkg-config --cflags glib-2.0 talloc` `xapian-config --cxxflags`
+CDEPENDS_FLAGS=`pkg-config --cflags glib-2.0 gmime-2.4 talloc`
+CXXDEPENDS_FLAGS=$(CDEPENDS_FLAGS) `xapian-config --cxxflags`
MYCFLAGS=$(WARN_FLAGS) -O0 -g $(CDEPENDS_FLAGS)
MYCXXFLAGS=$(WARN_FLAGS) -O0 -g $(CXXDEPENDS_FLAGS)
-MYLDFLAGS=`pkg-config --libs glib-2.0 talloc` `xapian-config --libs`
+MYLDFLAGS=`pkg-config --libs glib-2.0 gmime-2.4 talloc` `xapian-config --libs`
-MODULES= \
- notmuch.o \
+LIBRARY= \
database.o \
date.o \
+ index.o \
+ libsha1.o \
message.o \
message-file.o \
query.o \
sha1.o \
tags.o \
thread.o \
- libsha1.o \
xutil.o
+MAIN= \
+ notmuch.o
+
all: $(PROGS)
%.o: %.cc
@@ -31,7 +34,7 @@ all: $(PROGS)
%.o: %.c
$(CC) -c $(CFLAGS) $(MYCFLAGS) $< -o $@
-notmuch: $(MODULES)
+notmuch: $(MAIN) $(LIBRARY)
$(CC) $(MYLDFLAGS) $^ -o $@
Makefile.dep: *.c *.cc