version 1.285, 2003/10/30 10:31:58
|
version 1.289, 2003/11/08 20:29:02
|
Line 350 SOURCES = $(CVSDIRS) compat Makefile.in
|
Line 350 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 372 SOURCES = $(CVSDIRS) compat Makefile.in
|
Line 373 SOURCES = $(CVSDIRS) compat Makefile.in
|
|
|
RCS_FILES = ToDo model high-level |
RCS_FILES = ToDo model high-level |
|
|
ENGINES = gforth$(EXE) gforth-ditc$(EXE) gforth-fast$(EXE) gforth-itc$(EXE) $(PROFEXES) #gforth-native$(EXE) |
ENGINES = gforth$(EXE) gforth-ditc$(EXE) gforth-itc$(EXE) $(PROFEXES) |
|
|
GEN = $(ENGINES) kernel/version.fs |
ENGINES_FAST = gforth-fast$(EXE) gforth-native$(EXE) |
|
|
|
GEN = $(ENGINES) $(ENGINES_FAST) kernel/version.fs |
|
|
# things that need a working forth system to be generated |
# things that need a working forth system to be generated |
FORTH_GEN_ENGINE=engine/prim.i engine/prim_lab.i engine/prim_names.i \ |
FORTH_GEN_ENGINE=engine/prim.i engine/prim_lab.i engine/prim_names.i \ |
Line 602 checkone test: gforth$(EXE) gforth.fi
|
Line 605 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 701 gforth.fi: $(kernel_fi) gforthmi gforth$
|
Line 711 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)" gfgen -fast |
Line 731 gforth$(EXE): engines
|
Line 742 gforth$(EXE): engines
|
$(CP) engine/$@ $@ |
$(CP) engine/$@ $@ |
@GFORTH_EXE@ |
@GFORTH_EXE@ |
|
|
gforth-fast$(EXE): engines |
gforth-fast$(EXE): engines-fast |
$(CP) engine/$@ $@ |
$(CP) engine/$@ $@ |
@GFORTHFAST_EXE@ |
@GFORTHFAST_EXE@ |
|
|
gforth-native$(EXE): engines |
gforth-native$(EXE): engines-fast |
$(CP) engine/$@ $@ |
$(CP) engine/$@ $@ |
#@GFORTHX_EXE@ |
#@GFORTHX_EXE@ |
|
|
Line 750 gforth-ditc$(EXE): engines
|
Line 761 gforth-ditc$(EXE): engines
|
gforth-prof$(EXE): engines |
gforth-prof$(EXE): engines |
$(CP) engine/$@ $@ |
$(CP) engine/$@ $@ |
|
|
gforths: $(ENGINES) |
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_ENGINE_FAST) engine/Makefile |
|
cd engine && $(MAKE) $(ENGINES_FAST) |
|
|
# ------------- additional C primitives |
# ------------- additional C primitives |
|
|
%.c: %.pri prim2cl.fs |
%.c: %.pri prim2cl.fs |