Makefile 1.11 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
all: test-ada

edit:
	../../../opengeode.py myfunction.pr system_structure.pr

check:
	../../../opengeode.py myfunction.pr system_structure.pr --check

test-parse:
	../../../opengeode.py myfunction.pr system_structure.pr --check

test-ada:
	../../../opengeode.py --toAda myfunction.pr system_structure.pr || exit 1
	asn1.exe -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
	asn1.exe -c dataview-uniq.asn -typePrefix asn1Scc
	gnatmake -c myfunction.adb
	gcc -c test.c
	gnatbind -n myfunction.ali
	gnatlink -o testcase test.o myfunction.ali -lgnat
	./testcase | diff expected -

22
23
24
25
26
27
28
29
30
31
test-llvm:
	../../../opengeode.py myfunction.pr system_structure.pr --check --llvm
	asn1.exe -c dataview-uniq.asn -equal
	llc myfunction.ll
	clang -c myfunction.s
	clang -c dataview-uniq.c
	clang -c test_llvm.c
	clang myfunction.o dataview-uniq.o test_llvm.o -o testcase
	./testcase | diff expected -

32
33
34
35
coverage:
	coverage run  -p ../../../opengeode.py myfunction.pr system_structure.pr --toAda

clean:
36
37
	rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
	bin *.wrn *.gpr datav*.? ber.c xer.c asn1crt.? acn.c real.c *.ll *.s testcase
38