-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.include
55 lines (43 loc) · 1.28 KB
/
Makefile.include
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
ifeq (,$(FSTAR_HOME))
$(error FSTAR_HOME is not defined)
endif
ifeq (,$(STEEL_HOME))
$(error STEEL_HOME is not defined)
endif
ifeq (,$(KRML_HOME))
$(error KRML_HOME is not defined)
endif
ifndef FSTAR_ULIB
FSTAR_ULIB := $(shell if test -d "$(FSTAR_HOME)/ulib" ; then echo "$(FSTAR_HOME)/ulib" ; else echo "$(FSTAR_HOME)/lib/fstar" ; fi)
endif
ifndef STEEL_LIB
STEEL_LIB := $(shell if test -f "$(FSTAR_HOME)/ulib/experimental/Steel.Effect.fsti" ; then echo "$(FSTAR_HOME)/ulib/experimental" ; else echo "$(STEEL_HOME)/lib/steel" ; fi)
endif
ifndef KRML_LIB
KRML_LIB := $(shell if test -d "$(KRML_HOME)/krmllib" ; then echo "$(KRML_HOME)/krmllib" ; else echo "$(KRML_HOME)/lib/krml" ; fi)
endif
PROJECT_HOME ?= .
# Prettifying output, except if we are in verbose mode
Q?=@
SIL?=--silent
ifneq ($(V),)
Q=
SIL=
endif
SOURCE_DIRS = \
$(PROJECT_HOME)/lib_avl_common \
$(PROJECT_HOME)/lib_avl_mono \
$(PROJECT_HOME)/lib_bitmap \
$(PROJECT_HOME)/lib_list \
$(PROJECT_HOME)/lib_misc \
$(PROJECT_HOME)/src
#$(PROJECT_HOME)/lib_avl \
INCLUDE_DIRS = \
$(SOURCE_DIRS) \
$(FSTAR_ULIB)/.cache \
$(STEEL_LIB)
FSTAR_EMACS_PARAMS = $(addprefix --include ,$(INCLUDE_DIRS)) \
--load_cmxs steel \
--compat_pre_typed_indexed_effects
%.fst-in %.fsti-in:
@echo $(FSTAR_EMACS_PARAMS)