Makefile 1.08 KB
Newer Older
dbarbera's avatar
dbarbera committed
1
all: test-ada test-llvm
Maxime Perrotin's avatar
Maxime Perrotin committed
2

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

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

dbarbera's avatar
dbarbera committed
9
10
test-ada:
	../../../opengeode.py --toAda orchestrator.pr system_structure.pr
Maxime Perrotin's avatar
Maxime Perrotin committed
11
	asn1.exe -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
12
13
	asn1.exe -c dataview-uniq.asn -typePrefix asn1Scc
	gnatmake -c *.adb
dbarbera's avatar
dbarbera committed
14
	gcc -c test_ada.c
15
	gnatbind -n orchestrator.ali
dbarbera's avatar
dbarbera committed
16
	gnatlink -o testcase test_ada.o orchestrator.ali -lgnat
17
	./testcase | diff expected -
Maxime Perrotin's avatar
Maxime Perrotin committed
18

dbarbera's avatar
dbarbera committed
19
test-llvm:
dbarbera's avatar
dbarbera committed
20
21
	../../../opengeode.py orchestrator.pr system_structure.pr --check --llvm
	asn1.exe -c dataview-uniq.asn -typePrefix asn1Scc -equal
dbarbera's avatar
dbarbera committed
22
	llc orchestrator.ll
dbarbera's avatar
dbarbera committed
23
24
25
26
	gcc -c orchestrator.s
	gcc -c dataview-uniq.c
	gcc -c test_llvm.c
	gcc orchestrator.o dataview-uniq.o test_llvm.o -o testcase -lm
dbarbera's avatar
dbarbera committed
27
	./testcase | diff expected -
dbarbera's avatar
dbarbera committed
28

Maxime Perrotin's avatar
Maxime Perrotin committed
29
30
31
32
coverage:
	coverage run -p ../../../opengeode.py orchestrator.pr system_structure.pr --toAda

clean:
dbarbera's avatar
dbarbera committed
33
	rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
34
	bin *.wrn *.gpr datav*.? ber.c xer.c asn1crt.? acn.c real.c *.wrn *.gpr testcase *.ll *.s