pkgsrc/pkgtools/digest/files/Makefile
agc 9245ae2221 Include the rmd160 sources unconditionally, in reponse to a number of
reports which state that, although /usr/include/rmd160.h exists, the
corresponding rmd160*() routines are not available in libc.

Bump version number to 20010320
2001-03-29 08:42:14 +00:00

37 lines
761 B
Makefile

# $NetBSD: Makefile,v 1.6 2001/03/29 08:42:14 agc Exp $
# When adding new digest algorithms, please use rmd160 as the template,
# and bump the version definition in the package Makefile
PROG= digest
SRCS= digest.c
CPPFLAGS+= -I${.CURDIR} -DVERSION="${VERSION}"
WARNS= 2
SRCS+= rmd160.c rmd160hl.c
SRCS+= sha1.c sha1hl.c
.if !exists(/usr/include/sha2.h)
SRCS+= sha2.c sha2hl.c
.endif
.if !exists(/usr/include/md5.h)
SRCS+= md5c.c md5hl.c
.endif
# use definition for correct endian.h header file
.if exists(/usr/include/sys/endian.h)
CPPFLAGS+= -DHAVE_SYS_ENDIAN_H_
.endif
.if exists(/usr/include/machine/endian.h)
CPPFLAGS+= -DHAVE_MACHINE_ENDIAN_H_
.endif
.if (${OPSYS} == SunOS)
NOMAN= YES
.else
LDSTATIC?= -static
.endif
.include <bsd.prog.mk>