Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
[gd/samba/.git] / source4 / scripting / python / config.mk
1 [BINARY::smbpython]
2 PRIVATE_DEPENDENCIES = LIBPYTHON
3
4 smbpython_OBJ_FILES = scripting/python/smbpython.o
5
6 [SUBSYSTEM::LIBPYTHON]
7 PUBLIC_DEPENDENCIES = EXT_LIB_PYTHON
8 INIT_FUNCTION_SENTINEL = { NULL, NULL }
9
10 LIBPYTHON_OBJ_FILES = $(addprefix scripting/python/, modules.o pytalloc.o)
11
12 [PYTHON::python_uuid]
13 PRIVATE_DEPENDENCIES = LIBNDR 
14
15 python_uuid_OBJ_FILES = scripting/python/uuidmodule.o
16
17 [PYTHON::python_misc]
18 PRIVATE_DEPENDENCIES = LIBNDR LIBLDB SAMDB CREDENTIALS
19 SWIG_FILE = misc.i
20
21 python_misc_OBJ_FILES = scripting/python/misc_wrap.o
22
23 _PY_FILES = $(shell find scripting/python -name "*.py")
24
25 $(foreach pyfile, $(_PY_FILES),$(eval $(call python_py_module_template,$(patsubst scripting/python/%,%,$(pyfile)),$(pyfile))))
26
27 installpython:: pythonmods
28         @$(SHELL) $(srcdir)/script/installpython.sh \
29                 $(INSTALLPERMS) \
30                 $(DESTDIR)$(PYTHONDIR) \
31                 scripting/python bin/python