1105513Sphk# $FreeBSD$
2105513Sphk
3105513SphkPROG=	gbde
4105513SphkSRCS=	gbde.c template.c
5105513SphkSRCS+=	rijndael-alg-fst.c
6105513SphkSRCS+=	rijndael-api-fst.c
7106407SphkSRCS+=	sha2.c
8105513SphkSRCS+=	g_bde_lock.c
9105513Sphk
10228610Sdim# rijndael-fst.c does evil casting things which can results in warnings,
11228610Sdim# the test-vectors check out however, so it works right.
12228610SdimNO_WCAST_ALIGN=
13249657SedNO_WMISSING_VARIABLE_DECLARATIONS=
14107982Sphk
15105610SphkCFLAGS+= -I${.CURDIR}/../../sys
16113014Sphk.PATH:	${.CURDIR}/../../sys/geom/bde \
17106407Sphk	${.CURDIR}/../../sys/crypto/rijndael \
18106407Sphk	${.CURDIR}/../../sys/crypto/sha2
19105513Sphk
20105513SphkCLEANFILES+= template.c
21105513Sphk
22105513SphkMAN=	gbde.8
23115104SruDPADD=	${LIBMD} ${LIBUTIL} ${LIBGEOM}
24115104SruLDADD=	-lmd -lutil -lgeom
25105513Sphk
26113558Srutemplate.c: template.txt
27105513Sphk	file2c 'const char template[] = {' ',0};' \
28105513Sphk		< ${.CURDIR}/template.txt > template.c
29105513Sphk
30113558Srutest: ${PROG}
31121169Sphk	sh ${.CURDIR}/test.sh ${.CURDIR}
32113558Sru
33113558Sru.include <bsd.prog.mk>
34