freebsd-dev/sbin/gbde/Makefile
Kyle Evans 3a5855dd22 gbde: stop rebuilding sha512 bits
In the early days of gbde, it linked against libmd.  Shortly after
conception, phk replaced ARC4 with SHA-512, but libmd did not have SHA2
at the time thus he built a copy of sha2.c for gbde.

Fast forward 3 years, cperciva adds SHA2 to libmd -- this makes gbde's
build of sha2.c redundant, but it's (understandably) overlooked.  Let's
simplify the gbde build now and just assume that libmd includes the most
optimal implementation.

Reported by:	koobs (weird lto errors?)
Differential Revision:	https://reviews.freebsd.org/D34668
2023-04-26 00:36:33 -05:00

33 lines
677 B
Makefile

# $FreeBSD$
PACKAGE=geom
PROG= gbde
SRCS= gbde.c template.c
SRCS+= rijndael-alg-fst.c
SRCS+= rijndael-api-fst.c
SRCS+= g_bde_lock.c
# 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=
NO_WMISSING_VARIABLE_DECLARATIONS=
CFLAGS+= -I${SRCTOP}/sys
.PATH: ${SRCTOP}/sys/geom/bde \
${SRCTOP}/sys/crypto/rijndael \
${SRCTOP}/sys/crypto/sha2
CLEANFILES+= template.c
MAN= gbde.8
LIBADD= md util geom
template.c: template.txt
file2c 'const char template[] = {' ',0};' \
< ${.CURDIR}/template.txt > template.c
test: ${PROG}
sh ${.CURDIR}/test.sh ${.CURDIR}
.include <bsd.prog.mk>