version 1.376, 2008/01/04 22:06:02
|
version 1.377, 2008/01/06 22:37:05
|
Line 420 ENGINES = gforth$(OPT)$(EC)$(EXE) gforth
|
Line 420 ENGINES = gforth$(OPT)$(EC)$(EXE) gforth
|
|
|
ENGINES_FAST = gforth-fast$(OPT)$(EC)$(EXE) #gforth-native$(EXE) |
ENGINES_FAST = gforth-fast$(OPT)$(EC)$(EXE) #gforth-native$(EXE) |
|
|
|
#names of engines without $(OPT) etc. |
|
ENGINES_BASE = gforth gforth-ditc gforth-itc gforth-fast |
|
# !! should include PROFEXES |
|
|
|
|
GEN = $(ENGINES) $(ENGINES_FAST) kernel/version.fs gforth.elc |
GEN = $(ENGINES) $(ENGINES_FAST) kernel/version.fs gforth.elc |
|
|
# things that need a working forth system to be generated |
# things that need a working forth system to be generated |
Line 462 GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) \
|
Line 467 GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) \
|
.SUFFIXES: |
.SUFFIXES: |
.SUFFIXES: .c .o |
.SUFFIXES: .c .o |
|
|
|
OPTS = -ll -noll |
|
|
|
MAKELINE-ll = OPT=-ll OPTDEFINES=-DFORCE_LL OPTOBJECTS= |
|
MAKELINE-noll = OPT=-noll OPTDEFINES= OPTOBJECTS=dblsub.o |
|
|
|
all: |
|
if test -z "$(OPT)"; then \ |
|
for i in $(OPTS); do make optall OPT=$$i && break; done \ |
|
else \ |
|
make allbut1; \ |
|
fi |
|
|
|
allbut1: kernel/version.fs more |
|
|
|
optall: |
|
make $(MAKELINE$(OPT)) |
|
|
all: kernel/version.fs more |
|
|
|
# use this dependency for phony targets just as mostlyclean,... |
# use this dependency for phony targets just as mostlyclean,... |
FORCE: ; |
FORCE: ; |
Line 483 kernel/version.fs: version
|
Line 503 kernel/version.fs: version
|
more: engines $(FORTH_GEN) $(GEN) |
more: engines $(FORTH_GEN) $(GEN) |
@make check |
@make check |
@$(FORTH_FAST) --diag -e bye |
@$(FORTH_FAST) --diag -e bye |
|
test -z "$(OPT)" || for i in $(ENGINES_BASE); do $(CP) $${i}$(OPT)$(EC)$(EXE) $${i}$(EC)$(EXE); done |
|
|
#from the gcc Makefile: |
#from the gcc Makefile: |
#"Deletion of files made during compilation. |
#"Deletion of files made during compilation. |
Line 819 gforth-prof$(OPT)$(EC)$(EXE): engines
|
Line 840 gforth-prof$(OPT)$(EC)$(EXE): engines
|
gforths: $(ENGINES) $(ENGINES_FAST) |
gforths: $(ENGINES) $(ENGINES_FAST) |
|
|
engines: FORCE $(FORTH_GEN_ENGINE) engine/Makefile engine/config.h |
engines: FORCE $(FORTH_GEN_ENGINE) engine/Makefile engine/config.h |
cd engine && $(MAKE) $(ENGINES) |
cd engine && $(MAKE) $(ENGINES) \ |
|
|
engines-fast: FORCE $(FORTH_GEN_ENGINE_FAST) engine/Makefile engine/config.h |
engines-fast: FORCE $(FORTH_GEN_ENGINE_FAST) engine/Makefile engine/config.h |
cd engine && $(MAKE) $(ENGINES_FAST) |
cd engine && $(MAKE) $(ENGINES_FAST) |