]> git.notmuchmail.org Git - notmuch/blobdiff - util/Makefile.local
xutil.c: remove duplicate copies, create new library libutil.a to contain xutil.
[notmuch] / util / Makefile.local
diff --git a/util/Makefile.local b/util/Makefile.local
new file mode 100644 (file)
index 0000000..2ff42b3
--- /dev/null
@@ -0,0 +1,11 @@
+# -*- makefile -*-
+
+dir := util
+extra_cflags += -I$(srcdir)/$(dir)
+
+libutil_c_srcs := $(dir)/xutil.c $(dir)/error_util.c
+
+libutil_modules := $(libutil_c_srcs:.c=.o)
+
+$(dir)/libutil.a: $(libutil_modules)
+       $(call quiet,AR) rcs $@ $^