]> git.cworth.org Git - obsolete/notmuch-old/blobdiff - lib/getdate/Makefile.local
lib: Compile getdate source code and include it in notmuch.a
[obsolete/notmuch-old] / lib / getdate / Makefile.local
diff --git a/lib/getdate/Makefile.local b/lib/getdate/Makefile.local
new file mode 100644 (file)
index 0000000..363cb3c
--- /dev/null
@@ -0,0 +1,13 @@
+dir := lib/getdate
+extra_cflags += -I$(dir)
+
+getdate_c_srcs :=              \
+       $(dir)/c-ctype.c        \
+       $(dir)/getdate.c        \
+       $(dir)/xalloc-die.c     \
+       $(dir)/xmalloc.c
+
+getdate_modules := $(getdate_c_srcs:.c=.o)
+
+SRCS  := $(SRCS) $(getdate_c_srcs)
+CLEAN := $(CLEAN) $(getdate_modules) $(dir)/getdate.c