aboutsummaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-12-01 15:23:25 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-12-01 16:33:17 -0800
commit880b21a097104bee5f50a444c5130695d143fd8a (patch)
treecfade39c10219c402c3638f8b0daf2e51c92f04e /compat
parent7fd7611b23ad33ed8bb7db44916cb03bbc2c47c1 (diff)
Makefile: Incorporate getline implementation into the build.
It's unconditional for a very short time. We expect to soon be building it only if necessary.
Diffstat (limited to 'compat')
-rw-r--r--compat/Makefile5
-rw-r--r--compat/Makefile.local8
2 files changed, 13 insertions, 0 deletions
diff --git a/compat/Makefile b/compat/Makefile
new file mode 100644
index 00000000..9a29ffcf
--- /dev/null
+++ b/compat/Makefile
@@ -0,0 +1,5 @@
+all:
+ $(MAKE) -C .. all
+
+clean:
+ $(MAKE) -C .. clean
diff --git a/compat/Makefile.local b/compat/Makefile.local
new file mode 100644
index 00000000..ccc59aef
--- /dev/null
+++ b/compat/Makefile.local
@@ -0,0 +1,8 @@
+dir=compat
+extra_cflags += -I$(dir)
+
+notmuch_compat_srcs =
+
+ifneq ($(HAVE_GETLINE),1)
+notmuch_compat_srcs += $(dir)/getline.c $(dir)/getdelim.c
+endif