390f6c811a4df5118883848ea956072df1fe881e
[kai/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 ../lib/subunit/python -type f -name "*.py")
27
28 $(eval $(foreach pyfile, $(_PY_FILES),$(call python_py_module_template,$(patsubst $(pyscriptsrcdir)/%,%,$(subst ../lib/subunit/python,,$(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 testtools
34
35 install:: installpython