]> git.saurik.com Git - apple/network_cmds.git/blob - rpc_lockd.tproj/Makefile.dist
network_cmds-245.19.tar.gz
[apple/network_cmds.git] / rpc_lockd.tproj / Makefile.dist
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
4 PROG= rpc.lockd
5 MAN= rpc.lockd.8
6 MLINKS= rpc.lockd.8 lockd.8
7 SRCS= kern.c nlm_prot_svc.c lockd.c lock_proc.c lockd_lock.c
8 NO_WERROR= YES
9 WARNS?= 4
10
11 CFLAGS+= -I. -I${DESTDIR}/usr/include/rpcsvc
12
13 DPADD= ${LIBRPCSVC} ${LIBUTIL}
14 LDADD= -lrpcsvc -lutil
15
16 CLEANFILES= nlm_prot_svc.c nlm_prot.h test
17
18 RPCSRC= ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x
19 RPCGEN= rpcgen -L -C
20
21 nlm_prot_svc.c: ${RPCSRC}
22 ${RPCGEN} -m -o ${.TARGET} ${RPCSRC}
23
24 nlm_prot.h: ${RPCSRC}
25 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
26
27 test: ${.CURDIR}/test.c
28 cc -o test ${.CURDIR}/test.c -lrpcsvc
29
30 LDADD= -lrpcsvc
31
32 .include <bsd.prog.mk>