summaryrefslogtreecommitdiff
path: root/source4/scripting/python/config.mk
blob: 2f010644b164bff6836ac311423e34854e87191b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[BINARY::smbpython]
PRIVATE_DEPENDENCIES = LIBPYTHON

smbpython_OBJ_FILES = scripting/python/smbpython.o

[SUBSYSTEM::LIBPYTHON]
PUBLIC_DEPENDENCIES = EXT_LIB_PYTHON
INIT_FUNCTION_SENTINEL = { NULL, NULL }

LIBPYTHON_OBJ_FILES = $(addprefix scripting/python/, modules.o pytalloc.o)

[PYTHON::python_uuid]
PRIVATE_DEPENDENCIES = LIBNDR 

python_uuid_OBJ_FILES = scripting/python/uuidmodule.o

[PYTHON::python_misc]
PRIVATE_DEPENDENCIES = LIBNDR LIBLDB SAMDB CREDENTIALS
SWIG_FILE = misc.i

python_misc_OBJ_FILES = scripting/python/misc_wrap.o

PYDOCTOR_MODULES=bin/python/ldb.py bin/python/auth.py bin/python/credentials.py bin/python/registry.py bin/python/tdb.py bin/python/security.py bin/python/events.py bin/python/net.py

pythonmods:: $(PYTHON_PYS) $(PYTHON_MODS)

bin/python/%.py: 
	mkdir -p $(@D)
	cp $< $@

installpython:: pythonmods
	@$(SHELL) $(srcdir)/script/installpython.sh \
		$(INSTALLPERMS) \
		$(DESTDIR)$(PYTHONDIR) \
		scripting/python bin/python

clean::
	@echo "Removing python modules"
	@rm -rf bin/python/*