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

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

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

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

dbarbera's avatar
dbarbera committed
11
test-ada: operators.ali dataview-uniq.o | test_ada.o
dbarbera's avatar
dbarbera committed
12
13
	$(GNATBIND) -n operators.ali
	$(GNATLINK) test_ada.o operators.ali -lgnat -lm -o test_ada
dbarbera's avatar
dbarbera committed
14
	./test_ada | diff expected -
15

16
17
18
19
20
test-c: operators.c test_c.o dataview-uniq.o
	$(CC) operators.c -c -o operators.o
	$(CC) test_c.o operators.c -lm -o test_c
	./test_c | diff expected_c -

dbarbera's avatar
dbarbera committed
21
test-llvm: operators.o dataview-uniq.o | test_llvm.o
dbarbera's avatar
dbarbera committed
22
	$(CC) operators.o dataview-uniq.o test_llvm.o -o test_llvm -lm
dbarbera's avatar
dbarbera committed
23
	./test_llvm | diff expected -
24

dbarbera's avatar
dbarbera committed
25
26
27
28
coverage:
	coverage run -p $(OPENGEODE) operators.pr system_structure.pr --toAda

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