Makefile revision 50476
1139823Simp# Makefile for libopie
21541Srgrimes#
3185791Srwatson# $FreeBSD: head/lib/libopie/Makefile 50476 1999-08-28 00:22:10Z peter $
4222213Srwatson#
5185791SrwatsonOPIE_DIST?=	${.CURDIR}/../../contrib/opie
61541SrgrimesDIST_DIR=	${OPIE_DIST}/${.CURDIR:T}
7222213SrwatsonSHLIB_MAJOR=    2
8222213SrwatsonSHLIB_MINOR=    1
9222213Srwatson
101541SrgrimesKEYFILE?=	\"/etc/opiekeys\"
111541Srgrimes
121541Srgrimes.PATH: ${DIST_DIR} ${OPIE_DIST}/libmissing
131541Srgrimes
141541SrgrimesLIB=	opie
151541SrgrimesSRCS=	atob8.c btoa8.c btoh.c challenge.c getsequence.c hash.c hashlen.c \
161541Srgrimes	keycrunch.c lock.c lookup.c newseed.c parsechallenge.c passcheck.c \
171541Srgrimes	passwd.c randomchallenge.c readpass.c unlock.c verify.c version.c \
181541Srgrimes	btoe.c accessfile.c generator.c insecure.c getutmpentry.c \
191541Srgrimes	readrec.c writerec.c login.c open.c logwtmp.c \
201541Srgrimes	getutline.c pututline.c endutent.c setutent.c # from libmissing
211541Srgrimes
221541SrgrimesCFLAGS+=-I${.CURDIR} -I${OPIE_DIST} -I${DIST_DIR} \
231541Srgrimes	-DKEY_FILE=${KEYFILE}
241541Srgrimes
251541SrgrimesLDADD+=	-lmd
261541SrgrimesDPADD+=	${LIBMD}
271541Srgrimes
281541SrgrimesMAN4=	${OPIE_DIST}/opie.4
291541SrgrimesMAN5=	${OPIE_DIST}/opiekeys.5 ${OPIE_DIST}/opieaccess.5
301541Srgrimes
311541Srgrimesbeforeinstall:
321541Srgrimes	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${OPIE_DIST}/opie.h \
331541Srgrimes			${DESTDIR}/usr/include
341541Srgrimes
3550477Speter.include <bsd.lib.mk>
361541Srgrimes