[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.bin / login

File: [cvs.NetBSD.org] / src / usr.bin / login / Makefile (download)

Revision 1.52.6.1, Mon May 7 16:24:07 2012 UTC (7 years, 6 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.52: +2 -2 lines

Pull up following revision(s) (requested by christos in ticket #215):
	usr.bin/login/login.c: revision 1.100
	usr.bin/login/login.c: revision 1.101
	usr.bin/login/login.c: revision 1.102
	usr.bin/login/common.c: revision 1.4
	usr.bin/login/common.h: revision 1.2
	usr.bin/login/k5login.c: revision 1.28
	usr.bin/login/k5login.c: revision 1.29
	usr.bin/login/login.c: revision 1.99
	usr.bin/login/login_pam.c: revision 1.21
	usr.bin/login/Makefile: revision 1.53
	usr.bin/login/Makefile: revision 1.54
	usr.bin/login/Makefile: revision 1.55
	usr.bin/login/k5login.c: revision 1.30
	usr.bin/login/k5login.c: revision 1.31
	usr.bin/login/k5login.c: revision 1.32
	usr.bin/login/k5login.c: revision 1.33
make krb5 compile again. XXX: one function left that is deprecated, what's
the new equivalent?
centralize error function processing.
fix the USE_KERBEROS=no USE_PAM=no build.
remove obsolete comment.
make kerberos work again:
1. make notickets external
2. don't use the tty as part of the credential cache, since pts/1 will not work.
3. Attempt to use the newer functions, but punt for now since it does not work
yet.
don't abuse the instance variable
move more of the compat code in the compat block.
last commit before I nuke the old code.
no more KRB5_DEPRECATED

#	$NetBSD: Makefile,v 1.52.6.1 2012/05/07 16:24:07 riz Exp $
#	@(#)Makefile	8.1 (Berkeley) 7/19/93

WARNS?=	5

.include <bsd.own.mk>

USE_FORT?= yes	# setuid
PROG=	login
SRCS=	copyrightstr.c
DPADD+=	${LIBUTIL} ${LIBCRYPT}
LDADD+=	-lutil -lcrypt
BINOWN=	root
BINMODE=4555

SRCS+=	common.c
.if (${USE_PAM} != "no")
SRCS+=	login_pam.c
LDADD+=	-lpam ${PAM_STATIC_LDADD}
DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
.else	# USE_PAM == no
SRCS+=	login.c
CPPFLAGS+=-DLOGIN_CAP -DSUPPORT_UTMP -DSUPPORT_UTMPX

.if (${USE_KERBEROS} != "no")
SRCS+= k5login.c
CPPFLAGS+=-DKERBEROS5
DPADD+=	${LIBKRB5} ${LIBASN1}
LDADD+= -lkrb5 -lasn1

DPADD+=	${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
LDADD+=	-lcrypto -lroken -lcom_err
.endif

.if (${USE_SKEY} != "no")
CPPFLAGS+=-DSKEY
DPADD+= ${LIBSKEY}
LDADD+=	-lskey
.endif
.endif	# USE_PAM == no

CLEANFILES+=	copyrightstr.c

copyrightstr.c: ${NETBSDSRCDIR}/sys/conf/copyright
	${_MKTARGET_CREATE}
	rm -f ${.TARGET}
	${TOOL_AWK} '\
		BEGIN { print "const char copyrightstr[] =" }\
		{ print "\""$$0"\\n\""}\
		END { print "\"\\n\";" }\
	' ${.ALLSRC} > ${.TARGET}


.include <bsd.prog.mk>