mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-09-14 01:26:56 -04:00
30 lines
736 B
Makefile
30 lines
736 B
Makefile
# $OpenBSD: Makefile,v 1.4 2015/05/28 00:54:01 dtucker Exp $
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
# The larger ones will take many days, so if you're going to regen them run
|
|
# it in a tmux session or something. The checkpoints should make it safe
|
|
# to stop and restart.
|
|
DHSIZE=1536 2048 3072 4096 6144 7680 8192
|
|
|
|
.for bits in ${DHSIZE}
|
|
MODULI_PARTS+=moduli.${bits}
|
|
|
|
all: ${MODULI_PARTS}
|
|
|
|
moduli.${bits}:
|
|
sh ${.CURDIR}/moduli-gen.sh ${.CURDIR} ${.CURDIR}/work ${bits}
|
|
.endfor
|
|
|
|
update-moduli: ${MODULI_PARTS}
|
|
( \
|
|
echo -n '# $$Open'; echo 'BSD$$'; \
|
|
echo '# Time Type Tests Tries Size Generator Modulus'; \
|
|
cat ${MODULI_PARTS} \
|
|
) > ${BSDSRCDIR}/etc/moduli
|
|
|
|
clean:
|
|
.for bits in ${DHSIZE}
|
|
rm -f ${.OBJDIR}/moduli.${bits}.sieved.gz
|
|
.endfor
|