rxstat: Use libtool
authorSimon Wilkinson <sxw@your-file-system.com>
Thu, 24 May 2012 20:57:55 +0000 (21:57 +0100)
committerDerrick Brashear <shadow@your-file-system.com>
Sun, 9 Sep 2012 12:00:12 +0000 (05:00 -0700)
Change-Id: I4fd533691cf191b37c1f80038651b45efd142133
Reviewed-on: http://gerrit.openafs.org/8068
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>

src/rxstat/Makefile.in
src/rxstat/liboafs_rxstat.la.sym [new file with mode: 0644]

index 7e2724a..b0c76f9 100644 (file)
@@ -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 (file)
index 0000000..81ea24b
--- /dev/null
@@ -0,0 +1 @@
+RXSTATS_ExecuteRequest