librt/aio_cancel(): Set errno to EBADF if the fd is not valid.
[dragonfly.git] / lib / libopie / Makefile
blob52ba06df6bb846e19b4edb50c3d002077bdfa381
1 # Makefile for libopie
3 # $FreeBSD: src/lib/libopie/Makefile,v 1.10.2.3 2002/07/15 14:17:08 des Exp $
5 OPIE_DIST?= ${.CURDIR}/../../contrib/opie
6 DIST_DIR= ${OPIE_DIST}/${.CURDIR:T}
7 SHLIB_MAJOR= 3
8 WARNS?= 1
10 KEYFILE?= \"/etc/opiekeys\"
12 .PATH: ${DIST_DIR} ${OPIE_DIST}/libmissing
14 LIB= opie
15 CSTD?= gnu89
16 SRCS= atob8.c btoa8.c btoh.c challenge.c getsequence.c hash.c hashlen.c \
17 keycrunch.c lock.c lookup.c newseed.c parsechallenge.c passcheck.c \
18 passwd.c randomchallenge.c readpass.c unlock.c verify.c version.c \
19 btoe.c accessfile.c generator.c insecure.c getutmpentry.c \
20 readrec.c writerec.c login.c open.c logwtmp.c \
21 getutline.c pututline.c endutent.c setutent.c # from libmissing
22 SRCS+= opieextra.c
23 INCS= ${OPIE_DIST}/opie.h
25 CONTRIBDIR= ${DIST_DIR}
26 SRCS+= readpass.c.patch
28 CFLAGS+=-I${.CURDIR} -I${OPIE_DIST} -I${DIST_DIR} \
29 -DKEY_FILE=${KEYFILE}
31 ACCESSFILE?= \"/etc/opieaccess\"
32 CFLAGS+= -DINSECURE_OVERRIDE -DPATH_ACCESS_FILE=${ACCESSFILE}
34 LDADD+= -lmd
35 DPADD+= ${LIBMD}
37 MAN= ${OPIE_DIST}/opie.4 ${OPIE_DIST}/opiekeys.5 ${OPIE_DIST}/opieaccess.5
39 MLINKS= opie.4 skey.4
41 .include <bsd.lib.mk>