-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (14 loc) · 1.05 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
all: bytecode_interpreter compiler
compiler: compile_lox_expr_to_bytecode_concat.scm compile_lox_to_bytecode_concat.scm jump_resolve_concat.scm
compiler_tests: compiler
$(MAKE) -C tests tests
bytecode_interpreter_tests: bytecode_interpreter
$(MAKE) -C bytecode_interpreter tests
tests: compiler_tests bytecode_interpreter_tests
include scm_concat_rule.mk
compile_lox_to_bytecode_concat.scm: span_w_pair_state.scm srfi1.scm trie.scm keyword_trie.scm charhandling.scm tokenize.scm alt_unfold.scm scopestate.scm parse.scm flatten.scm compile.scm readstdin.scm compile_lox_to_bytecode.scm
compile_lox_expr_to_bytecode_concat.scm: span_w_pair_state.scm srfi1.scm trie.scm keyword_trie.scm charhandling.scm tokenize.scm alt_unfold.scm scopestate.scm parse.scm flatten.scm compile.scm readstdin.scm compile_lox_expr_to_bytecode.scm
jump_resolve_concat.scm: srfi1.scm readstdin.scm span_w_pair_state.scm charhandling.scm flatten.scm jump_resolve.scm
bytecode_interpreter:
$(MAKE) -C $@
.PHONY: tests bytecode_interpreter compiler compiler_tests bytecode_interpreter_tests