-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (36 loc) · 913 Bytes
/
Copy pathMakefile
File metadata and controls
58 lines (36 loc) · 913 Bytes
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
53
54
55
56
57
58
CFLAGS=-std=c99 -Wall -O3 -D_XOPEN_SOURCE=500
LDFLAGS=-lm
objects=state.o stateio.o layout.o mcts.o
all: kelvandor
kelvandor: $(objects) main.o
test: $(objects)
httpapi: kelvandor
gunicorn -b 0.0.0.0:5000 httpapi:app
httpapi-dev:
FLASK_APP=httpapi.py FLASK_ENV=development flask run
treeinspect:
ipython -i tree_inspect.py || python -i tree_inspect.py
wasm:
emcc -O2 -Wall -c state.c -o state.o
emcc -O2 -Wall -c stateio.c -o stateio.o
emcc -O2 -Wall -c layout.c -o layout.o
emcc -O2 -Wall --bind wasmlib.cpp state.o stateio.o layout.o \
--pre-js pre.js -o kelvandor.js
mkdir -p ../wasm
mv kelvandor.wasm ../wasm
mv kelvandor.js ../wasm
rm -f state.o stateio.o layout.o
wasmtest:
make clean
emmake make test
node test
make clean
clean:
rm -f *.o
rm -f kelvandor
rm -f test
rm -f test.wasm
rm -fr __pycache__
rm -f tree.txt
rm -f httpapi.log
# vim: set noexpandtab: