summaryrefslogtreecommitdiff
path: root/source4/scripting/python/config.mk
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-20 23:38:30 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-12-20 23:38:30 +0100
commit13fa639a29a3e79d825a9b75ac507285e39ff364 (patch)
tree3d6d2f9797e7a8c6fbfc7298c3c3c2dd11413e4e /source4/scripting/python/config.mk
parent0d585a67ed469a0657ae8c40098f5b862e8e4084 (diff)
downloadsamba-13fa639a29a3e79d825a9b75ac507285e39ff364.tar.gz
samba-13fa639a29a3e79d825a9b75ac507285e39ff364.tar.bz2
samba-13fa639a29a3e79d825a9b75ac507285e39ff364.zip
Use plain C implementation for misc Python module rather than SWIG.
Diffstat (limited to 'source4/scripting/python/config.mk')
-rw-r--r--source4/scripting/python/config.mk10
1 files changed, 4 insertions, 6 deletions
diff --git a/source4/scripting/python/config.mk b/source4/scripting/python/config.mk
index 7024684ff9..8eb0aab528 100644
--- a/source4/scripting/python/config.mk
+++ b/source4/scripting/python/config.mk
@@ -16,19 +16,17 @@ PRIVATE_DEPENDENCIES = LIBNDR
python_uuid_OBJ_FILES = $(pyscriptsrcdir)/uuidmodule.o
[PYTHON::python_misc]
-LIBRARY_REALNAME = samba/_misc.$(SHLIBEXT)
-PRIVATE_DEPENDENCIES = LIBNDR LIBLDB SAMDB CREDENTIALS
+LIBRARY_REALNAME = samba/misc.$(SHLIBEXT)
+PRIVATE_DEPENDENCIES = LIBNDR LIBLDB SAMDB CREDENTIALS swig_ldb
-python_misc_OBJ_FILES = $(pyscriptsrcdir)/misc_wrap.o
+python_misc_OBJ_FILES = $(pyscriptsrcdir)/pymisc.o
-$(python_misc_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)
+$(python_misc_OBJ_FILES): CFLAGS+=$(CFLAG_NO_CAST_QUAL) -I$(ldbsrcdir)
_PY_FILES = $(shell find $(pyscriptsrcdir)/samba ../lib/subunit/python -name "*.py")
$(eval $(foreach pyfile, $(_PY_FILES),$(call python_py_module_template,$(patsubst $(pyscriptsrcdir)/%,%,$(pyfile)),$(pyfile))))
-$(eval $(call python_py_module_template,samba/misc.py,$(pyscriptsrcdir)/misc.py))
-
EPYDOC_OPTIONS = --no-private --url http://www.samba.org/ --no-sourcecode
epydoc:: pythonmods