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