summaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.lockd/Makefile
blob: 38123e45ab4e92d51046d07e745a748a84323791 (plain)
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
#	$OpenBSD: Makefile,v 1.8 2017/08/24 09:00:50 otto Exp $

PROG =	rpc.lockd
SRCS =	nlm_prot_svc.c lockd.c lockd_lock.c procs.c
MAN =	rpc.lockd.8

DPADD=	${LIBRPCSVC}
LDADD=	-lrpcsvc

CFLAGS+= -I. -DSYSLOG -Wno-enum-conversion

CLEANFILES= nlm_prot_svc.c nlm_prot.h

RPCSRC= ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x
RPCGEN= rpcgen -L -C

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

nlm_prot.h: ${RPCSRC}
	${RPCGEN} -h -o ${.TARGET} ${RPCSRC}

BUILDFIRST = nlm_prot.h

test: test.c
	cc -o test test.c -lrpcsvc

.include <bsd.prog.mk>