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