| SHELL = /bin/sh |
SHELL = /bin/sh |
| RM = rm |
RM = rm |
| RMTREE = rm -rf |
RMTREE = rm -rf |
| CP = cp |
CP = cp -p |
| MV = mv |
MV = mv |
| TAR = tar cf - |
TAR = tar cf - |
| INSTALL = @INSTALL@ |
INSTALL = @INSTALL@ |
| LN_S = @LN_S@ |
LN_S = @LN_S@ |
| GCC = @CC@ |
GCC = @CC@ |
| CC = $(GCC) |
CC = $(GCC) |
| FORTHPATH = .$(PATHSEP)$(libdir)/gforth/site-forth$(PATHSEP)$(datadir)/gforth/site-forth$(PATHSEP)$(libdir)/gforth/$(VERSION)$(PATHSEP)$(datadir)/gforth/$(VERSION) |
FORTHPATH = .$(PATHSEP)$(libdir)/gforth/site-forth$(PATHSEP)$(siteforthdir)$(PATHSEP)$(libdir)/gforth/$(VERSION)$(PATHSEP)$(datadir)/gforth/$(VERSION) |
| FORTHSIZES = @FORTHSIZES@ |
FORTHSIZES = @FORTHSIZES@ |
| FORTH = ./gforth --die-on-signal -p $(FORTHPATH)$(PATHSEP)$(srcdir) |
FORTH_ARGS = --die-on-signal -p $(FORTHPATH)$(PATHSEP)$(srcdir) |
| FORTHKFLAGS= --die-on-signal -p .$(PATHSEP)$(srcdir) -i ./$(kernel_fi) |
ENGINE = ./gforth |
| |
FORTH = $(ENGINE) $(FORTH_ARGS) |
| |
ENGINE_FAST = $(ENGINE)-fast |
| |
FORTH_FAST = $(ENGINE_FAST) $(FORTH_ARGS) |
| |
FORTHKFLAGS= --die-on-signal -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" -i $(kernel_fi) |
| FORTHK = ./gforth $(FORTHKFLAGS) |
FORTHK = ./gforth $(FORTHKFLAGS) |
| FORTHP = ./gforth --die-on-signal -i ./$(kernel_fi) |
FORTHP = ./gforth --die-on-signal -i ./$(kernel_fi) |
| STRIP = strip |
STRIP = strip |
| man1ext= .1 |
man1ext= .1 |
| #older emacses have their site-lisp in $(libdir)/emacs/ |
#older emacses have their site-lisp in $(libdir)/emacs/ |
| emacssitelispdir=@lispdir@ |
emacssitelispdir=@lispdir@ |
| |
siteforthdir=$(datadir)/gforth/site-forth |
| |
|
| CVSDIRS = CVS engine/CVS kernel/CVS doc/CVS asm/CVS ec/CVS test/CVS \ |
CVSDIRS = CVS engine/CVS kernel/CVS doc/CVS asm/CVS ec/CVS test/CVS \ |
| compat/CVS \ |
compat/CVS \ |
| |
|
| GFORTH_FI_SRC = \ |
GFORTH_FI_SRC = \ |
| assert.fs \ |
assert.fs \ |
| |
backtrace.fs \ |
| blocked.fb \ |
blocked.fb \ |
| blocks.fs \ |
blocks.fs \ |
| bufio.fs \ |
bufio.fs \ |
| doc/makedoc.fs \ |
doc/makedoc.fs \ |
| mach16b.fs mach16l.fs mach32b.fs mach32l.fs mach64b.fs mach64l.fs \ |
mach16b.fs mach16l.fs mach32b.fs mach32l.fs mach64b.fs mach64l.fs \ |
| machpc.fs more.fs other.fs prims2x.fs random.fs \ |
machpc.fs more.fs other.fs prims2x.fs random.fs \ |
| siteinit.fs table.fs \ |
table.fs \ |
| tt.fs sokoban.fs \ |
tt.fs sokoban.fs \ |
| unbuffered.fs wordsets.fs \ |
unbuffered.fs wordsets.fs \ |
| test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs \ |
test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs \ |
| arch/shboom/sh.p \ |
arch/shboom/sh.p \ |
| arch/shboom/doers.fs |
arch/shboom/doers.fs |
| |
|
| SOURCES = $(CVSDIRS) compat Makefile.in engine/Makefile.in gforthmi.in \ |
SOURCES = $(CVSDIRS) compat Makefile.in Makedist.in engine/Makefile.in gforthmi.in \ |
| configure.in configure config.sub config.guess elisp-comp missing \ |
configure.in configure config.sub config.guess elisp-comp missing \ |
| acconfig.h acinclude.m4 engine/config.h.in stamp-h.in \ |
acconfig.h acinclude.m4 engine/config.h.in stamp-h.in \ |
| install-sh INSTALL INSTALL.BINDIST NEWS README ToDo BUGS model \ |
install-sh INSTALL INSTALL.BINDIST NEWS README ToDo BUGS model \ |
| engine/pow10.c engine/atanh.c engine/cleanalign.c \ |
engine/pow10.c engine/atanh.c engine/cleanalign.c \ |
| engine/strerror.c engine/strsignal.c engine/dblsub.c \ |
engine/strerror.c engine/strsignal.c engine/dblsub.c \ |
| INSTALL.DOS makefile.dos engine/makefile.dos mkdosmf.sed config.bat \ |
INSTALL.DOS makefile.dos engine/makefile.dos mkdosmf.sed config.bat \ |
| dosconf.h gforthmi.bat mkinstalldirs \ |
dosconf.h gforthmi.bat mkinstalldirs siteinit.fs \ |
| versions.bsh \ |
versions.bsh \ |
| configure.cmd mkos2mf.sed os2conf.h makefile.os2 engine/makefile.os2 \ |
configure.cmd mkos2mf.sed os2conf.h makefile.os2 engine/makefile.os2 \ |
| gforthmi.cmd glosgen.glo doc/glossaries.doc \ |
gforthmi.cmd glosgen.glo doc/glossaries.doc \ |
| |
|
| RCS_FILES = ToDo model high-level |
RCS_FILES = ToDo model high-level |
| |
|
| GEN = gforth$(EXE) gforth-ditc$(EXE) kernel/version.fs version-stamp |
GEN = gforth$(EXE) gforth-ditc$(EXE) gforth-fast$(EXE) kernel/version.fs |
| |
|
| # things that need a working forth system to be generated |
# things that need a working forth system to be generated |
| FORTH_GEN0 = prim.b engine/prim.i engine/prim_lab.i kernel/aliases.fs kernel/prim.fs |
FORTH_GEN0 = prim.b engine/prim.i engine/prim_lab.i kernel/aliases.fs kernel/prim.fs |
| FORTH_GEN1 = $(FORTH_GEN0) @kernel_fi@ |
FORTH_GEN1 = $(FORTH_GEN0) @kernel_fi@ |
| |
|
| #distributed documentation |
#distributed documentation |
| DOCDIST = doc/gforth.info doc/gforth.info-* doc/gforth.txt doc/gforth.ps |
DOCDIST = doc/gforth.info doc/gforth.info-* doc/gforth.ps |
| |
|
| #stuff in a binonly distribution |
|
| BINONLYDIST = config.status Makefile gforth$(EXE) gforth-ditc$(EXE) \ |
|
| $(OBJECTS0) $(OBJECTS) $(OBJECTS_DITC)\ |
|
| arch/$(machine)/machine.h engine/config.h engine/Makefile \ |
|
| stamp-h kernel/version.fs version-stamp \ |
|
| INSTALL.BINDIST |
|
| |
|
| KERNLS = kernl16b.fi- kernl16l.fi- \ |
KERNLS = kernl16b.fi- kernl16l.fi- \ |
| kernl32b.fi- kernl32l.fi- \ |
kernl32b.fi- kernl32l.fi- \ |
| kernl64b.fi- kernl64l.fi- |
kernl64b.fi- kernl64l.fi- |
| |
|
| GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) doc/gforth.texi doc/gforth.dvi doc/gforth.ps Makefile engine/Makefile configure |
GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) doc/gforth.texi doc/gforth.dvi doc/gforth.ps Makefile Makedist engine/Makefile configure |
| |
|
| #standards.info recommends this: |
#standards.info recommends this: |
| .SUFFIXES: |
.SUFFIXES: |
| doc/gforth.toc doc/gforth.tp doc/gforth.vr html \ |
doc/gforth.toc doc/gforth.tp doc/gforth.vr html \ |
| gforth-$(VERSION).tar.gz |
gforth-$(VERSION).tar.gz |
| |
|
| |
# Just the stuff needed to rebuild the documentation nac03feb1999 |
| |
docclean: FORCE |
| |
-$(RM) -rf doc/crossdoc.fd doc/doc.fd doc/gforth.texi doc/gforth.fns \ |
| |
doc/gforth.aux doc/gforth.cp doc/gforth.cps \ |
| |
doc/gforth.dvi doc/gforth.fn doc/gforth.ky doc/gforth.log \ |
| |
doc/gforth.pg \ |
| |
doc/gforth.toc doc/gforth.tp doc/gforth.vr html |
| |
|
| clean: mostlyclean |
clean: mostlyclean |
| -$(RM) -rf $(GEN) engine/gforth$(EXE) engine/gforth-ditc$(EXE) \ |
-$(RM) -rf $(GEN) engine/gforth$(EXE) \ |
| |
engine/gforth-fast$(EXE) engine/gforth-ditc$(EXE) \ |
| *.o engine/*.o arch/*/*.o version |
*.o engine/*.o arch/*/*.o version |
| |
|
| distclean: clean |
distclean: clean |
| -$(RM) config.cache config.log config.status \ |
-$(RM) config.cache config.log config.status \ |
| engine/config.h Makefile engine/Makefile \ |
engine/config.h Makefile Makedist engine/Makefile \ |
| stamp-h engine/stamp-h \ |
stamp-h engine/stamp-h \ |
| doc/version.texi gforthmi |
doc/version.texi gforthmi |
| |
|
| -$(RM) -rf gforth.fns gforth.texi gforth.ps gforth.info* \ |
-$(RM) -rf gforth.fns gforth.texi gforth.ps gforth.info* \ |
| gforth-$(VERSION).tar.gz config.cache *~ */*~ |
gforth-$(VERSION).tar.gz config.cache *~ */*~ |
| |
|
| #use dist targets only when srcdir=. |
#Some makes (Ultrix, SunOS, IRIX) are so broken, they cannot read the |
| dist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) |
#Makefile if it contains our dist rules. Therefore we have put these |
| -$(RMTREE) gforth-$(VERSION) |
#rules in Makedist (you can use them with GNU make on these systems). |
| mkdir gforth-$(VERSION) |
dist: Makedist FORCE |
| $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \ |
$(MAKE) -f Makedist d$@ |
| (cd gforth-$(VERSION); tar xf -) |
|
| $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).tar.gz |
dosdist: Makedist FORCE |
| -$(RMTREE) gforth-$(VERSION) |
$(MAKE) -f Makedist d$@ |
| |
|
| #use dist targets only when srcdir=. |
srcdist: Makedist FORCE |
| dosdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) |
$(MAKE) -f Makedist d$@ |
| -$(RMTREE) gforth.$(DOSVERSION) |
|
| mkdir gforth.$(DOSVERSION) |
|
| $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \ |
|
| (cd gforth.$(DOSVERSION); tar xf -) |
|
| $(MV) gforth.$(DOSVERSION)/engine/strsignal.c gforth.$(DOSVERSION)/engine/strsig.c |
|
| for i in 1 2 3 4 5 6 7 8; do \ |
|
| $(MV) gforth.$(DOSVERSION)/doc/gforth.info-$$i gforth.$(DOSVERSION)/doc/gforth.i$$i; \ |
|
| done |
|
| zip -r9 gf$(DOSVERSION)dos.zip gforth.$(DOSVERSION)/* |
|
| -$(RMTREE) gforth.$(DOSVERSION) |
|
| |
|
| #A source distribution contains only the things needed to install gforth, |
srconlydist: Makedist FORCE |
| #without the documents. |
$(MAKE) -f Makedist d$@ |
| srcdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ |
|
| -$(RMTREE) gforth-$(VERSION) |
docdist: Makedist FORCE |
| mkdir gforth-$(VERSION) |
$(MAKE) -f Makedist d$@ |
| $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ | \ |
|
| (cd gforth-$(VERSION); tar xf -) |
htmldist: Makedist FORCE |
| $(TAR) gforth-$(VERSION)|gzip -9 >gforth-src-$(VERSION).tar.gz |
$(MAKE) -f Makedist d$@ |
| -$(RMTREE) gforth-$(VERSION) |
|
| |
bindist: Makedist FORCE |
| srconlydist: $(SOURCES) |
$(MAKE) -f Makedist d$@ |
| -$(RMTREE) gforth-$(VERSION) |
|
| mkdir gforth-$(VERSION) |
binonlydist: Makedist FORCE |
| $(TAR) $(SOURCES) | \ |
$(MAKE) -f Makedist d$@ |
| (cd gforth-$(VERSION); tar xf -) |
|
| $(TAR) gforth-$(VERSION)|gzip -9 >gforth-srconly-$(VERSION).tar.gz |
|
| -$(RMTREE) gforth-$(VERSION) |
|
| |
|
| #A document distribution contains only the documents, which can be created |
|
| #with MAKE. |
|
| docdist: $(DOCDIST) |
|
| -$(RMTREE) gforth-$(VERSION) |
|
| mkdir gforth-$(VERSION) |
|
| $(TAR) $(DOCDIST) | (cd gforth-$(VERSION); tar xf -) |
|
| $(TAR) gforth-$(VERSION)|gzip -9 >gforth-doc-$(VERSION).tar.gz |
|
| -$(RMTREE) gforth-$(VERSION) |
|
| |
|
| #a binary distribution contains the complete source distribution, |
|
| # the objects, the executable and the links. the objects are there for making |
|
| # make happy. |
|
| bindist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) |
|
| -$(RMTREE) gforth-$(VERSION) |
|
| mkdir gforth-$(VERSION) |
|
| $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -) |
|
| strip gforth-$(VERSION)/gforth |
|
| $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION)-@host@.tar.gz |
|
| |
|
| #makes a package with only the stuff not present in the source |
|
| #package. For installation the source package is still needed! |
|
| #This is useful if you want to distribute many binary versions in |
|
| #little space (e.g., on floppy disk): Put the source package and |
|
| #all the binonly packages you are interested in on the disk. The user |
|
| #then just has to unpack the source and his favourite binonly into the |
|
| #same directory and has a full binary distribution. |
|
| binonlydist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) |
|
| -$(RMTREE) gforth-$(VERSION) |
|
| mkdir gforth-$(VERSION) |
|
| $(TAR) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -) |
|
| strip gforth-$(VERSION)/gforth |
|
| $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION)-binonly-@host@.tar.gz |
|
| |
|
| |
|
| #strip gforth, because the debugging stuff is hardly useful once |
#strip gforth, because the debugging stuff is hardly useful once |
| #supplying a lot of files that can be easily generated (only info is |
#supplying a lot of files that can be easily generated (only info is |
| #hard to generate) |
#hard to generate) |
| install: gforth$(EXE) $(FORTH_SRC) $(kernel_fi) gforth.fi gforthmi doc/gforth.1 prim install.TAGS installdirs |
install: gforth$(EXE) $(FORTH_SRC) $(kernel_fi) gforth.fi gforthmi doc/gforth.1 prim install.TAGS installdirs |
| touch $(datadir)/gforth/site-forth/siteinit.fs |
touch $(siteforthdir)/siteinit.fs |
| -$(RM) $(bindir)/gforth$(EXE) $(bindir)/gforth-$(VERSION)$(EXE) |
-$(RM) $(bindir)/gforth$(EXE) $(bindir)/gforth-$(VERSION)$(EXE) $(bindir)/gforthmi |
| |
-$(RM) $(bindir)/gforth-fast$(EXE) $(bindir)/gforth-fast-$(VERSION)$(EXE) $(bindir)/gforthmi |
| $(INSTALL_PROGRAM) -s gforth$(EXE) $(bindir)/gforth-$(VERSION)$(EXE) |
$(INSTALL_PROGRAM) -s gforth$(EXE) $(bindir)/gforth-$(VERSION)$(EXE) |
| $(LN_S) $(bindir)/gforth-$(VERSION)$(EXE) $(bindir)/gforth$(EXE) |
$(LN_S) $(bindir)/gforth-$(VERSION)$(EXE) $(bindir)/gforth$(EXE) |
| |
$(INSTALL_PROGRAM) -s gforth-fast$(EXE) $(bindir)/gforth-fast-$(VERSION)$(EXE) |
| |
$(LN_S) $(bindir)/gforth-fast-$(VERSION)$(EXE) $(bindir)/gforth-fast$(EXE) |
| $(INSTALL_PROGRAM) gforthmi $(bindir)/gforthmi-$(VERSION) |
$(INSTALL_PROGRAM) gforthmi $(bindir)/gforthmi-$(VERSION) |
| $(LN_S) $(bindir)/gforthmi-$(VERSION) $(bindir)/gforthmi |
$(LN_S) $(bindir)/gforthmi-$(VERSION) $(bindir)/gforthmi |
| -$(INSTALL_DATA) $(srcdir)/doc/gforth.1 $(man1dir) |
-$(INSTALL_DATA) $(srcdir)/doc/gforth.1 $(man1dir) |
| $(INSTALL_DATA) $(srcdir)/$$i $(datadir)/gforth/$(VERSION)/$$i; \ |
$(INSTALL_DATA) $(srcdir)/$$i $(datadir)/gforth/$(VERSION)/$$i; \ |
| done |
done |
| $(INSTALL_DATA) $(kernel_fi) $(datadir)/gforth/$(VERSION) |
$(INSTALL_DATA) $(kernel_fi) $(datadir)/gforth/$(VERSION) |
| $(RM) gforth.fi; $(MAKE) gforth.fi #gforth.fi contains some path names |
$(RM) gforth.fi |
| |
GFORTHD="./gforth-ditc -p$(libdir)/gforth/site-forth$(PATHSEP)$(siteforthdir)$(PATHSEP)$(datadir)/gforth/$(VERSION) -i $(kernel_fi)" GFORTH="./gforth-ditc --die-on-signal -i $(kernel_fi) startup.fs" ./gforthmi gforth.fi $(FORTHSIZES) startup.fs #gforth.fi contains some path names |
| $(INSTALL_DATA) gforth.fi $(libdir)/gforth/$(VERSION) |
$(INSTALL_DATA) gforth.fi $(libdir)/gforth/$(VERSION) |
| $(INSTALL_DATA) install.TAGS $(datadir)/gforth/$(VERSION)/TAGS |
$(INSTALL_DATA) install.TAGS $(datadir)/gforth/$(VERSION)/TAGS |
| @if test -d $(emacssitelispdir); then \ |
@if test -d "$(emacssitelispdir)"; then \ |
| $(INSTALL_DATA) $(srcdir)/gforth.el $(emacssitelispdir); \ |
$(INSTALL_DATA) $(srcdir)/gforth.el $(emacssitelispdir); \ |
| else \ |
else \ |
| echo ">>>>>Please install $(srcdir)/gforth.el in your .../emacs/site-lisp directory"; \ |
echo ">>>>>Please install $(srcdir)/gforth.el in your .../emacs/site-lisp directory"; \ |
| install-strip: install |
install-strip: install |
| |
|
| installdirs: mkinstalldirs |
installdirs: mkinstalldirs |
| $(srcdir)/mkinstalldirs $(bindir) $(man1dir) $(infodir) $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(libdir)/gforth/site-forth $(datadir)/gforth/site-forth |
for i in $(bindir) $(man1dir) $(infodir) $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(libdir)/gforth/site-forth $(siteforthdir); do \ |
| |
$(srcdir)/mkinstalldirs $$i; \ |
| |
done |
| for i in $(CVSDIRS); do \ |
for i in $(CVSDIRS); do \ |
| $(srcdir)/mkinstalldirs $(datadir)/gforth/$(VERSION)/`dirname $$i`; \ |
$(srcdir)/mkinstalldirs $(datadir)/gforth/$(VERSION)/`dirname $$i`; \ |
| done |
done |
| @echo 'Expect no differences' |
@echo 'Expect no differences' |
| $(FORTHK) -m 100000 prims2x.fs -e "s\" $(srcdir)/prim.b\"' output-c process-file bye"| diff -c - $(srcdir)/engine/prim.i |
$(FORTHK) -m 100000 prims2x.fs -e "s\" $(srcdir)/prim.b\"' output-c process-file bye"| diff -c - $(srcdir)/engine/prim.i |
| |
|
| bench: gforth$(EXE) gforth.fi |
bench: gforth-fast$(EXE) 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) siev.fs -e "main bye" |
time $(FORTH_FAST) siev.fs -e "main bye" |
| time $(FORTH) bubble.fs -e "main bye" |
time $(FORTH_FAST) bubble.fs -e "main bye" |
| time $(FORTH) -m 160000 matrix.fs -e "main bye" |
time $(FORTH_FAST) -m 160000 matrix.fs -e "main bye" |
| time $(FORTH) fib.fs -e "main bye" |
time $(FORTH_FAST) fib.fs -e "main bye" |
| |
|
| # ------------- Make forth images |
# ------------- Make forth images |
| |
|
| $(FORTHK) -e 's" mach16l.fs"' kernel/main.fs -e "save-cross kernl16l.fi- $(bindir)/gforth-$(VERSION) bye" |
$(FORTHK) -e 's" mach16l.fs"' kernel/main.fs -e "save-cross kernl16l.fi- $(bindir)/gforth-$(VERSION) bye" |
| |
|
| kernl16b.fi-: $(KERN_SRC) kernel/version.fs mach16b.fs $(FORTH_GEN0) |
kernl16b.fi-: $(KERN_SRC) kernel/version.fs mach16b.fs $(FORTH_GEN0) |
| $(FORTHK) -e 's" mach16b.fs"' kernel/main.fs -e "save-cross kernl16b.fi- $(bindir)/gforth-$(VERSION) bye" |
$(FORTHK) -e 's" mach16b.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl16b.fi- $(bindir)/gforth-$(VERSION) bye" |
| |
|
| kernl32l.fi-: $(KERN_SRC) kernel/version.fs mach32l.fs $(FORTH_GEN0) |
kernl32l.fi-: $(KERN_SRC) kernel/version.fs mach32l.fs $(FORTH_GEN0) |
| $(FORTHK) -e 's" mach32l.fs"' kernel/main.fs -e "save-cross kernl32l.fi- $(bindir)/gforth-$(VERSION) bye" |
$(FORTHK) -e 's" mach32l.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl32l.fi- $(bindir)/gforth-$(VERSION) bye" |
| |
|
| kernl32b.fi-: $(KERN_SRC) kernel/version.fs mach32b.fs $(FORTH_GEN0) |
kernl32b.fi-: $(KERN_SRC) kernel/version.fs mach32b.fs $(FORTH_GEN0) |
| $(FORTHK) -e 's" mach32b.fs"' kernel/main.fs -e "save-cross kernl32b.fi- $(bindir)/gforth-$(VERSION) bye" |
$(FORTHK) -e 's" mach32b.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl32b.fi- $(bindir)/gforth-$(VERSION) bye" |
| |
|
| kernl64l.fi-: $(KERN_SRC) kernel/version.fs mach64l.fs $(FORTH_GEN0) |
kernl64l.fi-: $(KERN_SRC) kernel/version.fs mach64l.fs $(FORTH_GEN0) |
| $(FORTHK) -e 's" mach64l.fs"' kernel/main.fs -e "save-cross kernl64l.fi- $(bindir)/gforth-$(VERSION) bye" |
$(FORTHK) -e 's" mach64l.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl64l.fi- $(bindir)/gforth-$(VERSION) bye" |
| |
|
| kernl64b.fi-: $(KERN_SRC) kernel/version.fs mach64b.fs $(FORTH_GEN0) |
kernl64b.fi-: $(KERN_SRC) kernel/version.fs mach64b.fs $(FORTH_GEN0) |
| $(FORTHK) -e 's" mach64b.fs"' kernel/main.fs -e "save-cross kernl64b.fi- $(bindir)/gforth-$(VERSION) bye" |
$(FORTHK) -e 's" mach64b.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl64b.fi- $(bindir)/gforth-$(VERSION) bye" |
| |
|
| kernl-%.fi: arch/%/mach.fs \ |
kernl-%.fi: arch/%/mach.fs \ |
| $(KERN_SRC) kernel/version.fs $(FORTH_GEN0) |
$(KERN_SRC) kernel/version.fs $(FORTH_GEN0) |
| $(FORTHK) -e 's" $<"' kernel/main.fs -e "save-cross $@- $(bindir)/gforth-$(VERSION) bye" |
$(FORTHK) -e 's" $<"' $(srcdir)/kernel/main.fs -e "save-cross $@- $(bindir)/gforth-$(VERSION) bye" |
| if [ -f `echo $< | sed s/fs/sh/` ]; \ |
if [ -f `echo $< | sed s/fs/sh/` ]; \ |
| then sh `echo $< | sed s/fs/sh/` $@; \ |
then sh `echo $< | sed s/fs/sh/` $@; \ |
| else $(CP) $@- $@; \ |
else $(CP) $@- $@; \ |
| $(CP) engine/$@ $@ |
$(CP) engine/$@ $@ |
| @GFORTH_EXE@ |
@GFORTH_EXE@ |
| |
|
| |
gforth-fast$(EXE): engines |
| |
$(CP) engine/$@ $@ |
| |
@GFORTHFAST_EXE@ |
| |
|
| gforth-ditc$(EXE): engines |
gforth-ditc$(EXE): engines |
| $(CP) engine/$@ $@ |
$(CP) engine/$@ $@ |
| @GFORTHDITC_EXE@ |
@GFORTHDITC_EXE@ |
| |
|
| engines: FORCE |
engines: FORCE engine/Makefile |
| cd engine && $(MAKE) gforth$(EXE) gforth-ditc$(EXE) |
cd engine && $(MAKE) gforth$(EXE) gforth-fast$(EXE) gforth-ditc$(EXE) |
| |
|
| # ------------- additional C primitives |
# ------------- additional C primitives |
| |
|
| CONFIG_FILES=$@ CONFIG_HEADERS=engine/config.h ./config.status |
CONFIG_FILES=$@ CONFIG_HEADERS=engine/config.h ./config.status |
| echo timestamp > stamp-h |
echo timestamp > stamp-h |
| |
|
| Makefile: Makefile.in engine/Makefile.in config.status |
Makefile Makedist engine/Makefile gforthmi: Makefile.in Makedist.in engine/Makefile.in gforthmi.in config.status |
| CONFIG_FILES="$@ engine/$@" CONFIG_HEADERS=engine/config.h ./config.status |
|
| |
|
| gforthmi: gforthmi.in config.status |
|
| CONFIG_FILES="$@" CONFIG_HEADERS=engine/config.h ./config.status |
CONFIG_FILES="$@" CONFIG_HEADERS=engine/config.h ./config.status |
| |
|
| config.status: configure |
config.status: configure |