NetBSD/lib/libcrypt/Makefile
christos 8cfd209e8e Add pw_gensalt, which was taken from pwd_gensalt. This now is used in 3
places, so it might as well be part of libcrypt.
2005-01-11 22:41:07 +00:00

26 lines
503 B
Makefile

# $NetBSD: Makefile,v 1.16 2005/01/11 22:41:07 christos Exp $
USE_SHLIBDIR= yes
LIB= crypt
SRCS= crypt.c md5crypt.c bcrypt.c crypt-sha1.c util.c pw_gensalt.c
CPPFLAGS+= -I${.CURDIR}
MAN= crypt.3
MLINKS= crypt.3 encrypt.3 crypt.3 setkey.3
.if make(*.test)
.SUFFIXES: .test
.c.test:
${CC} -o $@ -DUNIT_TEST -DMAIN ${LDSTATIC} ${.IMPSRC} ${LDADD}
LDADD+= -L${.OBJDIR} -l${LIB} -L${.OBJDIR}/../../libc
DPADD+= lib${LIB}.a
LDSTATIC?= -static
.include <bsd.prog.mk>
.else
.include <bsd.lib.mk>
.endif