From f794c0568b6180eca6dd2792d3a5d4315aee4f47 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 1 Apr 1996 05:30:04 +0000 Subject: Tweaks for the stub lockd. - Use rpcgen to generate the unmodified boilerplate code rather than having it in the repository. - Eliminate the conflicting function names by changing them to their "natural" rpcgen generated names --- usr.sbin/rpc.lockd/Makefile | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'usr.sbin/rpc.lockd/Makefile') diff --git a/usr.sbin/rpc.lockd/Makefile b/usr.sbin/rpc.lockd/Makefile index d54358a..e734f58 100644 --- a/usr.sbin/rpc.lockd/Makefile +++ b/usr.sbin/rpc.lockd/Makefile @@ -1,14 +1,26 @@ -# $Id$ +# $Id: Makefile,v 1.1.1.1 1996/02/17 15:11:28 peter Exp $ PROG = rpc.lockd -SRCS = lockd.c procs.c +SRCS = nlm_prot_svc.c lockd.c procs.c MAN8 = rpc.lockd.8 DPADD= ${LIBRPCSVC} LDADD= -lrpcsvc -.include +CFLAGS+= -I. + +CLEANFILES= nlm_prot_svc.c nlm_prot.h + +RPCSRC= ${.DESTDIR}/usr/include/rpcsvc/nlm_prot.x +RPCGEN= rpcgen -L -C + +nlm_prot_svc.c: ${RPCSRC} nlm_prot.h + ${RPCGEN} -m -o ${.TARGET} ${RPCSRC} + +nlm_prot.h: ${RPCSRC} + ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} test: test.c cc -o test test.c -lrpcsvc +.include -- cgit v1.1