-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
24 lines (17 loc) · 1.07 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
JSC=/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc
DEBUG=false
SWIPL=/opt/swipl-7.1.32/bin/swipl
all: bootstrap.js wam-pp.js
clean:
rm -f wam-pp.js bootstrap.js
bootstrap.js: wam_compiler.pl testing.pl wam_bootstrap.pl bootstrap_js.pl demo.pl tests.pl
$(SWIPL) -q -f wam_compiler.pl -g "build_saved_state(['wam_compiler.pl', 'bootstrap_js.pl', 'demo.pl'], foo), halt"
wam-pp.js: foreign.js wam.js read.js record.js fli.js stream.js gc.js
$(SWIPL) -q -f js_preprocess.pl -g "preprocess(['foreign.js', 'wam.js', 'read.js', 'record.js', 'fli.js', 'stream.js', 'gc.js'], 'wam-pp.js', [debug=$(DEBUG)]), halt"
test: wam-pp.js bootstrap.js standalone.js wam_compiler.pl tests.pl
$(SWIPL) -q -f wam_compiler.pl -g "bootstrap('tests.pl', run_unit_tests), halt"
$(JSC) wam-pp.js bootstrap.js standalone.js -e "unit_tests($(DEBUG))"
demo: wam-pp.js bootstrap.js standalone.js
$(JSC) wam-pp.js bootstrap.js standalone.js -e "demo($(DEBUG))"
gc: wam-pp.js bootstrap.js standalone.js
$(JSC) wam-pp.js bootstrap.js standalone.js -e "gc_test($(DEBUG))"