version 1.217, 2002/03/01 13:25:25
|
version 1.225, 2002/08/20 16:59:01
|
Line 64 GCC = @CC@
|
Line 64 GCC = @CC@
|
CC = $(GCC) |
CC = $(GCC) |
FORTHPATH = .$(PATHSEP)$(libdir)/gforth/site-forth$(PATHSEP)$(siteforthdir)$(PATHSEP)$(libdir)/gforth/$(VERSION)$(PATHSEP)$(datadir)/gforth/$(VERSION) |
FORTHPATH = .$(PATHSEP)$(libdir)/gforth/site-forth$(PATHSEP)$(siteforthdir)$(PATHSEP)$(libdir)/gforth/$(VERSION)$(PATHSEP)$(datadir)/gforth/$(VERSION) |
FORTHSIZES = @FORTHSIZES@ |
FORTHSIZES = @FORTHSIZES@ |
FORTH_ARGS = --die-on-signal -p $(FORTHPATH)$(PATHSEP)$(srcdir) |
FORTHS_ARGS = -p $(FORTHPATH)$(PATHSEP)$(srcdir) |
|
FORTH_ARGS = --die-on-signal $(FORTHS_ARGS) |
ENGINE = ./gforth |
ENGINE = ./gforth |
FORTH = $(ENGINE) $(FORTH_ARGS) |
FORTH = $(ENGINE) $(FORTH_ARGS) |
|
FORTHS = $(ENGINE) $(FORTHS_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) |
Line 206 GFORTH_FI_SRC = \
|
Line 208 GFORTH_FI_SRC = \
|
intcomp.fs \ |
intcomp.fs \ |
locals.fs \ |
locals.fs \ |
look.fs \ |
look.fs \ |
|
quotes.fs \ |
search.fs \ |
search.fs \ |
see.fs \ |
see.fs \ |
see-ext.fs \ |
see-ext.fs \ |
Line 235 FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC)
|
Line 238 FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC)
|
tt.fs sokoban.fs \ |
tt.fs sokoban.fs \ |
unbuffer.fs wordsets.fs \ |
unbuffer.fs wordsets.fs \ |
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/other.fs test/checkans.fs \ |
test/string.fs test/other.fs test/signals.fs test/checkans.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 254 COMPAT = compat/README \
|
Line 257 COMPAT = compat/README \
|
|
|
GFORTH_TEXI = doc/gforth.texi doc/version.texi |
GFORTH_TEXI = doc/gforth.texi doc/version.texi |
|
|
|
VMGEN_TEXI = doc/vmgen.texi doc/version.texi doc/fdl.texi |
|
|
ALLSUBDIRS = engine |
ALLSUBDIRS = engine |
|
|
ARCHS = \ |
ARCHS = \ |
Line 326 SOURCES = $(CVSDIRS) compat Makefile.in
|
Line 331 SOURCES = $(CVSDIRS) compat Makefile.in
|
configure.in configure config.sub config.guess elisp-comp missing \ |
configure.in configure config.sub config.guess elisp-comp missing \ |
acconfig.h acinclude.m4 engine/config.h.in stamp-h.in \ |
acconfig.h acinclude.m4 engine/config.h.in stamp-h.in \ |
iss.sh install-sh INSTALL INSTALL.BINDIST NEWS README ToDo BUGS model \ |
iss.sh install-sh INSTALL INSTALL.BINDIST NEWS README ToDo BUGS model \ |
COPYING AUTHORS ChangeLog Benchres aclocal.m4 \ |
COPYING COPYING.DOC AUTHORS ChangeLog Benchres aclocal.m4 \ |
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 \ |
gforth.el \ |
gforth.el \ |
prim peeprules.vmg engine/engine.c engine/main.c \ |
prim peeprules.vmg engine/engine.c engine/main.c \ |
engine/io.c engine/memcmpc.c engine/signals.c $(ARCHS) \ |
engine/io.c engine/memcmpc.c engine/signals.c $(ARCHS) \ |
Line 349 SOURCES = $(CVSDIRS) compat Makefile.in
|
Line 355 SOURCES = $(CVSDIRS) compat Makefile.in
|
|
|
RCS_FILES = ToDo model high-level |
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-itc$(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_GEN_ENGINE=engine/prim.i engine/prim_lab.i engine/prim_names.i engine/prim_superend.i engine/peephole.i engine/profile.i |
FORTH_GEN_ENGINE=engine/prim.i engine/prim_lab.i engine/prim_names.i engine/prim_superend.i engine/peephole.i engine/profile.i |
Line 365 KERNLS = kernl16b.fi- kernl16l.fi- \
|
Line 371 KERNLS = kernl16b.fi- kernl16l.fi- \
|
kernl32b.fi- kernl32l.fi- \ |
kernl32b.fi- kernl32l.fi- \ |
kernl64b.fi- kernl64l.fi- |
kernl64b.fi- kernl64l.fi- |
|
|
GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) doc/gforth.texi doc/gforth.dvi doc/gforth.ps Makefile Makedist engine/Makefile configure |
GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) \ |
|
doc/gforth.texi doc/gforth.dvi doc/gforth.ps \ |
|
doc/vmgen.dvi doc/vmgen.ps \ |
|
Makefile Makedist engine/Makefile configure |
|
|
#standards.info recommends this: |
#standards.info recommends this: |
.SUFFIXES: |
.SUFFIXES: |
Line 390 kernel/version.fs: version
|
Line 399 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 423 docclean: FORCE
|
Line 432 docclean: FORCE
|
|
|
clean: mostlyclean |
clean: mostlyclean |
-$(RM) -rf $(GEN) engine/gforth$(EXE) \ |
-$(RM) -rf $(GEN) engine/gforth$(EXE) \ |
engine/gforth-fast$(EXE) engine/gforth-ditc$(EXE) engine/gforth-prof$(EXE) \ |
engine/gforth-fast$(EXE) engine/gforth-itc$(EXE) \ |
|
engine/gforth-ditc$(EXE) engine/gforth-prof$(EXE) \ |
*.o engine/*.o arch/*/*.o version |
*.o engine/*.o arch/*/*.o version |
|
|
distclean: clean |
distclean: clean |
Line 529 uninstall: FORCE
|
Line 539 uninstall: FORCE
|
check test: gforth$(EXE) gforth.fi |
check test: gforth$(EXE) gforth.fi |
$(FORTH) test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs test/string.fs -e bye | diff -c - $(srcdir)/test/coretest.out |
$(FORTH) test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs test/string.fs -e bye | diff -c - $(srcdir)/test/coretest.out |
$(FORTH) test/other.fs -e bye |
$(FORTH) test/other.fs -e bye |
|
$(FORTHS) test/signals.fs -e bye |
$(FORTH) code.fs test/checkans.fs -e bye | diff -c - $(srcdir)/test/checkans.out |
$(FORTH) code.fs test/checkans.fs -e bye | diff -c - $(srcdir)/test/checkans.out |
$(FORTH) prims2x.fs -e \ |
$(FORTH) prims2x.fs -e \ |
"c-flag on 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"| \ |
diff -c - $(srcdir)/engine/prim.i |
diff -c - $(srcdir)/engine/prim.i |
|
|
bench: gforth-fast$(EXE) gforth.fi |
bench: gforth-fast$(EXE) gforth.fi |
Line 616 prim.b: prim peeprules.vmg
|
Line 627 prim.b: prim peeprules.vmg
|
m4 -s $(srcdir)/prim >$@ |
m4 -s $(srcdir)/prim >$@ |
|
|
engine/prim.i: prim.b prims2x.fs |
engine/prim.i: prim.b prims2x.fs |
$(FORTHP) prims2x.fs -e "c-flag on s\" prim.b\" ' output-c ' output-c-combined process-file bye" >$@- |
$(FORTHP) prims2x.fs -e "c-flag on s\" prim.i\" out-filename 2! s\" prim.b\" ' output-c ' output-c-combined process-file bye" >$@- |
$(CP) $@- $@ |
$(CP) $@- $@ |
$(RM) $@- |
$(RM) $@- |
|
|
Line 671 gforth-fast$(EXE): engines
|
Line 682 gforth-fast$(EXE): engines
|
$(CP) engine/$@ $@ |
$(CP) engine/$@ $@ |
@GFORTHFAST_EXE@ |
@GFORTHFAST_EXE@ |
|
|
|
gforth-itc$(EXE): engines |
|
$(CP) engine/$@ $@ |
|
@GFORTHITC_EXE@ |
|
|
gforth-ditc$(EXE): engines |
gforth-ditc$(EXE): engines |
$(CP) engine/$@ $@ |
$(CP) engine/$@ $@ |
@GFORTHDITC_EXE@ |
@GFORTHDITC_EXE@ |
Line 678 gforth-ditc$(EXE): engines
|
Line 693 gforth-ditc$(EXE): engines
|
gforth-prof$(EXE): engines |
gforth-prof$(EXE): engines |
$(CP) engine/$@ $@ |
$(CP) engine/$@ $@ |
|
|
|
gforths: gforth$(EXE) gforth-fast$(EXE) gforth-itc$(EXE) gforth-ditc$(EXE) gforth-prof$(EXE) |
|
|
engines: FORCE $(FORTH_GEN_ENGINE) engine/Makefile |
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-itc$(EXE) gforth-ditc$(EXE) gforth-prof$(EXE) |
|
|
# ------------- additional C primitives |
# ------------- additional C primitives |
|
|
Line 749 checkdoc: doc/gforth.ds prim.b ds2texi.f
|
Line 766 checkdoc: doc/gforth.ds prim.b ds2texi.f
|
$(FORTH) ds2texi.fs prims2x.fs -e "s\" $(srcdir)/prim.b\" ' register-doc ' noop process-file" doc/crossdoc.fd doc/doc.fd answords.fs -e bye |
$(FORTH) ds2texi.fs prims2x.fs -e "s\" $(srcdir)/prim.b\" ' register-doc ' noop process-file" doc/crossdoc.fd doc/doc.fd answords.fs -e bye |
-grep unknown doc/gforth.texi |
-grep unknown doc/gforth.texi |
|
|
dvi: doc/gforth.dvi |
dvi: doc/gforth.dvi doc/vmgen.dvi |
|
|
doc/gforth.dvi doc/gforth.fns: $(GFORTH_TEXI) |
doc/gforth.dvi doc/gforth.fns: $(GFORTH_TEXI) |
cd doc; $(TEXI2DVI) gforth.texi |
cd doc; $(TEXI2DVI) gforth.texi |
|
|
|
doc/vmgen.dvi: $(VMGEN_TEXI) |
|
cd doc; $(TEXI2DVI) vmgen.texi |
|
|
doc/gforth.ps: doc/gforth.dvi |
doc/gforth.ps: doc/gforth.dvi |
$(DVI2PS) doc/gforth.dvi -o $@ |
$(DVI2PS) doc/gforth.dvi -o $@ |
|
|
info: doc/gforth.info |
info: doc/gforth.info doc/vmgen.info |
|
|
doc/gforth.info doc/gforth.info-*: $(GFORTH_TEXI) |
doc/gforth.info: $(GFORTH_TEXI) |
-cd doc; $(MAKEINFO) gforth.texi |
cd doc; $(MAKEINFO) gforth.texi |
|
|
### need makeinfo 4.0 to generate html. Otherwise, use texi2html.. |
doc/vmgen.info: $(VMGEN_TEXI) |
html: $(GFORTH_TEXI) |
cd doc; $(MAKEINFO) vmgen.texi |
-$(RMTREE) html |
|
-mkdir html |
|
cd html; $(MAKEINFO) --html -I ../doc ../doc/gforth.texi |
### need makeinfo 4.2 to generate html with these rules |
### cd html; $(TEXI2HTML) -menu -split_node ../doc/gforth.texi |
doc/gforth: $(GFORTH_TEXI) |
|
cd doc; $(MAKEINFO) --html gforth.texi |
|
|
|
doc/vmgen: $(VMGEN_TEXI) |
|
cd doc; $(MAKEINFO) --html vmgen.texi |
|
|
doc/gforth.txt: $(GFORTH_TEXI) |
doc/gforth.txt: $(GFORTH_TEXI) |
-cd doc; $(MAKEINFO) --no-headers --no-split gforth.texi >gforth.txt |
-cd doc; $(MAKEINFO) --no-headers --no-split gforth.texi >gforth.txt |
|
|
|
doc/vmgen.txt: $(VMGEN_TEXI) |
|
-cd doc; $(MAKEINFO) --no-headers --no-split vmgen.texi >vmgen.txt |
|
|
doc: info html doc/gforth.ps doc/gforth.txt TAGS |
doc: info html doc/gforth.ps doc/gforth.txt TAGS |
|
|
# For an explanation of the following Makefile rules, see node |
# For an explanation of the following Makefile rules, see node |