]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sbin/gbde/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sbin / gbde / Makefile
1 # $FreeBSD$
2
3 PROG=   gbde
4 SRCS=   gbde.c template.c
5 SRCS+=  rijndael-alg-fst.c
6 SRCS+=  rijndael-api-fst.c
7 SRCS+=  sha2.c
8 SRCS+=  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.
12 NO_WCAST_ALIGN=
13 NO_WMISSING_VARIABLE_DECLARATIONS=
14
15 CFLAGS+= -I${.CURDIR}/../../sys
16 .PATH:  ${.CURDIR}/../../sys/geom/bde \
17         ${.CURDIR}/../../sys/crypto/rijndael \
18         ${.CURDIR}/../../sys/crypto/sha2
19
20 CLEANFILES+= template.c
21
22 MAN=    gbde.8
23 DPADD=  ${LIBMD} ${LIBUTIL} ${LIBGEOM}
24 LDADD=  -lmd -lutil -lgeom
25
26 template.c: template.txt
27         file2c 'const char template[] = {' ',0};' \
28                 < ${.CURDIR}/template.txt > template.c
29
30 test: ${PROG}
31         sh ${.CURDIR}/test.sh ${.CURDIR}
32
33 .include <bsd.prog.mk>