Makefile 1011 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
include ../shared.mk

ROOT_MODEL=og.pr

all: test-ada test-llvm

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

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

test-qgen-parse:
	$(TESTQGEN_PARSE) $(ROOT_MODEL)

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

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

test-qgen-gt-ada:
	$(TESTQGEN_GT_ADA) $(ROOT_MODEL)

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

test-ada: 
29
30
31
32
	#make -f Makefile.function2
	$(OPENGEODE) function2.pr system_structure.pr --toAda
	mono $(ASN1SCC) -Ada -typePrefix asn1Scc -equal dataview-uniq.asn
	gnat make function2
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

test-c: 
	$(OPENGEODE) function2.pr system_structure.pr --toC
	mono $(ASN1SCC) -c -typePrefix asn1Scc -equal dataview-uniq.asn 
	$(CC) -O$(O) -c *.c


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


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

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