$(COMPILER_SETTINGS_CROSS) \
$(COMPILER_SETTINGS_LIARC)
+# User can override this to use another toolchain.
+TOOLCHAIN = ./tools
+
HOST_SCHEME = '$(MIT_SCHEME_EXE)' --batch-mode
TOOL_COMPILER = $(TOOL_TOOLCHAIN)
-TOOL_SYNTAXER = $(HOST_SCHEME) --band ./tools/syntaxer.com
-TOOL_TOOLCHAIN = $(HOST_SCHEME) --band ./tools/compiler.com \
+TOOL_SYNTAXER = $(HOST_SCHEME) --band $(TOOLCHAIN)/syntaxer.com
+TOOL_TOOLCHAIN = $(HOST_SCHEME) --band $(TOOLCHAIN)/compiler.com \
--eval '(begin $(TOOL_COMPILER_SETTINGS))'
.PHONY: toolchain
-toolchain: tools/compiler.com
+toolchain: $(TOOLCHAIN)/compiler.com
-tools/compiler.com:
+./tools/compiler.com:
$(MAKE) -f Makefile.tools clean && $(MAKE) -f Makefile.tools allclean
# This target toolchain crud is a kludge until the whole system can be