Deleted Added
full compact
Makefile (201381) Makefile (220497)
1#
1#
2# $FreeBSD: head/lib/libcrypt/Makefile 201381 2010-01-02 09:58:07Z ed $
2# $FreeBSD: head/lib/libcrypt/Makefile 220497 2011-04-09 14:02:04Z markm $
3#
4
5SHLIBDIR?= /lib
6
7.include <bsd.own.mk>
8
9SHLIB_MAJOR= 5
10LIB= crypt
11
12.PATH: ${.CURDIR}/../libmd
13SRCS= crypt.c misc.c \
14 crypt-md5.c md5c.c \
3#
4
5SHLIBDIR?= /lib
6
7.include <bsd.own.mk>
8
9SHLIB_MAJOR= 5
10LIB= crypt
11
12.PATH: ${.CURDIR}/../libmd
13SRCS= crypt.c misc.c \
14 crypt-md5.c md5c.c \
15 crypt-nthash.c md4c.c
15 crypt-nthash.c md4c.c \
16 crypt-sha256.c sha256c.c \
17 crypt-sha512.c sha512c.c
16MAN= crypt.3
17MLINKS= crypt.3 crypt_get_format.3 crypt.3 crypt_set_format.3
18CFLAGS+= -I${.CURDIR}/../libmd -I${.CURDIR}/../libutil
19
20# Pull in the strong crypto, if it is present.
21.if exists(${.CURDIR}/../../secure/lib/libcrypt) && ${MK_CRYPT} != "no"
22.PATH: ${.CURDIR}/../../secure/lib/libcrypt
23SRCS+= crypt-des.c crypt-blowfish.c blowfish.c
24CFLAGS+= -I${.CURDIR} -DHAS_DES -DHAS_BLOWFISH
25.endif
26
27# And the auth_getval() code and support.
28.PATH: ${.CURDIR}/../libutil
29SRCS+= auth.c property.c
30.for sym in auth_getval property_find properties_read properties_free \
31 MD4Init MD4Final MD4Update MD4Pad \
32 MD5Init MD5Final MD5Update MD5Pad
33CFLAGS+= -D${sym}=__${sym}
34.endfor
35
36WARNS?= 2
37
38PRECIOUSLIB=
39
40.include <bsd.lib.mk>
18MAN= crypt.3
19MLINKS= crypt.3 crypt_get_format.3 crypt.3 crypt_set_format.3
20CFLAGS+= -I${.CURDIR}/../libmd -I${.CURDIR}/../libutil
21
22# Pull in the strong crypto, if it is present.
23.if exists(${.CURDIR}/../../secure/lib/libcrypt) && ${MK_CRYPT} != "no"
24.PATH: ${.CURDIR}/../../secure/lib/libcrypt
25SRCS+= crypt-des.c crypt-blowfish.c blowfish.c
26CFLAGS+= -I${.CURDIR} -DHAS_DES -DHAS_BLOWFISH
27.endif
28
29# And the auth_getval() code and support.
30.PATH: ${.CURDIR}/../libutil
31SRCS+= auth.c property.c
32.for sym in auth_getval property_find properties_read properties_free \
33 MD4Init MD4Final MD4Update MD4Pad \
34 MD5Init MD5Final MD5Update MD5Pad
35CFLAGS+= -D${sym}=__${sym}
36.endfor
37
38WARNS?= 2
39
40PRECIOUSLIB=
41
42.include <bsd.lib.mk>