Add -O and -T to the SYNOPSIS.
[dragonfly.git] / usr.sbin / rpc.lockd / Makefile
1 # $FreeBSD: src/usr.sbin/rpc.lockd/Makefile,v 1.8.2.2 2001/08/01 06:39:36 alfred Exp $
2 # $DragonFly: src/usr.sbin/rpc.lockd/Makefile,v 1.2 2003/06/17 04:30:02 dillon Exp $
3
4 PROG =  rpc.lockd
5 SRCS =  nlm_prot_svc.c nlm_prot_clnt.c nlm_prot.h lockd.c procs.c
6 MAN=    rpc.lockd.8
7
8 MAN8 =  rpc.lockd.8
9
10 DPADD=  ${LIBRPCSVC}
11 LDADD=  -lrpcsvc
12
13 CFLAGS+= -I.
14
15 CLEANFILES= nlm_prot_svc.c nlm_prot.h nlm_prot_clnt.c \
16                         klm_prot_svc.c klm_prot.h
17
18 NLMRPCSRC= ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x
19 KLMRPCSRC= ${DESTDIR}/usr/include/rpcsvc/klm_prot.x
20 RPCGEN= rpcgen -L -C
21
22 nlm_prot_clnt.c: ${NLMRPCSRC}
23         ${RPCGEN} -l -o ${.TARGET} ${NLMRPCSRC}
24
25 nlm_prot_svc.c: ${NLMRPCSRC}
26         ${RPCGEN} -m -o ${.TARGET} ${NLMRPCSRC}
27
28 nlm_prot.h: ${NLMRPCSRC}
29         ${RPCGEN} -h -o ${.TARGET} ${NLMRPCSRC}
30
31 klm_prot_svc.c: ${KLMRPCSRC}
32         ${RPCGEN} -m -o ${.TARGET} ${KLMRPCSRC}
33
34 klm_prot.h: ${KLMRPCSRC}
35         ${RPCGEN} -h -o ${.TARGET} ${KLMRPCSRC}
36
37 test: test.c
38         cc -o test test.c -lrpcsvc
39
40 .include <bsd.prog.mk>