summaryrefslogtreecommitdiff
path: root/usr.sbin/tokenadm/Makefile
blob: 709dbbf844c52d8b19df12215133b87c1b3ea5f3 (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
#	$OpenBSD: Makefile,v 1.3 2010/10/15 10:18:42 jsg Exp $

PROG=	tokenadm
SRCS=	tokenadm.c init.c tokendb.c
MAN=	tokenadm.8
LDADD+=	-lcrypto
DPADD=	${LIBCRYPTO}

CFLAGS+=-I${.CURDIR}/../../libexec/login_token
.PATH:	${.CURDIR}/../../libexec/login_token

TOKENS=	activ crypto snk

MLINKS=	tokenadm.8 activadm.8
MLINKS+=tokenadm.8 cryptoadm.8
MLINKS+=tokenadm.8 snkadm.8

BINMODE=500

afterinstall:
	for i in ${TOKENS} ; do \
	    cd ${DESTDIR}${BINDIR} && \
	    rm -f $${i}adm && \
	    ln ${PROG} $${i}adm ; \
	done

.include <bsd.prog.mk>