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