]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - lib/libcrypt/Makefile
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.git] / lib / libcrypt / Makefile
1 #
2 # $FreeBSD$
3 #
4
5 SHLIBDIR?=      /lib
6
7 .include <bsd.own.mk>
8
9 SHLIB_MAJOR=    5
10 LIB=            crypt
11
12 .PATH:          ${.CURDIR}/../libmd
13 SRCS=           crypt.c misc.c \
14                 crypt-md5.c md5c.c \
15                 crypt-nthash.c md4c.c \
16                 crypt-sha256.c sha256c.c \
17                 crypt-sha512.c sha512c.c
18 MAN=            crypt.3
19 MLINKS=         crypt.3 crypt_get_format.3 crypt.3 crypt_set_format.3
20 CFLAGS+=        -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
25 SRCS+=          crypt-des.c crypt-blowfish.c blowfish.c
26 CFLAGS+=        -I${.CURDIR} -DHAS_DES -DHAS_BLOWFISH
27 .endif
28
29 # And the auth_getval() code and support.
30 .PATH:          ${.CURDIR}/../libutil
31 SRCS+=          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 \
35             SHA256_Init SHA256_Final SHA256_Update \
36             SHA512_Init SHA512_Final SHA512_Update
37 CFLAGS+=        -D${sym}=__${sym}
38 .endfor
39
40 WARNS?=         2
41
42 PRECIOUSLIB=
43
44 .include <bsd.lib.mk>