summaryrefslogtreecommitdiffstats
path: root/usr.sbin/yppush/Makefile
blob: 67a8116d44ea5d28294850af7c2f8a512e55aa9a (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
# $Id: Makefile,v 1.6 1995/12/16 04:03:02 wpaul Exp $

PROG=	yppush
SRCS=	yp_clnt.c ypxfr_getmap.c yp_dblookup.c yppush_svc.c \
	yp_error.c ypxfr_misc.c yppush_main.c

MAN8=	yppush.8

CFLAGS+=-I. -I${.CURDIR}/../../libexec/ypxfr

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

.PATH:	${RPCDIR} ${.CURDIR}/../../usr.sbin/ypserv \
	${.CURDIR}/../../libexec/ypxfr

CLEANFILES= yp.h yp_clnt.c yppush_svc.c

yppush_svc.c: yp.x yp.h
	${RPCGEN} -DYPPUSH_ONLY -m -o ${.TARGET} ${RPCDIR}/yp.x

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

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

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