File: Makefile

package info (click to toggle)
freebsd-utils 10.1~svn273304-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 14,620 kB
  • sloc: ansic: 155,497; yacc: 5,768; sh: 3,098; xml: 1,853; makefile: 1,231; cpp: 1,071; lex: 468; perl: 242
file content (33 lines) | stat: -rw-r--r-- 772 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#	$NetBSD: Makefile,v 1.12 2000/08/07 16:23:31 thorpej Exp $
# $FreeBSD$

PROG=	rpc.lockd
MAN=	rpc.lockd.8
MLINKS=	rpc.lockd.8 lockd.8
SRCS=	kern.c nlm_prot_svc.c lockd.c lock_proc.c lockd_lock.c
SRCS+= nlm_prot_xdr.c sm_inter_xdr.c

CFLAGS+= -I. -I${.CURDIR}/../../include/rpcsvc
WARNS?= 3

DPADD=	${LIBRPCSVC} ${LIBUTIL}
LDADD= -ltirpc -lfreebsd-glue

CLEANFILES= nlm_prot_svc.c nlm_prot.h test
CLEANFILES+= nlm_prot_xdr.c sm_inter_xdr.c

RPCSRC= ${.CURDIR}/../../include/rpcsvc/nlm_prot.x
RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C

.PATH: ../rpc.statd

nlm_prot_svc.c: ${RPCSRC}
	${RPCGEN} -m -o ${.TARGET} ${RPCSRC}

nlm_prot_xdr.c: ${RPCSRC}
	${RPCGEN} -c -o ${.TARGET} ${RPCSRC}

test: ${.CURDIR}/test.c
	cc -o test ${.CURDIR}/test.c -lrpcsvc

.include <bsd.prog.mk>