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

dbarbera's avatar
dbarbera committed
3
4
5
edit:
	../../../opengeode.py og.pr system_structure.pr

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

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

dbarbera's avatar
dbarbera committed
18
19
20
21
22
23
test-llvm:
	../../../opengeode.py og.pr system_structure.pr --llvm
	llc og.ll
	gcc -c og.s
	gcc -c test_llvm.c
	gcc og.o test_llvm.o -o testcase
24
	./testcase | diff expected -
dbarbera's avatar
dbarbera committed
25
26


Maxime Perrotin's avatar
Maxime Perrotin committed
27
28
29
30
coverage:
	coverage run -p ../../../opengeode.py og.pr system_structure.pr --toAda

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

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