]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libcrypt/Makefile
Bump the shared library version number of all libraries that have not
[FreeBSD/FreeBSD.git] / lib / libcrypt / Makefile
1 #
2 # $FreeBSD$
3 #
4
5 SHLIB_MAJOR=    3
6 LIB=            crypt
7 SHLIBDIR?=      /lib
8
9 .PATH:          ${.CURDIR}/../libmd
10 SRCS=           crypt.c misc.c \
11                 crypt-md5.c md5c.c \
12                 crypt-nthash.c md4c.c
13 MAN=            crypt.3
14 MLINKS=         crypt.3 crypt_get_format.3 crypt.3 crypt_set_format.3
15 CFLAGS+=        -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(NO_CRYPT)
19 .PATH:          ${.CURDIR}/../../secure/lib/libcrypt
20 SRCS+=          crypt-des.c crypt-blowfish.c blowfish.c
21 CFLAGS+=        -I${.CURDIR} -DHAS_DES -DHAS_BLOWFISH
22 .endif
23
24 # And the auth_getval() code and support.
25 .PATH:          ${.CURDIR}/../libutil
26 SRCS+=          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
30 CFLAGS+=        -D${sym}=__${sym}
31 .endfor
32
33 PRECIOUSLIB=
34
35 .include <bsd.lib.mk>