boot - Switch boot2 loader path around
[dragonfly.git] / usr.sbin / rpc.yppasswdd / Makefile
blob79ff4de946b57cc3e3ef59ef1383763715018817
1 # $FreeBSD: src/usr.sbin/rpc.yppasswdd/Makefile,v 1.22 2007/11/20 02:07:30 jb Exp $
2 # $DragonFly: src/usr.sbin/rpc.yppasswdd/Makefile,v 1.2 2003/06/17 04:30:02 dillon Exp $
4 RPCDIR= ${DESTDIR}/usr/include/rpcsvc
6 .PATH: ${.CURDIR}/../../usr.sbin/ypserv ${.CURDIR}/../../usr.bin/chpass \
7 ${.CURDIR}/../../libexec/ypxfr ${RPCDIR}
9 PROG= rpc.yppasswdd
10 SCRIPTS=yppwupdate
11 SCRIPTSDIR= /usr/libexec
12 MAN= rpc.yppasswdd.8
13 SRCS= util.c yp_access.c yp_dblookup.c yp_dbwrite.c \
14 yp_error.c yppasswdd_main.c yppasswdd_server.c ypxfr_misc.c ${GENSRCS}
15 GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_private.h yppasswd_private_svc.c \
16 yppasswd_private_xdr.c yppasswd_svc.c
18 WARNS?= 0
19 CFLAGS+= -fno-strict-aliasing
20 CFLAGS+= -I${.CURDIR}/../../usr.sbin/vipw \
21 -I${.CURDIR}/../../usr.sbin/ypserv \
22 -I${.CURDIR}/../../libexec/ypxfr \
23 -I${.CURDIR} -I.
24 DPADD= ${LIBRPCSVC} ${LIBCRYPT} ${LIBUTIL}
25 LDADD= -lrpcsvc -lcrypt -lutil
27 CLEANFILES= ${GENSRCS}
29 RPCGEN= rpcgen -I -C
31 # We need to remove the 'static' keyword from _rpcsvcstate so that
32 # yppasswdd_main.c can see it.
33 yppasswd_svc.c: yppasswd.x
34 rm -f ${.TARGET}
35 ${RPCGEN} -m ${RPCDIR}/yppasswd.x | \
36 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
38 yppasswd.h: yppasswd.x
39 rm -f ${.TARGET}
40 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yppasswd.x
42 yp.h: yp.x
43 rm -f ${.TARGET}
44 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
46 yp_clnt.c: yp.x
47 rm -f ${.TARGET}
48 ${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
50 yppasswd_private.h: yppasswd_private.x
51 rm -f ${.TARGET}
52 ${RPCGEN} -h -o ${.TARGET} ${.CURDIR}/yppasswd_private.x
54 yppasswd_private_xdr.c: yppasswd_private.x
55 rm -f ${.TARGET}
56 ${RPCGEN} -c -o ${.TARGET} ${.CURDIR}/yppasswd_private.x
58 yppasswd_private_svc.c: yppasswd_private.x
59 rm -f ${.TARGET}
60 ${RPCGEN} -m ${.CURDIR}/yppasswd_private.x | \
61 sed s/"static int _rpcsvcstate = _IDLE"/"extern int _rpcsvcstate"/g > ${.TARGET}
63 .include <bsd.prog.mk>