Makefile revision 82352
1# Copyright 1998 Juniper Networks, Inc.
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions
6# are met:
7# 1. Redistributions of source code must retain the above copyright
8#    notice, this list of conditions and the following disclaimer.
9# 2. Redistributions in binary form must reproduce the above copyright
10#    notice, this list of conditions and the following disclaimer in the
11#    documentation and/or other materials provided with the distribution.
12#
13# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23# SUCH DAMAGE.
24#
25#	$FreeBSD: head/lib/libpam/modules/pam_unix/Makefile 82352 2001-08-26 17:41:13Z markm $
26
27LIB=		pam_unix
28SHLIB_NAME=	pam_unix.so
29SRCS=		pam_unix.c pw_copy.c pw_yp.c pw_util.c ypxfr_misc.c ${GENSRCS}
30CFLAGS=		-DYP -Dyp_error=warnx \
31		-I${.OBJDIR} \
32		-I${.CURDIR}/../../../../libexec/ypxfr \
33		-I${.CURDIR}/../../../../usr.sbin/vipw \
34		-I${.CURDIR}/../../../../usr.bin/chpass
35DPADD=		${LIBUTIL} ${LIBCRYPT} ${LIBRPCSVC}
36LDADD=		-lutil -lcrypt -lrpcsvc
37MAN=		pam_unix.8
38
39GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_clnt.c \
40	yppasswd_private.h yppasswd_private_clnt.c yppasswd_private_xdr.c
41
42RPCGEN= rpcgen -C
43RPCSRC= ${DESTDIR}/usr/include/rpcsvc/yp.x
44RPCSRC_PW= ${DESTDIR}/usr/include/rpcsvc/yppasswd.x
45RPCSRC_PRIV= ${.CURDIR}/../../../../usr.sbin/rpc.yppasswdd/yppasswd_private.x
46
47yp.h: ${RPCSRC}
48	${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
49
50yp_clnt.c: ${RPCSRC} yp.h
51	${RPCGEN} -l -o ${.TARGET} ${RPCSRC}
52
53yppasswd.h: ${RPCSRC_PW}
54	${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PW}
55
56yppasswd_clnt.c: ${RPCSRC_PW}
57	${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PW}
58
59yppasswd_private.h: ${RPCSRC_PRIV}
60	${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PRIV}
61
62yppasswd_private_xdr.c: ${RPCSRC_PRIV}
63	${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV}
64
65yppasswd_private_clnt.c: ${RPCSRC_PRIV}
66	${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PRIV}
67
68
69yppasswd_private.h: ${RPCSRC_PRIV}
70	${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PRIV}
71
72CLEANFILES= ${GENSRCS}
73
74.include <bsd.lib.mk>
75
76.PATH:		${.CURDIR}/../../../../usr.bin/chpass
77.PATH:		${.CURDIR}/../../../../usr.sbin/vipw
78.PATH:		${.CURDIR}/../../../../libexec/ypxfr
79