1# 2# $FreeBSD$ 3# 4 5SHLIB_MAJOR= 2 6LIB= crypt 7 8.PATH: ${.CURDIR}/../libmd 9SRCS= crypt.c misc.c \ 10 crypt-md5.c md5c.c \ 11 crypt-nthash.c md4c.c 12MAN= crypt.3 13MLINKS= crypt.3 crypt_get_format.3 crypt.3 crypt_set_format.3 14CFLAGS+= -I${.CURDIR}/../libmd -I${.CURDIR}/../libutil 15 16# Pull in the strong crypto, if it is present. 17.if exists(${.CURDIR}/../../secure/lib/libcrypt) && !defined(NOCRYPT) 18.PATH: ${.CURDIR}/../../secure/lib/libcrypt 19SRCS+= crypt-des.c crypt-blowfish.c blowfish.c 20CFLAGS+= -I${.CURDIR} -DHAS_DES -DHAS_BLOWFISH 21.endif 22 23# And the auth_getval() code and support. 24.PATH: ${.CURDIR}/../libutil 25SRCS+= auth.c property.c 26.for sym in auth_getval property_find properties_read properties_free \ 27 MD4Init MD4Final MD4Update MD4Pad \ 28 MD5Init MD5Final MD5Update MD5Pad 29CFLAGS+= -D${sym}=__${sym} 30.endfor 31 32PRECIOUSLIB= yes 33 34.include <bsd.lib.mk> 35