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

dbarbera's avatar
dbarbera committed
3
4
test-parse:
	../../../opengeode.py trafficlight.pr system_structure.pr --check
5

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

dbarbera's avatar
dbarbera committed
14
15
16
17
18
test-llvm:
	../../../opengeode.py trafficlight.pr system_structure.pr --llvm
	llc trafficlight.ll
	gcc -c trafficlight.s

19
20
21
22
test-export:
	../../../opengeode.py --png --pdf --svg trafficlight.pr system_structure.pr
	../../../opengeode.py --png --pdf --svg --split trafficlight.pr system_structure.pr

23
24
25
26
coverage:
	coverage run -p ../../../opengeode.py trafficlight.pr system_structure.pr --toAda

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