summaryrefslogtreecommitdiffstats
path: root/libexec/ypxfr/Makefile
blob: b43aa87e073fbb1c373b73d8470a6bbc834f16d9 (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
# $Id: Makefile,v 1.6 1997/02/22 14:22:46 peter Exp $

PROG=	ypxfr
SRCS=	yp_dblookup.c yp_dbwrite.c yp_error.c \
	ypxfr_getmap.c ypxfr_main.c ypxfr_misc.c \
	ypxfrd_getmap.c \
	${GENSRCS}
GENSRCS=yp.h yp_clnt.c ypxfr_clnt.c

.PATH: ${.CURDIR}/../../usr.sbin/ypserv

MAN8=	ypxfr.8

CFLAGS+= -I.
DPADD=	${LIBRPCSVC}
LDADD=	-lrpcsvc

CLEANFILES= ${GENSRCS}

RPCDIR= ${.CURDIR}/../../include/rpcsvc
RPCGEN= rpcgen -I -C

ypxfr_clnt.c: ${RPCDIR}/yp.x
	rm -f ${.TARGET}
	${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x

yp_clnt.c: ${RPCDIR}/yp.x
	rm -f ${.TARGET}
	${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x

yp.h: ${RPCDIR}/yp.x
	rm -f ${.TARGET}
	${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x

# ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
#	rm -f ${.TARGET}
#	${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x

ypxfrd.h: ${RPCDIR}/ypxfrd.x
	rm -f ${.TARGET}
	${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x

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