| 1 : |
anton
|
1.38
|
#Makefile for Gforth |
| 2 : |
|
|
|
| 3 : |
anton
|
1.91
|
#Copyright (C) 1995-1997 Free Software Foundation, Inc. |
| 4 : |
anton
|
1.38
|
|
| 5 : |
|
|
#This file is part of Gforth. |
| 6 : |
|
|
|
| 7 : |
|
|
#Gforth is free software; you can redistribute it and/or |
| 8 : |
|
|
#modify it under the terms of the GNU General Public License |
| 9 : |
|
|
#as published by the Free Software Foundation; either version 2 |
| 10 : |
|
|
#of the License, or (at your option) any later version. |
| 11 : |
|
|
|
| 12 : |
|
|
#This program is distributed in the hope that it will be useful, |
| 13 : |
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 : |
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.#See the |
| 15 : |
|
|
#GNU General Public License for more details. |
| 16 : |
|
|
|
| 17 : |
|
|
#You should have received a copy of the GNU General Public License |
| 18 : |
|
|
#along with this program; if not, write to the Free Software |
| 19 : |
|
|
#Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 20 : |
|
|
|
| 21 : |
anton
|
1.9
|
# To change the values of `make' variables: instead of editing Makefiles, |
| 22 : |
|
|
# (1) if the variable is set in `config.status', edit `config.status' |
| 23 : |
|
|
# (which will cause the Makefiles to be regenerated when you run `make'); |
| 24 : |
|
|
# (2) otherwise, pass the desired values on the `make' command line. |
| 25 : |
pazsan
|
1.1
|
|
| 26 : |
anton
|
1.77
|
#gforth version |
| 27 : |
|
|
VERSION_MAJOR=0 |
| 28 : |
pazsan
|
1.88
|
VERSION_MINOR=3 |
| 29 : |
anton
|
1.98
|
VERSION_RELEASE=1 |
| 30 : |
anton
|
1.77
|
VERSION =$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_RELEASE) |
| 31 : |
|
|
DOSVERSION=$(VERSION_MAJOR)$(VERSION_MINOR)$(VERSION_RELEASE) |
| 32 : |
anton
|
1.9
|
SHELL = /bin/sh |
| 33 : |
pazsan
|
1.4
|
RM = rm |
| 34 : |
pazsan
|
1.74
|
RMTREE = rm -rf |
| 35 : |
pazsan
|
1.4
|
CP = cp |
| 36 : |
pazsan
|
1.74
|
TAR = tar cf - |
| 37 : |
anton
|
1.9
|
INSTALL = @INSTALL@ |
| 38 : |
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| 39 : |
|
|
INSTALL_DATA = @INSTALL_DATA@ |
| 40 : |
|
|
LN_S = @LN_S@ |
| 41 : |
pazsan
|
1.48
|
GCC = @CC@ |
| 42 : |
anton
|
1.23
|
CC = $(GCC) |
| 43 : |
anton
|
1.68
|
PATHSEP = @PATHSEP@ |
| 44 : |
anton
|
1.67
|
FORTHPATH = $(libdir)/gforth/site-forth$(PATHSEP)$(datadir)/gforth/site-forth$(PATHSEP)$(libdir)/gforth/$(VERSION)$(PATHSEP)$(datadir)/gforth/$(VERSION)$(PATHSEP). |
| 45 : |
anton
|
1.72
|
FORTHSIZES = @FORTHSIZES@ |
| 46 : |
anton
|
1.67
|
FORTH = ./gforth -p $(FORTHPATH)$(PATHSEP)$(srcdir) |
| 47 : |
anton
|
1.87
|
FORTHKFLAGS= -p .$(PATHSEP)$(srcdir) -i ./kernel.fi |
| 48 : |
|
|
FORTHK = ./gforth $(FORTHKFLAGS) |
| 49 : |
anton
|
1.66
|
FORTHP = ./gforth -i ./kernel.fi |
| 50 : |
anton
|
1.22
|
STRIP = strip |
| 51 : |
anton
|
1.32
|
TEXI2DVI = texi2dvi |
| 52 : |
anton
|
1.38
|
DVI2PS = dvips -D300 |
| 53 : |
anton
|
1.99
|
#you can get texi2html from http://wwwcn.cern.ch/dci/texi2html/ |
| 54 : |
anton
|
1.15
|
TEXI2HTML = texi2html |
| 55 : |
anton
|
1.11
|
MAKEINFO = makeinfo |
| 56 : |
anton
|
1.9
|
XCFLAGS = @CFLAGS@ |
| 57 : |
|
|
XDEFINES = @DEFS@ |
| 58 : |
anton
|
1.12
|
SWITCHES = $(XCFLAGS) $(XDEFINES) #-DNDEBUG #turn off assertions |
| 59 : |
pazsan
|
1.48
|
ENGINE_FLAGS = @ENGINE_FLAGS@ -fno-defer-pop -fcaller-saves |
| 60 : |
pazsan
|
1.30
|
DEBUGFLAG = @DEBUGFLAG@ |
| 61 : |
anton
|
1.100
|
CFLAGS = $(DEBUGFLAG) -I$(srcdir)/engine -I$(srcdir) -O4 -Wall $(SWITCHES) -DDEFAULTPATH=\"$(FORTHPATH)\" |
| 62 : |
pazsan
|
1.1
|
|
| 63 : |
|
|
#John Wavrik should use -Xlinker -N to get a writable text (executable) |
| 64 : |
pazsan
|
1.30
|
XLDFLAGS = @LDFLAGS@ |
| 65 : |
|
|
GCCLDFLAGS = @GCCLDFLAGS@ |
| 66 : |
|
|
LDFLAGS = $(DEBUGFLAG) $(XLDFLAGS) $(GCCLDFLAGS) |
| 67 : |
anton
|
1.9
|
LDLIBS = @LIBS@ |
| 68 : |
|
|
|
| 69 : |
anton
|
1.52
|
VPATH = @srcdir@ |
| 70 : |
anton
|
1.9
|
prefix = @prefix@ |
| 71 : |
|
|
exec_prefix = @exec_prefix@ |
| 72 : |
|
|
srcdir = @srcdir@ |
| 73 : |
|
|
bindir = $(exec_prefix)/bin |
| 74 : |
|
|
#read-only architecture-independent files |
| 75 : |
|
|
datadir = $(prefix)/share |
| 76 : |
|
|
#read-only architecture-dependent non-ascii files |
| 77 : |
|
|
libdir = $(prefix)/lib |
| 78 : |
|
|
infodir = $(prefix)/info |
| 79 : |
anton
|
1.52
|
mandir = $(prefix)/man |
| 80 : |
|
|
man1dir= $(mandir)/man1 |
| 81 : |
|
|
man1ext= .1 |
| 82 : |
|
|
#older emacses have their site-lisp in $(libdir)/emacs/ |
| 83 : |
|
|
emacssitelispdir=$(datadir)/emacs/site-lisp |
| 84 : |
pazsan
|
1.1
|
|
| 85 : |
anton
|
1.100
|
INCLUDES = engine/CVS engine/forth.h engine/threaded.h engine/io.h |
| 86 : |
pazsan
|
1.1
|
|
| 87 : |
anton
|
1.52
|
KERN_SRC = \ |
| 88 : |
anton
|
1.100
|
kernel/CVS \ |
| 89 : |
|
|
kernel/aliases0.fs \ |
| 90 : |
|
|
kernel/aliases.fs \ |
| 91 : |
|
|
kernel/args.fs \ |
| 92 : |
|
|
kernel/cond.fs \ |
| 93 : |
|
|
kernel/cond-old.fs \ |
| 94 : |
anton
|
1.52
|
cross.fs \ |
| 95 : |
anton
|
1.100
|
kernel/errore.fs \ |
| 96 : |
|
|
kernel/files.fs \ |
| 97 : |
|
|
kernel/require.fs \ |
| 98 : |
|
|
kernel/paths.fs \ |
| 99 : |
|
|
kernel/kernel.fs \ |
| 100 : |
|
|
kernel/main.fs \ |
| 101 : |
|
|
kernel/prim0.fs \ |
| 102 : |
|
|
search.fs \ |
| 103 : |
|
|
kernel/special.fs \ |
| 104 : |
|
|
kernel/tools.fs \ |
| 105 : |
|
|
kernel/toolsext.fs \ |
| 106 : |
|
|
kernel/vars.fs \ |
| 107 : |
|
|
kernel/accept.fs \ |
| 108 : |
|
|
kernel/basics.fs \ |
| 109 : |
|
|
kernel/interp.fs \ |
| 110 : |
|
|
kernel/io.fs \ |
| 111 : |
|
|
kernel/license.fs \ |
| 112 : |
|
|
kernel/nio.fs \ |
| 113 : |
|
|
kernel/saccept.fs |
| 114 : |
anton
|
1.52
|
|
| 115 : |
|
|
GFORTH_FI_SRC = \ |
| 116 : |
|
|
assert.fs \ |
| 117 : |
anton
|
1.100
|
blocked.fb \ |
| 118 : |
anton
|
1.52
|
blocks.fs \ |
| 119 : |
|
|
bufio.fs \ |
| 120 : |
|
|
debug.fs \ |
| 121 : |
anton
|
1.100
|
debugs.fs \ |
| 122 : |
|
|
savesys.fs \ |
| 123 : |
anton
|
1.52
|
environ.fs \ |
| 124 : |
pazsan
|
1.82
|
errors.fs \ |
| 125 : |
|
|
extend.fs \ |
| 126 : |
anton
|
1.52
|
float.fs \ |
| 127 : |
|
|
glocals.fs \ |
| 128 : |
|
|
hash.fs \ |
| 129 : |
|
|
history.fs \ |
| 130 : |
anton
|
1.64
|
intcomp.fs \ |
| 131 : |
pazsan
|
1.101
|
locals.fs \ |
| 132 : |
anton
|
1.52
|
look.fs \ |
| 133 : |
anton
|
1.100
|
search.fs \ |
| 134 : |
anton
|
1.52
|
see.fs \ |
| 135 : |
pazsan
|
1.85
|
see-ext.fs \ |
| 136 : |
anton
|
1.52
|
source.fs \ |
| 137 : |
|
|
startup.fs \ |
| 138 : |
|
|
struct.fs \ |
| 139 : |
|
|
stuff.fs \ |
| 140 : |
pazsan
|
1.60
|
tasker.fs \ |
| 141 : |
anton
|
1.52
|
termsize.fs \ |
| 142 : |
|
|
vt100.fs \ |
| 143 : |
|
|
vt100key.fs \ |
| 144 : |
pazsan
|
1.101
|
wordinfo.fs \ |
| 145 : |
|
|
lib.fs \ |
| 146 : |
|
|
sieve.fs \ |
| 147 : |
|
|
add.fs |
| 148 : |
anton
|
1.52
|
|
| 149 : |
|
|
FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC) \ |
| 150 : |
anton
|
1.75
|
ans-report.fs ansi.fs answords.fs \ |
| 151 : |
anton
|
1.100
|
code.fs colorize.fs comp-i.fs \ |
| 152 : |
anton
|
1.52
|
doskey.fs ds2texi.fs \ |
| 153 : |
|
|
etags.fs filedump.fs \ |
| 154 : |
|
|
glosgen.fs gray.fs \ |
| 155 : |
anton
|
1.100
|
doc/makedoc.fs \ |
| 156 : |
anton
|
1.49
|
mach16b.fs mach16l.fs mach32b.fs mach32l.fs mach64b.fs mach64l.fs \ |
| 157 : |
anton
|
1.52
|
more.fs other.fs prims2x.fs random.fs \ |
| 158 : |
anton
|
1.100
|
siteinit.fs \ |
| 159 : |
anton
|
1.52
|
tt.fs sokoban.fs \ |
| 160 : |
|
|
wordsets.fs \ |
| 161 : |
anton
|
1.100
|
test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs \ |
| 162 : |
|
|
test/other.fs test/checkans.fs test/CVS \ |
| 163 : |
pazsan
|
1.65
|
bubble.fs siev.fs matrix.fs fib.fs \ |
| 164 : |
anton
|
1.75
|
oof.fs oofsampl.fs objects.fs |
| 165 : |
pazsan
|
1.1
|
|
| 166 : |
anton
|
1.100
|
COMPAT = compat/CVS compat/README compat/control.fs compat/anslocal.fs \ |
| 167 : |
|
|
compat/struct.fs compat/loops.fs |
| 168 : |
|
|
|
| 169 : |
|
|
ALLSUBDIRS = engine |
| 170 : |
|
|
|
| 171 : |
pazsan
|
1.101
|
ARCHS = arch/m68k/machine.h \ |
| 172 : |
|
|
arch/mips/machine.h \ |
| 173 : |
|
|
arch/386/machine.h \ |
| 174 : |
|
|
arch/hppa/machine.h \ |
| 175 : |
|
|
arch/sparc/machine.h \ |
| 176 : |
|
|
arch/power/machine.h \ |
| 177 : |
|
|
arch/alpha/machine.h \ |
| 178 : |
|
|
arch/4stack/README \ |
| 179 : |
|
|
arch/4stack/asm.fs \ |
| 180 : |
|
|
arch/4stack/mach.fs \ |
| 181 : |
|
|
arch/4stack/prim.fs \ |
| 182 : |
|
|
arch/4stack/mach.sh \ |
| 183 : |
|
|
arch/4stack/relocate.fs \ |
| 184 : |
|
|
arch/misc/README \ |
| 185 : |
|
|
arch/misc/asm.fs \ |
| 186 : |
|
|
arch/misc/mach.fs \ |
| 187 : |
|
|
arch/misc/prim.fs \ |
| 188 : |
|
|
arch/misc/sim.fs \ |
| 189 : |
|
|
arch/misc/sokoban.fs \ |
| 190 : |
|
|
arch/misc/tt.fs |
| 191 : |
|
|
|
| 192 : |
anton
|
1.100
|
SOURCES = CVS compat Makefile.in engine/Makefile.in gforthmi \ |
| 193 : |
anton
|
1.91
|
configure.in configure config.sub config.guess \ |
| 194 : |
anton
|
1.100
|
acconfig.h engine/config.h.in stamp-h.in \ |
| 195 : |
pazsan
|
1.101
|
install-sh INSTALL INSTALL.BINDIST NEWS README ToDo BUGS model \ |
| 196 : |
|
|
COPYING Benchres aclocal.m4 \ |
| 197 : |
anton
|
1.100
|
doc/gforth.ds doc/texinfo.tex doc/gforth.1 gforth.el \ |
| 198 : |
|
|
prim engine/engine.c engine/main.c engine/io.c engine/memcmpc.c \ |
| 199 : |
pazsan
|
1.101
|
$(ARCHS) \ |
| 200 : |
anton
|
1.100
|
engine/cache.c engine/32bit.h \ |
| 201 : |
|
|
engine/getopt.c engine/getopt1.c engine/getopt.h engine/select.c \ |
| 202 : |
|
|
engine/ecvt.c engine/memcmp.c engine/strtol.c engine/strtoul.c \ |
| 203 : |
|
|
engine/ansidecl.h engine/memmove.c \ |
| 204 : |
pazsan
|
1.101
|
engine/pow10.c engine/atanh.c engine/cleanalign.c \ |
| 205 : |
anton
|
1.100
|
engine/strerror.c engine/strsignal.c engine/strsig.c engine/dblsub.c \ |
| 206 : |
|
|
INSTALL.DOS makefile.dos engine/makefile.dos mkdosmf.sed config.bat \ |
| 207 : |
|
|
dosconf.h gforthmi.bat startup.dos history.dos mkinstalldirs \ |
| 208 : |
|
|
configure.cmd mkos2mf.sed os2conf.h makefile.os2 engine/makefile.os2 \ |
| 209 : |
|
|
gforthmi.cmd glosgen.glo doc/glossaries.doc \ |
| 210 : |
pazsan
|
1.101
|
$(INCLUDES) $(FORTH_SRC) $(COMPAT) \ |
| 211 : |
|
|
testclean testdist testdist1 timings.sc |
| 212 : |
pazsan
|
1.1
|
|
| 213 : |
anton
|
1.5
|
RCS_FILES = ToDo model high-level |
| 214 : |
pazsan
|
1.1
|
|
| 215 : |
anton
|
1.100
|
GEN = gforth gforth-ditc kernel/version.fs version-stamp |
| 216 : |
pazsan
|
1.1
|
|
| 217 : |
anton
|
1.100
|
OBJECTS0 = engine/replace.a |
| 218 : |
|
|
OBJECTS = engine/engine.o engine/main.o |
| 219 : |
|
|
OBJECTS_DITC = engine/engine-ditc.o engine/main-ditc.o |
| 220 : |
pazsan
|
1.1
|
|
| 221 : |
|
|
# things that need a working forth system to be generated |
| 222 : |
anton
|
1.100
|
FORTH_GEN0 = prim.b engine/prim.i engine/prim_lab.i kernel/aliases.fs kernel/prim.fs |
| 223 : |
pazsan
|
1.65
|
FORTH_GEN = $(FORTH_GEN0) @KERNEL@ gforth.fi |
| 224 : |
pazsan
|
1.1
|
# this is used for antidependences, |
| 225 : |
pazsan
|
1.65
|
FORTH_GEN1 = $(FORTH_GEN0) @kernel_fi@ |
| 226 : |
anton
|
1.5
|
|
| 227 : |
anton
|
1.38
|
#distributed documentation |
| 228 : |
anton
|
1.100
|
DOCDIST = doc/gforth.info doc/gforth.info-* doc/gforth.ps |
| 229 : |
anton
|
1.5
|
|
| 230 : |
anton
|
1.72
|
#stuff in a binonly distribution |
| 231 : |
anton
|
1.87
|
BINONLYDIST = config.status Makefile gforth gforth-ditc \ |
| 232 : |
|
|
$(OBJECTS0) $(OBJECTS) $(OBJECTS_DITC)\ |
| 233 : |
anton
|
1.100
|
machine/machine.h engine/config.h kernel.fi \ |
| 234 : |
|
|
stamp-h engine/version.h kernel/version.fs version-stamp \ |
| 235 : |
anton
|
1.72
|
INSTALL.BINDIST |
| 236 : |
|
|
|
| 237 : |
pazsan
|
1.48
|
KERNLS = kernl16b.fi- kernl16l.fi- \ |
| 238 : |
|
|
kernl32b.fi- kernl32l.fi- \ |
| 239 : |
|
|
kernl64b.fi- kernl64l.fi- |
| 240 : |
pazsan
|
1.30
|
|
| 241 : |
anton
|
1.100
|
GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) doc/gforth.texi doc/gforth.dvi doc/gforth.ps Makefile configure |
| 242 : |
pazsan
|
1.1
|
|
| 243 : |
anton
|
1.9
|
#standards.info recommends this: |
| 244 : |
|
|
.SUFFIXES: |
| 245 : |
|
|
.SUFFIXES: .c .o |
| 246 : |
|
|
|
| 247 : |
anton
|
1.100
|
all: kernel/version.fs more |
| 248 : |
pazsan
|
1.1
|
|
| 249 : |
anton
|
1.78
|
#this rule avoids remaking everything after minor changes in Makefile.in |
| 250 : |
anton
|
1.100
|
version: Makefile.in |
| 251 : |
anton
|
1.94
|
if test -r $@ && test x'$(VERSION)' = x`cat $@` ; then true ; else echo $(VERSION) > $@ ; fi |
| 252 : |
anton
|
1.78
|
|
| 253 : |
anton
|
1.100
|
engine/version.h: version |
| 254 : |
anton
|
1.71
|
echo "static char gforth_version[]=\"$(VERSION)\" ;" >$@ |
| 255 : |
pazsan
|
1.48
|
|
| 256 : |
anton
|
1.100
|
kernel/version.fs: version |
| 257 : |
pazsan
|
1.48
|
$(MAKE) gforth |
| 258 : |
|
|
echo ": version-string s\" $(VERSION)\" ;" >$@ |
| 259 : |
pazsan
|
1.2
|
|
| 260 : |
pazsan
|
1.83
|
more: $(OBJECTS) $(FORTH_GEN) gforth |
| 261 : |
pazsan
|
1.2
|
|
| 262 : |
pazsan
|
1.1
|
#from the gcc Makefile: |
| 263 : |
|
|
#"Deletion of files made during compilation. |
| 264 : |
|
|
# There are four levels of this: |
| 265 : |
|
|
# `mostlyclean', `clean', `distclean' and `realclean'. |
| 266 : |
|
|
# `mostlyclean' is useful while working on a particular type of machine. |
| 267 : |
|
|
# It deletes most, but not all, of the files made by compilation. |
| 268 : |
|
|
# It does not delete libgcc.a or its parts, so it won't have to be recompiled. |
| 269 : |
|
|
# `clean' deletes everything made by running `make all'. |
| 270 : |
|
|
# `distclean' also deletes the files made by config. |
| 271 : |
|
|
# `realclean' also deletes everything that could be regenerated automatically." |
| 272 : |
|
|
|
| 273 : |
anton
|
1.45
|
mostlyclean: |
| 274 : |
anton
|
1.100
|
-$(RM) -rf *.s gforth.fi *.fi~ *.fi- kernel/version.fs *TAGS \ |
| 275 : |
|
|
doc/crossdoc.fd doc/doc.fd doc/gforth.texi doc/gforth.fns \ |
| 276 : |
|
|
doc/gforth.aux doc/gforth.cp doc/gforth.cps \ |
| 277 : |
|
|
doc/gforth.dvi doc/gforth.fn doc/gforth.ky doc/gforth.log \ |
| 278 : |
|
|
doc/gforth.pg \ |
| 279 : |
|
|
doc/gforth.toc doc/gforth.tp doc/gforth.vr html \ |
| 280 : |
|
|
gforth-$(VERSION).tar.gz \ |
| 281 : |
|
|
engine/version.h |
| 282 : |
anton
|
1.45
|
|
| 283 : |
|
|
clean: mostlyclean |
| 284 : |
anton
|
1.100
|
-$(RM) -rf $(GEN) *.o engine/*.o engine/*.a |
| 285 : |
pazsan
|
1.1
|
|
| 286 : |
|
|
distclean: clean |
| 287 : |
anton
|
1.103
|
-$(RM) machine kernel.fi config.cache config.log \ |
| 288 : |
anton
|
1.100
|
config.status engine/config.h Makefile stamp-h |
| 289 : |
pazsan
|
1.1
|
|
| 290 : |
anton
|
1.53
|
#realclean is useless, but dangerous, so it's commented out |
| 291 : |
|
|
#realclean: distclean |
| 292 : |
|
|
# -$(RM) $(GEN_PRECIOUS) |
| 293 : |
pazsan
|
1.1
|
|
| 294 : |
anton
|
1.45
|
#mostlyclean, but also remove some of the stuff that is distributed |
| 295 : |
|
|
virtualclean: mostlyclean |
| 296 : |
|
|
-$(RM) -rf gforth.fns gforth.texi gforth.ps gforth.info* \ |
| 297 : |
anton
|
1.59
|
gforth-$(VERSION).tar.gz config.cache *~ */*~ |
| 298 : |
anton
|
1.45
|
|
| 299 : |
anton
|
1.66
|
#use dist targets only when srcdir=. |
| 300 : |
pazsan
|
1.69
|
dist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) |
| 301 : |
pazsan
|
1.74
|
-$(RMTREE) gforth-$(VERSION) |
| 302 : |
anton
|
1.21
|
mkdir gforth-$(VERSION) |
| 303 : |
anton
|
1.100
|
$(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \ |
| 304 : |
|
|
(cd gforth-$(VERSION); tar xf -) |
| 305 : |
pazsan
|
1.74
|
$(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).tar.gz |
| 306 : |
|
|
-$(RMTREE) gforth-$(VERSION) |
| 307 : |
|
|
|
| 308 : |
|
|
#use dist targets only when srcdir=. |
| 309 : |
|
|
dosdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) |
| 310 : |
|
|
-$(RMTREE) gforth.$(DOSVERSION) |
| 311 : |
|
|
mkdir gforth.$(DOSVERSION) |
| 312 : |
anton
|
1.100
|
$(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \ |
| 313 : |
|
|
(cd gforth.$(DOSVERSION); tar xf -) |
| 314 : |
|
|
zip -r9 gf$(DOSVERSION)dos.zip gforth.$(DOSVERSION)/* |
| 315 : |
pazsan
|
1.74
|
-$(RMTREE) gforth.$(DOSVERSION) |
| 316 : |
pazsan
|
1.1
|
|
| 317 : |
pazsan
|
1.69
|
#A source distribution contains only the things needed to install gforth, |
| 318 : |
|
|
#without the documents. |
| 319 : |
|
|
srcdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ |
| 320 : |
pazsan
|
1.74
|
-$(RMTREE) gforth-$(VERSION) |
| 321 : |
pazsan
|
1.69
|
mkdir gforth-$(VERSION) |
| 322 : |
anton
|
1.100
|
$(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ | \ |
| 323 : |
|
|
(cd gforth-$(VERSION); tar xf -) |
| 324 : |
pazsan
|
1.74
|
$(TAR) gforth-$(VERSION)|gzip -9 >gforth-src-$(VERSION).tar.gz |
| 325 : |
|
|
-$(RMTREE) gforth-$(VERSION) |
| 326 : |
pazsan
|
1.69
|
|
| 327 : |
anton
|
1.100
|
srconlydist: $(SOURCES) |
| 328 : |
|
|
-$(RMTREE) gforth-$(VERSION) |
| 329 : |
|
|
mkdir gforth-$(VERSION) |
| 330 : |
|
|
$(TAR) $(SOURCES) | \ |
| 331 : |
|
|
(cd gforth-$(VERSION); tar xf -) |
| 332 : |
|
|
$(TAR) gforth-$(VERSION)|gzip -9 >gforth-srconly-$(VERSION).tar.gz |
| 333 : |
|
|
-$(RMTREE) gforth-$(VERSION) |
| 334 : |
|
|
|
| 335 : |
pazsan
|
1.69
|
#A document distribution contains only the documents, which can be created |
| 336 : |
|
|
#with MAKE. |
| 337 : |
|
|
docdist: $(DOCDIST) |
| 338 : |
pazsan
|
1.74
|
-$(RMTREE) gforth-$(VERSION) |
| 339 : |
pazsan
|
1.69
|
mkdir gforth-$(VERSION) |
| 340 : |
anton
|
1.100
|
$(TAR) $(DOCDIST) | (cd gforth-$(VERSION); tar xf -) |
| 341 : |
pazsan
|
1.74
|
$(TAR) gforth-$(VERSION)|gzip -9 >gforth-doc-$(VERSION).tar.gz |
| 342 : |
|
|
-$(RMTREE) gforth-$(VERSION) |
| 343 : |
pazsan
|
1.69
|
|
| 344 : |
anton
|
1.22
|
#a binary distribution contains the complete source distribution, |
| 345 : |
|
|
# the objects, the executable and the links. the objects are there for making |
| 346 : |
|
|
# make happy. |
| 347 : |
anton
|
1.72
|
bindist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) |
| 348 : |
pazsan
|
1.74
|
-$(RMTREE) gforth-$(VERSION) |
| 349 : |
anton
|
1.22
|
mkdir gforth-$(VERSION) |
| 350 : |
anton
|
1.100
|
$(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -) |
| 351 : |
anton
|
1.22
|
strip gforth-$(VERSION)/gforth |
| 352 : |
pazsan
|
1.74
|
$(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION)-@host@.tar.gz |
| 353 : |
anton
|
1.22
|
|
| 354 : |
|
|
#makes a package with only the stuff not present in the source |
| 355 : |
|
|
#package. For installation the source package is still needed! |
| 356 : |
|
|
#This is useful if you want to distribute many binary versions in |
| 357 : |
|
|
#little space (e.g., on floppy disk): Put the source package and |
| 358 : |
|
|
#all the binonly packages you are interested in on the disk. The user |
| 359 : |
|
|
#then just has to unpack the source and his favourite binonly into the |
| 360 : |
|
|
#same directory and has a full binary distribution. |
| 361 : |
anton
|
1.72
|
binonlydist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) |
| 362 : |
pazsan
|
1.74
|
-$(RMTREE) gforth-$(VERSION) |
| 363 : |
anton
|
1.22
|
mkdir gforth-$(VERSION) |
| 364 : |
anton
|
1.100
|
$(TAR) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -) |
| 365 : |
anton
|
1.22
|
strip gforth-$(VERSION)/gforth |
| 366 : |
pazsan
|
1.74
|
$(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION)-binonly-@host@.tar.gz |
| 367 : |
anton
|
1.22
|
|
| 368 : |
|
|
|
| 369 : |
anton
|
1.15
|
#strip gforth, because the debugging stuff is hardly useful once |
| 370 : |
|
|
# gforth manages to execute more than a few primitives |
| 371 : |
|
|
|
| 372 : |
anton
|
1.68
|
#install does not depend on gforth.info, because that would require |
| 373 : |
|
|
#supplying a lot of files that can be easily generated (only info is |
| 374 : |
|
|
#hard to generate) |
| 375 : |
anton
|
1.100
|
install: gforth $(FORTH_SRC) kernel.fi gforth.fi doc/gforth.1 prim gforth.TAGS installdirs |
| 376 : |
|
|
touch $(datadir)/gforth/site-forth/siteinit.fs |
| 377 : |
anton
|
1.49
|
-$(RM) $(bindir)/gforth $(bindir)/gforth-$(VERSION) |
| 378 : |
anton
|
1.15
|
$(INSTALL_PROGRAM) -s gforth $(bindir) |
| 379 : |
anton
|
1.49
|
ln $(bindir)/gforth $(bindir)/gforth-$(VERSION) |
| 380 : |
anton
|
1.100
|
-$(INSTALL_DATA) $(srcdir)/doc/gforth.1 $(man1dir) |
| 381 : |
pazsan
|
1.83
|
-for i in $(srcdir)/gforth.info*; do $(INSTALL_DATA) $$i $(infodir); done |
| 382 : |
anton
|
1.100
|
for i in $(FORTH_SRC) prim; do \ |
| 383 : |
anton
|
1.66
|
$(INSTALL_DATA) $(srcdir)/$$i $(datadir)/gforth/$(VERSION); \ |
| 384 : |
anton
|
1.9
|
done |
| 385 : |
pazsan
|
1.65
|
$(INSTALL_DATA) kernel.fi $(libdir)/gforth/$(VERSION) |
| 386 : |
anton
|
1.77
|
$(RM) gforth.fi; $(MAKE) gforth.fi #gforth.fi contains some path names |
| 387 : |
pazsan
|
1.83
|
$(INSTALL_DATA) gforth.fi $(libdir)/gforth/$(VERSION) |
| 388 : |
anton
|
1.94
|
sed 's:^$(srcdir)/:$(datadir)/gforth/$(VERSION)/:' gforth.TAGS >TAGS; $(INSTALL_DATA) TAGS $(datadir)/gforth/$(VERSION) |
| 389 : |
anton
|
1.52
|
if test -d $(emacssitelispdir); then \ |
| 390 : |
anton
|
1.66
|
$(INSTALL_DATA) $(srcdir)/gforth.el $(emacssitelispdir); \ |
| 391 : |
pazsan
|
1.55
|
else \ |
| 392 : |
anton
|
1.66
|
echo ">>>>>Please install $(srcdir)/gforth.el in your .../emacs/site-lisp directory"; \ |
| 393 : |
anton
|
1.52
|
fi |
| 394 : |
anton
|
1.68
|
echo ">>>>> Please make an entry for Gforth in your info dir file; e.g.:"; \ |
| 395 : |
anton
|
1.72
|
echo "* Gforth: (gforth). A fast interpreter for the Forth language." |
| 396 : |
anton
|
1.40
|
|
| 397 : |
anton
|
1.66
|
install-strip: install |
| 398 : |
|
|
|
| 399 : |
anton
|
1.78
|
installdirs: mkinstalldirs |
| 400 : |
|
|
$(srcdir)/mkinstalldirs $(bindir) $(man1dir) $(infodir) $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(libdir)/gforth/site-forth $(datadir)/gforth/site-forth |
| 401 : |
|
|
|
| 402 : |
anton
|
1.40
|
#deinstall all files specific to this version of gforth |
| 403 : |
|
|
#to uninstall version foo, type `make uninstall VERSION=foo' |
| 404 : |
|
|
uninstall: |
| 405 : |
|
|
-$(RM) -rf $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(bindir)/gforth-$(VERSION) |
| 406 : |
anton
|
1.81
|
@echo -e "Type\n$(RM) -rf $(bindir)/gforth $(man1dir)/gforth.1 $(infodir)/gforth.info* $(datadir)/gforth $(libdir)/gforth\nto remove Gforth completely" |
| 407 : |
anton
|
1.40
|
|
| 408 : |
anton
|
1.67
|
check test: gforth gforth.fi |
| 409 : |
anton
|
1.100
|
$(FORTH) test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye |
| 410 : |
|
|
$(FORTH) test/other.fs -e bye |
| 411 : |
|
|
$(FORTH) code.fs test/checkans.fs -e bye |
| 412 : |
anton
|
1.21
|
@echo 'Expect no differences' |
| 413 : |
anton
|
1.100
|
$(FORTH) -m 100000 prims2x.fs -e "s\" $(srcdir)/prim.b\"' output-c process-file bye"| diff -c - $(srcdir)/engine/prim.i |
| 414 : |
anton
|
1.21
|
|
| 415 : |
anton
|
1.46
|
bench: gforth gforth.fi |
| 416 : |
anton
|
1.40
|
@echo 'Each benchmark takes about 30s on a 486-66 (gcc-2.6.3 -DFORCE_REG)' |
| 417 : |
|
|
time $(FORTH) siev.fs -e "main bye" |
| 418 : |
|
|
time $(FORTH) bubble.fs -e "main bye" |
| 419 : |
anton
|
1.41
|
time $(FORTH) -m 160000 matrix.fs -e "main bye" |
| 420 : |
anton
|
1.40
|
time $(FORTH) fib.fs -e "main bye" |
| 421 : |
|
|
|
| 422 : |
anton
|
1.87
|
gforth: $(OBJECTS) $(OBJECTS0) |
| 423 : |
pazsan
|
1.4
|
-$(CP) gforth gforth~ |
| 424 : |
anton
|
1.87
|
$(GCC) $(LDFLAGS) $(OBJECTS) $(OBJECTS0) $(LDLIBS) -o $@ |
| 425 : |
pazsan
|
1.95
|
@GFORTH_EXE@ |
| 426 : |
anton
|
1.87
|
|
| 427 : |
|
|
gforth-ditc: $(OBJECTS_DITC) $(OBJECTS0) |
| 428 : |
|
|
$(GCC) $(LDFLAGS) $(OBJECTS_DITC) $(OBJECTS0) $(LDLIBS) -o $@ |
| 429 : |
pazsan
|
1.95
|
@GFORTHDITC_EXE@ |
| 430 : |
pazsan
|
1.1
|
|
| 431 : |
anton
|
1.100
|
kernl16l.fi-: $(KERN_SRC) kernel/version.fs mach16l.fs $(FORTH_GEN0) |
| 432 : |
|
|
$(FORTHK) -e 's" mach16l.fs"' kernel/main.fs -e "save-cross kernl16l.fi- $(bindir)/gforth-$(VERSION) bye" |
| 433 : |
anton
|
1.87
|
|
| 434 : |
anton
|
1.100
|
kernl16b.fi-: $(KERN_SRC) kernel/version.fs mach16b.fs $(FORTH_GEN0) |
| 435 : |
|
|
$(FORTHK) -e 's" mach16b.fs"' kernel/main.fs -e "save-cross kernl16b.fi- $(bindir)/gforth-$(VERSION) bye" |
| 436 : |
anton
|
1.87
|
|
| 437 : |
anton
|
1.100
|
kernl32l.fi-: $(KERN_SRC) kernel/version.fs mach32l.fs $(FORTH_GEN0) |
| 438 : |
|
|
$(FORTHK) -e 's" mach32l.fs"' kernel/main.fs -e "save-cross kernl32l.fi- $(bindir)/gforth-$(VERSION) bye" |
| 439 : |
anton
|
1.87
|
|
| 440 : |
anton
|
1.100
|
kernl32b.fi-: $(KERN_SRC) kernel/version.fs mach32b.fs $(FORTH_GEN0) |
| 441 : |
|
|
$(FORTHK) -e 's" mach32b.fs"' kernel/main.fs -e "save-cross kernl32b.fi- $(bindir)/gforth-$(VERSION) bye" |
| 442 : |
|
|
|
| 443 : |
|
|
kernl64l.fi-: $(KERN_SRC) kernel/version.fs mach64l.fs $(FORTH_GEN0) |
| 444 : |
|
|
$(FORTHK) -e 's" mach64l.fs"' kernel/main.fs -e "save-cross kernl64l.fi- $(bindir)/gforth-$(VERSION) bye" |
| 445 : |
|
|
|
| 446 : |
|
|
kernl64b.fi-: $(KERN_SRC) kernel/version.fs mach64b.fs $(FORTH_GEN0) |
| 447 : |
|
|
$(FORTHK) -e 's" mach64b.fs"' kernel/main.fs -e "save-cross kernl64b.fi- $(bindir)/gforth-$(VERSION) bye" |
| 448 : |
|
|
|
| 449 : |
|
|
kernl-%.fi: arch/%/mach.fs $(KERN_SRC) kernel/version.fs $(FORTH_GEN0) \ |
| 450 : |
|
|
arch/%/prim.fs arch/%/asm.fs |
| 451 : |
|
|
$(FORTHK) -e 's" $<"' kernel/main.fs -e "save-cross $@- $(bindir)/gforth-$(VERSION) bye" |
| 452 : |
|
|
if [ -f `echo $< | sed s/fs/sh/` ]; \ |
| 453 : |
|
|
then sh `echo $< | sed s/fs/sh/` $@; \ |
| 454 : |
|
|
else $(CP) $@- $@; \ |
| 455 : |
|
|
fi |
| 456 : |
pazsan
|
1.30
|
|
| 457 : |
anton
|
1.87
|
kernl16b.fi: $(KERNLS) |
| 458 : |
anton
|
1.97
|
-$(CP) kernl16b.fi kernl16b.fi~ |
| 459 : |
|
|
-$(CP) kernl16b.fi- kernl16b.fi |
| 460 : |
anton
|
1.87
|
|
| 461 : |
|
|
kernl16l.fi: $(KERNLS) |
| 462 : |
anton
|
1.97
|
-$(CP) kernl16l.fi kernl16l.fi~ |
| 463 : |
|
|
-$(CP) kernl16l.fi- kernl16l.fi |
| 464 : |
anton
|
1.87
|
|
| 465 : |
anton
|
1.96
|
kernl32b.fi: $(KERNLS) |
| 466 : |
anton
|
1.97
|
-$(CP) kernl32b.fi kernl32b.fi~ |
| 467 : |
|
|
-$(CP) kernl32b.fi- kernl32b.fi |
| 468 : |
anton
|
1.87
|
|
| 469 : |
|
|
kernl32l.fi: $(KERNLS) |
| 470 : |
|
|
-$(CP) kernl32l.fi kernl32l.fi~ |
| 471 : |
|
|
-$(CP) kernl32l.fi- kernl32l.fi |
| 472 : |
|
|
|
| 473 : |
|
|
kernl64b.fi: $(KERNLS) |
| 474 : |
|
|
-$(CP) kernl64b.fi kernl64b.fi~ |
| 475 : |
|
|
-$(CP) kernl64b.fi- kernl64b.fi |
| 476 : |
|
|
|
| 477 : |
|
|
kernl64l.fi: $(KERNLS) |
| 478 : |
|
|
-$(CP) kernl64l.fi kernl64l.fi~ |
| 479 : |
|
|
-$(CP) kernl64l.fi- kernl64l.fi |
| 480 : |
anton
|
1.89
|
|
| 481 : |
anton
|
1.100
|
#kernl%.fi: kernl%.fi- $(KERNLS) |
| 482 : |
|
|
# -$(CP) $@ $@~ |
| 483 : |
|
|
# -$(CP) $< $@ |
| 484 : |
anton
|
1.87
|
|
| 485 : |
anton
|
1.100
|
gforth.fi: @kernel_fi@ gforthmi gforth gforth-ditc $(GFORTH_FI_SRC) |
| 486 : |
|
|
GFORTHD="./gforth-ditc -p .$(PATHSEP)$(srcdir)" GFORTH="./gforth-ditc -p .$(PATHSEP)$(srcdir) -i kernel.fi startup.fs" $(srcdir)/gforthmi gforth.fi $(FORTHSIZES) $(FORTHKFLAGS) startup.fs |
| 487 : |
anton
|
1.50
|
|
| 488 : |
anton
|
1.67
|
#TAGS is a GNU standard target |
| 489 : |
|
|
TAGS: gforth.TAGS |
| 490 : |
|
|
$(CP) gforth.TAGS $@ |
| 491 : |
|
|
|
| 492 : |
anton
|
1.100
|
gforth.TAGS: @kernel_fi@ gforth $(GFORTH_FI_SRC) prim.TAGS |
| 493 : |
anton
|
1.66
|
$(FORTHK) etags.fs startup.fs -e bye |
| 494 : |
anton
|
1.100
|
cat TAGS prim.TAGS kernel.TAGS >gforth.TAGS |
| 495 : |
anton
|
1.67
|
rm TAGS |
| 496 : |
anton
|
1.34
|
|
| 497 : |
anton
|
1.100
|
engine/replace.a: |
| 498 : |
|
|
cd engine; $(MAKE) replace.a |
| 499 : |
pazsan
|
1.1
|
|
| 500 : |
anton
|
1.100
|
engine.s: engine/engine.c engine/prim.i engine/prim_lab.i machine/machine.h engine/threaded.h $(INCLUDES) engine/config.h |
| 501 : |
|
|
$(GCC) $(CFLAGS) $(ENGINE_FLAGS) -S $(srcdir)/engine/engine.c |
| 502 : |
pazsan
|
1.36
|
|
| 503 : |
anton
|
1.100
|
engine/engine.o: engine/engine.c engine/prim.i engine/prim_lab.i machine/machine.h engine/threaded.h $(INCLUDES) engine/config.h |
| 504 : |
|
|
$(GCC) $(CFLAGS) $(ENGINE_FLAGS) -c $(srcdir)/engine/engine.c -o $@ |
| 505 : |
anton
|
1.87
|
|
| 506 : |
anton
|
1.100
|
engine/engine-ditc.o: engine/engine.c engine/prim.i engine/prim_lab.i machine/machine.h engine/threaded.h $(INCLUDES) engine/config.h |
| 507 : |
|
|
$(GCC) $(CFLAGS) $(ENGINE_FLAGS) -DDOUBLY_INDIRECT -o $@ -c $(srcdir)/engine/engine.c |
| 508 : |
anton
|
1.87
|
|
| 509 : |
anton
|
1.100
|
engine/main.o: engine/main.c machine/machine.h engine/threaded.h $(INCLUDES) engine/config.h engine/version.h |
| 510 : |
|
|
$(GCC) $(CFLAGS) $(ENGINE_FLAGS) -o $@ -c $(srcdir)/engine/main.c |
| 511 : |
anton
|
1.9
|
|
| 512 : |
anton
|
1.100
|
engine/main-ditc.o: engine/main.c machine/machine.h engine/threaded.h $(INCLUDES) engine/config.h engine/version.h |
| 513 : |
|
|
$(GCC) $(CFLAGS) $(ENGINE_FLAGS) -DDOUBLY_INDIRECT -o $@ -c $(srcdir)/engine/main.c |
| 514 : |
pazsan
|
1.1
|
|
| 515 : |
anton
|
1.100
|
engine/strtoul.o: strtoul.c strtol.c |
| 516 : |
pazsan
|
1.1
|
|
| 517 : |
anton
|
1.100
|
prim.b: prim |
| 518 : |
|
|
m4 -s $(srcdir)/prim >$@ |
| 519 : |
|
|
|
| 520 : |
|
|
engine/prim.i: prim.b prims2x.fs |
| 521 : |
|
|
$(FORTHK) prims2x.fs -e "s\" prim.b\" ' output-c process-file bye" >$@- |
| 522 : |
pazsan
|
1.93
|
$(CP) $@- $@ |
| 523 : |
|
|
$(RM) $@- |
| 524 : |
pazsan
|
1.1
|
|
| 525 : |
anton
|
1.100
|
engine/prim_lab.i: prim.b prims2x.fs |
| 526 : |
|
|
$(FORTHK) prims2x.fs -e "s\" prim.b\" ' output-label process-file bye" >$@- |
| 527 : |
pazsan
|
1.93
|
$(CP) $@- $@ |
| 528 : |
|
|
$(RM) $@- |
| 529 : |
pazsan
|
1.1
|
|
| 530 : |
anton
|
1.100
|
kernel/aliases.fs: prim.b prims2x.fs kernel/aliases0.fs |
| 531 : |
|
|
$(CP) kernel/aliases0.fs $@- |
| 532 : |
|
|
$(FORTHK) prims2x.fs -e "s\" prim.b\" ' output-alias process-file bye" >>$@- |
| 533 : |
pazsan
|
1.93
|
$(CP) $@- $@ |
| 534 : |
|
|
$(RM) $@- |
| 535 : |
pazsan
|
1.1
|
|
| 536 : |
anton
|
1.100
|
kernel/prim.fs: prim.b prims2x.fs kernel/prim0.fs |
| 537 : |
|
|
$(CP) kernel/prim0.fs kernel/prim.fs- |
| 538 : |
|
|
$(FORTHK) prims2x.fs -e "s\" prim.b\" ' output-forth process-file bye" >>$@- |
| 539 : |
pazsan
|
1.93
|
$(CP) $@- $@ |
| 540 : |
|
|
$(RM) $@- |
| 541 : |
anton
|
1.27
|
|
| 542 : |
anton
|
1.100
|
prim.TAGS: prim.b prims2x.fs |
| 543 : |
|
|
$(FORTHK) prims2x.fs -e "s\" $(srcdir)/prim.b\" ' output-tag process-file bye" >$@- |
| 544 : |
pazsan
|
1.93
|
$(CP) $@- $@ |
| 545 : |
|
|
$(RM) $@- |
| 546 : |
pazsan
|
1.1
|
|
| 547 : |
pazsan
|
1.105
|
doc/doc.fd: doc/makedoc.fs $(GFORTH_FI_SRC) code.fs objects.fs oof.fs |
| 548 : |
|
|
$(FORTHK) -e "s\" doc/doc.fd\"" doc/makedoc.fs startup.fs code.fs objects.fs oof.fs -e bye |
| 549 : |
anton
|
1.20
|
|
| 550 : |
anton
|
1.100
|
doc/crossdoc.fd: $(KERN_SRC) kernel/version.fs $(FORTH_GEN0) |
| 551 : |
|
|
$(FORTHK) -e 's" mach32l.fs"' kernel/main.fs -e bye |
| 552 : |
anton
|
1.35
|
|
| 553 : |
anton
|
1.100
|
doc/gforth.texi: doc/gforth.ds prim.b ds2texi.fs prims2x.fs \ |
| 554 : |
|
|
doc/doc.fd doc/crossdoc.fd |
| 555 : |
|
|
$(FORTHK) -m 100000 ds2texi.fs prims2x.fs -e "s\" $(srcdir)/prim.b\" ' register-doc process-file" doc/crossdoc.fd doc/doc.fd -e "s\" $(srcdir)/doc/gforth.ds\" r/o open-file throw ds2texi bye" >$@- |
| 556 : |
pazsan
|
1.93
|
$(CP) $@- $@ |
| 557 : |
|
|
$(RM) $@- |
| 558 : |
anton
|
1.35
|
|
| 559 : |
anton
|
1.100
|
checkdoc: doc/gforth.ds prim.b ds2texi.fs prims2x.fs doc/doc.fd doc/crossdoc.fd answords.fs doc/gforth.texi |
| 560 : |
|
|
$(FORTHK) ds2texi.fs prims2x.fs -e "s\" $(srcdir)/prim.b\" ' register-doc process-file" doc/crossdoc.fd doc/doc.fd answords.fs -e bye |
| 561 : |
|
|
-grep unknown doc/gforth.texi |
| 562 : |
anton
|
1.66
|
|
| 563 : |
anton
|
1.100
|
dvi: doc/gforth.dvi |
| 564 : |
pazsan
|
1.1
|
|
| 565 : |
anton
|
1.100
|
doc/gforth.dvi doc/gforth.fns: doc/gforth.texi |
| 566 : |
|
|
cd doc; $(TEXI2DVI) gforth.texi |
| 567 : |
anton
|
1.5
|
|
| 568 : |
anton
|
1.100
|
doc/gforth.ps: doc/gforth.dvi |
| 569 : |
|
|
$(DVI2PS) doc/gforth.dvi -o $@ |
| 570 : |
anton
|
1.40
|
|
| 571 : |
anton
|
1.100
|
info: doc/gforth.info |
| 572 : |
anton
|
1.66
|
|
| 573 : |
anton
|
1.100
|
doc/gforth.info doc/gforth.info-*: doc/gforth.texi |
| 574 : |
|
|
-cd doc; $(MAKEINFO) gforth.texi |
| 575 : |
anton
|
1.15
|
|
| 576 : |
anton
|
1.100
|
html: doc/gforth.texi |
| 577 : |
anton
|
1.15
|
-$(RM) html/* |
| 578 : |
|
|
-mkdir html |
| 579 : |
anton
|
1.100
|
cd html; $(TEXI2HTML) -menu -split_node ../doc/gforth.texi |
| 580 : |
pazsan
|
1.63
|
|
| 581 : |
anton
|
1.100
|
doc: doc/gforth.ps html |
| 582 : |
pazsan
|
1.1
|
|
| 583 : |
anton
|
1.9
|
# For an explanation of the following Makefile rules, see node |
| 584 : |
|
|
# `Automatic Remaking' in GNU Autoconf documentation. |
| 585 : |
pazsan
|
1.69
|
$(srcdir)/configure: configure.in |
| 586 : |
|
|
cd $(srcdir) && autoconf |
| 587 : |
|
|
|
| 588 : |
anton
|
1.51
|
# autoheader might not change config.h.in, so touch a stamp file. |
| 589 : |
anton
|
1.100
|
config.h.in: stamp-h.in |
| 590 : |
|
|
stamp-h.in: configure.in acconfig.h |
| 591 : |
pazsan
|
1.69
|
cd $(srcdir) && autoheader |
| 592 : |
|
|
echo timestamp > $(srcdir)/stamp-h.in |
| 593 : |
anton
|
1.51
|
|
| 594 : |
anton
|
1.100
|
engine/config.h: stamp-h |
| 595 : |
pazsan
|
1.69
|
stamp-h: config.h.in config.status |
| 596 : |
anton
|
1.100
|
CONFIG_FILES=$@ CONFIG_HEADERS=engine/config.h ./config.status |
| 597 : |
anton
|
1.51
|
echo > stamp-h |
| 598 : |
pazsan
|
1.69
|
Makefile: Makefile.in config.status |
| 599 : |
pazsan
|
1.101
|
CONFIG_FILES="$@ engine/$@" CONFIG_HEADERS=engine/config.h ./config.status |
| 600 : |
anton
|
1.51
|
|
| 601 : |
pazsan
|
1.69
|
config.status: configure |
| 602 : |
anton
|
1.51
|
./config.status --recheck |
| 603 : |
pazsan
|
1.30
|
|
| 604 : |
anton
|
1.51
|
|
| 605 : |
|
|
#create files for DOS, because DOS cannot do it itself |
| 606 : |
pazsan
|
1.30
|
makefile.dos: mkdosmf.sed Makefile.in |
| 607 : |
|
|
sed -f mkdosmf.sed <Makefile.in >makefile.dos |
| 608 : |
anton
|
1.100
|
sed -f mkdosmf.sed <engine/Makefile.in >engine/makefile.dos |
| 609 : |
pazsan
|
1.69
|
|
| 610 : |
|
|
makefile.os2: mkos2mf.sed Makefile.in |
| 611 : |
|
|
sed -f mkos2mf.sed <Makefile.in >makefile.os2 |
| 612 : |
anton
|
1.100
|
sed -f mkos2mf.sed <engine/Makefile.in >engine/makefile.os2 |
| 613 : |
pazsan
|
1.69
|
echo '%.o: %.c' >>makefile.os2 |
| 614 : |
|
|
echo ' $$(GCC) $$(CFLAGS) -c $$<' >>makefile.os2 |
| 615 : |
anton
|
1.100
|
echo '%.o: %.c' >>engine/makefile.os2 |
| 616 : |
|
|
echo ' $$(GCC) $$(CFLAGS) -c $$<' >>engine/makefile.os2 |
| 617 : |
pazsan
|
1.48
|
|
| 618 : |
anton
|
1.100
|
# history is a little bit different now! JAW |
| 619 : |
|
|
#history.dos: history.fs Makefile.in |
| 620 : |
|
|
# sed -e "s,~/\.gforth-history,/gforth.his,g" <history.fs >history.dos |
| 621 : |
pazsan
|
1.31
|
|
| 622 : |
|
|
startup.dos: startup.fs Makefile.in |
| 623 : |
|
|
sed -e "s/\\\\ include doskey/include doskey/g" \ |
| 624 : |
pazsan
|
1.43
|
-e "s/include vt100key/\\\\ include vt100key/g" <startup.fs >startup.dos |