aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-17 08:26:58 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-17 08:26:58 -0700
commit36640b303ea68ae28e89f27694356141f515819b (patch)
tree48f8ea52f0f19678f5cae5f405fa71dc190ac736 /Makefile
parent9c3807e688e587070407f671e884bf1e9b9892a5 (diff)
Start a new top-level executable: notmuch.
Of course, there's not much that this program does yet. It's got some structure for some sub-commands that don't do anything. And it has a main command that prints some explanatory text and then counts all the regular files in your mail archive.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 17f29fb1..c1fbd2a1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,15 @@
-PROGS=notmuch-index-message xapian-dump
+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
- $(CC) $(CXXFLAGS) $(MYCXXFLAGS) notmuch-index-message.cc `pkg-config --cflags --libs gmime-2.4` `xapian-config --cxxflags --libs` -o notmuch-index-message
+ $(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