]> git.saurik.com Git - apple/network_cmds.git/blame - rpc_lockd.tproj/Makefile.dist
network_cmds-245.8.tar.gz
[apple/network_cmds.git] / rpc_lockd.tproj / Makefile.dist
CommitLineData
ac2f15b3
A
1# $NetBSD: Makefile,v 1.12 2000/08/07 16:23:31 thorpej Exp $
2# $FreeBSD: src/usr.sbin/rpc.lockd/Makefile,v 1.17 2002/03/22 19:50:58 alfred Exp $
3
4PROG= rpc.lockd
5MAN= rpc.lockd.8
6MLINKS= rpc.lockd.8 lockd.8
7SRCS= kern.c nlm_prot_svc.c lockd.c lock_proc.c lockd_lock.c
8NO_WERROR= YES
9WARNS?= 4
10
11CFLAGS+= -I. -I${DESTDIR}/usr/include/rpcsvc
12
13DPADD= ${LIBRPCSVC} ${LIBUTIL}
14LDADD= -lrpcsvc -lutil
15
16CLEANFILES= nlm_prot_svc.c nlm_prot.h test
17
18RPCSRC= ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x
19RPCGEN= rpcgen -L -C
20
21nlm_prot_svc.c: ${RPCSRC}
22 ${RPCGEN} -m -o ${.TARGET} ${RPCSRC}
23
24nlm_prot.h: ${RPCSRC}
25 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
26
27test: ${.CURDIR}/test.c
28 cc -o test ${.CURDIR}/test.c -lrpcsvc
29
30LDADD= -lrpcsvc
31
32.include <bsd.prog.mk>