Merge branch 'master' of ssh://git.samba.org/data/git/samba
[kai/samba.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
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 ../lib/subunit/python -name "*.py")
27
28 $(eval $(foreach pyfile, $(_PY_FILES),$(call python_py_module_template,$(patsubst $(pyscriptsrcdir)/%,%,$(pyfile)),$(pyfile))))
29
30 EPYDOC_OPTIONS = --no-private --url http://www.samba.org/ --no-sourcecode
31
32 epydoc:: pythonmods
33         PYTHONPATH=$(pythonbuilddir):../lib/subunit/python epydoc $(EPYDOC_OPTIONS) samba tdb ldb subunit
34
35 install:: installpython