1# $NetBSD: Makefile,v 1.12 2000/08/07 16:23:31 thorpej Exp $ 2 3PACKAGE= nfs 4 5PROG= rpc.lockd 6MAN= rpc.lockd.8 7MLINKS= rpc.lockd.8 lockd.8 8SRCS= kern.c nlm_prot_svc.c lockd.c lock_proc.c lockd_lock.c 9 10CFLAGS+= -I. -I${SYSROOT:U${DESTDIR}}/usr/include/rpcsvc 11WARNS?= 3 12 13LIBADD= rpcsvc 14 15CLEANFILES= nlm_prot_svc.c nlm_prot.h test 16 17RPCSRC= ${SYSROOT:U${DESTDIR}}/usr/include/rpcsvc/nlm_prot.x 18RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C 19 20nlm_prot_svc.c: ${RPCSRC} 21 ${RPCGEN} -m -o ${.TARGET} ${.ALLSRC} 22 23nlm_prot.h: ${RPCSRC} 24 ${RPCGEN} -h -o ${.TARGET} ${.ALLSRC} 25 26test: ${.CURDIR}/test.c 27 cc -o test ${.CURDIR}/test.c -lrpcsvc 28 29.include <bsd.prog.mk> 30