# **** END BOILERPLATE ****
+MIT_SCHEME_NATIVE = mit-scheme-native
+MIT_SCHEME_C = mit-scheme-c
+
LIARC_BOOT_BUNDLES = compiler cref sf star-parser
LIARC_BUNDLES = $(LIARC_BOOT_BUNDLES) edwin imail sos ssp xml
all: @ALL_TARGET@
all-native: compile-microcode
- @$(top_srcdir)/etc/compile.sh mit-scheme-native --compiler
+ @$(top_srcdir)/etc/compile.sh $(MIT_SCHEME_NATIVE) --compiler
$(MAKE) build-bands
all-liarc:
- @$(top_srcdir)/etc/c-compile.sh mit-scheme-c --compiler
+ @$(top_srcdir)/etc/c-compile.sh $(MIT_SCHEME_C) --compiler
$(MAKE) compile-liarc-bundles build-bands
compile-microcode:
# **** Make liarc distribution from native ****
liarc-dist:
- @$(top_srcdir)/etc/compile-boot-compiler.sh mit-scheme-native
- @$(top_srcdir)/etc/c-prepare.sh mit-scheme-native
+ @$(top_srcdir)/etc/compile-boot-compiler.sh $(MIT_SCHEME_NATIVE)
+ @$(top_srcdir)/etc/c-prepare.sh $(MIT_SCHEME_NATIVE)
$(MAKE) distclean
# **** Build liarc from distribution ****
BUNDLES="6001 compiler cref edwin imail sf sos ssp star-parser xdoc xml"
-: ${MIT_SCHEME_EXE='mit-scheme'}
+: ${MIT_SCHEME_EXE:=mit-scheme}
+export MIT_SCHEME_EXE
run_cmd ${MIT_SCHEME_EXE} --heap 4000 <<EOF
(begin
exec ./configure "${@}"
fi
+: ${MIT_SCHEME_EXE:=mit-scheme-c}
+export MIT_SCHEME_EXE
+
run_cmd ./Setup.sh
-MIT_SCHEME_EXE=mit-scheme-c run_configure --prefix=`pwd`/boot-root
+run_configure --prefix=`pwd`/boot-root
run_cmd etc/compile-boot-compiler.sh mit-scheme-c
run_cmd_in_dir compiler run_make compile-liarc-bundle
-run_cmd etc/native-prepare.sh mit-scheme-c
+run_cmd etc/native-prepare.sh "${MIT_SCHEME_EXE}"
run_make compile-microcode
run_cmd_in_dir runtime ../microcode/scheme --library ../lib \
# Generate "Makefile.in" from "Makefile.in.in". Requires "config.h",
# because dependencies are generated by running GCC -M on the source
# files, which refer to "config.h".
-if [ -z "${SCHEME_LARGE}" ]; then
- SCHEME_LARGE="scheme --large"
-fi
-${SCHEME_LARGE} <<EOF
+
+${MIT_SCHEME_EXE:=mit-scheme} <<EOF
(begin
(load "makegen/makegen.scm")
(generate-makefile))