Makefile revision 173852
1# $FreeBSD: head/sbin/gbde/Makefile 121169 2003-10-17 19:52:07Z phk $ 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} 27LDADD= -lmd -lutil -lgeom 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 ${.CURDIR} 35 36.include <bsd.prog.mk> 37