1# $FreeBSD$ 2 3PROG= rpc.statd 4MAN= rpc.statd.8 5SRCS= file.c sm_inter_svc.c sm_inter.h statd.c procs.c 6 7CFLAGS+= -I. 8 9DPADD= ${LIBRPCSVC} 10LDADD= -lrpcsvc 11 12CLEANFILES= sm_inter_svc.c sm_inter.h 13 14RPCSRC= ${DESTDIR}/usr/include/rpcsvc/sm_inter.x 15RPCGEN= rpcgen -L -C 16 17sm_inter_svc.c: ${RPCSRC} 18 ${RPCGEN} -m -o ${.TARGET} ${RPCSRC} 19 20sm_inter.h: ${RPCSRC} 21 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} 22 23test: test.c 24 cc -o test test.c -lrpcsvc 25 26.include <bsd.prog.mk> 27