1 1.54 christos # $NetBSD: Makefile,v 1.54 2012/04/23 20:54:40 christos Exp $ 2 1.10 jtc # @(#)Makefile 8.1 (Berkeley) 7/19/93 3 1.1 cgd 4 1.54 christos WARNS?= 5 5 1.50 lukem 6 1.30 thorpej .include <bsd.own.mk> 7 1.30 thorpej 8 1.47 tls USE_FORT?= yes # setuid 9 1.1 cgd PROG= login 10 1.44 manu SRCS= copyrightstr.c 11 1.14 christos DPADD+= ${LIBUTIL} ${LIBCRYPT} 12 1.14 christos LDADD+= -lutil -lcrypt 13 1.16 mycroft BINOWN= root 14 1.16 mycroft BINMODE=4555 15 1.44 manu 16 1.51 christos SRCS+= common.c 17 1.44 manu .if (${USE_PAM} != "no") 18 1.44 manu SRCS+= login_pam.c 19 1.45 he LDADD+= -lpam ${PAM_STATIC_LDADD} 20 1.45 he DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD} 21 1.48 lukem .else # USE_PAM == no 22 1.44 manu SRCS+= login.c 23 1.37 christos CPPFLAGS+=-DLOGIN_CAP -DSUPPORT_UTMP -DSUPPORT_UTMPX 24 1.15 mycroft 25 1.44 manu .if (${USE_KERBEROS} != "no") 26 1.44 manu SRCS+= k5login.c 27 1.52 elric CPPFLAGS+=-DKERBEROS5 28 1.53 christos # XXX: for krb5_get_in_tkt_with_password 29 1.53 christos CPPFLAGS+=-DKRB5_DEPRECATED= 30 1.44 manu DPADD+= ${LIBKRB5} ${LIBASN1} 31 1.44 manu LDADD+= -lkrb5 -lasn1 32 1.44 manu 33 1.44 manu DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR} 34 1.44 manu LDADD+= -lcrypto -lroken -lcom_err 35 1.44 manu .endif 36 1.44 manu 37 1.35 thorpej .if (${USE_SKEY} != "no") 38 1.16 mycroft CPPFLAGS+=-DSKEY 39 1.14 christos DPADD+= ${LIBSKEY} 40 1.14 christos LDADD+= -lskey 41 1.7 cgd .endif 42 1.48 lukem .endif # USE_PAM == no 43 1.18 mycroft 44 1.42 lukem CLEANFILES+= copyrightstr.c 45 1.42 lukem 46 1.42 lukem copyrightstr.c: ${NETBSDSRCDIR}/sys/conf/copyright 47 1.42 lukem ${_MKTARGET_CREATE} 48 1.42 lukem rm -f ${.TARGET} 49 1.49 apb ${TOOL_AWK} '\ 50 1.42 lukem BEGIN { print "const char copyrightstr[] =" }\ 51 1.42 lukem { print "\""$$0"\\n\""}\ 52 1.42 lukem END { print "\"\\n\";" }\ 53 1.42 lukem ' ${.ALLSRC} > ${.TARGET} 54 1.42 lukem 55 1.23 thorpej 56 1.18 mycroft .include <bsd.prog.mk> 57