summaryrefslogtreecommitdiff
path: root/pkgtools/digest/files/Makefile
blob: 7ea0bd5d86ed3bdaeeaa582801aeb427405bf74b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#	$NetBSD: Makefile,v 1.7 2001/07/09 21:42:03 hubertf 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) || (${OPSYS} == SunOS)
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>