mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
0e777a8f80
Since we're currently just trying to stitch together In-Reply-To and References headers we don't need that much sophistication. It's when we later add full-text searching that GMime will be useful. So for now, even though my own code here is surely very buggy compared to GMime it's also a lot faster. And speed is what we're after for the initial index creation.
26 lines
777 B
Makefile
26 lines
777 B
Makefile
PROGS=notmuch notmuch-index-message xapian-dump
|
|
|
|
MYCFLAGS=-Wall -O0 -g `pkg-config --cflags glib-2.0`
|
|
MYCXXFLAGS=$(MYCFLAGS) `xapian-config --cxxflags`
|
|
|
|
MYLDFLAGS=`pkg-config --libs glib-2.0` `xapian-config --libs`
|
|
|
|
all: $(PROGS)
|
|
|
|
%.o: %.cc
|
|
$(CXX) -c $(CXXFLAGS) $(MYCXXFLAGS) $^ -o $@
|
|
|
|
%.o: %.c
|
|
$(CC) -c $(CFLAGS) $(MYCFLAGS) $^ -o $@
|
|
|
|
notmuch: notmuch.o database.o message.o xutil.o
|
|
$(CC) $(MYLDFLAGS) $^ -o $@
|
|
|
|
notmuch-index-message: notmuch-index-message.cc
|
|
$(CXX) $(CXXFLAGS) $(MYCXXFLAGS) notmuch-index-message.cc `pkg-config --cflags --libs gmime-2.4` `xapian-config --cxxflags --libs` -o notmuch-index-message
|
|
|
|
xapian-dump: xapian-dump.cc
|
|
$(CXX) $(CXXFLAGS) $(MYCXXFLAGS) xapian-dump.cc `xapian-config --libs --cxxflags` -o xapian-dump
|
|
|
|
clean:
|
|
rm -f $(PROGS) *.o
|