summaryrefslogtreecommitdiff
path: root/libexec/login_chpass/Makefile
blob: a323bbf89c16db2e6bdcc53b339061f8de803208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#	$OpenBSD: Makefile,v 1.5 2008/01/02 14:33:48 millert Exp $


PROG=	login_chpass
SRCS=	login_chpass.c
MAN=	login_chpass.8

.PATH:  ${.CURDIR}/../../usr.bin/passwd

.include <bsd.own.mk>	# For KERBEROS5 and YP

CFLAGS+=-Wall

#.if (${KERBEROS5:L} == "yes")
#SRCS+= krb5_passwd.c
#CFLAGS+= -DKRB5
#DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBDES} ${LIBCRYPTO}
#LDADD+= -lkrb5 -lasn1 -ldes -lcrypto
#.endif

.if (${YP:L} == "yes")
CFLAGS+=-DYP
SRCS+= yp_passwd.c pwd_check.c pwd_gensalt.c
DPADD+= ${LIBRPCSVC} ${LIBUTIL}
LDADD+= -lrpcsvc -lutil
.endif

BINOWN=	root
BINGRP=	auth
BINMODE=4555
BINDIR=	/usr/libexec/auth

.include <bsd.prog.mk>