1 2PROG= rpc.statd 3MAN= rpc.statd.8 4SRCS= file.c sm_inter_svc.c sm_inter.h statd.c procs.c 5 6CFLAGS+= -I${.OBJDIR} 7LIBADD= rpcsvc 8 9# XXX: mismatch between (xdrproc_t) and xdr_void(). 10WARNS?= 2 11 12CLEANFILES= sm_inter_svc.c sm_inter.h 13 14RPCSRC= ${SYSROOT:U${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} ${.ALLSRC} 19 20sm_inter.h: ${RPCSRC} 21 ${RPCGEN} -h -o ${.TARGET} ${.ALLSRC} 22 23test: test.o 24 ${CC} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} ${LIBADD:S/^/-l/} 25CLEANFILES+= test test.o 26 27.include <bsd.prog.mk> 28