1
0
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:
Jelmer Vernooij 2008-02-11 23:51:59 +01:00
parent b5d4ab2cf4
commit 35c8ebdca2
5 changed files with 11 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)