diff options
Diffstat (limited to 'security/digest/files/Makefile')
-rw-r--r-- | security/digest/files/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/security/digest/files/Makefile b/security/digest/files/Makefile new file mode 100644 index 000000000000..3df4b3a18794 --- /dev/null +++ b/security/digest/files/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/03/06 11:21:04 agc Exp $ +# $FreeBSD$ + +# 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} +LDFLAGS= -L${LOCALBASE}/lib -lmd +WARNS= 2 + +.if !exists(/usr/include/rmd160.h) +SRCS+= rmd160.c rmd160hl.c +.endif + +.if !exists(/usr/include/sha1.h) +SRCS+= sha1.c sha1hl.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 + +LDSTATIC?= -static + +.include <bsd.prog.mk> |