summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.lockd/Makefile
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-04-01 05:30:04 +0000
committerpeter <peter@FreeBSD.org>1996-04-01 05:30:04 +0000
commitf794c0568b6180eca6dd2792d3a5d4315aee4f47 (patch)
tree7048db188c5679e34b709bb5c2a878e6084b96c6 /usr.sbin/rpc.lockd/Makefile
parent4673aad9a1e182c91c3ca8f8d864e5d821284dac (diff)
downloadFreeBSD-src-f794c0568b6180eca6dd2792d3a5d4315aee4f47.zip
FreeBSD-src-f794c0568b6180eca6dd2792d3a5d4315aee4f47.tar.gz
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
Diffstat (limited to 'usr.sbin/rpc.lockd/Makefile')
-rw-r--r--usr.sbin/rpc.lockd/Makefile18
1 files changed, 15 insertions, 3 deletions
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 <bsd.prog.mk>
+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 <bsd.prog.mk>
OpenPOWER on IntegriCloud