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