mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Fix out of tree builds.
This commit is contained in:
parent
b5d4ab2cf4
commit
35c8ebdca2
@ -20,6 +20,7 @@ EXTRA_OBJ=@EXTRA_OBJ@
|
||||
TESTS=test-tdb.sh @TESTS@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
tdbdir = @tdbdir@
|
||||
ldbdir = $(srcdir)
|
||||
tallocdir = @tallocdir@
|
||||
|
||||
TALLOC_LIBS = @TALLOC_LIBS@
|
||||
@ -67,7 +68,7 @@ DIRS = lib bin common ldb_tdb ldb_ldap ldb_sqlite3 modules tools examples
|
||||
|
||||
default: all
|
||||
|
||||
include rules.mk
|
||||
include $(ldbdir)/rules.mk
|
||||
|
||||
nss: nssdir all $(NSS_LIB)
|
||||
|
||||
@ -160,4 +161,4 @@ gcov::
|
||||
$(GCOV) -po modules $(srcdir)/modules/*.c 2| tee modules.report.gcov
|
||||
$(GCOV) -po tools $(srcdir)/tools/*.c 2| tee tools.report.gcov
|
||||
|
||||
include ldb.mk
|
||||
include $(ldbdir)/ldb.mk
|
||||
|
@ -66,10 +66,10 @@ examples/ldifreader: examples/ldifreader.o $(LIBS)
|
||||
|
||||
# Python bindings
|
||||
build-python:: lib/libldb.$(SHLIBEXT) ldb_wrap.c
|
||||
./setup.py build
|
||||
$(ldbdir)/setup.py build
|
||||
|
||||
install-python:: build-python
|
||||
./setup.py install --prefix=$(DESTDIR)$(prefix)
|
||||
$(ldbdir)/setup.py install --prefix=$(DESTDIR)$(prefix)
|
||||
|
||||
install-swig::
|
||||
cp ldb.i `$(SWIG) -swiglib`
|
||||
@ -79,4 +79,4 @@ check-python:: build-python
|
||||
LD_LIBRARY_PATH=lib PYTHONPATH=.:build/lib.linux-i686-2.4/ trial tests/python/api.py
|
||||
|
||||
clean-python::
|
||||
./setup.py clean
|
||||
$(ldbdir)/setup.py clean
|
||||
|
@ -25,8 +25,8 @@ LIBOBJ = $(TALLOC_OBJ) @LIBREPLACEOBJ@
|
||||
|
||||
all:: showflags $(EXTRA_TARGETS)
|
||||
|
||||
include rules.mk
|
||||
include talloc.mk
|
||||
include $(tallocdir)/rules.mk
|
||||
include $(tallocdir)/talloc.mk
|
||||
|
||||
$(SOLIB): $(LIBOBJ)
|
||||
$(SHLD) $(SHLD_FLAGS) -o $@ $(LIBOBJ) @SONAMEFLAG@$(SONAME)
|
||||
|
@ -30,8 +30,8 @@ TDB_OBJ = @TDB_OBJ@ @LIBREPLACEOBJ@
|
||||
|
||||
all:: showflags dirs $(PROGS) $(SOLIB) libtdb.a $(PYTHON_BUILD_TARGET)
|
||||
|
||||
include tdb.mk
|
||||
include rules.mk
|
||||
include $(tdbdir)/tdb.mk
|
||||
include $(tdbdir)/rules.mk
|
||||
|
||||
install:: all
|
||||
$(SOLIB): $(TDB_OBJ)
|
||||
|
@ -34,7 +34,7 @@ clean::
|
||||
rm -f $(ALL_PROGS) tdb.pc
|
||||
|
||||
build-python:: libtdb.$(SHLIBEXT) tdb_wrap.c
|
||||
./setup.py build
|
||||
$(tdbdir)/setup.py build
|
||||
|
||||
install:: installdirs installbin installheaders installlibs \
|
||||
$(PYTHON_INSTALL_TARGET)
|
||||
|
Loading…
Reference in New Issue
Block a user