[gforth] / gforth / Makefile.in  

gforth: gforth/Makefile.in


1 : anton 1.38 #Makefile for Gforth
2 :    
3 : anton 1.188 #Copyright (C) 1995,1996,1997,1998,2000 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 : anton 1.189 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
20 : anton 1.38
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 : jwilke 1.106 # Warning:
27 :     # For some stupid reason setting SHELL to bash does not work properly with
28 :     # DOS. If you want to use shell-specific things that must run with DOS make
29 :     # an external batch file and call it with bash (see versions.bsh).
30 :    
31 :     # ------------- gforth version
32 :    
33 : anton 1.110 VERSION = @VERSION@
34 : pazsan 1.181 DOSVERSION=`echo $(VERSION)|sed 's/\.//g'|sed 's/-.*//g'`
35 : jwilke 1.106
36 :     # ------------- System specific variables
37 :    
38 : anton 1.110 machine=@machine@
39 :     kernel_fi=@kernel_fi@
40 : pazsan 1.123 EXE=@EXE@
41 : anton 1.110
42 : jwilke 1.106 # this is the type of machine
43 :     # used to extend the include path with ./arch/$machine
44 : anton 1.110 # so we can include a machine specific
45 : jwilke 1.106 # machine.h file
46 :    
47 :     PATHSEP = @PATHSEP@
48 :    
49 :     osclass = @OSCLASS@
50 :    
51 :     # ------------- Utility programs
52 :    
53 : anton 1.9 SHELL = /bin/sh
54 : pazsan 1.4 RM = rm
55 : pazsan 1.74 RMTREE = rm -rf
56 : pazsan 1.144 CP = cp -p
57 : pazsan 1.129 MV = mv
58 : pazsan 1.74 TAR = tar cf -
59 : anton 1.9 INSTALL = @INSTALL@
60 :     INSTALL_PROGRAM = @INSTALL_PROGRAM@
61 :     INSTALL_DATA = @INSTALL_DATA@
62 :     LN_S = @LN_S@
63 : pazsan 1.48 GCC = @CC@
64 : anton 1.23 CC = $(GCC)
65 : anton 1.183 FORTHPATH = .$(PATHSEP)$(libdir)/gforth/site-forth$(PATHSEP)$(siteforthdir)$(PATHSEP)$(libdir)/gforth/$(VERSION)$(PATHSEP)$(datadir)/gforth/$(VERSION)
66 : anton 1.72 FORTHSIZES = @FORTHSIZES@
67 : anton 1.143 FORTH_ARGS = --die-on-signal -p $(FORTHPATH)$(PATHSEP)$(srcdir)
68 :     ENGINE = ./gforth
69 :     FORTH = $(ENGINE) $(FORTH_ARGS)
70 :     ENGINE_FAST = $(ENGINE)-fast
71 :     FORTH_FAST = $(ENGINE_FAST) $(FORTH_ARGS)
72 : pazsan 1.140 FORTHKFLAGS= --die-on-signal -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" -i $(kernel_fi)
73 : anton 1.152 FORTHK = $(ENGINE) $(FORTHKFLAGS)
74 :     FORTHP = $(ENGINE) --die-on-signal -i ./$(kernel_fi)
75 : anton 1.183 #the "-2 image-included-files +!" undoes the change to image-included-files
76 :     # in exboot.fs
77 : pazsan 1.184 STARTUP = -e 3 exboot.fs startup.fs @asm_fs@ @disasm_fs@
78 : anton 1.22 STRIP = strip
79 : anton 1.169 TEXI2DVI = texi2dvi -e
80 : anton 1.114 DVI2PS = dvips -Z
81 : anton 1.99 #you can get texi2html from http://wwwcn.cern.ch/dci/texi2html/
82 : anton 1.170 MAKEINFO = makeinfo
83 : anton 1.15 TEXI2HTML = texi2html
84 : jwilke 1.106
85 :     # ------------- Compiler Flags
86 :    
87 : anton 1.9 XCFLAGS = @CFLAGS@
88 :     XDEFINES = @DEFS@
89 : anton 1.12 SWITCHES = $(XCFLAGS) $(XDEFINES) #-DNDEBUG #turn off assertions
90 : pazsan 1.48 ENGINE_FLAGS = @ENGINE_FLAGS@ -fno-defer-pop -fcaller-saves
91 : pazsan 1.30 DEBUGFLAG = @DEBUGFLAG@
92 : pazsan 1.154 CFLAGS = $(DEBUGFLAG) -I$(srcdir)/engine -I$(srcdir)/arch/$(machine) -O3 -Wall $(SWITCHES) -DDEFAULTPATH=\"$(FORTHPATH)\"
93 : pazsan 1.1
94 :     #John Wavrik should use -Xlinker -N to get a writable text (executable)
95 : pazsan 1.30 XLDFLAGS = @LDFLAGS@
96 : anton 1.117 LDFLAGS = $(DEBUGFLAG) $(XLDFLAGS)
97 : anton 1.9 LDLIBS = @LIBS@
98 :    
99 : jwilke 1.106 # ------------ Install Directorys
100 :    
101 : anton 1.52 VPATH = @srcdir@
102 : anton 1.9 prefix = @prefix@
103 :     exec_prefix = @exec_prefix@
104 :     srcdir = @srcdir@
105 :     bindir = $(exec_prefix)/bin
106 :     #read-only architecture-independent files
107 :     datadir = $(prefix)/share
108 :     #read-only architecture-dependent non-ascii files
109 :     libdir = $(prefix)/lib
110 :     infodir = $(prefix)/info
111 : anton 1.52 mandir = $(prefix)/man
112 :     man1dir= $(mandir)/man1
113 :     man1ext= .1
114 :     #older emacses have their site-lisp in $(libdir)/emacs/
115 : anton 1.110 emacssitelispdir=@lispdir@
116 : anton 1.141 siteforthdir=$(datadir)/gforth/site-forth
117 : pazsan 1.1
118 : pazsan 1.124 CVSDIRS = CVS engine/CVS kernel/CVS doc/CVS asm/CVS ec/CVS test/CVS \
119 : pazsan 1.192 compat/CVS unix/CVS \
120 : pazsan 1.124 arch/CVS arch/generic/CVS arch/m68k/CVS arch/mips/CVS \
121 :     arch/386/CVS arch/hppa/CVS arch/sparc/CVS arch/power/CVS \
122 :     arch/alpha/CVS arch/4stack/CVS arch/misc/CVS arch/6502/CVS \
123 :     arch/8086/CVS arch/avr/CVS arch/c165/CVS arch/h8/CVS \
124 : pazsan 1.192 arch/shboom/CVS arch/sharc/CVS arch/ia64/CVS
125 : pazsan 1.124
126 : anton 1.135 INCLUDES = engine/forth.h engine/threaded.h engine/io.h
127 :    
128 : anton 1.52 KERN_SRC = \
129 : jwilke 1.155 mach16b.fs mach16l.fs mach32b.fs mach32l.fs mach64b.fs mach64l.fs \
130 :     machpc.fs \
131 : anton 1.100 kernel/aliases0.fs \
132 :     kernel/aliases.fs \
133 :     kernel/args.fs \
134 : anton 1.118 chains.fs \
135 : pazsan 1.173 kernel/cbr.fs \
136 :     kernel/cloop.fs \
137 : anton 1.100 kernel/cond.fs \
138 :     kernel/cond-old.fs \
139 : anton 1.52 cross.fs \
140 : anton 1.100 kernel/errore.fs \
141 :     kernel/files.fs \
142 :     kernel/require.fs \
143 :     kernel/paths.fs \
144 :     kernel/kernel.fs \
145 :     kernel/main.fs \
146 :     kernel/prim0.fs \
147 :     search.fs \
148 : jwilke 1.156 kernel/quotes.fs \
149 : anton 1.100 kernel/tools.fs \
150 :     kernel/toolsext.fs \
151 :     kernel/vars.fs \
152 :     kernel/accept.fs \
153 :     kernel/basics.fs \
154 : pazsan 1.107 kernel/int.fs \
155 :     kernel/comp.fs \
156 : anton 1.100 kernel/io.fs \
157 : pazsan 1.192 kernel/input.fs \
158 : anton 1.100 kernel/license.fs \
159 :     kernel/nio.fs \
160 : pazsan 1.108 kernel/saccept.fs \
161 :     kernel/doers.fs \
162 : jwilke 1.157 kernel/getdoers.fs \
163 :     kernel/pass.fs
164 : anton 1.52
165 : pazsan 1.107 EC_SRC = \
166 : anton 1.118 asm/README \
167 : pazsan 1.107 asm/bitmask.fs \
168 :     asm/numref.fs \
169 :     asm/basic.fs \
170 :     asm/generic.fs \
171 :     asm/target.fs \
172 : anton 1.118 ec/README \
173 : pazsan 1.107 ec/mirror.fs \
174 :     ec/shex.fs \
175 :     ec/builttag.fs \
176 :     ec/dotx.fs \
177 :     ec/nesting.fs
178 :    
179 : anton 1.52 GFORTH_FI_SRC = \
180 :     assert.fs \
181 : pazsan 1.181 backtrac.fs \
182 : anton 1.100 blocked.fb \
183 : anton 1.52 blocks.fs \
184 :     bufio.fs \
185 :     debug.fs \
186 : anton 1.100 debugs.fs \
187 : anton 1.162 ekey.fs \
188 : anton 1.100 savesys.fs \
189 : anton 1.52 environ.fs \
190 : pazsan 1.82 errors.fs \
191 : anton 1.172 exboot.fs \
192 : pazsan 1.181 except.fs \
193 : pazsan 1.82 extend.fs \
194 : anton 1.52 float.fs \
195 :     glocals.fs \
196 :     hash.fs \
197 :     history.fs \
198 : anton 1.64 intcomp.fs \
199 : pazsan 1.101 locals.fs \
200 : anton 1.52 look.fs \
201 : anton 1.100 search.fs \
202 : anton 1.52 see.fs \
203 : pazsan 1.85 see-ext.fs \
204 : anton 1.52 source.fs \
205 :     startup.fs \
206 :     struct.fs \
207 :     stuff.fs \
208 : pazsan 1.60 tasker.fs \
209 : anton 1.52 termsize.fs \
210 :     vt100.fs \
211 :     vt100key.fs \
212 : pazsan 1.101 wordinfo.fs \
213 : anton 1.178 arch/386/asm.fs arch/386/disasm.fs \
214 : anton 1.175 arch/alpha/asm.fs arch/alpha/disasm.fs \
215 : anton 1.180 arch/mips/asm.fs arch/mips/disasm.fs arch/mips/insts.fs
216 : anton 1.52
217 : pazsan 1.107 FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC) $(EC_SRC) \
218 : anton 1.75 ans-report.fs ansi.fs answords.fs \
219 : anton 1.100 code.fs colorize.fs comp-i.fs \
220 : anton 1.52 doskey.fs ds2texi.fs \
221 : pazsan 1.124 envos.fs envos.dos envos.os2 etags.fs filedump.fs fi2c.fs \
222 : pazsan 1.192 glosgen.fs gray.fs httpd.fs proxy.fs \
223 : anton 1.160 make-app.fs doc/makedoc.fs \
224 : jwilke 1.155 more.fs other.fs prims2x.fs random.fs \
225 : pazsan 1.167 table.fs string.fs \
226 : anton 1.52 tt.fs sokoban.fs \
227 : pazsan 1.181 unbuffer.fs wordsets.fs \
228 : anton 1.100 test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs \
229 : pazsan 1.124 test/other.fs test/checkans.fs \
230 : pazsan 1.65 bubble.fs siev.fs matrix.fs fib.fs \
231 : crook 1.151 oof.fs oofsampl.fs objects.fs objexamp.fs mini-oof.fs moof-exm.fs \
232 : anton 1.175 moofglos.fs \
233 : pazsan 1.192 add.fs lib.fs sieve.fs unix/socket.fs
234 : pazsan 1.1
235 : anton 1.131 COMPAT = compat/README \
236 :     compat/anslocal.fs \
237 :     compat/assert.fs \
238 :     compat/control.fs \
239 :     compat/defer.fs \
240 :     compat/exception.fs \
241 :     compat/loops.fs \
242 :     compat/required.fs \
243 :     compat/struct.fs \
244 :     compat/vocabulary.fs
245 : anton 1.100
246 : anton 1.111 GFORTH_TEXI = doc/gforth.texi doc/version.texi
247 :    
248 : anton 1.100 ALLSUBDIRS = engine
249 :    
250 : anton 1.135 ARCHS = \
251 :     arch/generic/machine.h \
252 :     arch/m68k/machine.h \
253 :     arch/mips/machine.h \
254 :     arch/386/machine.h \
255 :     arch/hppa/machine.h \
256 :     arch/hppa/cache.c \
257 :     arch/sparc/machine.h \
258 :     arch/power/machine.h \
259 :     arch/power/_sync_cache_range.c \
260 : anton 1.179 arch/power/elf32ppc.x \
261 : anton 1.135 arch/alpha/machine.h \
262 : anton 1.185 arch/ia64/machine.h \
263 : anton 1.135 arch/4stack/README \
264 :     arch/4stack/asm.fs \
265 :     arch/4stack/mach.fs \
266 :     arch/4stack/prim.fs \
267 :     arch/4stack/mach.sh \
268 :     arch/4stack/relocate.fs \
269 :     arch/misc/README \
270 :     arch/misc/asm.fs \
271 :     arch/misc/mach.fs \
272 :     arch/misc/prim.fs \
273 :     arch/misc/sim.fs \
274 :     arch/misc/sokoban.fs \
275 :     arch/misc/tt.fs \
276 :     arch/6502/asm.fs \
277 :     arch/6502/prim.fs \
278 :     arch/6502/mach.fs \
279 :     arch/6502/zero.fs \
280 :     arch/6502/softuart.fs \
281 :     arch/6502/cold.fs \
282 :     arch/8086/asm.fs \
283 :     arch/8086/mach.fs \
284 :     arch/8086/mach.sh \
285 :     arch/8086/prim.fs \
286 :     arch/avr/asm.fs \
287 :     arch/c165/asm.fs \
288 :     arch/c165/mach.fs \
289 :     arch/c165/prim.fs \
290 :     arch/h8/asm.fs \
291 :     arch/shboom/asm.fs \
292 :     arch/shboom/compiler.fs \
293 :     arch/shboom/dis.fs \
294 :     arch/shboom/mach.fs \
295 :     arch/shboom/prim.fs \
296 :     arch/shboom/dis2.fs \
297 :     arch/shboom/sh.p \
298 : pazsan 1.192 arch/shboom/doers.fs \
299 :     arch/sharc/mach.fs \
300 :     arch/sharc/machine.h \
301 :     arch/sharc/compile.sharc \
302 :     arch/sharc/unistd.h \
303 :     arch/sharc/systypes.h \
304 :     arch/sharc/types.h \
305 :     arch/sharc/g21k-3.3.4-bp1.diff
306 : anton 1.135
307 :     SOURCES = $(CVSDIRS) compat Makefile.in Makedist.in engine/Makefile.in gforthmi.in \
308 :     configure.in configure config.sub config.guess elisp-comp missing \
309 :     acconfig.h acinclude.m4 engine/config.h.in stamp-h.in \
310 :     install-sh INSTALL INSTALL.BINDIST NEWS README ToDo BUGS model \
311 :     COPYING AUTHORS ChangeLog Benchres aclocal.m4 \
312 :     doc/gforth.ds doc/texinfo.tex doc/gforth.1 doc/version.texi.in \
313 :     gforth.el \
314 :     prim engine/engine.c engine/main.c engine/io.c engine/memcmpc.c \
315 : anton 1.149 engine/signals.c $(ARCHS) \
316 : anton 1.135 engine/getopt.c engine/getopt1.c engine/getopt.h engine/select.c \
317 :     engine/ecvt.c engine/memcmp.c engine/strtol.c engine/strtoul.c \
318 :     engine/ansidecl.h engine/memmove.c \
319 :     engine/pow10.c engine/atanh.c engine/cleanalign.c \
320 :     engine/strerror.c engine/strsignal.c engine/dblsub.c \
321 : anton 1.177 engine/fnmatch.h engine/fnmatch.c \
322 : anton 1.135 INSTALL.DOS makefile.dos engine/makefile.dos mkdosmf.sed config.bat \
323 : anton 1.141 dosconf.h gforthmi.bat mkinstalldirs siteinit.fs \
324 : anton 1.135 versions.bsh \
325 :     configure.cmd mkos2mf.sed os2conf.h makefile.os2 engine/makefile.os2 \
326 :     gforthmi.cmd glosgen.glo doc/glossaries.doc \
327 :     $(INCLUDES) $(FORTH_SRC) $(COMPAT) \
328 : anton 1.158 timings.sc \
329 :     test/coretest.out test/checkans.out
330 : anton 1.135
331 : anton 1.5 RCS_FILES = ToDo model high-level
332 : pazsan 1.1
333 : anton 1.143 GEN = gforth$(EXE) gforth-ditc$(EXE) gforth-fast$(EXE) kernel/version.fs
334 : pazsan 1.1
335 :     # things that need a working forth system to be generated
336 : anton 1.100 FORTH_GEN0 = prim.b engine/prim.i engine/prim_lab.i kernel/aliases.fs kernel/prim.fs
337 : pazsan 1.65 FORTH_GEN = $(FORTH_GEN0) @KERNEL@ gforth.fi
338 : pazsan 1.1 # this is used for antidependences,
339 : pazsan 1.65 FORTH_GEN1 = $(FORTH_GEN0) @kernel_fi@
340 : anton 1.5
341 : anton 1.38 #distributed documentation
342 : anton 1.139 DOCDIST = doc/gforth.info doc/gforth.info-* doc/gforth.ps
343 : anton 1.5
344 : pazsan 1.48 KERNLS = kernl16b.fi- kernl16l.fi- \
345 :     kernl32b.fi- kernl32l.fi- \
346 :     kernl64b.fi- kernl64l.fi-
347 : pazsan 1.30
348 : pazsan 1.134 GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) doc/gforth.texi doc/gforth.dvi doc/gforth.ps Makefile Makedist engine/Makefile configure
349 : pazsan 1.1
350 : anton 1.9 #standards.info recommends this:
351 :     .SUFFIXES:
352 :     .SUFFIXES: .c .o
353 :    
354 : jwilke 1.106
355 : anton 1.100 all: kernel/version.fs more
356 : pazsan 1.1
357 : jwilke 1.106 # use this dependency for phony targets just as mostlyclean,...
358 :     FORCE: ;
359 :    
360 : anton 1.78 #this rule avoids remaking everything after minor changes in Makefile.in
361 : anton 1.100 version: Makefile.in
362 : anton 1.94 if test -r $@ && test x'$(VERSION)' = x`cat $@` ; then true ; else echo $(VERSION) > $@ ; fi
363 : anton 1.78
364 : jwilke 1.106 # With dos we use normal dos echo
365 :     # we cannot pipe the output to engine/version.h directly because
366 :     # of the "/ and \" problem. Copying works because we use the
367 :     # shell und file utilities.
368 :    
369 : anton 1.100 kernel/version.fs: version
370 : pazsan 1.123 $(MAKE) gforth$(EXE)
371 : pazsan 1.129 echo ": version-string s\" $(VERSION)\" ;" > kernel/version.fs
372 : pazsan 1.2
373 : anton 1.149 more: engine $(FORTH_GEN) $(GEN)
374 : pazsan 1.2
375 : pazsan 1.1 #from the gcc Makefile:
376 :     #"Deletion of files made during compilation.
377 :     # There are four levels of this:
378 :     # `mostlyclean', `clean', `distclean' and `realclean'.
379 :     # `mostlyclean' is useful while working on a particular type of machine.
380 :     # It deletes most, but not all, of the files made by compilation.
381 :     # It does not delete libgcc.a or its parts, so it won't have to be recompiled.
382 :     # `clean' deletes everything made by running `make all'.
383 :     # `distclean' also deletes the files made by config.
384 :     # `realclean' also deletes everything that could be regenerated automatically."
385 :    
386 : jwilke 1.106 mostlyclean: FORCE
387 : anton 1.118 -$(RM) -rf engine/*.s gforth.fi *.fi~ *.fi- kernel/version.fs \
388 :     *TAGS gforth~ \
389 : anton 1.100 doc/crossdoc.fd doc/doc.fd doc/gforth.texi doc/gforth.fns \
390 :     doc/gforth.aux doc/gforth.cp doc/gforth.cps \
391 :     doc/gforth.dvi doc/gforth.fn doc/gforth.ky doc/gforth.log \
392 :     doc/gforth.pg \
393 :     doc/gforth.toc doc/gforth.tp doc/gforth.vr html \
394 : anton 1.110 gforth-$(VERSION).tar.gz
395 : anton 1.45
396 : crook 1.146 # Just the stuff needed to rebuild the documentation nac03feb1999
397 :     docclean: FORCE
398 :     -$(RM) -rf doc/crossdoc.fd doc/doc.fd doc/gforth.texi doc/gforth.fns \
399 :     doc/gforth.aux doc/gforth.cp doc/gforth.cps \
400 :     doc/gforth.dvi doc/gforth.fn doc/gforth.ky doc/gforth.log \
401 :     doc/gforth.pg \
402 :     doc/gforth.toc doc/gforth.tp doc/gforth.vr html
403 :    
404 : anton 1.45 clean: mostlyclean
405 : anton 1.143 -$(RM) -rf $(GEN) engine/gforth$(EXE) \
406 :     engine/gforth-fast$(EXE) engine/gforth-ditc$(EXE) \
407 : anton 1.119 *.o engine/*.o arch/*/*.o version
408 : pazsan 1.1
409 :     distclean: clean
410 : anton 1.118 -$(RM) config.cache config.log config.status \
411 : pazsan 1.134 engine/config.h Makefile Makedist engine/Makefile \
412 : anton 1.118 stamp-h engine/stamp-h \
413 : anton 1.131 doc/version.texi gforthmi
414 : pazsan 1.1
415 : anton 1.53 #realclean is useless, but dangerous, so it's commented out
416 : pazsan 1.174 realclean: distclean
417 :     -$(RM) $(GEN_PRECIOUS)
418 : pazsan 1.1
419 : anton 1.45 #mostlyclean, but also remove some of the stuff that is distributed
420 :     virtualclean: mostlyclean
421 :     -$(RM) -rf gforth.fns gforth.texi gforth.ps gforth.info* \
422 : anton 1.59 gforth-$(VERSION).tar.gz config.cache *~ */*~
423 : anton 1.45
424 : anton 1.135 #Some makes (Ultrix, SunOS, IRIX) are so broken, they cannot read the
425 :     #Makefile if it contains our dist rules. Therefore we have put these
426 :     #rules in Makedist (you can use them with GNU make on these systems).
427 : anton 1.136 dist: Makedist FORCE
428 : anton 1.135 $(MAKE) -f Makedist d$@
429 : pazsan 1.134
430 : anton 1.136 dosdist: Makedist FORCE
431 : anton 1.135 $(MAKE) -f Makedist d$@
432 : pazsan 1.134
433 : anton 1.136 srcdist: Makedist FORCE
434 : anton 1.135 $(MAKE) -f Makedist d$@
435 : pazsan 1.134
436 : anton 1.136 srconlydist: Makedist FORCE
437 : anton 1.135 $(MAKE) -f Makedist d$@
438 : pazsan 1.134
439 : anton 1.136 docdist: Makedist FORCE
440 : anton 1.135 $(MAKE) -f Makedist d$@
441 : pazsan 1.134
442 : anton 1.136 htmldist: Makedist FORCE
443 : anton 1.135 $(MAKE) -f Makedist d$@
444 : pazsan 1.1
445 : anton 1.136 bindist: Makedist FORCE
446 : anton 1.135 $(MAKE) -f Makedist d$@
447 :    
448 : anton 1.136 binonlydist: Makedist FORCE
449 : anton 1.135 $(MAKE) -f Makedist d$@
450 : anton 1.22
451 :    
452 : anton 1.15 #strip gforth, because the debugging stuff is hardly useful once
453 : anton 1.187 # gforth manages to execute more than a few primitives.
454 : anton 1.15
455 : anton 1.68 #install does not depend on gforth.info, because that would require
456 :     #supplying a lot of files that can be easily generated (only info is
457 : anton 1.187 #hard to generate).
458 :     #we rebuild gforth.fi, because it contains some path names.
459 :     #we delete $build/gforth.fi and $build/install.TAGS after installation because of ownership.
460 : anton 1.131 install: gforth$(EXE) $(FORTH_SRC) $(kernel_fi) gforth.fi gforthmi doc/gforth.1 prim install.TAGS installdirs
461 : anton 1.141 touch $(siteforthdir)/siteinit.fs
462 : pazsan 1.133 -$(RM) $(bindir)/gforth$(EXE) $(bindir)/gforth-$(VERSION)$(EXE) $(bindir)/gforthmi
463 : anton 1.147 -$(RM) $(bindir)/gforth-fast$(EXE) $(bindir)/gforth-fast-$(VERSION)$(EXE)
464 : anton 1.131 $(INSTALL_PROGRAM) -s gforth$(EXE) $(bindir)/gforth-$(VERSION)$(EXE)
465 : anton 1.150 (cd $(bindir) && $(LN_S) gforth-$(VERSION)$(EXE) gforth$(EXE))
466 : anton 1.143 $(INSTALL_PROGRAM) -s gforth-fast$(EXE) $(bindir)/gforth-fast-$(VERSION)$(EXE)
467 : anton 1.150 (cd $(bindir) && $(LN_S) gforth-fast-$(VERSION)$(EXE) gforth-fast$(EXE))
468 : anton 1.131 $(INSTALL_PROGRAM) gforthmi $(bindir)/gforthmi-$(VERSION)
469 : anton 1.147 $(INSTALL_PROGRAM) gforth-ditc $(libdir)/gforth/$(VERSION)
470 : anton 1.150 (cd $(bindir) && $(LN_S) gforthmi-$(VERSION) gforthmi)
471 : anton 1.100 -$(INSTALL_DATA) $(srcdir)/doc/gforth.1 $(man1dir)
472 : anton 1.131 -for i in $(srcdir)/doc/gforth.info*; do $(INSTALL_DATA) $$i $(infodir); done
473 :     for i in $(FORTH_SRC) $(COMPAT) prim; do \
474 :     $(INSTALL_DATA) $(srcdir)/$$i $(datadir)/gforth/$(VERSION)/$$i; \
475 : anton 1.9 done
476 : anton 1.110 $(INSTALL_DATA) $(kernel_fi) $(datadir)/gforth/$(VERSION)
477 : pazsan 1.137 @if test -d "$(emacssitelispdir)"; then \
478 : anton 1.66 $(INSTALL_DATA) $(srcdir)/gforth.el $(emacssitelispdir); \
479 : pazsan 1.55 else \
480 : anton 1.66 echo ">>>>>Please install $(srcdir)/gforth.el in your .../emacs/site-lisp directory"; \
481 : anton 1.52 fi
482 : anton 1.190 -$(RM) gforth.fi
483 : anton 1.187 GFORTHD="./gforth-ditc -p$(libdir)/gforth/site-forth$(PATHSEP)$(siteforthdir)$(PATHSEP)$(datadir)/gforth/$(VERSION) -i $(kernel_fi)" GFORTH="./gforth-ditc --die-on-signal -i $(kernel_fi) $(STARTUP)" ./gforthmi gforth.fi $(FORTHSIZES) $(STARTUP)
484 : anton 1.186 $(INSTALL_DATA) gforth.fi $(libdir)/gforth/$(VERSION)
485 :     $(INSTALL_DATA) install.TAGS $(datadir)/gforth/$(VERSION)/TAGS
486 : anton 1.187 $(RM) gforth.fi install.TAGS
487 : pazsan 1.108 @echo ">>>>> Please make an entry for Gforth in your info dir file; e.g.:"; \
488 : anton 1.72 echo "* Gforth: (gforth). A fast interpreter for the Forth language."
489 : anton 1.40
490 : anton 1.66 install-strip: install
491 :    
492 : anton 1.78 installdirs: mkinstalldirs
493 : anton 1.141 for i in $(bindir) $(man1dir) $(infodir) $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(libdir)/gforth/site-forth $(siteforthdir); do \
494 :     $(srcdir)/mkinstalldirs $$i; \
495 :     done
496 : anton 1.131 for i in $(CVSDIRS); do \
497 :     $(srcdir)/mkinstalldirs $(datadir)/gforth/$(VERSION)/`dirname $$i`; \
498 :     done
499 : anton 1.180 $(RM) -rf $(datadir)/gforth/$(VERSION)/engine
500 : anton 1.78
501 : anton 1.40 #deinstall all files specific to this version of gforth
502 :     #to uninstall version foo, type `make uninstall VERSION=foo'
503 : jwilke 1.106 uninstall: FORCE
504 : anton 1.191 -$(RM) -rf $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(bindir)/gforth-$(VERSION)$(EXE) $(bindir)/gforth-fast-$(VERSION)$(EXE) $(bindir)/gforthmi-$(VERSION)
505 :     @echo -e "To remove Gforth completely, type\n$(RM) -rf $(bindir)/gforth$(EXE) $(bindir)/gforth-fast$(EXE) $(bindir)/gforthmi $(man1dir)/gforth.1 $(infodir)/gforth.info* $(datadir)/gforth $(libdir)/gforth"
506 : anton 1.40
507 : pazsan 1.123 check test: gforth$(EXE) gforth.fi
508 : anton 1.158 $(FORTH) test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye | diff -c - $(srcdir)/test/coretest.out
509 : anton 1.100 $(FORTH) test/other.fs -e bye
510 : anton 1.158 $(FORTH) code.fs test/checkans.fs -e bye | diff -c - $(srcdir)/test/checkans.out
511 : jwilke 1.153 $(FORTHK) -m 100000 prims2x.fs -e \
512 :     "c-flag on s\" $(srcdir)/prim.b\" ' output-c process-file bye"| \
513 :     diff -c - $(srcdir)/engine/prim.i
514 : anton 1.21
515 : anton 1.143 bench: gforth-fast$(EXE) gforth.fi
516 : anton 1.40 @echo 'Each benchmark takes about 30s on a 486-66 (gcc-2.6.3 -DFORCE_REG)'
517 : anton 1.143 time $(FORTH_FAST) siev.fs -e "main bye"
518 :     time $(FORTH_FAST) bubble.fs -e "main bye"
519 :     time $(FORTH_FAST) -m 160000 matrix.fs -e "main bye"
520 :     time $(FORTH_FAST) fib.fs -e "main bye"
521 : anton 1.40
522 : jwilke 1.106 # ------------- Make forth images
523 : anton 1.87
524 : anton 1.150 # How to make new images:
525 : jwilke 1.106 # 1. Produce an image called kernlXYZ.fi-
526 :     # the original kernel.fi is not touched because it's needed for creation
527 :     # 2. copy old kernlXYZ.fi to kernlXYZ.fi~
528 :     # that's a backup copy in case the new kernels don't work
529 :     # 3. copy new kernels to kernlXYZ.fi
530 :     # these are the ones we want to use now
531 : pazsan 1.1
532 : anton 1.100 kernl16l.fi-: $(KERN_SRC) kernel/version.fs mach16l.fs $(FORTH_GEN0)
533 : jwilke 1.155 $(FORTHK) -e 's" mach16l.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl16l.fi- $(bindir)/gforth-$(VERSION) bye"
534 : anton 1.87
535 : anton 1.100 kernl16b.fi-: $(KERN_SRC) kernel/version.fs mach16b.fs $(FORTH_GEN0)
536 : anton 1.132 $(FORTHK) -e 's" mach16b.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl16b.fi- $(bindir)/gforth-$(VERSION) bye"
537 : anton 1.87
538 : anton 1.100 kernl32l.fi-: $(KERN_SRC) kernel/version.fs mach32l.fs $(FORTH_GEN0)
539 : anton 1.132 $(FORTHK) -e 's" mach32l.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl32l.fi- $(bindir)/gforth-$(VERSION) bye"
540 : anton 1.87
541 : anton 1.100 kernl32b.fi-: $(KERN_SRC) kernel/version.fs mach32b.fs $(FORTH_GEN0)
542 : anton 1.132 $(FORTHK) -e 's" mach32b.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl32b.fi- $(bindir)/gforth-$(VERSION) bye"
543 : anton 1.100
544 :     kernl64l.fi-: $(KERN_SRC) kernel/version.fs mach64l.fs $(FORTH_GEN0)
545 : anton 1.132 $(FORTHK) -e 's" mach64l.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl64l.fi- $(bindir)/gforth-$(VERSION) bye"
546 : anton 1.100
547 :     kernl64b.fi-: $(KERN_SRC) kernel/version.fs mach64b.fs $(FORTH_GEN0)
548 : anton 1.132 $(FORTHK) -e 's" mach64b.fs"' $(srcdir)/kernel/main.fs -e "save-cross kernl64b.fi- $(bindir)/gforth-$(VERSION) bye"
549 : anton 1.100
550 : pazsan 1.166 kernl-%.fi: arch/%/mach.fs $(KERN_SRC) kernel/version.fs $(FORTH_GEN0)
551 : anton 1.132 $(FORTHK) -e 's" $<"' $(srcdir)/kernel/main.fs -e "save-cross $@- $(bindir)/gforth-$(VERSION) bye"
552 : anton 1.100 if [ -f `echo $< | sed s/fs/sh/` ]; \
553 :     then sh `echo $< | sed s/fs/sh/` $@; \
554 :     else $(CP) $@- $@; \
555 :     fi
556 : pazsan 1.30
557 : anton 1.180 #SunOS make does not like that
558 :     #arch/%/mach.fs: arch/%/prim.fs arch/%/asm.fs
559 : pazsan 1.122
560 : anton 1.87 kernl16b.fi: $(KERNLS)
561 : anton 1.97 -$(CP) kernl16b.fi kernl16b.fi~
562 :     -$(CP) kernl16b.fi- kernl16b.fi
563 : anton 1.87
564 :     kernl16l.fi: $(KERNLS)
565 : anton 1.97 -$(CP) kernl16l.fi kernl16l.fi~
566 :     -$(CP) kernl16l.fi- kernl16l.fi
567 : anton 1.87
568 : anton 1.96 kernl32b.fi: $(KERNLS)
569 : anton 1.97 -$(CP) kernl32b.fi kernl32b.fi~
570 :     -$(CP) kernl32b.fi- kernl32b.fi
571 : anton 1.87
572 :     kernl32l.fi: $(KERNLS)
573 :     -$(CP) kernl32l.fi kernl32l.fi~
574 :     -$(CP) kernl32l.fi- kernl32l.fi
575 :    
576 :     kernl64b.fi: $(KERNLS)
577 :     -$(CP) kernl64b.fi kernl64b.fi~
578 :     -$(CP) kernl64b.fi- kernl64b.fi
579 :    
580 :     kernl64l.fi: $(KERNLS)
581 :     -$(CP) kernl64l.fi kernl64l.fi~
582 :     -$(CP) kernl64l.fi- kernl64l.fi
583 : anton 1.89
584 : anton 1.100 #kernl%.fi: kernl%.fi- $(KERNLS)
585 :     # -$(CP) $@ $@~
586 :     # -$(CP) $< $@
587 : anton 1.87
588 : pazsan 1.123 gforth.fi: $(kernel_fi) gforthmi gforth$(EXE) gforth-ditc$(EXE) $(GFORTH_FI_SRC)
589 : anton 1.171 GFORTHD="./gforth-ditc -p .$(PATHSEP)$(srcdir)" GFORTH="./gforth-ditc --die-on-signal -p .$(PATHSEP)$(srcdir) -i $(kernel_fi) $(STARTUP)" ./gforthmi gforth.fi $(FORTHSIZES) $(FORTHKFLAGS) $(STARTUP)
590 : anton 1.9
591 : jwilke 1.106 # ------------- Make c-engine
592 : pazsan 1.1
593 : anton 1.100 prim.b: prim
594 :     m4 -s $(srcdir)/prim >$@
595 :    
596 :     engine/prim.i: prim.b prims2x.fs
597 : jwilke 1.153 $(FORTHK) prims2x.fs -e "c-flag on s\" prim.b\" ' output-c process-file bye" >$@-
598 : pazsan 1.93 $(CP) $@- $@
599 :     $(RM) $@-
600 : pazsan 1.1
601 : anton 1.100 engine/prim_lab.i: prim.b prims2x.fs
602 : jwilke 1.153 $(FORTHK) prims2x.fs -e "c-flag on s\" prim.b\" ' output-label process-file bye" >$@-
603 : pazsan 1.93 $(CP) $@- $@
604 :     $(RM) $@-
605 : pazsan 1.1
606 : anton 1.100 kernel/aliases.fs: prim.b prims2x.fs kernel/aliases0.fs
607 :     $(CP) kernel/aliases0.fs $@-
608 : jwilke 1.153 $(FORTHK) prims2x.fs -e "forth-flag on s\" prim.b\" ' output-alias process-file bye" >>$@-
609 : pazsan 1.93 $(CP) $@- $@
610 :     $(RM) $@-
611 : pazsan 1.1
612 : anton 1.100 kernel/prim.fs: prim.b prims2x.fs kernel/prim0.fs
613 :     $(CP) kernel/prim0.fs kernel/prim.fs-
614 : jwilke 1.153 $(FORTHK) prims2x.fs -e "forth-flag on s\" prim.b\" ' output-forth process-file bye" >>$@-
615 : pazsan 1.93 $(CP) $@- $@
616 :     $(RM) $@-
617 : anton 1.27
618 : pazsan 1.130 gforth$(EXE): engines
619 : pazsan 1.123 -$(CP) gforth$(EXE) gforth~
620 : anton 1.110 $(CP) engine/$@ $@
621 : jwilke 1.106 @GFORTH_EXE@
622 :    
623 : anton 1.143 gforth-fast$(EXE): engines
624 :     $(CP) engine/$@ $@
625 :     @GFORTHFAST_EXE@
626 :    
627 : pazsan 1.130 gforth-ditc$(EXE): engines
628 : anton 1.110 $(CP) engine/$@ $@
629 : jwilke 1.106 @GFORTHDITC_EXE@
630 : pazsan 1.130
631 : jwilke 1.168 engines: FORCE engine/Makefile engine/prim.i engine/prim_lab.i
632 : anton 1.143 cd engine && $(MAKE) gforth$(EXE) gforth-fast$(EXE) gforth-ditc$(EXE)
633 : pazsan 1.107
634 :     # ------------- additional C primitives
635 :    
636 :     %.c: %.pri prim2cl.fs
637 :     $(FORTHK) prim2cl.fs -e "file $< altogether bye" >$@
638 :    
639 :     %.so: %.c
640 :     $(GCC) -shared $(CFLAGS) $< -o $@
641 : jwilke 1.106
642 :     # ------------- Make Documentation
643 :    
644 :     #TAGS is a GNU standard target
645 :     TAGS: gforth.TAGS
646 :     $(CP) gforth.TAGS $@
647 :    
648 : anton 1.131 install.TAGS: gforth.TAGS
649 :     sed 's:^\$(srcdir)/:$(datadir)/gforth/$(VERSION)/:' gforth.TAGS >install.TAGS
650 :    
651 : anton 1.190 gforth.TAGS: @kernel_fi@ gforth$(EXE) $(GFORTH_FI_SRC) prim.TAGS kernel.TAGS
652 : pazsan 1.181 $(FORTHK) etags.fs except.fs startup.fs -e bye
653 : jwilke 1.106 cat TAGS prim.TAGS kernel.TAGS >gforth.TAGS
654 :     rm TAGS
655 :    
656 : anton 1.100 prim.TAGS: prim.b prims2x.fs
657 : anton 1.186 echo '2c\' >prim.TAGS.sed
658 :     echo $(srcdir)/prim >>prim.TAGS.sed
659 :     $(FORTHK) prims2x.fs -e "s\" $(srcdir)/prim.b\" ' output-tag process-file bye" | sed -f prim.TAGS.sed >$@-
660 : pazsan 1.93 $(CP) $@- $@
661 :     $(RM) $@-
662 : anton 1.190
663 :     kernel.TAGS:
664 :     rm kernl16l.fi-; $(MAKE) @kernel_fi@
665 : pazsan 1.1
666 : crook 1.151 doc/doc.fd: doc/makedoc.fs $(GFORTH_FI_SRC) code.fs objects.fs oof.fs moofglos.fs
667 : pazsan 1.181 $(FORTHK) -e "s\" doc/doc.fd\"" doc/makedoc.fs except.fs startup.fs code.fs objects.fs oof.fs moofglos.fs -e bye
668 : anton 1.20
669 : anton 1.100 doc/crossdoc.fd: $(KERN_SRC) kernel/version.fs $(FORTH_GEN0)
670 :     $(FORTHK) -e 's" mach32l.fs"' kernel/main.fs -e bye
671 : anton 1.35
672 : anton 1.100 doc/gforth.texi: doc/gforth.ds prim.b ds2texi.fs prims2x.fs \
673 :     doc/doc.fd doc/crossdoc.fd
674 :     $(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" >$@-
675 : pazsan 1.93 $(CP) $@- $@
676 :     $(RM) $@-
677 : anton 1.35
678 : anton 1.100 checkdoc: doc/gforth.ds prim.b ds2texi.fs prims2x.fs doc/doc.fd doc/crossdoc.fd answords.fs doc/gforth.texi
679 : anton 1.119 $(FORTHK) -m 1M ds2texi.fs prims2x.fs -e "s\" $(srcdir)/prim.b\" ' register-doc process-file" doc/crossdoc.fd doc/doc.fd answords.fs -e bye
680 : anton 1.100 -grep unknown doc/gforth.texi
681 : anton 1.66
682 : anton 1.100 dvi: doc/gforth.dvi
683 : pazsan 1.1
684 : anton 1.111 doc/gforth.dvi doc/gforth.fns: $(GFORTH_TEXI)
685 : anton 1.100 cd doc; $(TEXI2DVI) gforth.texi
686 : anton 1.5
687 : anton 1.100 doc/gforth.ps: doc/gforth.dvi
688 :     $(DVI2PS) doc/gforth.dvi -o $@
689 : anton 1.40
690 : anton 1.100 info: doc/gforth.info
691 : anton 1.66
692 : anton 1.111 doc/gforth.info doc/gforth.info-*: $(GFORTH_TEXI)
693 : anton 1.100 -cd doc; $(MAKEINFO) gforth.texi
694 : anton 1.15
695 : anton 1.187 ### need makeinfo 4.0 to generate html. Otherwise, use texi2html..
696 : anton 1.111 html: $(GFORTH_TEXI)
697 : pazsan 1.115 -$(RMTREE) html
698 : anton 1.15 -mkdir html
699 : anton 1.170 cd html; $(MAKEINFO) --html -I ../doc ../doc/gforth.texi
700 :     ### cd html; $(TEXI2HTML) -menu -split_node ../doc/gforth.texi
701 : anton 1.114
702 :     doc/gforth.txt: $(GFORTH_TEXI)
703 :     -cd doc; $(MAKEINFO) --no-headers --no-split gforth.texi >gforth.txt
704 : pazsan 1.63
705 : anton 1.182 doc: info html doc/gforth.ps doc/gforth.txt TAGS
706 : pazsan 1.1
707 : anton 1.9 # For an explanation of the following Makefile rules, see node
708 :     # `Automatic Remaking' in GNU Autoconf documentation.
709 : anton 1.159
710 :     #Note: no target "$(srcdir)/configure", because that does not trigger
711 :     #unless $(srcdir)!="."
712 :     configure: configure.in aclocal.m4
713 : pazsan 1.69 cd $(srcdir) && autoconf
714 : anton 1.111
715 :     aclocal.m4: acinclude.m4 configure.in
716 :     aclocal
717 : pazsan 1.69
718 : anton 1.51 # autoheader might not change config.h.in, so touch a stamp file.
719 : anton 1.125 engine/config.h.in: stamp-h.in
720 : anton 1.100 stamp-h.in: configure.in acconfig.h
721 : pazsan 1.69 cd $(srcdir) && autoheader
722 :     echo timestamp > $(srcdir)/stamp-h.in
723 : anton 1.51
724 : anton 1.100 engine/config.h: stamp-h
725 : anton 1.125 stamp-h: engine/config.h.in config.status
726 : anton 1.100 CONFIG_FILES=$@ CONFIG_HEADERS=engine/config.h ./config.status
727 : anton 1.119 echo timestamp > stamp-h
728 : anton 1.112
729 : anton 1.135 Makefile Makedist engine/Makefile gforthmi: Makefile.in Makedist.in engine/Makefile.in gforthmi.in config.status
730 : anton 1.131 CONFIG_FILES="$@" CONFIG_HEADERS=engine/config.h ./config.status
731 : anton 1.112
732 : pazsan 1.69 config.status: configure
733 : anton 1.51 ./config.status --recheck
734 : pazsan 1.30
735 : anton 1.51
736 :     #create files for DOS, because DOS cannot do it itself
737 : jwilke 1.106 makefile.dos: mkdosmf.sed Makefile.in engine/Makefile.in
738 : pazsan 1.30 sed -f mkdosmf.sed <Makefile.in >makefile.dos
739 : anton 1.100 sed -f mkdosmf.sed <engine/Makefile.in >engine/makefile.dos
740 : pazsan 1.69
741 : jwilke 1.106 makefile.os2: mkos2mf.sed Makefile.in engine/Makefile.in
742 : pazsan 1.69 sed -f mkos2mf.sed <Makefile.in >makefile.os2
743 : anton 1.100 sed -f mkos2mf.sed <engine/Makefile.in >engine/makefile.os2
744 : pazsan 1.69 echo '%.o: %.c' >>makefile.os2
745 :     echo ' $$(GCC) $$(CFLAGS) -c $$<' >>makefile.os2
746 : anton 1.100 echo '%.o: %.c' >>engine/makefile.os2
747 :     echo ' $$(GCC) $$(CFLAGS) -c $$<' >>engine/makefile.os2

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help