1# $OpenBSD: Makefile,v 1.5 2015/10/21 06:37:25 doug Exp $ 2 3.include <bsd.own.mk> 4 5# The larger ones will take many days, so if you're going to regen them run 6# it in a tmux session or something. The checkpoints should make it safe 7# to stop and restart. 8DHSIZE=2048 3072 4096 6144 7680 8192 9 10.for bits in ${DHSIZE} 11MODULI_PARTS+=moduli.${bits} 12 13all: ${MODULI_PARTS} 14 15moduli.${bits}: 16 sh ${.CURDIR}/moduli-gen.sh ${.CURDIR} ${.CURDIR}/work ${bits} 17.endfor 18 19update-moduli: ${MODULI_PARTS} 20 ( \ 21 echo -n '# $$Open'; echo 'BSD$$'; \ 22 echo '# Time Type Tests Tries Size Generator Modulus'; \ 23 cat ${MODULI_PARTS} \ 24 ) > ${BSDSRCDIR}/etc/moduli 25 26clean: 27.for bits in ${DHSIZE} 28 rm -f ${.OBJDIR}/moduli.${bits}.sieved.gz 29.endfor 30