summaryrefslogtreecommitdiff
path: root/lib/talloc/Makefile.in
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-09-19 15:15:21 -0400
committerSimo Sorce <idra@samba.org>2008-09-19 18:07:37 -0400
commite07400525fd955b9fb9524edda3f8e6bc7567847 (patch)
treee8f8fe0edb7176da76216c6618ff66cdcdc86efd /lib/talloc/Makefile.in
parent49b89633f175b81d7415f835009b6d14f6e10933 (diff)
downloadsamba-e07400525fd955b9fb9524edda3f8e6bc7567847.tar.gz
samba-e07400525fd955b9fb9524edda3f8e6bc7567847.tar.bz2
samba-e07400525fd955b9fb9524edda3f8e6bc7567847.zip
Add shared-build target to talloc.
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/talloc/Makefile.in')
-rw-r--r--lib/talloc/Makefile.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/talloc/Makefile.in b/lib/talloc/Makefile.in
index 07b8fd4ff0..c28693e2db 100644
--- a/lib/talloc/Makefile.in
+++ b/lib/talloc/Makefile.in
@@ -9,6 +9,7 @@ mandir = @mandir@
VPATH = @srcdir@:@libreplacedir@
srcdir = @srcdir@
builddir = @builddir@
+sharedbuilddir = @sharedbuilddir@
XSLTPROC = @XSLTPROC@
INSTALLCMD = @INSTALL@
CC = @CC@
@@ -31,6 +32,15 @@ include $(tallocdir)/talloc.mk
$(TALLOC_SOLIB): $(LIBOBJ)
$(SHLD) $(SHLD_FLAGS) -o $@ $(LIBOBJ) @SONAMEFLAG@$(TALLOC_SONAME)
+shared-build: all
+ ${INSTALLCMD} -d $(sharedbuilddir)/lib
+ ${INSTALLCMD} -m 644 libtalloc.a $(sharedbuilddir)/lib
+ ${INSTALLCMD} -m 755 $(TALLOC_SOLIB) $(sharedbuilddir)/lib
+ ln -sf $(TALLOC_SOLIB) $(sharedbuilddir)/lib/$(TALLOC_SONAME)
+ ln -sf $(TALLOC_SOLIB) $(sharedbuilddir)/lib/libtalloc.so
+ ${INSTALLCMD} -d $(sharedbuilddir)/include
+ ${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(sharedbuilddir)/include
+
check: test
installcheck:: test install