Makefile 782 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
include ../shared.mk

all: test-ada test-llvm

edit:
	$(OPENGEODE) og.pr system_structure.pr

test-parse:
	$(OPENGEODE) og.pr system_structure.pr --check

test-ada: og.ali dataview-uniq.o | test_ada.o
	$(GNATBIND) -n og.ali
	$(GNATLINK) -o test_ada test_ada.o og.ali -lgnat
14
	./test_ada | diff expected -
15

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

21
22
23
24
25

test-llvm: og.o dataview-uniq.o | test_llvm.o
	$(CC) og.o dataview-uniq.o test_llvm.o -o test_llvm -lm
	./test_llvm

26
27
test-vhdl : test-c
	bambu og.c test_c.c --experimental-setup=BAMBU
28
29
30
31
32

coverage:
	coverage run -p $(OPENGEODE) og.pr system_structure.pr --toAda

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