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}
11 SCRIPTSDIR
= /usr
/libexec
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
19 CFLAGS
+= -fno-strict-aliasing
20 CFLAGS
+= -I
${.CURDIR
}/..
/..
/usr.sbin
/vipw \
21 -I
${.CURDIR
}/..
/..
/usr.sbin
/ypserv \
22 -I
${.CURDIR
}/..
/..
/libexec
/ypxfr \
24 DPADD
= ${LIBRPCSVC} ${LIBCRYPT} ${LIBUTIL}
25 LDADD
= -lrpcsvc
-lcrypt
-lutil
27 CLEANFILES
= ${GENSRCS}
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
35 ${RPCGEN} -m
${RPCDIR}/yppasswd.x | \
36 sed s
/"static int _rpcsvcstate"/"int _rpcsvcstate"/g
> ${.TARGET
}
38 yppasswd.h
: yppasswd.x
40 ${RPCGEN} -h
-o
${.TARGET
} ${RPCDIR}/yppasswd.x
44 ${RPCGEN} -h
-o
${.TARGET
} ${RPCDIR}/yp.x
48 ${RPCGEN} -DYPSERV_ONLY
-l
-o
${.TARGET
} ${RPCDIR}/yp.x
50 yppasswd_private.h
: yppasswd_private.x
52 ${RPCGEN} -h
-o
${.TARGET
} ${.CURDIR
}/yppasswd_private.x
54 yppasswd_private_xdr.c
: yppasswd_private.x
56 ${RPCGEN} -c
-o
${.TARGET
} ${.CURDIR
}/yppasswd_private.x
58 yppasswd_private_svc.c
: yppasswd_private.x
60 ${RPCGEN} -m
${.CURDIR
}/yppasswd_private.x | \
61 sed s
/"static int _rpcsvcstate = _IDLE"/"extern int _rpcsvcstate"/g
> ${.TARGET
}
63 .
include <bsd.prog.mk
>