-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 719 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 719 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
.PHONY: all interpreter jit debug-interpreter debug-jit bench
CXX = clang++ -Wall -std=c++17
INTERPRETER_FILES = interpreter.cpp
JIT_FILES = jit.cpp assembler.cpp compiler.cpp register.cpp
all: jit
interpreter:
@mkdir -p bin
@$(CXX) -O3 -o bin/zero-interp $(INTERPRETER_FILES)
jit:
@mkdir -p bin
@$(CXX) -O3 -o bin/zero-jit $(JIT_FILES)
@codesign -s - -f --entitlements entitlements.plist ./bin/zero-jit
debug-interpreter:
@mkdir -p bin
@$(CXX) -O0 -g -o bin/zero-interp $(INTERPRETER_FILES)
debug-jit:
@mkdir -p bin
@$(CXX) -O0 -g -o bin/zero-jit $(JIT_FILES)
@codesign -s - -f --entitlements entitlements.plist ./bin/zero-jit
bench: jit
@time ./bin/zero-jit ./test/mandelbrot.b
clean:
@rm -r bin