diff options
author | 2001-07-02 14:07:06 +0000 | |
---|---|---|
committer | 2001-07-02 14:07:06 +0000 | |
commit | 42ba64e010589b687b9a623ca8a3945680d78df3 (patch) | |
tree | fe484d2003dd3de6ea1f560d404fa5e483a5eeb6 | |
parent | Sync library list with bsd.prog.mk (diff) | |
download | wireguard-openbsd-42ba64e010589b687b9a623ca8a3945680d78df3.tar.xz wireguard-openbsd-42ba64e010589b687b9a623ca8a3945680d78df3.zip |
Fix building on non-kerberos systems
-rw-r--r-- | libexec/login_krb4-or-pwd/Makefile | 25 | ||||
-rw-r--r-- | libexec/login_krb4/Makefile | 20 | ||||
-rw-r--r-- | libexec/login_krb5-or-pwd/Makefile | 20 | ||||
-rw-r--r-- | libexec/login_krb5/Makefile | 19 |
4 files changed, 64 insertions, 20 deletions
diff --git a/libexec/login_krb4-or-pwd/Makefile b/libexec/login_krb4-or-pwd/Makefile index 0c7e33043eb..3ec626172a1 100644 --- a/libexec/login_krb4-or-pwd/Makefile +++ b/libexec/login_krb4-or-pwd/Makefile @@ -1,12 +1,23 @@ -# $OpenBSD: Makefile,v 1.2 2001/06/26 05:03:27 hin Exp $ +# $OpenBSD: Makefile,v 1.3 2001/07/02 14:07:06 millert Exp $ + +.include <bsd.own.mk> PROG= login_krb4-or-pwd -SRCS= login_krb4.c login_passwd.c login.c -MAN= login_krb4-or-pwd.8 -DPADD= ${LIBUTIL} -LDADD= -lutil -lkrb -lcrypto -CFLAGS+=-Wall -Werror -DPASSWD -DKRB4 -I${.CURDIR}/../login_passwd -.PATH: ${.CURDIR}/../login_krb4 ${.CURDIR}/../login_passwd +SRCS= login.c login_passwd.c +MAN= ${PROG}.8 +CFLAGS+=-DPASSWD -Wall -Werror -I${.CURDIR}/../login_passwd + +.if (${KERBEROS:L} == "yes") +SRCS+= login_krb4.c +DPADD+= ${LIBKRB} ${LIBCRYPTO} ${LIBUTIL} +LDADD+= -lkrb -lcrypto -lutil +CFLAGS+=-DKRB4 +.PATH: ${.CURDIR}/../login_passwd ${.CURDIR}/../login_krb4 +.else +DPADD+= ${LIBUTIL} +LDADD+= -lutil +.PATH: ${.CURDIR}/../login_passwd +.endif BINOWN= root BINGRP= auth diff --git a/libexec/login_krb4/Makefile b/libexec/login_krb4/Makefile index 1d1a7f41653..413e0a57a63 100644 --- a/libexec/login_krb4/Makefile +++ b/libexec/login_krb4/Makefile @@ -1,13 +1,23 @@ -# $OpenBSD: Makefile,v 1.2 2001/06/26 05:03:26 hin Exp $ +# $OpenBSD: Makefile,v 1.3 2001/07/02 14:07:06 millert Exp $ + +.include <bsd.own.mk> PROG= login_krb4 -SRCS= login_krb4.c login.c +SRCS= login.c MAN= ${PROG}.8 -DPADD= ${LIBUTIL} -LDADD= -lutil -lkrb -lcrypto -CFLAGS+=-DKRB4 -Wall -Werror -I${.CURDIR}/../login_passwd +CFLAGS+=-Wall -Werror -I${.CURDIR}/../login_passwd .PATH: ${.CURDIR}/../login_passwd +.if (${KERBEROS:L} == "yes") +SRCS+= login_krb4.c +DPADD+= ${LIBKRB} ${LIBCRYPTO} +LDADD+= -lkrb -lcrypto +CFLAGS+=-DKRB4 +.endif + +DPADD+= ${LIBUTIL} +LDADD+= -lutil + BINOWN= root BINGRP= auth BINMODE=4555 diff --git a/libexec/login_krb5-or-pwd/Makefile b/libexec/login_krb5-or-pwd/Makefile index f25094d06c4..21e837b8c12 100644 --- a/libexec/login_krb5-or-pwd/Makefile +++ b/libexec/login_krb5-or-pwd/Makefile @@ -1,11 +1,23 @@ -# $OpenBSD: Makefile,v 1.3 2001/06/26 05:03:27 hin Exp $ +# $OpenBSD: Makefile,v 1.4 2001/07/02 14:07:07 millert Exp $ + +.include <bsd.own.mk> PROG= login_krb5-or-pwd -SRCS= login_krb5.c login_passwd.c login.c +SRCS= login.c login_passwd.c MAN= ${PROG}.8 -LDADD= -lkrb5 -lasn1 -lcrypto -lcom_err -lkrb -lutil -CFLAGS+=-DKRB524 -DKRB5 -DPASSWD -Wall -Werror -I${.CURDIR}/../login_passwd +CFLAGS+=-DPASSWD -Wall -Werror -I${.CURDIR}/../login_passwd + +.if (${KERBEROS:L} == "yes") +SRCS+= login_krb5.c +DPADD+= ${LIBKRB} ${LIBCRYPTO} ${LIBUTIL} +LDADD+= -lkrb5 -lasn1 -lcrypto -lcom_err -lkrb -lutil +CFLAGS+=-DKRB524 -DKRB5 .PATH: ${.CURDIR}/../login_passwd ${.CURDIR}/../login_krb5 +.else +DPADD+= ${LIBUTIL} +LDADD+= -lutil +.PATH: ${.CURDIR}/../login_passwd +.endif BINOWN= root BINGRP= auth diff --git a/libexec/login_krb5/Makefile b/libexec/login_krb5/Makefile index a8b77fa74be..50c821da057 100644 --- a/libexec/login_krb5/Makefile +++ b/libexec/login_krb5/Makefile @@ -1,12 +1,23 @@ -# $OpenBSD: Makefile,v 1.7 2001/06/26 20:44:24 hin Exp $ +# $OpenBSD: Makefile,v 1.8 2001/07/02 14:07:07 millert Exp $ + +.include <bsd.own.mk> PROG= login_krb5 -SRCS= login.c login_krb5.c +SRCS= login.c MAN= ${PROG}.8 -LDADD= -lkrb5 -lasn1 -lcrypto -lcom_err -lkrb -CFLAGS+=-DKRB524 -DKRB5 -Wall -Werror -I${.CURDIR}/../login_passwd +CFLAGS+=-Wall -Werror -I${.CURDIR}/../login_passwd .PATH: ${.CURDIR}/../login_passwd +.if (${KERBEROS:L} == "yes") +SRCS+= login_krb5.c +DPADD+= ${LIBKRB} ${LIBCRYPTO} +LDADD+= -lkrb5 -lasn1 -lcrypto -lcom_err -lkrb +CFLAGS+=-DKRB524 -DKRB5 +.endif + +DPADD+= ${LIBUTIL} +LDADD+= -lutil + BINOWN= root BINGRP= auth BINMODE=4555 |