David Rush scripsit:
> There is some sense in which I am the custodian of
> the VSCM source code (having been blessed by Matthias Blume to be
> allowed post it on SourceForge many moons ago). It has lovely
> internals, and IIRC it was also a pretty complete R4RS (which was and
> still is rarer than one might think) - but yes it is also moribund.
It is indeed beautiful. I've attached some replacements (clearer than
diffs in this case) for Makefile, compiler/Makefile, and INSTALL,
plus a COPYING file. Here's a change log:
* Add ``clean'' and ``confclean'' targets to Makefile.in
* Changed the binaries to ``vscm'' and ``.vscm-boot''
to avoid conflicts with SRFI-22 generic names
* Totally replaced INSTALL with something that says what to do
(note that you need a --prefix option, there's no default)
* Moved the definition of DDP in Makefile.in to the untouchable area
* Added chmod's and mkdir to ``make install'' for clean installs
* Added COPYING file containing the Artistic License 2.0
You should also remove Makefile and compiler/Makefile from
source control so that people will have to run ``configure''.
--
Using RELAX NG compact syntax to John Cowan <[email protected]>
develop schemas is one of the simple http://www.ccil.org/~cowan
pleasures in life....
--Jeni Tennison <[email protected]>
#
# Makefile -- dependency description for ``make''
#
# (C) m.b (Matthias Blume); 1992, HUB; Mar 1993 PU/CS
# Humboldt-University of Berlin
# Princeton University, Dept. of Computer Science
#
# This is the Makefile for the Scheme implementation ``vscm'' by
# Matthias Blume. It requires the existence of an ANSI-C-System.
# Use the make-variables below to adapt to your local needs.
#
# Use a Bourne-Shell-like shell:
SHELL = @POSIX_SHELL@
# The ``delete'' command:
DELETE = @RM@
FORCEDELETE = $(DELETE) -f
# The librarian ``ar'':
AR = @AR@
# The next section describes your local C system.
# CC is the name of your C-Compiler. Use gcc, if available. You MUST
# use an ANSI-C-Compiler.
# OPTFLAGS (e.g. ``-O'', ``-O2'', ``-DNDEBUG'')
# instruct the compiler to produce optimized code.
# With gcc (at least v2.1) NEVER use plain ``-O'' (there is a bug...)!
# WARNFLAGS (e.g. ``-Wall'') are used to select the warn level.
# DEBUGFLAGS (e.g. ``-g'', ``-DDEBUG'')
# instruct the compiler to include debugging information and/or code.
# EXTRACFLAGS (e.g. ``-Iincldir'') are extra flags passed to the compile phase.
# EXTRALDFLAGS (e.g. ``-Llibdir'') are extra flags passed to the link phase.
# EXTRALIBS (e.g. ``-lcposix'') are extra libraries, which might be necessary.
# RANLIB is the library randomizer (normally ``ranlib'') or a null command
# if ranlib is not necessary (e.g. ``:'')
# Note: The flags defined in this section should be specific to your
# local C system. They do not include generally applicable things like
# ``-DNDEBUG'' etc.
CC = @CC@
OPTFLAGS = -O2
WARNFLAGS = -Wall -Wmissing-prototypes
DEBUGFLAGS = -g
EXTRACFLAGS = -DADJUSTABLE_SFIXNUM_RANGE -DVSCM_POSIX
EXTRALDFLAGS =
EXTRALIBS =
RANLIB = @RANLIB@
# The next section gives examples for systems, where I know, how it works:
#
# 3. ISC 3.2 using gcc (v2.2.2)
## EXTRACFLAGS = -Dsig_atomic_t=int
#
# 7. NeXT using gcc:
## EXTRACFLAGS = -DCLOCKS_PER_SEC=60
# The following section can be used to define flags which change the
# configuration of the system. In general it will be necessary to have
# some knowledge about the internal consequences of those settings.
# Don't change them if you are not familiar with them!
#
# WARNINGS: NEVER MAKE CHANGES TO THESE SETTINGS BEFORE BUILDING THE
# SYSTEM FOR THE FIRST TIME!
#
# Note: whenever you make changes to the system which will result in
# changes to the ``dump file'' format you must ``touch(1)'' the file
# ``format.time'' before recompilation.
# useful -D? options: TRACE_VM_EXECUTION VM_INSTRUCTION_COUNTING DEBUG TICKING
A_OPTFLAGS = $(OPTFLAGS) -DNDEBUG
A_WARNFLAGS = $(WARNFLAGS)
A_DEBUGFLAGS = $(DEBUGFLAGS)
A_EXTRACFLAGS = $(EXTRACFLAGS) -DTICKING
A_EXTRALDFLAGS = $(EXTRALDFLAGS)
A_EXTRALIBS = $(EXTRALIBS)
# Don't fool around with stuff below this line...
# A specification of the default prefix string that is written into the
# first line of memory dump files: (only GNU make can handle this line properly)
DDP = -DDEFAULT_DUMP_PREFIX='"\...@bindir@/vscm -s"'
-DDEFAULT_BOOTFILE='"@datadir@/vscm/vscm-boot"'
.DEFAULT:
@echo I hope making $< is not necessary...
CFLAGS = $(A_OPTFLAGS) $(A_WARNFLAGS) $(A_DEBUGFLAGS) $(A_EXTRACFLAGS) $(DDP)
LDFLAGS = $(A_OPTFLAGS) $(A_DEBUGFLAGS) $(A_EXTRALDFLAGS)
CLFLAGS = $(CFLAGS) $(A_EXTRALDFLAGS)
LIBS = -lm $(A_EXTRALIBS)
OBJECTS = \
storage.o storext.o identifier.o reader.o keyword.o io.o Boolean.o \
Symbol.o Cont.o Primitive.o Code.o Port.o Corout.o Numeric.o \
Cell.o Character.o Cons.o Vector.o String.o Procedure.o Promise.o \
Module.o except.o main.o list-prim.o misc-prim.o bool-prim.o \
equiv-prim.o sym-prim.o num-prim.o vect-prim.o contr-prim.o \
sc-prim.o cr-prim.o tmpstring.o gcstat.o posix.o
TMPLIBS = non-ansi-lib
.PRECIOUS: $(TMPLIBS)
.SUFFIXES: .tab
targets:
@echo "You can build the following:"
@echo " vscm ------- the VSCM virtual machine"
@echo " .vscm-boot - the bootstrap image (repl + compiler)"
@echo " all -------- vscm & .vscm-boot"
@echo " install ---- copies stuff to its configure'd home"
@echo " clean ------ remove make targets"
@echo " conf-clean - remove make and configure targets"
all: vscm .vscm-boot
install: all
chmod a+x vscm
cp vscm @bindir@
chmod a+r .vscm-boot
mkdir -p @datadir@/vscm
cp .vscm-boot @datadir@/vscm/vscm-boot
clean:
$(FORCEDELETE) realloc.o fileno.o strerr.o $(OBJECTS)
$(FORCEDELETE) mkalign mkalign.o align.h
$(FORCEDELETE) vbis.sort non-ansi-lib vscm .vscm-boot
$(FORCEDELETE) mkpvtab mkpvtab.o
$(FORCEDELETE) vscm .vscm-boot
(cd compiler; $(MAKE) clean)
confclean: clean
$(FORCEDELETE) Makefile compiler/Makefile config.log config.status
#
# Dependencies:
#
$(OBJECTS) mkalign.o mkpvtab.o: rcs.h
Boolean.o: Boolean.c storext.h numops.tab Boolean.h storage.h align.h \
type.h identifier.h ident.tab except.h noreturn.h
Cell.o: Cell.c storext.h numops.tab Cell.h storage.h align.h identifier.h \
ident.tab type.h
Character.o: Character.c storext.h numops.tab Character.h storage.h \
align.h type.h identifier.h ident.tab except.h noreturn.h
Code.o: Code.c storext.h numops.tab Code.h storage.h align.h \
Vector.h noreturn.h Cont.h identifier.h ident.tab type.h \
except.h speccont.h mode.h keyword.h Cons.h Procedure.h \
Promise.h Boolean.h Cell.h Symbol.h Primitive.h String.h \
Numeric.h Module.h realloc.h vbis.sort
Cons.o: Cons.c storext.h numops.tab Cons.h storage.h align.h \
identifier.h ident.tab keyword.h Boolean.h type.h
Cont.o: Cont.c storext.h numops.tab Cont.h storage.h align.h \
Vector.h Code.h noreturn.h identifier.h ident.tab stack-t.h \
type.h except.h speccont.h mode.h
Corout.o: Corout.c storext.h numops.tab Corout.h storage.h align.h \
Cont.h Vector.h Code.h noreturn.h speccont.h identifier.h \
ident.tab type.h
Numeric.o: Numeric.c Numeric.h storage.h align.h storext.h numops.tab \
except.h noreturn.h identifier.h ident.tab type.h numops.h \
realloc.h
Port.o: Port.c storext.h numops.tab Port.h storage.h align.h \
identifier.h ident.tab except.h noreturn.h type.h Boolean.h \
Character.h Cont.h Vector.h Code.h io.h reader.h realloc.h
Primitive.o: Primitive.c storext.h numops.tab Primitive.h storage.h \
align.h identifier.h ident.tab type.h except.h noreturn.h \
builtins.tab speccont.h
Procedure.o: Procedure.c storext.h numops.tab Procedure.h storage.h \
align.h identifier.h ident.tab
Promise.o: Promise.c storext.h numops.tab Promise.h storage.h align.h \
identifier.h ident.tab
String.o: String.c storext.h numops.tab String.h storage.h align.h \
identifier.h ident.tab type.h except.h noreturn.h
Symbol.o: Symbol.c storext.h numops.tab Symbol.h storage.h align.h \
Primitive.h identifier.h ident.tab type.h except.h noreturn.h
Vector.o: Vector.c storext.h numops.tab Vector.h storage.h align.h \
identifier.h ident.tab type.h except.h noreturn.h
Module.o: Module.c storext.h numops.tab Module.h storage.h align.h \
identifier.h ident.tab type.h
bool-prim.o: bool-prim.c Boolean.h storage.h align.h storext.h numops.tab \
Cont.h Vector.h Code.h noreturn.h builtins.tab speccont.h
contr-prim.o: contr-prim.c Cont.h storage.h align.h storext.h numops.tab \
Vector.h Code.h noreturn.h Procedure.h Primitive.h Promise.h \
Boolean.h Cons.h except.h type.h builtins.tab speccont.h
cr-prim.o: cr-prim.c storage.h align.h storext.h numops.tab Corout.h \
Cont.h Vector.h Code.h noreturn.h Procedure.h except.h \
type.h builtins.tab speccont.h
equiv-prim.o: equiv-prim.c Cont.h storage.h align.h storext.h numops.tab \
Vector.h Code.h noreturn.h Boolean.h builtins.tab speccont.h
except.o: except.c Cont.h storage.h align.h storext.h numops.tab \
Vector.h Code.h noreturn.h String.h except.h m-except.h \
io.h type.h mode.h tmpstring.h
fileno.o: fileno.c
gcstat.o: gcstat.c storage.h align.h storext.h numops.tab Cont.h \
Vector.h Code.h noreturn.h Numeric.h Boolean.h speccont.h \
mode.h except.h
identifier.o: identifier.c storage.h align.h storext.h numops.tab \
identifier.h ident.tab type.h Boolean.h Character.h Cons.h \
Cell.h Procedure.h Promise.h String.h Symbol.h Vector.h \
Cont.h Code.h noreturn.h Primitive.h Port.h Numeric.h \
Corout.h Module.h
io.o: io.c io.h Port.h storage.h align.h storext.h numops.tab \
Boolean.h Cont.h Vector.h Code.h noreturn.h String.h \
Numeric.h mode.h type.h tmpstring.h except.h reader.h \
builtins.tab speccont.h realloc.h
keyword.o: keyword.c keyword.h storage.h align.h storext.h numops.tab \
Symbol.h
list-prim.o: list-prim.c Cont.h storage.h align.h storext.h numops.tab \
Vector.h Code.h noreturn.h Boolean.h Cons.h Numeric.h \
type.h except.h builtins.tab speccont.h
main.o: main.c main.h storage.h align.h storext.h numops.tab \
keyword.h reader.h except.h noreturn.h Cont.h Vector.h \
Code.h Boolean.h Symbol.h Cons.h String.h Corout.h \
Numeric.h io.h m-except.h speccont.h type.h mainloop.h
misc-prim.o: misc-prim.c storage.h align.h storext.h numops.tab Cont.h \
Vector.h Code.h noreturn.h Numeric.h String.h Boolean.h \
Primitive.h Procedure.h Symbol.h Cons.h type.h tmpstring.h \
mode.h except.h builtins.tab speccont.h m-except.h mainloop.h
mkalign.o: mkalign.c
num-prim.o: num-prim.c Cont.h storage.h align.h storext.h numops.tab \
Vector.h Code.h noreturn.h Numeric.h Boolean.h Cons.h \
String.h type.h except.h reader.h builtins.tab speccont.h
reader.o: reader.c reader.h keyword.h type.h Cons.h storage.h align.h \
storext.h numops.tab Cont.h Vector.h Code.h noreturn.h \
Character.h String.h Symbol.h Boolean.h Numeric.h except.h \
realloc.h
realloc.o: realloc.c realloc.h
sc-prim.o: sc-prim.c String.h storage.h align.h storext.h numops.tab \
Character.h Boolean.h Cont.h Vector.h Code.h noreturn.h \
Numeric.h Cons.h type.h except.h builtins.tab speccont.h
storage.o: storage.c align.h storage.h storage-t.h except.h noreturn.h \
realloc.h
storext.o: storext.c storage.h align.h storext.h numops.tab numops.h \
except.h noreturn.h
strerr.o: strerr.c
sym-prim.o: sym-prim.c storage.h align.h storext.h numops.tab Cont.h \
Vector.h Code.h noreturn.h Symbol.h String.h Boolean.h \
type.h except.h tmpstring.h builtins.tab speccont.h
tmpstring.o: tmpstring.c realloc.h tmpstring.h except.h noreturn.h
vect-prim.o: vect-prim.c Code.h storage.h align.h storext.h numops.tab \
Vector.h noreturn.h Cont.h Boolean.h Numeric.h Cons.h \
type.h except.h builtins.tab speccont.h
posix.o: posix.c Boolean.h storage.h align.h storext.h numops.tab \
String.h Cons.h Cont.h Vector.h Code.h noreturn.h type.h \
except.h tmpstring.h builtins.tab speccont.h
mkpvtab.o: mkpvtab.c builtins.tab speccont.h
#
# Rules:
#
objects: $(OBJECTS)
align.h: mkalign
./mkalign >align.h
vbis.sort: vbis.tab
sed -e '1,/^--FILE_STARTS_HERE--$$/d' <vbis.tab | \
awk -F\" '{print $$2, $$0}' | sort | \
sed -e 's/^[^ ]*//' >vbis.sort
.c.o:
$(CC) $(CFLAGS) -c $<
.c:
$(CC) -o $* $(CLFLAGS) $< $(LIBS)
non-ansi-lib: \
fileno.o \
realloc.o \
strerr.o
$(AR) -r non-ansi-lib fileno.o realloc.o strerr.o
$(RANLIB) non-ansi-lib
@echo non-ansi-lib is now up to date
.c.a:
$(CC) $(CFLAGS) -c $<
$(AR) rv $@ $*.o
$(FORCEDELETE) $*.o
vscm: $(OBJECTS) $(TMPLIBS)
$(CC) -o vscm $(LDFLAGS) $(OBJECTS) $(LIBS) -lc $(TMPLIBS)
.vscm-boot: compiler/O/repl.scb
cp compiler/O/repl.scb .vscm-boot
compiler/O/repl.scb: mkpvtab
(cd compiler; ./build $(MAKE))
# The following section contains stuff related to ULTRIX's
# profiling system (pixie):
vscm.pixie: vscm
pixie -o vscm.pixie vscm
prof: vscm.pixie .vscm-boot
./vscm.pixie
prof -pixie vscm | more
To compile and install VSCM on a Unix-style system
0. unpack the software into an empty directory
(you've probably already done so, since you are reading this file)
1. run ``sh configure --prefix=/usr/local'' (or wherever)
2. run ``make all''
3. (optional) edit Makefile to choose config options and rerun ``make all``
4. run ``make install'', using ``sudo'' if necessary.
Artistic License 2.0
Copyright (c) 2000-2006, The Perl Foundation.
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
Preamble
This license establishes the terms under which a given free software
Package may be copied, modified, distributed, and/or redistributed.
The intent is that the Copyright Holder maintains some artistic
control over the development of that Package while still keeping the
Package available as open source and free software.
You are always permitted to make arrangements wholly outside of this
license directly with the Copyright Holder of a given Package. If the
terms of this license do not permit the full use that you propose to
make of the Package, you should contact the Copyright Holder and seek
a different licensing arrangement.
Definitions
"Copyright Holder" means the individual(s) or organization(s) named in
the copyright notice for the entire Package.
"Contributor" means any party that has contributed code or other
material to the Package, in accordance with the Copyright Holder's
procedures.
"You" and "your" means any person who would like to copy, distribute,
or modify the Package.
"Package" means the collection of files distributed by the Copyright
Holder, and derivatives of that collection and/or of those files. A
given Package may consist of either the Standard Version, or a
Modified Version.
"Distribute" means providing a copy of the Package or making it
accessible to anyone else, or in the case of a company or
organization, to others outside of your company or organization.
"Distributor Fee" means any fee that you charge for Distributing this
Package or providing support for this Package to another party. It
does not mean licensing fees.
"Standard Version" refers to the Package if it has not been modified,
or has been modified only in ways explicitly requested by the
Copyright Holder.
"Modified Version" means the Package, if it has been changed, and such
changes were not explicitly requested by the Copyright Holder.
"Original License" means this Artistic License as Distributed with the
Standard Version of the Package, in its current version or as it may
be modified by The Perl Foundation in the future.
"Source" form means the source code, documentation source, and
configuration files for the Package.
"Compiled" form means the compiled bytecode, object code, binary, or
any other form resulting from mechanical transformation or translation
of the Source form.
Permission for Use and Modification Without Distribution
(1) You are permitted to use the Standard Version and create and use
Modified Versions for any purpose without restriction, provided that
you do not Distribute the Modified Version.
Permissions for Redistribution of the Standard Version
(2) You may Distribute verbatim copies of the Source form of the
Standard Version of this Package in any medium without restriction,
either gratis or for a Distributor Fee, provided that you duplicate
all of the original copyright notices and associated disclaimers. At
your discretion, such verbatim copies may or may not include a
Compiled form of the Package.
(3) You may apply any bug fixes, portability changes, and other
modifications made available from the Copyright Holder. The resulting
Package will still be considered the Standard Version, and as such
will be subject to the Original License.
Distribution of Modified Versions of the Package as Source
(4) You may Distribute your Modified Version as Source (either gratis
or for a Distributor Fee, and with or without a Compiled form of the
Modified Version) provided that you clearly document how it differs
from the Standard Version, including, but not limited to, documenting
any non-standard features, executables, or modules, and provided that
you do at least ONE of the following:
(a) make the Modified Version available to the Copyright Holder of the
Standard Version, under the Original License, so that the Copyright
Holder may include your modifications in the Standard Version. (b)
ensure that installation of your Modified Version does not prevent the
user installing or running the Standard Version. In addition, the
Modified Version must bear a name that is different from the name of
the Standard Version. (c) allow anyone who receives a copy of the
Modified Version to make the Source form of the Modified Version
available to others under (i) the Original License or (ii) a license
that permits the licensee to freely copy, modify and redistribute the
Modified Version using the same licensing terms that apply to the copy
that the licensee received, and requires that the Source form of the
Modified Version, and of any works derived from it, be made freely
available in that license fees are prohibited but Distributor Fees are
allowed.
Distribution of Compiled Forms of the Standard Version or Modified
Versions without the Source
(5) You may Distribute Compiled forms of the Standard Version without
the Source, provided that you include complete instructions on how to
get the Source of the Standard Version. Such instructions must be
valid at the time of your distribution. If these instructions, at any
time while you are carrying out such distribution, become invalid, you
must provide new instructions on demand or cease further distribution.
If you provide valid instructions or cease distribution within thirty
days after you become aware that the instructions are invalid, then
you do not forfeit any of your rights under this license.
(6) You may Distribute a Modified Version in Compiled form without the
Source, provided that you comply with Section 4 with respect to the
Source of the Modified Version.
Aggregating or Linking the Package
(7) You may aggregate the Package (either the Standard Version or
Modified Version) with other packages and Distribute the resulting
aggregation provided that you do not charge a licensing fee for the
Package. Distributor Fees are permitted, and licensing fees for other
components in the aggregation are permitted. The terms of this license
apply to the use and Distribution of the Standard or Modified Versions
as included in the aggregation.
(8) You are permitted to link Modified and Standard Versions with
other works, to embed the Package in a larger work of your own, or to
build stand-alone binary or bytecode versions of applications that
include the Package, and Distribute the result without restriction,
provided the result does not expose a direct interface to the Package.
Items That are Not Considered Part of a Modified Version
(9) Works (including, but not limited to, modules and scripts) that
merely extend or make use of the Package, do not, by themselves, cause
the Package to be a Modified Version. In addition, such works are not
considered parts of the Package itself, and are not subject to the
terms of this license.
General Provisions
(10) Any use, modification, and distribution of the Standard or
Modified Versions is governed by this Artistic License. By using,
modifying or distributing the Package, you accept this license. Do not
use, modify, or distribute the Package, if you do not accept this
license.
(11) If your Modified Version has been derived from a Modified Version
made by someone other than you, you are nevertheless required to
ensure that your Modified Version complies with the requirements of
this license.
(12) This license does not grant you the right to use any trademark,
service mark, tradename, or logo of the Copyright Holder.
(13) This license includes the non-exclusive, worldwide,
free-of-charge patent license to make, have made, use, offer to sell,
sell, import and otherwise transfer the Package with respect to any
patent claims licensable by the Copyright Holder that are necessarily
infringed by the Package. If you institute patent litigation
(including a cross-claim or counterclaim) against any party alleging
that the Package constitutes direct or contributory patent
infringement, then this Artistic License to you shall terminate on the
date that such litigation is filed.
(14) Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT
HOLDER AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT
PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT
HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE
OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
SHELL = /bin/sh
OSYS = ../vscm
NSYS = ../vscm
OOBJ = O
NOBJ = O
T = $(NOBJ)
#SCMC = time $(OSYS) -b $(OOBJ)/compiler.scb -- -p $T/primv.tab
SCMC = PRIMVTAB=$T/primv.tab time $(OSYS) -b $(OOBJ)/compiler.scb --
ALL = $T/aux.sca $T/hack.sca $T/sa.sca $T/varset.sca \
$T/cg.sca $T/lgi.sca $T/scc.sca $T/error.sca $T/macro.sca \
$T/set.sca $T/foldint.sca $T/opt.sca $T/tfgen.sca \
$T/driver.sca $T/names.sca $T/pmac.sca $T/optutil.sca $T/lvar.sca \
$T/fv.sca $T/clos.sca $T/ltrc.sca $T/eff.sca $T/primv.sca \
$T/envs.sca $T/soft.sca $T/inspect.sca \
$T/show.sca $T/be.sca $T/boot.sca $T/rts.sca $T/integ.sca
ALLSCA = $(ALL) $T/mk-repl.sca $T/mk-compiler.sca \
$T/mk-boot-loader.sca $T/boot-loader.sca
AUX = aux.scs aux.scm
HACK = ee.scs lgi.scs hack.scs hack.scm
SA = ee.scs lgi.scs error.scs sa.scs sa.scm
VARSET= ee.scs lgi.scs set.scs varset.scs varset.scm
CG = ee.scs lgi.scs varset.scs error.scs aux.scs \
lv.scs primv.scs hack.scs cg.scs cg.scm
LGI = ee.scs lgi.scs lgi.scm
SCC = scc.scs scc.scm
ERROR = names.scs show.scs error.scs error.scm
MACRO = ee.scs den.scs lgi.scs error.scs tfgen.scs \
aux.scs names.scs envs.scs macro.scs macro.scm
SET = set.scs set.scm
FOLDINT=ee.scs lgi.scs aux.scs error.scs \
foldint.scs foldint.scm
OPT = ee.scs lgi.scs error.scs varset.scs \
aux.scs foldint.scs lv.scs optutil.scs hack.scs \
fv.scs eff.scs opt.scs opt.scm
BE = sa.scs opt.scs ltrc.scs clos.scs lvar.scs \
cg.scs integ.scs be.scs be.scm
TFGEN = be.scs tfgen.scs tfgen.scm
DRIVER= macro.scs sa.scs opt.scs cg.scs error.scs \
lvar.scs hack.scs clos.scs ltrc.scs inspect.scs \
soft.scs boot.scs rts.scs integ.scs driver.scm
NAMES = names.scs names.scm
PMAC = names.scs error.scs pmac.scs pmac.scm
LVAR = ee.scs optutil.scs lv.scs varset.scs error.scs \
lvar.scs lvar.scm
OPTUTIL=ee.scs error.scs optutil.scs optutil.scm
CLOS = ee.scs lgi.scs aux.scs varset.scs fv.scs \
optutil.scs clos.scs clos.scm
FV = ee.scs varset.scs optutil.scs error.scs \
fv.scs fv.scm
LTRC = ee.scs lgi.scs varset.scs fv.scs aux.scs \
optutil.scs eff.scs scc.scs error.scs \
ltrc.scs ltrc.scm
EFF = ee.scs lgi.scs aux.scs optutil.scs error.scs \
eff.scs eff.scm
ENVS = ee.scs den.scs lgi.scs pmac.scs primv.scs \
aux.scs names.scs soft.scs envs.scs envs.scm
PRIMV = aux.scs primv.scs primv.scm
SOFT = soft.scs soft.scm
INSPECT=show.scs primv.scs inspect.scs inspect.scm
PRETTY= pretty.scs pretty.scm
SHOW = show.scs show.scm
BOOT = macro.scs be.scs soft.scs boot.scs boot.scm
INTEG = ee.scs lgi.scs optutil.scs soft.scs integ.scs integ.scm
RTS = rts.scs rts.scm
all: $(ALL) $T/boot-loader.sca
@echo All done.
boot: $T/compiler.scb $T/repl.scb $T/mk-boot-loader.scb
@echo Bootstrapped.
loader: $T/boot-loader.scb
@echo New bootloader ready.
run:
$(NSYS) -b $T/repl.scb
$T/compiler.scb: $(ALL) $T/mk-comp.sca $T/primv.tab ../format.time
-mv $T/compiler.scb $T/compiler.scb.old
PRIMVTAB=$T/primv.tab TARGET=$T/compiler.scb \
$(NSYS) -b $T/boot-loader.scb \
$(ALL) $T/mk-comp.sca
$T/repl.scb: $(ALL) $T/mk-repl.sca $T/primv.tab ../format.time
-mv $T/repl.scb $T/repl.scb.old
PRIMVTAB=$T/primv.tab TARGET=$T/repl.scb \
$(NSYS) -b $T/boot-loader.scb \
$(ALL) $T/mk-repl.sca
$T/primv.tab: ../mkpvtab
../mkpvtab >$T/primv.tab
../mkpvtab:
(cd ..; $(MAKE) mkpvtab)
$(ALLSCA): $T/primv.tab
$T/aux.sca: $(AUX)
$(SCMC) $(AUX) >$T/aux.sca
$T/hack.sca: $(HACK)
$(SCMC) $(HACK) >$T/hack.sca
$T/sa.sca: $(SA)
$(SCMC) $(SA) >$T/sa.sca
$T/varset.sca: $(VARSET)
$(SCMC) $(VARSET) >$T/varset.sca
$T/cg.sca: $(CG)
$(SCMC) $(CG) >$T/cg.sca
$T/lgi.sca: $(LGI)
$(SCMC) $(LGI) >$T/lgi.sca
$T/scc.sca: $(SCC)
$(SCMC) $(SCC) >$T/scc.sca
$T/error.sca: $(ERROR)
$(SCMC) $(ERROR) >$T/error.sca
$T/macro.sca: $(MACRO)
$(SCMC) $(MACRO) >$T/macro.sca
$T/set.sca: $(SET)
$(SCMC) $(SET) >$T/set.sca
$T/foldint.sca: $(FOLDINT)
$(SCMC) $(FOLDINT) >$T/foldint.sca
$T/opt.sca: $(OPT)
$(SCMC) $(OPT) >$T/opt.sca
$T/tfgen.sca: $(TFGEN)
$(SCMC) $(TFGEN) >$T/tfgen.sca
$T/driver.sca: $(DRIVER)
$(SCMC) $(DRIVER) >$T/driver.sca
$T/names.sca: $(NAMES)
$(SCMC) $(NAMES) >$T/names.sca
$T/pmac.sca: $(PMAC)
$(SCMC) $(PMAC) >$T/pmac.sca
$T/lvar.sca: $(LVAR)
$(SCMC) $(LVAR) >$T/lvar.sca
$T/optutil.sca: $(OPTUTIL)
$(SCMC) $(OPTUTIL) >$T/optutil.sca
$T/clos.sca: $(CLOS)
$(SCMC) $(CLOS) >$T/clos.sca
$T/fv.sca: $(FV)
$(SCMC) $(FV) >$T/fv.sca
$T/ltrc.sca: $(LTRC)
$(SCMC) $(LTRC) >$T/ltrc.sca
$T/eff.sca: $(EFF)
$(SCMC) $(EFF) >$T/eff.sca
$T/envs.sca: $(ENVS)
$(SCMC) $(ENVS) >$T/envs.sca
$T/primv.sca: $(PRIMV)
$(SCMC) $(PRIMV) >$T/primv.sca
$T/soft.sca: $(SOFT)
$(SCMC) $(SOFT) >$T/soft.sca
$T/inspect.sca: $(INSPECT)
$(SCMC) $(INSPECT) >$T/inspect.sca
$T/pretty.sca: $(PRETTY)
$(SCMC) $(PRETTY) >$T/pretty.sca
$T/show.sca: $(SHOW)
$(SCMC) $(SHOW) >$T/show.sca
$T/be.sca: $(BE)
$(SCMC) $(BE) >$T/be.sca
$T/boot.sca: $(BOOT)
$(SCMC) $(BOOT) >$T/boot.sca
$T/integ.sca: $(INTEG)
$(SCMC) $(INTEG) >$T/integ.sca
$T/rts.sca: $(RTS)
$(SCMC) $(RTS) >$T/rts.sca
$T/mk-repl.sca: mk-repl.scm
$(SCMC) mk-repl.scm >$T/mk-repl.sca
$T/mk-comp.sca: mk-comp.scm
$(SCMC) mk-comp.scm >$T/mk-comp.sca
$T/mk-boot-loader.sca: mk-boot-loader.scm
$(SCMC) mk-boot-loader.scm >$T/mk-boot-loader.sca
$T/mk-boot-loader.scb: $(ALL) $T/mk-boot-loader.sca
TARGET=$T/mk-boot-loader.scb $(NSYS) -b $T/boot-loader.scb \
$(ALL) $T/mk-boot-loader.sca
$T/boot-loader.sca: $(OOBJ)/mk-boot-loader.scb boot-loader.scm $T/primv.tab
$(OSYS) -b $(OOBJ)/mk-boot-loader.scb \
boot-loader.scm $T/boot-loader.sca $T/primv.tab
$T/boot-loader.scb: $T/boot-loader.sca ../format.time
$(NSYS) -b - -a $T/boot-loader.sca -d $T/boot-loader.scb
bootloader:
$(NSYS) -b - -a $T/boot-loader.sca -d $T/boot-loader.scb
clean:
@RM@ -f O/*.sc[ab] O/primv.tab
_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss