2002-10-20 11:16:13 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PROG= gbde
|
|
|
|
SRCS= gbde.c template.c
|
|
|
|
SRCS+= geom_enc.c
|
|
|
|
SRCS+= rijndael-alg-fst.c
|
|
|
|
SRCS+= rijndael-api-fst.c
|
2002-11-04 09:27:01 +00:00
|
|
|
SRCS+= sha2.c
|
2002-10-20 11:16:13 +00:00
|
|
|
SRCS+= g_bde_lock.c
|
|
|
|
|
2002-12-18 22:11:54 +00:00
|
|
|
# rijndael-fst.c does evil casting things which results in warnings on
|
|
|
|
# 64 bit machines, the test-vectors check out however, so it works right.
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2002-12-17 19:16:10 +00:00
|
|
|
WARNS?= 5
|
2002-12-18 22:11:54 +00:00
|
|
|
.else
|
|
|
|
WARNS?= 3
|
|
|
|
.endif
|
2002-12-17 19:16:10 +00:00
|
|
|
|
2002-10-21 05:25:02 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../sys
|
2002-11-04 09:27:01 +00:00
|
|
|
.PATH: ${.CURDIR}/../../sys/geom \
|
|
|
|
${.CURDIR}/../../sys/geom/bde \
|
|
|
|
${.CURDIR}/../../sys/crypto/rijndael \
|
|
|
|
${.CURDIR}/../../sys/crypto/sha2
|
2002-10-20 11:16:13 +00:00
|
|
|
|
|
|
|
CLEANFILES+= template.c
|
|
|
|
|
|
|
|
MAN= gbde.8
|
2003-03-31 18:38:31 +00:00
|
|
|
LDADD= -lmd -lutil -lgeom -lbsdxml -lsbuf
|
2002-10-20 11:16:13 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
|
|
|
template.c: template.txt
|
|
|
|
file2c 'const char template[] = {' ',0};' \
|
|
|
|
< ${.CURDIR}/template.txt > template.c
|
|
|
|
|
|
|
|
test: ${PROG}
|
|
|
|
sh ${.CURDIR}/test.sh
|