]> git.cworth.org Git - obsolete/notmuch-old/blobdiff - lib/Makefile.local
Makefile: Move compat sources from the client code to the library.
[obsolete/notmuch-old] / lib / Makefile.local
index 03a458b250d05c84f6cef18e66320a3722148466..dc608ef0994c4b86b76ec3af16c23a5fb5fc7981 100644 (file)
@@ -30,6 +30,7 @@ dir := lib
 extra_cflags += -I$(dir) -fPIC
 
 libnotmuch_c_srcs =            \
+       $(notmuch_compat_srcs)  \
        $(dir)/libsha1.c        \
        $(dir)/message-file.c   \
        $(dir)/messages.c       \
@@ -51,7 +52,7 @@ $(dir)/libnotmuch.a: $(libnotmuch_modules)
        $(call quiet,AR) rcs $@ $^
 
 $(dir)/$(LIBNAME): $(libnotmuch_modules)
-       $(call quiet,CXX $(CXXFLAGS)) $^ $(FINAL_LDFLAGS) -shared -Wl,-soname=$(SONAME) -o $@
+       $(call quiet,CXX $(CXXFLAGS)) $^ $(FINAL_LIBNOTMUCH_LDFLAGS) -shared -Wl,-soname=$(SONAME) -o $@
 
 $(dir)/$(SONAME): $(dir)/$(LIBNAME)
        ln -sf $(LIBNAME) $@
@@ -66,8 +67,8 @@ install-$(dir):
        install -m0644 $(dir)/$(LIBNAME) $(DESTDIR)$(libdir)/
        ln -sf $(LIBNAME) $(DESTDIR)$(libdir)/$(SONAME)
        ln -sf $(LIBNAME) $(DESTDIR)$(libdir)/$(LINKER_NAME)
-       mkdir -p $(DESTDIR)$(prefix)/include/
-       install -m0644 $(dir)/notmuch.h $(DESTDIR)$(prefix)/include/
+       mkdir -p $(DESTDIR)$(includedir)
+       install -m0644 $(dir)/notmuch.h $(DESTDIR)$(includedir)/
 
 SRCS  := $(SRCS) $(libnotmuch_c_srcs) $(libnotmuch_cxx_srcs)
 CLEAN := $(CLEAN) $(libnotmuch_modules) $(dir)/$(SONAME) $(dir)/$(LINKER_NAME) $(dir)$(LIBNAME) libnotmuch.a