s4:samldb LDB module - make the "userAccountControl" and "groupType" modify handlers...
[nivanova/samba-autobuild/.git] / source4 / scripting / python / config.mk
1 [SUBSYSTEM::LIBPYTHON]
2 PUBLIC_DEPENDENCIES = EXT_LIB_PYTHON
3 PRIVATE_DEPENDENCIES = PYTALLOC
4 INIT_FUNCTION_SENTINEL = { NULL, NULL }
5
6 LIBPYTHON_OBJ_FILES = $(addprefix $(pyscriptsrcdir)/, modules.o)
7
8 [SUBSYSTEM::PYTALLOC]
9 PUBLIC_DEPENDENCIES = EXT_LIB_PYTHON LIBTALLOC
10
11 PYTALLOC_OBJ_FILES = ../lib/talloc/pytalloc.o
12
13 [PYTHON::python_uuid]
14 PRIVATE_DEPENDENCIES = LIBNDR 
15
16 python_uuid_OBJ_FILES = $(pyscriptsrcdir)/uuidmodule.o
17
18 [PYTHON::python__glue]
19 LIBRARY_REALNAME = samba/_glue.$(SHLIBEXT)
20 PRIVATE_DEPENDENCIES = LIBNDR LIBLDB SAMDB CREDENTIALS pyldb python_dcerpc_misc python_dcerpc_security pyauth pyldb_util pyparam_util
21
22 python__glue_OBJ_FILES = $(pyscriptsrcdir)/pyglue.o
23
24 $(python__glue_OBJ_FILES): CFLAGS+=-I$(ldbsrcdir)
25
26 _PY_FILES = $(shell find $(pyscriptsrcdir)/samba -type f -name "*.py")
27
28 $(eval $(foreach pyfile, $(_PY_FILES),$(call python_py_module_template,$(patsubst $(pyscriptsrcdir)/%,%,$(pyfile)),$(pyfile))))
29
30 PYDOCTOR = pydoctor
31 PYDOCTOR_OPTIONS = --project-name Samba --project-url http://www.samba.org/ \
32         --make-html
33 pydoctor:: pythonmods
34         LD_LIBRARY_PATH=bin/shared PYTHONPATH=$(pythonbuilddir) pydoctor --project-name=Samba --project-url=http://www.samba.org/ --make-html --docformat=restructuredtext $(addprefix --add-package $(pythonbuilddir)/, samba)
35
36 install:: installpython
37
38 PYFLAKES = pyflakes
39
40 pyflakes::
41         $(PYFLAKES) $(pyscriptsrcdir)/samba
42
43 PYLINT = pylint
44
45 pylint:: pythonmods
46         PYTHONPATH=$(pyscriptsrcdir) $(PYLINT) -f parseable samba