xref: /netbsd-src/crypto/external/bsd/openssh/dist/moduli-gen/Makefile (revision 63aea4bd5b445e491ff0389fe27ec78b3099dba3)
1#	$OpenBSD: Makefile,v 1.4 2015/05/28 00:54:01 dtucker 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=1536 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