summaryrefslogtreecommitdiff
path: root/source4/scripting/python/config.mk
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-11-21 13:07:16 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:45:59 +0100
commit39adc2418a0586261c6c4aea36f72596c6cf8897 (patch)
tree279396139bc8648aee80b0ae32b9ff7a23157593 /source4/scripting/python/config.mk
parentf2b9a9ae11f43e4c283a151ca6d2d72f3e4d2283 (diff)
downloadsamba-39adc2418a0586261c6c4aea36f72596c6cf8897.tar.gz
samba-39adc2418a0586261c6c4aea36f72596c6cf8897.tar.bz2
samba-39adc2418a0586261c6c4aea36f72596c6cf8897.zip
r26088: Import some native-python python modules and move original python swig torture code to common python directory as well.
(This used to be commit cbf656ff054ab2b0b5ca81e1d4f16ac54c8098f1)
Diffstat (limited to 'source4/scripting/python/config.mk')
-rw-r--r--source4/scripting/python/config.mk35
1 files changed, 35 insertions, 0 deletions
diff --git a/source4/scripting/python/config.mk b/source4/scripting/python/config.mk
new file mode 100644
index 0000000000..1c9ffb20ac
--- /dev/null
+++ b/source4/scripting/python/config.mk
@@ -0,0 +1,35 @@
+[PYTHON::python_param]
+PRIVATE_DEPENDENCIES = LIBSAMBA-CONFIG
+OBJ_FILES = parammodule.o
+
+[PYTHON::python_uuid]
+PRIVATE_DEPENDENCIES = LIBNDR
+OBJ_FILES = uuidmodule.o
+
+[PYTHON::python_sid]
+PRIVATE_DEPENDENCIES = LIBNDR
+OBJ_FILES = sidmodule.o
+
+[PYTHON::python_misc]
+PRIVATE_DEPENDENCIES = LIBNDR LIBLDB
+SWIG_FILE = misc.i
+
+# Swig extensions
+swig: pythonmods
+
+.SUFFIXES: _wrap.c .i
+
+.i_wrap.c:
+ swig -Wall -I$(srcdir)/scripting/swig -python $<
+
+clean::
+ @echo "Removing SWIG output files"
+ @-rm -f bin/python/*
+ # FIXME: Remove _wrap.c files
+ #
+pythonmods: $(PYTHON_DSOS)
+
+PYDOCTOR_MODULES=bin/python/ldb.py bin/python/auth.py bin/python/credentials.py bin/python/registry.py
+
+pydoctor:: pythonmods
+ LD_LIBRARY_PATH=bin/shared PYTHONPATH=bin/python pydoctor --make-html --docformat=restructuredtext --add-package scripting/python/samba/ $(addprefix --add-module , $(PYDOCTOR_MODULES))