2002-10-20 11:16:13 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2016-02-09 20:19:31 +00:00
|
|
|
PACKAGE=runtime
|
2002-10-20 11:16:13 +00:00
|
|
|
PROG= gbde
|
|
|
|
SRCS= gbde.c template.c
|
|
|
|
SRCS+= rijndael-alg-fst.c
|
|
|
|
SRCS+= rijndael-api-fst.c
|
2015-12-27 17:33:59 +00:00
|
|
|
SRCS+= sha512c.c
|
2002-10-20 11:16:13 +00:00
|
|
|
SRCS+= g_bde_lock.c
|
|
|
|
|
2011-12-17 00:14:40 +00:00
|
|
|
# rijndael-fst.c does evil casting things which can results in warnings,
|
|
|
|
# the test-vectors check out however, so it works right.
|
|
|
|
NO_WCAST_ALIGN=
|
2013-04-19 19:45:00 +00:00
|
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
2002-12-17 19:16:10 +00:00
|
|
|
|
2017-03-04 11:33:01 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/sys
|
|
|
|
.PATH: ${SRCTOP}/sys/geom/bde \
|
|
|
|
${SRCTOP}/sys/crypto/rijndael \
|
|
|
|
${SRCTOP}/sys/crypto/sha2
|
2002-10-20 11:16:13 +00:00
|
|
|
|
|
|
|
CLEANFILES+= template.c
|
|
|
|
|
|
|
|
MAN= gbde.8
|
2014-11-25 11:23:12 +00:00
|
|
|
LIBADD= md util geom
|
2002-10-20 11:16:13 +00:00
|
|
|
|
2003-04-16 11:54:11 +00:00
|
|
|
template.c: template.txt
|
2002-10-20 11:16:13 +00:00
|
|
|
file2c 'const char template[] = {' ',0};' \
|
|
|
|
< ${.CURDIR}/template.txt > template.c
|
|
|
|
|
2003-04-16 11:54:11 +00:00
|
|
|
test: ${PROG}
|
2003-10-17 19:52:07 +00:00
|
|
|
sh ${.CURDIR}/test.sh ${.CURDIR}
|
2003-04-16 11:54:11 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|