]> git.notmuchmail.org Git - notmuch/blobdiff - Makefile
add_files: Pull one stat out of the recrusive function.
[notmuch] / Makefile
index ff654e11e7944624d55aaa3ab86c98028f35bfe3..13f2b28d3f4a2081f4fd1b2075ec5ad1fbea3290 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,17 @@ 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
@@ -13,7 +24,7 @@ all: $(PROGS)
 %.o: %.c
        $(CC) -c $(CFLAGS) $(MYCFLAGS) $< -o $@
 
-notmuch: notmuch.o database.o date.o message.o message-file.o query.o xutil.o
+notmuch: $(MODULES)
        $(CC) $(MYLDFLAGS) $^ -o $@
 
 Makefile.dep: *.c *.cc