retire nonsymbolic rootdev, dev2name
[minix.git] / lib / libcrypt / Makefile
blob6783cc582edc895e941c2fc3a50000d0e72fa7f6
1 # $NetBSD: Makefile,v 1.21 2008/08/29 00:02:22 gmcgarry Exp $
3 USE_SHLIBDIR= yes
5 LIB= crypt
7 SRCS= crypt.c md5crypt.c bcrypt.c crypt-sha1.c util.c pw_gensalt.c
8 SRCS+= hmac_sha1.c
10 WARNS= 4
12 MAN= crypt.3
13 MLINKS= crypt.3 encrypt.3 crypt.3 setkey.3
16 .if make(*.test)
17 .SUFFIXES: .test
18 .c.test:
19 ${CC} -o $@ -DUNIT_TEST -DMAIN ${LDSTATIC} ${.IMPSRC} ${LDADD}
20 LDADD+= -L${.OBJDIR} -l${LIB} -L${.OBJDIR}/../../libc
21 DPADD+= lib${LIB}.a
22 LDSTATIC?= -static
23 .include <bsd.prog.mk>
24 .else
25 .include <bsd.lib.mk>
26 .endif
28 .if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
29 COPTS.crypt-sha1.c+= -Wno-pointer-sign
30 .endif