Makefile 963 Bytes
Newer Older
dbarbera's avatar
dbarbera committed
1
all: test-ada test-llvm
2

3
4
5
edit:
	../../../opengeode.py trafficlight.pr system_structure.pr

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

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

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

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

26
27
28
29
coverage:
	coverage run -p ../../../opengeode.py trafficlight.pr system_structure.pr --toAda

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