2004-01-05 06:53:10 +03:00
|
|
|
# $NetBSD: Makefile,v 1.42 2004/01/05 03:53:10 lukem Exp $
|
1994-12-23 09:52:56 +03:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 7/19/93
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2000-06-23 10:01:10 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
PROG= login
|
2004-01-05 06:53:10 +03:00
|
|
|
SRCS= login.c copyrightstr.c
|
1997-10-11 23:19:11 +04:00
|
|
|
DPADD+= ${LIBUTIL} ${LIBCRYPT}
|
|
|
|
LDADD+= -lutil -lcrypt
|
1997-10-12 16:54:55 +04:00
|
|
|
BINOWN= root
|
|
|
|
BINMODE=4555
|
2002-07-28 02:58:07 +04:00
|
|
|
CPPFLAGS+=-DLOGIN_CAP -DSUPPORT_UTMP -DSUPPORT_UTMPX
|
1997-10-11 23:19:11 +04:00
|
|
|
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
.if (${USE_SKEY} != "no")
|
1997-10-12 16:54:55 +04:00
|
|
|
CPPFLAGS+=-DSKEY
|
1997-10-11 23:19:11 +04:00
|
|
|
DPADD+= ${LIBSKEY}
|
|
|
|
LDADD+= -lskey
|
|
|
|
.endif
|
1994-03-30 06:49:15 +04:00
|
|
|
|
2004-01-05 06:53:10 +03:00
|
|
|
CLEANFILES+= copyrightstr.c
|
|
|
|
|
|
|
|
copyrightstr.c: ${NETBSDSRCDIR}/sys/conf/copyright
|
|
|
|
${_MKTARGET_CREATE}
|
|
|
|
rm -f ${.TARGET}
|
|
|
|
awk '\
|
|
|
|
BEGIN { print "const char copyrightstr[] =" }\
|
|
|
|
{ print "\""$$0"\\n\""}\
|
|
|
|
END { print "\"\\n\";" }\
|
|
|
|
' ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
.if (${USE_KERBEROS} != "no")
|
2000-06-20 10:00:24 +04:00
|
|
|
SRCS+= k5login.c
|
|
|
|
CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
|
2002-10-23 05:25:35 +04:00
|
|
|
DPADD+= ${LIBKRB5} ${LIBASN1}
|
2000-07-24 02:23:14 +04:00
|
|
|
LDADD+= -lkrb5 -lasn1
|
2000-06-20 10:00:24 +04:00
|
|
|
|
2003-07-23 12:01:24 +04:00
|
|
|
.if (${USE_KERBEROS4} != "no")
|
2000-06-20 10:00:24 +04:00
|
|
|
SRCS+= klogin.c
|
|
|
|
CPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV
|
2003-08-24 03:03:42 +04:00
|
|
|
DPADD+= ${LIBKRB} ${LIBDES}
|
|
|
|
LDADD+= -lkrb -ldes
|
2003-07-23 12:01:24 +04:00
|
|
|
.endif
|
2000-07-24 02:23:14 +04:00
|
|
|
|
2002-10-23 05:25:35 +04:00
|
|
|
DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
|
2000-08-04 02:56:29 +04:00
|
|
|
LDADD+= -lcrypto -lroken -lcom_err
|
2000-06-23 10:01:10 +04:00
|
|
|
.endif
|
1999-03-05 04:07:56 +03:00
|
|
|
|
1999-07-13 02:11:37 +04:00
|
|
|
.include <bsd.prog.mk>
|