| SWITCHES = $(XCFLAGS) $(XDEFINES) #-DNDEBUG #turn off assertions |
SWITCHES = $(XCFLAGS) $(XDEFINES) #-DNDEBUG #turn off assertions |
| ENGINE_FLAGS = -fno-defer-pop -fcaller-saves |
ENGINE_FLAGS = -fno-defer-pop -fcaller-saves |
| DEBUGFLAG = @DEBUGFLAG@ |
DEBUGFLAG = @DEBUGFLAG@ |
| CFLAGS = $(DEBUGFLAG) -pipe -O4 -Wall $(SWITCHES) -DDEFAULTPATH=\"$(datadir)/gforth/$(VERSION):$(libdir)/gforth/$(VERSION):.\" |
CFLAGS = $(DEBUGFLAG) -O4 -Wall $(SWITCHES) -DDEFAULTPATH=\"$(datadir)/gforth/$(VERSION):$(libdir)/gforth/$(VERSION):.\" |
| |
|
| #John Wavrik should use -Xlinker -N to get a writable text (executable) |
#John Wavrik should use -Xlinker -N to get a writable text (executable) |
| XLDFLAGS = @LDFLAGS@ |
XLDFLAGS = @LDFLAGS@ |
| 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 Benchres \ |
| gforth.ds texinfo.tex gforth.1 gforth.el \ |
gforth.ds texinfo.tex gforth.1 gforth.el \ |
| primitives engine.c main.c io.c \ |
primitives engine.c main.c io.c \ |
| m68k.h mips.h 386.h hppa.h cache.c sparc.h power.h alpha.h 32bit.h \ |
m68k.h mips.h 386.h hppa.h cache.c sparc.h power.h alpha.h 32bit.h \ |
| 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 \ |
| 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 -e "Type\n$(RM) -rf $(bindir)/gforth $(mandir)/gforth.1 $(infodir)/gforth.info* $(datadir)/gforth $(libdir)/gforth\nto remove Gforth completely" |
| |
|
| check: test |
check: test |
| touch test |
touch test |
| |
|
| @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 $(FORTH) siev.fs -e "main bye" |
| |
time $(FORTH) bubble.fs -e "main bye" |
| |
time $(FORTH) -m 1M matrix.fs -e "main bye" |
| |
time $(FORTH) fib.fs -e "main bye" |
| |
|
| dvi: gforth.dvi |
dvi: gforth.dvi |
| |
|
| gforth: $(OBJECTS) |
gforth: $(OBJECTS) |
| 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 |
| |
|