120125784a
This compiler flag enforces that that people either mark variables static or use an external declarations for the variable, similar to how -Wmissing-prototypes works for functions. Due to the fact that Yacc/Lex generate code that cannot trivially be changed to not warn because of this (lots of yy* variables), add a NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this specific compiler warning. Announced on: toolchain@
34 lines
749 B
Makefile
34 lines
749 B
Makefile
# $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 can results in warnings,
|
|
# the test-vectors check out however, so it works right.
|
|
NO_WCAST_ALIGN=
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../sys
|
|
.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
|
|
|
|
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>
|