xref: /freebsd/usr.sbin/rpc.statd/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1PROG=	rpc.statd
2MAN=	rpc.statd.8
3SRCS=	file.c sm_inter_svc.c sm_inter.h statd.c procs.c
4
5CFLAGS+= -I${.OBJDIR}
6LIBADD=	rpcsvc
7
8# XXX: mismatch between (xdrproc_t) and xdr_void().
9WARNS?=	2
10
11CLEANFILES= sm_inter_svc.c sm_inter.h
12
13RPCSRC= ${SYSROOT:U${DESTDIR}}/usr/include/rpcsvc/sm_inter.x
14RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C
15
16sm_inter_svc.c: ${RPCSRC}
17	${RPCGEN} -m -o ${.TARGET} ${.ALLSRC}
18
19sm_inter.h: ${RPCSRC}
20	${RPCGEN} -h -o ${.TARGET} ${.ALLSRC}
21
22test: test.o
23	${CC} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} ${LIBADD:S/^/-l/}
24CLEANFILES+=	test test.o
25
26.include <bsd.prog.mk>
27