1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/sbin/gbde/Makefile

37 lines
776 B
Makefile
Raw Normal View History

# $FreeBSD$
PROG= gbde
SRCS= gbde.c template.c
SRCS+= rijndael-alg-fst.c
SRCS+= rijndael-api-fst.c
SRCS+= sha2.c
SRCS+= g_bde_lock.c
# 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
.else
WARNS?= 3
.endif
2002-12-17 19:16:10 +00:00
CFLAGS+= -I${.CURDIR}/../../sys
2003-04-03 12:36:56 +00:00
.PATH: ${.CURDIR}/../../sys/geom/bde \
${.CURDIR}/../../sys/crypto/rijndael \
${.CURDIR}/../../sys/crypto/sha2
CLEANFILES+= template.c
MAN= gbde.8
DPADD= ${LIBMD} ${LIBUTIL} ${LIBGEOM}
LDADD= -lmd -lutil -lgeom
2003-04-16 11:54:11 +00:00
template.c: template.txt
file2c 'const char template[] = {' ',0};' \
< ${.CURDIR}/template.txt > template.c
2003-04-16 11:54:11 +00:00
test: ${PROG}
sh ${.CURDIR}/test.sh ${.CURDIR}
2003-04-16 11:54:11 +00:00
.include <bsd.prog.mk>