version 1.417, 2008/08/09 13:24:25
|
version 1.432, 2008/10/25 22:30:06
|
Line 45 EXE=@EXEEXT@
|
Line 45 EXE=@EXEEXT@
|
|
|
PATHSEP = @PATHSEP@ |
PATHSEP = @PATHSEP@ |
|
|
osclass = @OSCLASS@ |
|
|
|
EC = @EC@ |
EC = @EC@ |
|
|
# ------------- Utility programs |
# ------------- Utility programs |
Line 67 LN_S = @LN_S@
|
Line 65 LN_S = @LN_S@
|
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/$(VERSION)$(PATHSEP)$(datadir)/gforth/$(VERSION) |
Line 231 GFORTH_FI_SRC = \
|
Line 230 GFORTH_FI_SRC = \
|
hash.fs \ |
hash.fs \ |
history.fs \ |
history.fs \ |
intcomp.fs \ |
intcomp.fs \ |
|
mkdir.fs \ |
libcc.fs \ |
libcc.fs \ |
locals.fs \ |
locals.fs \ |
look.fs \ |
look.fs \ |
|
mkdir.fs \ |
quotes.fs \ |
quotes.fs \ |
search.fs \ |
search.fs \ |
see.fs \ |
see.fs \ |
Line 257 GFORTH_FI_SRC = \
|
Line 258 GFORTH_FI_SRC = \
|
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 |
|
|
LIBCC_SRC = libffi.fs fflib.fs unix/socket.fs |
LIBCC_SRC = cstr.fs unix/socket.fs |
|
|
|
LIBCC_DIST_SRC = libffi.fs fflib.fs $(LIBCC_SRC) |
|
|
FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC) $(EC_SRC) $(LIBCC_SRC) \ |
LIBCC_BUILD_SRC = @LIBCC_BUILD_SRC@ $(LIBCC_SRC) |
|
|
|
FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_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 glosgen.fs gray.fs httpd.fs proxy.fs \ |
make-app.fs doc/makedoc.fs \ |
make-app.fs doc/makedoc.fs locate.fs more.fs onebench.fs \ |
locate.fs more.fs onebench.fs other.fs prims2x.fs random.fs \ |
other.fs prims2x.fs prims2x0.6.2.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 \ |
unbuffer.fs wordsets.fs xwords.fs \ |
unbuffer.fs wordsets.fs xwords.fs \ |
Line 468 GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) \
|
Line 473 GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) \
|
.SUFFIXES: |
.SUFFIXES: |
.SUFFIXES: .c .o |
.SUFFIXES: .c .o |
|
|
all: kernel/version.fs more |
all: kernel/version.fs more check |
|
|
# use this dependency for phony targets just as mostlyclean,... |
# use this dependency for phony targets just as mostlyclean,... |
FORCE: ; |
FORCE: ; |
Line 485 version: Makefile.in configure.in
|
Line 490 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) @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 599 install: gforth$(EC)$(EXE) $(FORTH_SRC)
|
Line 603 install: gforth$(EC)$(EXE) $(FORTH_SRC)
|
$(INSTALL_PROGRAM) gforth-itc$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-itc-$(VERSION)$(EC)$(EXE) |
$(INSTALL_PROGRAM) gforth-itc$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-itc-$(VERSION)$(EC)$(EXE) |
(cd $(DESTDIR)$(bindir) && $(LN_S) gforth-itc-$(VERSION)$(EC)$(EXE) gforth-itc$(EC)$(EXE)) |
(cd $(DESTDIR)$(bindir) && $(LN_S) gforth-itc-$(VERSION)$(EC)$(EXE) gforth-itc$(EC)$(EXE)) |
$(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) |
$(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) 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 |
Line 617 install: gforth$(EC)$(EXE) $(FORTH_SRC)
|
Line 620 install: gforth$(EC)$(EXE) $(FORTH_SRC)
|
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) |
GFORTHD="./gforth-ditc -p $(DESTDIR)$(libdir)/gforth/site-forth$(PATHSEP)$(DESTDIR)$(siteforthdir)$(PATHSEP)$(DESTDIR)$(datadir)/gforth/$(VERSION) -i $(kernel_fi)" GFORTH="./gforth-ditc -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) |
$(INSTALL_DATA) gforth.fi $(DESTDIR)$(libdir)/gforth/$(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) gforth.fi install.TAGS |
$(INSTALL_DATA) include/gforth/$(VERSION)/* $(DESTDIR)$(includedir)/gforth/$(VERSION) |
$(INSTALL_DATA) include/gforth/$(VERSION)/* $(DESTDIR)$(includedir)/gforth/$(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/$(VERSION)/libcc-named/`basename $$i .fs`.la $(DESTDIR)$(libccdir)`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 |
|
|
Line 646 uninstall: FORCE
|
Line 651 uninstall: FORCE
|
-$(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/$(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) |
@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$(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" |
|
|
check-libcc-named: $(LIBCC_SRC) |
build-libcc-named: $(LIBCC_BUILD_SRC) $(FORTH_GEN) $(GEN) FORCE |
$(RMTREE) lib/gforth/$(VERSION)/libcc-named/ |
$(RMTREE) lib/gforth/$(VERSION)/libcc-named/ |
$(srcdir)/mkinstalldirs lib/gforth/$(VERSION)/libcc-named/ |
for i in $(LIBCC_BUILD_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" $(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 --no-dynamic" >/dev/null 2>&1 |
Line 658 check: gforths gforth.fi
|
Line 662 check: gforths gforth.fi
|
$(MAKE) checkone ENGINE="./gforth-fast --no-dynamic" >/dev/null 2>&1 |
$(MAKE) checkone ENGINE="./gforth-fast --no-dynamic" >/dev/null 2>&1 |
$(MAKE) checkone check-nofast ENGINE="./gforth" >/dev/null 2>&1 |
$(MAKE) checkone check-nofast ENGINE="./gforth" >/dev/null 2>&1 |
$(MAKE) checkone ENGINE="./gforth-fast" >/dev/null 2>&1 |
$(MAKE) checkone ENGINE="./gforth-fast" >/dev/null 2>&1 |
$(MAKE) check-libcc-named |
|
@echo "*** Check successful ***" |
@echo "*** Check successful ***" |
./gforth-fast --diag -e bye |
./gforth-fast --diag -e bye |
|
|
Line 772 gforth.fi: $(kernel_fi) gforthmi gforth-
|
Line 775 gforth.fi: $(kernel_fi) gforthmi gforth-
|
# ------------- 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 813 gforth$(OPT)$(EC)$(EXE): $(ENGINE_SOURCE
|
Line 816 gforth$(OPT)$(EC)$(EXE): $(ENGINE_SOURCE
|
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}$(EC)$(EXE) $@ && 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@; \ |
Line 860 gforths: $(ENGINES) $(ENGINES_FAST)
|
Line 862 gforths: $(ENGINES) $(ENGINES_FAST)
|
|
|
# ------------- 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 902 prim.tags: prim.b prims2x.fs
|
Line 906 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 932 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 |
|
|