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} 12WORK_MODULI_PARTS+=${.OBJDIR}/moduli.${bits}.sieved.gz 13.endfor 14 15 16 17all: ${MODULI_PARTS} 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 rm -f ${WORK_MODULI_PARTS} 28 29.for bits in ${DHSIZE} 30moduli.${bits}: 31 sh ${.CURDIR}/moduli-gen.sh ${.CURDIR} ${.CURDIR}/work ${bits} 32.endfor 33