version 1.1, 1994/11/11 16:10:07
|
version 1.2, 1994/11/15 15:55:31
|
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 |
|
MAKE = gmake |
XCFLAGS = |
XCFLAGS = |
XDEFINES = |
XDEFINES = |
SWITCHES = $(XCFLAGS) $(XDEFINES) -DDEFAULTBIN='"'`pwd`'"' \ |
SWITCHES = $(XCFLAGS) $(XDEFINES) -DDEFAULTBIN='"'`pwd`'"' #-DNDEBUG #turn off assertions |
#-DNDEBUG #turn off assertions |
CFLAGS = -O4 -Wall $(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 |
#John Wavrik should use -Xlinker -N to get a writable text (executable) |
#John Wavrik should use -Xlinker -N to get a writable text (executable) |
LDFLAGS = -Xlinker -N |
LDFLAGS = -Xlinker -N |
LDLIBS = -lm |
LDLIBS = -lm |
|
|
EMACS = emacs |
EMACS = emacs |
|
|
Line 40 OBJECTS = engine.o io.o main.o
|
Line 40 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 \ |
FORTH_GEN = primitives.i prim_labels.i aliases.fs \ |
kernl32l.fi kernl32b.fi gforth.texi |
kernl32l.fi kernl32b.fi gforth.texi |
|
|
all: gforth |
all: |
|
if [ ! -x gforth ]; then $(MAKE) first; fi |
|
$(MAKE) more |
|
|
|
first: gforth |
|
|
|
more: gforth $(FORTH_GEN) |
|
|
#from the gcc Makefile: |
#from the gcc Makefile: |
#"Deletion of files made during compilation. |
#"Deletion of files made during compilation. |
Line 69 realclean: distclean
|
Line 75 realclean: distclean
|
#gforth.tar.gz: $(SOURCES) $(GEN_PRECIOUS) CVS |
#gforth.tar.gz: $(SOURCES) $(GEN_PRECIOUS) CVS |
# cd ..; tar cvf gforth/gforth.tar gforth/{$^}; gzip -9 gforth/gforth.tar |
# cd ..; tar cvf gforth/gforth.tar gforth/{$^}; gzip -9 gforth/gforth.tar |
|
|
gforth: $(OBJECTS) $(FORTH_GEN) |
gforth: $(OBJECTS) |
-cp gforth gforth~ |
-cp gforth gforth~ |
$(GCC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $@ |
$(GCC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $@ |
|
|