version 1.7, 1995/11/07 18:06:53
|
version 1.8, 1995/11/13 18:37:11
|
Line 40 FORTH = gforth
|
Line 40 FORTH = gforth
|
FORTHK = $(FORTH) -p . -i kernal.fi |
FORTHK = $(FORTH) -p . -i kernal.fi |
STRIP = strip |
STRIP = strip |
TEXI2DVI = texi2dvi |
TEXI2DVI = texi2dvi |
DVI2PS = dvips |
DVI2PS = dvips -D300 |
#you can get texi2html from http://asis01.cern.ch/infohtml/texi2html.html |
#you can get texi2html from http://asis01.cern.ch/infohtml/texi2html.html |
TEXI2HTML = texi2html |
TEXI2HTML = texi2html |
MAKEINFO = makeinfo |
MAKEINFO = makeinfo |
Line 83 FORTH_SRC = anslocal.fs add.fs assert.fs
|
Line 83 FORTH_SRC = anslocal.fs add.fs assert.fs
|
other.fs prims2x.fs random.fs search-order.fs see.fs sieve.fs source.fs \ |
other.fs prims2x.fs random.fs search-order.fs see.fs sieve.fs source.fs \ |
startup.fs struct.fs tools.fs toolsext.fs tt.fs vars.fs vt100.fs \ |
startup.fs struct.fs tools.fs toolsext.fs tt.fs vars.fs vt100.fs \ |
vt100key.fs wordinfo.fs wordsets.fs \ |
vt100key.fs wordinfo.fs wordsets.fs \ |
tester.fs coretest.fs |
tester.fs coretest.fs \ |
|
bubble.fs siev.fs matrix.fs fib.fs |
|
|
SOURCES = Makefile.in configure.in configure config.sub config.guess \ |
SOURCES = Makefile.in configure.in configure config.sub config.guess \ |
install-sh INSTALL README ToDo BUGS model COPYING \ |
install-sh INSTALL README ToDo BUGS model COPYING \ |
Line 189 binonlydist: $(SOURCES) $(FORTH_GEN) gfo
|
Line 190 binonlydist: $(SOURCES) $(FORTH_GEN) gfo
|
install: gforth $(FORTH_SRC) kernal.fi gforth.fi gforth.1 gforth.info |
install: gforth $(FORTH_SRC) kernal.fi gforth.fi gforth.1 gforth.info |
$(INSTALL) -d $(bindir) $(mandir) $(infodir) $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) |
$(INSTALL) -d $(bindir) $(mandir) $(infodir) $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) |
$(INSTALL_PROGRAM) -s gforth $(bindir) |
$(INSTALL_PROGRAM) -s gforth $(bindir) |
|
ln -f $(bindir)/gforth $(bindir)/gforth-$(VERSION) |
$(INSTALL_DATA) gforth.1 $(mandir) |
$(INSTALL_DATA) gforth.1 $(mandir) |
$(INSTALL_DATA) gforth.info* $(infodir) |
$(INSTALL_DATA) gforth.info* $(infodir) |
for i in $(FORTH_SRC); do \ |
for i in $(FORTH_SRC); do \ |
Line 197 install: gforth $(FORTH_SRC) kernal.fi g
|
Line 199 install: gforth $(FORTH_SRC) kernal.fi g
|
rm gforth.fi; make gforth.fi #gforth.fi contains some path names |
rm gforth.fi; make gforth.fi #gforth.fi contains some path names |
$(INSTALL_DATA) kernal.fi gforth.fi $(libdir)/gforth/$(VERSION) |
$(INSTALL_DATA) kernal.fi gforth.fi $(libdir)/gforth/$(VERSION) |
|
|
|
|
|
#deinstall all files specific to this version of gforth |
|
#to uninstall version foo, type `make uninstall VERSION=foo' |
|
uninstall: |
|
-$(RM) -rf $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(bindir)/gforth-$(VERSION) |
|
@echo "Type \n$(RM) -rf $(bindir)/gforth $(mandir)/gforth.1 $(infodir)/gforth.info* $(datadir)/gforth $(libdir)/gforth\n to remove gforth completely" |
|
|
check: test |
check: test |
touch test |
touch test |
|
|
test: gforth |
test: gforth |
@echo 'Expect to see INCORRECT RESULT: { GS1 -> <TRUE> <TRUE> }' |
|
@echo 'This is a bug of the testing program' |
|
$(FORTH) tester.fs coretest.fs -e bye |
$(FORTH) tester.fs coretest.fs -e bye |
$(FORTH) code.fs checkans.fs -e bye |
$(FORTH) code.fs checkans.fs -e bye |
@echo 'Expect no differences' |
@echo 'Expect no differences' |
$(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-c process-file bye"| diff -c - primitives.i |
$(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-c process-file bye"| diff -c - primitives.i |
|
|
|
bench: gforth |
|
@echo 'Each benchmark takes about 30s on a 486-66 (gcc-2.6.3 -DFORCE_REG)' |
|
time gforth/gforth siev.fs -e "main bye" |
|
time gforth/gforth bubble.fs -e "main bye" |
|
time gforth/gforth -m 1M matrix.fs -e "main bye" |
|
time gforth/gforth fib.fs -e "main bye" |
|
|
dvi: gforth.dvi |
dvi: gforth.dvi |
|
|
gforth: $(OBJECTS) |
gforth: $(OBJECTS) |
Line 320 gforth.dvi: gforth.texi
|
Line 334 gforth.dvi: gforth.texi
|
gforth.ps: gforth.dvi |
gforth.ps: gforth.dvi |
$(DVI2PS) gforth.dvi -o $@ |
$(DVI2PS) gforth.dvi -o $@ |
|
|
|
gforth.info*: gforth.info |
|
|
gforth.info: gforth.texi |
gforth.info: gforth.texi |
-$(MAKEINFO) gforth.texi |
-$(MAKEINFO) gforth.texi |
|
|