Sync usage with man page.
[netbsd-mini2440.git] / lib / libcrypt / Makefile
bloba921f11481081db7fec8f7993db1dc4511c6e30e
1 # $NetBSD: Makefile,v 1.20 2008/07/12 12:29:42 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