[gforth] / gforth / Makefile.in  

gforth: gforth/Makefile.in


1 : anton 1.38 #Makefile for Gforth
2 :    
3 : anton 1.409 #Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005,2006,2007,2008 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 : anton 1.372 #as published by the Free Software Foundation, either version 3
10 : anton 1.38 #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 : anton 1.387 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 : anton 1.38 #GNU General Public License for more details.
16 :    
17 :     #You should have received a copy of the GNU General Public License
18 : anton 1.372 #along with this program. If not, see http://www.gnu.org/licenses/.
19 : anton 1.38
20 : anton 1.9 # To change the values of `make' variables: instead of editing Makefiles,
21 :     # (1) if the variable is set in `config.status', edit `config.status'
22 :     # (which will cause the Makefiles to be regenerated when you run `make');
23 :     # (2) otherwise, pass the desired values on the `make' command line.
24 : pazsan 1.1
25 : jwilke 1.106 # Warning:
26 :     # For some stupid reason setting SHELL to bash does not work properly with
27 :     # DOS. If you want to use shell-specific things that must run with DOS make
28 :     # an external batch file and call it with bash (see versions.bsh).
29 :    
30 :     # ------------- gforth version
31 :    
32 : anton 1.236 VERSION = @PACKAGE_VERSION@
33 : pazsan 1.181 DOSVERSION=`echo $(VERSION)|sed 's/\.//g'|sed 's/-.*//g'`
34 : jwilke 1.106
35 :     # ------------- System specific variables
36 :    
37 : anton 1.110 machine=@machine@
38 :     kernel_fi=@kernel_fi@
39 : anton 1.250 EXE=@EXEEXT@
40 : anton 1.110
41 : jwilke 1.106 # this is the type of machine
42 :     # used to extend the include path with ./arch/$machine
43 : anton 1.110 # so we can include a machine specific
44 : jwilke 1.106 # machine.h file
45 :    
46 :     PATHSEP = @PATHSEP@
47 :    
48 :     osclass = @OSCLASS@
49 :    
50 : pazsan 1.347 EC = @EC@
51 :    
52 : jwilke 1.106 # ------------- Utility programs
53 :    
54 : anton 1.9 SHELL = /bin/sh
55 : pazsan 1.4 RM = rm
56 : pazsan 1.74 RMTREE = rm -rf
57 : pazsan 1.144 CP = cp -p
58 : pazsan 1.129 MV = mv
59 : pazsan 1.74 TAR = tar cf -
60 : anton 1.9 INSTALL = @INSTALL@
61 : anton 1.359 INSTALL_PROGRAM = @INSTALL_PROGRAM@
62 : anton 1.340 MASSAGE_EXE = @MASSAGE_EXE@
63 : anton 1.283 INSTALL_SCRIPT = @INSTALL_SCRIPT@
64 : anton 1.9 INSTALL_DATA = @INSTALL_DATA@
65 : anton 1.257 INSTALL_INFO = @INSTALL_INFO@
66 : anton 1.9 LN_S = @LN_S@
67 : anton 1.356 M4 = @M4@
68 : pazsan 1.48 GCC = @CC@
69 : anton 1.417 EMACS = emacs
70 : anton 1.397 PREFORTH = ./preforth -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)"
71 : anton 1.23 CC = $(GCC)
72 : anton 1.183 FORTHPATH = .$(PATHSEP)$(libdir)/gforth/site-forth$(PATHSEP)$(siteforthdir)$(PATHSEP)$(libdir)/gforth/$(VERSION)$(PATHSEP)$(datadir)/gforth/$(VERSION)
73 : anton 1.72 FORTHSIZES = @FORTHSIZES@
74 : anton 1.270 FORTHS_ARGS = -p "$(FORTHPATH)$(PATHSEP)$(srcdir)"
75 : anton 1.220 FORTH_ARGS = --die-on-signal $(FORTHS_ARGS)
76 : anton 1.385 ENGINE = ./gforth
77 : anton 1.143 FORTH = $(ENGINE) $(FORTH_ARGS)
78 : anton 1.220 FORTHS = $(ENGINE) $(FORTHS_ARGS)
79 : jwilke 1.205 # the (existing) forth system to use for cross compiling and primitives tables
80 : jwilke 1.208 # per default we use the one in this directory for a rebuild. It is also
81 :     # possible to override this variable at the command line for an initial build (jaw)
82 : pazsan 1.214 BUILDFORTH = $(ENGINE) --die-on-signal -m 4M -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" -i $(kernel_fi)
83 : jwilke 1.205 # the forth system plus flags we use to build
84 : anton 1.293 FORTHB = $(BUILDFORTH) exboot.fs -e 'fpath= .|~+|$(srcdir)'
85 : anton 1.206 # the Forth system for running prims2x.fs
86 : anton 1.226 FORTHP = $(FORTH)
87 : anton 1.385 ENGINE_FAST = ./gforth-fast
88 : anton 1.143 FORTH_FAST = $(ENGINE_FAST) $(FORTH_ARGS)
89 : anton 1.213 FORTHKFLAGS= --die-on-signal -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" -i $(kernel_fi)
90 : anton 1.152 FORTHK = $(ENGINE) $(FORTHKFLAGS)
91 : anton 1.206 #FORTHP = $(ENGINE) --die-on-signal -i ./$(kernel_fi)
92 : anton 1.183 #the "-2 image-included-files +!" undoes the change to image-included-files
93 :     # in exboot.fs
94 : anton 1.298 STARTUP = exboot.fs startup.fs @asm_fs@ @disasm_fs@
95 : anton 1.22 STRIP = strip
96 : pazsan 1.330 TEXI2DVI = @TEXI2DVI@
97 :     TEXI2PDF = @TEXI2DVI@ --pdf
98 : pazsan 1.279 DVI2PS = dvips -t letterSize -Z
99 : anton 1.99 #you can get texi2html from http://wwwcn.cern.ch/dci/texi2html/
100 : anton 1.170 MAKEINFO = makeinfo
101 : anton 1.15 TEXI2HTML = texi2html
102 : jwilke 1.106
103 :     # ------------- Compiler Flags
104 :    
105 : anton 1.9 XCFLAGS = @CFLAGS@
106 :     XDEFINES = @DEFS@
107 : anton 1.375 SWITCHES = $(XCFLAGS) $(XDEFINES) $(OPTDEFINES) #-DNDEBUG #turn off assertions
108 : pazsan 1.48 ENGINE_FLAGS = @ENGINE_FLAGS@ -fno-defer-pop -fcaller-saves
109 : pazsan 1.30 DEBUGFLAG = @DEBUGFLAG@
110 : anton 1.270 CFLAGS = $(DEBUGFLAG) -I$(srcdir)/engine -I$(srcdir)/arch/$(machine) -O3 -Wall $(SWITCHES) -DDEFAULTPATH='"$(FORTHPATH)"'
111 : anton 1.394 CPPFLAGS = @CPPFLAGS@
112 : pazsan 1.1
113 :     #John Wavrik should use -Xlinker -N to get a writable text (executable)
114 : pazsan 1.30 XLDFLAGS = @LDFLAGS@
115 : anton 1.117 LDFLAGS = $(DEBUGFLAG) $(XLDFLAGS)
116 : anton 1.9 LDLIBS = @LIBS@
117 :    
118 : anton 1.374 STACK_CACHE_REGS = @STACK_CACHE_REGS@
119 : anton 1.309 STACK_CACHE_DEFAULT_FAST = @STACK_CACHE_DEFAULT_FAST@
120 :    
121 :     # ------------ Install Directories
122 : jwilke 1.106
123 : anton 1.52 VPATH = @srcdir@
124 : anton 1.9 prefix = @prefix@
125 :     exec_prefix = @exec_prefix@
126 :     srcdir = @srcdir@
127 : anton 1.351 bindir = @bindir@
128 : anton 1.9 #read-only architecture-independent files
129 : anton 1.370 datarootdir = @datarootdir@
130 : anton 1.351 datadir = @datadir@
131 : anton 1.9 #read-only architecture-dependent non-ascii files
132 : anton 1.351 libdir = @libdir@
133 : anton 1.403 libccdir = $(libdir)/gforth/$(VERSION)/libcc-named/
134 : anton 1.351 includedir = @includedir@
135 :     infodir = @infodir@
136 :     htmldir = @htmldir@
137 :     mandir = @mandir@
138 : anton 1.52 man1dir= $(mandir)/man1
139 :     man1ext= .1
140 :     #older emacses have their site-lisp in $(libdir)/emacs/
141 : anton 1.110 emacssitelispdir=@lispdir@
142 : anton 1.141 siteforthdir=$(datadir)/gforth/site-forth
143 : pazsan 1.1
144 : anton 1.280 PROFOBJS = @PROFOBJS@
145 :     PROFEXES = @PROFEXES@
146 :    
147 : pazsan 1.124 CVSDIRS = CVS engine/CVS kernel/CVS doc/CVS asm/CVS ec/CVS test/CVS \
148 : pazsan 1.192 compat/CVS unix/CVS \
149 : pazsan 1.124 arch/CVS arch/generic/CVS arch/m68k/CVS arch/mips/CVS \
150 :     arch/386/CVS arch/hppa/CVS arch/sparc/CVS arch/power/CVS \
151 :     arch/alpha/CVS arch/4stack/CVS arch/misc/CVS arch/6502/CVS \
152 :     arch/8086/CVS arch/avr/CVS arch/c165/CVS arch/h8/CVS \
153 : anton 1.281 arch/shboom/CVS arch/sharc/CVS arch/ia64/CVS arch/amd64/CVS \
154 : pazsan 1.315 arch/arm/CVS arch/r8c/CVS
155 : pazsan 1.124
156 : anton 1.336 INCLUDES = engine/forth.h engine/threaded.h engine/io.h engine/longlong.h
157 : anton 1.135
158 : anton 1.52 KERN_SRC = \
159 : jwilke 1.155 mach16b.fs mach16l.fs mach32b.fs mach32l.fs mach64b.fs mach64l.fs \
160 : pazsan 1.204 machpc.fs.in \
161 : anton 1.100 kernel/aliases0.fs \
162 :     kernel/aliases.fs \
163 :     kernel/args.fs \
164 : pazsan 1.173 kernel/cbr.fs \
165 :     kernel/cloop.fs \
166 : anton 1.100 kernel/cond.fs \
167 :     kernel/cond-old.fs \
168 : anton 1.52 cross.fs \
169 : anton 1.100 kernel/errore.fs \
170 :     kernel/files.fs \
171 :     kernel/require.fs \
172 :     kernel/paths.fs \
173 :     kernel/kernel.fs \
174 :     kernel/main.fs \
175 :     kernel/prim0.fs \
176 :     search.fs \
177 : jwilke 1.156 kernel/quotes.fs \
178 : anton 1.100 kernel/tools.fs \
179 :     kernel/toolsext.fs \
180 :     kernel/vars.fs \
181 :     kernel/accept.fs \
182 :     kernel/basics.fs \
183 : pazsan 1.107 kernel/int.fs \
184 :     kernel/comp.fs \
185 : anton 1.100 kernel/io.fs \
186 : pazsan 1.192 kernel/input.fs \
187 : anton 1.100 kernel/license.fs \
188 :     kernel/nio.fs \
189 : pazsan 1.108 kernel/saccept.fs \
190 :     kernel/doers.fs \
191 : jwilke 1.157 kernel/getdoers.fs \
192 : anton 1.304 kernel/pass.fs \
193 :     kernel/xchars.fs
194 : anton 1.52
195 : pazsan 1.107 EC_SRC = \
196 : anton 1.118 asm/README \
197 : pazsan 1.107 asm/bitmask.fs \
198 :     asm/numref.fs \
199 : anton 1.328 chains.fs \
200 : pazsan 1.107 asm/basic.fs \
201 :     asm/generic.fs \
202 :     asm/target.fs \
203 : anton 1.118 ec/README \
204 : pazsan 1.107 ec/mirror.fs \
205 :     ec/shex.fs \
206 :     ec/builttag.fs \
207 :     ec/dotx.fs \
208 : pazsan 1.324 ec/nesting.fs \
209 :     build-ec.in
210 : pazsan 1.107
211 : anton 1.52 GFORTH_FI_SRC = \
212 :     assert.fs \
213 : pazsan 1.181 backtrac.fs \
214 : anton 1.100 blocked.fb \
215 : anton 1.52 blocks.fs \
216 :     bufio.fs \
217 : anton 1.235 code.fs \
218 : anton 1.52 debug.fs \
219 : anton 1.100 debugs.fs \
220 : anton 1.297 dis-gdb.fs \
221 : anton 1.162 ekey.fs \
222 : anton 1.322 envos.fs \
223 : anton 1.100 savesys.fs \
224 : anton 1.52 environ.fs \
225 : pazsan 1.82 errors.fs \
226 : anton 1.172 exboot.fs \
227 : pazsan 1.181 except.fs \
228 : pazsan 1.82 extend.fs \
229 : anton 1.52 float.fs \
230 :     glocals.fs \
231 :     hash.fs \
232 :     history.fs \
233 : anton 1.64 intcomp.fs \
234 : anton 1.349 libcc.fs \
235 : pazsan 1.101 locals.fs \
236 : anton 1.52 look.fs \
237 : anton 1.221 quotes.fs \
238 : anton 1.100 search.fs \
239 : anton 1.52 see.fs \
240 : pazsan 1.85 see-ext.fs \
241 : anton 1.207 simp-see.fs \
242 : anton 1.52 source.fs \
243 :     startup.fs \
244 :     struct.fs \
245 : anton 1.354 struct0x.fs \
246 : anton 1.52 stuff.fs \
247 : pazsan 1.60 tasker.fs \
248 : anton 1.52 termsize.fs \
249 : pazsan 1.301 utf-8.fs \
250 : anton 1.52 vt100.fs \
251 :     vt100key.fs \
252 : pazsan 1.101 wordinfo.fs \
253 : anton 1.178 arch/386/asm.fs arch/386/disasm.fs \
254 : pazsan 1.301 arch/amd64/asm.fs arch/amd64/disasm.fs \
255 : anton 1.306 arch/alpha/asm.fs arch/alpha/disasm.fs arch/alpha/testasm.fs\
256 :     arch/mips/asm.fs arch/mips/disasm.fs arch/mips/insts.fs \
257 : anton 1.332 arch/mips/testasm.fs arch/mips/testdisasm.fs \
258 :     arch/power/asm.fs arch/power/disasm.fs arch/power/inst.fs
259 : anton 1.52
260 : anton 1.402 LIBCC_SRC = libffi.fs fflib.fs unix/socket.fs
261 :    
262 :     FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC) $(EC_SRC) $(LIBCC_SRC) \
263 : anton 1.75 ans-report.fs ansi.fs answords.fs \
264 : anton 1.331 colorize.fs comp-i.fs complex.fs \
265 : anton 1.296 depth-changes.fs dosekey.fs doskey.fs ds2texi.fs \
266 : anton 1.331 envos.dos envos.os2 etags.fs fft.fs filedump.fs fi2c.fs \
267 : pazsan 1.299 fsl-util.4th glosgen.fs gray.fs httpd.fs proxy.fs \
268 : anton 1.160 make-app.fs doc/makedoc.fs \
269 : anton 1.346 locate.fs more.fs onebench.fs other.fs prims2x.fs random.fs \
270 : anton 1.331 regexp.fs sokoban.fs string.fs table.fs tags.fs \
271 : anton 1.256 tt.fs \
272 : anton 1.337 unbuffer.fs wordsets.fs xwords.fs \
273 : anton 1.365 test/tester.fs test/ttester.fs \
274 : anton 1.363 test/coretest.fs test/postpone.fs test/dbltest.fs \
275 : anton 1.370 test/string.fs test/float.fs test/search.fs test/gforth.fs \
276 : anton 1.230 test/other.fs test/signals.fs test/checkans.fs \
277 : pazsan 1.315 test/primtest.fs test/coreext.fs test/deferred.fs \
278 : anton 1.349 test/coremore.fs test/gforth-nofast.fs test/libcc.fs \
279 : pazsan 1.65 bubble.fs siev.fs matrix.fs fib.fs \
280 : crook 1.151 oof.fs oofsampl.fs objects.fs objexamp.fs mini-oof.fs moof-exm.fs \
281 : pazsan 1.195 moofglos.fs fixpath.fs \
282 : anton 1.402 add.fs lib.fs oldlib.fs sieve.fs \
283 : anton 1.341 endtry-iferror.fs recover-endtry.fs
284 : pazsan 1.1
285 : anton 1.131 COMPAT = compat/README \
286 :     compat/anslocal.fs \
287 :     compat/assert.fs \
288 :     compat/control.fs \
289 :     compat/defer.fs \
290 :     compat/exception.fs \
291 : anton 1.314 compat/execute-parsing.fs \
292 : anton 1.131 compat/loops.fs \
293 :     compat/required.fs \
294 : anton 1.227 compat/strcomp.fs \
295 : anton 1.131 compat/struct.fs \
296 :     compat/vocabulary.fs
297 : anton 1.100
298 : anton 1.111 GFORTH_TEXI = doc/gforth.texi doc/version.texi
299 :    
300 : anton 1.223 VMGEN_TEXI = doc/vmgen.texi doc/version.texi doc/fdl.texi
301 :    
302 : anton 1.100 ALLSUBDIRS = engine
303 :    
304 : anton 1.135 ARCHS = \
305 :     arch/generic/machine.h \
306 :     arch/m68k/machine.h \
307 :     arch/mips/machine.h \
308 :     arch/386/machine.h \
309 :     arch/hppa/machine.h \
310 :     arch/hppa/cache.c \
311 :     arch/sparc/machine.h \
312 :     arch/power/machine.h \
313 :     arch/power/_sync_cache_range.c \
314 :     arch/alpha/machine.h \
315 : anton 1.281 arch/arm/machine.h \
316 : anton 1.346 arch/arm/cacheflush0.c \
317 : dvdkhlng 1.386 arch/arm/cacheflush-linux.c \
318 : anton 1.185 arch/ia64/machine.h \
319 : anton 1.281 arch/ia64/flush_icache_block.c \
320 :     arch/amd64/machine.h \
321 : anton 1.135 arch/4stack/README \
322 :     arch/4stack/asm.fs \
323 :     arch/4stack/mach.fs \
324 :     arch/4stack/prim.fs \
325 :     arch/4stack/mach.sh \
326 :     arch/4stack/relocate.fs \
327 :     arch/misc/README \
328 :     arch/misc/asm.fs \
329 :     arch/misc/mach.fs \
330 : anton 1.290 arch/misc/optcmove.fs \
331 : anton 1.135 arch/misc/prim.fs \
332 :     arch/misc/sim.fs \
333 :     arch/misc/sokoban.fs \
334 :     arch/misc/tt.fs \
335 :     arch/6502/prim.fs \
336 :     arch/6502/mach.fs \
337 :     arch/shboom/asm.fs \
338 :     arch/shboom/compiler.fs \
339 :     arch/shboom/dis.fs \
340 :     arch/shboom/mach.fs \
341 :     arch/shboom/prim.fs \
342 :     arch/shboom/dis2.fs \
343 :     arch/shboom/sh.p \
344 : pazsan 1.192 arch/shboom/doers.fs \
345 :     arch/sharc/mach.fs \
346 :     arch/sharc/machine.h \
347 :     arch/sharc/compile.sharc \
348 :     arch/sharc/systypes.h \
349 :     arch/sharc/types.h \
350 : pazsan 1.315 arch/sharc/g21k-3.3.4-bp1.diff \
351 :     arch/r8c/asm.fs \
352 : anton 1.409 arch/r8c/mach.fs \
353 :     arch/r8c/prim.fs
354 : anton 1.302
355 :     #not included in distribution until distribution terms are included:
356 :     ARCHS_NO_DIST = \
357 :     arch/6502/asm.fs \
358 :     arch/6502/cold.fs \
359 :     arch/6502/softuart.fs \
360 :     arch/6502/zero.fs \
361 :     arch/8086/asm.fs \
362 :     arch/8086/mach.fs \
363 :     arch/8086/mach.sh \
364 :     arch/8086/prim.fs \
365 :     arch/avr/asm.fs \
366 :     arch/c165/asm.fs \
367 :     arch/c165/mach.fs \
368 :     arch/c165/prim.fs \
369 :     arch/h8/asm.fs \
370 : anton 1.409 arch/r8c/asm-test.fs \
371 :     arch/r8c/errors.fs \
372 :     arch/r8c/lauflicht.fs \
373 :     arch/r8c/tasker.fs \
374 :     arch/r8c/terminal.fs \
375 :     arch/r8c/tt.fs \
376 : anton 1.302 arch/sharc/unistd.h
377 : anton 1.135
378 : anton 1.206 VMGEN_EX = vmgen-ex/CVS vmgen-ex/Makefile vmgen-ex/README vmgen-ex/disasm.c \
379 :     vmgen-ex/engine.c vmgen-ex/fib.mini \
380 :     vmgen-ex/mini-inst.vmg vmgen-ex/mini-super.vmg vmgen-ex/mini.h \
381 :     vmgen-ex/mini.l vmgen-ex/mini.y vmgen-ex/peephole-blacklist \
382 :     vmgen-ex/peephole.c vmgen-ex/profile.c vmgen-ex/seq2rule.awk \
383 :     vmgen-ex/simple.mini vmgen-ex/stat.awk vmgen-ex/support.c \
384 :     vmgen-ex/test.mini vmgen-ex/test.out
385 :    
386 : anton 1.226 VMGEN_EX2 = $(VMGEN_EX:vmgen-ex/%=vmgen-ex2/%)
387 :    
388 : anton 1.382 ENGINE_SOURCES = engine/Makefile.in engine/config.h.in \
389 : anton 1.287 engine/engine.c engine/main.c \
390 : anton 1.351 engine/io.c engine/support.c engine/signals.c engine/libcc.h.in \
391 : pazsan 1.393 engine/profile.c engine/128bit.h \
392 : anton 1.135 engine/getopt.c engine/getopt1.c engine/getopt.h engine/select.c \
393 : anton 1.281 engine/ecvt.c engine/memcmp.c engine/rint.c \
394 :     engine/strtol.c engine/strtoul.c \
395 : anton 1.135 engine/ansidecl.h engine/memmove.c \
396 :     engine/pow10.c engine/atanh.c engine/cleanalign.c \
397 :     engine/strerror.c engine/strsignal.c engine/dblsub.c \
398 : anton 1.177 engine/fnmatch.h engine/fnmatch.c \
399 : anton 1.382 engine/makefile.dos engine/makefile.os2
400 :    
401 :     SOURCES = $(CVSDIRS) $(ENGINE_SOURCES) compat Makefile.in Makedist.in \
402 : anton 1.397 gforthmi.in vmgen.in preforth.in gfgen README.vmgen NEWS.vmgen \
403 : anton 1.414 autogen.sh configure.in configure config.sub config.guess \
404 :     elisp-comp missing stamp-h.in envos.fs.in \
405 : anton 1.382 iss.sh install-sh INSTALL INSTALL.BINDIST NEWS README ToDo BUGS \
406 :     BUILD-FROM-SCRATCH model \
407 :     COPYING COPYING.LIB COPYING.DOC AUTHORS ChangeLog Benchres aclocal.m4 \
408 :     doc/gforth.ds doc/gforth.1 doc/version.texi.in \
409 :     doc/vmgen.texi doc/fdl.texi doc/gpl.texi \
410 :     gforth.el \
411 :     $(ARCHS) \
412 :     INSTALL.DOS makefile.dos mkdosmf.sed config.bat \
413 : anton 1.141 dosconf.h gforthmi.bat mkinstalldirs siteinit.fs \
414 : anton 1.135 versions.bsh \
415 : anton 1.382 configure.cmd mkos2mf.sed os2conf.h makefile.os2 \
416 : anton 1.135 gforthmi.cmd glosgen.glo doc/glossaries.doc \
417 : anton 1.270 $(INCLUDES) $(FORTH_SRC) $(COMPAT) $(VMGEN_EX) $(VMGEN_EX2) \
418 : anton 1.158 timings.sc \
419 : anton 1.342 test/coretest.out test/checkans.out test/gforth.out \
420 : anton 1.398 cache*.vmg peeprules.vmg prim
421 : anton 1.135
422 : anton 1.5 RCS_FILES = ToDo model high-level
423 : pazsan 1.1
424 : anton 1.385 ENGINES = gforth$(EC)$(EXE) gforth-ditc$(EC)$(EXE) gforth-itc$(EC)$(EXE) $(PROFEXES)
425 : anton 1.377
426 : anton 1.380 ENGINES_FAST = gforth-fast$(OPT)$(EC)$(EXE) #gforth-native$(OPT)$(EC)$(EXE)
427 : anton 1.377
428 : pazsan 1.410 GEN = $(ENGINES) $(ENGINES_FAST) gforth.elc
429 : pazsan 1.1
430 :     # things that need a working forth system to be generated
431 : anton 1.232 FORTH_GEN_ENGINE=engine/prim.i engine/prim_lab.i engine/prim_names.i \
432 : anton 1.244 engine/prim_superend.i engine/profile.i \
433 : anton 1.266 engine/prim_num.i engine/prim_grp.i \
434 :     engine/costs.i engine/super2.i
435 : anton 1.285 FORTH_GEN_ENGINE_FAST= \
436 :     engine/prim-fast.i engine/prim_lab-fast.i engine/prim_names-fast.i \
437 :     engine/prim_superend-fast.i engine/profile-fast.i \
438 :     engine/prim_num-fast.i engine/prim_grp-fast.i \
439 :     engine/costs-fast.i engine/super2-fast.i
440 : anton 1.331 FORTH_GEN_PRIMB = $(FORTH_GEN_ENGINE) kernel/aliases.fs kernel/prim.fs
441 : pazsan 1.411 FORTH_GEN0 = prim.b $(FORTH_GEN_PRIMB)
442 : pazsan 1.65 FORTH_GEN = $(FORTH_GEN0) @KERNEL@ gforth.fi
443 : pazsan 1.1 # this is used for antidependences,
444 : pazsan 1.324 FORTH_GEN1 = $(FORTH_GEN0) @kernel_fi@ build-ec
445 : anton 1.5
446 : anton 1.227 #kernel dependencies
447 : anton 1.385 KERN_DEPS = $(KERN_SRC) kernel/version.fs machpc.fs $(FORTH_GEN0) compat/strcomp.fs
448 : anton 1.227
449 : anton 1.38 #distributed documentation
450 : pazsan 1.320 DOCDIST = doc/gforth.info doc/gforth.info-* doc/gforth.ps \
451 :     doc/vmgen.info doc/vmgen.ps
452 : anton 1.5
453 : pazsan 1.373 BKERNLS = kernl16b$(EC).fi kernl16l$(EC).fi \
454 :     kernl32b$(EC).fi kernl32l$(EC).fi \
455 :     kernl64b$(EC).fi kernl64l$(EC).fi
456 :    
457 : pazsan 1.347 KERNLS = kernl16b$(EC).fi- kernl16l$(EC).fi- \
458 :     kernl32b$(EC).fi- kernl32l$(EC).fi- \
459 :     kernl64b$(EC).fi- kernl64l$(EC).fi-
460 : pazsan 1.30
461 : pazsan 1.389 # ------------- Make forth images
462 : anton 1.223 GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) \
463 :     doc/gforth.texi doc/gforth.dvi doc/gforth.ps \
464 :     doc/vmgen.dvi doc/vmgen.ps \
465 :     Makefile Makedist engine/Makefile configure
466 : pazsan 1.1
467 : anton 1.9 #standards.info recommends this:
468 :     .SUFFIXES:
469 :     .SUFFIXES: .c .o
470 :    
471 : anton 1.380 all: kernel/version.fs more
472 : pazsan 1.1
473 : jwilke 1.106 # use this dependency for phony targets just as mostlyclean,...
474 :     FORCE: ;
475 :    
476 : anton 1.78 #this rule avoids remaking everything after minor changes in Makefile.in
477 : anton 1.207 version: Makefile.in configure.in
478 : anton 1.94 if test -r $@ && test x'$(VERSION)' = x`cat $@` ; then true ; else echo $(VERSION) > $@ ; fi
479 : anton 1.78
480 : jwilke 1.106 # With dos we use normal dos echo
481 :     # we cannot pipe the output to engine/version.h directly because
482 :     # of the "/ and \" problem. Copying works because we use the
483 :     # shell und file utilities.
484 :    
485 : anton 1.100 kernel/version.fs: version
486 : pazsan 1.129 echo ": version-string s\" $(VERSION)\" ;" > kernel/version.fs
487 : pazsan 1.2
488 : anton 1.380 more: $(ENGINES) $(FORTH_GEN) $(GEN)
489 : anton 1.385 @$(MAKE) check
490 : pazsan 1.2
491 : pazsan 1.1 #from the gcc Makefile:
492 :     #"Deletion of files made during compilation.
493 :     # There are four levels of this:
494 :     # `mostlyclean', `clean', `distclean' and `realclean'.
495 :     # `mostlyclean' is useful while working on a particular type of machine.
496 :     # It deletes most, but not all, of the files made by compilation.
497 :     # It does not delete libgcc.a or its parts, so it won't have to be recompiled.
498 :     # `clean' deletes everything made by running `make all'.
499 :     # `distclean' also deletes the files made by config.
500 :     # `realclean' also deletes everything that could be regenerated automatically."
501 :    
502 : jwilke 1.106 mostlyclean: FORCE
503 : anton 1.118 -$(RM) -rf engine/*.s gforth.fi *.fi~ *.fi- kernel/version.fs \
504 :     *TAGS gforth~ \
505 : anton 1.100 doc/crossdoc.fd doc/doc.fd doc/gforth.texi doc/gforth.fns \
506 :     doc/gforth.aux doc/gforth.cp doc/gforth.cps \
507 :     doc/gforth.dvi doc/gforth.fn doc/gforth.ky doc/gforth.log \
508 :     doc/gforth.pg \
509 :     doc/gforth.toc doc/gforth.tp doc/gforth.vr html \
510 : anton 1.110 gforth-$(VERSION).tar.gz
511 : anton 1.45
512 : crook 1.146 # Just the stuff needed to rebuild the documentation nac03feb1999
513 :     docclean: FORCE
514 :     -$(RM) -rf doc/crossdoc.fd doc/doc.fd doc/gforth.texi doc/gforth.fns \
515 :     doc/gforth.aux doc/gforth.cp doc/gforth.cps \
516 :     doc/gforth.dvi doc/gforth.fn doc/gforth.ky doc/gforth.log \
517 :     doc/gforth.pg \
518 :     doc/gforth.toc doc/gforth.tp doc/gforth.vr html
519 :    
520 : anton 1.45 clean: mostlyclean
521 : anton 1.381 -$(RM) -rf $(GEN) *.o engine/*.o arch/*/*.o version \
522 :     gforth-itc-noll$(EC)$(EXE) engine/gforth-itc-noll$(EC)$(EXE) \
523 :     gforth-ditc-noll$(EC)$(EXE) engine/gforth-ditc-noll$(EC)$(EXE) \
524 :     gforth-prof-noll$(EC)$(EXE) engine/gforth-prof-noll$(EC)$(EXE) \
525 :     engine/prim-s.i
526 :     for i in gforth gforth-fast gforth-native; do for j in $(OPTS); do rm -f engine/$$i$${j}$(EC)$(EXE) $$i$${j}$(EC)$(EXE); done; done
527 : pazsan 1.1
528 :     distclean: clean
529 : anton 1.267 -$(RM) -rf config.cache config.log config.status \
530 : pazsan 1.134 engine/config.h Makefile Makedist engine/Makefile \
531 : anton 1.118 stamp-h engine/stamp-h \
532 : anton 1.397 doc/version.texi gforthmi vmgen preforth \
533 : anton 1.309 prim-fast.b $(FORTH_GEN_ENGINE_FAST)
534 : pazsan 1.1
535 : anton 1.53 #realclean is useless, but dangerous, so it's commented out
536 : pazsan 1.174 realclean: distclean
537 : anton 1.392 -$(RM) -rf $(GEN_PRECIOUS) `cat .cvsignore`
538 : pazsan 1.1
539 : anton 1.45 #mostlyclean, but also remove some of the stuff that is distributed
540 :     virtualclean: mostlyclean
541 :     -$(RM) -rf gforth.fns gforth.texi gforth.ps gforth.info* \
542 : anton 1.59 gforth-$(VERSION).tar.gz config.cache *~ */*~
543 : anton 1.45
544 : anton 1.396 maintainer-clean: realclean
545 :    
546 : anton 1.135 #Some makes (Ultrix, SunOS, IRIX) are so broken, they cannot read the
547 :     #Makefile if it contains our dist rules. Therefore we have put these
548 :     #rules in Makedist (you can use them with GNU make on these systems).
549 : pazsan 1.274
550 : pazsan 1.343 dist: Makedist FORCE
551 : anton 1.135 $(MAKE) -f Makedist d$@
552 : pazsan 1.134
553 : pazsan 1.343 dosdist: Makedist FORCE
554 : anton 1.135 $(MAKE) -f Makedist d$@
555 : pazsan 1.134
556 : anton 1.136 srcdist: Makedist FORCE
557 : anton 1.135 $(MAKE) -f Makedist d$@
558 : pazsan 1.134
559 : anton 1.136 srconlydist: Makedist FORCE
560 : anton 1.135 $(MAKE) -f Makedist d$@
561 : pazsan 1.134
562 : anton 1.136 docdist: Makedist FORCE
563 : anton 1.135 $(MAKE) -f Makedist d$@
564 : pazsan 1.134
565 : anton 1.136 htmldist: Makedist FORCE
566 : anton 1.135 $(MAKE) -f Makedist d$@
567 : pazsan 1.1
568 : pazsan 1.343 bindist: Makedist FORCE
569 : anton 1.135 $(MAKE) -f Makedist d$@
570 :    
571 : pazsan 1.343 binonlydist: Makedist FORCE
572 : anton 1.135 $(MAKE) -f Makedist d$@
573 : anton 1.22
574 : anton 1.275 #HPUX make breaks the cycle differently when the dates are equal, so
575 :     # touch some of the files if it acts up
576 :     hpux-workaround:
577 :     touch $(FORTH_GEN_PRIMB)
578 : anton 1.22
579 : anton 1.15 #strip gforth, because the debugging stuff is hardly useful once
580 : anton 1.187 # gforth manages to execute more than a few primitives.
581 : anton 1.15
582 : anton 1.68 #install does not depend on gforth.info, because that would require
583 :     #supplying a lot of files that can be easily generated (only info is
584 : anton 1.187 #hard to generate).
585 :     #we rebuild gforth.fi, because it contains some path names.
586 :     #we delete $build/gforth.fi and $build/install.TAGS after installation because of ownership.
587 : pazsan 1.347 install: gforth$(EC)$(EXE) $(FORTH_SRC) $(kernel_fi) gforth.fi gforthmi vmgen doc/gforth.1 prim install.TAGS installdirs
588 : anton 1.331 $(NORMAL_INSTALL)
589 : anton 1.316 touch $(DESTDIR)$(siteforthdir)/siteinit.fs
590 : anton 1.351 -$(RM) $(DESTDIR)$(bindir)/gforth$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-$(VERSION)$(EC)$(EXE) $(DESTDIR)$(bindir)/gforthmi #$(DESTDIR)$(bindir)/vmgen
591 : pazsan 1.347 -$(RM) $(DESTDIR)$(bindir)/gforth-fast$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-fast-$(VERSION)$(EC)$(EXE)
592 :     -$(RM) $(DESTDIR)$(bindir)/gforth-itc$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-itc-$(VERSION)$(EC)$(EXE)
593 :     $(INSTALL_PROGRAM) gforth$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-$(VERSION)$(EC)$(EXE)
594 :     -$(MASSAGE_EXE) $(DESTDIR)$(bindir)/gforth-$(VERSION)$(EC)$(EXE)
595 :     (cd $(DESTDIR)$(bindir) && $(LN_S) gforth-$(VERSION)$(EC)$(EXE) gforth$(EC)$(EXE))
596 :     $(INSTALL_PROGRAM) gforth-fast$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-fast-$(VERSION)$(EC)$(EXE)
597 :     -$(MASSAGE_EXE) $(DESTDIR)$(bindir)/gforth-fast-$(VERSION)$(EC)$(EXE)
598 :     (cd $(DESTDIR)$(bindir) && $(LN_S) gforth-fast-$(VERSION)$(EC)$(EXE) gforth-fast$(EC)$(EXE))
599 :     $(INSTALL_PROGRAM) gforth-itc$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-itc-$(VERSION)$(EC)$(EXE)
600 :     (cd $(DESTDIR)$(bindir) && $(LN_S) gforth-itc-$(VERSION)$(EC)$(EXE) gforth-itc$(EC)$(EXE))
601 : anton 1.316 $(INSTALL_SCRIPT) gforthmi $(DESTDIR)$(bindir)/gforthmi-$(VERSION)
602 : anton 1.351 #$(INSTALL_SCRIPT) vmgen $(DESTDIR)$(bindir)/vmgen-$(VERSION)
603 : anton 1.316 $(INSTALL_PROGRAM) gforth-ditc $(DESTDIR)$(libdir)/gforth/$(VERSION)
604 :     (cd $(DESTDIR)$(bindir) && $(LN_S) gforthmi-$(VERSION) gforthmi)
605 : anton 1.351 #(cd $(DESTDIR)$(bindir) && $(LN_S) vmgen-$(VERSION) vmgen)
606 : anton 1.316 -$(INSTALL_DATA) $(srcdir)/doc/gforth.1 $(DESTDIR)$(man1dir)
607 : anton 1.351 #-for i in $(srcdir)/doc/gforth.info* $(srcdir)/doc/vmgen.info*; do $(INSTALL_DATA) $$i $(DESTDIR)$(infodir); done
608 :     -for i in $(srcdir)/doc/gforth.info*; do $(INSTALL_DATA) $$i $(DESTDIR)$(infodir); done
609 : anton 1.131 for i in $(FORTH_SRC) $(COMPAT) prim; do \
610 : anton 1.316 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(datadir)/gforth/$(VERSION)/$$i; \
611 : anton 1.9 done
612 : anton 1.316 $(INSTALL_DATA) $(kernel_fi) $(DESTDIR)$(datadir)/gforth/$(VERSION)
613 : anton 1.342 @if test -d "$(DESTDIR)$(emacssitelispdir)"; then \
614 : anton 1.416 $(INSTALL_DATA) gforth.el $(DESTDIR)$(emacssitelispdir); \
615 : anton 1.362 $(INSTALL_DATA) gforth.elc $(DESTDIR)$(emacssitelispdir); \
616 : pazsan 1.55 else \
617 : anton 1.416 echo '>>>>>Please install gforth.{el,elc} in your .../emacs/site-lisp directory'; \
618 : anton 1.52 fi
619 : anton 1.190 -$(RM) gforth.fi
620 : anton 1.402 GFORTHD="./gforth-ditc -p $(DESTDIR)$(libdir)/gforth/site-forth$(PATHSEP)$(DESTDIR)$(siteforthdir)$(PATHSEP)$(DESTDIR)$(datadir)/gforth/$(VERSION) -i $(kernel_fi)" GFORTH="./gforth-ditc --die-on-signal -i $(kernel_fi) $(STARTUP)" includedir=$(includedir) bindir=$(bindir) libccdir=$(libccdir) GFORTHPATH=.:"$$GFORTHPATH" GFORTHDESTDIR="$(DESTDIR)" ./gforthmi gforth.fi $(FORTHSIZES) $(STARTUP)
621 : anton 1.316 $(INSTALL_DATA) gforth.fi $(DESTDIR)$(libdir)/gforth/$(VERSION)
622 :     $(INSTALL_DATA) install.TAGS $(DESTDIR)$(datadir)/gforth/$(VERSION)/TAGS
623 : anton 1.187 $(RM) gforth.fi install.TAGS
624 : anton 1.351 $(INSTALL_DATA) include/gforth/$(VERSION)/* $(DESTDIR)$(includedir)/gforth/$(VERSION)
625 : pazsan 1.413 for i in $(LIBCC_SRC); do @GNU_LIBTOOL@ --silent --mode=install $(INSTALL) lib/gforth/$(VERSION)/libcc-named/`basename $$i .fs`.la $(DESTDIR)$(libccdir)`basename $$i .fs`.la; done
626 : anton 1.331 $(POST_INSTALL)
627 : anton 1.316 $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/gforth.info
628 : anton 1.351 #$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/vmgen.info
629 : anton 1.40
630 : anton 1.66 install-strip: install
631 :    
632 : anton 1.78 installdirs: mkinstalldirs
633 : anton 1.331 $(NORMAL_INSTALL)
634 : anton 1.402 for i in $(bindir) $(man1dir) $(infodir) $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(libdir)/gforth/site-forth $(siteforthdir) $(includedir)/gforth/$(VERSION) $(libccdir); do \
635 : anton 1.316 $(srcdir)/mkinstalldirs $(DESTDIR)$$i; \
636 : anton 1.141 done
637 : anton 1.131 for i in $(CVSDIRS); do \
638 : anton 1.316 $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/gforth/$(VERSION)/`dirname $$i`; \
639 : anton 1.131 done
640 : anton 1.316 $(RM) -rf $(DESTDIR)$(datadir)/gforth/$(VERSION)/engine
641 : anton 1.78
642 : anton 1.40 #deinstall all files specific to this version of gforth
643 :     #to uninstall version foo, type `make uninstall VERSION=foo'
644 : jwilke 1.106 uninstall: FORCE
645 : anton 1.331 $(NORMAL_UNINSTALL)
646 : anton 1.351 -$(RM) -rf $(DESTDIR)$(libdir)/gforth/$(VERSION) $(DESTDIR)$(datadir)/gforth/$(VERSION) $(DESTDIR)$(bindir)/gforth-$(VERSION)$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-fast-$(VERSION)$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-itc-$(VERSION)$(EC)$(EXE) $(DESTDIR)$(bindir)/gforthmi-$(VERSION) $(DESTDIR)(bindir)/vmgen-$(VERSION) $(DESTDIR)$(includedir)/gforth/$(VERSION)
647 : pazsan 1.347 @echo -e "To remove Gforth completely, type\n$(RM) -rf $(DESTDIR)$(bindir)/gforth$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-fast$(EC)$(EXE) $(DESTDIR)$(bindir)/gforth-itc$(EC)$(EXE) $(DESTDIR)$(bindir)/gforthmi $(DESTDIR)$(bindir)/vmgen $(DESTDIR)$(man1dir)/gforth.1 $(DESTDIR)$(infodir)/gforth.info* $(DESTDIR)$(datadir)/gforth $(DESTDIR)$(libdir)/gforth"
648 : anton 1.40
649 : anton 1.402 check-libcc-named: $(LIBCC_SRC)
650 :     $(RMTREE) lib/gforth/$(VERSION)/libcc-named/
651 :     $(srcdir)/mkinstalldirs lib/gforth/$(VERSION)/libcc-named/
652 : anton 1.408 for i in $(LIBCC_SRC); do ./gforth -e "s\" `pwd`/lib/gforth/$(VERSION)/libcc-named/\" libcc-named-dir-v 2! libcc-path clear-path libcc-named-dir libcc-path also-path :noname 2drop s\" $(libccdir)\" ; is replace-rpath" $$i -e bye; done
653 : anton 1.402
654 :     check: gforths gforth.fi
655 : anton 1.385 $(MAKE) checkone check-nofast ENGINE="./gforth --no-dynamic" >/dev/null 2>&1
656 : anton 1.383 $(MAKE) checkone check-nofast ENGINE="./gforth-itc" >/dev/null 2>&1
657 :     $(MAKE) checkone check-nofast ENGINE="./gforth-ditc" >/dev/null 2>&1
658 : anton 1.385 $(MAKE) checkone ENGINE="./gforth-fast --no-dynamic" >/dev/null 2>&1
659 :     $(MAKE) checkone check-nofast ENGINE="./gforth" >/dev/null 2>&1
660 :     $(MAKE) checkone ENGINE="./gforth-fast" >/dev/null 2>&1
661 : anton 1.402 $(MAKE) check-libcc-named
662 : pazsan 1.238 @echo "*** Check successful ***"
663 : pazsan 1.393 ./gforth-fast --diag -e bye
664 : anton 1.233
665 : anton 1.380 checkone test: gforth.fi engine/prim-s.i
666 : anton 1.370 $(FORTH) test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs test/string.fs test/float.fs test/deferred.fs test/coreext.fs test/search.fs -e bye 2>&1 | tr -d '\015' | diff -c - $(srcdir)/test/coretest.out
667 : anton 1.100 $(FORTH) test/other.fs -e bye
668 : anton 1.220 $(FORTHS) test/signals.fs -e bye
669 : anton 1.335 $(FORTHS) test/coremore.fs test/gforth.fs -e bye 2>&1 | tr -d '\015' | diff -c - $(srcdir)/test/gforth.out
670 : anton 1.251 $(FORTH) code.fs test/checkans.fs -e bye | tr -d '\015' | diff -c - $(srcdir)/test/checkans.out
671 : anton 1.213 $(FORTH) prims2x.fs -e \
672 : anton 1.225 "c-flag on s\" prim.i\" out-filename 2! s\" $(srcdir)/prim.b\" ' output-c ' output-c-combined process-file bye"| \
673 : anton 1.357 tr -d '\015' | grep -v '^#line '|diff -c - engine/prim-s.i
674 : anton 1.334
675 : anton 1.380 check-nofast: gforth.fi
676 : anton 1.334 $(FORTHS) test/gforth-nofast.fs -e bye
677 : anton 1.288
678 :     test/primtest.fi: test/primtest.fs mach32l.fs cross.fs
679 : anton 1.345 $(FORTHB) -e 's" mach32l.fs"' $(srcdir)/test/primtest.fs -e "save-cross $@ $(bindir)/gforth-$(VERSION) bye"
680 : anton 1.288
681 : anton 1.289 primtest: gforth gforth-native test/primtest.fi FORCE
682 : anton 1.291 (echo rs|ENVVAR=bla ./gforth -i test/primtest.fi) && (echo rs|ENVVAR=bla ./gforth-native -i test/primtest.fi); echo $$?
683 : anton 1.21
684 : anton 1.385 bench: gforth-fast$(EC)$(EXE) gforth.fi
685 : anton 1.40 @echo 'Each benchmark takes about 30s on a 486-66 (gcc-2.6.3 -DFORCE_REG)'
686 : anton 1.143 time $(FORTH_FAST) siev.fs -e "main bye"
687 :     time $(FORTH_FAST) bubble.fs -e "main bye"
688 : anton 1.213 time $(FORTH_FAST) matrix.fs -e "main bye"
689 : anton 1.143 time $(FORTH_FAST) fib.fs -e "main bye"
690 : anton 1.40
691 : anton 1.345 onebench one-bench:
692 :     $(FORTH_FAST) onebench.fs
693 :    
694 : anton 1.379 all-bench allbench:
695 : anton 1.345 ./gforth-fast --dynamic onebench.fs
696 :     ./gforth-fast --no-dynamic onebench.fs
697 :     ./gforth --dynamic onebench.fs
698 :     ./gforth --no-dynamic onebench.fs
699 :     ./gforth-itc onebench.fs
700 :     ./gforth-ditc onebench.fs
701 : pazsan 1.240
702 : jwilke 1.106 # ------------- Make forth images
703 : anton 1.87
704 : anton 1.150 # How to make new images:
705 : jwilke 1.106 # 1. Produce an image called kernlXYZ.fi-
706 :     # the original kernel.fi is not touched because it's needed for creation
707 :     # 2. copy old kernlXYZ.fi to kernlXYZ.fi~
708 :     # that's a backup copy in case the new kernels don't work
709 :     # 3. copy new kernels to kernlXYZ.fi
710 :     # these are the ones we want to use now
711 : pazsan 1.1
712 : pazsan 1.347 kernl16l$(EC).fi-: $(KERN_DEPS) mach16l.fs
713 : anton 1.387 $(PREFORTH) -e 's" mach16l.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl16l$(EC).fi- $(bindir)/gforth-$(VERSION) bye"
714 : anton 1.87
715 : pazsan 1.347 kernl16b$(EC).fi-: $(KERN_DEPS) mach16b.fs
716 : anton 1.387 $(PREFORTH) -e 's" mach16b.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl16b$(EC).fi- $(bindir)/gforth-$(VERSION) bye"
717 : anton 1.87
718 : pazsan 1.347 kernl32l$(EC).fi-: $(KERN_DEPS) mach32l.fs
719 : anton 1.387 $(PREFORTH) -e 's" mach32l.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl32l$(EC).fi- $(bindir)/gforth-$(VERSION) bye"
720 : anton 1.87
721 : pazsan 1.347 kernl32b$(EC).fi-: $(KERN_DEPS) mach32b.fs
722 : anton 1.387 $(PREFORTH) -e 's" mach32b.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl32b$(EC).fi- $(bindir)/gforth-$(VERSION) bye"
723 : anton 1.100
724 : pazsan 1.347 kernl64l$(EC).fi-: $(KERN_DEPS) mach64l.fs
725 : anton 1.387 $(PREFORTH) -e 's" mach64l.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl64l$(EC).fi- $(bindir)/gforth-$(VERSION) bye"
726 : anton 1.100
727 : pazsan 1.347 kernl64b$(EC).fi-: $(KERN_DEPS) mach64b.fs
728 : anton 1.387 $(PREFORTH) -e 's" mach64b.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl64b$(EC).fi- $(bindir)/gforth-$(VERSION) bye"
729 : anton 1.100
730 : anton 1.253 #Solaris make does not like that:
731 : pazsan 1.273 @GNUMAKE@kernl-%.fi: arch/%/mach.fs arch/%/prim.fs arch/%/asm.fs $(KERN_SRC) kernel/version.fs $(FORTH_GEN0)
732 : anton 1.387 @GNUMAKE@ $(PREFORTH) -e 's" $<"' $(srcdir)/kernel/main.fs -e "save-cross $@- $(bindir)/gforth-$(VERSION) bye"
733 : pazsan 1.273 @GNUMAKE@ if [ -f `echo $< | sed s/fs/sh/` ]; \
734 :     @GNUMAKE@ then sh `echo $< | sed s/fs/sh/` $@; \
735 :     @GNUMAKE@ else $(CP) $@- $@; \
736 :     @GNUMAKE@ fi
737 : pazsan 1.30
738 : anton 1.180 #SunOS make does not like that
739 :     #arch/%/mach.fs: arch/%/prim.fs arch/%/asm.fs
740 : pazsan 1.122
741 : pazsan 1.347 kernl16b$(EC).fi: $(KERNLS)
742 :     -$(CP) kernl16b$(EC).fi kernl16b$(EC).fi~
743 :     -$(CP) kernl16b$(EC).fi- kernl16b$(EC).fi
744 :    
745 :     kernl16l$(EC).fi: $(KERNLS)
746 :     -$(CP) kernl16l$(EC).fi kernl16l$(EC).fi~
747 :     -$(CP) kernl16l$(EC).fi- kernl16l$(EC).fi
748 :    
749 :     kernl32b$(EC).fi: $(KERNLS)
750 :     -$(CP) kernl32b$(EC).fi kernl32b$(EC).fi~
751 :     -$(CP) kernl32b$(EC).fi- kernl32b$(EC).fi
752 :    
753 :     kernl32l$(EC).fi: $(KERNLS)
754 :     -$(CP) kernl32l$(EC).fi kernl32l$(EC).fi~
755 :     -$(CP) kernl32l$(EC).fi- kernl32l$(EC).fi
756 :    
757 :     kernl64b$(EC).fi: $(KERNLS)
758 :     -$(CP) kernl64b$(EC).fi kernl64b$(EC).fi~
759 :     -$(CP) kernl64b$(EC).fi- kernl64b$(EC).fi
760 :    
761 :     kernl64l$(EC).fi: $(KERNLS)
762 :     -$(CP) kernl64l$(EC).fi kernl64l$(EC).fi~
763 :     -$(CP) kernl64l$(EC).fi- kernl64l$(EC).fi
764 : anton 1.89
765 : anton 1.100 #kernl%.fi: kernl%.fi- $(KERNLS)
766 :     # -$(CP) $@ $@~
767 :     # -$(CP) $< $@
768 : anton 1.87
769 : anton 1.383 gforth.fi: $(kernel_fi) gforthmi gforth-ditc$(EC)$(EXE) $(GFORTH_FI_SRC) comp-i.fs
770 : anton 1.402 GFORTHD="./gforth-ditc -p .$(PATHSEP)$(srcdir)" GFORTH="./gforth-ditc --die-on-signal -p .$(PATHSEP)$(srcdir) -i $(kernel_fi) $(STARTUP)" includedir=`pwd`/include bindir=`pwd` libccdir=`pwd`/lib/gforth/$(VERSION)/libcc-named/ ./gforthmi gforth.fi $(FORTHSIZES) $(FORTHKFLAGS) $(STARTUP)
771 : anton 1.9
772 : jwilke 1.106 # ------------- Make c-engine
773 : pazsan 1.1
774 : anton 1.287 prim.b: prim cache0.vmg
775 : anton 1.355 $(M4) -Dcondbranch_opt=0 $(srcdir)/prim >$@
776 : anton 1.275 sleep 1 #should make hpux-workaround unnecessary
777 : anton 1.100
778 : anton 1.374 prim-fast.b: prim cache-fast$(STACK_CACHE_DEFAULT_FAST).vmg cache-regs$(STACK_CACHE_REGS).vmg peeprules.vmg Makefile
779 :     $(M4) -Dcondbranch_opt=@condbranch_opt@ -DSTACK_CACHE_FILE=cache-fast$(STACK_CACHE_DEFAULT_FAST).vmg -DSTACK_CACHE_REGS=cache-regs$(STACK_CACHE_REGS).vmg $(srcdir)/prim >$@
780 : anton 1.287 sleep 1 #should make hpux-workaround unnecessary
781 : pazsan 1.1
782 : anton 1.285 $(FORTH_GEN_ENGINE_FAST): prim-fast.b prims2x.fs
783 : pazsan 1.400 GFORTH="$(PREFORTH)" $(srcdir)/gfgen -fast
784 : anton 1.212
785 : anton 1.285 $(FORTH_GEN_ENGINE): prim.b prims2x.fs
786 : anton 1.387 GFORTH="$(PREFORTH)" $(srcdir)/gfgen
787 : anton 1.228
788 : anton 1.357 engine/prim-s.i: engine/prim.i
789 :     grep -v '^#line ' $(srcdir)/engine/prim.i >$@
790 :    
791 : anton 1.100 kernel/aliases.fs: prim.b prims2x.fs kernel/aliases0.fs
792 :     $(CP) kernel/aliases0.fs $@-
793 : anton 1.387 $(PREFORTH) prims2x.fs -e "forth-flag on s\" prim.b\" ' output-alias ' noop process-file bye" >>$@-
794 : pazsan 1.93 $(CP) $@- $@
795 :     $(RM) $@-
796 : pazsan 1.1
797 : anton 1.100 kernel/prim.fs: prim.b prims2x.fs kernel/prim0.fs
798 :     $(CP) kernel/prim0.fs kernel/prim.fs-
799 : anton 1.387 $(PREFORTH) prims2x.fs -e "forth-flag on s\" prim.b\" ' output-forth ' output-forth-combined process-file bye" >>$@-
800 : pazsan 1.203 $(CP) $@- $@
801 :     $(RM) $@-
802 : anton 1.27
803 : jwilke 1.106
804 : anton 1.380 OPTS = @OPTS@
805 :    
806 :     MAKELINE-ll-reg = OPT=-ll-reg OPTDEFINES="-DFORCE_LL -DFORCE_REG" OPTOBJECTS=
807 :     MAKELINE-noll-reg = OPT=-noll-reg OPTDEFINES=-DFORCE_REG OPTOBJECTS=dblsub.o
808 :     MAKELINE-ll = OPT=-ll OPTDEFINES=-DFORCE_LL OPTOBJECTS=
809 :     MAKELINE-noll = OPT=-noll OPTDEFINES= OPTOBJECTS=dblsub.o
810 :    
811 : anton 1.412 gforth$(OPT)$(EC)$(EXE): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/config.h @kernel_anti_dependence@
812 : anton 1.380 if test -z "$(OPT)"; then \
813 : anton 1.385 for i in $(OPTS); do $(MAKE) optgforth OPT=$$i && $(CP) gforth$${i}$(EC)$(EXE) $@ && break; done; \
814 : anton 1.380 else \
815 :     ( cd engine && $(MAKE) $@ ) && \
816 :     $(CP) gforth$(OPT)$(EC)$(EXE) gforth~; \
817 :     $(CP) engine/$@ $@ && \
818 :     $(MASSAGE_EXE) $@; \
819 :     @GFORTH_EXE@; \
820 : anton 1.385 $(MAKE) checkone check-nofast ENGINE=./engine/$@; \
821 : anton 1.380 fi
822 :    
823 :     optgforth:
824 : anton 1.385 $(MAKE) gforth$(OPT)$(EC)$(EXE) $(MAKELINE$(OPT))
825 : anton 1.380
826 : anton 1.382 gforth-fast$(OPT)$(EC)$(EXE): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE_FAST) engine/config.h
827 : anton 1.380 if test -z "$(OPT)"; then \
828 : anton 1.385 for i in $(OPTS); do $(MAKE) optgforth-fast OPT=$$i && $(CP) gforth-fast$${i}$(EC)$(EXE) $@ && break; done; \
829 : anton 1.380 else \
830 :     ( cd engine && $(MAKE) $@ ) && \
831 :     $(CP) engine/$@ $@ && \
832 :     $(MASSAGE_EXE) $@; \
833 :     @GFORTHFAST_EXE@; \
834 : anton 1.385 $(MAKE) checkone ENGINE=./engine/$@; \
835 : anton 1.380 fi
836 :    
837 :     optgforth-fast:
838 : anton 1.385 $(MAKE) gforth-fast$(OPT)$(EC)$(EXE) $(MAKELINE$(OPT))
839 : anton 1.143
840 : anton 1.375 gforth-native$(OPT)$(EC)$(EXE): engines-fast
841 : anton 1.231 $(CP) engine/$@ $@
842 : anton 1.340 -$(MASSAGE_EXE) $@
843 : anton 1.231 #@GFORTHX_EXE@
844 :    
845 : anton 1.382 gforth-itc$(EC)$(EXE): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/Makefile engine/config.h
846 : anton 1.380 cd engine && $(MAKE) gforth-itc-noll$(EC)$(EXE) $(MAKELINE-noll)
847 :     $(CP) engine/gforth-itc-noll$(EC)$(EXE) $@
848 : anton 1.219 @GFORTHITC_EXE@
849 :    
850 : anton 1.382 gforth-ditc$(EC)$(EXE): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/Makefile engine/config.h
851 : anton 1.380 cd engine && $(MAKE) gforth-ditc-noll$(EC)$(EXE) $(MAKELINE-noll)
852 :     $(CP) engine/gforth-ditc-noll$(EC)$(EXE) $@
853 : jwilke 1.106 @GFORTHDITC_EXE@
854 : pazsan 1.130
855 : anton 1.382 gforth-prof$(EC)$(EXE): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/Makefile engine/config.h
856 : anton 1.380 cd engine && $(MAKE) gforth-prof-noll$(EC)$(EXE) $(MAKELINE-noll)
857 :     $(CP) engine/gforth-prof-noll$(EC)$(EXE) $@
858 : anton 1.218
859 : anton 1.286 gforths: $(ENGINES) $(ENGINES_FAST)
860 : anton 1.200
861 : pazsan 1.107 # ------------- additional C primitives
862 :    
863 :     %.c: %.pri prim2cl.fs
864 :     $(FORTHK) prim2cl.fs -e "file $< altogether bye" >$@
865 :    
866 :     %.so: %.c
867 : anton 1.394 $(GCC) -shared $(CFLAGS) $(CPPFLAGS) $< -o $@
868 : jwilke 1.106
869 :     # ------------- Make Documentation
870 :    
871 :     #TAGS is a GNU standard target
872 :     TAGS: gforth.TAGS
873 :     $(CP) gforth.TAGS $@
874 :    
875 : pazsan 1.211 tags: gforth.tags
876 :     $(CP) gforth.tags $@
877 :    
878 : anton 1.366 install.TAGS: TAGS
879 :     sed 's;^\$(srcdir)/;;' TAGS|awk 'BEGIN {RS="\014\n"; ORS=RS} {if (NR==1) print $0; else print "$(datadir)/gforth/$(VERSION)/"$$0;}' >install.TAGS
880 : anton 1.131
881 : anton 1.385 gforth.TAGS: @kernel_fi@ gforth$(EC)$(EXE) $(GFORTH_FI_SRC) prim.TAGS kernel.TAGS
882 : pazsan 1.181 $(FORTHK) etags.fs except.fs startup.fs -e bye
883 : jwilke 1.106 cat TAGS prim.TAGS kernel.TAGS >gforth.TAGS
884 :     rm TAGS
885 :    
886 : anton 1.385 gforth.tags: @kernel_fi@ gforth$(EC)$(EXE) $(GFORTH_FI_SRC) prim.tags kernel.tags
887 : pazsan 1.211 $(FORTHK) tags.fs except.fs startup.fs -e bye
888 :     cat tags prim.tags kernel.tags >gforth.tags
889 :     rm tags
890 :    
891 : anton 1.100 prim.TAGS: prim.b prims2x.fs
892 : anton 1.387 $(PREFORTH) prims2x.fs -e "s\" $(srcdir)/prim.b\" ' output-tag dup process-file bye"|sed 's#^./prim#prim#' >$@-
893 : pazsan 1.93 $(CP) $@- $@
894 :     $(RM) $@-
895 : anton 1.190
896 : pazsan 1.211 prim.tags: prim.b prims2x.fs
897 :     #echo '2c\' >prim.TAGS.sed
898 :     #echo $(srcdir)/prim >>prim.TAGS.sed
899 : anton 1.387 #$(PREFORTH) prims2x.fs -e "s\" $(srcdir)/prim.b\" ' output-tag dup process-file bye" | sed -f prim.TAGS.sed >$@-
900 :     $(PREFORTH) prims2x.fs -e "s\" $(srcdir)/prim.b\" ' output-vi-tag dup process-file bye" >$@-
901 : pazsan 1.211 $(CP) $@- $@
902 :     $(RM) $@-
903 :    
904 : anton 1.190 kernel.TAGS:
905 : pazsan 1.347 rm kernl16l$(EC).fi-; $(MAKE) @kernel_fi@
906 : pazsan 1.211
907 :     kernel.tags:
908 : pazsan 1.347 rm kernl16l$(EC).fi-; $(MAKE) @kernel_fi@
909 : pazsan 1.1
910 : anton 1.362 #elc files
911 :     gforth.elc: gforth.el
912 : anton 1.417 -$(EMACS) -batch -f batch-byte-compile $<
913 : anton 1.362
914 :     #Documentation
915 :    
916 : crook 1.151 doc/doc.fd: doc/makedoc.fs $(GFORTH_FI_SRC) code.fs objects.fs oof.fs moofglos.fs
917 : pazsan 1.369 $(FORTHK) -e "s\" doc/doc.fd\"" doc/makedoc.fs except.fs startup.fs code.fs objects.fs oof.fs moofglos.fs regexp.fs fft.fs -e bye
918 : anton 1.20
919 : anton 1.100 doc/crossdoc.fd: $(KERN_SRC) kernel/version.fs $(FORTH_GEN0)
920 :     $(FORTHK) -e 's" mach32l.fs"' kernel/main.fs -e bye
921 : anton 1.35
922 : anton 1.387 doc/gforth.texi: doc/gforth.ds prim.b ds2texi.fs prims2x.fs \
923 : anton 1.100 doc/doc.fd doc/crossdoc.fd
924 : anton 1.387 $(PREFORTH) ds2texi.fs prims2x.fs -e "s\" $(srcdir)/prim.b\" ' register-doc ' noop process-file" doc/crossdoc.fd doc/doc.fd -e "s\" $(srcdir)/doc/gforth.ds\" r/o open-file throw ds2texi bye" >$@-
925 : pazsan 1.93 $(CP) $@- $@
926 :     $(RM) $@-
927 : anton 1.35
928 : anton 1.100 checkdoc: doc/gforth.ds prim.b ds2texi.fs prims2x.fs doc/doc.fd doc/crossdoc.fd answords.fs doc/gforth.texi
929 : anton 1.213 $(FORTH) ds2texi.fs prims2x.fs -e "s\" $(srcdir)/prim.b\" ' register-doc ' noop process-file" doc/crossdoc.fd doc/doc.fd answords.fs -e bye
930 : anton 1.100 -grep unknown doc/gforth.texi
931 : anton 1.358 -grep doc- doc/gforth.texi
932 : anton 1.66
933 : anton 1.223 dvi: doc/gforth.dvi doc/vmgen.dvi
934 : pazsan 1.1
935 : pazsan 1.278 pdf: doc/gforth.pdf doc/vmgen.pdf
936 :    
937 : anton 1.111 doc/gforth.dvi doc/gforth.fns: $(GFORTH_TEXI)
938 : anton 1.100 cd doc; $(TEXI2DVI) gforth.texi
939 : anton 1.5
940 : pazsan 1.278 doc/gforth.pdf: $(GFORTH_TEXI)
941 :     cd doc; $(TEXI2PDF) gforth.texi
942 :    
943 : anton 1.223 doc/vmgen.dvi: $(VMGEN_TEXI)
944 :     cd doc; $(TEXI2DVI) vmgen.texi
945 : pazsan 1.278
946 :     doc/vmgen.pdf: $(VMGEN_TEXI)
947 :     cd doc; $(TEXI2PDF) vmgen.texi
948 : anton 1.223
949 : anton 1.100 doc/gforth.ps: doc/gforth.dvi
950 :     $(DVI2PS) doc/gforth.dvi -o $@
951 : anton 1.40
952 : anton 1.226 doc/vmgen.ps: doc/vmgen.dvi
953 :     $(DVI2PS) doc/vmgen.dvi -o $@
954 :    
955 : anton 1.223 info: doc/gforth.info doc/vmgen.info
956 :    
957 :     doc/gforth.info: $(GFORTH_TEXI)
958 :     cd doc; $(MAKEINFO) gforth.texi
959 :    
960 :     doc/vmgen.info: $(VMGEN_TEXI)
961 :     cd doc; $(MAKEINFO) vmgen.texi
962 : anton 1.66
963 : anton 1.15
964 : anton 1.224 ### need makeinfo 4.2 to generate html with these rules
965 :     doc/gforth: $(GFORTH_TEXI)
966 :     cd doc; $(MAKEINFO) --html gforth.texi
967 :    
968 :     doc/vmgen: $(VMGEN_TEXI)
969 :     cd doc; $(MAKEINFO) --html vmgen.texi
970 : anton 1.114
971 :     doc/gforth.txt: $(GFORTH_TEXI)
972 :     -cd doc; $(MAKEINFO) --no-headers --no-split gforth.texi >gforth.txt
973 : anton 1.224
974 :     doc/vmgen.txt: $(VMGEN_TEXI)
975 :     -cd doc; $(MAKEINFO) --no-headers --no-split vmgen.texi >vmgen.txt
976 : pazsan 1.63
977 : pazsan 1.274 doc: gforth.fi info doc/gforth doc/vmgen doc/gforth.ps doc/vmgen.ps doc/gforth.txt doc/vmgen.txt TAGS
978 : pazsan 1.1
979 : anton 1.9 # For an explanation of the following Makefile rules, see node
980 :     # `Automatic Remaking' in GNU Autoconf documentation.
981 : anton 1.159
982 :     #Note: no target "$(srcdir)/configure", because that does not trigger
983 :     #unless $(srcdir)!="."
984 : anton 1.236 configure: configure.in aclocal.m4
985 :     cd $(srcdir) && autoconf
986 : anton 1.111
987 : anton 1.236 aclocal.m4: configure.in
988 : anton 1.398 aclocal
989 : pazsan 1.69
990 : anton 1.51 # autoheader might not change config.h.in, so touch a stamp file.
991 : anton 1.236 engine/config.h.in: stamp-h.in
992 :     stamp-h.in: configure.in aclocal.m4
993 :     cd $(srcdir) && autoheader
994 :     echo timestamp > $(srcdir)/stamp-h.in
995 :    
996 :     engine/config.h: stamp-h
997 : pazsan 1.317 stamp-h: engine/config.h.in config.status stamp-h.in
998 : anton 1.236 ./config.status
999 : anton 1.112
1000 : anton 1.407 Makefile Makedist engine/Makefile gforthmi vmgen preforth machpc.fs doc/version.texi envos.fs build-ec: Makefile.in Makedist.in engine/Makefile.in gforthmi.in vmgen.in preforth.in machpc.fs.in doc/version.texi.in config.status configure.in envos.fs.in build-ec.in engine/libcc.h.in
1001 : anton 1.236 ./config.status
1002 : anton 1.112
1003 : anton 1.236 config.status: configure
1004 :     ./config.status --recheck
1005 : anton 1.51
1006 :     #create files for DOS, because DOS cannot do it itself
1007 : anton 1.384 makefile.dos engine/makefile.dos: mkdosmf.sed Makefile.in engine/Makefile.in
1008 : pazsan 1.30 sed -f mkdosmf.sed <Makefile.in >makefile.dos
1009 : anton 1.100 sed -f mkdosmf.sed <engine/Makefile.in >engine/makefile.dos
1010 : pazsan 1.69
1011 : anton 1.384 makefile.os2 engine/makefile.os2: mkos2mf.sed Makefile.in engine/Makefile.in
1012 : pazsan 1.69 sed -f mkos2mf.sed <Makefile.in >makefile.os2
1013 : anton 1.100 sed -f mkos2mf.sed <engine/Makefile.in >engine/makefile.os2
1014 : pazsan 1.69 echo '%.o: %.c' >>makefile.os2
1015 : anton 1.394 echo ' $$(GCC) $$(CFLAGS) $$(CPPFLAGS) -c $$<' >>makefile.os2
1016 : anton 1.100 echo '%.o: %.c' >>engine/makefile.os2
1017 : anton 1.394 echo ' $$(GCC) $$(CFLAGS) $$(CPPFLAGS) -c $$<' >>engine/makefile.os2

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help