From f29887631da6567b952c89c7cf0379f910863559 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Thu, 24 May 2012 21:57:55 +0100 Subject: [PATCH] rxstat: Use libtool Change-Id: I4fd533691cf191b37c1f80038651b45efd142133 Reviewed-on: http://gerrit.openafs.org/8068 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/rxstat/Makefile.in | 17 ++++++++++------- src/rxstat/liboafs_rxstat.la.sym | 1 + 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 src/rxstat/liboafs_rxstat.la.sym diff --git a/src/rxstat/Makefile.in b/src/rxstat/Makefile.in index 7e2724a..b0c76f9 100644 --- a/src/rxstat/Makefile.in +++ b/src/rxstat/Makefile.in @@ -7,12 +7,13 @@ srcdir=@srcdir@ include @TOP_OBJDIR@/src/config/Makefile.config +include @TOP_OBJDIR@/src/config/Makefile.libtool include @TOP_OBJDIR@/src/config/Makefile.lwp +LT_objs = rxstat.cs.lo rxstat.ss.lo rxstat.xdr.lo rxstat.lo +LT_deps = $(top_builddir)/src/rx/liboafs_rx.la -LIBOBJS = rxstat.cs.o rxstat.ss.o rxstat.xdr.o rxstat.o - -all: depinstall ${TOP_LIBDIR}/librxstat.a +all: depinstall liboafs_rxstat.la ${TOP_LIBDIR}/librxstat.a generated: \ Krxstat.cs.c Krxstat.ss.c Krxstat.xdr.c \ @@ -47,10 +48,11 @@ rxstat.xdr.c: rxstat.h rxstat.cs.c: rxstat.h rxstat.ss.c: rxstat.h -librxstat.a: ${LIBOBJS} AFS_component_version_number.o - -$(RM) -f $@ - $(AR) crv $@ ${LIBOBJS} AFS_component_version_number.o - $(RANLIB) $@ +librxstat.a: $(LT_objs) + $(LT_LDLIB_lwp) $(LT_objs) + +liboafs_rxstat.la: liboafs_rxstat.la.sym $(LT_objs) $(LT_deps) + $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs) Krxstat.cs.c: rxstat.xg ${RXGEN} -x -k -C -o $@ ${srcdir}/rxstat.xg @@ -80,6 +82,7 @@ dest: rxstat.h librxstat.a # Misc. targets # clean: + $(LT_CLEAN) $(RM) -f rxstat.h *.xdr.c *.cs.c *.ss.c *.o *.a core AFS_component_version_number.c include ../config/Makefile.version diff --git a/src/rxstat/liboafs_rxstat.la.sym b/src/rxstat/liboafs_rxstat.la.sym new file mode 100644 index 0000000..81ea24b --- /dev/null +++ b/src/rxstat/liboafs_rxstat.la.sym @@ -0,0 +1 @@ +RXSTATS_ExecuteRequest -- 1.9.4