mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
fa562fa22b
With all the de-glib-ification out of the way, we can now use it to allow for date-based sorting of Xapian search results.
26 lines
784 B
Makefile
26 lines
784 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 date.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
|