-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
44 lines (32 loc) · 1.23 KB
/
Makefile
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
36
37
38
39
40
41
42
# -*- Makefile -*-
# --------------------------------------------------------------------
ECCONF := config/tests.config
CHECKS ?= mlkem
# --------------------------------------------------------------------
.PHONY: default check checkec jasmin clean_eco test bench
default: check
check: jasmin checkec
jasmin:
$(MAKE) -C code/jasmin/mlkem_ref/extraction
$(MAKE) -C code/jasmin/mlkem_avx2/extraction
checkec:
easycrypt runtest $(ECCONF) $(CHECKS)
clean_eco:
find proof -name '*.eco' -exec rm '{}' ';'
test:
$(MAKE) -C code/jasmin/mlkem_ref/ -j$(nproc) compile-tests
$(MAKE) -C code/jasmin/mlkem_avx2/ -j$(nproc) compile-tests
@echo "\n\n### Testing the reference implementation"
$(MAKE) -C code/jasmin/mlkem_ref/ run-tests
@echo "\n\n### Testing the avx2 implementation"
$(MAKE) -C code/jasmin/mlkem_avx2/ run-tests
bench:
$(MAKE) -C code/jasmin/mlkem_ref/ -j$(nproc) compile-speed
$(MAKE) -C code/jasmin/mlkem_avx2/ -j$(nproc) compile-speed
@echo "\n\n### Benchmarking the reference implementation"
$(MAKE) -C code/jasmin/mlkem_ref/ run-speed
@echo "\n\n### Benchmarking the avx2 implementation"
$(MAKE) -C code/jasmin/mlkem_avx2/ run-speed
example:
$(MAKE) -C code/jasmin/mlkem_ref/example
$(MAKE) -C code/jasmin/mlkem_avx2/example