forked from CakeML/cakeml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHolmakefile
28 lines (20 loc) · 965 Bytes
/
Holmakefile
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
INCLUDES = ../misc ../semantics ../semantics/proofs ../semantics/alt_semantics ../semantics/alt_semantics/proofs ../basis/pure
OPTIONS = QUIT_ON_FAILURE
ifdef POLY
HOLHEAP = heap
PARENT_HOLHEAP = ../semantics/proofs/heap
EXTRA_CLEANS = $(HOLHEAP) $(HOLHEAP).o
all: $(HOLHEAP)
THYFILES = $(patsubst %Script.sml,%Theory.uo,$(wildcard *.sml))
TARGETS0 = $(patsubst %Theory.sml,,$(THYFILES))
TARGETS = $(patsubst %.sml,%.uo,$(TARGETS0))
all: $(TARGETS) $(HOLHEAP)
.PHONY: all
PRE_BARE_THYS1 = astTheory tokensTheory semanticPrimitivesTheory astPP
PRE_BARE_THYS3 = determTheory bigClockTheory
BARE_THYS1 = $(patsubst %,../semantics/%,$(PRE_BARE_THYS1))
BARE_THYS3 = $(patsubst %,../semantics/alt_semantics/proofs/%,$(PRE_BARE_THYS3))
DEPS = $(patsubst %,%.uo,$(BARE_THYS1)) $(patsubst %,%.uo,$(BARE_THYS3)) $(PARENTHEAP)
$(HOLHEAP): $(DEPS)
$(protect $(HOLDIR)/bin/buildheap) -b $(PARENT_HOLHEAP) -o $(HOLHEAP) $(BARE_THYS1) $(BARE_THYS3) $(BARE_THYS2)
endif