Makefile 855 Bytes
Newer Older
dbarbera's avatar
dbarbera committed
1
2
include ../shared.mk

dbarbera's avatar
dbarbera committed
3
all: test-ada test-llvm
Maxime Perrotin's avatar
Maxime Perrotin committed
4

dbarbera's avatar
dbarbera committed
5
6
7
edit:
	../../../opengeode.py og.pr system_structure.pr

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

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

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

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

dbarbera's avatar
dbarbera committed
33
.PHONY: all edit test-parse test-ada test-llvm coverage