From: Jelmer Vernooij Date: Wed, 11 Jun 2008 00:47:09 +0000 (+0200) Subject: Use variables for source dir of python tdb bindings. X-Git-Tag: samba-4.0.0alpha5~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22e7bcfbe4534c070ac2dd5f39773ea023dfa7f7;p=thirdparty%2Fsamba.git Use variables for source dir of python tdb bindings. --- diff --git a/source/Makefile b/source/Makefile index b7d5206868b..6118b553f9b 100644 --- a/source/Makefile +++ b/source/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/source/lib/tdb/python.mk b/source/lib/tdb/python.mk index 83336e7b411..12e8217df99 100644 --- a/source/lib/tdb/python.mk +++ b/source/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)