From 140fb74331a6fda552d25bbf56dda5f9c785839a Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Wed, 3 Aug 2011 19:08:20 +0100 Subject: [PATCH] libafsauthent: Add volser and vldb Add the volser and vldb families of functions to libafsauthent. This allows applications such as perl-AFS which are building pthreaded clients to use a single library, rather than trying to mix LWP and pthreaded code within the same process. Reviewed-on: http://gerrit.openafs.org/5157 Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit 55beacdc385424770c78cf055e8fd426075506f1) Change-Id: I60a35b3032f071a0a3ef4dc66221f22166942bfd Reviewed-on: http://gerrit.openafs.org/8799 Reviewed-by: Stephan Wiesand Tested-by: BuildBot Reviewed-by: Paul Smeddle --- Makefile.in | 2 +- src/libafsauthent/Makefile.in | 46 ++++++++++++++++++++++++++++++++++- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index e3450a3ba..57ea873f6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -590,7 +590,7 @@ libafsrpc: rx rxkad rxstat fsint des echo Not building MT libafsrpc for ${SYS_NAME} ;; \ esac -libafsauthent: ubik auth kauth libafsrpc +libafsauthent: ubik auth kauth libafsrpc volser vlserver +case ${SYS_NAME} in \ alpha_dux*|sgi_*|sun4x_*|sunx86_*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*[nof]bsd*) \ ${COMPILE_PART1} libafsauthent ${COMPILE_PART2} ;; \ diff --git a/src/libafsauthent/Makefile.in b/src/libafsauthent/Makefile.in index 7bf1f2ecf..dc51f259d 100644 --- a/src/libafsauthent/Makefile.in +++ b/src/libafsauthent/Makefile.in @@ -25,6 +25,8 @@ UBIK = ../ubik UTIL = ../util RXKAD = ../rxkad PTSERVER = ../ptserver +VOLSER = ../volser +VLSERVER = ../vlserver SYS = ../sys AUDITOBJS = audit.o audit-file.o audit-sysvmq.o @@ -89,6 +91,19 @@ PTSERVEROBJS = \ display.o \ pterror.o +VOLSEROBJS = \ + vsprocs.o \ + vsutils.o \ + lockprocs.o \ + volint.xdr.o \ + volint.cs.o \ + volerr.o + +VLDBOBJS = \ + vldbint.xdr.o \ + vldbint.cs.o \ + vl_errors.o + LIBOBJS = \ ${AUDITOBJS} \ ${AUTHOBJS} \ @@ -97,7 +112,9 @@ LIBOBJS = \ ${UTILOBJS} \ ${RXKADOBJS} \ ${PTSERVEROBJS} \ - ${SYSOBJS} + ${SYSOBJS} \ + ${VOLSEROBJS} \ + ${VLDBOBJS} all: ${TOP_LIBDIR}/libafsauthent.a @@ -272,6 +289,33 @@ setpag.o: ${SYS}/setpag.c pioctl.o: ${SYS}/pioctl.c ${CCRULE} +vsprocs.o: $(VOLSER)/vsprocs.c + $(CCRULE) -I../volser + +vsutils.o: $(VOLSER)/vsutils.c + $(CCRULE) + +lockprocs.o: $(VOLSER)/lockprocs.c + $(CCRULE) + +volint.xdr.o: ../volser/volint.xdr.c + $(CCRULE) + +volint.cs.o: ../volser/volint.cs.c + $(CCRULE) + +volerr.o: $(VOLSER)/volerr.c + $(CCRULE) + +vldbint.xdr.o: ../vlserver/vldbint.xdr.c + $(CCRULE) + +vldbint.cs.o: ../vlserver/vldbint.cs.c + $(CCRULE) + +vl_errors.o: $(VLSERVER)/vl_errors.c + $(CCRULE) + clean: $(RM) -f *.o *.a libafsauthent* -- 2.39.5