summaryrefslogtreecommitdiffstats
path: root/lib/libypclnt/Makefile
blob: 393eb87b70f53d8284fa7e26c5dd2d8e1a0748b5 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $FreeBSD$

LIB=	ypclnt
SHLIB_MAJOR= 1
SRCS=	ypclnt_connect.c \
	ypclnt_error.c \
	ypclnt_free.c \
	ypclnt_new.c \
	ypclnt_passwd.c \
	${GENSRCS}
CLEANFILES+= ${GENSRCS}
INCS= ypclnt.h

CFLAGS+= -I.
WARNS?=	5

DPADD= ${LIBRPCSVC}
LDADD= -lrpcsvc

GENSRCS=yp.h \
	yp_clnt.c \
	yppasswd.h \
	yppasswd_xdr.c \
	yppasswd_clnt.c \
	yppasswd_private.h \
	yppasswd_private_clnt.c \
	yppasswd_private_xdr.c

RPCGEN=	rpcgen -C
RPCSRC=	${.CURDIR}/../../include/rpcsvc/yp.x
RPCSRC_PW=	${.CURDIR}/../../include/rpcsvc/yppasswd.x
RPCSRC_PRIV=	${.CURDIR}/../../usr.sbin/rpc.yppasswdd/yppasswd_private.x

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

yp_clnt.c: ${RPCSRC}
	${RPCGEN} -l -o ${.TARGET} ${RPCSRC}

yppasswd.h: ${RPCSRC_PW}
	${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PW}

yppasswd_xdr.c: ${RPCSRC_PW}
	${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PW}

yppasswd_clnt.c: ${RPCSRC_PW}
	${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PW}

yppasswd_private.h: ${RPCSRC_PRIV}
	${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PRIV}

yppasswd_private_xdr.c: ${RPCSRC_PRIV}
	${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV}

yppasswd_private_clnt.c: ${RPCSRC_PRIV}
	${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PRIV}

.include <bsd.lib.mk>
OpenPOWER on IntegriCloud