usr.sbin/fstyp: Use NULL instead of 0 for pointers. (FreeBSD@GitHub 27f4c84a)
[dragonfly.git] / lib / libopie / Makefile
blob0f53750d9cdf46320c1a39089414dbecc893ba8e
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?= 2
10 KEYFILE?= \"/etc/opiekeys\"
12 .PATH: ${DIST_DIR}
14 LIB= opie
15 SRCS= atob8.c btoa8.c btoh.c challenge.c getsequence.c hash.c hashlen.c \
16 keycrunch.c lock.c lookup.c newseed.c parsechallenge.c passcheck.c \
17 passwd.c randomchallenge.c readpass.c unlock.c verify.c version.c \
18 btoe.c accessfile.c generator.c insecure.c getutmpentry.c \
19 readrec.c writerec.c open.c
20 SRCS+= opieextra.c
21 INCS= ${OPIE_DIST}/opie.h
23 CONTRIBDIR= ${DIST_DIR}
24 SRCS+= readpass.c.patch
26 CFLAGS+=-I${.CURDIR} -I${OPIE_DIST} -I${DIST_DIR} \
27 -DKEY_FILE=${KEYFILE}
29 ACCESSFILE?= \"/etc/opieaccess\"
30 CFLAGS+= -DINSECURE_OVERRIDE -DPATH_ACCESS_FILE=${ACCESSFILE}
32 LDADD+= -lmd -lprivate_crypto
33 DPADD+= ${LIBMD} ${LIBRECRYPTO}
34 LDFLAGS+= ${PRIVATELIB_LDFLAGS}
35 CFLAGS+= -I${.CURDIR}/../../crypto/libressl/include
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>