version 1.445, 2009/03/17 17:40:49
|
version 1.449, 2010/01/08 18:54:34
|
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 Free Software Foundation, Inc. |
|
|
#This file is part of Gforth. |
#This file is part of Gforth. |
|
|
Line 235 GFORTH_FI_SRC = \
|
Line 235 GFORTH_FI_SRC = \
|
locals.fs \ |
locals.fs \ |
look.fs \ |
look.fs \ |
mkdir.fs \ |
mkdir.fs \ |
|
prelude.fs \ |
quotes.fs \ |
quotes.fs \ |
search.fs \ |
search.fs \ |
see.fs \ |
see.fs \ |
Line 281 FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC)
|
Line 282 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 \ |
Line 295 COMPAT = compat/README \
|
Line 297 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 427 SOURCES = $(ENGINE_SOURCES) compat Makef
|
Line 430 SOURCES = $(ENGINE_SOURCES) compat Makef
|
|
|
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$(EC)$(EXE) @NO_EC@ gforth-ditc$(EC)$(EXE) gforth-itc$(EC)$(EXE) $(PROFEXES) |
|
|
ENGINES_FAST = gforth-fast$(OPT)$(EC)$(EXE) #gforth-native$(OPT)$(EC)$(EXE) |
ENGINES_FAST = @NO_EC@ gforth-fast$(OPT)$(EC)$(EXE) #gforth-native$(OPT)$(EC)$(EXE) |
|
|
GEN = $(ENGINES) $(ENGINES_FAST) gforth.elc |
GEN = $(ENGINES) $(ENGINES_FAST) gforth.elc |
|
|
Line 445 FORTH_GEN_ENGINE_FAST= \
|
Line 448 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_EC@ 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 474 GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) \
|
Line 477 GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) \
|
.SUFFIXES: |
.SUFFIXES: |
.SUFFIXES: .c .o |
.SUFFIXES: .c .o |
|
|
all: kernel/version.fs more check |
all: kernel/version.fs more @NO_EC@ check |
|
|
# use this dependency for phony targets just as mostlyclean,... |
# use this dependency for phony targets just as mostlyclean,... |
FORCE: ; |
FORCE: ; |
Line 673 checkone test: gforth.fi engine/prim-s.i
|
Line 676 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>&1 | 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 823 gforth$(OPT)$(EC)$(EXE): $(ENGINE_SOURCE
|
Line 826 gforth$(OPT)$(EC)$(EXE): $(ENGINE_SOURCE
|
$(CP) engine/$@ $@ && \ |
$(CP) engine/$@ $@ && \ |
$(MASSAGE_EXE) $@; \ |
$(MASSAGE_EXE) $@; \ |
@GFORTH_EXE@; \ |
@GFORTH_EXE@; \ |
$(MAKE) checkone check-nofast ENGINE=./engine/$@; \ |
@NO_EC@ $(MAKE) checkone check-nofast ENGINE=./engine/$@; \ |
fi |
fi |
|
|
optgforth: |
optgforth: |
Line 837 gforth-fast$(OPT)$(EC)$(EXE): $(ENGINE_S
|
Line 840 gforth-fast$(OPT)$(EC)$(EXE): $(ENGINE_S
|
$(CP) engine/$@ $@ && \ |
$(CP) engine/$@ $@ && \ |
$(MASSAGE_EXE) $@; \ |
$(MASSAGE_EXE) $@; \ |
@GFORTHFAST_EXE@; \ |
@GFORTHFAST_EXE@; \ |
$(MAKE) checkone ENGINE=./engine/$@; \ |
@NO_EC@ $(MAKE) checkone ENGINE=./engine/$@; \ |
fi |
fi |
|
|
optgforth-fast: |
optgforth-fast: |