+
+$(dir)/$(SONAME) : $(libnotmuch_modules)
+ $(call quiet,CXX,$(LDFLAGS)) $^ $(FINAL_LDFLAGS) -shared -Wl,-soname=$(SONAME) -o $@
+
+$(dir)/libnotmuch.so: $(dir)/$(SONAME)
+ ln -fs $(SONAME) $@
+
+install: install-$(dir)
+
+install-$(dir):
+ install -d $(DESTDIR)$(libdir)/
+ install $(dir)/$(SONAME) $(DESTDIR)$(libdir)/
+ install $(dir)/notmuch.h $(DESTDIR)$(prefix)/include/
+ ln -sf $(SONAME) $(DESTDIR)$(libdir)/libnotmuch.so