xref: /netbsd-src/lib/libpam/modules/pam_unix/Makefile (revision e7d22a2e645325144a9d854bb08f879ae427542a)
1*e7d22a2eSchristos# $NetBSD: Makefile,v 1.2 2004/12/12 08:18:47 christos Exp $
26f11bdf1Schristos# Copyright 1998 Juniper Networks, Inc.
36f11bdf1Schristos# All rights reserved.
46f11bdf1Schristos# Copyright (c) 2002 Networks Associates Technology, Inc.
56f11bdf1Schristos# All rights reserved.
66f11bdf1Schristos#
76f11bdf1Schristos# Portions of this software was developed for the FreeBSD Project by
86f11bdf1Schristos# ThinkSec AS and NAI Labs, the Security Research Division of Network
96f11bdf1Schristos# Associates, Inc.  under DARPA/SPAWAR contract N66001-01-C-8035
106f11bdf1Schristos# ("CBOSS"), as part of the DARPA CHATS research program.
116f11bdf1Schristos#
126f11bdf1Schristos# Redistribution and use in source and binary forms, with or without
136f11bdf1Schristos# modification, are permitted provided that the following conditions
146f11bdf1Schristos# are met:
156f11bdf1Schristos# 1. Redistributions of source code must retain the above copyright
166f11bdf1Schristos#    notice, this list of conditions and the following disclaimer.
176f11bdf1Schristos# 2. Redistributions in binary form must reproduce the above copyright
186f11bdf1Schristos#    notice, this list of conditions and the following disclaimer in the
196f11bdf1Schristos#    documentation and/or other materials provided with the distribution.
206f11bdf1Schristos# 3. The name of the author may not be used to endorse or promote
216f11bdf1Schristos#    products derived from this software without specific prior written
226f11bdf1Schristos#    permission.
236f11bdf1Schristos#
246f11bdf1Schristos# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
256f11bdf1Schristos# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
266f11bdf1Schristos# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
276f11bdf1Schristos# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
286f11bdf1Schristos# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
296f11bdf1Schristos# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
306f11bdf1Schristos# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
316f11bdf1Schristos# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
326f11bdf1Schristos# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
336f11bdf1Schristos# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
346f11bdf1Schristos# SUCH DAMAGE.
356f11bdf1Schristos#
366f11bdf1Schristos# $FreeBSD: src/lib/libpam/modules/pam_unix/Makefile,v 1.19 2004/11/13 20:40:29 bz Exp $
376f11bdf1Schristos
38*e7d22a2eSchristos.include <bsd.own.mk>
39*e7d22a2eSchristos
406f11bdf1SchristosLIB=	pam_unix
416f11bdf1SchristosSRCS=	pam_unix.c
426f11bdf1SchristosMAN=	pam_unix.8
436f11bdf1Schristos
446f11bdf1SchristosDPADD= ${LIBUTIL} ${LIBCRYPT}
456f11bdf1SchristosLDADD= -lutil -lcrypt
466f11bdf1Schristos
47*e7d22a2eSchristos.if (${USE_YP} != "no")
48*e7d22a2eSchristosCPPFLAGS+= -DYP
49*e7d22a2eSchristosLDADD+=	-lrpcsvc
50*e7d22a2eSchristosDPADD+= ${LIBRPCSVC}
516f11bdf1Schristos.endif
526f11bdf1Schristos
53*e7d22a2eSchristos.include "${.CURDIR}/../mod.mk"
54