version 1.417, 2008/08/09 13:24:25
|
version 1.492, 2012/12/31 15:25:17
|
Line 1
|
Line 1
|
#Makefile for Gforth |
#Makefile for Gforth |
|
|
#Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005,2006,2007,2008 Free Software Foundation, Inc. |
#Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012 Free Software Foundation, Inc. |
|
|
#This file is part of Gforth. |
#This file is part of Gforth. |
|
|
Line 45 EXE=@EXEEXT@
|
Line 45 EXE=@EXEEXT@
|
|
|
PATHSEP = @PATHSEP@ |
PATHSEP = @PATHSEP@ |
|
|
osclass = @OSCLASS@ |
|
|
|
EC = @EC@ |
EC = @EC@ |
|
ARCH= @ARCH@ |
|
EXT = $(EC)$(ARCH)$(EXE) |
|
LA = $(EC)$(ARCH).la |
|
|
|
# ------------ Install Directories |
|
|
|
package = |
|
VPATH = @srcdir@ |
|
prefix = @prefix@ |
|
exec_prefix = @exec_prefix@ |
|
srcdir = @srcdir@ |
|
bindir = $(package)@bindir@ |
|
#read-only architecture-independent files |
|
datarootdir = @datarootdir@ |
|
datadir = $(package)@datadir@ |
|
#read-only architecture-dependent non-ascii files |
|
libdir = $(package)@libdir@ |
|
libexecdir = $(package)@libexecdir@ |
|
libccdir = $(subst $(DESTDIR),,$(libexecdir)/gforth$(ARCH)/$(VERSION)/libcc-named/) |
|
includedir = $(package)@includedir@ |
|
infodir = $(package)@infodir@ |
|
htmldir = $(package)@htmldir@ |
|
mandir = $(package)@mandir@ |
|
man1dir= $(mandir)/man1 |
|
man1ext= .1 |
|
#older emacses have their site-lisp in $(libdir)/emacs/ |
|
emacssitelispdir=$(package)@lispdir@ |
|
siteforthdir=$(datadir)/gforth/site-forth |
|
|
# ------------- Utility programs |
# ------------- Utility programs |
|
|
Line 63 MASSAGE_EXE = @MASSAGE_EXE@
|
Line 89 MASSAGE_EXE = @MASSAGE_EXE@
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
INSTALL_DATA = @INSTALL_DATA@ |
INSTALL_DATA = @INSTALL_DATA@ |
INSTALL_INFO = @INSTALL_INFO@ |
INSTALL_INFO = @INSTALL_INFO@ |
LN_S = @LN_S@ |
LN_S = @LN_S@ -f |
M4 = @M4@ |
M4 = @M4@ |
GCC = @CC@ |
GCC = @CC@ |
EMACS = emacs |
EMACS = @EMACS@ |
|
LIBTOOL = @GNU_LIBTOOL@ |
PREFORTH = ./preforth -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" |
PREFORTH = ./preforth -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" |
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$(ARCH)/$(VERSION)$(PATHSEP)$(datadir)/gforth/$(VERSION) |
FORTHSIZES = @FORTHSIZES@ |
FORTHSIZES = @FORTHSIZES@ |
FORTHS_ARGS = -p "$(FORTHPATH)$(PATHSEP)$(srcdir)" |
FORTHS_ARGS = -p "$(FORTHPATH)$(PATHSEP)$(srcdir)" |
FORTH_ARGS = --die-on-signal $(FORTHS_ARGS) |
FORTH_ARGS = --die-on-signal $(FORTHS_ARGS) |
Line 83 BUILDFORTH = $(ENGINE) --die-on-signal -
|
Line 110 BUILDFORTH = $(ENGINE) --die-on-signal -
|
# the forth system plus flags we use to build |
# the forth system plus flags we use to build |
FORTHB = $(BUILDFORTH) 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 = ./gforth-fast |
ENGINE_FAST = ./gforth-fast$(EXT) |
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 |
Line 118 LDLIBS = @LIBS@
|
Line 145 LDLIBS = @LIBS@
|
STACK_CACHE_REGS = @STACK_CACHE_REGS@ |
STACK_CACHE_REGS = @STACK_CACHE_REGS@ |
STACK_CACHE_DEFAULT_FAST = @STACK_CACHE_DEFAULT_FAST@ |
STACK_CACHE_DEFAULT_FAST = @STACK_CACHE_DEFAULT_FAST@ |
|
|
# ------------ Install Directories |
|
|
|
VPATH = @srcdir@ |
|
prefix = @prefix@ |
|
exec_prefix = @exec_prefix@ |
|
srcdir = @srcdir@ |
|
bindir = @bindir@ |
|
#read-only architecture-independent files |
|
datarootdir = @datarootdir@ |
|
datadir = @datadir@ |
|
#read-only architecture-dependent non-ascii files |
|
libdir = @libdir@ |
|
libccdir = $(libdir)/gforth/$(VERSION)/libcc-named/ |
|
includedir = @includedir@ |
|
infodir = @infodir@ |
|
htmldir = @htmldir@ |
|
mandir = @mandir@ |
|
man1dir= $(mandir)/man1 |
|
man1ext= .1 |
|
#older emacses have their site-lisp in $(libdir)/emacs/ |
|
emacssitelispdir=@lispdir@ |
|
siteforthdir=$(datadir)/gforth/site-forth |
|
|
|
PROFOBJS = @PROFOBJS@ |
PROFOBJS = @PROFOBJS@ |
PROFEXES = @PROFEXES@ |
PROFEXES = @PROFEXES@ |
|
|
CVSDIRS = CVS engine/CVS kernel/CVS doc/CVS asm/CVS ec/CVS test/CVS \ |
INSTALLDIRS = kernel doc asm ec test \ |
compat/CVS unix/CVS \ |
compat unix \ |
arch/CVS arch/generic/CVS arch/m68k/CVS arch/mips/CVS \ |
arch arch/generic arch/m68k arch/mips \ |
arch/386/CVS arch/hppa/CVS arch/sparc/CVS arch/power/CVS \ |
arch/386 arch/hppa arch/sparc arch/power \ |
arch/alpha/CVS arch/4stack/CVS arch/misc/CVS arch/6502/CVS \ |
arch/alpha arch/4stack arch/misc arch/6502 \ |
arch/8086/CVS arch/avr/CVS arch/c165/CVS arch/h8/CVS \ |
arch/8086 arch/avr arch/c165 arch/h8 \ |
arch/shboom/CVS arch/sharc/CVS arch/ia64/CVS arch/amd64/CVS \ |
arch/shboom arch/sharc arch/ia64 arch/amd64 \ |
arch/arm/CVS arch/r8c/CVS |
arch/arm arch/r8c |
|
|
INCLUDES = engine/forth.h engine/threaded.h engine/io.h engine/longlong.h |
INCLUDES = engine/forth.h engine/threaded.h engine/io.h engine/longlong.h |
|
|
Line 182 KERN_SRC = \
|
Line 186 KERN_SRC = \
|
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 \ |
Line 190 KERN_SRC = \
|
Line 195 KERN_SRC = \
|
kernel/doers.fs \ |
kernel/doers.fs \ |
kernel/getdoers.fs \ |
kernel/getdoers.fs \ |
kernel/pass.fs \ |
kernel/pass.fs \ |
kernel/xchars.fs |
kernel/xchars.fs \ |
|
string.fs |
|
|
EC_SRC = \ |
EC_SRC = \ |
asm/README \ |
asm/README \ |
Line 208 EC_SRC = \
|
Line 214 EC_SRC = \
|
ec/nesting.fs \ |
ec/nesting.fs \ |
build-ec.in |
build-ec.in |
|
|
GFORTH_FI_SRC = \ |
GFORTH_FI_SRC1=\ |
assert.fs \ |
assert.fs \ |
backtrac.fs \ |
backtrac.fs \ |
blocked.fb \ |
blocked.fb \ |
Line 219 GFORTH_FI_SRC = \
|
Line 225 GFORTH_FI_SRC = \
|
debugs.fs \ |
debugs.fs \ |
dis-gdb.fs \ |
dis-gdb.fs \ |
ekey.fs \ |
ekey.fs \ |
envos.fs \ |
|
|
GFORTH_FI_SRC2=\ |
savesys.fs \ |
savesys.fs \ |
environ.fs \ |
environ.fs \ |
errors.fs \ |
errors.fs \ |
Line 231 GFORTH_FI_SRC = \
|
Line 238 GFORTH_FI_SRC = \
|
hash.fs \ |
hash.fs \ |
history.fs \ |
history.fs \ |
intcomp.fs \ |
intcomp.fs \ |
|
i18n.fs \ |
|
mkdir.fs \ |
libcc.fs \ |
libcc.fs \ |
locals.fs \ |
locals.fs \ |
look.fs \ |
look.fs \ |
|
mkdir.fs \ |
|
prelude.fs \ |
quotes.fs \ |
quotes.fs \ |
|
quotedstring.fs \ |
|
parsedto.fs \ |
search.fs \ |
search.fs \ |
see.fs \ |
see.fs \ |
see-ext.fs \ |
see-ext.fs \ |
simp-see.fs \ |
simp-see.fs \ |
source.fs \ |
source.fs \ |
startup.fs \ |
startup.fs \ |
|
str-exec.fs \ |
struct.fs \ |
struct.fs \ |
struct0x.fs \ |
struct0x.fs \ |
stuff.fs \ |
stuff.fs \ |
|
substitute.fs \ |
tasker.fs \ |
tasker.fs \ |
termsize.fs \ |
termsize.fs \ |
utf-8.fs \ |
utf-8.fs \ |
Line 253 GFORTH_FI_SRC = \
|
Line 268 GFORTH_FI_SRC = \
|
arch/386/asm.fs arch/386/disasm.fs \ |
arch/386/asm.fs arch/386/disasm.fs \ |
arch/amd64/asm.fs arch/amd64/disasm.fs \ |
arch/amd64/asm.fs arch/amd64/disasm.fs \ |
arch/alpha/asm.fs arch/alpha/disasm.fs arch/alpha/testasm.fs\ |
arch/alpha/asm.fs arch/alpha/disasm.fs arch/alpha/testasm.fs\ |
|
arch/arm/asm.fs arch/arm/disasm.fs \ |
|
arch/arm/testdisasm.fs arch/arm/testdisasm.out arch/arm/Makefile \ |
arch/mips/asm.fs arch/mips/disasm.fs arch/mips/insts.fs \ |
arch/mips/asm.fs arch/mips/disasm.fs arch/mips/insts.fs \ |
arch/mips/testasm.fs arch/mips/testdisasm.fs \ |
arch/mips/testasm.fs arch/mips/testdisasm.fs \ |
arch/power/asm.fs arch/power/disasm.fs arch/power/inst.fs |
arch/power/asm.fs arch/power/disasm.fs arch/power/inst.fs \ |
|
arch/lm32/asm.fs arch/lm32/testasm.fs |
|
|
|
# execlude envos.fs into list of distributed sources |
|
GFORTH_FI_DIST_SRC = \ |
|
$(GFORTH_FI_SRC1) \ |
|
$(GFORTH_FI_SRC2) |
|
|
|
GFORTH_FI_SRC = \ |
|
$(GFORTH_FI_SRC1) \ |
|
envos.fs \ |
|
$(GFORTH_FI_SRC2) |
|
|
|
LIBCC_SRC = cstr.fs unix/socket.fs unix/pthread.fs |
|
|
|
LIBCC_DIST_SRC = libffi.fs fflib.fs $(LIBCC_SRC) |
|
|
|
LIBCC_BUILD_SRC = @LIBCC_BUILD_SRC@ $(LIBCC_SRC) |
|
|
LIBCC_SRC = libffi.fs fflib.fs unix/socket.fs |
|
|
|
FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC) $(EC_SRC) $(LIBCC_SRC) \ |
FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_DIST_SRC) $(EC_SRC) $(LIBCC_DIST_SRC) \ |
ans-report.fs ansi.fs answords.fs \ |
ans-report.fs ansi.fs answords.fs \ |
colorize.fs comp-i.fs complex.fs \ |
colorize.fs comp-i.fs complex.fs \ |
depth-changes.fs dosekey.fs doskey.fs ds2texi.fs \ |
depth-changes.fs dosekey.fs doskey.fs ds2texi.fs \ |
envos.dos envos.os2 etags.fs fft.fs filedump.fs fi2c.fs \ |
envos.dos envos.os2 etags.fs fft.fs filedump.fs fi2c.fs \ |
fsl-util.4th glosgen.fs gray.fs httpd.fs proxy.fs \ |
fsl-util.4th fsl-util.fs glosgen.fs gray.fs httpd.fs install-tags.fs \ |
make-app.fs doc/makedoc.fs \ |
make-app.fs doc/makedoc.fs locate.fs more.fs onebench.fs fft-bench.fs \ |
locate.fs more.fs onebench.fs other.fs prims2x.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 \ |
Line 276 FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC)
|
Line 309 FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC)
|
test/other.fs test/signals.fs test/checkans.fs \ |
test/other.fs test/signals.fs test/checkans.fs \ |
test/primtest.fs test/coreext.fs test/deferred.fs \ |
test/primtest.fs test/coreext.fs test/deferred.fs \ |
test/coremore.fs test/gforth-nofast.fs test/libcc.fs \ |
test/coremore.fs test/gforth-nofast.fs test/libcc.fs \ |
|
test/macros.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 \ |
add.fs lib.fs oldlib.fs sieve.fs \ |
add.fs lib.fs oldlib.fs sieve.fs \ |
endtry-iferror.fs recover-endtry.fs |
endtry-iferror.fs recover-endtry.fs smartdots.fs \ |
|
unix/terminal-server.fs |
|
|
COMPAT = compat/README \ |
COMPAT = compat/README \ |
compat/anslocal.fs \ |
compat/anslocal.fs \ |
Line 290 COMPAT = compat/README \
|
Line 325 COMPAT = compat/README \
|
compat/exception.fs \ |
compat/exception.fs \ |
compat/execute-parsing.fs \ |
compat/execute-parsing.fs \ |
compat/loops.fs \ |
compat/loops.fs \ |
|
compat/macros.fs \ |
compat/required.fs \ |
compat/required.fs \ |
compat/strcomp.fs \ |
compat/strcomp.fs \ |
compat/struct.fs \ |
compat/struct.fs \ |
Line 305 ARCHS = \
|
Line 341 ARCHS = \
|
arch/generic/machine.h \ |
arch/generic/machine.h \ |
arch/m68k/machine.h \ |
arch/m68k/machine.h \ |
arch/mips/machine.h \ |
arch/mips/machine.h \ |
|
arch/mips/check_prim.c \ |
arch/386/machine.h \ |
arch/386/machine.h \ |
arch/hppa/machine.h \ |
arch/hppa/machine.h \ |
arch/hppa/cache.c \ |
arch/hppa/cache.c \ |
Line 350 ARCHS = \
|
Line 387 ARCHS = \
|
arch/sharc/g21k-3.3.4-bp1.diff \ |
arch/sharc/g21k-3.3.4-bp1.diff \ |
arch/r8c/asm.fs \ |
arch/r8c/asm.fs \ |
arch/r8c/mach.fs \ |
arch/r8c/mach.fs \ |
arch/r8c/prim.fs |
arch/r8c/errors.fs \ |
|
arch/r8c/prim.fs \ |
|
arch/r8c/asm-test.fs \ |
|
arch/r8c/errors.fs \ |
|
arch/r8c/lauflicht.fs \ |
|
arch/r8c/tasker.fs \ |
|
arch/r8c/terminal.fs \ |
|
arch/sharc/unistd.h \ |
|
arch/lm32/mach.fs \ |
|
arch/lm32/mach.sh \ |
|
arch/lm32/prim.fs \ |
|
arch/lm32/Makefile \ |
|
arch/lm32/testasm.disas-ok |
|
|
#not included in distribution until distribution terms are included: |
#not included in distribution until distribution terms are included: |
ARCHS_NO_DIST = \ |
ARCHS_NO_DIST = \ |
Line 367 ARCHS_NO_DIST = \
|
Line 416 ARCHS_NO_DIST = \
|
arch/c165/mach.fs \ |
arch/c165/mach.fs \ |
arch/c165/prim.fs \ |
arch/c165/prim.fs \ |
arch/h8/asm.fs \ |
arch/h8/asm.fs \ |
arch/r8c/asm-test.fs \ |
arch/r8c/tt.fs |
arch/r8c/errors.fs \ |
|
arch/r8c/lauflicht.fs \ |
# temporary change. DO NOT COMMIT |
arch/r8c/tasker.fs \ |
ARCHS += $(ARCHS_NO_DIST) |
arch/r8c/terminal.fs \ |
|
arch/r8c/tt.fs \ |
|
arch/sharc/unistd.h |
|
|
|
VMGEN_EX = vmgen-ex/CVS vmgen-ex/Makefile vmgen-ex/README vmgen-ex/disasm.c \ |
VMGEN_EX = vmgen-ex/Makefile vmgen-ex/README vmgen-ex/disasm.c \ |
vmgen-ex/engine.c vmgen-ex/fib.mini \ |
vmgen-ex/engine.c vmgen-ex/fib.mini \ |
vmgen-ex/mini-inst.vmg vmgen-ex/mini-super.vmg vmgen-ex/mini.h \ |
vmgen-ex/mini-inst.vmg vmgen-ex/mini-super.vmg vmgen-ex/mini.h \ |
vmgen-ex/mini.l vmgen-ex/mini.y vmgen-ex/peephole-blacklist \ |
vmgen-ex/mini.l vmgen-ex/mini.y vmgen-ex/peephole-blacklist \ |
Line 398 ENGINE_SOURCES = engine/Makefile.in engi
|
Line 444 ENGINE_SOURCES = engine/Makefile.in engi
|
engine/fnmatch.h engine/fnmatch.c \ |
engine/fnmatch.h engine/fnmatch.c \ |
engine/makefile.dos engine/makefile.os2 |
engine/makefile.dos engine/makefile.os2 |
|
|
SOURCES = $(CVSDIRS) $(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 libforth.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 \ |
Line 421 SOURCES = $(CVSDIRS) $(ENGINE_SOURCES) c
|
Line 467 SOURCES = $(CVSDIRS) $(ENGINE_SOURCES) c
|
|
|
RCS_FILES = ToDo model high-level |
RCS_FILES = ToDo model high-level |
|
|
ENGINES = gforth$(EC)$(EXE) gforth-ditc$(EC)$(EXE) gforth-itc$(EC)$(EXE) $(PROFEXES) |
ENGINES = gforth$(EXT) @NO_EC@ gforth-ditc$(EXT) gforth-itc$(EXT) $(PROFEXES) |
|
|
ENGINES_FAST = gforth-fast$(OPT)$(EC)$(EXE) #gforth-native$(OPT)$(EC)$(EXE) |
ENGINES_FAST = @NO_EC@ gforth-fast$(OPT)$(EXT) #gforth-native$(OPT)$(EXT) |
|
|
GEN = $(ENGINES) $(ENGINES_FAST) gforth.elc |
GEN = $(ENGINES) $(ENGINES_FAST) @gforth_elc@ |
|
|
# 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 439 FORTH_GEN_ENGINE_FAST= \
|
Line 485 FORTH_GEN_ENGINE_FAST= \
|
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@ 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 |
|
|
Line 468 GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) \
|
Line 514 GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) \
|
.SUFFIXES: |
.SUFFIXES: |
.SUFFIXES: .c .o |
.SUFFIXES: .c .o |
|
|
all: kernel/version.fs more |
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: ; |
|
|
|
#targets of failed commands should be deleted: |
|
.DELETE_ON_ERROR: |
|
|
#this rule avoids remaking everything after minor changes in Makefile.in |
#this rule avoids remaking everything after minor changes in Makefile.in |
version: Makefile.in configure.in |
version: Makefile.in configure.in |
if test -r $@ && test x'$(VERSION)' = x`cat $@` ; then true ; else echo $(VERSION) > $@ ; fi |
if test -r $@ && test x'$(VERSION)' = x`cat $@` ; then true ; else echo $(VERSION) > $@ ; fi |
Line 485 version: Makefile.in configure.in
|
Line 534 version: Makefile.in configure.in
|
kernel/version.fs: version |
kernel/version.fs: version |
echo ": version-string s\" $(VERSION)\" ;" > kernel/version.fs |
echo ": version-string s\" $(VERSION)\" ;" > kernel/version.fs |
|
|
more: $(ENGINES) $(FORTH_GEN) $(GEN) |
more: $(ENGINES) $(FORTH_GEN) $(GEN) @libengines@ @build_libcc_named@ |
@$(MAKE) check |
|
|
|
#from the gcc Makefile: |
#from the gcc Makefile: |
#"Deletion of files made during compilation. |
#"Deletion of files made during compilation. |
Line 518 docclean: FORCE
|
Line 566 docclean: FORCE
|
doc/gforth.toc doc/gforth.tp doc/gforth.vr html |
doc/gforth.toc doc/gforth.tp doc/gforth.vr html |
|
|
clean: mostlyclean |
clean: mostlyclean |
-$(RM) -rf $(GEN) *.o engine/*.o arch/*/*.o version \ |
-$(RM) -rf $(GEN) *.o engine/*.o engine/*.lo engine/*.la \ |
gforth-itc-noll$(EC)$(EXE) engine/gforth-itc-noll$(EC)$(EXE) \ |
engine/.libs engine/libgforth* libgforth* arch/*/*.o version \ |
gforth-ditc-noll$(EC)$(EXE) engine/gforth-ditc-noll$(EC)$(EXE) \ |
gforth-itc-noll$(EXT) engine/gforth-itc-noll$(EXT) \ |
gforth-prof-noll$(EC)$(EXE) engine/gforth-prof-noll$(EC)$(EXE) \ |
gforth-ditc-noll$(EXT) engine/gforth-ditc-noll$(EXT) \ |
|
gforth-prof-noll$(EXT) engine/gforth-prof-noll$(EXT) \ |
engine/prim-s.i |
engine/prim-s.i |
for i in gforth gforth-fast gforth-native; do for j in $(OPTS); do rm -f engine/$$i$${j}$(EC)$(EXE) $$i$${j}$(EC)$(EXE); done; done |
for i in gforth gforth-fast gforth-native; do for j in $(OPTS); do rm -f engine/$$i$${j}$(EXT) $$i$${j}$(EXT); done; done |
|
|
distclean: clean |
distclean: clean |
-$(RM) -rf config.cache config.log config.status \ |
-$(RM) -rf config.cache config.log config.status \ |
Line 571 bindist: Makedist FORCE
|
Line 620 bindist: Makedist FORCE
|
binonlydist: Makedist FORCE |
binonlydist: Makedist FORCE |
$(MAKE) -f Makedist d$@ |
$(MAKE) -f Makedist d$@ |
|
|
|
debdist: Makedist FORCE |
|
$(MAKE) -f Makedist d$@ |
|
|
|
setup-debdist: Makedist FORCE |
|
$(MAKE) -f Makedist d$@ |
|
|
#HPUX make breaks the cycle differently when the dates are equal, so |
#HPUX make breaks the cycle differently when the dates are equal, so |
# touch some of the files if it acts up |
# touch some of the files if it acts up |
hpux-workaround: |
hpux-workaround: |
Line 584 hpux-workaround:
|
Line 639 hpux-workaround:
|
#hard to generate). |
#hard to generate). |
#we rebuild gforth.fi, because it contains some path names. |
#we rebuild gforth.fi, because it contains some path names. |
#we delete $build/gforth.fi and $build/install.TAGS after installation because of ownership. |
#we delete $build/gforth.fi and $build/install.TAGS after installation because of ownership. |
install: gforth$(EC)$(EXE) $(FORTH_SRC) $(kernel_fi) gforth.fi gforthmi vmgen doc/gforth.1 prim install.TAGS installdirs |
install: gforth$(EXT) $(FORTH_SRC) $(kernel_fi) gforthmi vmgen doc/gforth.1 prim install.TAGS installdirs @libinstall@ @NO_CROSS@ gforth.fi |
$(NORMAL_INSTALL) |
$(NORMAL_INSTALL) |
touch $(DESTDIR)$(siteforthdir)/siteinit.fs |
touch $(DESTDIR)$(siteforthdir)/siteinit.fs |
-$(RM) $(DESTDIR)$(bindir)/gforth$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-$(VERSION)$(EC)$(EXE) $(DESTDIR)$(bindir)/gforthmi #$(DESTDIR)$(bindir)/vmgen |
-$(RM) $(DESTDIR)$(bindir)/gforth$(EXT) $(DESTDIR)$(bindir)/gforth-$(VERSION)$(EXT) $(DESTDIR)$(bindir)/gforthmi $(DESTDIR)$(bindir)/vmgen |
-$(RM) $(DESTDIR)$(bindir)/gforth-fast$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-fast-$(VERSION)$(EC)$(EXE) |
-$(RM) $(DESTDIR)$(bindir)/gforth-fast$(EXT) $(DESTDIR)$(bindir)/gforth-fast-$(VERSION)$(EXT) |
-$(RM) $(DESTDIR)$(bindir)/gforth-itc$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-itc-$(VERSION)$(EC)$(EXE) |
-$(RM) $(DESTDIR)$(bindir)/gforth-itc$(EXT) $(DESTDIR)$(bindir)/gforth-itc-$(VERSION)$(EXT) |
$(INSTALL_PROGRAM) gforth$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-$(VERSION)$(EC)$(EXE) |
-$(RM) $(DESTDIR)$(bindir)/gforth-ditc$(EXT) $(DESTDIR)$(bindir)/gforth-ditc-$(VERSION)$(EXT) |
-$(MASSAGE_EXE) $(DESTDIR)$(bindir)/gforth-$(VERSION)$(EC)$(EXE) |
$(INSTALL_PROGRAM) gforth$(EXT) $(DESTDIR)$(bindir)/gforth-$(VERSION)$(EXT) |
(cd $(DESTDIR)$(bindir) && $(LN_S) gforth-$(VERSION)$(EC)$(EXE) gforth$(EC)$(EXE)) |
-$(MASSAGE_EXE) $(DESTDIR)$(bindir)/gforth-$(VERSION)$(EXT) |
$(INSTALL_PROGRAM) gforth-fast$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-fast-$(VERSION)$(EC)$(EXE) |
(cd $(DESTDIR)$(bindir) && $(LN_S) gforth-$(VERSION)$(EXT) gforth$(EXT)) |
-$(MASSAGE_EXE) $(DESTDIR)$(bindir)/gforth-fast-$(VERSION)$(EC)$(EXE) |
$(INSTALL_PROGRAM) gforth-fast$(EXT) $(DESTDIR)$(bindir)/gforth-fast-$(VERSION)$(EXT) |
(cd $(DESTDIR)$(bindir) && $(LN_S) gforth-fast-$(VERSION)$(EC)$(EXE) gforth-fast$(EC)$(EXE)) |
-$(MASSAGE_EXE) $(DESTDIR)$(bindir)/gforth-fast-$(VERSION)$(EXT) |
$(INSTALL_PROGRAM) gforth-itc$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-itc-$(VERSION)$(EC)$(EXE) |
(cd $(DESTDIR)$(bindir) && $(LN_S) gforth-fast-$(VERSION)$(EXT) gforth-fast$(EXT)) |
(cd $(DESTDIR)$(bindir) && $(LN_S) gforth-itc-$(VERSION)$(EC)$(EXE) gforth-itc$(EC)$(EXE)) |
$(INSTALL_PROGRAM) gforth-itc$(EXT) $(DESTDIR)$(bindir)/gforth-itc-$(VERSION)$(EXT) |
|
(cd $(DESTDIR)$(bindir) && $(LN_S) gforth-itc-$(VERSION)$(EXT) gforth-itc$(EXT)) |
|
$(INSTALL_PROGRAM) gforth-ditc$(EXT) $(DESTDIR)$(bindir)/gforth-ditc-$(VERSION)$(EXT) |
|
(cd $(DESTDIR)$(bindir) && $(LN_S) gforth-ditc-$(VERSION)$(EXT) gforth-ditc$(EXT)) |
$(INSTALL_SCRIPT) gforthmi $(DESTDIR)$(bindir)/gforthmi-$(VERSION) |
$(INSTALL_SCRIPT) gforthmi $(DESTDIR)$(bindir)/gforthmi-$(VERSION) |
#$(INSTALL_SCRIPT) vmgen $(DESTDIR)$(bindir)/vmgen-$(VERSION) |
$(INSTALL_SCRIPT) vmgen $(DESTDIR)$(bindir)/vmgen-$(VERSION) |
$(INSTALL_PROGRAM) gforth-ditc $(DESTDIR)$(libdir)/gforth/$(VERSION) |
|
(cd $(DESTDIR)$(bindir) && $(LN_S) gforthmi-$(VERSION) gforthmi) |
(cd $(DESTDIR)$(bindir) && $(LN_S) gforthmi-$(VERSION) gforthmi) |
#(cd $(DESTDIR)$(bindir) && $(LN_S) vmgen-$(VERSION) vmgen) |
(cd $(DESTDIR)$(bindir) && $(LN_S) vmgen-$(VERSION) vmgen) |
-$(INSTALL_DATA) $(srcdir)/doc/gforth.1 $(DESTDIR)$(man1dir) |
-$(INSTALL_DATA) $(srcdir)/doc/gforth.1 $(DESTDIR)$(man1dir) |
#-for i in $(srcdir)/doc/gforth.info* $(srcdir)/doc/vmgen.info*; do $(INSTALL_DATA) $$i $(DESTDIR)$(infodir); done |
-for i in $(srcdir)/doc/gforth.info* $(srcdir)/doc/vmgen.info*; do $(INSTALL_DATA) $$i $(DESTDIR)$(infodir); done |
-for i in $(srcdir)/doc/gforth.info*; do $(INSTALL_DATA) $$i $(DESTDIR)$(infodir); done |
for i in $(FORTH_SRC) $(COMPAT) envos.fs prim; do \ |
for i in $(FORTH_SRC) $(COMPAT) 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$(ARCH)/$(VERSION) |
@if test -d "$(DESTDIR)$(emacssitelispdir)"; then \ |
@if test -d "$(DESTDIR)$(emacssitelispdir)"; then \ |
$(INSTALL_DATA) gforth.el $(DESTDIR)$(emacssitelispdir); \ |
for i in gforth.el @gforth_elc@; do \ |
$(INSTALL_DATA) gforth.elc $(DESTDIR)$(emacssitelispdir); \ |
$(INSTALL_DATA) $$i $(DESTDIR)$(emacssitelispdir); \ |
|
done; \ |
else \ |
else \ |
echo '>>>>>Please install gforth.{el,elc} in your .../emacs/site-lisp directory'; \ |
echo '>>>>>Please install gforth.{el,elc} in your .../emacs/site-lisp directory'; \ |
fi |
fi |
-$(RM) gforth.fi |
-$(RM) gforth.fi |
GFORTHD="./gforth-ditc -p $(DESTDIR)$(libdir)/gforth/site-forth$(PATHSEP)$(DESTDIR)$(siteforthdir)$(PATHSEP)$(DESTDIR)$(datadir)/gforth/$(VERSION) -i $(kernel_fi)" GFORTH="./gforth-ditc --die-on-signal -i $(kernel_fi) $(STARTUP)" includedir=$(includedir) bindir=$(bindir) libccdir=$(libccdir) GFORTHPATH=.:"$$GFORTHPATH" GFORTHDESTDIR="$(DESTDIR)" ./gforthmi gforth.fi $(FORTHSIZES) $(STARTUP) |
@NO_CROSS@GFORTHD="./gforth-ditc$(EXT) -p $(DESTDIR)$(libdir)/gforth/site-forth$(PATHSEP)$(DESTDIR)$(siteforthdir)$(PATHSEP)$(DESTDIR)$(datadir)/gforth/$(VERSION) -i $(kernel_fi)" GFORTH="./gforth-ditc$(EXT) -p $(DESTDIR)$(libdir)/gforth/site-forth$(PATHSEP)$(DESTDIR)$(siteforthdir)$(PATHSEP)$(DESTDIR)$(datadir)/gforth/$(VERSION) --die-on-signal -i $(kernel_fi) $(STARTUP)" includedir=$(includedir) bindir=$(bindir) libccdir=$(libccdir) GFORTHPATH=.:"$$GFORTHPATH" GFORTHDESTDIR="$(DESTDIR)" ./gforthmi gforth.fi $(FORTHSIZES) $(STARTUP) |
$(INSTALL_DATA) gforth.fi $(DESTDIR)$(libdir)/gforth/$(VERSION) |
@NO_CROSS@$(INSTALL_DATA) gforth.fi $(DESTDIR)$(libdir)/gforth$(ARCH)/$(VERSION) |
$(INSTALL_DATA) install.TAGS $(DESTDIR)$(datadir)/gforth/$(VERSION)/TAGS |
$(INSTALL_DATA) install.TAGS $(DESTDIR)$(datadir)/gforth/$(VERSION)/TAGS |
$(RM) gforth.fi install.TAGS |
$(RM) install.TAGS @NO_CROSS@gforth.fi |
$(INSTALL_DATA) include/gforth/$(VERSION)/* $(DESTDIR)$(includedir)/gforth/$(VERSION) |
$(INSTALL_DATA) include/gforth$(ARCH)/$(VERSION)/* $(DESTDIR)$(includedir)/gforth$(ARCH)/$(VERSION) |
for i in $(LIBCC_SRC); do @GNU_LIBTOOL@ --silent --mode=install $(INSTALL) lib/gforth/$(VERSION)/libcc-named/`basename $$i .fs`.la $(DESTDIR)$(libccdir)`basename $$i .fs`.la; done |
if test -n "$(LIBTOOL)"; then for i in $(LIBCC_BUILD_SRC); do \ |
|
$(LIBTOOL) --silent --mode=install $(INSTALL) lib/gforth$(ARCH)/$(VERSION)/libcc-named/libgf`basename $$i .fs`.la $(DESTDIR)$(libccdir)libgf`basename $$i .fs`.la; \ |
|
done; fi |
$(POST_INSTALL) |
$(POST_INSTALL) |
$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/gforth.info |
$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/gforth.info |
#$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/vmgen.info |
$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/vmgen.info |
|
|
install-strip: install |
install-strip: install |
|
|
|
libinstall: $(ENGINES:%$(EXT)=lib%) $(ENGINES_FAST:%$(EXT)=lib%) |
|
for i in $(ENGINES:%$(EXT)=lib%) $(ENGINES_FAST:%$(EXT)=lib%); do \ |
|
$(LIBTOOL) --silent --mode=install $(INSTALL) engine/$$i.la $(libdir)/$$i.la; \ |
|
done |
|
|
installdirs: mkinstalldirs |
installdirs: mkinstalldirs |
$(NORMAL_INSTALL) |
$(NORMAL_INSTALL) |
for i in $(bindir) $(man1dir) $(infodir) $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(libdir)/gforth/site-forth $(siteforthdir) $(includedir)/gforth/$(VERSION) $(libccdir); do \ |
for i in $(bindir) $(man1dir) $(infodir) $(libdir)/gforth$(ARCH)/$(VERSION) $(datadir)/gforth/$(VERSION) $(libdir)/gforth/site-forth $(siteforthdir) $(includedir)/gforth$(ARCH)/$(VERSION) $(libccdir); do \ |
$(srcdir)/mkinstalldirs $(DESTDIR)$$i; \ |
$(srcdir)/mkinstalldirs $(DESTDIR)$$i; \ |
done |
done |
for i in $(CVSDIRS); do \ |
# |
$(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/gforth/$(VERSION)/`dirname $$i`; \ |
for i in $(INSTALLDIRS); do \ |
|
$(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/gforth/$(VERSION)/$$i; \ |
done |
done |
$(RM) -rf $(DESTDIR)$(datadir)/gforth/$(VERSION)/engine |
|
|
|
#deinstall all files specific to this version of gforth |
#deinstall all files specific to this version of gforth |
#to uninstall version foo, type `make uninstall VERSION=foo' |
#to uninstall version foo, type `make uninstall VERSION=foo' |
uninstall: FORCE |
uninstall: FORCE |
$(NORMAL_UNINSTALL) |
$(NORMAL_UNINSTALL) |
-$(RM) -rf $(DESTDIR)$(libdir)/gforth/$(VERSION) $(DESTDIR)$(datadir)/gforth/$(VERSION) $(DESTDIR)$(bindir)/gforth-$(VERSION)$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-fast-$(VERSION)$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-itc-$(VERSION)$(EC)$(EXE) $(DESTDIR)$(bindir)/gforthmi-$(VERSION) $(DESTDIR)(bindir)/vmgen-$(VERSION) $(DESTDIR)$(includedir)/gforth/$(VERSION) |
-$(RM) -rf $(DESTDIR)$(libdir)/gforth$(ARCH)/$(VERSION) $(DESTDIR)$(datadir)/gforth/$(VERSION) $(DESTDIR)$(bindir)/gforth-$(VERSION)$(EXT) $(DESTDIR)$(bindir)/gforth-fast-$(VERSION)$(EXT) $(DESTDIR)$(bindir)/gforth-itc-$(VERSION)$(EXT) $(DESTDIR)$(bindir)/gforthmi-$(VERSION) $(DESTDIR)$(bindir)/vmgen-$(VERSION) $(DESTDIR)$(includedir)/gforth/$(VERSION) |
@echo -e "To remove Gforth completely, type\n$(RM) -rf $(DESTDIR)$(bindir)/gforth$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-fast$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-itc$(EC)$(EXE) $(DESTDIR)$(bindir)/gforthmi $(DESTDIR)$(bindir)/vmgen $(DESTDIR)$(man1dir)/gforth.1 $(DESTDIR)$(infodir)/gforth.info* $(DESTDIR)$(datadir)/gforth $(DESTDIR)$(libdir)/gforth" |
@echo -e "To remove Gforth completely, type\n$(RM) -rf $(DESTDIR)$(bindir)/gforth$(EXT) $(DESTDIR)$(bindir)/gforth-fast$(EXT) $(DESTDIR)$(bindir)/gforth-itc$(EXT) $(DESTDIR)$(bindir)/gforthmi $(DESTDIR)$(bindir)/vmgen $(DESTDIR)$(man1dir)/gforth.1 $(DESTDIR)$(infodir)/gforth.info* $(DESTDIR)$(datadir)/gforth $(DESTDIR)$(libdir)/gforth" |
|
|
check-libcc-named: $(LIBCC_SRC) |
build-libcc-named: $(LIBCC_BUILD_SRC) $(FORTH_GEN) $(GEN) FORCE |
$(RMTREE) lib/gforth/$(VERSION)/libcc-named/ |
$(RMTREE) lib/gforth$(ARCH)/$(VERSION)/libcc-named/ |
$(srcdir)/mkinstalldirs lib/gforth/$(VERSION)/libcc-named/ |
for i in $(LIBCC_BUILD_SRC); do ./libforth -e "s\" `pwd`/lib/gforth$(ARCH)/$(VERSION)/libcc-named/\" libcc-named-dir-v 2! libcc-path clear-path libcc-named-dir libcc-path also-path :noname 2drop s\" $(DESTDIR)$(libccdir)\" ; is replace-rpath" $(srcdir)/$$i -e bye; done |
for i in $(LIBCC_SRC); do ./gforth -e "s\" `pwd`/lib/gforth/$(VERSION)/libcc-named/\" libcc-named-dir-v 2! libcc-path clear-path libcc-named-dir libcc-path also-path :noname 2drop s\" $(libccdir)\" ; is replace-rpath" $$i -e bye; done |
|
|
|
check: gforths gforth.fi |
check: gforths gforth.fi |
$(MAKE) checkone check-nofast ENGINE="./gforth --no-dynamic" >/dev/null 2>&1 |
$(MAKE) checkone check-nofast ENGINE="./gforth$(EXT) --no-dynamic" >/dev/null 2>&1 |
$(MAKE) checkone check-nofast ENGINE="./gforth-itc" >/dev/null 2>&1 |
$(MAKE) checkone check-nofast ENGINE="./gforth-itc$(EXT)" >/dev/null 2>&1 |
$(MAKE) checkone check-nofast ENGINE="./gforth-ditc" >/dev/null 2>&1 |
$(MAKE) checkone check-nofast ENGINE="./gforth-ditc$(EXT)" >/dev/null 2>&1 |
$(MAKE) checkone ENGINE="./gforth-fast --no-dynamic" >/dev/null 2>&1 |
$(MAKE) checkone ENGINE="./gforth-fast$(EXT) --no-dynamic" >/dev/null 2>&1 |
$(MAKE) checkone check-nofast ENGINE="./gforth" >/dev/null 2>&1 |
$(MAKE) checkone check-nofast ENGINE="./gforth$(EXT)" >/dev/null 2>&1 |
$(MAKE) checkone ENGINE="./gforth-fast" >/dev/null 2>&1 |
$(MAKE) checkone ENGINE="./gforth-fast$(EXT)" >/dev/null 2>&1 |
$(MAKE) check-libcc-named |
|
@echo "*** Check successful ***" |
@echo "*** Check successful ***" |
./gforth-fast --diag -e bye |
./gforth-fast$(EXT) --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 -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 |
$(FORTH) code.fs test/checkans.fs -e bye | tr -d '\015' | diff -c - $(srcdir)/test/checkans.out |
$(FORTH) code.fs test/checkans.fs -e bye | tr -d '\015' | diff -c - $(srcdir)/test/checkans.out |
$(FORTH) prims2x.fs -e \ |
$(FORTH) prims2x.fs -e \ |
"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"| \ |
Line 681 test/primtest.fi: test/primtest.fs mach3
|
Line 743 test/primtest.fi: test/primtest.fs mach3
|
primtest: gforth gforth-native test/primtest.fi FORCE |
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 $$? |
(echo rs|ENVVAR=bla ./gforth -i test/primtest.fi) && (echo rs|ENVVAR=bla ./gforth-native -i test/primtest.fi); echo $$? |
|
|
bench: gforth-fast$(EC)$(EXE) gforth.fi |
bench: gforth-fast$(EXT) 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" |
time $(FORTH_FAST) bubble.fs -e "main bye" |
time $(FORTH_FAST) bubble.fs -e "main bye" |
time $(FORTH_FAST) matrix.fs -e "main bye" |
time $(FORTH_FAST) matrix.fs -e "main bye" |
time $(FORTH_FAST) fib.fs -e "main bye" |
time $(FORTH_FAST) fib.fs -e "main bye" |
|
time $(FORTH_FAST) fft-bench.fs -e "main bye" |
|
|
onebench one-bench: |
onebench one-bench: |
$(FORTH_FAST) onebench.fs |
$(FORTH_FAST) onebench.fs |
Line 766 kernl64l$(EC).fi: $(KERNLS)
|
Line 829 kernl64l$(EC).fi: $(KERNLS)
|
# -$(CP) $@ $@~ |
# -$(CP) $@ $@~ |
# -$(CP) $< $@ |
# -$(CP) $< $@ |
|
|
gforth.fi: $(kernel_fi) gforthmi gforth-ditc$(EC)$(EXE) $(GFORTH_FI_SRC) comp-i.fs |
gforth.fi: $(kernel_fi) gforthmi gforth-ditc$(EXT) $(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)" includedir=`pwd`/include bindir=`pwd` libccdir=`pwd`/lib/gforth/$(VERSION)/libcc-named/ ./gforthmi gforth.fi $(FORTHSIZES) $(FORTHKFLAGS) $(STARTUP) |
@NO_CROSS@GFORTHD="./gforth-ditc$(EXT) -p .$(PATHSEP)$(srcdir)" GFORTH="./gforth-ditc$(EXT) --die-on-signal -p .$(PATHSEP)$(srcdir) -i $(kernel_fi) $(STARTUP)" includedir=`pwd`/include bindir=`pwd` libccdir=`pwd`/lib/gforth$(ARCH)/$(VERSION)/libcc-named/ ./gforthmi gforth.fi $(FORTHSIZES) $(FORTHKFLAGS) $(STARTUP) |
|
|
# ------------- Make c-engine |
# ------------- Make c-engine |
|
|
prim.b: prim cache0.vmg |
prim.b: prim cache0.vmg |
$(M4) -Dcondbranch_opt=0 $(srcdir)/prim >$@ |
(cd $(srcdir) && $(M4) -Dcondbranch_opt=0 prim) >$@ |
sleep 1 #should make hpux-workaround unnecessary |
sleep 1 #should make hpux-workaround unnecessary |
|
|
prim-fast.b: prim cache-fast$(STACK_CACHE_DEFAULT_FAST).vmg cache-regs$(STACK_CACHE_REGS).vmg peeprules.vmg Makefile |
prim-fast.b: prim cache-fast$(STACK_CACHE_DEFAULT_FAST).vmg cache-regs$(STACK_CACHE_REGS).vmg peeprules.vmg Makefile |
$(M4) -Dcondbranch_opt=@condbranch_opt@ -DSTACK_CACHE_FILE=cache-fast$(STACK_CACHE_DEFAULT_FAST).vmg -DSTACK_CACHE_REGS=cache-regs$(STACK_CACHE_REGS).vmg $(srcdir)/prim >$@ |
(cd $(srcdir) && $(M4) -Dcondbranch_opt=@condbranch_opt@ -DSTACK_CACHE_FILE=cache-fast$(STACK_CACHE_DEFAULT_FAST).vmg -DSTACK_CACHE_REGS=cache-regs$(STACK_CACHE_REGS).vmg prim) >$@ |
sleep 1 #should make hpux-workaround unnecessary |
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 |
Line 808 MAKELINE-noll-reg = OPT=-noll-reg OPTDEF
|
Line 871 MAKELINE-noll-reg = OPT=-noll-reg OPTDEF
|
MAKELINE-ll = OPT=-ll OPTDEFINES=-DFORCE_LL OPTOBJECTS= |
MAKELINE-ll = OPT=-ll OPTDEFINES=-DFORCE_LL OPTOBJECTS= |
MAKELINE-noll = OPT=-noll OPTDEFINES= OPTOBJECTS=dblsub.o |
MAKELINE-noll = OPT=-noll OPTDEFINES= OPTOBJECTS=dblsub.o |
|
|
gforth$(OPT)$(EC)$(EXE): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/config.h @kernel_anti_dependence@ |
gforth$(OPT)$(EXT): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/config.h @kernel_anti_dependence@ |
if test -z "$(OPT)"; then \ |
if test -z "$(OPT)"; then \ |
for i in $(OPTS); do $(MAKE) optgforth OPT=$$i && $(CP) gforth$${i}$(EC)$(EXE) $@ && break; done; \ |
for i in $(OPTS); do $(MAKE) optgforth OPT=$$i && $(CP) gforth$${i}$(EXT) $@ && break; done; \ |
else \ |
else \ |
( cd engine && $(MAKE) $@ ) && \ |
( cd engine && $(MAKE) $@ ) && \ |
$(CP) gforth$(OPT)$(EC)$(EXE) gforth~; \ |
|
$(CP) engine/$@ $@ && \ |
$(CP) engine/$@ $@ && \ |
$(MASSAGE_EXE) $@; \ |
$(MASSAGE_EXE) $@; \ |
@GFORTH_EXE@; \ |
@GFORTH_EXE@; \ |
$(MAKE) checkone check-nofast ENGINE=./engine/$@; \ |
@NO_CROSS@ $(MAKE) checkone check-nofast ENGINE=./engine/$@; \ |
fi |
fi |
|
|
optgforth: |
optgforth: |
$(MAKE) gforth$(OPT)$(EC)$(EXE) $(MAKELINE$(OPT)) |
$(MAKE) gforth$(OPT)$(EXT) $(MAKELINE$(OPT)) |
|
|
gforth-fast$(OPT)$(EC)$(EXE): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE_FAST) engine/config.h |
gforth-fast$(OPT)$(EXT): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE_FAST) engine/config.h |
if test -z "$(OPT)"; then \ |
if test -z "$(OPT)"; then \ |
for i in $(OPTS); do $(MAKE) optgforth-fast OPT=$$i && $(CP) gforth-fast$${i}$(EC)$(EXE) $@ && break; done; \ |
for i in $(OPTS); do $(MAKE) optgforth-fast OPT=$$i && $(CP) gforth-fast$${i}$(EXT) $@ && break; done; \ |
else \ |
else \ |
( cd engine && $(MAKE) $@ ) && \ |
(cd engine && $(MAKE) $@ ) && \ |
$(CP) engine/$@ $@ && \ |
$(CP) engine/$@ $@ && \ |
$(MASSAGE_EXE) $@; \ |
$(MASSAGE_EXE) $@; \ |
@GFORTHFAST_EXE@; \ |
@GFORTHFAST_EXE@; \ |
$(MAKE) checkone ENGINE=./engine/$@; \ |
@NO_CROSS@ $(MAKE) checkone ENGINE=./engine/$@; \ |
fi |
fi |
|
|
optgforth-fast: |
optgforth-fast: |
$(MAKE) gforth-fast$(OPT)$(EC)$(EXE) $(MAKELINE$(OPT)) |
$(MAKE) gforth-fast$(OPT)$(EXT) $(MAKELINE$(OPT)) |
|
|
gforth-native$(OPT)$(EC)$(EXE): engines-fast |
gforth-native$(OPT)$(EXT): engines-fast |
$(CP) engine/$@ $@ |
$(CP) engine/$@ $@ |
-$(MASSAGE_EXE) $@ |
-$(MASSAGE_EXE) $@ |
#@GFORTHX_EXE@ |
#@GFORTHX_EXE@ |
|
|
gforth-itc$(EC)$(EXE): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/Makefile engine/config.h |
gforth-itc$(EXT): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/Makefile engine/config.h |
cd engine && $(MAKE) gforth-itc-noll$(EC)$(EXE) $(MAKELINE-noll) |
cd engine && $(MAKE) gforth-itc-noll$(EXT) $(MAKELINE-noll) |
$(CP) engine/gforth-itc-noll$(EC)$(EXE) $@ |
$(CP) engine/gforth-itc-noll$(EXT) $@ |
@GFORTHITC_EXE@ |
@GFORTHITC_EXE@ |
|
|
gforth-ditc$(EC)$(EXE): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/Makefile engine/config.h |
gforth-ditc$(EXT): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/Makefile engine/config.h |
cd engine && $(MAKE) gforth-ditc-noll$(EC)$(EXE) $(MAKELINE-noll) |
cd engine && $(MAKE) gforth-ditc-noll$(EXT) $(MAKELINE-noll) |
$(CP) engine/gforth-ditc-noll$(EC)$(EXE) $@ |
$(CP) engine/gforth-ditc-noll$(EXT) $@ |
@GFORTHDITC_EXE@ |
@GFORTHDITC_EXE@ |
|
|
gforth-prof$(EC)$(EXE): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/Makefile engine/config.h |
gforth-prof$(EXT): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/Makefile engine/config.h |
cd engine && $(MAKE) gforth-prof-noll$(EC)$(EXE) $(MAKELINE-noll) |
cd engine && $(MAKE) gforth-prof-noll$(EXT) $(MAKELINE-noll) |
$(CP) engine/gforth-prof-noll$(EC)$(EXE) $@ |
$(CP) engine/gforth-prof-noll$(EXT) $@ |
|
|
gforths: $(ENGINES) $(ENGINES_FAST) |
gforths: $(ENGINES) $(ENGINES_FAST) |
|
|
|
#For now, we have no way to check if the engines build correctly |
|
libgforth$(OPT)$(EXT): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/config.h @kernel_anti_dependence@ |
|
if test -z "$(OPT)"; then \ |
|
for i in $(OPTS); do $(MAKE) optlibgforth OPT=$$i && $(MAKE) optlibgforth2 OPT=$$i && $(LN_S) engine/$@ $@ && break; done; \ |
|
else \ |
|
(cd engine && $(MAKE) $@ ); \ |
|
@NO_CROSS@ $(MAKE) checkone check-nofast ENGINE=./engine/$@; \ |
|
fi |
|
|
|
optlibgforth: |
|
$(MAKE) libgforth$(OPT)$(EXT) $(MAKELINE$(OPT)) |
|
|
|
optlibgforth2: |
|
(cd engine && $(MAKE) libgforth$(EXT) $(MAKELINE$(OPT))) |
|
|
|
libgforth-fast$(OPT)$(EXT): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE_FAST) engine/config.h |
|
if test -z "$(OPT)"; then \ |
|
for i in $(OPTS); do $(MAKE) optlibgforth-fast OPT=$$i && $(MAKE) optlibgforth-fast2 OPT=$$i && $(LN_S) engine/$@ $@ && break; done; \ |
|
else \ |
|
(cd engine && $(MAKE) $@ ); \ |
|
@NO_CROSS@ $(MAKE) checkone ENGINE=./engine/$@; \ |
|
fi |
|
|
|
optlibgforth-fast: |
|
$(MAKE) libgforth-fast$(OPT)$(EXT) $(MAKELINE$(OPT)) |
|
|
|
optlibgforth-fast2: |
|
(cd engine && $(MAKE) libgforth-fast$(EXT) $(MAKELINE$(OPT))) |
|
|
|
libgforth-itc$(EXT): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/Makefile engine/config.h |
|
cd engine && $(MAKE) libgforth-itc$(EXT) $(MAKELINE-noll) |
|
|
|
libgforth-ditc$(EXT): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/Makefile engine/config.h |
|
cd engine && $(MAKE) libgforth-ditc$(EXT) $(MAKELINE-noll) |
|
|
|
libgforth-prof$(EXT): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/Makefile engine/config.h |
|
cd engine && $(MAKE) libgforth-prof$(EXT) $(MAKELINE-noll) |
|
|
|
libgforths: $(ENGINES:%$(EXT)=lib%) $(ENGINES_FAST:%$(EXT)=lib%) |
|
|
# ------------- additional C primitives |
# ------------- additional C primitives |
|
|
%.c: %.pri prim2cl.fs |
.SUFFIXES: .c .pri |
|
|
|
.pri.c: $< prim2cl.fs |
$(FORTHK) prim2cl.fs -e "file $< altogether bye" >$@ |
$(FORTHK) prim2cl.fs -e "file $< altogether bye" >$@ |
|
|
%.so: %.c |
.c.so: $< |
$(GCC) -shared $(CFLAGS) $(CPPFLAGS) $< -o $@ |
$(GCC) -shared $(CFLAGS) $(CPPFLAGS) $< -o $@ |
|
|
# ------------- Make Documentation |
# ------------- Make Documentation |
Line 875 TAGS: gforth.TAGS
|
Line 979 TAGS: gforth.TAGS
|
tags: gforth.tags |
tags: gforth.tags |
$(CP) gforth.tags $@ |
$(CP) gforth.tags $@ |
|
|
install.TAGS: TAGS |
install.TAGS: TAGS install-tags.fs |
sed 's;^\$(srcdir)/;;' TAGS|awk 'BEGIN {RS="\014\n"; ORS=RS} {if (NR==1) print $0; else print "$(datadir)/gforth/$(VERSION)/"$$0;}' >install.TAGS |
sed 's;^\$(srcdir)/;;' TAGS|$(PREFORTH) -e 's" '$(datadir)/gforth/$(VERSION)/'"' $(srcdir)/install-tags.fs -e bye >install.TAGS |
|
|
gforth.TAGS: @kernel_fi@ gforth$(EC)$(EXE) $(GFORTH_FI_SRC) prim.TAGS kernel.TAGS |
gforth.TAGS: @kernel_fi@ gforth$(EXT) $(GFORTH_FI_SRC) prim.TAGS kernel.TAGS |
$(FORTHK) etags.fs except.fs startup.fs -e bye |
$(FORTHK) etags.fs except.fs startup.fs -e bye |
cat TAGS prim.TAGS kernel.TAGS >gforth.TAGS |
cat TAGS prim.TAGS kernel.TAGS >gforth.TAGS |
rm TAGS |
rm TAGS |
|
|
gforth.tags: @kernel_fi@ gforth$(EC)$(EXE) $(GFORTH_FI_SRC) prim.tags kernel.tags |
gforth.tags: @kernel_fi@ gforth$(EXT) $(GFORTH_FI_SRC) prim.tags kernel.tags |
$(FORTHK) tags.fs except.fs startup.fs -e bye |
$(FORTHK) tags.fs except.fs startup.fs -e bye |
cat tags prim.tags kernel.tags >gforth.tags |
cat tags prim.tags kernel.tags >gforth.tags |
rm tags |
rm tags |
Line 902 prim.tags: prim.b prims2x.fs
|
Line 1006 prim.tags: prim.b prims2x.fs
|
$(RM) $@- |
$(RM) $@- |
|
|
kernel.TAGS: |
kernel.TAGS: |
rm kernl16l$(EC).fi-; $(MAKE) @kernel_fi@ |
$(RM) kernl16l$(EC).fi-; $(MAKE) @kernel_fi@ |
|
|
kernel.tags: |
kernel.tags: |
rm kernl16l$(EC).fi-; $(MAKE) @kernel_fi@ |
$(RM) kernl16l$(EC).fi-; $(MAKE) @kernel_fi@ |
|
|
#elc files |
#elc files |
gforth.elc: gforth.el |
gforth.elc: gforth.el |
-$(EMACS) -batch -f batch-byte-compile $< |
-$(EMACS) -batch -f batch-byte-compile gforth.el |
|
|
#Documentation |
#Documentation |
|
|
Line 928 doc/gforth.texi: doc/gforth.ds prim.b ds
|
Line 1032 doc/gforth.texi: doc/gforth.ds prim.b ds
|
checkdoc: doc/gforth.ds prim.b ds2texi.fs prims2x.fs doc/doc.fd doc/crossdoc.fd answords.fs doc/gforth.texi |
checkdoc: doc/gforth.ds prim.b ds2texi.fs prims2x.fs doc/doc.fd doc/crossdoc.fd answords.fs doc/gforth.texi |
$(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 |
-grep doc- doc/gforth.texi |
-grep doc- doc/gforth.texi| grep -v '^@c' |
|
|
dvi: doc/gforth.dvi doc/vmgen.dvi |
dvi: doc/gforth.dvi doc/vmgen.dvi |
|
|
Line 997 engine/config.h: stamp-h
|
Line 1101 engine/config.h: stamp-h
|
stamp-h: engine/config.h.in config.status stamp-h.in |
stamp-h: engine/config.h.in config.status stamp-h.in |
./config.status |
./config.status |
|
|
Makefile Makedist engine/Makefile gforthmi vmgen preforth machpc.fs doc/version.texi envos.fs build-ec: Makefile.in Makedist.in engine/Makefile.in gforthmi.in vmgen.in preforth.in machpc.fs.in doc/version.texi.in config.status configure.in envos.fs.in build-ec.in engine/libcc.h.in |
Makefile Makedist engine/Makefile gforthmi vmgen preforth machpc.fs doc/version.texi envos.fs build-ec gforthmi.sh: Makefile.in Makedist.in engine/Makefile.in gforthmi.in vmgen.in preforth.in libforth.in machpc.fs.in doc/version.texi.in config.status configure.in envos.fs.in build-ec.in engine/libcc.h.in gforthmi.sh.in |
./config.status |
./config.status |
|
|
config.status: configure |
config.status: configure |
./config.status --recheck |
./config.status --recheck |
|
|
#create files for DOS, because DOS cannot do it itself |
#create files for DOS, because DOS cannot do it itself |
makefile.dos engine/makefile.dos: mkdosmf.sed Makefile.in engine/Makefile.in |
makefile.dos: mkdosmf.sed Makefile.in |
sed -f mkdosmf.sed <Makefile.in >makefile.dos |
sed -f mkdosmf.sed <Makefile.in >makefile.dos |
|
|
|
engine/makefile.dos: mkdosmf.sed engine/Makefile.in |
sed -f mkdosmf.sed <engine/Makefile.in >engine/makefile.dos |
sed -f mkdosmf.sed <engine/Makefile.in >engine/makefile.dos |
|
|
makefile.os2 engine/makefile.os2: mkos2mf.sed Makefile.in engine/Makefile.in |
makefile.os2: mkos2mf.sed Makefile.in |
sed -f mkos2mf.sed <Makefile.in >makefile.os2 |
sed -f mkos2mf.sed <Makefile.in >makefile.os2 |
|
echo '%.o: %.c' >>makefile.os2 |
|
echo ' $$(GCC) $$(CFLAGS) $$(CPPFLAGS) -c $$<' >>makefile.os2 |
|
|
|
engine/makefile.os2: mkos2mf.sed engine/Makefile.in |
sed -f mkos2mf.sed <engine/Makefile.in >engine/makefile.os2 |
sed -f mkos2mf.sed <engine/Makefile.in >engine/makefile.os2 |
echo '%.o: %.c' >>makefile.os2 |
echo '%.o: %.c' >>engine/makefile.os2 |
echo ' $$(GCC) $$(CFLAGS) $$(CPPFLAGS) -c $$<' >>makefile.os2 |
echo ' $$(GCC) $$(CFLAGS) $$(CPPFLAGS) -c $$<' >>engine/makefile.os2 |
echo '%.o: %.c' >>engine/makefile.os2 |
|
echo ' $$(GCC) $$(CFLAGS) $$(CPPFLAGS) -c $$<' >>engine/makefile.os2 |
|