version 1.272, 2003/08/16 19:46:10
|
version 1.281, 2003/09/14 15:06:28
|
Line 88 FORTHK = $(ENGINE) $(FORTHKFLAGS)
|
Line 88 FORTHK = $(ENGINE) $(FORTHKFLAGS)
|
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 |
|
TEXI2PDF = texi2dvi --pdf -e |
DVI2PS = dvips -t letterSize -Z |
DVI2PS = dvips -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 |
Line 126 man1ext= .1
|
Line 127 man1ext= .1
|
emacssitelispdir=@lispdir@ |
emacssitelispdir=@lispdir@ |
siteforthdir=$(datadir)/gforth/site-forth |
siteforthdir=$(datadir)/gforth/site-forth |
|
|
|
PROFOBJS = @PROFOBJS@ |
|
PROFEXES = @PROFEXES@ |
|
|
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 unix/CVS \ |
compat/CVS unix/CVS \ |
arch/CVS arch/generic/CVS arch/m68k/CVS arch/mips/CVS \ |
arch/CVS arch/generic/CVS arch/m68k/CVS arch/mips/CVS \ |
arch/386/CVS arch/hppa/CVS arch/sparc/CVS arch/power/CVS \ |
arch/386/CVS arch/hppa/CVS arch/sparc/CVS arch/power/CVS \ |
arch/alpha/CVS arch/4stack/CVS arch/misc/CVS arch/6502/CVS \ |
arch/alpha/CVS arch/4stack/CVS arch/misc/CVS arch/6502/CVS \ |
arch/8086/CVS arch/avr/CVS arch/c165/CVS arch/h8/CVS \ |
arch/8086/CVS arch/avr/CVS arch/c165/CVS arch/h8/CVS \ |
arch/shboom/CVS arch/sharc/CVS arch/ia64/CVS |
arch/shboom/CVS arch/sharc/CVS arch/ia64/CVS arch/amd64/CVS \ |
|
arch/arm/CVS |
|
|
INCLUDES = engine/forth.h engine/threaded.h engine/io.h |
INCLUDES = engine/forth.h engine/threaded.h engine/io.h |
|
|
Line 231 GFORTH_FI_SRC = \
|
Line 236 GFORTH_FI_SRC = \
|
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 \ |
Line 276 ARCHS = \
|
Line 281 ARCHS = \
|
arch/power/machine.h \ |
arch/power/machine.h \ |
arch/power/_sync_cache_range.c \ |
arch/power/_sync_cache_range.c \ |
arch/alpha/machine.h \ |
arch/alpha/machine.h \ |
|
arch/arm/machine.h \ |
arch/ia64/machine.h \ |
arch/ia64/machine.h \ |
|
arch/ia64/flush_icache_block.c \ |
|
arch/amd64/machine.h \ |
arch/4stack/README \ |
arch/4stack/README \ |
arch/4stack/asm.fs \ |
arch/4stack/asm.fs \ |
arch/4stack/mach.fs \ |
arch/4stack/mach.fs \ |
Line 346 SOURCES = $(CVSDIRS) compat Makefile.in
|
Line 354 SOURCES = $(CVSDIRS) compat Makefile.in
|
$(ARCHS) \ |
$(ARCHS) \ |
engine/profile.c \ |
engine/profile.c \ |
engine/getopt.c engine/getopt1.c engine/getopt.h engine/select.c \ |
engine/getopt.c engine/getopt1.c engine/getopt.h engine/select.c \ |
engine/ecvt.c engine/memcmp.c engine/strtol.c engine/strtoul.c \ |
engine/ecvt.c engine/memcmp.c engine/rint.c \ |
|
engine/strtol.c engine/strtoul.c \ |
engine/ansidecl.h engine/memmove.c \ |
engine/ansidecl.h engine/memmove.c \ |
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 \ |
Line 362 SOURCES = $(CVSDIRS) compat Makefile.in
|
Line 371 SOURCES = $(CVSDIRS) compat Makefile.in
|
|
|
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) $(PROFEXES) #gforth-native$(EXE) |
|
|
GEN = $(ENGINES) kernel/version.fs |
GEN = $(ENGINES) kernel/version.fs |
|
|
Line 371 FORTH_GEN_ENGINE=engine/prim.i engine/pr
|
Line 380 FORTH_GEN_ENGINE=engine/prim.i engine/pr
|
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@ |
Line 470 virtualclean: mostlyclean
|
Line 480 virtualclean: mostlyclean
|
#Some makes (Ultrix, SunOS, IRIX) are so broken, they cannot read the |
#Some makes (Ultrix, SunOS, IRIX) are so broken, they cannot read the |
#Makefile if it contains our dist rules. Therefore we have put these |
#Makefile if it contains our dist rules. Therefore we have put these |
#rules in Makedist (you can use them with GNU make on these systems). |
#rules in Makedist (you can use them with GNU make on these systems). |
dist: Makedist FORCE |
|
|
dist: Makedist machpc.fs FORCE |
|
-sed -e 's/@[^ ]*CALLFLAG@/false/g' -e 's/@[P]EEPHOLEFLAG@/true/g' <machpc.fs.in >machpc.fs |
$(MAKE) -f Makedist d$@ |
$(MAKE) -f Makedist d$@ |
|
-$(RM) machpc.fs |
|
|
dosdist: Makedist FORCE |
dosdist: Makedist machpc.fs FORCE |
|
-sed -e 's/@[^ ]*CALLFLAG@/false/g' -e 's/@[P]EEPHOLEFLAG@/true/g' <machpc.fs.in >machpc.fs |
$(MAKE) -f Makedist d$@ |
$(MAKE) -f Makedist d$@ |
|
-$(RM) machpc.fs |
|
|
srcdist: Makedist FORCE |
srcdist: Makedist FORCE |
$(MAKE) -f Makedist d$@ |
$(MAKE) -f Makedist d$@ |
Line 488 docdist: Makedist FORCE
|
Line 503 docdist: Makedist FORCE
|
htmldist: Makedist FORCE |
htmldist: Makedist FORCE |
$(MAKE) -f Makedist d$@ |
$(MAKE) -f Makedist d$@ |
|
|
bindist: Makedist FORCE |
bindist: Makedist machpc.fs FORCE |
|
-sed -e 's/@[^ ]*CALLFLAG@/false/g' -e 's/@[P]EEPHOLEFLAG@/true/g' <machpc.fs.in >machpc.fs |
$(MAKE) -f Makedist d$@ |
$(MAKE) -f Makedist d$@ |
|
-$(RM) machpc.fs |
|
|
binonlydist: Makedist FORCE |
binonlydist: Makedist machpc.fs FORCE |
|
-sed -e 's/@[^ ]*CALLFLAG@/false/g' -e 's/@[P]EEPHOLEFLAG@/true/g' <machpc.fs.in >machpc.fs |
$(MAKE) -f Makedist d$@ |
$(MAKE) -f Makedist d$@ |
|
-$(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. |
Line 629 kernl64b.fi-: $(KERN_DEPS) mach64b.fs
|
Line 652 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" |
|
|
#Solaris make does not like that: |
#Solaris make does not like that: |
#kernl-%.fi: arch/%/mach.fs arch/%/prim.fs arch/%/asm.fs $(KERN_SRC) kernel/version.fs $(FORTH_GEN0) |
@GNUMAKE@kernl-%.fi: arch/%/mach.fs arch/%/prim.fs arch/%/asm.fs $(KERN_SRC) kernel/version.fs $(FORTH_GEN0) |
# $(FORTHB) -e 's" $<"' $(srcdir)/kernel/main.fs -e "save-cross $@- $(bindir)/gforth-$(VERSION) bye" |
@GNUMAKE@ $(FORTHB) -e 's" $<"' $(srcdir)/kernel/main.fs -e "save-cross $@- $(bindir)/gforth-$(VERSION) bye" |
# if [ -f `echo $< | sed s/fs/sh/` ]; \ |
@GNUMAKE@ if [ -f `echo $< | sed s/fs/sh/` ]; \ |
# then sh `echo $< | sed s/fs/sh/` $@; \ |
@GNUMAKE@ then sh `echo $< | sed s/fs/sh/` $@; \ |
# else $(CP) $@- $@; \ |
@GNUMAKE@ else $(CP) $@- $@; \ |
# fi |
@GNUMAKE@ 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 |
Line 673 gforth.fi: $(kernel_fi) gforthmi gforth$
|
Line 696 gforth.fi: $(kernel_fi) gforthmi gforth$
|
# ------------- Make c-engine |
# ------------- Make c-engine |
|
|
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" >$@- |
Line 782 tags: gforth.tags
|
Line 806 tags: gforth.tags
|
$(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 |
Line 834 checkdoc: doc/gforth.ds prim.b ds2texi.f
|
Line 858 checkdoc: doc/gforth.ds prim.b ds2texi.f
|
|
|
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 $@ |
|
|
Line 868 doc/gforth.txt: $(GFORTH_TEXI)
|
Line 900 doc/gforth.txt: $(GFORTH_TEXI)
|
doc/vmgen.txt: $(VMGEN_TEXI) |
doc/vmgen.txt: $(VMGEN_TEXI) |
-cd doc; $(MAKEINFO) --no-headers --no-split vmgen.texi >vmgen.txt |
-cd doc; $(MAKEINFO) --no-headers --no-split vmgen.texi >vmgen.txt |
|
|
doc: info doc/gforth doc/vmgen doc/gforth.ps doc/vmgen.ps doc/gforth.txt doc/vmgen.txt TAGS |
doc: gforth.fi info doc/gforth doc/vmgen doc/gforth.ps doc/vmgen.ps doc/gforth.txt doc/vmgen.txt TAGS |
|
|
# For an explanation of the following Makefile rules, see node |
# For an explanation of the following Makefile rules, see node |
# `Automatic Remaking' in GNU Autoconf documentation. |
# `Automatic Remaking' in GNU Autoconf documentation. |