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