Home | History | Annotate | Line # | Download | only in login
Makefile revision 1.55.2.1
      1  1.55.2.1       tls #	$NetBSD: Makefile,v 1.55.2.1 2014/08/20 00:05:00 tls 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.47       tls USE_FORT?= yes	# setuid
      7       1.1       cgd PROG=	login
      8      1.44      manu SRCS=	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.44      manu 
     14      1.51  christos SRCS+=	common.c
     15      1.44      manu .if (${USE_PAM} != "no")
     16      1.44      manu SRCS+=	login_pam.c
     17      1.45        he LDADD+=	-lpam ${PAM_STATIC_LDADD}
     18      1.45        he DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
     19      1.48     lukem .else	# USE_PAM == no
     20      1.44      manu SRCS+=	login.c
     21      1.37  christos CPPFLAGS+=-DLOGIN_CAP -DSUPPORT_UTMP -DSUPPORT_UTMPX
     22      1.15   mycroft 
     23      1.44      manu .if (${USE_KERBEROS} != "no")
     24      1.44      manu SRCS+= k5login.c
     25      1.52     elric CPPFLAGS+=-DKERBEROS5
     26      1.44      manu DPADD+=	${LIBKRB5} ${LIBASN1}
     27      1.44      manu LDADD+= -lkrb5 -lasn1
     28      1.44      manu 
     29      1.44      manu DPADD+=	${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
     30      1.44      manu LDADD+=	-lcrypto -lroken -lcom_err
     31      1.44      manu .endif
     32      1.44      manu 
     33      1.35   thorpej .if (${USE_SKEY} != "no")
     34      1.16   mycroft CPPFLAGS+=-DSKEY
     35      1.14  christos DPADD+= ${LIBSKEY}
     36      1.14  christos LDADD+=	-lskey
     37       1.7       cgd .endif
     38      1.48     lukem .endif	# USE_PAM == no
     39      1.18   mycroft 
     40      1.42     lukem CLEANFILES+=	copyrightstr.c
     41      1.42     lukem 
     42      1.42     lukem copyrightstr.c: ${NETBSDSRCDIR}/sys/conf/copyright
     43      1.42     lukem 	${_MKTARGET_CREATE}
     44      1.42     lukem 	rm -f ${.TARGET}
     45      1.49       apb 	${TOOL_AWK} '\
     46      1.42     lukem 		BEGIN { print "const char copyrightstr[] =" }\
     47      1.42     lukem 		{ print "\""$$0"\\n\""}\
     48      1.42     lukem 		END { print "\"\\n\";" }\
     49      1.42     lukem 	' ${.ALLSRC} > ${.TARGET}
     50      1.42     lukem 
     51      1.23   thorpej 
     52      1.18   mycroft .include <bsd.prog.mk>
     53