summaryrefslogtreecommitdiff
path: root/libexec/login_chpass/Makefile
blob: 67cdfae458b0e7c13bc9471c6631c2ece2b60a89 (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.4 2003/07/15 19:02:19 deraadt Exp $


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

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

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

CFLAGS+=-Wall

#.if (${KERBEROS:L} == "yes")
#CFLAGS+=-DKERBEROS
#SRCS+=	new_pwd.c
#DPADD+= ${LIBKADM} ${LIBKRB} ${LIBDES}
#LDADD+= -lkadm -lkrb -ldes
#.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>