summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)