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