Makefile 1.04 KB
Newer Older
dbarbera's avatar
dbarbera committed
1
2
include ../shared.mk

dbarbera's avatar
dbarbera committed
3
all: test-ada test-llvm
4

5
6
7
edit:
	../../../opengeode.py trafficlight.pr system_structure.pr

dbarbera's avatar
dbarbera committed
8
9
test-parse:
	../../../opengeode.py trafficlight.pr system_structure.pr --check
10

dbarbera's avatar
dbarbera committed
11
12
test-ada:
	../../../opengeode.py --toAda trafficlight.pr system_structure.pr
13
	asn1.exe -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
dbarbera's avatar
dbarbera committed
14
	gnatmake -c *.adb
15
	#gcc -c test.c
dbarbera's avatar
dbarbera committed
16
	#gnatbind -n trafficlight.ali
17
18
	#gnatlink -o testcase test.o trafficlight.ali -lgnat -lm

dbarbera's avatar
dbarbera committed
19
20
21
22
23
test-llvm:
	../../../opengeode.py trafficlight.pr system_structure.pr --llvm
	llc trafficlight.ll
	gcc -c trafficlight.s

24
25
26
27
test-export:
	../../../opengeode.py --png --pdf --svg trafficlight.pr system_structure.pr
	../../../opengeode.py --png --pdf --svg --split trafficlight.pr system_structure.pr

28
29
30
31
coverage:
	coverage run -p ../../../opengeode.py trafficlight.pr system_structure.pr --toAda

clean:
dbarbera's avatar
dbarbera committed
32
	rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
33
	bin *.wrn *.gpr testcase *.ll *.s *.pdf *.svg *.png
dbarbera's avatar
dbarbera committed
34
35

.PHONY: all edit test-parse test-ada test-llvm test-exports coverage clean