aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Robert Sloan <varomodt@gmail.com>2016-01-14 12:42:13 -0500
committerGravatar Robert Sloan <varomodt@gmail.com>2016-01-14 12:42:13 -0500
commit78618797b6947a2fcd1a4b68f08e32d8e2b9aa29 (patch)
tree6819b11c77dfc57f9f7309a3558d924fe6192d12 /Makefile
parent088a1b2bd7ba87d74aa3b5308df04cb16e14d0cd (diff)
parentf89db16ae111aa252a79d15dd4465b7f323f50c4 (diff)
Merge pull request #2 from rsloan/master
Merge in refactors from rsloan:master
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 18 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 1940c4b2e..21c43fc28 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,25 @@
-# © 2015 the Massachusetts Institute of Technology
-# @author bbaren + rsloan
+COQ_ARGS := -R fiat/src Fiat -R bedrock/Bedrock Bedrock
+MOD_NAME := Crypto
+SRC_DIR := src
+MODULES := Curves Galois Rep Specific Tactics Util
-SOURCES := $(shell grep -v '^-' _CoqProject | tr '\n' ' ')
-COQLIBS := $(shell grep '^-' _CoqProject | tr '\n' ' ')
+VS := $(MODULES:%=src/%/*.v)
-include .make/cc.mk
-include .make/coq.mk
+.PHONY: coq clean install
+.DEFAULT_GOAL: coq
-FAST_TARGETS += check_fiat check_bedrock clean
+coq: Makefile.coq
+ $(MAKE) -f Makefile.coq
-.DEFAULT_GOAL = all
-.PHONY: clean coquille
+Makefile.coq: Makefile $(VS)
+ coq_makefile -R $(SRC_DIR) $(MOD_NAME) $(COQ_ARGS) $(VS) -o Makefile.coq
-all: check_fiat check_bedrock $(SOURCES:%=%o)
+clean: Makefile.coq
+ $(MAKE) -f Makefile.coq clean
+ rm -f Makefile.coq
-clean:
- $(RM) $(foreach f,$(SOURCES),$(call coq-generated,$(basename $f)))
+install: coq
+ ln -sfL $(shell pwd)/src $(shell coqtop -where)/user-contrib/Crypto
+ ln -sfL $(shell pwd)/fiat/src $(shell coqtop -where)/user-contrib/Fiat
+ ln -sfL $(shell pwd)/bedrock/Bedrock $(shell coqtop -where)/user-contrib/Bedrock