1997-02-07 03:51:56 +00:00
|
|
|
# Makefile for libopie
|
|
|
|
#
|
1998-10-11 04:45:50 +00:00
|
|
|
# $Id: Makefile,v 1.7 1997/09/29 21:40:17 ache Exp $
|
1997-02-07 03:51:56 +00:00
|
|
|
#
|
|
|
|
OPIE_DIST?= ${.CURDIR}/../../contrib/opie
|
|
|
|
DIST_DIR= ${OPIE_DIST}/${.CURDIR:T}
|
1997-09-29 21:40:17 +00:00
|
|
|
SHLIB_MAJOR= 2
|
|
|
|
SHLIB_MINOR= 1
|
1997-02-07 03:51:56 +00:00
|
|
|
|
|
|
|
KEYFILE?= \"/etc/opiekeys\"
|
|
|
|
|
|
|
|
.PATH: ${DIST_DIR} ${OPIE_DIST}/libmissing
|
|
|
|
|
|
|
|
LIB= opie
|
|
|
|
SRCS= atob8.c btoa8.c btoh.c challenge.c getsequence.c hash.c hashlen.c \
|
|
|
|
keycrunch.c lock.c lookup.c newseed.c parsechallenge.c passcheck.c \
|
|
|
|
passwd.c randomchallenge.c readpass.c unlock.c verify.c version.c \
|
|
|
|
btoe.c accessfile.c generator.c insecure.c getutmpentry.c \
|
1997-09-29 10:49:21 +00:00
|
|
|
readrec.c writerec.c login.c open.c logwtmp.c \
|
1997-09-29 11:38:36 +00:00
|
|
|
getutline.c pututline.c endutent.c setutent.c # from libmissing
|
1997-02-07 03:51:56 +00:00
|
|
|
|
|
|
|
CFLAGS+=-I${.CURDIR} -I${OPIE_DIST} -I${DIST_DIR} \
|
1997-09-29 10:55:46 +00:00
|
|
|
-DKEY_FILE=${KEYFILE}
|
1997-02-07 03:51:56 +00:00
|
|
|
|
1998-10-11 04:45:50 +00:00
|
|
|
LDADD+= -lmd
|
|
|
|
DPADD+= ${LIBMD}
|
|
|
|
|
1997-02-07 03:51:56 +00:00
|
|
|
MAN4= ${OPIE_DIST}/opie.4
|
|
|
|
MAN5= ${OPIE_DIST}/opiekeys.5 ${OPIE_DIST}/opieaccess.5
|
|
|
|
|
1997-03-08 19:42:41 +00:00
|
|
|
beforeinstall:
|
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${OPIE_DIST}/opie.h \
|
|
|
|
${DESTDIR}/usr/include
|
|
|
|
|
1997-02-07 03:51:56 +00:00
|
|
|
.include <bsd.lib.mk>
|