summaryrefslogtreecommitdiffstats
path: root/tdb/python.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tdb/python.mk')
-rw-r--r--tdb/python.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/tdb/python.mk b/tdb/python.mk
new file mode 100644
index 000000000..12e8217df
--- /dev/null
+++ b/tdb/python.mk
@@ -0,0 +1,10 @@
+[PYTHON::swig_tdb]
+LIBRARY_REALNAME = _tdb.$(SHLIBEXT)
+PUBLIC_DEPENDENCIES = LIBTDB DYNCONFIG
+
+swig_tdb_OBJ_FILES = $(tdbsrcdir)/tdb_wrap.o
+
+$(eval $(call python_py_module_template,tdb.py,$(tdbsrcdir)/tdb.py))
+
+$(swig_tdb_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)
+