version 1.12, 1994/08/25 15:25:18
|
version 1.16, 1994/09/12 19:00:26
|
Line 4 RM = echo 'Trying to remove'
|
Line 4 RM = echo 'Trying to remove'
|
GCC = gcc |
GCC = gcc |
FORTH = gforth |
FORTH = gforth |
CC = gcc |
CC = gcc |
SWITCHES = -D_POSIX_VERSION -DUSE_FTOS -DDEFAULTBIN='"'`pwd`'"' -DDIRECT_THREADED -fcaller-saves #-DNDEBUG #turn off assertions |
SWITCHES = \ |
|
-fno-defer-pop -fcaller-saves \ |
|
-DUSE_TOS -DUSE_FTOS -DDEFAULTBIN='"'`pwd`'"' \ |
|
-DDIRECT_THREADED #-DNDEBUG #turn off assertions |
CFLAGS = -O4 -Wall -g $(SWITCHES) |
CFLAGS = -O4 -Wall -g $(SWITCHES) |
|
|
#-Xlinker -n puts text and data into the same 256M region |
#-Xlinker -n puts text and data into the same 256M region |
Line 17 EMACS = emacs
|
Line 20 EMACS = emacs
|
INCLUDES = forth.h io.h |
INCLUDES = forth.h io.h |
|
|
FORTH_SRC = cross.fs debug.fs environ.fs errore.fs extend.fs \ |
FORTH_SRC = cross.fs debug.fs environ.fs errore.fs extend.fs \ |
filedump.fs glosgen.fs kernal.fs look.fs machine32b.fs \ |
filedump.fs glosgen.fs kernal.fs look.fs mach32b.fs \ |
machine32l.fs main.fs other.fs search-order.fs see.fs sieve.fs \ |
mach32l.fs main.fs other.fs search-order.fs see.fs sieve.fs \ |
struct.fs tools.fs toolsext.fs vars.fs wordinfo.fs |
struct.fs tools.fs toolsext.fs vars.fs wordinfo.fs |
|
|
SOURCES = Makefile primitives primitives2c.el engine.c main.c io.c \ |
SOURCES = Makefile primitives primitives2c.el engine.c main.c io.c \ |
Line 62 realclean: distclean
|
Line 65 realclean: distclean
|
current: $(RCS_FILES) |
current: $(RCS_FILES) |
|
|
gforth: $(OBJECTS) $(FORTH_GEN) |
gforth: $(OBJECTS) $(FORTH_GEN) |
-cp gforth gforth.old |
-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 \ |
machine32l.fs $(FORTH_GEN) |
mach32l.fs $(FORTH_GEN) |
-cp kernl32l.fi kernl32l.fi.old |
-cp kernl32l.fi kernl32l.fi~ |
$(FORTH) -e 's" machine32l.fs" r/o open-file throw' 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 \ |
machine32b.fs $(FORTH_GEN) |
mach32b.fs $(FORTH_GEN) |
-cp kernl32b.fi kernl32b.fi.old |
-cp kernl32b.fi kernl32b.fi~ |
$(FORTH) -e 's" machine32b.fs" r/o open-file throw' 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) |
$(GCC) $(CFLAGS) -S engine.c |
$(GCC) $(CFLAGS) -S engine.c |
Line 94 prim_labels.i : primitives.b prims2x.fs
|
Line 97 prim_labels.i : primitives.b prims2x.fs
|
aliases.fs: primitives.b prims2x.fs |
aliases.fs: primitives.b prims2x.fs |
$(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-alias process-file bye" >$@ |
$(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-alias process-file bye" >$@ |
|
|
|
primitives.fs: primitives.b prims2x.fs |
|
$(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-forth process-file bye" >$@ |
|
|
#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 |
|
|
#GNU make default rules |
#GNU make default rules |
#% :: RCS/%,v |
#% :: RCS/%,v |
# co $@ |
# co $@ |
#%.o : %.c $(INCLUDES) |
|
# $(CC) $(CFLAGS) -c $< -o $@ |
%.s : %.c $(INCLUDES) |
|
$(CC) $(CFLAGS) -S $< -o $@ |
|
|
|
%.o : %.s |
|
$(CC) $(CFLAGS) -c $< -o $@ |
|
|