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