version 1.213, 2001/12/29 20:40:48
|
version 1.218, 2002/03/13 16:59:12
|
Line 70 FORTH = $(ENGINE) $(FORTH_ARGS)
|
Line 70 FORTH = $(ENGINE) $(FORTH_ARGS)
|
# the (existing) forth system to use for cross compiling and primitives tables |
# the (existing) forth system to use for cross compiling and primitives tables |
# per default we use the one in this directory for a rebuild. It is also |
# per default we use the one in this directory for a rebuild. It is also |
# possible to override this variable at the command line for an initial build (jaw) |
# possible to override this variable at the command line for an initial build (jaw) |
BUILDFORTH = $(ENGINE) --die-on-signal -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" -i $(kernel_fi) |
BUILDFORTH = $(ENGINE) --die-on-signal -m 4M -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" -i $(kernel_fi) |
# the forth system plus flags we use to build |
# the forth system plus flags we use to build |
FORTHB = $(BUILDFORTH) -e 'fpath= .|~+|$(srcdir)' |
FORTHB = $(BUILDFORTH) -e 'fpath= .|~+|$(srcdir)' |
# the Forth system for running prims2x.fs |
# the Forth system for running prims2x.fs |
Line 352 RCS_FILES = ToDo model high-level
|
Line 352 RCS_FILES = ToDo model high-level
|
GEN = gforth$(EXE) gforth-ditc$(EXE) gforth-fast$(EXE) gforth-prof$(EXE) kernel/version.fs |
GEN = gforth$(EXE) gforth-ditc$(EXE) gforth-fast$(EXE) gforth-prof$(EXE) kernel/version.fs |
|
|
# things that need a working forth system to be generated |
# things that need a working forth system to be generated |
FORTH_GEN0 = prim.b engine/prim.i engine/prim_lab.i engine/prim_superend.i engine/peephole.i engine/profile.i kernel/aliases.fs kernel/prim.fs |
FORTH_GEN_ENGINE=engine/prim.i engine/prim_lab.i engine/prim_names.i engine/prim_superend.i engine/peephole.i engine/profile.i |
|
FORTH_GEN0 = prim.b $(FORTH_GEN_ENGINE) kernel/aliases.fs kernel/prim.fs |
FORTH_GEN = $(FORTH_GEN0) @KERNEL@ gforth.fi |
FORTH_GEN = $(FORTH_GEN0) @KERNEL@ gforth.fi |
# this is used for antidependences, |
# this is used for antidependences, |
FORTH_GEN1 = $(FORTH_GEN0) @kernel_fi@ |
FORTH_GEN1 = $(FORTH_GEN0) @kernel_fi@ |
Line 389 kernel/version.fs: version
|
Line 390 kernel/version.fs: version
|
$(MAKE) gforth$(EXE) |
$(MAKE) gforth$(EXE) |
echo ": version-string s\" $(VERSION)\" ;" > kernel/version.fs |
echo ": version-string s\" $(VERSION)\" ;" > kernel/version.fs |
|
|
more: engine $(FORTH_GEN) $(GEN) |
more: engines $(FORTH_GEN) $(GEN) |
|
|
#from the gcc Makefile: |
#from the gcc Makefile: |
#"Deletion of files made during compilation. |
#"Deletion of files made during compilation. |
Line 606 kernl64l.fi: $(KERNLS)
|
Line 607 kernl64l.fi: $(KERNLS)
|
# -$(CP) $@ $@~ |
# -$(CP) $@ $@~ |
# -$(CP) $< $@ |
# -$(CP) $< $@ |
|
|
gforth.fi: $(kernel_fi) gforthmi gforth$(EXE) gforth-ditc$(EXE) $(GFORTH_FI_SRC) |
gforth.fi: $(kernel_fi) gforthmi gforth$(EXE) gforth-ditc$(EXE) $(GFORTH_FI_SRC) comp-i.fs |
GFORTHD="./gforth-ditc -p .$(PATHSEP)$(srcdir)" GFORTH="./gforth-ditc --die-on-signal -p .$(PATHSEP)$(srcdir) -i $(kernel_fi) $(STARTUP)" ./gforthmi gforth.fi $(FORTHSIZES) $(FORTHKFLAGS) $(STARTUP) |
GFORTHD="./gforth-ditc -p .$(PATHSEP)$(srcdir)" GFORTH="./gforth-ditc --die-on-signal -p .$(PATHSEP)$(srcdir) -i $(kernel_fi) $(STARTUP)" ./gforthmi gforth.fi $(FORTHSIZES) $(FORTHKFLAGS) $(STARTUP) |
|
|
# ------------- Make c-engine |
# ------------- Make c-engine |
Line 624 engine/prim_lab.i: prim.b prims2x.fs
|
Line 625 engine/prim_lab.i: prim.b prims2x.fs
|
$(CP) $@- $@ |
$(CP) $@- $@ |
$(RM) $@- |
$(RM) $@- |
|
|
|
engine/prim_names.i: prim.b prims2x.fs |
|
$(FORTHP) prims2x.fs -e "c-flag on s\" prim.b\" ' output-forthname dup process-file bye" >$@- |
|
$(CP) $@- $@ |
|
$(RM) $@- |
|
|
engine/prim_superend.i: prim.b prims2x.fs |
engine/prim_superend.i: prim.b prims2x.fs |
$(FORTHP) prims2x.fs -e "c-flag on s\" prim.b\" ' output-superend dup process-file bye" >$@- |
$(FORTHP) prims2x.fs -e "c-flag on s\" prim.b\" ' output-superend dup process-file bye" >$@- |
$(CP) $@- $@ |
$(CP) $@- $@ |
Line 635 engine/peephole.i: prim.b prims2x.fs
|
Line 641 engine/peephole.i: prim.b prims2x.fs
|
$(RM) $@- |
$(RM) $@- |
|
|
engine/profile.i: prim.b prims2x.fs |
engine/profile.i: prim.b prims2x.fs |
$(FORTHP) prims2x.fs -e "c-flag on s\" prim.b\" ' output-profile ' output-profile process-file bye" >$@- |
$(FORTHP) prims2x.fs -e "c-flag on s\" prim.b\" ' output-profile ' output-profile-combined process-file bye" >$@- |
$(CP) $@- $@ |
$(CP) $@- $@ |
$(RM) $@- |
$(RM) $@- |
|
|
Line 672 gforth-ditc$(EXE): engines
|
Line 678 gforth-ditc$(EXE): engines
|
gforth-prof$(EXE): engines |
gforth-prof$(EXE): engines |
$(CP) engine/$@ $@ |
$(CP) engine/$@ $@ |
|
|
engines: FORCE engine/Makefile engine/prim.i engine/prim_lab.i engine/peephole.i engine/profile.i |
gforths: gforth$(EXE) gforth-fast$(EXE) gforth-ditc$(EXE) gforth-prof$(EXE) |
|
|
|
engines: FORCE $(FORTH_GEN_ENGINE) engine/Makefile |
cd engine && $(MAKE) gforth$(EXE) gforth-fast$(EXE) gforth-ditc$(EXE) gforth-prof$(EXE) |
cd engine && $(MAKE) gforth$(EXE) gforth-fast$(EXE) gforth-ditc$(EXE) gforth-prof$(EXE) |
|
|
# ------------- additional C primitives |
# ------------- additional C primitives |