diff options
author | Simo Sorce <idra@samba.org> | 2008-09-19 15:15:46 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-09-19 18:07:53 -0400 |
commit | 3235e25425dddb9ba6d0f8d7cfff94ea9d7c5bdd (patch) | |
tree | ac046a584fadc482e36e806222384f9ccb1473d1 /lib/tdb/Makefile.in | |
parent | e07400525fd955b9fb9524edda3f8e6bc7567847 (diff) | |
download | samba-3235e25425dddb9ba6d0f8d7cfff94ea9d7c5bdd.tar.gz samba-3235e25425dddb9ba6d0f8d7cfff94ea9d7c5bdd.tar.bz2 samba-3235e25425dddb9ba6d0f8d7cfff94ea9d7c5bdd.zip |
Add shared-build target to tdb.
Useful to build multiple standalone libraries that depend on each other
without having to install them to the final install dir during the build.
Diffstat (limited to 'lib/tdb/Makefile.in')
-rw-r--r-- | lib/tdb/Makefile.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/tdb/Makefile.in b/lib/tdb/Makefile.in index 090bb6e2dc..9915d88264 100644 --- a/lib/tdb/Makefile.in +++ b/lib/tdb/Makefile.in @@ -12,6 +12,8 @@ libdir = @libdir@ VPATH = @srcdir@:@libreplacedir@ srcdir = @srcdir@ builddir = @builddir@ +sharedbuilddir = @sharedbuilddir@ +INSTALLCMD = @INSTALL@ CPPFLAGS = @CPPFLAGS@ -I$(srcdir)/include -Iinclude CFLAGS = $(CPPFLAGS) @CFLAGS@ LDFLAGS = @LDFLAGS@ @@ -43,6 +45,15 @@ install:: all $(TDB_SOLIB): $(TDB_OBJ) $(SHLD) $(SHLD_FLAGS) -o $@ $(TDB_OBJ) @SONAMEFLAG@$(TDB_SONAME) +shared-build: all + ${INSTALLCMD} -d $(sharedbuilddir)/lib + ${INSTALLCMD} -m 644 libtdb.a $(sharedbuilddir)/lib + ${INSTALLCMD} -m 755 $(TDB_SOLIB) $(sharedbuilddir)/lib + ln -sf $(TDB_SOLIB) $(sharedbuilddir)/lib/$(TDB_SONAME) + ln -sf $(TDB_SOLIB) $(sharedbuilddir)/lib/libtdb.so + ${INSTALLCMD} -d $(sharedbuilddir)/include + ${INSTALLCMD} -m 644 $(srcdir)/include/tdb.h $(sharedbuilddir)/include + check: test test:: $(PYTHON_CHECK_TARGET) |