1105513Sphk# $FreeBSD: releng/11.0/sbin/gbde/Makefile 298107 2016-04-16 07:45:30Z gjb $ 2105513Sphk 3298107SgjbPACKAGE=runtime 4105513SphkPROG= gbde 5105513SphkSRCS= gbde.c template.c 6105513SphkSRCS+= rijndael-alg-fst.c 7105513SphkSRCS+= rijndael-api-fst.c 8292782SallanjudeSRCS+= sha512c.c 9105513SphkSRCS+= g_bde_lock.c 10105513Sphk 11228610Sdim# rijndael-fst.c does evil casting things which can results in warnings, 12228610Sdim# the test-vectors check out however, so it works right. 13228610SdimNO_WCAST_ALIGN= 14249657SedNO_WMISSING_VARIABLE_DECLARATIONS= 15107982Sphk 16105610SphkCFLAGS+= -I${.CURDIR}/../../sys 17113014Sphk.PATH: ${.CURDIR}/../../sys/geom/bde \ 18106407Sphk ${.CURDIR}/../../sys/crypto/rijndael \ 19106407Sphk ${.CURDIR}/../../sys/crypto/sha2 20105513Sphk 21105513SphkCLEANFILES+= template.c 22105513Sphk 23105513SphkMAN= gbde.8 24275030SbaptLIBADD= md util geom 25105513Sphk 26113558Srutemplate.c: template.txt 27105513Sphk file2c 'const char template[] = {' ',0};' \ 28105513Sphk < ${.CURDIR}/template.txt > template.c 29105513Sphk 30113558Srutest: ${PROG} 31121169Sphk sh ${.CURDIR}/test.sh ${.CURDIR} 32113558Sru 33113558Sru.include <bsd.prog.mk> 34