ldb_map objectClass munging: Don't hard-code 'extensibleObject'.
[samba.git] / source4 / scripting / python / config.mk
1 [BINARY::smbpython]
2 PRIVATE_DEPENDENCIES = LIBPYTHON
3 OBJ_FILES = smbpython.o
4
5 [SUBSYSTEM::LIBPYTHON]
6 PUBLIC_DEPENDENCIES = EXT_LIB_PYTHON
7 INIT_FUNCTION_SENTINEL = { NULL, NULL }
8 OBJ_FILES = modules.o pytalloc.o
9
10 [PYTHON::python_uuid]
11 PRIVATE_DEPENDENCIES = LIBNDR 
12 OBJ_FILES = uuidmodule.o
13
14 [PYTHON::python_misc]
15 PRIVATE_DEPENDENCIES = LIBNDR LIBLDB SAMDB CREDENTIALS
16 SWIG_FILE = misc.i
17
18 # Swig extensions
19 swig: pythonmods
20
21 .SUFFIXES: _wrap.c .i
22
23 .i_wrap.c:
24         [ "$(SWIG)" == "no" ] || $(SWIG) -O -Wall -I$(srcdir)/scripting/swig -python -keyword $<
25
26 realdistclean::
27         @echo "Removing SWIG output files"
28         @-rm -f bin/python/*
29         # FIXME: Remove _wrap.c files
30
31 pythonmods: $(PYTHON_DSOS)
32
33 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
34
35 pydoctor:: pythonmods
36         LD_LIBRARY_PATH=bin/shared PYTHONPATH=bin/python pydoctor --make-html --docformat=restructuredtext --add-package scripting/python/samba/ $(addprefix --add-module , $(PYDOCTOR_MODULES))
37
38 clean::
39         @echo "Removing python modules"
40         @rm -f bin/python/*