| #Makefile for Gforth |
#Makefile for Gforth |
| |
|
| #Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005,2006,2007,2008,2009,2010 Free Software Foundation, Inc. |
#Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005,2006,2007,2008,2009,2010,2011 Free Software Foundation, Inc. |
| |
|
| #This file is part of Gforth. |
#This file is part of Gforth. |
| |
|
| ENGINE_FAST = ./gforth-fast |
ENGINE_FAST = ./gforth-fast |
| FORTH_FAST = $(ENGINE_FAST) $(FORTH_ARGS) |
FORTH_FAST = $(ENGINE_FAST) $(FORTH_ARGS) |
| FORTHKFLAGS= --die-on-signal -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" -i $(kernel_fi) |
FORTHKFLAGS= --die-on-signal -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" -i $(kernel_fi) |
| FORTHK = $(ENGINE) $(FORTHKFLAGS) |
FORTHK = ./gforthker -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" |
| #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 |
| kernel/basics.fs \ |
kernel/basics.fs \ |
| kernel/int.fs \ |
kernel/int.fs \ |
| kernel/comp.fs \ |
kernel/comp.fs \ |
| |
kernel/recognizer.fs \ |
| kernel/io.fs \ |
kernel/io.fs \ |
| kernel/input.fs \ |
kernel/input.fs \ |
| kernel/license.fs \ |
kernel/license.fs \ |
| make-app.fs doc/makedoc.fs locate.fs more.fs onebench.fs \ |
make-app.fs doc/makedoc.fs locate.fs more.fs onebench.fs \ |
| other.fs prims2x.fs prims2x0.6.2.fs proxy.fs random.fs \ |
other.fs prims2x.fs prims2x0.6.2.fs proxy.fs random.fs \ |
| regexp.fs sokoban.fs string.fs table.fs tags.fs \ |
regexp.fs sokoban.fs string.fs table.fs tags.fs \ |
| tt.fs \ |
tt.fs quotations.fs \ |
| unbuffer.fs wordsets.fs xwords.fs \ |
unbuffer.fs wordsets.fs xwords.fs \ |
| test/tester.fs test/ttester.fs \ |
test/tester.fs test/ttester.fs \ |
| test/coretest.fs test/postpone.fs test/dbltest.fs \ |
test/coretest.fs test/postpone.fs test/dbltest.fs \ |
| engine/makefile.dos engine/makefile.os2 |
engine/makefile.dos engine/makefile.os2 |
| |
|
| SOURCES = $(ENGINE_SOURCES) compat Makefile.in Makedist.in \ |
SOURCES = $(ENGINE_SOURCES) compat Makefile.in Makedist.in \ |
| gforthmi.in vmgen.in preforth.in gfgen README.vmgen NEWS.vmgen \ |
gforthmi.in vmgen.in preforth.in gforthker.in gfgen README.vmgen NEWS.vmgen \ |
| autogen.sh configure.in configure config.sub config.guess \ |
autogen.sh configure.in configure config.sub config.guess \ |
| elisp-comp missing stamp-h.in envos.fs.in \ |
elisp-comp missing stamp-h.in envos.fs.in \ |
| iss.sh install-sh INSTALL INSTALL.BINDIST NEWS README ToDo BUGS \ |
iss.sh install-sh INSTALL INSTALL.BINDIST NEWS README ToDo BUGS \ |
| engine/costs-fast.i engine/super2-fast.i |
engine/costs-fast.i engine/super2-fast.i |
| FORTH_GEN_PRIMB = $(FORTH_GEN_ENGINE) kernel/aliases.fs kernel/prim.fs |
FORTH_GEN_PRIMB = $(FORTH_GEN_ENGINE) kernel/aliases.fs kernel/prim.fs |
| FORTH_GEN0 = prim.b $(FORTH_GEN_PRIMB) |
FORTH_GEN0 = prim.b $(FORTH_GEN_PRIMB) |
| FORTH_GEN = $(FORTH_GEN0) @KERNEL@ @NO_EC@ gforth.fi |
FORTH_GEN = $(FORTH_GEN0) @KERNEL@ @NO_CROSS@ gforth.fi |
| # this is used for antidependences, |
# this is used for antidependences, |
| FORTH_GEN1 = $(FORTH_GEN0) @kernel_fi@ build-ec |
FORTH_GEN1 = $(FORTH_GEN0) @kernel_fi@ build-ec |
| |
|
| .SUFFIXES: |
.SUFFIXES: |
| .SUFFIXES: .c .o |
.SUFFIXES: .c .o |
| |
|
| all: kernel/version.fs more @NO_EC@ check |
all: kernel/version.fs more @NO_CROSS@ check |
| |
|
| # use this dependency for phony targets just as mostlyclean,... |
# use this dependency for phony targets just as mostlyclean,... |
| FORCE: ; |
FORCE: ; |
| for i in $(FORTH_SRC) $(COMPAT) envos.fs prim; do \ |
for i in $(FORTH_SRC) $(COMPAT) envos.fs prim; do \ |
| $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(datadir)/gforth/$(VERSION)/$$i; \ |
$(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(datadir)/gforth/$(VERSION)/$$i; \ |
| done |
done |
| $(INSTALL_DATA) $(kernel_fi) $(DESTDIR)$(datadir)/gforth/$(VERSION) |
$(INSTALL_DATA) $(kernel_fi) $(DESTDIR)$(libdir)/gforth/$(VERSION) |
| @if test -d "$(DESTDIR)$(emacssitelispdir)"; then \ |
@if test -d "$(DESTDIR)$(emacssitelispdir)"; then \ |
| for i in gforth.el @gforth_elc@; do \ |
for i in gforth.el @gforth_elc@; do \ |
| $(INSTALL_DATA) $$i $(DESTDIR)$(emacssitelispdir); \ |
$(INSTALL_DATA) $$i $(DESTDIR)$(emacssitelispdir); \ |
| ./gforth-fast --diag -e bye |
./gforth-fast --diag -e bye |
| |
|
| checkone test: gforth.fi engine/prim-s.i |
checkone test: gforth.fi engine/prim-s.i |
| $(FORTH) test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs test/string.fs test/float.fs test/deferred.fs test/coreext.fs test/search.fs -e bye 2>&1 | tr -d '\015' | diff -c - $(srcdir)/test/coretest.out |
$(FORTH) test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs test/string.fs test/float.fs test/deferred.fs test/coreext.fs test/search.fs -e bye 2>/dev/null | tr -d '\015' | diff -c - $(srcdir)/test/coretest.out |
| $(FORTH) test/other.fs -e bye |
$(FORTH) test/other.fs -e bye |
| $(FORTHS) test/signals.fs -e bye |
$(FORTHS) test/signals.fs -e bye |
| $(FORTHS) test/coremore.fs test/gforth.fs test/macros.fs -e bye 2>&1 | tr -d '\015' | diff -c - $(srcdir)/test/gforth.out |
$(FORTHS) test/coremore.fs test/gforth.fs test/macros.fs -e bye 2>&1 | tr -d '\015' | diff -c - $(srcdir)/test/gforth.out |
| $(CP) engine/$@ $@ && \ |
$(CP) engine/$@ $@ && \ |
| $(MASSAGE_EXE) $@; \ |
$(MASSAGE_EXE) $@; \ |
| @GFORTH_EXE@; \ |
@GFORTH_EXE@; \ |
| @NO_EC@ $(MAKE) checkone check-nofast ENGINE=./engine/$@; \ |
@NO_CROSS@ $(MAKE) checkone check-nofast ENGINE=./engine/$@; \ |
| fi |
fi |
| |
|
| optgforth: |
optgforth: |
| $(CP) engine/$@ $@ && \ |
$(CP) engine/$@ $@ && \ |
| $(MASSAGE_EXE) $@; \ |
$(MASSAGE_EXE) $@; \ |
| @GFORTHFAST_EXE@; \ |
@GFORTHFAST_EXE@; \ |
| @NO_EC@ $(MAKE) checkone ENGINE=./engine/$@; \ |
@NO_CROSS@ $(MAKE) checkone ENGINE=./engine/$@; \ |
| fi |
fi |
| |
|
| optgforth-fast: |
optgforth-fast: |