X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=Makefile;h=13f2b28d3f4a2081f4fd1b2075ec5ad1fbea3290;hp=34716c294bb6233ab6ec2e17ca377a65da2c177a;hb=c78358fa8adc0e8fa4f889e479df76e8df186264;hpb=cd4a8734d3bb151df70d51a84903bff994439b05 diff --git a/Makefile b/Makefile index 34716c29..13f2b28d 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,20 @@ PROGS=notmuch -MYCFLAGS=-Wall -O0 -g `pkg-config --cflags glib-2.0` +MYCFLAGS=-Wall -O0 -g `pkg-config --cflags glib-2.0 talloc` MYCXXFLAGS=$(MYCFLAGS) `xapian-config --cxxflags` -MYLDFLAGS=`pkg-config --libs glib-2.0` `xapian-config --libs` +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) @@ -13,7 +24,7 @@ all: $(PROGS) %.o: %.c $(CC) -c $(CFLAGS) $(MYCFLAGS) $< -o $@ -notmuch: notmuch.o database.o date.o message-file.o xutil.o +notmuch: $(MODULES) $(CC) $(MYLDFLAGS) $^ -o $@ Makefile.dep: *.c *.cc