aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Jason Gross <jagro@google.com>2018-06-21 16:49:53 -0400
committerGravatar Jason Gross <jasongross9@gmail.com>2018-07-03 19:28:55 -0400
commit074dd72defb9df304175adf6e7d167ae7caea7bd (patch)
tree390ff7278048dcef14347c17d4451dc547cc748d /Makefile
parent2a9325939b4a87dedfac9b23f471c7a12740ff3b (diff)
WIP
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 540f8b33b..b923a8188 100644
--- a/Makefile
+++ b/Makefile
@@ -487,6 +487,19 @@ standalone: standalone-haskell standalone-ocaml
standalone-haskell: $(STANDALONE:%=src/Experiments/NewPipeline/ExtractionHaskell/%)
standalone-ocaml: $(STANDALONE:%=src/Experiments/NewPipeline/ExtractionOCaml/%)
+UNSATURATED_SOLINAS_C_FILES := curve25519_64.c curve25519_32.c
+UNSATURATED_SOLINAS := src/Experiments/NewPipeline/ExtractionOCaml/unsaturated_solinas
+.PHONY: c-files
+c-files: $(UNSATURATED_SOLINAS_C_FILES)
+
+$(UNSATURATED_SOLINAS_C_FILES): $(UNSATURATED_SOLINAS)
+
+curve25519_64.c:
+ $(UNSATURATED_SOLINAS) '25519' '5' '2^255' '1,19' '64' > $@
+
+curve25519_32.c:
+ $(UNSATURATED_SOLINAS) '25519' '10' '2^255' '1,19' '32' > $@
+
clean::
rm -f Makefile.coq remake_curves.log src/Specific/.autgenerated-deps