Makefile revision 113558
1# $FreeBSD: head/sbin/gbde/Makefile 113558 2003-04-16 11:54:11Z ru $
2
3PROG=	gbde
4SRCS=	gbde.c template.c
5SRCS+=	rijndael-alg-fst.c
6SRCS+=	rijndael-api-fst.c
7SRCS+=	sha2.c
8SRCS+=	g_bde_lock.c
9
10# rijndael-fst.c does evil casting things which results in warnings on
11# 64 bit machines, the test-vectors check out however, so it works right.
12.if ${MACHINE_ARCH} == "i386"
13WARNS?=	5
14.else
15WARNS?=	3
16.endif
17
18CFLAGS+= -I${.CURDIR}/../../sys
19.PATH:	${.CURDIR}/../../sys/geom/bde \
20	${.CURDIR}/../../sys/crypto/rijndael \
21	${.CURDIR}/../../sys/crypto/sha2
22
23CLEANFILES+= template.c
24
25MAN=	gbde.8
26DPADD=	${LIBMD} ${LIBUTIL} ${LIBGEOM} ${LIBBSDXML} ${LIBSBUF}
27LDADD=	-lmd -lutil -lgeom -lbsdxml -lsbuf
28
29template.c: template.txt
30	file2c 'const char template[] = {' ',0};' \
31		< ${.CURDIR}/template.txt > template.c
32
33test: ${PROG}
34	sh ${.CURDIR}/test.sh
35
36.include <bsd.prog.mk>
37