# do the wrong thing if there is already a compiler loaded into the
# image.
.PHONY: syntax-cross-compiler
+@IF_SVM@syntax-cross-compiler: compiler/machines/svm/assembler-db.scm
syntax-cross-compiler: cref-cross-compiler
(echo '(with-working-directory-pathname "compiler"' && \
echo ' (lambda () (load "compiler.sf")))') \
| $(HOST_SYNTAXER)
+compiler/machines/svm/assembler-db.scm:
+ (cd compiler/machines/svm && \
+ '$(MIT_SCHEME_EXE)' --batch-mode --load compile-assembler </dev/null)
+
.PHONY: cref-cross-compiler
cref-cross-compiler: cref-cross-cref
cref-cross-compiler: cref-cross-sf
boot/syntaxer.com:
@echo >&2 'Please run `make -f Makefile.boot'\'' first.'; exit 1
-microcode/scheme: compile-microcode
+@IF_SVM@microcode/scheme: microcode/svm1-defns.h
+microcode/scheme:
+ (cd microcode && $(MAKE) all)
lib/runtime.com: compile-runtime
@IF_CROSS@lib/runtime.com: cross-end
.PHONY: syntax-compiler
syntax-compiler: bootstrap-toolchain
+@IF_SVM@syntax-compiler: compiler/machines/svm/svm1-defns.h
syntax-compiler: cref-compiler
(echo '(with-working-directory-pathname "compiler"' && \
echo ' (lambda () (load "compiler.sf")))') \
ALL_TARGET=all-liarc
INSTALL_COM=:
INSTALL_LIARC_BUNDLES=install-liarc-bundles
+ IF_SVM=\#
;;
svm1)
ALL_TARGET=all-svm
INSTALL_COM='$(INSTALL_DATA)'
INSTALL_LIARC_BUNDLES=
+ IF_SVM=
;;
*)
ALL_TARGET=all-native
INSTALL_COM='$(INSTALL_DATA)'
INSTALL_LIARC_BUNDLES=
+ IF_SVM=\#
;;
esac
AUXDIR_NAME=mit-scheme-${mit_scheme_native_code}