diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-11-06 19:24:12 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:44:39 +0100 |
commit | 4347f8fc37d5dd7315113ff4b8ce80a5427b53b9 (patch) | |
tree | ff2447c7bebc228b4fd7f3d9c0f7b290a33be6ba /source4/lib/talloc | |
parent | 831d7383741baebe90312833a4319c06831fc01f (diff) | |
download | samba-4347f8fc37d5dd7315113ff4b8ce80a5427b53b9.tar.gz samba-4347f8fc37d5dd7315113ff4b8ce80a5427b53b9.tar.bz2 samba-4347f8fc37d5dd7315113ff4b8ce80a5427b53b9.zip |
r25882: Build shared library of talloc as well.
(This used to be commit 3692ba8299d4177289ca401fa467143ad14ccad4)
Diffstat (limited to 'source4/lib/talloc')
-rw-r--r-- | source4/lib/talloc/Makefile.in | 19 | ||||
-rw-r--r-- | source4/lib/talloc/configure.ac | 5 |
2 files changed, 22 insertions, 2 deletions
diff --git a/source4/lib/talloc/Makefile.in b/source4/lib/talloc/Makefile.in index 18b48c3459..c9fcddf35c 100644 --- a/source4/lib/talloc/Makefile.in +++ b/source4/lib/talloc/Makefile.in @@ -14,12 +14,23 @@ INSTALLCMD = @INSTALL@ CC = @CC@ CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I. -I@srcdir@ EXTRA_TARGETS = @DOC_TARGET@ +PICFLAG = @PICFLAG@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +SHLIBEXT = @SHLIBEXT@ +SHLD_FLAGS = @SHLD_FLAGS@ +SONAMEFLAG = @SONAMEFLAG@ .SUFFIXES: .c .o .3 .3.xml .xml .html LIBOBJ = @TALLOC_OBJ@ @LIBREPLACEOBJ@ -all: showflags libtalloc.a testsuite $(EXTRA_TARGETS) +SOLIB = libtalloc.$(SHLIBEXT).$(PACKAGE_VERSION) +SONAME = libtalloc.$(SHLIBEXT).1 + +.c.o: + $(CC) $(PICFLAG) -o $@ -c $< $(CFLAGS) + +all: showflags libtalloc.a $(SOLIB) testsuite $(EXTRA_TARGETS) showflags: @echo 'talloc will be compiled with flags:' @@ -33,10 +44,14 @@ libtalloc.a: $(LIBOBJ) ar -rv $@ $(LIBOBJ) @-ranlib $@ +$(SOLIB): $(LIBOBJ) + $(CC) $(SONAMEFLAG)$(SONAME) $(SHLD_FLAGS) -o $@ $^ + install: all ${INSTALLCMD} -d $(DESTDIR)$(libdir) ${INSTALLCMD} -d $(DESTDIR)$(libdir)/pkgconfig ${INSTALLCMD} -m 755 libtalloc.a $(DESTDIR)$(libdir) + ${INSTALLCMD} -m 755 $(SOLIB) $(DESTDIR)$(libdir) ${INSTALLCMD} -d $(DESTDIR)${includedir} ${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(DESTDIR)$(includedir) ${INSTALLCMD} -m 644 talloc.pc $(DESTDIR)$(libdir)/pkgconfig @@ -52,7 +67,7 @@ doc: talloc.3 talloc.3.html -test -z "$(XSLTPROC)" || $(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $< clean: - rm -f *~ $(LIBOBJ) libtalloc.a testsuite testsuite.o *.gc?? talloc.3 talloc.3.html + rm -f *~ $(LIBOBJ) $(SOLIB) libtalloc.a testsuite testsuite.o *.gc?? talloc.3 talloc.3.html test: testsuite ./testsuite diff --git a/source4/lib/talloc/configure.ac b/source4/lib/talloc/configure.ac index afc2a944f0..d76052007c 100644 --- a/source4/lib/talloc/configure.ac +++ b/source4/lib/talloc/configure.ac @@ -15,4 +15,9 @@ if test -n "$XSLTPROC"; then fi AC_SUBST(DOC_TARGET) +AC_LD_PICFLAG +AC_LD_SHLIBEXT +AC_LD_SONAMEFLAG +AC_LD_SHLDFLAGS + AC_OUTPUT(Makefile talloc.pc) |