summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-06-11 02:47:09 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-06-11 02:47:09 +0200
commit3fe58d839afd7b19cec33d84ba12a9e892ca5590 (patch)
tree271a25d8bb50f49391893c1f774afd0c577fe00f /source4
parentaa98a5f32355a5985dfabbe13cf20decdfc43642 (diff)
downloadsamba-3fe58d839afd7b19cec33d84ba12a9e892ca5590.tar.gz
samba-3fe58d839afd7b19cec33d84ba12a9e892ca5590.tar.bz2
samba-3fe58d839afd7b19cec33d84ba12a9e892ca5590.zip
Use variables for source dir of python tdb bindings.
(This used to be commit 22e7bcfbe4534c070ac2dd5f39773ea023dfa7f7)
Diffstat (limited to 'source4')
-rw-r--r--source4/Makefile1
-rw-r--r--source4/lib/tdb/python.mk4
2 files changed, 3 insertions, 2 deletions
diff --git a/source4/Makefile b/source4/Makefile
index b7d5206868..6118b553f9 100644
--- a/source4/Makefile
+++ b/source4/Makefile
@@ -61,6 +61,7 @@ libsrcdir := lib
libsocketsrcdir := lib/socket
libcharsetsrcdir := lib/charset
ldb_sambasrcdir := lib/ldb-samba
+tdbsrcdir := lib/tdb
libtlssrcdir := lib/tls
libregistrysrcdir := lib/registry
smbreadlinesrcdir := lib/smbreadline
diff --git a/source4/lib/tdb/python.mk b/source4/lib/tdb/python.mk
index 83336e7b41..12e8217df9 100644
--- a/source4/lib/tdb/python.mk
+++ b/source4/lib/tdb/python.mk
@@ -2,9 +2,9 @@
LIBRARY_REALNAME = _tdb.$(SHLIBEXT)
PUBLIC_DEPENDENCIES = LIBTDB DYNCONFIG
-swig_tdb_OBJ_FILES = lib/tdb/tdb_wrap.o
+swig_tdb_OBJ_FILES = $(tdbsrcdir)/tdb_wrap.o
-$(eval $(call python_py_module_template,tdb.py,lib/tdb/tdb.py))
+$(eval $(call python_py_module_template,tdb.py,$(tdbsrcdir)/tdb.py))
$(swig_tdb_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)