version 1.49, 1995/12/15 01:54:08
|
version 1.50, 1995/12/23 16:21:55
|
Line 26
|
Line 26
|
#To do: |
#To do: |
#use $(srcdir) to make compilation in a non-srcdir possible |
#use $(srcdir) to make compilation in a non-srcdir possible |
|
|
VERSION =0.1beta#gforth version |
VERSION =0.1beta-pl1#gforth version |
SHELL = /bin/sh |
SHELL = /bin/sh |
RM = rm |
RM = rm |
CP = cp |
CP = cp |
Line 75 INCLUDES = forth.h threading.h io.h io-d
|
Line 75 INCLUDES = forth.h threading.h io.h io-d
|
KERN_SRC = main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \ |
KERN_SRC = main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \ |
errore.fs kernal.fs version.fs extend.fs tools.fs toolsext.fs |
errore.fs kernal.fs version.fs extend.fs tools.fs toolsext.fs |
|
|
|
GFORTH_FI_SRC = startup.fs glocals.fs search-order.fs hash.fs float.fs \ |
|
debugging.fs environ.fs wordinfo.fs look.fs vt100.fs see.fs \ |
|
bufio.fs debug.fs history.fs vt100key.fs assert.fs source.fs \ |
|
blocks.fs struct.fs dumpimage.fs |
|
|
FORTH_SRC = anslocal.fs add.fs assert.fs ansi.fs answords.fs blocks.fs bufio.fs checkans.fs \ |
FORTH_SRC = anslocal.fs add.fs assert.fs ansi.fs answords.fs blocks.fs bufio.fs checkans.fs \ |
code.fs colorize.fs cross.fs debug.fs debugging.fs doskey.fs ds2texi.fs \ |
code.fs colorize.fs cross.fs debug.fs debugging.fs doskey.fs ds2texi.fs \ |
dumpimage.fs environ.fs errore.fs etags.fs extend.fs filedump.fs \ |
dumpimage.fs environ.fs errore.fs etags.fs extend.fs filedump.fs \ |
Line 165 realclean: distclean
|
Line 170 realclean: distclean
|
#mostlyclean, but also remove some of the stuff that is distributed |
#mostlyclean, but also remove some of the stuff that is distributed |
virtualclean: mostlyclean |
virtualclean: mostlyclean |
-$(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 *~ *TAGS |
|
|
dist: $(SOURCES) $(FORTH_GEN) $(DOCDIST) |
dist: $(SOURCES) $(FORTH_GEN) $(DOCDIST) |
-rm -rf gforth-$(VERSION) |
-rm -rf gforth-$(VERSION) |
Line 203 binonlydist: $(SOURCES) $(FORTH_GEN) gfo
|
Line 208 binonlydist: $(SOURCES) $(FORTH_GEN) gfo
|
#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 |
|
|
install: gforth $(FORTH_SRC) kernal.fi gforth.fi gforth.1 gforth.info* |
install: gforth $(FORTH_SRC) kernal.fi gforth.fi gforth.1 gforth.info* primitives gforth.TAGS |
for i in $(bindir) $(mandir) $(infodir) $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(libdir)/gforth/site-forth $(datadir)/gforth/site-forth; do \ |
for i in $(bindir) $(mandir) $(infodir) $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(libdir)/gforth/site-forth $(datadir)/gforth/site-forth; do \ |
$(INSTALL_DIR) $$i; \ |
$(INSTALL_DIR) $$i; \ |
done |
done |
Line 213 install: gforth $(FORTH_SRC) kernal.fi g
|
Line 218 install: gforth $(FORTH_SRC) kernal.fi g
|
ln $(bindir)/gforth $(bindir)/gforth-$(VERSION) |
ln $(bindir)/gforth $(bindir)/gforth-$(VERSION) |
$(INSTALL_DATA) gforth.1 $(mandir) |
$(INSTALL_DATA) gforth.1 $(mandir) |
for i in gforth.info*; do $(INSTALL_DATA) $$i $(infodir); done |
for i in gforth.info*; do $(INSTALL_DATA) $$i $(infodir); done |
for i in $(FORTH_SRC); do \ |
for i in $(FORTH_SRC) primitives; do \ |
$(INSTALL_DATA) $$i $(datadir)/gforth/$(VERSION); \ |
$(INSTALL_DATA) $$i $(datadir)/gforth/$(VERSION); \ |
done |
done |
$(INSTALL_DATA) kernal.fi $(libdir)/gforth/$(VERSION) |
$(INSTALL_DATA) kernal.fi $(libdir)/gforth/$(VERSION) |
$(FORTHK) startup.fs dumpimage.fs -e "savesystem $(libdir)/gforth/$(VERSION)/gforth.fi bye" #gforth.fi contains some path names |
$(FORTHK) startup.fs dumpimage.fs -e "savesystem $(libdir)/gforth/$(VERSION)/gforth.fi bye" #gforth.fi contains some path names |
|
sed s:$(srcdir)/:$(datadir)/gforth/$(VERSION): gforth.TAGS >TAGS; $(INSTALL_DATA) TAGS $(datadir)/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' |
Line 297 kernl64l.fi: $(KERNLS)
|
Line 302 kernl64l.fi: $(KERNLS)
|
-$(CP) kernl64l.fi- kernl64l.fi |
-$(CP) kernl64l.fi- kernl64l.fi |
@LINK_KERNL64L@ |
@LINK_KERNL64L@ |
|
|
gforth.fi: @kernal_fi@ gforth startup.fs glocals.fs search-order.fs hash.fs float.fs debugging.fs environ.fs wordinfo.fs look.fs vt100.fs see.fs bufio.fs debug.fs history.fs vt100key.fs assert.fs source.fs blocks.fs struct.fs dumpimage.fs |
gforth.fi: @kernal_fi@ gforth $(GFORTH_FI_SRC) |
$(FORTHK) startup.fs dumpimage.fs -e "savesystem gforth.fi bye" |
$(FORTHK) startup.fs -e "savesystem gforth.fi bye" |
|
|
|
gforth.TAGS: @kernal_fi@ gforth $(GFORTH_FI_SRC) primitives.TAGS |
|
$(FORTHK) etags.fs startup.fs -e bye |
|
cat TAGS primitives.TAGS kernal.TAGS >gforth.TAGS |
|
|
engine.s: engine.c primitives.i prim_labels.i machine.h threading.h $(INCLUDES) |
engine.s: engine.c primitives.i prim_labels.i machine.h threading.h $(INCLUDES) |
$(GCC) $(CFLAGS) $(ENGINE_FLAGS) -S engine.c |
$(GCC) $(CFLAGS) $(ENGINE_FLAGS) -S engine.c |
Line 312 main.o: main.c machine.h threading.h $(
|
Line 321 main.o: main.c machine.h threading.h $(
|
strtoul.o: strtoul.c strtol.c |
strtoul.o: strtoul.c strtol.c |
|
|
primitives.b: primitives |
primitives.b: primitives |
m4 primitives >$@ |
m4 -s $(srcdir)/primitives >$@ |
|
|
primitives.i : primitives.b prims2x.fs |
primitives.i : primitives.b prims2x.fs |
$(FORTHK) -p . prims2x.fs -e "s\" primitives.b\" ' output-c process-file bye" >$@ |
$(FORTHK) -p . prims2x.fs -e "s\" primitives.b\" ' output-c process-file bye" >$@ |
Line 326 aliases.fs: primitives.b prims2x.fs
|
Line 335 aliases.fs: primitives.b prims2x.fs
|
primitives.fs: primitives.b prims2x.fs |
primitives.fs: primitives.b prims2x.fs |
$(FORTHK) -p . prims2x.fs -e "s\" primitives.b\" ' output-forth process-file bye" >$@ |
$(FORTHK) -p . prims2x.fs -e "s\" primitives.b\" ' output-forth process-file bye" >$@ |
|
|
|
primitives.TAGS: primitives.b prims2x.fs |
|
$(FORTHK) -p . prims2x.fs -e "s\" primitives.b\" ' output-tag process-file bye" >$@ |
|
|
doc.fd: makedoc.fs float.fs search-order.fs glocals.fs environ.fs \ |
doc.fd: makedoc.fs float.fs search-order.fs glocals.fs environ.fs \ |
toolsext.fs wordinfo.fs \ |
toolsext.fs wordinfo.fs \ |