summaryrefslogtreecommitdiff
path: root/src/scheme/Makefile
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-12-12 15:25:51 -0800
committerKeith Packard <keithp@keithp.com>2017-12-12 15:25:51 -0800
commitd8c9024f3829dc3f241b16869f165f3ee01764f3 (patch)
treeee3038984838551412feeeee5e56c22afe83a99b /src/scheme/Makefile
parenta15166c435f65cb36f487ec8e5a4ff558a7e0502 (diff)
altos/scheme: Support scheme subsetting via feature settings
This provides for the creation of smaller versions of the interpreter, leaving out options like floating point numbers and vectors. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/scheme/Makefile')
-rw-r--r--src/scheme/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/scheme/Makefile b/src/scheme/Makefile
index dc36dde1..e600d5f7 100644
--- a/src/scheme/Makefile
+++ b/src/scheme/Makefile
@@ -1,12 +1,10 @@
-all: ao_scheme_builtin.h ao_scheme_const.h test/ao_scheme_test
+all: ao_scheme_builtin.h make-const/ao_scheme_make_const test/ao-scheme tiny-test/ao-scheme-tiny
clean:
+cd make-const && make clean
+cd test && make clean
- rm -f ao_scheme_const.h ao_scheme_builtin.h
-
-ao_scheme_const.h: ao_scheme_const.scheme make-const/ao_scheme_make_const
- make-const/ao_scheme_make_const -o $@ ao_scheme_const.scheme
+ +cd tiny-test && make clean
+ rm -f ao_scheme_builtin.h
ao_scheme_builtin.h: ao_scheme_make_builtin ao_scheme_builtin.txt
nickle ao_scheme_make_builtin ao_scheme_builtin.txt > $@
@@ -14,7 +12,10 @@ ao_scheme_builtin.h: ao_scheme_make_builtin ao_scheme_builtin.txt
make-const/ao_scheme_make_const: FRC ao_scheme_builtin.h
+cd make-const && make ao_scheme_make_const
-test/ao_scheme_test: FRC ao_scheme_const.h ao_scheme_builtin.h
- +cd test && make ao_scheme_test
+test/ao-scheme: FRC ao_scheme_builtin.h make-const/ao_scheme_make_const
+ +cd test && make
+
+tiny-test/ao-scheme-tiny: FRC ao_scheme_builtin.h make-const/ao_scheme_make_const
+ +cd tiny-test && make
FRC: