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
14
15
16
17
	asn1.exe -c dataview-uniq.asn -typePrefix asn1Scc
	gnatmake -c *.adb
	gcc -c test.c
	gnatbind -n orchestrator.ali
	gnatlink -o testcase test.o orchestrator.ali -lgnat
	./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
27
	clang -c orchestrator.s
	clang -c dataview-uniq.c
	clang -c test_llvm.c
	clang orchestrator.o dataview-uniq.o test_llvm.o -o testcase -lm
	./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