version 1.286, 2003/11/02 18:18:35
|
version 1.296, 2004/05/14 17:09:22
|
Line 76 FORTHS = $(ENGINE) $(FORTHS_ARGS)
|
Line 76 FORTHS = $(ENGINE) $(FORTHS_ARGS)
|
# 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 -m 4M -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 3 exboot.fs -e 'fpath= .|~+|$(srcdir)' |
FORTHB = $(BUILDFORTH) exboot.fs -e 'fpath= .|~+|$(srcdir)' |
# the Forth system for running prims2x.fs |
# the Forth system for running prims2x.fs |
FORTHP = $(FORTH) |
FORTHP = $(FORTH) |
ENGINE_FAST = $(ENGINE)-fast |
ENGINE_FAST = $(ENGINE)-fast |
Line 86 FORTHK = $(ENGINE) $(FORTHKFLAGS)
|
Line 86 FORTHK = $(ENGINE) $(FORTHKFLAGS)
|
#FORTHP = $(ENGINE) --die-on-signal -i ./$(kernel_fi) |
#FORTHP = $(ENGINE) --die-on-signal -i ./$(kernel_fi) |
#the "-2 image-included-files +!" undoes the change to image-included-files |
#the "-2 image-included-files +!" undoes the change to image-included-files |
# in exboot.fs |
# in exboot.fs |
STARTUP = -e 3 exboot.fs startup.fs @asm_fs@ @disasm_fs@ |
STARTUP = exboot.fs startup.fs @asm_fs@ @disasm_fs@ |
STRIP = strip |
STRIP = strip |
TEXI2DVI = texi2dvi -e |
TEXI2DVI = texi2dvi -e |
TEXI2PDF = texi2dvi --pdf -e |
TEXI2PDF = texi2dvi --pdf -e |
Line 237 GFORTH_FI_SRC = \
|
Line 237 GFORTH_FI_SRC = \
|
FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC) $(EC_SRC) \ |
FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC) $(EC_SRC) \ |
ans-report.fs ansi.fs answords.fs \ |
ans-report.fs ansi.fs answords.fs \ |
colorize.fs comp-i.fs \ |
colorize.fs comp-i.fs \ |
dosekey.fs doskey.fs ds2texi.fs \ |
depth-changes.fs dosekey.fs doskey.fs ds2texi.fs \ |
envos.fs envos.dos envos.os2 etags.fs filedump.fs fi2c.fs \ |
envos.fs envos.dos envos.os2 etags.fs filedump.fs fi2c.fs \ |
glosgen.fs gray.fs httpd.fs proxy.fs \ |
fsl-utils.4th glosgen.fs gray.fs httpd.fs proxy.fs \ |
make-app.fs doc/makedoc.fs \ |
make-app.fs doc/makedoc.fs \ |
locate.fs more.fs other.fs prims2x.fs random.fs \ |
locate.fs more.fs other.fs prims2x.fs random.fs \ |
sokoban.fs string.fs table.fs tags.fs \ |
sokoban.fs string.fs table.fs tags.fs \ |
Line 248 FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC)
|
Line 248 FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC)
|
test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs \ |
test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs \ |
test/string.fs test/float.fs test/gforth.fs \ |
test/string.fs test/float.fs test/gforth.fs \ |
test/other.fs test/signals.fs test/checkans.fs \ |
test/other.fs test/signals.fs test/checkans.fs \ |
|
test/primtest.fs \ |
bubble.fs siev.fs matrix.fs fib.fs \ |
bubble.fs siev.fs matrix.fs fib.fs \ |
oof.fs oofsampl.fs objects.fs objexamp.fs mini-oof.fs moof-exm.fs \ |
oof.fs oofsampl.fs objects.fs objexamp.fs mini-oof.fs moof-exm.fs \ |
moofglos.fs fixpath.fs \ |
moofglos.fs fixpath.fs \ |
Line 295 ARCHS = \
|
Line 296 ARCHS = \
|
arch/misc/README \ |
arch/misc/README \ |
arch/misc/asm.fs \ |
arch/misc/asm.fs \ |
arch/misc/mach.fs \ |
arch/misc/mach.fs \ |
|
arch/misc/optcmove.fs \ |
arch/misc/prim.fs \ |
arch/misc/prim.fs \ |
arch/misc/sim.fs \ |
arch/misc/sim.fs \ |
arch/misc/sokoban.fs \ |
arch/misc/sokoban.fs \ |
Line 350 SOURCES = $(CVSDIRS) compat Makefile.in
|
Line 352 SOURCES = $(CVSDIRS) compat Makefile.in
|
doc/gforth.ds doc/texinfo.tex doc/gforth.1 doc/version.texi.in \ |
doc/gforth.ds doc/texinfo.tex doc/gforth.1 doc/version.texi.in \ |
doc/vmgen.texi doc/fdl.texi doc/gpl.texi \ |
doc/vmgen.texi doc/fdl.texi doc/gpl.texi \ |
gforth.el \ |
gforth.el \ |
prim peeprules.vmg engine/engine.c engine/main.c \ |
prim cache0.vmg cache1.vmg peeprules.vmg \ |
|
engine/engine.c engine/main.c \ |
engine/io.c engine/support.c engine/signals.c \ |
engine/io.c engine/support.c engine/signals.c \ |
$(ARCHS) \ |
$(ARCHS) \ |
engine/profile.c \ |
engine/profile.c \ |
Line 374 RCS_FILES = ToDo model high-level
|
Line 377 RCS_FILES = ToDo model high-level
|
|
|
ENGINES = gforth$(EXE) gforth-ditc$(EXE) gforth-itc$(EXE) $(PROFEXES) |
ENGINES = gforth$(EXE) gforth-ditc$(EXE) gforth-itc$(EXE) $(PROFEXES) |
|
|
ENGINES_FAST = gforth-fast$(EXE) #gforth-native$(EXE) |
ENGINES_FAST = gforth-fast$(EXE) gforth-native$(EXE) |
|
|
GEN = $(ENGINES) $(ENGINES_FAST) kernel/version.fs |
GEN = $(ENGINES) $(ENGINES_FAST) kernel/version.fs |
|
|
Line 604 checkone test: gforth$(EXE) gforth.fi
|
Line 607 checkone test: gforth$(EXE) gforth.fi
|
"c-flag on s\" prim.i\" out-filename 2! s\" $(srcdir)/prim.b\" ' output-c ' output-c-combined process-file bye"| \ |
"c-flag on s\" prim.i\" out-filename 2! s\" $(srcdir)/prim.b\" ' output-c ' output-c-combined process-file bye"| \ |
tr -d '\015' | diff -c - $(srcdir)/engine/prim.i |
tr -d '\015' | diff -c - $(srcdir)/engine/prim.i |
|
|
|
test/primtest.fi: test/primtest.fs mach32l.fs cross.fs |
|
$(FORTHB) -e 's" mach32l.fs"' $(srcdir)/test/primtest.fs -e "save-cross $@ $(bindir)/gforth-$(VERSION) bye" |
|
|
|
primtest: gforth gforth-native test/primtest.fi FORCE |
|
(echo rs|ENVVAR=bla ./gforth -i test/primtest.fi) && (echo rs|ENVVAR=bla ./gforth-native -i test/primtest.fi); echo $$? |
|
|
bench: gforth-fast$(EXE) gforth.fi |
bench: gforth-fast$(EXE) gforth.fi |
@echo 'Each benchmark takes about 30s on a 486-66 (gcc-2.6.3 -DFORCE_REG)' |
@echo 'Each benchmark takes about 30s on a 486-66 (gcc-2.6.3 -DFORCE_REG)' |
time $(FORTH_FAST) siev.fs -e "main bye" |
time $(FORTH_FAST) siev.fs -e "main bye" |
Line 703 gforth.fi: $(kernel_fi) gforthmi gforth$
|
Line 712 gforth.fi: $(kernel_fi) gforthmi gforth$
|
|
|
# ------------- Make c-engine |
# ------------- Make c-engine |
|
|
prim.b: prim peeprules.vmg |
prim.b: prim cache0.vmg |
m4 -s $(srcdir)/prim >$@ |
m4 -s $(srcdir)/prim >$@ |
sleep 1 #should make hpux-workaround unnecessary |
sleep 1 #should make hpux-workaround unnecessary |
|
|
prim-fast.b: prim.b |
prim-fast.b: prim cache1.vmg peeprules.vmg |
cp prim.b prim-fast.b |
m4 -DM4_ENGINE_FAST -s $(srcdir)/prim >$@ |
|
sleep 1 #should make hpux-workaround unnecessary |
|
|
$(FORTH_GEN_ENGINE_FAST): prim-fast.b prims2x.fs |
$(FORTH_GEN_ENGINE_FAST): prim-fast.b prims2x.fs |
GFORTH="$(FORTHP)" gfgen -fast |
GFORTH="$(FORTHP)" $(srcdir)/gfgen -fast |
|
|
$(FORTH_GEN_ENGINE): prim.b prims2x.fs |
$(FORTH_GEN_ENGINE): prim.b prims2x.fs |
GFORTH="$(FORTHP)" gfgen |
GFORTH="$(FORTHP)" $(srcdir)/gfgen |
|
|
kernel/aliases.fs: prim.b prims2x.fs kernel/aliases0.fs |
kernel/aliases.fs: prim.b prims2x.fs kernel/aliases0.fs |
$(CP) kernel/aliases0.fs $@- |
$(CP) kernel/aliases0.fs $@- |
Line 757 gforths: $(ENGINES) $(ENGINES_FAST)
|
Line 767 gforths: $(ENGINES) $(ENGINES_FAST)
|
engines: FORCE $(FORTH_GEN_ENGINE) engine/Makefile |
engines: FORCE $(FORTH_GEN_ENGINE) engine/Makefile |
cd engine && $(MAKE) $(ENGINES) |
cd engine && $(MAKE) $(ENGINES) |
|
|
engines-fast: FORCE $(FORTH_GEN_ENGINES_FAST) engine/Makefile |
engines-fast: FORCE $(FORTH_GEN_ENGINE_FAST) engine/Makefile |
cd engine && $(MAKE) $(ENGINES_FAST) |
cd engine && $(MAKE) $(ENGINES_FAST) |
|
|
# ------------- additional C primitives |
# ------------- additional C primitives |