-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
68 lines (50 loc) · 1.78 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.PHONY: all submodules runtime plugin cplugin install clean bootstrap
all theories/Extraction/extraction.vo: theories/Makefile libraries/Makefile
$(MAKE) -C libraries -j1
$(MAKE) -C theories -j1
theories/Makefile: theories/_CoqProject
cd theories;coq_makefile -f _CoqProject -o Makefile
libraries/Makefile: libraries/_CoqProject
cd libraries;coq_makefile -f _CoqProject -o Makefile
submodules:
git submodule update
./make_submodules.sh
plugins: plugin cplugin
plugin: all runtime plugin/CertiCoq.vo
plugin/Makefile: plugin/_CoqProject
cd plugin ; coq_makefile -f _CoqProject -o Makefile
plugin/CertiCoq.vo: all plugin/Makefile theories/Extraction/extraction.vo
bash ./make_plugin.sh plugin
cplugin: all runtime cplugin/CertiCoq.vo
cplugin/Makefile: cplugin/_CoqProject
cd cplugin ; coq_makefile -f _CoqProject -o Makefile
cplugin/CertiCoq.vo: all cplugin/Makefile theories/ExtractionVanilla/extraction.vo
bash ./make_plugin.sh cplugin
bootstrap: plugin cplugin
$(MAKE) -C bootstrap all
install: plugin cplugin bootstrap
$(MAKE) -C libraries install
$(MAKE) -C theories install
$(MAKE) -C runtime install
$(MAKE) -C plugin install
$(MAKE) -C cplugin install
$(MAKE) -C bootstrap install
# Clean generated makefiles
mrproper: theories/Makefile libraries/Makefile plugin/Makefile cplugin/Makefile
rm -f theories/Makefile
rm -f libraries/Makefile
rm -f plugin/Makefile
rm -f cplugin/Makefile
clean: theories/Makefile libraries/Makefile plugin/Makefile cplugin/Makefile
$(MAKE) -C libraries clean
$(MAKE) -C theories clean
$(MAKE) -C runtime clean
$(MAKE) -C plugin clean
$(MAKE) -C cplugin clean
$(MAKE) -C bootstrap clean
rm -f `find theories -name "*.ml*"`
rm -rf plugin/extraction
rm -rf cplugin/extraction
$(MAKE) mrproper
runtime: runtime/Makefile
$(MAKE) -C runtime