r26399: Use -O option for SWIG (less evil generated code).
[Samba.git] / source4 / scripting / python / config.mk
blobc958761c709a21922ed9787d13ab94876692abae
1 [PYTHON::python_param]
2 PRIVATE_DEPENDENCIES = LIBSAMBA-CONFIG
3 OBJ_FILES = parammodule.o
5 [PYTHON::python_uuid]
6 PRIVATE_DEPENDENCIES = LIBNDR
7 OBJ_FILES = uuidmodule.o
9 [PYTHON::python_misc]
10 PRIVATE_DEPENDENCIES = LIBNDR LIBLDB
11 SWIG_FILE = misc.i
13 # Swig extensions
14 swig: pythonmods
16 .SUFFIXES: _wrap.c .i
18 .i_wrap.c:
19 [ "$(SWIG)" == "no" ] || $(SWIG) -O -Wall -I$(srcdir)/scripting/swig -python -keyword $<
21 realdistclean::
22 @echo "Removing SWIG output files"
23 @-rm -f bin/python/*
24 # FIXME: Remove _wrap.c files
26 pythonmods: $(PYTHON_DSOS)
28 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
30 pydoctor:: pythonmods
31 LD_LIBRARY_PATH=bin/shared PYTHONPATH=bin/python pydoctor --make-html --docformat=restructuredtext --add-package scripting/python/samba/ $(addprefix --add-module , $(PYDOCTOR_MODULES))