| 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) |
| |
|
| # 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. |
| #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 $@ |
| |
|