mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
526b7144f7
It's nice that Xapian provides a little function to print a textual representation of the entire query tree. So now, if you compile like so: make CFLAGS=-DDEBUG_QUERY then you get a nice output of the query string received by the query module, and the final query actually being sent to Xapian.
35 lines
634 B
Makefile
35 lines
634 B
Makefile
PROGS=notmuch
|
|
|
|
MYCFLAGS=-Wall -O0 -g `pkg-config --cflags glib-2.0 talloc`
|
|
MYCXXFLAGS=$(MYCFLAGS) `xapian-config --cxxflags`
|
|
|
|
MYLDFLAGS=`pkg-config --libs glib-2.0 talloc` `xapian-config --libs`
|
|
|
|
MODULES= \
|
|
notmuch.o \
|
|
database.o \
|
|
date.o \
|
|
message.o \
|
|
message-file.o \
|
|
query.o \
|
|
sha1.o \
|
|
libsha1.o \
|
|
xutil.o
|
|
|
|
all: $(PROGS)
|
|
|
|
%.o: %.cc
|
|
$(CXX) -c $(CFLAGS) $(CXXFLAGS) $(MYCXXFLAGS) $< -o $@
|
|
|
|
%.o: %.c
|
|
$(CC) -c $(CFLAGS) $(MYCFLAGS) $< -o $@
|
|
|
|
notmuch: $(MODULES)
|
|
$(CC) $(MYLDFLAGS) $^ -o $@
|
|
|
|
Makefile.dep: *.c *.cc
|
|
$(CC) -M $(CPPFLAGS) $(MYCFLAGS) $^ > $@
|
|
-include Makefile.dep
|
|
|
|
clean:
|
|
rm -f $(PROGS) *.o Makefile.dep
|