1105513Sphk# $FreeBSD$ 2105513Sphk 3105513SphkPROG= gbde 4105513SphkSRCS= gbde.c template.c 5105513SphkSRCS+= rijndael-alg-fst.c 6105513SphkSRCS+= rijndael-api-fst.c 7106407SphkSRCS+= sha2.c 8105513SphkSRCS+= g_bde_lock.c 9105513Sphk 10229174Sdim# rijndael-fst.c does evil casting things which can results in warnings, 11229174Sdim# the test-vectors check out however, so it works right. 12229174SdimNO_WCAST_ALIGN= 13107982Sphk 14105610SphkCFLAGS+= -I${.CURDIR}/../../sys 15113014Sphk.PATH: ${.CURDIR}/../../sys/geom/bde \ 16106407Sphk ${.CURDIR}/../../sys/crypto/rijndael \ 17106407Sphk ${.CURDIR}/../../sys/crypto/sha2 18105513Sphk 19105513SphkCLEANFILES+= template.c 20105513Sphk 21105513SphkMAN= gbde.8 22115104SruDPADD= ${LIBMD} ${LIBUTIL} ${LIBGEOM} 23115104SruLDADD= -lmd -lutil -lgeom 24105513Sphk 25113558Srutemplate.c: template.txt 26105513Sphk file2c 'const char template[] = {' ',0};' \ 27105513Sphk < ${.CURDIR}/template.txt > template.c 28105513Sphk 29113558Srutest: ${PROG} 30121169Sphk sh ${.CURDIR}/test.sh ${.CURDIR} 31113558Sru 32113558Sru.include <bsd.prog.mk> 33