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