]> git.notmuchmail.org Git - notmuch/blob - Makefile
date.c: Rename function to notmuch_parse_date
[notmuch] / Makefile
1 PROGS=notmuch notmuch-index-message xapian-dump
2
3 MYCFLAGS=-Wall -O0 -g `pkg-config --cflags glib-2.0`
4 MYCXXFLAGS=$(MYCFLAGS) `xapian-config --cxxflags`
5
6 MYLDFLAGS=`pkg-config --libs glib-2.0` `xapian-config --libs`
7
8 all: $(PROGS)
9
10 %.o: %.cc
11         $(CXX) -c $(CXXFLAGS) $(MYCXXFLAGS) $^ -o $@
12
13 %.o: %.c
14         $(CC) -c $(CFLAGS) $(MYCFLAGS) $^ -o $@
15
16 notmuch: notmuch.o database.o message.o xutil.o
17         $(CC) $(MYLDFLAGS) $^ -o $@
18
19 notmuch-index-message: notmuch-index-message.cc
20         $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) notmuch-index-message.cc `pkg-config --cflags --libs gmime-2.4` `xapian-config --cxxflags --libs` -o notmuch-index-message
21
22 xapian-dump: xapian-dump.cc
23         $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) xapian-dump.cc `xapian-config --libs --cxxflags` -o xapian-dump
24
25 clean:
26         rm -f $(PROGS) *.o