-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 1004 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 1004 Bytes
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
# Root Makefile for pulse-verified-gc
#
# The mark-and-sweep/ Makefile builds all modules (common/ + mark-and-sweep/)
# in a single incremental build via `fstar.exe --dep full`.
#
# Run `./setup.sh` once after cloning to install the F* toolchain.
#
# Usage:
# ./setup.sh Install pinned F* nightly (one-time)
# make Verify all modules (common/ + mark-and-sweep/)
# make extract Verify + extract mark-and-sweep to C
# make snapshot Verify + extract + create snapshot/
# make clean Clean all build artifacts
FSTAR_HOME ?= $(CURDIR)/fstar
KRML_HOME ?= $(FSTAR_HOME)/karamel
.PHONY: all verify extract snapshot clean
all: verify
verify:
+$(MAKE) -C mark-and-sweep FSTAR_HOME=$(FSTAR_HOME)
extract:
+$(MAKE) -C mark-and-sweep extract FSTAR_HOME=$(FSTAR_HOME) KRML_HOME=$(KRML_HOME)
snapshot:
+$(MAKE) -C mark-and-sweep snapshot FSTAR_HOME=$(FSTAR_HOME) KRML_HOME=$(KRML_HOME)
clean:
+$(MAKE) -C mark-and-sweep clean
+$(MAKE) -C common clean 2>/dev/null || true