1# $FreeBSD: releng/11.0/sbin/gbde/Makefile 298107 2016-04-16 07:45:30Z gjb $
2
3PACKAGE=runtime
4PROG=	gbde
5SRCS=	gbde.c template.c
6SRCS+=	rijndael-alg-fst.c
7SRCS+=	rijndael-api-fst.c
8SRCS+=	sha512c.c
9SRCS+=	g_bde_lock.c
10
11# rijndael-fst.c does evil casting things which can results in warnings,
12# the test-vectors check out however, so it works right.
13NO_WCAST_ALIGN=
14NO_WMISSING_VARIABLE_DECLARATIONS=
15
16CFLAGS+= -I${.CURDIR}/../../sys
17.PATH:	${.CURDIR}/../../sys/geom/bde \
18	${.CURDIR}/../../sys/crypto/rijndael \
19	${.CURDIR}/../../sys/crypto/sha2
20
21CLEANFILES+= template.c
22
23MAN=	gbde.8
24LIBADD=	md util geom
25
26template.c: template.txt
27	file2c 'const char template[] = {' ',0};' \
28		< ${.CURDIR}/template.txt > template.c
29
30test: ${PROG}
31	sh ${.CURDIR}/test.sh ${.CURDIR}
32
33.include <bsd.prog.mk>
34