all-native: compile-xml
@IF_CROSS@all-native: cross-target
-@IF_CROSS@COMPILER_SETTINGS = (set! compiler:cross-compiling? true)
+@IF_CROSS@COMPILER_SETTINGS_CROSS = (set! compiler:cross-compiling? true)
+@IF_LIARC@COMPILER_SETTINGS_LIARC = (set! compiler:invoke-c-compiler? false)
+
+COMPILER_SETTINGS = \
+ $(COMPILER_SETTINGS_CROSS) \
+ $(COMPILER_SETTINGS_LIARC)
HOST_SCHEME = '$(MIT_SCHEME_EXE)' --batch-mode
TOOL_COMPILER = $(TOOL_TOOLCHAIN)
tools/syntaxer.com:
@echo >&2 'Please run `make -f Makefile.tools'\'' first.'; exit 1
+@IF_LIARC@microcode/scheme: compile-runtime
@IF_SVM@microcode/scheme: microcode/svm1-defns.h
microcode/scheme:
(cd microcode && $(MAKE) all)
.PHONY: compile-runtime
compile-runtime: toolchain
+@IF_LIARC@compile-runtime: compile-runtime-pkd
compile-runtime: syntax-runtime
(echo '(with-working-directory-pathname "runtime"' && \
echo ' (lambda () (load "runtime.cbf")))') \
| $(TOOL_COMPILER)
+.PHONY: compile-runtime-pkd
+compile-runtime-pkd: toolchain
+compile-runtime-pkd: cref-runtime
+ (echo '(with-working-directory-pathname "runtime"' && \
+ echo ' (lambda ()' && \
+ echo ' (cbf "runtime-os2.pkd")' && \
+ echo ' (cbf "runtime-unx.pkd")' && \
+ echo ' (cbf "runtime-w32.pkd")))') \
+ | $(TOOL_COMPILER)
+
.PHONY: compile-runtime
syntax-runtime: toolchain
syntax-runtime: cref-runtime
AC_CANONICAL_HOST
MIT_SCHEME_NATIVE_CODE([${enable_native_code}],[${host_cpu}])
+IF_LIARC=\#
+IF_SVM=\#
case ${mit_scheme_native_code} in
c)
ALL_TARGET=all-liarc
INSTALL_COM=:
INSTALL_LIARC_BUNDLES=install-liarc-bundles
- IF_SVM=\#
+ IF_LIARC=
;;
svm1)
ALL_TARGET=all-svm
ALL_TARGET=all-native
INSTALL_COM='$(INSTALL_DATA)'
INSTALL_LIARC_BUNDLES=
- IF_SVM=\#
;;
esac
AUXDIR_NAME=mit-scheme-${mit_scheme_native_code}
AC_SUBST([AUXDIR_NAME])
AC_SUBST([AUXDIR])
AC_SUBST([IF_CROSS])
+AC_SUBST([IF_LIARC])
AC_SUBST([IF_SVM])
AC_PROG_INSTALL