Makefile 915 Bytes
Newer Older
Maxime Perrotin's avatar
Maxime Perrotin committed
1
2
include ../shared.mk

3
ROOT_MODEL=test.pr
4

Maxime Perrotin's avatar
Maxime Perrotin committed
5
6
7
8
9
10
11
12
all: test-ada test-llvm

edit:
	$(OPENGEODE) test.pr

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

13
test-qgen-parse:
14
15
16
17
18
19
20
	$(TESTQGEN_PARSE) $(ROOT_MODEL)

test-qgen-ada:
	$(TESTQGEN_ADA) $(ROOT_MODEL)

test-qgen-c:
	$(TESTQGEN_C) $(ROOT_MODEL)
21

22
23
24
25
26
27
test-qgen-gt-ada:
	$(TESTQGEN_GT_ADA) $(ROOT_MODEL)

test-qgen-gt-c:
	$(TESTQGEN_GT_C) $(ROOT_MODEL)

Maxime Perrotin's avatar
Maxime Perrotin committed
28
29
test-ada: 
	$(OPENGEODE) test.pr --toAda
30
	mono $(ASN1SCC) -Ada -typePrefix asn1Scc -equal dataview.asn
Maxime Perrotin's avatar
Maxime Perrotin committed
31
32
33
34
35
36
37
38
39
	$(GNATMAKE) -O$(O) -c *.adb
	$(GNATBIND) -n test.ali

simu:
	$(OPENGEODE) test.pr --shared
	./test_simu.sh

test-c: 
	$(OPENGEODE) test.pr --toC
40
	mono $(ASN1SCC) -c -typePrefix asn1Scc -equal dataview.asn
Maxime Perrotin's avatar
Maxime Perrotin committed
41
42
43
44
45
46
47
48
49
50
51
52
53
	$(CC) -O$(O) -c *.c


test-llvm:
	$(OPENGEODE) test.pr --llvm -O$(O)
	$(LLC) *.ll
	$(CC) -O$(O) -c *.s


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

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