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

3
4
5
all: test-ada test-llvm

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

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

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

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

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

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