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

dbarbera's avatar
dbarbera committed
3
4
all: test-ada

5
6
7
edit:
	../../../opengeode.py expressions.pr system_structure.pr

dbarbera's avatar
dbarbera committed
8
9
10
11
12
13
14
15
16
17
test-parse:
	../../../opengeode.py expressions.pr system_structure.pr --check

test-ada:
	../../../opengeode.py expressions.pr system_structure.pr --check --toAda
	asn1.exe -Ada dataview-uniq.asn -typePrefix asn1Scc -equal
	asn1.exe -c dataview-uniq.asn -typePrefix asn1Scc
	gnatmake -c *.adb
	gcc -c test_ada.c
	gnatbind -n expressions.ali
dbarbera's avatar
dbarbera committed
18
19
	gnatlink test_ada.o expressions.ali -lgnat -lm -o test_ada
	./test_ada
dbarbera's avatar
dbarbera committed
20

21
22
test-llvm:
	../../../opengeode.py expressions.pr system_structure.pr --check --llvm
dbarbera's avatar
dbarbera committed
23
	asn1.exe -c dataview-uniq.asn -typePrefix asn1Scc -equal
24
	llc expressions.ll
dbarbera's avatar
dbarbera committed
25
26
27
	gcc -c expressions.s
	gcc -c dataview-uniq.c
	gcc -c test_llvm.c
dbarbera's avatar
dbarbera committed
28
29
	gcc expressions.o dataview-uniq.o test_llvm.o -o test_llvm -lm
	./test_llvm
30

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