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${.OBJDIR} 8LIBADD= rpcsvc 9 10# XXX: mismatch between (xdrproc_t) and xdr_void(). 11WARNS?= 2 12 13CLEANFILES= sm_inter_svc.c sm_inter.h 14 15RPCSRC= ${SYSROOT:U${DESTDIR}}/usr/include/rpcsvc/sm_inter.x 16RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C 17 18sm_inter_svc.c: ${RPCSRC} 19 ${RPCGEN} -m -o ${.TARGET} ${.ALLSRC} 20 21sm_inter.h: ${RPCSRC} 22 ${RPCGEN} -h -o ${.TARGET} ${.ALLSRC} 23 24test: test.o 25 ${CC} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} ${LIBADD:S/^/-l/} 26CLEANFILES+= test test.o 27 28.include <bsd.prog.mk> 29