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