1: # Makefile for distribution
2:
3: ARCHS = arch/generic/machine.h \
4: arch/m68k/machine.h \
5: arch/mips/machine.h \
6: arch/386/machine.h \
7: arch/hppa/machine.h \
8: arch/hppa/cache.c \
9: arch/sparc/machine.h \
10: arch/power/machine.h \
11: arch/power/_sync_cache_range.c \
12: arch/alpha/machine.h \
13: arch/4stack/README \
14: arch/4stack/asm.fs \
15: arch/4stack/mach.fs \
16: arch/4stack/prim.fs \
17: arch/4stack/mach.sh \
18: arch/4stack/relocate.fs \
19: arch/misc/README \
20: arch/misc/asm.fs \
21: arch/misc/mach.fs \
22: arch/misc/prim.fs \
23: arch/misc/sim.fs \
24: arch/misc/sokoban.fs \
25: arch/misc/tt.fs \
26: arch/6502/asm.fs \
27: arch/6502/prim.fs \
28: arch/6502/mach.fs \
29: arch/6502/zero.fs \
30: arch/6502/softuart.fs \
31: arch/6502/cold.fs \
32: arch/8086/asm.fs \
33: arch/8086/mach.fs \
34: arch/8086/mach.sh \
35: arch/8086/prim.fs \
36: arch/avr/asm.fs \
37: arch/c165/asm.fs \
38: arch/c165/mach.fs \
39: arch/c165/prim.fs \
40: arch/h8/asm.fs \
41: arch/shboom/asm.fs \
42: arch/shboom/compiler.fs \
43: arch/shboom/dis.fs \
44: arch/shboom/mach.fs \
45: arch/shboom/prim.fs \
46: arch/shboom/dis2.fs \
47: arch/shboom/sh.p \
48: arch/shboom/doers.fs
49:
50: SOURCES_REST = compat Makefile.in Makedist.in engine/Makefile.in gforthmi.in \
51: configure.in configure config.sub config.guess elisp-comp missing \
52: acconfig.h acinclude.m4 engine/config.h.in stamp-h.in \
53: install-sh INSTALL INSTALL.BINDIST NEWS README ToDo BUGS model \
54: COPYING AUTHORS ChangeLog Benchres aclocal.m4 \
55: doc/gforth.ds doc/texinfo.tex doc/gforth.1 doc/version.texi.in \
56: gforth.el \
57: prim engine/engine.c engine/main.c engine/io.c engine/memcmpc.c \
58: engine/getopt.c engine/getopt1.c engine/getopt.h engine/select.c \
59: engine/ecvt.c engine/memcmp.c engine/strtol.c engine/strtoul.c \
60: engine/ansidecl.h engine/memmove.c \
61: engine/pow10.c engine/atanh.c engine/cleanalign.c \
62: engine/strerror.c engine/strsignal.c engine/dblsub.c \
63: INSTALL.DOS makefile.dos engine/makefile.dos mkdosmf.sed config.bat \
64: dosconf.h gforthmi.bat mkinstalldirs \
65: versions.bsh \
66: configure.cmd mkos2mf.sed os2conf.h makefile.os2 engine/makefile.os2 \
67: gforthmi.cmd glosgen.glo doc/glossaries.doc \
68: timings.sc
69:
70: CVSDIRS = CVS engine/CVS kernel/CVS doc/CVS asm/CVS ec/CVS test/CVS \
71: compat/CVS \
72: arch/CVS arch/generic/CVS arch/m68k/CVS arch/mips/CVS \
73: arch/386/CVS arch/hppa/CVS arch/sparc/CVS arch/power/CVS \
74: arch/alpha/CVS arch/4stack/CVS arch/misc/CVS arch/6502/CVS \
75: arch/8086/CVS arch/avr/CVS arch/c165/CVS arch/h8/CVS \
76: arch/shboom/CVS \
77:
78: INCLUDES = engine/forth.h engine/threaded.h engine/io.h
79:
80: KERN_SRC = \
81: kernel/aliases0.fs \
82: kernel/aliases.fs \
83: kernel/args.fs \
84: chains.fs \
85: kernel/cond.fs \
86: kernel/cond-old.fs \
87: cross.fs \
88: kernel/errore.fs \
89: kernel/files.fs \
90: kernel/require.fs \
91: kernel/paths.fs \
92: kernel/kernel.fs \
93: kernel/main.fs \
94: kernel/prim0.fs \
95: search.fs \
96: kernel/special.fs \
97: kernel/tools.fs \
98: kernel/toolsext.fs \
99: kernel/vars.fs \
100: kernel/accept.fs \
101: kernel/basics.fs \
102: kernel/int.fs \
103: kernel/comp.fs \
104: kernel/io.fs \
105: kernel/license.fs \
106: kernel/nio.fs \
107: kernel/saccept.fs \
108: kernel/doers.fs \
109: kernel/getdoers.fs
110:
111: EC_SRC = \
112: asm/README \
113: asm/bitmask.fs \
114: asm/numref.fs \
115: asm/basic.fs \
116: asm/generic.fs \
117: asm/target.fs \
118: ec/README \
119: ec/mirror.fs \
120: ec/mirrors.fs \
121: ec/shex.fs \
122: ec/builttag.fs \
123: ec/dotx.fs \
124: ec/mirrored.fs \
125: ec/nesting.fs
126:
127: GFORTH_FI_SRC = \
128: assert.fs \
129: blocked.fb \
130: blocks.fs \
131: bufio.fs \
132: debug.fs \
133: debugs.fs \
134: savesys.fs \
135: environ.fs \
136: errors.fs \
137: extend.fs \
138: float.fs \
139: glocals.fs \
140: hash.fs \
141: history.fs \
142: intcomp.fs \
143: locals.fs \
144: look.fs \
145: search.fs \
146: see.fs \
147: see-ext.fs \
148: source.fs \
149: startup.fs \
150: struct.fs \
151: stuff.fs \
152: tasker.fs \
153: termsize.fs \
154: vt100.fs \
155: vt100key.fs \
156: wordinfo.fs \
157: lib.fs \
158: sieve.fs \
159: add.fs
160:
161: FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC) $(EC_SRC) \
162: ans-report.fs ansi.fs answords.fs \
163: code.fs colorize.fs comp-i.fs \
164: doskey.fs ds2texi.fs \
165: envos.fs envos.dos envos.os2 etags.fs filedump.fs fi2c.fs \
166: glosgen.fs gray.fs \
167: doc/makedoc.fs \
168: mach16b.fs mach16l.fs mach32b.fs mach32l.fs mach64b.fs mach64l.fs \
169: machpc.fs more.fs other.fs prims2x.fs random.fs \
170: siteinit.fs table.fs \
171: tt.fs sokoban.fs \
172: unbuffered.fs wordsets.fs \
173: test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs \
174: test/other.fs test/checkans.fs \
175: bubble.fs siev.fs matrix.fs fib.fs \
176: oof.fs oofsampl.fs objects.fs objexamp.fs mini-oof.fs moof-exm.fs
177:
178: COMPAT = compat/README \
179: compat/anslocal.fs \
180: compat/assert.fs \
181: compat/control.fs \
182: compat/defer.fs \
183: compat/exception.fs \
184: compat/loops.fs \
185: compat/required.fs \
186: compat/struct.fs \
187: compat/vocabulary.fs
188:
189: SOURCES = $(CVSDIRS) $(SOURCES_REST) $(ARCHS) $(INCLUDES) $(FORTH_SRC) $(COMPAT)
190:
191: cvsdirs: $(CVSDIRS)
192:
193: sources-rest: $(SOURCES_REST)
194:
195: archs: $(ARCHS)
196:
197: includes: $(INCLUDES)
198:
199: forth-src: $(FORTH_SRC)
200:
201: compat: $(COMPAT)
202:
203: sources: cvsdirs sources-rest archs includes forth-src compat
204:
205: #use dist targets only when srcdir=.
206: dist: sources $(FORTH_GEN0) @KERNEL@ $(DOCDIST)
207: -$(RMTREE) gforth-$(VERSION)
208: mkdir gforth-$(VERSION)
209: $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \
210: (cd gforth-$(VERSION); tar xf -)
211: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).tar.gz
212: -$(RMTREE) gforth-$(VERSION)
213:
214: #use dist targets only when srcdir=.
215: dosdist: sources $(FORTH_GEN0) @KERNEL@ $(DOCDIST)
216: -$(RMTREE) gforth.$(DOSVERSION)
217: mkdir gforth.$(DOSVERSION)
218: $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \
219: (cd gforth.$(DOSVERSION); tar xf -)
220: $(MV) gforth.$(DOSVERSION)/engine/strsignal.c gforth.$(DOSVERSION)/engine/strsig.c
221: for i in 1 2 3 4 5 6 7 8; do \
222: $(MV) gforth.$(DOSVERSION)/doc/gforth.info-$$i gforth.$(DOSVERSION)/doc/gforth.i$$i; \
223: done
224: zip -r9 gf$(DOSVERSION)dos.zip gforth.$(DOSVERSION)/*
225: -$(RMTREE) gforth.$(DOSVERSION)
226:
227: #A source distribution contains only the things needed to install gforth,
228: #without the documents.
229: srcdist: sources $(FORTH_GEN0) @KERNEL@
230: -$(RMTREE) gforth-$(VERSION)
231: mkdir gforth-$(VERSION)
232: $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ | \
233: (cd gforth-$(VERSION); tar xf -)
234: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-src-$(VERSION).tar.gz
235: -$(RMTREE) gforth-$(VERSION)
236:
237: srconlydist: sources
238: -$(RMTREE) gforth-$(VERSION)
239: mkdir gforth-$(VERSION)
240: $(TAR) $(SOURCES) | \
241: (cd gforth-$(VERSION); tar xf -)
242: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-srconly-$(VERSION).tar.gz
243: -$(RMTREE) gforth-$(VERSION)
244:
245: #A document distribution contains only the documents, which can be created
246: #with MAKE.
247: docdist: $(DOCDIST)
248: -$(RMTREE) gforth-$(VERSION)
249: mkdir gforth-$(VERSION)
250: $(TAR) $(DOCDIST) | (cd gforth-$(VERSION); tar xf -)
251: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-doc-$(VERSION).tar.gz
252: -$(RMTREE) gforth-$(VERSION)
253:
254: htmldist: html
255: $(TAR) html|gzip -9 >gforth-html-$(VERSION).tar.gz
256:
257: #a binary distribution contains the complete source distribution,
258: # the objects, the executable and the links. the objects are there for making
259: # make happy.
260: bindist: sources $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST)
261: -$(RMTREE) gforth-$(VERSION)
262: mkdir gforth-$(VERSION)
263: $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -)
264: strip gforth-$(VERSION)/gforth
265: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION)-@host@.tar.gz
266:
267: #makes a package with only the stuff not present in the source
268: #package. For installation the source package is still needed!
269: #This is useful if you want to distribute many binary versions in
270: #little space (e.g., on floppy disk): Put the source package and
271: #all the binonly packages you are interested in on the disk. The user
272: #then just has to unpack the source and his favourite binonly into the
273: #same directory and has a full binary distribution.
274: binonlydist: sources $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST)
275: -$(RMTREE) gforth-$(VERSION)
276: mkdir gforth-$(VERSION)
277: $(TAR) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -)
278: strip gforth-$(VERSION)/gforth
279: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION)-binonly-@host@.tar.gz
280:
281:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>