Makefile 819 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

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

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

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

16
test-c: challenge.c test_c.o dataview-uniq.o
Marco Lattuada's avatar
Marco Lattuada committed
17
	$(CC) -include missing.h challenge.c -c -o challenge.o
18
19
20
	$(CC) test_c.o challenge.c dataview-uniq.o -lm -o test_c
	./test_c | diff expected -

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

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

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