| # possible to override this variable at the command line for an initial build (jaw) |
# possible to override this variable at the command line for an initial build (jaw) |
| BUILDFORTH = $(ENGINE) --die-on-signal -m 4M -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" -i $(kernel_fi) |
BUILDFORTH = $(ENGINE) --die-on-signal -m 4M -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" -i $(kernel_fi) |
| # the forth system plus flags we use to build |
# the forth system plus flags we use to build |
| FORTHB = $(BUILDFORTH) -e 'fpath= .|~+|$(srcdir)' |
FORTHB = $(BUILDFORTH) -e 'fpath= .|~+|$(srcdir)' except.fs |
| # the Forth system for running prims2x.fs |
# the Forth system for running prims2x.fs |
| FORTHP = $(FORTH) |
FORTHP = $(FORTH) |
| ENGINE_FAST = $(ENGINE)-fast |
ENGINE_FAST = $(ENGINE)-fast |
| touch $(siteforthdir)/siteinit.fs |
touch $(siteforthdir)/siteinit.fs |
| -$(RM) $(bindir)/gforth$(EXE) $(bindir)/gforth-$(VERSION)$(EXE) $(bindir)/gforthmi $(bindir)/vmgen |
-$(RM) $(bindir)/gforth$(EXE) $(bindir)/gforth-$(VERSION)$(EXE) $(bindir)/gforthmi $(bindir)/vmgen |
| -$(RM) $(bindir)/gforth-fast$(EXE) $(bindir)/gforth-fast-$(VERSION)$(EXE) |
-$(RM) $(bindir)/gforth-fast$(EXE) $(bindir)/gforth-fast-$(VERSION)$(EXE) |
| |
-$(RM) $(bindir)/gforth-itc$(EXE) $(bindir)/gforth-itc-$(VERSION)$(EXE) |
| $(INSTALL_PROGRAM) -s gforth$(EXE) $(bindir)/gforth-$(VERSION)$(EXE) |
$(INSTALL_PROGRAM) -s gforth$(EXE) $(bindir)/gforth-$(VERSION)$(EXE) |
| (cd $(bindir) && $(LN_S) gforth-$(VERSION)$(EXE) gforth$(EXE)) |
(cd $(bindir) && $(LN_S) gforth-$(VERSION)$(EXE) gforth$(EXE)) |
| $(INSTALL_PROGRAM) -s gforth-fast$(EXE) $(bindir)/gforth-fast-$(VERSION)$(EXE) |
$(INSTALL_PROGRAM) -s gforth-fast$(EXE) $(bindir)/gforth-fast-$(VERSION)$(EXE) |
| (cd $(bindir) && $(LN_S) gforth-fast-$(VERSION)$(EXE) gforth-fast$(EXE)) |
(cd $(bindir) && $(LN_S) gforth-fast-$(VERSION)$(EXE) gforth-fast$(EXE)) |
| |
$(INSTALL_PROGRAM) -s gforth-itc$(EXE) $(bindir)/gforth-itc-$(VERSION)$(EXE) |
| |
(cd $(bindir) && $(LN_S) gforth-itc-$(VERSION)$(EXE) gforth-itc$(EXE)) |
| $(INSTALL_PROGRAM) gforthmi $(bindir)/gforthmi-$(VERSION) |
$(INSTALL_PROGRAM) gforthmi $(bindir)/gforthmi-$(VERSION) |
| $(INSTALL_PROGRAM) vmgen $(bindir)/vmgen-$(VERSION) |
$(INSTALL_PROGRAM) vmgen $(bindir)/vmgen-$(VERSION) |
| $(INSTALL_PROGRAM) gforth-ditc $(libdir)/gforth/$(VERSION) |
$(INSTALL_PROGRAM) gforth-ditc $(libdir)/gforth/$(VERSION) |
| #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 |
| -$(RM) -rf $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(bindir)/gforth-$(VERSION)$(EXE) $(bindir)/gforth-fast-$(VERSION)$(EXE) $(bindir)/gforthmi-$(VERSION) (bindir)/vmgen-$(VERSION) |
-$(RM) -rf $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(bindir)/gforth-$(VERSION)$(EXE) $(bindir)/gforth-fast-$(VERSION)$(EXE) $(bindir)/gforth-itc-$(VERSION)$(EXE) $(bindir)/gforthmi-$(VERSION) (bindir)/vmgen-$(VERSION) |
| @echo -e "To remove Gforth completely, type\n$(RM) -rf $(bindir)/gforth$(EXE) $(bindir)/gforth-fast$(EXE) $(bindir)/gforthmi $(bindir)/vmgen $(man1dir)/gforth.1 $(infodir)/gforth.info* $(datadir)/gforth $(libdir)/gforth" |
@echo -e "To remove Gforth completely, type\n$(RM) -rf $(bindir)/gforth$(EXE) $(bindir)/gforth-fast$(EXE) $(bindir)/gforth-itc$(EXE) $(bindir)/gforthmi $(bindir)/vmgen $(man1dir)/gforth.1 $(infodir)/gforth.info* $(datadir)/gforth $(libdir)/gforth" |
| |
|
| check: gforths gforth.fi |
check: gforths gforth.fi |
| $(MAKE) checkone ENGINE="./gforth --no-dynamic" >/dev/null 2>&1 |
$(MAKE) checkone ENGINE="./gforth --no-dynamic" >/dev/null 2>&1 |
| kernl64b.fi-: $(KERN_DEPS) mach64b.fs |
kernl64b.fi-: $(KERN_DEPS) mach64b.fs |
| $(FORTHB) -e 's" mach64b.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl64b.fi- $(bindir)/gforth-$(VERSION) bye" |
$(FORTHB) -e 's" mach64b.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl64b.fi- $(bindir)/gforth-$(VERSION) bye" |
| |
|
| kernl-%.fi: arch/%/mach.fs arch/%/prim.fs arch/%/asm.fs $(KERN_SRC) kernel/version.fs $(FORTH_GEN0) |
#Solaris make does not like that: |
| $(FORTHB) -e 's" $<"' $(srcdir)/kernel/main.fs -e "save-cross $@- $(bindir)/gforth-$(VERSION) bye" |
#kernl-%.fi: arch/%/mach.fs arch/%/prim.fs arch/%/asm.fs $(KERN_SRC) kernel/version.fs $(FORTH_GEN0) |
| if [ -f `echo $< | sed s/fs/sh/` ]; \ |
# $(FORTHB) -e 's" $<"' $(srcdir)/kernel/main.fs -e "save-cross $@- $(bindir)/gforth-$(VERSION) bye" |
| then sh `echo $< | sed s/fs/sh/` $@; \ |
# if [ -f `echo $< | sed s/fs/sh/` ]; \ |
| else $(CP) $@- $@; \ |
# then sh `echo $< | sed s/fs/sh/` $@; \ |
| fi |
# else $(CP) $@- $@; \ |
| |
# fi |
| |
|
| #SunOS make does not like that |
#SunOS make does not like that |
| #arch/%/mach.fs: arch/%/prim.fs arch/%/asm.fs |
#arch/%/mach.fs: arch/%/prim.fs arch/%/asm.fs |