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

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

5
edit:
dbarbera's avatar
dbarbera committed
6
	$(OPENGEODE) expressions.pr system_structure.pr
7

dbarbera's avatar
dbarbera committed
8
test-parse:
dbarbera's avatar
dbarbera committed
9
	$(OPENGEODE) expressions.pr system_structure.pr --check
dbarbera's avatar
dbarbera committed
10
11

test-ada:
dbarbera's avatar
dbarbera committed
12
13
14
15
16
17
18
	$(OPENGEODE) expressions.pr system_structure.pr --check --toAda
	$(ASN1SCC) -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
	$(ASN1SCC) -c dataview-uniq.asn -typePrefix asn1Scc
	$(GNATMAKE) -c *.adb
	$(CC) -c test_ada.c
	$(GNATBIND) -n expressions.ali
	$(GNATLINK) test_ada.o expressions.ali -lgnat -lm -o test_ada
dbarbera's avatar
dbarbera committed
19
	./test_ada
dbarbera's avatar
dbarbera committed
20

21
test-llvm:
dbarbera's avatar
dbarbera committed
22
23
24
25
26
27
28
	$(OPENGEODE) expressions.pr system_structure.pr --check --llvm
	$(ASN1SCC) -c dataview-uniq.asn -typePrefix asn1Scc -equal
	$(LLC) expressions.ll
	$(CC) -c expressions.s
	$(CC) -c dataview-uniq.c
	$(CC) -c test_llvm.c
	$(CC) expressions.o dataview-uniq.o test_llvm.o -o test_llvm -lm
dbarbera's avatar
dbarbera committed
29
	./test_llvm
30

dbarbera's avatar
dbarbera committed
31
32
33
34
coverage:
	coverage run -p $(OPENGEODE) expressions.pr system_structure.pr --toAda

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