@IF_CROSS@lib/runtime.com: stamp_cross-finished
(. etc/functions.sh && get_fasl_file && cd runtime \
&& (echo '(disk-save "../$@")' \
- | ../microcode/scheme --batch-mode --library ../lib \
- --fasl "$${FASL}"))
+ | ../run-build --batch-mode --fasl "$${FASL}"))
lib/all.com: microcode/scheme
lib/all.com: lib/runtime.com
echo ' (load-option (quote compiler))' && \
echo ' (load-option (quote sf))' && \
echo ' (disk-save "$@"))') \
- | ./microcode/scheme --batch-mode --library lib --band runtime.com
+ | ./run-build --batch-mode --band runtime.com
################
# Runtime
(echo '(let ((env (->environment (quote (runtime)))))' && \
echo ' (load "../compiler/base/crsend" env)' && \
echo ' ((access finish-cross-compilation:files env) ".."))') \
- | (cd runtime && ../microcode/scheme --batch-mode --library ../lib \
- --fasl make.bin)
+ | (cd runtime && ../run-build --batch-mode --fasl make.bin)
(echo '(let ((env (->environment (quote (runtime)))))' && \
echo ' (load "../compiler/base/crsend" env)' && \
echo ' ((access finish-cross-compilation:info-files env) ".."))') \
- | (cd runtime && ../microcode/scheme --batch-mode --library ../lib \
- --fasl make.com)
+ | (cd runtime && ../run-build --batch-mode --fasl make.com)
echo "done" > $@
################
.PHONY: check
check:
- ./microcode/scheme --library lib --batch-mode \
- --load ../tests/check.scm --eval '(%exit)'
+ ./run-build --batch-mode --load ../tests/check.scm --eval '(%exit)'
.PHONY: macosx-app
macosx-app:
-#!/bin/bash
+#!/bin/sh
set -e
-HERE=$(dirname "${0}")
-export MITSCHEME_LIBRARY_PATH=${HERE}/lib
+MIT_SCHEME_EXE=${0}
+case ${MIT_SCHEME_EXE} in
+/*)
+ ;;
+*)
+ MIT_SCHEME_EXE=`pwd`/${MIT_SCHEME_EXE}
+ ;;
+esac
+HERE=`dirname "${MIT_SCHEME_EXE}"`
+MITSCHEME_LIBRARY_PATH=${HERE}/lib
+export MIT_SCHEME_EXE
+export MITSCHEME_LIBRARY_PATH
"${HERE}"/microcode/scheme "${@}"
scmlib_LTLIBRARIES = ffi-test-shim.la
scmlib_DATA = ffi-test-types.bin ffi-test-const.bin
-AM_CPPFLAGS = -I../../src/lib
+AM_CPPFLAGS = -I@MIT_SCHEME_INCLUDE_DIR@
ffi_test_shim_la_LIBADD = ffi-test.lo
ffi_test_shim_la_LDFLAGS = -module -avoid-version -shared
CLEANFILES = ffi-test-const* ffi-test-shim.c
CLEANFILES += *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd
+MAINTAINERCLEANFILES = Makefile.in aclocal.m4 compile config.* configure
+MAINTAINERCLEANFILES += depcomp install-sh ltmain.sh missing
+
+maintainer-clean-local:
+ -rm -rf m4
LT_PREREQ([2.2.6])
LT_INIT([dlopen win32-dll])
-MIT_SCHEME_EXE="../../src/microcode/scheme --library ../../src/lib"
+
+: ${MIT_SCHEME_EXE="../../src/run-build"}
+: ${MITSCHEME_LIBRARY_PATH="../../src/lib"}
+: ${MIT_SCHEME_INCLUDE_DIR=${MITSCHEME_LIBRARY_PATH}}
MIT_SCHEME_ARCH=`echo "(display microcode-id/compiled-code-type)" \
| ${MIT_SCHEME_EXE} --batch-mode`
AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_INCLUDE_DIR])
AC_SUBST([MIT_SCHEME_ARCH])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
#!/bin/sh
set -e
-../../src/microcode/scheme --library .:../../src/lib --batch-mode <<EOF
+${MIT_SCHEME_EXE} --library .:${MITSCHEME_LIBRARY_PATH} --batch-mode <<EOF
(begin
(parameterize ((param:suppress-loading-message? #t))
- (load-option 'FFI))
+ (load-option 'ffi))
(compile-file "test-ffi-wrapper")
(load "test-ffi-wrapper")
(test-ffi))