summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7502c0837d18a9ce60f3a94bc9eb6c9bc45afd54 (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
32
33
34
35
implementations = $(dir                         \
    $(shell find crypto_aead -name Makefile)    \
)

delegated = clean test

.PHONY: $(delegated) nist

results:
	mkdir $@

$(delegated)::
	status=0;                               \
	for i in $(implementations);            \
	do                                      \
	    make -C $$i $@ || status=1;         \
	done;                                   \
	exit $$status

clean::
	- rm traces*.tgz
	- rm -r results

# To generate complete traces, apply this patch before running "make traces":
#     $ git apply traces.patch
# To update this patch, add print statements, then run
#     $ git diff src > traces.patch
traces: traces-ae traces-tbc

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

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