Makefile 1.02 KB
Newer Older
dbarbera's avatar
dbarbera committed
1
2
all: test-ada

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

dbarbera's avatar
dbarbera committed
6
7
8
9
10
11
12
13
14
15
16
17
18
test-parse:
	../../../opengeode.py expressions.pr system_structure.pr --check

test-ada:
	../../../opengeode.py expressions.pr system_structure.pr --check --toAda
	asn1.exe -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
	asn1.exe -c dataview-uniq.asn -typePrefix asn1Scc
	gnatmake -c *.adb
	gcc -c test_ada.c
	gnatbind -n expressions.ali
	gnatlink test_ada.o expressions.ali -lgnat -lm -o testcase
	./testcase

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

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

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