This is necessary now because it modifies SF.
--band runtime.com --no-init-file --eval '(load-option (quote sf))' \
--load runtime/host-adapter.scm
+MODULE_SCHEME_FLAGS = --load ../runtime/host-adapter.scm
+
# This rule is for LIARC.
.SUFFIXES: .bld .pkd .c
.pkd.c .bld.c:
.PHONY: compile-blowfish
compile-blowfish: compile-runtime compile-ffi
- (cd blowfish && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+ (cd blowfish && MIT_SCHEME_EXE='$(MIT_SCHEME_EXE)' MIT_SCHEME_FLAGS='$(MODULE_SCHEME_FLAGS)' $(MAKE))
.PHONY: compile-blowfish-c
compile-blowfish-c:
@IF_BLOWFISH@compile-edwin: compile-blowfish
@IF_GDBM@compile-edwin: compile-gdbm
@IF_X11@compile-edwin: compile-x11
- (cd edwin && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+ (cd edwin && MIT_SCHEME_EXE='$(MIT_SCHEME_EXE)' MIT_SCHEME_FLAGS='$(MODULE_SCHEME_FLAGS)' $(MAKE))
################
# gdbm
.PHONY: compile-gdbm
compile-gdbm: compile-runtime compile-ffi
- (cd gdbm && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+ (cd gdbm && MIT_SCHEME_EXE='$(MIT_SCHEME_EXE)' MIT_SCHEME_FLAGS='$(MODULE_SCHEME_FLAGS)' $(MAKE))
.PHONY: compile-gdbm-c
compile-gdbm-c:
.PHONY: compile-imail
compile-imail: compile-runtime compile-sos compile-edwin compile-star-parser
- (cd imail && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+ (cd imail && MIT_SCHEME_EXE='$(MIT_SCHEME_EXE)' MIT_SCHEME_FLAGS='$(MODULE_SCHEME_FLAGS)' $(MAKE))
################
# mcrypt
.PHONY: compile-mcrypt
compile-mcrypt: compile-runtime compile-ffi
- (cd mcrypt && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+ (cd mcrypt && MIT_SCHEME_EXE='$(MIT_SCHEME_EXE)' MIT_SCHEME_FLAGS='$(MODULE_SCHEME_FLAGS)' $(MAKE))
.PHONY: compile-mcrypt-c
compile-mcrypt-c:
.PHONY: compile-pgsql
compile-pgsql: compile-runtime compile-ffi
- (cd pgsql && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+ (cd pgsql && MIT_SCHEME_EXE='$(MIT_SCHEME_EXE)' MIT_SCHEME_FLAGS='$(MODULE_SCHEME_FLAGS)' $(MAKE))
.PHONY: compile-pgsql-c
compile-pgsql-c:
.PHONY: compile-x11
compile-x11: compile-runtime compile-ffi
- (cd x11 && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+ (cd x11 && MIT_SCHEME_EXE='$(MIT_SCHEME_EXE)' MIT_SCHEME_FLAGS='$(MODULE_SCHEME_FLAGS)' $(MAKE))
.PHONY: compile-x11-c
compile-x11-c:
.PHONY: compile-x11-screen
compile-x11-screen: compile-runtime compile-x11 compile-edwin
- (cd x11-screen && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+ (cd x11-screen && MIT_SCHEME_EXE='$(MIT_SCHEME_EXE)' MIT_SCHEME_FLAGS='$(MODULE_SCHEME_FLAGS)' $(MAKE))
#####################
### Cross compilation
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
-${MIT_SCHEME_EXE} --prepend-library . --batch-mode <<\EOF
+: ${MIT_SCHEME_FLAGS=}
+${MIT_SCHEME_EXE} --prepend-library . --batch-mode --no-init-file ${MIT_SCHEME_FLAGS} <<\EOF
(load "compile.scm")
EOF
suffix=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_EXE} --batch-mode --no-init-file`
report=blowfish-$suffix.crf
if [ -s "$report" ]; then
echo "$0: warning: $report is not empty"
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
-#
+#
# MIT/GNU Scheme is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with MIT/GNU Scheme; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
-${MIT_SCHEME_EXE} --batch-mode <<\EOF
+: ${MIT_SCHEME_FLAGS=}
+${MIT_SCHEME_EXE} --batch-mode --no-init-file ${MIT_SCHEME_FLAGS} <<\EOF
(begin
(load "edwin.sf")
(load "edwin.cbf"))
EOF
suffix=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_EXE} --batch-mode --no-init-file`
report=edwin-$suffix.crf
if [ -s "$report" ]; then
awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
-${MIT_SCHEME_EXE} --prepend-library . --batch-mode <<\EOF
+: ${MIT_SCHEME_FLAGS=}
+${MIT_SCHEME_EXE} --prepend-library . --batch-mode --no-init-file ${MIT_SCHEME_FLAGS} <<\EOF
(load "compile.scm")
EOF
suffix=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_EXE} --batch-mode --no-init-file`
report=gdbm-$suffix.crf
if [ -s "$report" ]; then
echo "$0: warning: $report is not empty"
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
-${MIT_SCHEME_EXE} --batch-mode <<\EOF
+: ${MIT_SCHEME_FLAGS=}
+${MIT_SCHEME_EXE} --batch-mode --no-init-file ${MIT_SCHEME_FLAGS} <<\EOF
(load "compile.scm")
EOF
suffix=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_EXE} --batch-mode --no-init-file`
report=imail-$suffix.crf
if [ -s "$report" ]; then
awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
-${MIT_SCHEME_EXE} --prepend-library . --batch-mode <<\EOF
+: ${MIT_SCHEME_FLAGS=}
+${MIT_SCHEME_EXE} --prepend-library . --batch-mode --no-init-file ${MIT_SCHEME_FLAGS} <<\EOF
(load "compile.scm")
EOF
suffix=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_EXE} --batch-mode --no-init-file`
report=mcrypt-$suffix.crf
if [ -s "$report" ]; then
echo "$0: warning: $report is not empty"
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
-${MIT_SCHEME_EXE} --prepend-library . --batch-mode <<\EOF
+: ${MIT_SCHEME_FLAGS=}
+${MIT_SCHEME_EXE} --prepend-library . --batch-mode --no-init-file ${MIT_SCHEME_FLAGS} <<\EOF
(load "compile.scm")
EOF
suffix=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_EXE} --batch-mode --no-init-file`
report=pgsql-$suffix.crf
if [ -s "$report" ]; then
echo "$0: warning: $report is not empty"
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
-${MIT_SCHEME_EXE} --batch-mode <<\EOF
+: ${MIT_SCHEME_FLAGS=}
+${MIT_SCHEME_EXE} --batch-mode --no-init-file ${MIT_SCHEME_FLAGS} <<\EOF
(load "compile.scm")
EOF
suffix=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_EXE} --batch-mode --no-init-file`
report=x11-screen-$suffix.crf
if [ -s "$report" ]; then
echo "$0: warning: $report is not empty"
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
-${MIT_SCHEME_EXE} --prepend-library . --batch-mode <<\EOF
+: ${MIT_SCHEME_FLAGS=}
+${MIT_SCHEME_EXE} --prepend-library . --batch-mode --no-init-file ${MIT_SCHEME_FLAGS} <<\EOF
(load "compile.scm")
EOF
suffix=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_EXE} --batch-mode --no-init-file`
report=x11-$suffix.crf
if [ -s "$report" ]; then
echo "$0: warning: $report is not empty"