| #Copyright 1992 by the ANSI figForth Development Group |
#Copyright 1992 by the ANSI figForth Development Group |
| |
|
| VERSION = 0.1alpha#gforth version |
VERSION =#gforth version |
| RM = rm |
RM = rm |
| CP = cp |
CP = cp |
| GCC = gcc |
GCC = gcc |
| SOURCES = Makefile.in configure config.sub config.guess \ |
SOURCES = Makefile.in configure config.sub config.guess \ |
| INSTALL README ToDo BUGS model gforth.ds \ |
INSTALL README ToDo BUGS model gforth.ds \ |
| primitives engine.c main.c io.c \ |
primitives engine.c main.c io.c \ |
| apollo68k.h decstation.h 386.h hppa.h cache.c sparc.h \ |
apollo68k.h decstation.h 386.h hppa.h cache.c ecvt.c sparc.h \ |
| getopt.c getopt1.c getopt.h \ |
getopt.c getopt1.c getopt.h \ |
| makefile.dos io-dos.h configure.bat \ |
makefile.dos io-dos.h configure.bat startup.dos \ |
| glosgen.glo glossaries.doc \ |
glosgen.glo glossaries.doc \ |
| $(INCLUDES) $(FORTH_SRC) |
$(INCLUDES) $(FORTH_SRC) |
| |
|
| GEN_PRECIOUS = $(FORTH_GEN) gforth.texi gforth.dvi gforth.ps Makefile |
GEN_PRECIOUS = $(FORTH_GEN) gforth.texi gforth.dvi gforth.ps Makefile |
| |
|
| all: |
all: |
| if [ ! -x gforth ]; then $(MAKE) first; fi |
if [ ! -f gforth ]; then $(MAKE) first; fi |
| $(MAKE) more |
$(MAKE) more |
| |
|
| first: gforth |
first: gforth |
| -$(RM) $(GEN) *.o *.s |
-$(RM) $(GEN) *.o *.s |
| |
|
| distclean: clean |
distclean: clean |
| -$(RM) machine.h machine.fs |
-$(RM) machine.h |
| |
|
| realclean: distclean |
realclean: distclean |
| -$(RM) $(GEN_PRECIOUS) |
-$(RM) $(GEN_PRECIOUS) |
| gforth: $(OBJECTS) |
gforth: $(OBJECTS) |
| -$(CP) gforth gforth~ |
-$(CP) gforth gforth~ |
| $(GCC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $@ |
$(GCC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $@ |
| |
@MAKE-EXECUTE@ |
| |
|
| 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 |
| |
@LINK-KERNL32L@ |
| |
|
| 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 |
| |
@LINK-KERNL32B@ |
| |
|
| engine.s: engine.c primitives.i prim_labels.i machine.h $(INCLUDES) |
engine.s: engine.c primitives.i prim_labels.i machine.h $(INCLUDES) |
| $(GCC) $(CFLAGS) -S engine.c |
$(GCC) $(CFLAGS) -S engine.c |