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. 8WARNS?= 2 9 10LIBADD= rpcsvc 11 12CLEANFILES= sm_inter_svc.c sm_inter.h 13 14RPCSRC= ${DESTDIR}/usr/include/rpcsvc/sm_inter.x 15RPCGEN= RPCGEN_CPP=${CPP:Q} 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