1 1.45 he # $NetBSD: Makefile,v 1.45 2005/03/04 20:41:09 he 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 .if (${USE_KERBEROS4} != "no") 29 1.44 manu SRCS+= klogin.c 30 1.44 manu CPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV 31 1.44 manu DPADD+= ${LIBKRB} ${LIBDES} 32 1.44 manu LDADD+= -lkrb -ldes 33 1.44 manu .endif 34 1.44 manu 35 1.44 manu DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR} 36 1.44 manu LDADD+= -lcrypto -lroken -lcom_err 37 1.44 manu .endif 38 1.44 manu 39 1.35 thorpej .if (${USE_SKEY} != "no") 40 1.16 mycroft CPPFLAGS+=-DSKEY 41 1.14 christos DPADD+= ${LIBSKEY} 42 1.14 christos LDADD+= -lskey 43 1.7 cgd .endif 44 1.44 manu .endif 45 1.18 mycroft 46 1.42 lukem CLEANFILES+= copyrightstr.c 47 1.42 lukem 48 1.42 lukem copyrightstr.c: ${NETBSDSRCDIR}/sys/conf/copyright 49 1.42 lukem ${_MKTARGET_CREATE} 50 1.42 lukem rm -f ${.TARGET} 51 1.42 lukem awk '\ 52 1.42 lukem BEGIN { print "const char copyrightstr[] =" }\ 53 1.42 lukem { print "\""$$0"\\n\""}\ 54 1.42 lukem END { print "\"\\n\";" }\ 55 1.42 lukem ' ${.ALLSRC} > ${.TARGET} 56 1.42 lukem 57 1.23 thorpej 58 1.18 mycroft .include <bsd.prog.mk> 59