| STARTUP = -e 3 exboot.fs startup.fs @asm_fs@ @disasm_fs@ |
STARTUP = -e 3 exboot.fs startup.fs @asm_fs@ @disasm_fs@ |
| STRIP = strip |
STRIP = strip |
| TEXI2DVI = texi2dvi -e |
TEXI2DVI = texi2dvi -e |
| DVI2PS = dvips -t letterSize -Z |
TEXI2PDF = texi2dvi --pdf -e |
| |
DVI2PS = dvips -Pcmz -t letterSize -Z |
| #you can get texi2html from http://wwwcn.cern.ch/dci/texi2html/ |
#you can get texi2html from http://wwwcn.cern.ch/dci/texi2html/ |
| MAKEINFO = makeinfo |
MAKEINFO = makeinfo |
| TEXI2HTML = texi2html |
TEXI2HTML = texi2html |
| FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC) $(EC_SRC) \ |
FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC) $(EC_SRC) \ |
| ans-report.fs ansi.fs answords.fs \ |
ans-report.fs ansi.fs answords.fs \ |
| colorize.fs comp-i.fs \ |
colorize.fs comp-i.fs \ |
| doskey.fs ds2texi.fs \ |
dosekey.fs doskey.fs ds2texi.fs \ |
| envos.fs envos.dos envos.os2 etags.fs filedump.fs fi2c.fs \ |
envos.fs envos.dos envos.os2 etags.fs filedump.fs fi2c.fs \ |
| glosgen.fs gray.fs httpd.fs proxy.fs \ |
glosgen.fs gray.fs httpd.fs proxy.fs \ |
| make-app.fs doc/makedoc.fs \ |
make-app.fs doc/makedoc.fs \ |
| |
|
| RCS_FILES = ToDo model high-level |
RCS_FILES = ToDo model high-level |
| |
|
| ENGINES = gforth$(EXE) gforth-ditc$(EXE) gforth-fast$(EXE) gforth-itc$(EXE) gforth-prof$(EXE) #gforth-native$(EXE) |
ENGINES = gforth$(EXE) gforth-ditc$(EXE) gforth-fast$(EXE) gforth-itc$(EXE) #gforth-prof$(EXE) #gforth-native$(EXE) |
| |
|
| GEN = $(ENGINES) kernel/version.fs |
GEN = $(ENGINES) kernel/version.fs |
| |
|
| engine/prim_superend.i engine/profile.i \ |
engine/prim_superend.i engine/profile.i \ |
| engine/prim_num.i engine/prim_grp.i \ |
engine/prim_num.i engine/prim_grp.i \ |
| engine/costs.i engine/super2.i |
engine/costs.i engine/super2.i |
| FORTH_GEN0 = prim.b $(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_GEN = $(FORTH_GEN0) @KERNEL@ gforth.fi |
FORTH_GEN = $(FORTH_GEN0) @KERNEL@ gforth.fi |
| # this is used for antidependences, |
# this is used for antidependences, |
| FORTH_GEN1 = $(FORTH_GEN0) @kernel_fi@ |
FORTH_GEN1 = $(FORTH_GEN0) @kernel_fi@ |
| -$(RM) -rf $(GEN) *.o engine/*.o arch/*/*.o version \ |
-$(RM) -rf $(GEN) *.o engine/*.o arch/*/*.o version \ |
| engine/gforth$(EXE) engine/gforth-fast$(EXE) \ |
engine/gforth$(EXE) engine/gforth-fast$(EXE) \ |
| engine/gforth-native$(EXE) engine/gforth-itc$(EXE) \ |
engine/gforth-native$(EXE) engine/gforth-itc$(EXE) \ |
| engine/gforth-ditc$(EXE) engine/gforth-prof$(EXE) |
engine/gforth-ditc$(EXE) #engine/gforth-prof$(EXE) |
| |
|
| distclean: clean |
distclean: clean |
| -$(RM) -rf config.cache config.log config.status \ |
-$(RM) -rf config.cache config.log config.status \ |
| $(MAKE) -f Makedist d$@ |
$(MAKE) -f Makedist d$@ |
| -$(RM) machpc.fs |
-$(RM) machpc.fs |
| |
|
| |
#HPUX make breaks the cycle differently when the dates are equal, so |
| |
# touch some of the files if it acts up |
| |
hpux-workaround: |
| |
touch $(FORTH_GEN_PRIMB) |
| |
|
| #strip gforth, because the debugging stuff is hardly useful once |
#strip gforth, because the debugging stuff is hardly useful once |
| # gforth manages to execute more than a few primitives. |
# gforth manages to execute more than a few primitives. |
| |
|
| prim.b: prim peeprules.vmg |
prim.b: prim peeprules.vmg |
| m4 -s $(srcdir)/prim >$@ |
m4 -s $(srcdir)/prim >$@ |
| |
sleep 1 #should make hpux-workaround unnecessary |
| |
|
| engine/prim.i: prim.b prims2x.fs |
engine/prim.i: prim.b prims2x.fs |
| $(FORTHP) prims2x.fs -e "c-flag on s\" prim.i\" save-mem out-filename 2! s\" prim.b\" ' output-c ' output-c-combined process-file bye" >$@- |
$(FORTHP) prims2x.fs -e "c-flag on s\" prim.i\" save-mem out-filename 2! s\" prim.b\" ' output-c ' output-c-combined process-file bye" >$@- |
| $(CP) gforth.tags $@ |
$(CP) gforth.tags $@ |
| |
|
| install.TAGS: gforth.TAGS |
install.TAGS: gforth.TAGS |
| sed 's:^\$(srcdir)/:$(datadir)/gforth/$(VERSION)/:' gforth.TAGS >install.TAGS |
sed 's;^\$(srcdir)/;$(datadir)/gforth/$(VERSION)/;' gforth.TAGS >install.TAGS |
| |
|
| gforth.TAGS: @kernel_fi@ gforth$(EXE) $(GFORTH_FI_SRC) prim.TAGS kernel.TAGS |
gforth.TAGS: @kernel_fi@ gforth$(EXE) $(GFORTH_FI_SRC) prim.TAGS kernel.TAGS |
| $(FORTHK) etags.fs except.fs startup.fs -e bye |
$(FORTHK) etags.fs except.fs startup.fs -e bye |
| |
|
| dvi: doc/gforth.dvi doc/vmgen.dvi |
dvi: doc/gforth.dvi doc/vmgen.dvi |
| |
|
| |
pdf: doc/gforth.pdf doc/vmgen.pdf |
| |
|
| doc/gforth.dvi doc/gforth.fns: $(GFORTH_TEXI) |
doc/gforth.dvi doc/gforth.fns: $(GFORTH_TEXI) |
| cd doc; $(TEXI2DVI) gforth.texi |
cd doc; $(TEXI2DVI) gforth.texi |
| |
|
| |
doc/gforth.pdf: $(GFORTH_TEXI) |
| |
cd doc; $(TEXI2PDF) gforth.texi |
| |
|
| doc/vmgen.dvi: $(VMGEN_TEXI) |
doc/vmgen.dvi: $(VMGEN_TEXI) |
| cd doc; $(TEXI2DVI) vmgen.texi |
cd doc; $(TEXI2DVI) vmgen.texi |
| |
|
| |
doc/vmgen.pdf: $(VMGEN_TEXI) |
| |
cd doc; $(TEXI2PDF) vmgen.texi |
| |
|
| doc/gforth.ps: doc/gforth.dvi |
doc/gforth.ps: doc/gforth.dvi |
| $(DVI2PS) doc/gforth.dvi -o $@ |
$(DVI2PS) doc/gforth.dvi -o $@ |
| |
|