-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (24 loc) · 887 Bytes
/
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
all : boogie-llvm test
.PHONY : all
.SECONDARY : # Keep all intermediates
BOOGIE_LLVM := .build/boogie-kompiled/timestamp
boogie-llvm : ${BOOGIE_LLVM}
.build/boogie-kompiled/timestamp : boogie.md helpers.md syntax.md quantification.md
kompile $< \
--no-exc-wrap \
--warnings-to-errors \
--gen-bison-parser \
--enable-search \
--output-definition .build/boogie-kompiled \
--backend llvm \
--main-module BOOGIE \
--syntax-module BOOGIE-PROGRAM-SYNTAX
test_inputs := $(wildcard test/operational/control-flow/*.bpl)
test_targets := $(addsuffix .test,${test_inputs})
test: ${test_targets}
.build/test/%.bpl.out: test/%.bpl ${BOOGIE_LLVM}
mkdir -p $(dir $@)
krun --definition .build/boogie-kompiled --search-final --no-pattern $< > $@
.PHONY : test/%.bpl.test
test/%.bpl.test : .build/test/%.bpl.out test/%.bpl.opexpect
bin/diff-kboogie $^