# $NetBSD: Makefile,v 1.17 2006/05/11 23:16:28 mrg 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 .else .include .endif .if ${HAVE_GCC} == 4 COPTS.crypt-sha1.c+= -Wno-pointer-sign .endif