b70d98d908ccb88f7f3516051929ef18f2296c56
[ira/wip.git] / source / scripting / python / config.mk
1 [PYTHON::python_param]
2 PRIVATE_DEPENDENCIES = LIBSAMBA-CONFIG 
3 OBJ_FILES = parammodule.o
4
5 [PYTHON::python_uuid]
6 PRIVATE_DEPENDENCIES = LIBNDR 
7 OBJ_FILES = uuidmodule.o
8
9 [PYTHON::python_sid]
10 PRIVATE_DEPENDENCIES = LIBNDR 
11 OBJ_FILES = sidmodule.o
12
13 [PYTHON::python_misc]
14 PRIVATE_DEPENDENCIES = LIBNDR LIBLDB
15 SWIG_FILE = misc.i
16
17 # Swig extensions
18 swig: pythonmods
19
20 .SUFFIXES: _wrap.c .i
21
22 .i_wrap.c:
23         swig -Wall -I$(srcdir)/scripting/swig -python $<
24
25 clean::
26         @echo "Removing SWIG output files"
27         @-rm -f bin/python/*
28         # FIXME: Remove _wrap.c files
29
30 pythonmods: $(PYTHON_DSOS)
31
32 PYDOCTOR_MODULES=bin/python/ldb.py bin/python/auth.py bin/python/credentials.py bin/python/registry.py
33
34 pydoctor:: pythonmods
35         LD_LIBRARY_PATH=bin/shared PYTHONPATH=bin/python pydoctor --make-html --docformat=restructuredtext --add-package scripting/python/samba/ $(addprefix --add-module , $(PYDOCTOR_MODULES))