NetBSD/usr.bin/login/Makefile

55 lines
1.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.51 2009/12/29 19:26:13 christos Exp $
# @(#)Makefile 8.1 (Berkeley) 7/19/93
1993-03-21 12:45:37 +03:00
WARNS?= 2 # XXX -Wcast-qual issues
.include <bsd.own.mk>
2007-05-28 16:06:17 +04:00
USE_FORT?= yes # setuid
1993-03-21 12:45:37 +03:00
PROG= login
2005-01-23 12:47:43 +03:00
SRCS= copyrightstr.c
1997-10-11 23:19:11 +04:00
DPADD+= ${LIBUTIL} ${LIBCRYPT}
LDADD+= -lutil -lcrypt
1997-10-12 16:54:55 +04:00
BINOWN= root
BINMODE=4555
2005-01-23 12:47:43 +03:00
SRCS+= common.c
2005-01-23 12:47:43 +03:00
.if (${USE_PAM} != "no")
SRCS+= login_pam.c
LDADD+= -lpam ${PAM_STATIC_LDADD}
DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
.else # USE_PAM == no
2005-01-23 12:47:43 +03:00
SRCS+= login.c
CPPFLAGS+=-DLOGIN_CAP -DSUPPORT_UTMP -DSUPPORT_UTMPX
1997-10-11 23:19:11 +04:00
2005-01-23 12:47:43 +03:00
.if (${USE_KERBEROS} != "no")
SRCS+= k5login.c
CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
DPADD+= ${LIBKRB5} ${LIBASN1}
LDADD+= -lkrb5 -lasn1
DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
LDADD+= -lcrypto -lroken -lcom_err
.endif
.if (${USE_SKEY} != "no")
1997-10-12 16:54:55 +04:00
CPPFLAGS+=-DSKEY
1997-10-11 23:19:11 +04:00
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}
1999-07-13 02:11:37 +04:00
.include <bsd.prog.mk>