Makefile 1.29 KB
Newer Older
1
include ../shared.mk
2

3
4
ROOT_MODEL=orchestrator.pr

5
ARCH := $(shell getconf LONG_BIT)
6
7
8
all: test-ada test-llvm

clean:
9
	rm -rf build
Maxime Perrotin's avatar
Maxime Perrotin committed
10
11
	rm -rf Makefile.properties orchestrator_stop_conditions.ad?

12
13
14
15
16
17
18

edit:
	$(OPENGEODE) orchestrator.pr

test-parse:
	$(OPENGEODE) orchestrator.pr --check

19
test-qgen-parse:
20
21
22
23
24
25
26
	$(TESTQGEN_PARSE) $(ROOT_MODEL)

test-qgen-ada:
	$(TESTQGEN_ADA) $(ROOT_MODEL)

test-qgen-c:
	$(TESTQGEN_C) $(ROOT_MODEL)
27

28
29
30
31
32
33
test-qgen-gt-ada:
	$(TESTQGEN_GT_ADA) $(ROOT_MODEL)

test-qgen-gt-c:
	$(TESTQGEN_GT_C) $(ROOT_MODEL)

34
test-ada:
35
	[ $(ARCH) == 64 ] && EXTRAFLAG="--target=x86_64-linux" ; \
Maxime Perrotin's avatar
Maxime Perrotin committed
36
	mkdir -p build && cp *.pr *.asn model_checker.gpr properties build && cd build && \
37
	../../../../opengeode/opengeode.py orchestrator.pr --shared && \
38
	mono $(ASN1SCC) -Ada -typePrefix asn1Scc -equal dataview-uniq.asn && \
39
	taste-properties -d -s properties orchestrator.pr && \
40
41
	taste-asn1-iterators *.asn && \
	ADA_PROJECT_PATH=~/.local/share/gpr:$ADA_PROJECT_PATH gprbuild -Pmodel_checker $$EXTRAFLAG && ./model_checker
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

simu: test-ada
	cd build && make -f Makefile.properties && \
	./orchestrator_simu.sh


test-c:
	echo 'No test for C'

test-llvm: orchestrator.o

coverage:
	coverage run -p $(OPENGEODE) orchestrator.pr system_structure.pr --toAda

.PHONY: all edit test-parse test-ada test-c simu test-llvm coverage