| 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) -O4 -Wall $(SWITCHES) -DDEFAULTPATH=\"$(datadir)/gforth/$(VERSION):$(libdir)/gforth/$(VERSION):.\" |
CFLAGS = $(DEBUGFLAG) -O4 -Wall $(SWITCHES) -DDEFAULTPATH=\"$(libdir)/gforth/site-forth:$(datadir)/gforth/site-forth:$(libdir)/gforth/$(VERSION):$(datadir)/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@ |
| kernal.fs locals-test.fs look.fs main.fs makedoc.fs \ |
kernal.fs locals-test.fs look.fs main.fs makedoc.fs \ |
| mach16b.fs mach16l.fs mach32b.fs mach32l.fs mach64b.fs mach64l.fs \ |
mach16b.fs mach16l.fs mach32b.fs mach32l.fs mach64b.fs mach64l.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 site-init.fs struct.fs tools.fs toolsext.fs tt.fs vars.fs \ |
| vt100key.fs wordinfo.fs wordsets.fs \ |
vt100.fs vt100key.fs wordinfo.fs wordsets.fs \ |
| tester.fs coretest.fs \ |
tester.fs coretest.fs \ |
| bubble.fs siev.fs matrix.fs fib.fs |
bubble.fs siev.fs matrix.fs fib.fs |
| |
|
| # 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 |
| $(INSTALL) -d $(bindir) $(mandir) $(infodir) $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) |
$(INSTALL) -d $(bindir) $(mandir) $(infodir) $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(libdir)/gforth/site-forth $(datadir)/gforth/site-forth |
| |
touch $(datadir)/gforth/site-forth/site-init.fs |
| $(INSTALL_PROGRAM) -s gforth $(bindir) |
$(INSTALL_PROGRAM) -s gforth $(bindir) |
| ln -f $(bindir)/gforth $(bindir)/gforth-$(VERSION) |
ln -f $(bindir)/gforth $(bindir)/gforth-$(VERSION) |
| $(INSTALL_DATA) gforth.1 $(mandir) |
$(INSTALL_DATA) gforth.1 $(mandir) |