aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
blob: c1fbd2a19bcc2d6f09c67677b25073660fb6009f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PROGS=notmuch notmuch-index-message xapian-dump

MYCFLAGS=-Wall -O0 -g
MYCXXFLAGS=-Wall -O0 -g

all: $(PROGS)

notmuch: notmuch.c
	$(CC) $(CFLAGS) $(MYCFLAGS) notmuch.c `pkg-config --cflags --libs glib-2.0` -o notmuch

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)