version 1.2, 1994/11/15 15:55:31
|
version 1.5, 1994/11/23 16:54:37
|
Line 1
|
Line 1
|
#Copyright 1992 by the ANSI figForth Development Group |
#Copyright 1992 by the ANSI figForth Development Group |
|
|
RM = echo 'Trying to remove' |
VERSION = 0.1alpha#gforth version |
|
RM = rm |
|
CP = cp |
GCC = gcc |
GCC = gcc |
FORTH = gforth |
FORTH = gforth |
CC = gcc |
CC = gcc |
MAKE = gmake |
MAKE = gmake |
XCFLAGS = |
XCFLAGS = |
XDEFINES = |
XDEFINES = |
SWITCHES = $(XCFLAGS) $(XDEFINES) -DDEFAULTBIN='"'`pwd`'"' #-DNDEBUG #turn off assertions |
SWITCHES = $(XCFLAGS) $(XDEFINES) -DDEFAULTBIN='"'`pwd`'"' #-DNDEBUG #turn off assertions |
Line 20 EMACS = emacs
|
Line 22 EMACS = emacs
|
INCLUDES = forth.h io.h |
INCLUDES = forth.h io.h |
|
|
FORTH_SRC = add.fs assert.fs blocks.fs bufio.fs cross.fs debug.fs \ |
FORTH_SRC = add.fs assert.fs blocks.fs bufio.fs cross.fs debug.fs \ |
debugging.fs environ.fs errore.fs etags.fs extend.fs filedump.fs \ |
debugging.fs doskey.fs ds2texi.fs environ.fs errore.fs etags.fs extend.fs filedump.fs \ |
float.fs glocals.fs glosgen.fs gray.fs hash.fs kernal.fs \ |
float.fs glocals.fs glosgen.fs gray.fs hash.fs history.fs kernal.fs \ |
locals-test.fs look.fs mach32b.fs mach32l.fs main.fs other.fs \ |
locals-test.fs look.fs mach32b.fs mach32l.fs main.fs other.fs \ |
prims2x.fs search-order.fs see.fs sieve.fs startup.fs struct.fs \ |
prims2x.fs search-order.fs see.fs sieve.fs startup.fs struct.fs \ |
test2.fs tools.fs toolsext.fs vars.fs vt100.fs wordinfo.fs |
test2.fs tools.fs toolsext.fs vars.fs vt100.fs vt100key.fs wordinfo.fs |
|
|
SOURCES = Makefile primitives primitives2c.el engine.c main.c io.c \ |
SOURCES = Makefile.in configure config.sub config.guess \ |
apollo68k.h decstation.h 386.h hppa.h sparc.h gforth.ds \ |
INSTALL README ToDo BUGS model gforth.ds \ |
|
primitives primitives2c.el engine.c main.c io.c \ |
|
apollo68k.h decstation.h 386.h hppa.h cache.c sparc.h \ |
|
getopt.c getopt1.c getopt.h \ |
$(INCLUDES) $(FORTH_SRC) |
$(INCLUDES) $(FORTH_SRC) |
|
|
RCS_FILES = $(SOURCES) INSTALL ToDo model high-level |
RCS_FILES = ToDo model high-level |
|
|
GEN = gforth |
GEN = gforth |
|
|
GEN_PRECIOUS = primitives.i prim_labels.i primitives.b aliases.fs |
|
|
|
OBJECTS = engine.o io.o main.o |
OBJECTS = engine.o io.o main.o |
|
|
# things that need a working forth system to be generated |
# things that need a working forth system to be generated |
# this is used for antidependences, |
# this is used for antidependences, |
FORTH_GEN = primitives.i prim_labels.i aliases.fs \ |
|
kernl32l.fi kernl32b.fi gforth.texi |
FORTH_GEN = primitives.b primitives.i prim_labels.i aliases.fs kernl32l.fi kernl32b.fi |
|
|
|
GEN_PRECIOUS = $(FORTH_GEN) gforth.texi gforth.dvi gforth.ps Makefile |
|
|
all: |
all: |
if [ ! -x gforth ]; then $(MAKE) first; fi |
if [ ! -x gforth ]; then $(MAKE) first; fi |
Line 49 all:
|
Line 54 all:
|
|
|
first: gforth |
first: gforth |
|
|
more: gforth $(FORTH_GEN) |
more: $(FORTH_GEN) gforth |
|
|
#from the gcc Makefile: |
#from the gcc Makefile: |
#"Deletion of files made during compilation. |
#"Deletion of files made during compilation. |
Line 63 more: gforth $(FORTH_GEN)
|
Line 68 more: gforth $(FORTH_GEN)
|
# `realclean' also deletes everything that could be regenerated automatically." |
# `realclean' also deletes everything that could be regenerated automatically." |
|
|
clean: |
clean: |
-rm $(GEN) *.o *.s |
-$(RM) $(GEN) *.o *.s |
|
|
distclean: clean |
distclean: clean |
-rm machine.h machine.fs |
-$(RM) machine.h machine.fs |
|
|
realclean: distclean |
realclean: distclean |
-rm $(GEN_PRECIOUS) |
-$(RM) $(GEN_PRECIOUS) |
|
|
#does not work |
package: $(SOURCES) $(GEN_PRECIOUS) CVS |
#gforth.tar.gz: $(SOURCES) $(GEN_PRECIOUS) CVS |
-rm -rf gforth-$(VERSION) |
# cd ..; tar cvf gforth/gforth.tar gforth/{$^}; gzip -9 gforth/gforth.tar |
mkdir gforth-$(VERSION) |
|
cp -rp $^ gforth-$(VERSION) |
|
touch gforth-$(VERSION)/Makefile.in |
|
tar cvf gforth-$(VERSION).tar gforth-$(VERSION) |
|
gzip -9 -f gforth-$(VERSION).tar |
|
@echo add a zip command here |
|
|
|
Makefile: Makefile.in |
|
configure |
|
|
gforth: $(OBJECTS) |
gforth: $(OBJECTS) |
-cp gforth gforth~ |
-$(CP) gforth gforth~ |
$(GCC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $@ |
$(GCC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $@ |
|
|
kernl32l.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \ |
kernl32l.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \ |
errore.fs kernal.fs extend.fs tools.fs toolsext.fs \ |
errore.fs kernal.fs extend.fs tools.fs toolsext.fs \ |
mach32l.fs $(FORTH_GEN) |
mach32l.fs $(FORTH_GEN) |
-cp kernl32l.fi kernl32l.fi~ |
-$(CP) kernl32l.fi kernl32l.fi~ |
$(FORTH) -e 's" mach32l.fs"' main.fs |
$(FORTH) -e 's" mach32l.fs"' main.fs |
|
|
kernl32b.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \ |
kernl32b.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \ |
errore.fs kernal.fs extend.fs tools.fs toolsext.fs \ |
errore.fs kernal.fs extend.fs tools.fs toolsext.fs \ |
mach32b.fs $(FORTH_GEN) |
mach32b.fs $(FORTH_GEN) |
-cp kernl32b.fi kernl32b.fi~ |
-$(CP) kernl32b.fi kernl32b.fi~ |
$(FORTH) -e 's" mach32b.fs"' main.fs |
$(FORTH) -e 's" mach32b.fs"' main.fs |
|
|
engine.s: engine.c primitives.i prim_labels.i machine.h $(INCLUDES) |
engine.s: engine.c primitives.i prim_labels.i machine.h $(INCLUDES) |
Line 112 primitives.fs: primitives.b prims2x.fs
|
Line 125 primitives.fs: primitives.b prims2x.fs
|
$(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-forth process-file bye" >$@ |
$(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-forth process-file bye" >$@ |
|
|
gforth.texi: gforth.ds primitives.b ds2texi.fs prims2x.fs |
gforth.texi: gforth.ds primitives.b ds2texi.fs prims2x.fs |
$(FORTH) -e "warnings off" search-order.fs struct.fs debugging.fs ds2texi.fs prims2x.fs -e "s\" primitives.b\" ' register-doc process-file s\" gforth.ds\" r/o open-file throw ds2texi bye" >$@ |
$(FORTH) ds2texi.fs >$@ |
|
|
gforth.dvi: gforth.texi |
gforth.dvi: gforth.texi |
tex gforth.texi |
tex gforth.texi |
|
|
|
gforth.ps: gforth.dvi |
|
dvips gforth.dvi -o $@ |
|
|
#primitives.4th: primitives.b primitives2c.el |
#primitives.4th: primitives.b primitives2c.el |
# $(EMACS) -batch -load primitives2c.el -funcall make-forth |
# $(EMACS) -batch -load primitives2c.el -funcall make-forth |
|
|