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 17WARNS?= 4 18NO_WERROR= 1 19 20sm_inter_svc.c: ${RPCSRC} 21 ${RPCGEN} -m -o ${.TARGET} ${RPCSRC} 22 23sm_inter.h: ${RPCSRC} 24 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} 25 26test: test.c 27 cc -o test test.c -lrpcsvc 28 29.include <bsd.prog.mk> 30