273248833658aeeb9a82eac45ed1f3cacb855e1d
[dragonfly.git] / usr.sbin / yppush / Makefile
1 # $FreeBSD: src/usr.sbin/yppush/Makefile,v 1.9 2001/07/20 06:20:30 obrien Exp $
2 # $DragonFly: src/usr.sbin/yppush/Makefile,v 1.2 2003/06/17 04:30:04 dillon Exp $
3
4 RPCDIR= ${.CURDIR}/../../include/rpcsvc
5 .PATH: ${RPCDIR} ${.CURDIR}/../../usr.sbin/ypserv \
6        ${.CURDIR}/../../libexec/ypxfr
7
8 PROG=   yppush
9 MAN=    yppush.8
10 SRCS=   ypxfr_getmap.c yp_dblookup.c yp_error.c ypxfr_misc.c yppush_main.c \
11         ${GENSRCS}
12 GENSRCS=yp.h yp_clnt.c yppush_svc.c
13
14 CFLAGS+= -I. -I${.CURDIR}/../../libexec/ypxfr
15
16 RPCGEN= rpcgen -C
17
18 CLEANFILES= ${GENSRCS}
19
20 yppush_svc.c: yp.x
21         ${RPCGEN} -DYPPUSH_ONLY -m -o ${.TARGET} ${RPCDIR}/yp.x
22
23 yp_clnt.c: yp.x
24         ${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
25
26 yp.h: yp.x
27         ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
28
29 .include <bsd.prog.mk>