Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-wsgi
[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 = $(addprefix $(pyscriptsrcdir)/, pytalloc.o)
12
13 [PYTHON::python_uuid]
14 PRIVATE_DEPENDENCIES = LIBNDR 
15
16 python_uuid_OBJ_FILES = $(pyscriptsrcdir)/uuidmodule.o
17
18 [PYTHON::python_misc]
19 LIBRARY_REALNAME = samba/_misc.$(SHLIBEXT)
20 PRIVATE_DEPENDENCIES = LIBNDR LIBLDB SAMDB CREDENTIALS
21
22 python_misc_OBJ_FILES = $(pyscriptsrcdir)/misc_wrap.o
23
24 $(python_misc_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)
25
26 _PY_FILES = $(shell find $(pyscriptsrcdir)/samba $(pyscriptsrcdir)/subunit -name "*.py")
27
28 $(foreach pyfile, $(_PY_FILES),$(eval $(call python_py_module_template,$(patsubst $(pyscriptsrcdir)/%,%,$(pyfile)),$(pyfile))))
29
30 $(eval $(call python_py_module_template,samba/misc.py,$(pyscriptsrcdir)/misc.py))
31
32 EPYDOC_OPTIONS = --no-private --url http://www.samba.org/ --no-sourcecode
33
34 epydoc:: pythonmods
35         PYTHONPATH=$(pythonbuilddir) epydoc $(EPYDOC_OPTIONS) samba tdb ldb subunit
36
37 install:: installpython