Home | History | Annotate | Line # | Download | only in login
Makefile revision 1.42
      1  1.42     lukem #	$NetBSD: Makefile,v 1.42 2004/01/05 03:53:10 lukem 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.1       cgd PROG=	login
      7  1.42     lukem SRCS=	login.c copyrightstr.c
      8  1.14  christos DPADD+=	${LIBUTIL} ${LIBCRYPT}
      9  1.14  christos LDADD+=	-lutil -lcrypt
     10  1.16   mycroft BINOWN=	root
     11  1.16   mycroft BINMODE=4555
     12  1.37  christos CPPFLAGS+=-DLOGIN_CAP -DSUPPORT_UTMP -DSUPPORT_UTMPX
     13  1.15   mycroft 
     14  1.35   thorpej .if (${USE_SKEY} != "no")
     15  1.16   mycroft CPPFLAGS+=-DSKEY
     16  1.14  christos DPADD+= ${LIBSKEY}
     17  1.14  christos LDADD+=	-lskey
     18   1.7       cgd .endif
     19  1.18   mycroft 
     20  1.42     lukem CLEANFILES+=	copyrightstr.c
     21  1.42     lukem 
     22  1.42     lukem copyrightstr.c: ${NETBSDSRCDIR}/sys/conf/copyright
     23  1.42     lukem 	${_MKTARGET_CREATE}
     24  1.42     lukem 	rm -f ${.TARGET}
     25  1.42     lukem 	awk '\
     26  1.42     lukem 		BEGIN { print "const char copyrightstr[] =" }\
     27  1.42     lukem 		{ print "\""$$0"\\n\""}\
     28  1.42     lukem 		END { print "\"\\n\";" }\
     29  1.42     lukem 	' ${.ALLSRC} > ${.TARGET}
     30  1.42     lukem 
     31  1.35   thorpej .if (${USE_KERBEROS} != "no")
     32  1.29   thorpej SRCS+= k5login.c
     33  1.29   thorpej CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
     34  1.38    itojun DPADD+=	${LIBKRB5} ${LIBASN1}
     35  1.31   mycroft LDADD+= -lkrb5 -lasn1
     36  1.29   thorpej 
     37  1.39    itojun .if (${USE_KERBEROS4} != "no")
     38  1.29   thorpej SRCS+= klogin.c
     39  1.29   thorpej CPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV
     40  1.40       lha DPADD+=	${LIBKRB} ${LIBDES}
     41  1.40       lha LDADD+= -lkrb -ldes
     42  1.39    itojun .endif
     43  1.31   mycroft 
     44  1.38    itojun DPADD+=	${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
     45  1.33     assar LDADD+=	-lcrypto -lroken -lcom_err
     46  1.30   thorpej .endif
     47  1.23   thorpej 
     48  1.18   mycroft .include <bsd.prog.mk>
     49