summaryrefslogtreecommitdiff
path: root/Makefile
blob: 1b9668a2a9adc4df9a5dbfed7e0dad9933d6998b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
modes = i ii
keylengths = 128 192 256

variants = $(foreach m,$(modes),$(foreach l,$(keylengths),$(m)-$(l)))


.PHONY: clean nist test traces

results:
	mkdir $@

clean::
	- rm -r results

test:
	status=0;                               \
	for i in $(variants);                   \
	do                                      \
	    make -C test/$$i test || status=1;  \
	done;                                   \
	exit $$status


traces: traces-ae traces-tbc

traces-%: | results
	@ echo "Collecting traces"
	@ ./traces/collect-traces.sh $@

nist: | results
	./nist/make-package.sh