-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
52 lines (34 loc) · 1.17 KB
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
RPYTHON?=../pypy/rpython/bin/rpython
RPYTHONFLAGS?=--opt=jit --translation-jit_opencoder_model=big
.PHONY: all rpaheui-c rpaheui-bigint-c test-bigint test-smallint test-py clean install
all: aheui-bigint-c aheui-c aheui-py ahsembler-py
version:
echo "VERSION = '`git describe --tags`'" > aheui/version.py
aheui-py: version
cp rpaheui.py bin/aheui-py
cp rpaheui.py bin/aheui
ahsembler-py:
cp ahsembler.py bin/ahsembler
rpaheui-bigint-c:
RPAHEUI_BIGINT=1 $(RPYTHON) $(RPYTHONFLAGS) --output rpaheui-bigint-c rpaheui.py
rpaheui-c:
$(RPYTHON) $(RPYTHONFLAGS) rpaheui.py
ahsembler-c:
$(RPYTHON) ahsembler.py # No JIT
aheui-bigint-c: rpaheui-bigint-c
cp rpaheui-bigint-c bin/aheui-bigint-c
aheui-c: rpaheui-c
cp rpaheui-c bin/aheui-c
clean:
rm rpaheui-smallint rpaheui-bigint
install: rpaheui-c rpaheui-bigint-c
cp rpaheui-bigint-c /usr/local/bin/rpaheui-bigint
cp rpaheui-c /usr/local/bin/rpaheui
ln -s /usr/local/bin/rpaheui /usr/local/bin/aheui
test-bigint-c:
cd snippets && AHEUI="../rpaheui-bigint-c" bash test.sh
test-c:
cd snippets && AHEUI="../rpaheui-c" bash test.sh --disable integer
test-py:
pytest
cd snippets && AHEUI=../bin/aheui bash test.sh --disable logo