1 # $NetBSD: Makefile,v 1.45 2005/03/04 20:41:09 he Exp $ 2 # @(#)Makefile 8.1 (Berkeley) 7/19/93 3 4 .include <bsd.own.mk> 5 6 WARNS= 2 7 PROG= login 8 SRCS= copyrightstr.c 9 DPADD+= ${LIBUTIL} ${LIBCRYPT} 10 LDADD+= -lutil -lcrypt 11 BINOWN= root 12 BINMODE=4555 13 14 .if (${USE_PAM} != "no") 15 SRCS+= login_pam.c 16 LDADD+= -lpam ${PAM_STATIC_LDADD} 17 DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD} 18 .else 19 SRCS+= login.c 20 CPPFLAGS+=-DLOGIN_CAP -DSUPPORT_UTMP -DSUPPORT_UTMPX 21 22 .if (${USE_KERBEROS} != "no") 23 SRCS+= k5login.c 24 CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5 25 DPADD+= ${LIBKRB5} ${LIBASN1} 26 LDADD+= -lkrb5 -lasn1 27 28 .if (${USE_KERBEROS4} != "no") 29 SRCS+= klogin.c 30 CPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV 31 DPADD+= ${LIBKRB} ${LIBDES} 32 LDADD+= -lkrb -ldes 33 .endif 34 35 DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR} 36 LDADD+= -lcrypto -lroken -lcom_err 37 .endif 38 39 .if (${USE_SKEY} != "no") 40 CPPFLAGS+=-DSKEY 41 DPADD+= ${LIBSKEY} 42 LDADD+= -lskey 43 .endif 44 .endif 45 46 CLEANFILES+= copyrightstr.c 47 48 copyrightstr.c: ${NETBSDSRCDIR}/sys/conf/copyright 49 ${_MKTARGET_CREATE} 50 rm -f ${.TARGET} 51 awk '\ 52 BEGIN { print "const char copyrightstr[] =" }\ 53 { print "\""$$0"\\n\""}\ 54 END { print "\"\\n\";" }\ 55 ' ${.ALLSRC} > ${.TARGET} 56 57 58 .include <bsd.prog.mk> 59