-# $Id: Makefile.in,v 1.35 2007/05/06 14:16:49 cph Exp $
+# $Id: Makefile.in,v 1.36 2007/05/08 12:54:52 cph Exp $
#
# Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
# 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
AUXDIR = @AUXDIR@
EDETC = $(AUXDIR)/edwin/etc
-COMPILE_SCRIPT = @COMPILE_SCRIPT@
+all: all-microcode @ALL_TARGET@ all-bands
-all:
+all-microcode:
( cd microcode && $(MAKE) all )
- $(srcdir)/etc/$(COMPILE_SCRIPT)
+
+all-native:
+ $(srcdir)/etc/compile.sh
+
+all-c:
+ $(srcdir)/etc/c-compile.sh
( cd microcode && $(MAKE) liarc-bundles )
+
+all-bands:
$(srcdir)/etc/build-bands.sh
c: c-boot-compiler.com
- $(srcdir)/etc/c-prepare.sh
+ $(srcdir)/etc/c-prepare.sh mit-scheme --band $<
-rm -f liarc.stamp
echo "done" > liarc.stamp
native: native-boot-compiler.com
- $(srcdir)/etc/compile.sh mit-scheme-c --band native-boot-compiler.com
+ $(srcdir)/etc/compile.sh mit-scheme-c --band $<
c-boot-compiler.com:
- $(srcdir)/etc/c-boot-compiler.sh mit-scheme c-boot-compiler
+ $(srcdir)/etc/c-boot-compiler.sh mit-scheme $@
native-boot-compiler.com:
- $(srcdir)/etc/c-boot-compiler.sh mit-scheme-c native-boot-compiler
+ $(srcdir)/etc/c-boot-compiler.sh mit-scheme-c $@
mostlyclean clean distclean maintainer-clean c-clean:
$(srcdir)/Clean.sh $@ $(SUBDIRS)
$(mkinstalldirs) $(DESTDIR)$(EDETC)
$(INSTALL_DATA) $(srcdir)/etc/TUTORIAL $(DESTDIR)$(EDETC)/.
-.PHONY: all mostlyclean clean distclean maintainer-clean tags TAGS install
-.PHONY: c c-clean
+.PHONY: all all-microcode all-native all-c all-bands c native install
+.PHONY: mostlyclean clean distclean maintainer-clean c-clean tags TAGS
dnl Process this file with autoconf to produce a configure script.
AC_INIT([MIT/GNU Scheme], [7.7.91], [bug-mit-scheme@gnu.org], [mit-scheme])
-AC_REVISION([$Id: configure.ac,v 1.10 2007/05/04 01:27:24 cph Exp $])
+AC_REVISION([$Id: configure.ac,v 1.11 2007/05/08 12:54:52 cph Exp $])
AC_CONFIG_SRCDIR([microcode/boot.c])
AC_PROG_MAKE_SET
case ${enable_native_code} in
c)
- COMPILE_SCRIPT=c-compile.sh
+ ALL_TARGET=all-c
INSTALL_COM=:
SYSTEM_BASE_NAME=mit-scheme-c
;;
*)
- COMPILE_SCRIPT=compile.sh
+ ALL_TARGET=all-native
INSTALL_COM='$(INSTALL_DATA)'
SYSTEM_BASE_NAME=mit-scheme
;;
esac
-AC_SUBST([COMPILE_SCRIPT])
+AC_SUBST([ALL_TARGET])
AC_SUBST([INSTALL_COM])
AC_PROG_INSTALL
#!/bin/sh
#
-# $Id: c-prepare.sh,v 1.5 2007/05/06 14:17:14 cph Exp $
+# $Id: c-prepare.sh,v 1.6 2007/05/08 12:54:52 cph Exp $
#
# Copyright 2007 Massachusetts Institute of Technology
#
set -e
-if [ -z "${SCHEME_LARGE}" ]; then
- SCHEME_LARGE="mit-scheme --heap 6000"
+if [ ${#} -eq 0 ]; then
+ SCHEME_COMPILER="mit-scheme-c --compiler"
+else
+ SCHEME_COMPILER=${1}
+ shift
+ while [ ${#} -gt 0 ]; do
+ SCHEME_COMPILER="${SCHEME_COMPILER} ${1}"
+ shift
+ done
fi
-${SCHEME_LARGE} --band c-boot-compiler.com <<EOF
+SCHEME_COMPILER="${SCHEME_COMPILER} --heap 6000"
+
+echo "${SCHEME_COMPILER}"
+${SCHEME_COMPILER} <<EOF
(begin
(load "etc/compile.scm")
(c-prepare))