Annotation of gforth/Makefile.in, revision 1.25
1.1 pazsan 1: #Copyright 1992 by the ANSI figForth Development Group
1.9 anton 2: # To change the values of `make' variables: instead of editing Makefiles,
3: # (1) if the variable is set in `config.status', edit `config.status'
4: # (which will cause the Makefiles to be regenerated when you run `make');
5: # (2) otherwise, pass the desired values on the `make' command line.
1.1 pazsan 6:
1.9 anton 7: #To do:
8: #use $(srcdir) to make compilation in a non-srcdir possible
9:
10: VERSION =0.1alpha#gforth version
11: SHELL = /bin/sh
1.4 pazsan 12: RM = rm
13: CP = cp
1.9 anton 14: INSTALL = @INSTALL@
15: INSTALL_PROGRAM = @INSTALL_PROGRAM@
16: INSTALL_DATA = @INSTALL_DATA@
17: LN_S = @LN_S@
1.1 pazsan 18: GCC = gcc
1.23 anton 19: CC = $(GCC)
1.9 anton 20: FORTH = ./gforth
1.22 anton 21: STRIP = strip
1.9 anton 22: TEXI2DVI = tex
23: DVI2PS = dvips
1.15 anton 24: #you can get texi2html from http://asis01.cern.ch/infohtml/texi2html.html
25: TEXI2HTML = texi2html
1.11 anton 26: MAKEINFO = makeinfo
1.9 anton 27: XCFLAGS = @CFLAGS@
28: XDEFINES = @DEFS@
1.12 anton 29: SWITCHES = $(XCFLAGS) $(XDEFINES) #-DNDEBUG #turn off assertions
1.17 pazsan 30: ENGINE_FLAGS = -fno-defer-pop -fcaller-saves
31: CFLAGS = @DEBUGFLAG@ -O4 -Wall $(SWITCHES)
1.1 pazsan 32:
33: #John Wavrik should use -Xlinker -N to get a writable text (executable)
1.17 pazsan 34: LDFLAGS = @DEBUGFLAG@ @LDFLAGS@ @GCCLDFLAGS@
1.9 anton 35: LDLIBS = @LIBS@
36:
37: prefix = @prefix@
38: exec_prefix = @exec_prefix@
39: srcdir = @srcdir@
40: bindir = $(exec_prefix)/bin
41: #read-only architecture-independent files
42: datadir = $(prefix)/share
43: #read-only architecture-dependent non-ascii files
44: libdir = $(prefix)/lib
45: infodir = $(prefix)/info
46: mandir = $(prefix)/man/man1
1.1 pazsan 47:
48:
49: INCLUDES = forth.h io.h
50:
1.21 anton 51: FORTH_SRC = anslocal.fs add.fs assert.fs ansi.fs blocks.fs bufio.fs checkans.fs \
1.6 pazsan 52: colorize.fs cross.fs debug.fs debugging.fs doskey.fs ds2texi.fs \
53: dumpimage.fs environ.fs errore.fs etags.fs extend.fs filedump.fs \
54: float.fs glocals.fs glosgen.fs gray.fs hash.fs history.fs \
1.21 anton 55: kernal.fs locals-test.fs look.fs main.fs makedoc.fs \
1.13 pazsan 56: mach16b.fs mach16l.fs mach32b.fs mach32l.fs mach64b.fs mach64l.fs \
1.6 pazsan 57: other.fs prims2x.fs random.fs search-order.fs see.fs sieve.fs \
58: startup.fs struct.fs tools.fs toolsext.fs tt.fs vars.fs vt100.fs \
1.21 anton 59: vt100key.fs wordinfo.fs wordsets.fs \
60: tester.fs coretest.fs
1.1 pazsan 61:
1.17 pazsan 62: SOURCES = Makefile.in configure.in configure config.sub config.guess \
1.19 anton 63: install-sh INSTALL README ToDo BUGS model COPYING \
64: gforth.ds texinfo.tex gforth.1 \
1.6 pazsan 65: primitives engine.c main.c io.c \
1.17 pazsan 66: m68k.h mips.h 386.h hppa.h cache.c sparc.h power.h alpha.h 32bit.h \
1.14 anton 67: getopt.c getopt1.c getopt.h select.c \
1.24 anton 68: ecvt.c memcmp.c strtol.c strtoul.c ansidecl.h memmove.c pow10.c \
1.25 ! anton 69: strerror.c \
1.17 pazsan 70: makefile.dos configure.bat startup.dos \
1.6 pazsan 71: glosgen.glo glossaries.doc \
1.1 pazsan 72: $(INCLUDES) $(FORTH_SRC)
73:
1.5 anton 74: RCS_FILES = ToDo model high-level
1.1 pazsan 75:
76: GEN = gforth
77:
1.9 anton 78: OBJECTS = engine.o io.o main.o @LIBOBJS@ @getopt_long@
1.1 pazsan 79:
80: # things that need a working forth system to be generated
1.15 anton 81: FORTH_GEN0 = primitives.b primitives.i prim_labels.i aliases.fs
82: FORTH_GEN = $(FORTH_GEN0) @KERNAL@
1.1 pazsan 83: # this is used for antidependences,
1.15 anton 84: FORTH_GEN1 = $(FORTH_GEN0) @gforth_fi@
1.5 anton 85:
86:
1.9 anton 87: GEN_PRECIOUS = $(FORTH_GEN) gforth.texi gforth.dvi gforth.ps Makefile configure
1.1 pazsan 88:
1.9 anton 89: #standards.info recommends this:
90: .SUFFIXES:
91: .SUFFIXES: .c .o
92:
1.2 pazsan 93: all:
1.7 pazsan 94: if [ ! -f gforth ]; then $(MAKE) first; fi
1.2 pazsan 95: $(MAKE) more
1.1 pazsan 96:
1.2 pazsan 97: first: gforth
98:
1.3 pazsan 99: more: $(FORTH_GEN) gforth
1.2 pazsan 100:
1.1 pazsan 101: #from the gcc Makefile:
102: #"Deletion of files made during compilation.
103: # There are four levels of this:
104: # `mostlyclean', `clean', `distclean' and `realclean'.
105: # `mostlyclean' is useful while working on a particular type of machine.
106: # It deletes most, but not all, of the files made by compilation.
107: # It does not delete libgcc.a or its parts, so it won't have to be recompiled.
108: # `clean' deletes everything made by running `make all'.
109: # `distclean' also deletes the files made by config.
110: # `realclean' also deletes everything that could be regenerated automatically."
111:
112: clean:
1.4 pazsan 113: -$(RM) $(GEN) *.o *.s
1.1 pazsan 114:
115: distclean: clean
1.9 anton 116: -$(RM) machine.h gforth.fi config.cache config.log
1.1 pazsan 117:
118: realclean: distclean
1.4 pazsan 119: -$(RM) $(GEN_PRECIOUS)
1.1 pazsan 120:
1.9 anton 121: dist: $(SOURCES) $(FORTH_GEN)
1.21 anton 122: -rm -rf gforth-$(VERSION)
123: mkdir gforth-$(VERSION)
1.22 anton 124: cp -p $(SOURCES) $(FORTH_GEN) gforth-$(VERSION)
1.21 anton 125: tar cvf - gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).tar.gz
1.1 pazsan 126:
1.22 anton 127: #a binary distribution contains the complete source distribution,
128: # the objects, the executable and the links. the objects are there for making
129: # make happy.
130: bindist: $(SOURCES) $(FORTH_GEN) gforth $(OBJECTS) config.status Makefile
131: -rm -rf gforth-$(VERSION)
132: mkdir gforth-$(VERSION)
133: cp -p -d $(SOURCES) config.status Makefile $(FORTH_GEN) gforth $(OBJECTS) machine.h gforth.fi gforth-$(VERSION)
134: strip gforth-$(VERSION)/gforth
135: tar cvf - gforth-$(VERSION)|gzip -9 >gforth-$(VERSION)-@host@.tar.gz
136:
137: #makes a package with only the stuff not present in the source
138: #package. For installation the source package is still needed!
139: #This is useful if you want to distribute many binary versions in
140: #little space (e.g., on floppy disk): Put the source package and
141: #all the binonly packages you are interested in on the disk. The user
142: #then just has to unpack the source and his favourite binonly into the
143: #same directory and has a full binary distribution.
144: binonlydist: $(SOURCES) $(FORTH_GEN) gforth $(OBJECTS)
145: -rm -rf gforth-$(VERSION)
146: mkdir gforth-$(VERSION)
147: cp -p -d config.status Makefile gforth $(OBJECTS) machine.h gforth.fi gforth-$(VERSION)
148: strip gforth-$(VERSION)/gforth
149: tar cvf - gforth-$(VERSION)|gzip -9 >gforth-$(VERSION)-binonly-@host@.tar.gz
150:
151:
152:
1.15 anton 153: #strip gforth, because the debugging stuff is hardly useful once
154: # gforth manages to execute more than a few primitives
155:
1.9 anton 156: install: gforth $(FORTH_SRC) gforth.fi gforth.1 gforth.info
157: $(INSTALL) -d $(bindir) $(mandir) $(infodir) $(libdir)/gforth $(datadir)/gforth
1.15 anton 158: $(INSTALL_PROGRAM) -s gforth $(bindir)
1.9 anton 159: $(INSTALL_DATA) gforth.1 $(mandir)
1.11 anton 160: $(INSTALL_DATA) gforth.info* $(infodir)
1.9 anton 161: $(INSTALL_DATA) gforth.fi $(libdir)/gforth
162: for i in $(FORTH_SRC); do \
1.21 anton 163: $(INSTALL_DATA) $$i $(libdir)/gforth; \
1.9 anton 164: done
165:
1.21 anton 166: test: gforth
167: @echo 'Expect to see INCORRECT RESULT: { GS1 -> <TRUE> <TRUE> }'
168: @echo 'This is a bug of the testing program'
169: $(FORTH) tester.fs coretest.fs -e bye
170: $(FORTH) startup.fs blocks.fs checkans.fs -e bye
171: @echo 'Expect no differences'
172: $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-c process-file bye"| diff -c - primitives.i
173:
1.9 anton 174: dvi: gforth.dvi
1.5 anton 175:
1.21 anton 176: gforth: $(OBJECTS)
1.4 pazsan 177: -$(CP) gforth gforth~
1.1 pazsan 178: $(GCC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $@
1.9 anton 179: @MAKE_EXE@
1.1 pazsan 180:
1.13 pazsan 181: kernl16l.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
182: errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
1.15 anton 183: mach16l.fs $(FORTH_GEN1)
1.13 pazsan 184: -$(CP) kernl16l.fi kernl16l.fi~
185: $(FORTH) -e 's" mach16l.fs"' main.fs
186: @LINK_KERNL16L@
187:
188: kernl16b.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
189: errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
1.15 anton 190: mach16b.fs $(FORTH_GEN1)
1.13 pazsan 191: -$(CP) kernl16b.fi kernl16b.fi~
192: $(FORTH) -e 's" mach16b.fs"' main.fs
193: @LINK_KERNL16B@
194:
1.1 pazsan 195: kernl32l.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
196: errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
1.15 anton 197: mach32l.fs $(FORTH_GEN1)
1.4 pazsan 198: -$(CP) kernl32l.fi kernl32l.fi~
1.1 pazsan 199: $(FORTH) -e 's" mach32l.fs"' main.fs
1.9 anton 200: @LINK_KERNL32L@
1.1 pazsan 201:
202: kernl32b.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
203: errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
1.15 anton 204: mach32b.fs $(FORTH_GEN1)
1.4 pazsan 205: -$(CP) kernl32b.fi kernl32b.fi~
1.1 pazsan 206: $(FORTH) -e 's" mach32b.fs"' main.fs
1.9 anton 207: @LINK_KERNL32B@
1.13 pazsan 208:
209: kernl64l.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
210: errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
1.15 anton 211: mach64l.fs $(FORTH_GEN1)
1.13 pazsan 212: -$(CP) kernl64l.fi kernl64l.fi~
213: $(FORTH) -e 's" mach64l.fs"' main.fs
214: @LINK_KERNL64L@
215:
216: kernl64b.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
217: errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
1.15 anton 218: mach64b.fs $(FORTH_GEN1)
1.13 pazsan 219: -$(CP) kernl64b.fi kernl64b.fi~
220: $(FORTH) -e 's" mach64b.fs"' main.fs
221: @LINK_KERNL64B@
1.1 pazsan 222:
223: engine.s: engine.c primitives.i prim_labels.i machine.h $(INCLUDES)
1.9 anton 224: $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -S engine.c
1.1 pazsan 225:
226: engine.o: engine.c primitives.i prim_labels.i machine.h $(INCLUDES)
1.9 anton 227: $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -c engine.c
228:
229: strtoul.o: strtoul.c strtol.c
1.1 pazsan 230:
231: primitives.b: primitives
232: m4 primitives >$@
233:
234: primitives.i : primitives.b prims2x.fs
235: $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-c process-file bye" >$@
236:
237: prim_labels.i : primitives.b prims2x.fs
238: $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-label process-file bye" >$@
239:
240: aliases.fs: primitives.b prims2x.fs
241: $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-alias process-file bye" >$@
242:
243: primitives.fs: primitives.b prims2x.fs
244: $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-forth process-file bye" >$@
245:
1.20 anton 246: doc.fs: makedoc.fs float.fs search-order.fs glocals.fs environ.fs \
247: toolsext.fs wordinfo.fs \
248: vt100.fs colorize.fs see.fs bufio.fs debug.fs history.fs \
249: doskey.fs vt100key.fs startup.fs assert.fs debugging.fs
250: $(FORTH) -e "s\" doc.fs\"" makedoc.fs startup.fs -e bye
251:
252: gforth.texi: gforth.ds primitives.b ds2texi.fs prims2x.fs doc.fs
1.4 pazsan 253: $(FORTH) ds2texi.fs >$@
1.1 pazsan 254:
255: gforth.dvi: gforth.texi
1.9 anton 256: $(TEXI2DVI) gforth.texi
1.5 anton 257:
258: gforth.ps: gforth.dvi
1.9 anton 259: $(DVI2PS) gforth.dvi -o $@
1.11 anton 260:
261: gforth.info: gforth.texi
262: -$(MAKEINFO) gforth.texi
1.15 anton 263:
264: html: gforth.texi
265: -$(RM) html/*
266: -mkdir html
267: cd html; $(TEXI2HTML) -menu -split_node ../gforth.texi
1.1 pazsan 268:
1.9 anton 269: # For an explanation of the following Makefile rules, see node
270: # `Automatic Remaking' in GNU Autoconf documentation.
271: Makefile: Makefile.in config.status
272: CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
273: config.status: configure
274: ./config.status --recheck
275: configure: configure.in
276: cd $(srcdir) && autoconf
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>