diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-08-13 15:40:08 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-08-13 15:40:08 +0000 |
commit | e2da463c59e6c4d4f919c72f56bb7d1b85759069 (patch) | |
tree | 39411542340a8987f3f6c3f146ad8140fbbabcc1 /security/digest/files/Makefile | |
parent | 43267023cfa530911b5e1944411c2da8688f99b1 (diff) | |
download | ports-e2da463c59e6c4d4f919c72f56bb7d1b85759069.tar.gz ports-e2da463c59e6c4d4f919c72f56bb7d1b85759069.zip |
Synchronize with NetBSD. (20010807)
Notes
Notes:
svn path=/head/; revision=46197
Diffstat (limited to 'security/digest/files/Makefile')
-rw-r--r-- | security/digest/files/Makefile | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/security/digest/files/Makefile b/security/digest/files/Makefile index 3df4b3a18794..07aa31f1cdae 100644 --- a/security/digest/files/Makefile +++ b/security/digest/files/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2001/03/06 11:21:04 agc Exp $ +# $NetBSD: Makefile,v 1.6 2001/03/29 08:42:14 agc Exp $ # $FreeBSD$ # When adding new digest algorithms, please use rmd160 as the template, @@ -6,20 +6,21 @@ PROG= digest SRCS= digest.c -CPPFLAGS+= -I${.CURDIR} -LDFLAGS= -L${LOCALBASE}/lib -lmd -WARNS= 2 +CFLAGS+= -I${.CURDIR} -DVERSION="${VERSION}" +#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 + +.if !exists(/usr/include/sha2.h) +SRCS+= sha2.c sha2hl.c .endif -.if !exists(/usr/include/md5.h) +.if !exists(/usr/include/md5.h) || (${OPSYS} == SunOS) SRCS+= md5c.c md5hl.c +.else +LDADD+= -lmd .endif # use definition for correct endian.h header file @@ -30,6 +31,10 @@ CPPFLAGS+= -DHAVE_SYS_ENDIAN_H_ CPPFLAGS+= -DHAVE_MACHINE_ENDIAN_H_ .endif +.if (${OPSYS} == SunOS) +NOMAN= YES +.else LDSTATIC?= -static +.endif .include <bsd.prog.mk> |