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