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