Annotation of gforth/Makefile.in, revision 1.19
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.1 pazsan 20: CC = gcc
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.6 pazsan 50: FORTH_SRC = add.fs assert.fs ansi.fs blocks.fs bufio.fs checkans.fs \
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.13 pazsan 54: kernal.fs locals-test.fs look.fs main.fs \
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 \
58: vt100key.fs wordinfo.fs wordsets.fs
1.1 pazsan 59:
1.17 pazsan 60: SOURCES = Makefile.in configure.in configure config.sub config.guess \
1.19 ! anton 61: install-sh INSTALL README ToDo BUGS model COPYING \
! 62: gforth.ds texinfo.tex gforth.1 \
1.6 pazsan 63: primitives engine.c main.c io.c \
1.17 pazsan 64: m68k.h mips.h 386.h hppa.h cache.c sparc.h power.h alpha.h 32bit.h \
1.14 anton 65: getopt.c getopt1.c getopt.h select.c \
1.18 anton 66: ecvt.c memcmp.c strtol.c strtoul.c ansidecl.h memmove.c \
1.17 pazsan 67: makefile.dos configure.bat startup.dos \
1.6 pazsan 68: glosgen.glo glossaries.doc \
1.1 pazsan 69: $(INCLUDES) $(FORTH_SRC)
70:
1.5 anton 71: RCS_FILES = ToDo model high-level
1.1 pazsan 72:
73: GEN = gforth
74:
1.9 anton 75: OBJECTS = engine.o io.o main.o @LIBOBJS@ @getopt_long@
1.1 pazsan 76:
77: # things that need a working forth system to be generated
1.15 anton 78: FORTH_GEN0 = primitives.b primitives.i prim_labels.i aliases.fs
79: FORTH_GEN = $(FORTH_GEN0) @KERNAL@
1.1 pazsan 80: # this is used for antidependences,
1.15 anton 81: FORTH_GEN1 = $(FORTH_GEN0) @gforth_fi@
1.5 anton 82:
83:
1.9 anton 84: GEN_PRECIOUS = $(FORTH_GEN) gforth.texi gforth.dvi gforth.ps Makefile configure
1.1 pazsan 85:
1.9 anton 86: #standards.info recommends this:
87: .SUFFIXES:
88: .SUFFIXES: .c .o
89:
1.2 pazsan 90: all:
1.7 pazsan 91: if [ ! -f gforth ]; then $(MAKE) first; fi
1.2 pazsan 92: $(MAKE) more
1.1 pazsan 93:
1.2 pazsan 94: first: gforth
95:
1.3 pazsan 96: more: $(FORTH_GEN) gforth
1.2 pazsan 97:
1.1 pazsan 98: #from the gcc Makefile:
99: #"Deletion of files made during compilation.
100: # There are four levels of this:
101: # `mostlyclean', `clean', `distclean' and `realclean'.
102: # `mostlyclean' is useful while working on a particular type of machine.
103: # It deletes most, but not all, of the files made by compilation.
104: # It does not delete libgcc.a or its parts, so it won't have to be recompiled.
105: # `clean' deletes everything made by running `make all'.
106: # `distclean' also deletes the files made by config.
107: # `realclean' also deletes everything that could be regenerated automatically."
108:
109: clean:
1.4 pazsan 110: -$(RM) $(GEN) *.o *.s
1.1 pazsan 111:
112: distclean: clean
1.9 anton 113: -$(RM) machine.h gforth.fi config.cache config.log
1.1 pazsan 114:
115: realclean: distclean
1.4 pazsan 116: -$(RM) $(GEN_PRECIOUS)
1.1 pazsan 117:
1.9 anton 118: dist: $(SOURCES) $(FORTH_GEN)
1.10 pazsan 119: -rm gforth-$(VERSION)
120: ln -s `pwd` gforth-$(VERSION)
1.6 pazsan 121: echo "" $(SOURCES) $(FORTH_GEN) |\
122: sed -e 's| | gforth-$(VERSION)/|g' |\
1.10 pazsan 123: xargs tar cvf gforth-$(VERSION).tar
1.5 anton 124: gzip -9 -f gforth-$(VERSION).tar
1.10 pazsan 125: -rm gforth-$(VERSION)
1.1 pazsan 126:
1.15 anton 127: #strip gforth, because the debugging stuff is hardly useful once
128: # gforth manages to execute more than a few primitives
129:
1.9 anton 130: install: gforth $(FORTH_SRC) gforth.fi gforth.1 gforth.info
131: $(INSTALL) -d $(bindir) $(mandir) $(infodir) $(libdir)/gforth $(datadir)/gforth
1.15 anton 132: $(INSTALL_PROGRAM) -s gforth $(bindir)
1.9 anton 133: $(INSTALL_DATA) gforth.1 $(mandir)
1.11 anton 134: $(INSTALL_DATA) gforth.info* $(infodir)
1.9 anton 135: $(INSTALL_DATA) gforth.fi $(libdir)/gforth
136: for i in $(FORTH_SRC); do \
137: $(CP) $$i $(datadir)/gforth; \
138: $(LN_S) $(datadir)/gforth/$$i $(libdir)/gforth \
139: done
140:
141: dvi: gforth.dvi
1.5 anton 142:
1.2 pazsan 143: gforth: $(OBJECTS)
1.4 pazsan 144: -$(CP) gforth gforth~
1.1 pazsan 145: $(GCC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $@
1.9 anton 146: @MAKE_EXE@
1.1 pazsan 147:
1.13 pazsan 148: kernl16l.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
149: errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
1.15 anton 150: mach16l.fs $(FORTH_GEN1)
1.13 pazsan 151: -$(CP) kernl16l.fi kernl16l.fi~
152: $(FORTH) -e 's" mach16l.fs"' main.fs
153: @LINK_KERNL16L@
154:
155: kernl16b.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
156: errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
1.15 anton 157: mach16b.fs $(FORTH_GEN1)
1.13 pazsan 158: -$(CP) kernl16b.fi kernl16b.fi~
159: $(FORTH) -e 's" mach16b.fs"' main.fs
160: @LINK_KERNL16B@
161:
1.1 pazsan 162: kernl32l.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
163: errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
1.15 anton 164: mach32l.fs $(FORTH_GEN1)
1.4 pazsan 165: -$(CP) kernl32l.fi kernl32l.fi~
1.1 pazsan 166: $(FORTH) -e 's" mach32l.fs"' main.fs
1.9 anton 167: @LINK_KERNL32L@
1.1 pazsan 168:
169: kernl32b.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
170: errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
1.15 anton 171: mach32b.fs $(FORTH_GEN1)
1.4 pazsan 172: -$(CP) kernl32b.fi kernl32b.fi~
1.1 pazsan 173: $(FORTH) -e 's" mach32b.fs"' main.fs
1.9 anton 174: @LINK_KERNL32B@
1.13 pazsan 175:
176: kernl64l.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
177: errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
1.15 anton 178: mach64l.fs $(FORTH_GEN1)
1.13 pazsan 179: -$(CP) kernl64l.fi kernl64l.fi~
180: $(FORTH) -e 's" mach64l.fs"' main.fs
181: @LINK_KERNL64L@
182:
183: kernl64b.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
184: errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
1.15 anton 185: mach64b.fs $(FORTH_GEN1)
1.13 pazsan 186: -$(CP) kernl64b.fi kernl64b.fi~
187: $(FORTH) -e 's" mach64b.fs"' main.fs
188: @LINK_KERNL64B@
1.1 pazsan 189:
190: engine.s: engine.c primitives.i prim_labels.i machine.h $(INCLUDES)
1.9 anton 191: $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -S engine.c
1.1 pazsan 192:
193: engine.o: engine.c primitives.i prim_labels.i machine.h $(INCLUDES)
1.9 anton 194: $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -c engine.c
195:
196: strtoul.o: strtoul.c strtol.c
1.1 pazsan 197:
198: primitives.b: primitives
199: m4 primitives >$@
200:
201: primitives.i : primitives.b prims2x.fs
202: $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-c process-file bye" >$@
203:
204: prim_labels.i : primitives.b prims2x.fs
205: $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-label process-file bye" >$@
206:
207: aliases.fs: primitives.b prims2x.fs
208: $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-alias process-file bye" >$@
209:
210: primitives.fs: primitives.b prims2x.fs
211: $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-forth process-file bye" >$@
212:
213: gforth.texi: gforth.ds primitives.b ds2texi.fs prims2x.fs
1.4 pazsan 214: $(FORTH) ds2texi.fs >$@
1.1 pazsan 215:
216: gforth.dvi: gforth.texi
1.9 anton 217: $(TEXI2DVI) gforth.texi
1.5 anton 218:
219: gforth.ps: gforth.dvi
1.9 anton 220: $(DVI2PS) gforth.dvi -o $@
1.11 anton 221:
222: gforth.info: gforth.texi
223: -$(MAKEINFO) gforth.texi
1.15 anton 224:
225: html: gforth.texi
226: -$(RM) html/*
227: -mkdir html
228: cd html; $(TEXI2HTML) -menu -split_node ../gforth.texi
1.1 pazsan 229:
1.9 anton 230: # For an explanation of the following Makefile rules, see node
231: # `Automatic Remaking' in GNU Autoconf documentation.
232: Makefile: Makefile.in config.status
233: CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
234: config.status: configure
235: ./config.status --recheck
236: configure: configure.in
237: cd $(srcdir) && autoconf
238:
239: #unnecessary and does not work with all makes
240: #%.s : %.c $(INCLUDES)
241: # $(CC) $(CFLAGS) -S $< -o $@
1.1 pazsan 242:
1.9 anton 243: #%.o : %.s
244: # $(CC) $(CFLAGS) -c $< -o $@
1.1 pazsan 245:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>