-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (30 loc) · 1.26 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
OTT ?= ott
COQLIBS=-I src/Vellvm -I src/Vellvm/ott -I src/Vellvm/Dominators \
-I lib/GraphBasics -I lib/compcert-1.9 -I lib/cpdtlib -I lib/metalib-20090714 \
-R lib/Coq-Equations-8.4/theories Equations -I lib/Coq-Equations-8.4/src
MAKECOQ=make -f Makefile.coq COQLIBS="$(COQLIBS)"
all: theories
libs: lib/Coq-Equations-8.4 lib/metalib-20090714
make -C lib/Coq-Equations-8.4
make -C lib/metalib-20090714
depend: Makefile.coq src/Vellvm/syntax_base.v src/Vellvm/typing_rules.v
+$(MAKECOQ) depend
theories: Makefile.coq src/Vellvm/syntax_base.v src/Vellvm/typing_rules.v
+$(MAKECOQ)
Makefile.coq: Make
coq_makefile -f Make -o Makefile.coq
%.vo: Makefile.coq src/Vellvm/syntax_base.v src/Vellvm/typing_rules.v
+$(MAKECOQ) "$@"
clean:
rm -f src/Vellvm/syntax_base.v src/Vellvm/typing_rules.v
make -f Makefile.coq clean
src/Vellvm/syntax_base.v: src/Vellvm/syntax_base.ott
cd src/Vellvm && \
$(OTT) -coq_expand_list_types false -i syntax_base.ott -o syntax_base.v
src/Vellvm/typing_rules.v: src/Vellvm/syntax_base.ott src/Vellvm/typing_rules.ott
cd src/Vellvm && \
$(OTT) -merge false -coq_expand_list_types false \
-i syntax_base.ott -o _tmp_syntax_base.v \
-i typing_rules.ott -o typing_rules.v && \
rm _tmp_syntax_base.v
.PHONY: all clean theories libs