Makefile revision 115104
1105513Sphk# $FreeBSD: head/sbin/gbde/Makefile 115104 2003-05-17 19:05:17Z ru $ 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 10108060Sphk# rijndael-fst.c does evil casting things which results in warnings on 11108060Sphk# 64 bit machines, the test-vectors check out however, so it works right. 12108060Sphk.if ${MACHINE_ARCH} == "i386" 13107982SphkWARNS?= 5 14108060Sphk.else 15108060SphkWARNS?= 3 16108060Sphk.endif 17107982Sphk 18105610SphkCFLAGS+= -I${.CURDIR}/../../sys 19113014Sphk.PATH: ${.CURDIR}/../../sys/geom/bde \ 20106407Sphk ${.CURDIR}/../../sys/crypto/rijndael \ 21106407Sphk ${.CURDIR}/../../sys/crypto/sha2 22105513Sphk 23105513SphkCLEANFILES+= template.c 24105513Sphk 25105513SphkMAN= gbde.8 26115104SruDPADD= ${LIBMD} ${LIBUTIL} ${LIBGEOM} 27115104SruLDADD= -lmd -lutil -lgeom 28105513Sphk 29113558Srutemplate.c: template.txt 30105513Sphk file2c 'const char template[] = {' ',0};' \ 31105513Sphk < ${.CURDIR}/template.txt > template.c 32105513Sphk 33113558Srutest: ${PROG} 34105513Sphk sh ${.CURDIR}/test.sh 35113558Sru 36113558Sru.include <bsd.prog.mk> 37