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 10#WARNS?= 2 11 12DPADD= ${LIBRPCSVC} ${LIBUTIL} 13LDADD= -lrpcsvc -lutil 14 15CLEANFILES= nlm_prot_svc.c nlm_prot.h test 16 17RPCSRC= ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x 18RPCGEN= rpcgen -L -C 19 20nlm_prot_svc.c: ${RPCSRC} 21 ${RPCGEN} -m -o ${.TARGET} ${RPCSRC} 22 23nlm_prot.h: ${RPCSRC} 24 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} 25 26test: ${.CURDIR}/test.c 27 cc -o test ${.CURDIR}/test.c -lrpcsvc 28 29.include <bsd.prog.mk> 30