]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - lib/libcrypt/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.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 MAN=            crypt.3
17 MLINKS=         crypt.3 crypt_get_format.3 crypt.3 crypt_set_format.3
18 CFLAGS+=        -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
23 SRCS+=          crypt-des.c crypt-blowfish.c blowfish.c
24 CFLAGS+=        -I${.CURDIR} -DHAS_DES -DHAS_BLOWFISH
25 .endif
26
27 # And the auth_getval() code and support.
28 .PATH:          ${.CURDIR}/../libutil
29 SRCS+=          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
33 CFLAGS+=        -D${sym}=__${sym}
34 .endfor
35
36 PRECIOUSLIB=
37
38 .include <bsd.lib.mk>