summaryrefslogtreecommitdiff
path: root/ldb/python.mk
diff options
context:
space:
mode:
Diffstat (limited to 'ldb/python.mk')
-rw-r--r--ldb/python.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/ldb/python.mk b/ldb/python.mk
new file mode 100644
index 00000000..45f4f044
--- /dev/null
+++ b/ldb/python.mk
@@ -0,0 +1,10 @@
+[PYTHON::swig_ldb]
+LIBRARY_REALNAME = _ldb.$(SHLIBEXT)
+PUBLIC_DEPENDENCIES = LIBLDB LIBEVENTS
+
+swig_ldb_OBJ_FILES = $(ldbsrcdir)/ldb_wrap.o
+$(swig_ldb_OBJ_FILES): CFLAGS+=-I$(ldbsrcdir)/include
+
+$(eval $(call python_py_module_template,ldb.py,$(ldbsrcdir)/ldb.py))
+
+$(swig_ldb_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)