xref: /freebsd/lib/libpam/modules/pam_krb5/Makefile (revision 6d669a5d7759ef7657dcc959b826e30d7a5f098b)
184d6cd8eSMark Murray# Copyright 2001 FreeBSD, Inc.
284d6cd8eSMark Murray# All rights reserved.
384d6cd8eSMark Murray#
484d6cd8eSMark Murray# Redistribution and use in source and binary forms, with or without
584d6cd8eSMark Murray# modification, are permitted provided that the following conditions
684d6cd8eSMark Murray# are met:
784d6cd8eSMark Murray# 1. Redistributions of source code must retain the above copyright
884d6cd8eSMark Murray#    notice, this list of conditions and the following disclaimer.
984d6cd8eSMark Murray# 2. Redistributions in binary form must reproduce the above copyright
1084d6cd8eSMark Murray#    notice, this list of conditions and the following disclaimer in the
1184d6cd8eSMark Murray#    documentation and/or other materials provided with the distribution.
1284d6cd8eSMark Murray#
1384d6cd8eSMark Murray# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1484d6cd8eSMark Murray# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1584d6cd8eSMark Murray# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1684d6cd8eSMark Murray# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1784d6cd8eSMark Murray# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1884d6cd8eSMark Murray# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1984d6cd8eSMark Murray# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2084d6cd8eSMark Murray# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2184d6cd8eSMark Murray# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2284d6cd8eSMark Murray# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2384d6cd8eSMark Murray# SUCH DAMAGE.
2484d6cd8eSMark Murray#
2584d6cd8eSMark Murray
263d79be24SCy Schubert.include <src.opts.mk>
273d79be24SCy Schubert
283d79be24SCy Schubert.if ${MK_MITKRB5} != "no"
293d79be24SCy SchubertSRCDIR= ${SRCTOP}/contrib/pam-krb5
303d79be24SCy Schubert.PATH:	${SRCDIR}/module \
313d79be24SCy Schubert	${SRCDIR}/portable \
323d79be24SCy Schubert	${SRCDIR}/pam-util \
333d79be24SCy Schubert	${SRCDIR}
343d79be24SCy Schubert
353d79be24SCy SchubertPACKAGE=	krb5
363d79be24SCy SchubertLIB=	pam_krb5
373d79be24SCy SchubertLIBADD=	com_err krb5
383d79be24SCy Schubert
393d79be24SCy SchubertSRCS=	account.c \
403d79be24SCy Schubert	alt-auth.c \
413d79be24SCy Schubert	args.c \
423d79be24SCy Schubert	auth.c \
433d79be24SCy Schubert	cache.c \
443d79be24SCy Schubert	context.c \
453d79be24SCy Schubert	dummy.c \
463d79be24SCy Schubert	fast.c \
473d79be24SCy Schubert	krb5-extra.c \
483d79be24SCy Schubert	logging.c \
493d79be24SCy Schubert	pam-util_options.c \
503d79be24SCy Schubert	module_options.c \
513d79be24SCy Schubert	pam_syslog.c \
523d79be24SCy Schubert	pam_vsyslog.c \
533d79be24SCy Schubert	password.c \
543d79be24SCy Schubert	prompting.c \
553d79be24SCy Schubert	public.c \
563d79be24SCy Schubert	setcred.c \
573d79be24SCy Schubert	support.c \
583d79be24SCy Schubert	vector.c
593d79be24SCy Schubert
60*6d669a5dSCy SchubertMAN=	pam-krb5.8
61*6d669a5dSCy SchubertMLINKS=	pam-krb5.8 pam_krb5.8
62*6d669a5dSCy Schubert
633d79be24SCy SchubertCFLAGS=	-I${SRCDIR} \
643d79be24SCy Schubert	-I${.CURDIR} \
653d79be24SCy Schubert	-fno-strict-aliasing \
663d79be24SCy Schubert	-Wno-error=incompatible-pointer-types-discards-qualifiers \
673d79be24SCy Schubert	-DHAVE_CONFIG_H
683d79be24SCy Schubert
693d79be24SCy SchubertWARNS?=	3
703d79be24SCy Schubert
713d79be24SCy SchubertCLEANFILES=	pam-util_options.c module_options.c
723d79be24SCy Schubert
733d79be24SCy Schubertpam-util_options.c:	.PHONY
743d79be24SCy Schubert	cp ${SRCDIR}/pam-util/options.c pam-util_options.c
753d79be24SCy Schubert
763d79be24SCy Schubertmodule_options.c:	.PHONY
773d79be24SCy Schubert	cp ${SRCDIR}/module/options.c module_options.c
783d79be24SCy Schubert.else
79a30235a4SEmmanuel VadotPACKAGE=	kerberos
80a30235a4SEmmanuel Vadot
8184d6cd8eSMark MurrayLIB=	pam_krb5
8239384277SMark MurraySRCS=	pam_krb5.c
837f03a257SDavid E. O'BrienMAN=	pam_krb5.8
842672e717SKen Smith.if defined(_FREEFALL_CONFIG)
852672e717SKen SmithCFLAGS+=-D_FREEFALL_CONFIG
8647e1a877SUlrich SpörleinWARNS?=	3
872672e717SKen Smith.endif
887f03a257SDavid E. O'Brien
896b129086SBaptiste DaroussinLIBADD+=	krb5
9084d6cd8eSMark Murray
913d79be24SCy Schubert.endif
923d79be24SCy Schubert
9384d6cd8eSMark Murray.include <bsd.lib.mk>
94