Makefile 1.23 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
include ../shared.mk

all: test-ada test-llvm

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

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

test-ada: orchestrator.ali dataview-uniq.o | test_ada.o
	$(GNATBIND) -n orchestrator.ali
	$(GNATLINK) -o test_ada test_ada.o orchestrator.ali -lgnat
	./test_ada

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

21
22
test-llvm: orchestrator.o

23
24
25
test-python:
	$(OPENGEODE) orchestrator.pr system_structure.pr --shared
	$(ASN1SCC) -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
Maxime Perrotin's avatar
Maxime Perrotin committed
26
	$(GNATMAKE) -O$(O) -gnat2012 -c *.adb
Maxime Perrotin's avatar
Maxime Perrotin committed
27
	$(GNATBIND) -n -Lliborchestrator orchestrator
Maxime Perrotin's avatar
Maxime Perrotin committed
28
29
	$(GNATMAKE) -c -gnat2012 b~orchestrator.adb
	$(CC) -shared -fPIC -o liborchestrator.so b~orchestrator.o orchestrator.o taste_basictypes.o adaasn1rtl.o -lgnat
Maxime Perrotin's avatar
Maxime Perrotin committed
30
	python -c "from ctypes import *; test=CDLL('./liborchestrator.so'); test.liborchestratorinit()"
31

32
33
34
test-vhdl : test-c
	bambu orchestrator.c test_c.c --experimental-setup=BAMBU

35
36
37
38
coverage:
	coverage run -p $(OPENGEODE) orchestrator.pr system_structure.pr --toAda

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