From f9bbd7baa07110c7f345c8413e2426d00382cb1c Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 28 Oct 2009 10:42:07 -0700 Subject: 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. --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3