(cd tools/saved-objects && pax -rw -pe -v . ../../.)
tools/compiler.com: tools/syntaxer.com
-tools/compiler.com: compile-cross-compiler
-tools/compiler.com: compile-cross-cref
-tools/compiler.com: compile-cross-sf
-tools/compiler.com: compile-kludgerous-star-parser
+tools/compiler.com: cross-compiler
+tools/compiler.com: cross-cref
+tools/compiler.com: cross-sf
+tools/compiler.com: kludgerous-star-parser
(echo '(begin' && \
echo ' (with-working-directory-pathname "cref"' && \
echo ' (lambda () (load "make")))' && \
echo ' (disk-save "$@"))') \
| $(HOST_RUNTIME)
-tools/syntaxer.com: compile-cross-cref
-tools/syntaxer.com: compile-cross-sf
-tools/syntaxer.com: compile-kludgerous-star-parser
+tools/syntaxer.com: cross-cref
+tools/syntaxer.com: cross-sf
+tools/syntaxer.com: kludgerous-star-parser
(echo '(begin' && \
echo ' (with-working-directory-pathname "cref"' && \
echo ' (lambda () (load "make")))' && \
# Compiler (LIAR)
+.PHONY: cross-compiler
+@IF_DEBUG_TOOLCHAIN@cross-compiler: syntax-cross-compiler
+@IF_NOT_DEBUG_TOOLCHAIN@cross-compiler: compile-cross-compiler
+
.PHONY: compile-cross-compiler
compile-cross-compiler: compile-cross-compiler-back
compile-cross-compiler: compile-cross-compiler-base
# CREF
+.PHONY: cross-cref
+@IF_DEBUG_TOOLCHAIN@cross-cref: syntax-cross-cref
+@IF_NOT_DEBUG_TOOLCHAIN@cross-cref: compile-cross-cref
+
.PHONY: compile-cross-cref
compile-cross-cref: syntax-cross-cref
(echo '(with-working-directory-pathname "cref"' && \
# SF
+.PHONY: cross-sf
+@IF_DEBUG_TOOLCHAIN@cross-sf: syntax-cross-sf
+@IF_NOT_DEBUG_TOOLCHAIN@cross-sf: compile-cross-sf
+
.PHONY: compile-cross-sf
compile-cross-sf: syntax-cross-sf
(echo '(with-working-directory-pathname "sf"' && \
# XXX This is a kludge that should be abolished. The compiler should
# be able to load and run macros for the target even if we are cross-
# compiling, but currently that's not doable.
+.PHONY: kludgerous-star-parser
+kludgerous-star-parser: compile-kludgerous-star-parser
.PHONY: compile-kludgerous-star-parser
compile-kludgerous-star-parser: cref-kludgerous-runtime
(echo '(with-working-directory-pathname "star-parser"' && \
IF_CROSS=\#
fi
+AC_ARG_ENABLE([debug-toolchain],
+ AS_HELP_STRING([--enable-debug-toolchain],
+ [Use slow interpreted cross-compiler toolchain]))
+: ${enable_debug_toolchain=no}
+if test "x$enable_debug_toolchain" = xyes; then
+ IF_DEBUG_TOOLCHAIN=
+ IF_NOT_DEBUG_TOOLCHAIN=\#
+else
+ IF_DEBUG_TOOLCHAIN=\#
+ IF_NOT_DEBUG_TOOLCHAIN=
+fi
+
AC_ARG_WITH([default-target],
AS_HELP_STRING([--with-default-target],
[Set the default make target [[all]]]))
AC_SUBST([AUXDIR_NAME])
AC_SUBST([AUXDIR])
AC_SUBST([IF_CROSS])
+AC_SUBST([IF_DEBUG_TOOLCHAIN])
AC_SUBST([IF_LIARC])
+AC_SUBST([IF_NOT_DEBUG_TOOLCHAIN])
AC_SUBST([IF_SVM])
AC_PROG_INSTALL