1 # $FreeBSD: src/usr.sbin/rpc.yppasswdd/Makefile,v 1.13.2.3 2002/08/07 16:32:02 ru Exp $
2 # $DragonFly: src/usr.sbin/rpc.yppasswdd/Makefile,v 1.2 2003/06/17 04:30:02 dillon Exp $
5 SRCS
= pw_copy.c pw_util.c util.c yp_access.c yp_dblookup.c yp_dbwrite.c \
6 yp_error.c yppasswdd_main.c yppasswdd_server.c ypxfr_misc.c
${GENSRCS}
7 GENSRCS
=yp.h yp_clnt.c yppasswd.h yppasswd_private.h yppasswd_private_svc.c \
8 yppasswd_private_xdr.c yppasswd_svc.c
10 RPCDIR
= ${DESTDIR}/usr
/include/rpcsvc
12 .PATH
: ${.CURDIR
}/..
/..
/usr.sbin
/ypserv
${.CURDIR
}/..
/..
/usr.bin
/chpass \
13 ${.CURDIR
}/..
/..
/libexec
/ypxfr
${RPCDIR}
17 CFLAGS
+= -I
${.CURDIR
}/..
/..
/usr.sbin
/vipw
-I
${.CURDIR
}/..
/..
/usr.sbin
/ypserv \
18 -I
${.CURDIR
}/..
/..
/libexec
/ypxfr
-I
${.CURDIR
}/..
/..
/usr.bin
/chpass \
21 DPADD
= ${LIBRPCSVC} ${LIBCRYPT}
22 LDADD
= -lrpcsvc
-lcrypt
24 CLEANFILES
= ${GENSRCS}
28 # We need to remove the 'static' keyword from _rpcsvcstate so that
29 # yppasswdd_main.c can see it.
30 yppasswd_svc.c
: yppasswd.x
32 ${RPCGEN} -m
${RPCDIR}/yppasswd.x | \
33 sed s
/"static int _rpcsvcstate"/"int _rpcsvcstate"/g
> ${.TARGET
}
35 yppasswd.h
: yppasswd.x
37 ${RPCGEN} -h
-o
${.TARGET
} ${RPCDIR}/yppasswd.x
41 ${RPCGEN} -h
-o
${.TARGET
} ${RPCDIR}/yp.x
45 ${RPCGEN} -DYPSERV_ONLY
-l
-o
${.TARGET
} ${RPCDIR}/yp.x
47 yppasswd_private.h
: yppasswd_private.x
49 ${RPCGEN} -h
-o
${.TARGET
} ${.CURDIR
}/yppasswd_private.x
51 yppasswd_private_xdr.c
: yppasswd_private.x
53 ${RPCGEN} -c
-o
${.TARGET
} ${.CURDIR
}/yppasswd_private.x
55 yppasswd_private_svc.c
: yppasswd_private.x
57 ${RPCGEN} -m
${.CURDIR
}/yppasswd_private.x | \
58 sed s
/"static int _rpcsvcstate = _IDLE"/"extern int _rpcsvcstate"/g
> ${.TARGET
}
61 ${INSTALL} -o
${BINOWN} -g
${BINGRP} -m
${BINMODE} \
62 ${.CURDIR
}/yppwupdate \
63 ${DESTDIR}/usr
/libexec
/yppwupdate
65 .
include <bsd.prog.mk
>