[gforth] / gforth / Makefile.in  

gforth: gforth/Makefile.in


1 : pazsan 1.1 #Copyright 1992 by the ANSI figForth Development Group
2 : anton 1.9 # 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.
6 : pazsan 1.1
7 : anton 1.9 #To do:
8 :     #use $(srcdir) to make compilation in a non-srcdir possible
9 :    
10 :     VERSION =0.1alpha#gforth version
11 :     SHELL = /bin/sh
12 : pazsan 1.4 RM = rm
13 :     CP = cp
14 : anton 1.9 INSTALL = @INSTALL@
15 :     INSTALL_PROGRAM = @INSTALL_PROGRAM@
16 :     INSTALL_DATA = @INSTALL_DATA@
17 :     LN_S = @LN_S@
18 : pazsan 1.1 GCC = gcc
19 : anton 1.23 CC = $(GCC)
20 : anton 1.9 FORTH = ./gforth
21 : anton 1.22 STRIP = strip
22 : anton 1.9 TEXI2DVI = tex
23 :     DVI2PS = dvips
24 : anton 1.15 #you can get texi2html from http://asis01.cern.ch/infohtml/texi2html.html
25 :     TEXI2HTML = texi2html
26 : anton 1.11 MAKEINFO = makeinfo
27 : anton 1.9 XCFLAGS = @CFLAGS@
28 :     XDEFINES = @DEFS@
29 : anton 1.12 SWITCHES = $(XCFLAGS) $(XDEFINES) #-DNDEBUG #turn off assertions
30 : pazsan 1.17 ENGINE_FLAGS = -fno-defer-pop -fcaller-saves
31 : anton 1.27 CFLAGS = @DEBUGFLAG@ -O4 -Wall $(SWITCHES) -DDEFAULTPATH=\"$(datadir)/gforth/$(VERSION):$(libdir)/gforth/$(VERSION):.\"
32 : pazsan 1.1
33 :     #John Wavrik should use -Xlinker -N to get a writable text (executable)
34 : pazsan 1.17 LDFLAGS = @DEBUGFLAG@ @LDFLAGS@ @GCCLDFLAGS@
35 : anton 1.9 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
47 : pazsan 1.1
48 :    
49 :     INCLUDES = forth.h io.h
50 :    
51 : anton 1.21 FORTH_SRC = anslocal.fs add.fs assert.fs ansi.fs blocks.fs bufio.fs checkans.fs \
52 : pazsan 1.6 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 \
55 : anton 1.21 kernal.fs locals-test.fs look.fs main.fs makedoc.fs \
56 : pazsan 1.13 mach16b.fs mach16l.fs mach32b.fs mach32l.fs mach64b.fs mach64l.fs \
57 : pazsan 1.6 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 \
59 : anton 1.21 vt100key.fs wordinfo.fs wordsets.fs \
60 :     tester.fs coretest.fs
61 : pazsan 1.1
62 : pazsan 1.17 SOURCES = Makefile.in configure.in configure config.sub config.guess \
63 : anton 1.19 install-sh INSTALL README ToDo BUGS model COPYING \
64 : pazsan 1.28 gforth.ds texinfo.tex gforth.1 gforth.el \
65 : pazsan 1.6 primitives engine.c main.c io.c \
66 : pazsan 1.17 m68k.h mips.h 386.h hppa.h cache.c sparc.h power.h alpha.h 32bit.h \
67 : anton 1.14 getopt.c getopt1.c getopt.h select.c \
68 : anton 1.24 ecvt.c memcmp.c strtol.c strtoul.c ansidecl.h memmove.c pow10.c \
69 : anton 1.25 strerror.c \
70 : pazsan 1.17 makefile.dos configure.bat startup.dos \
71 : pazsan 1.6 glosgen.glo glossaries.doc \
72 : pazsan 1.1 $(INCLUDES) $(FORTH_SRC)
73 :    
74 : anton 1.5 RCS_FILES = ToDo model high-level
75 : pazsan 1.1
76 :     GEN = gforth
77 :    
78 : anton 1.9 OBJECTS = engine.o io.o main.o @LIBOBJS@ @getopt_long@
79 : pazsan 1.1
80 :     # things that need a working forth system to be generated
81 : anton 1.15 FORTH_GEN0 = primitives.b primitives.i prim_labels.i aliases.fs
82 :     FORTH_GEN = $(FORTH_GEN0) @KERNAL@
83 : pazsan 1.1 # this is used for antidependences,
84 : anton 1.15 FORTH_GEN1 = $(FORTH_GEN0) @gforth_fi@
85 : anton 1.5
86 :    
87 : anton 1.9 GEN_PRECIOUS = $(FORTH_GEN) gforth.texi gforth.dvi gforth.ps Makefile configure
88 : pazsan 1.1
89 : anton 1.9 #standards.info recommends this:
90 :     .SUFFIXES:
91 :     .SUFFIXES: .c .o
92 :    
93 : pazsan 1.2 all:
94 : pazsan 1.7 if [ ! -f gforth ]; then $(MAKE) first; fi
95 : pazsan 1.2 $(MAKE) more
96 : pazsan 1.1
97 : pazsan 1.2 first: gforth
98 :    
99 : pazsan 1.3 more: $(FORTH_GEN) gforth
100 : pazsan 1.2
101 : pazsan 1.1 #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:
113 : pazsan 1.4 -$(RM) $(GEN) *.o *.s
114 : pazsan 1.1
115 :     distclean: clean
116 : anton 1.9 -$(RM) machine.h gforth.fi config.cache config.log
117 : pazsan 1.1
118 :     realclean: distclean
119 : pazsan 1.4 -$(RM) $(GEN_PRECIOUS)
120 : pazsan 1.1
121 : anton 1.9 dist: $(SOURCES) $(FORTH_GEN)
122 : anton 1.21 -rm -rf gforth-$(VERSION)
123 :     mkdir gforth-$(VERSION)
124 : anton 1.22 cp -p $(SOURCES) $(FORTH_GEN) gforth-$(VERSION)
125 : anton 1.21 tar cvf - gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).tar.gz
126 : pazsan 1.1
127 : anton 1.22 #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 :    
153 : anton 1.15 #strip gforth, because the debugging stuff is hardly useful once
154 :     # gforth manages to execute more than a few primitives
155 :    
156 : anton 1.9 install: gforth $(FORTH_SRC) gforth.fi gforth.1 gforth.info
157 : anton 1.27 $(INSTALL) -d $(bindir) $(mandir) $(infodir) $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION)
158 : anton 1.15 $(INSTALL_PROGRAM) -s gforth $(bindir)
159 : anton 1.9 $(INSTALL_DATA) gforth.1 $(mandir)
160 : anton 1.11 $(INSTALL_DATA) gforth.info* $(infodir)
161 : anton 1.27 $(INSTALL_DATA) gforth.fi $(libdir)/gforth/$(VERSION)
162 : anton 1.9 for i in $(FORTH_SRC); do \
163 : anton 1.27 $(INSTALL_DATA) $$i $(datadir)/gforth/$(VERSION); \
164 : anton 1.9 done
165 : anton 1.26
166 :     check: test
167 : anton 1.9
168 : anton 1.21 test: gforth
169 :     @echo 'Expect to see INCORRECT RESULT: { GS1 -> <TRUE> <TRUE> }'
170 :     @echo 'This is a bug of the testing program'
171 :     $(FORTH) tester.fs coretest.fs -e bye
172 :     $(FORTH) startup.fs blocks.fs checkans.fs -e bye
173 :     @echo 'Expect no differences'
174 :     $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-c process-file bye"| diff -c - primitives.i
175 :    
176 : anton 1.9 dvi: gforth.dvi
177 : anton 1.5
178 : anton 1.21 gforth: $(OBJECTS)
179 : pazsan 1.4 -$(CP) gforth gforth~
180 : pazsan 1.1 $(GCC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $@
181 : anton 1.9 @MAKE_EXE@
182 : pazsan 1.1
183 : pazsan 1.13 kernl16l.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
184 : anton 1.27 errore.fs kernal.fs version.fs extend.fs tools.fs toolsext.fs \
185 : anton 1.15 mach16l.fs $(FORTH_GEN1)
186 : pazsan 1.13 -$(CP) kernl16l.fi kernl16l.fi~
187 :     $(FORTH) -e 's" mach16l.fs"' main.fs
188 :     @LINK_KERNL16L@
189 :    
190 :     kernl16b.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
191 : anton 1.27 errore.fs kernal.fs version.fs extend.fs tools.fs toolsext.fs \
192 : anton 1.15 mach16b.fs $(FORTH_GEN1)
193 : pazsan 1.13 -$(CP) kernl16b.fi kernl16b.fi~
194 :     $(FORTH) -e 's" mach16b.fs"' main.fs
195 :     @LINK_KERNL16B@
196 :    
197 : pazsan 1.1 kernl32l.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
198 : anton 1.27 errore.fs kernal.fs version.fs extend.fs tools.fs toolsext.fs \
199 : anton 1.15 mach32l.fs $(FORTH_GEN1)
200 : pazsan 1.4 -$(CP) kernl32l.fi kernl32l.fi~
201 : pazsan 1.1 $(FORTH) -e 's" mach32l.fs"' main.fs
202 : anton 1.9 @LINK_KERNL32L@
203 : pazsan 1.1
204 :     kernl32b.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
205 : anton 1.27 errore.fs kernal.fs version.fs extend.fs tools.fs toolsext.fs \
206 : anton 1.15 mach32b.fs $(FORTH_GEN1)
207 : pazsan 1.4 -$(CP) kernl32b.fi kernl32b.fi~
208 : pazsan 1.1 $(FORTH) -e 's" mach32b.fs"' main.fs
209 : anton 1.9 @LINK_KERNL32B@
210 : pazsan 1.13
211 :     kernl64l.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
212 : anton 1.27 errore.fs kernal.fs version.fs extend.fs tools.fs toolsext.fs \
213 : anton 1.15 mach64l.fs $(FORTH_GEN1)
214 : pazsan 1.13 -$(CP) kernl64l.fi kernl64l.fi~
215 :     $(FORTH) -e 's" mach64l.fs"' main.fs
216 :     @LINK_KERNL64L@
217 :    
218 :     kernl64b.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
219 : anton 1.27 errore.fs kernal.fs version.fs extend.fs tools.fs toolsext.fs \
220 : anton 1.15 mach64b.fs $(FORTH_GEN1)
221 : pazsan 1.13 -$(CP) kernl64b.fi kernl64b.fi~
222 :     $(FORTH) -e 's" mach64b.fs"' main.fs
223 :     @LINK_KERNL64B@
224 : pazsan 1.1
225 :     engine.s: engine.c primitives.i prim_labels.i machine.h $(INCLUDES)
226 : anton 1.9 $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -S engine.c
227 : pazsan 1.1
228 :     engine.o: engine.c primitives.i prim_labels.i machine.h $(INCLUDES)
229 : anton 1.9 $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -c engine.c
230 :    
231 :     strtoul.o: strtoul.c strtol.c
232 : pazsan 1.1
233 :     primitives.b: primitives
234 :     m4 primitives >$@
235 :    
236 :     primitives.i : primitives.b prims2x.fs
237 :     $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-c process-file bye" >$@
238 :    
239 :     prim_labels.i : primitives.b prims2x.fs
240 :     $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-label process-file bye" >$@
241 :    
242 :     aliases.fs: primitives.b prims2x.fs
243 :     $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-alias process-file bye" >$@
244 :    
245 :     primitives.fs: primitives.b prims2x.fs
246 :     $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-forth process-file bye" >$@
247 : anton 1.27
248 :     version.fs: Makefile.in
249 :     echo ": version-string s\" $(VERSION)\" ;" >$@
250 :    
251 :     version.c: Makefile.in
252 :     echo "char gforth_version[]=\"$(VERSION)\" ;" >$@
253 :    
254 : pazsan 1.1
255 : pazsan 1.28 doc.fd: makedoc.fs float.fs search-order.fs glocals.fs environ.fs \
256 : anton 1.20 toolsext.fs wordinfo.fs \
257 :     vt100.fs colorize.fs see.fs bufio.fs debug.fs history.fs \
258 :     doskey.fs vt100key.fs startup.fs assert.fs debugging.fs
259 : pazsan 1.28 $(FORTH) -e "s\" doc.fd\"" makedoc.fs startup.fs -e bye
260 : anton 1.20
261 : pazsan 1.28 gforth.texi: gforth.ds primitives.b ds2texi.fs prims2x.fs doc.fd crossdoc.fd
262 : pazsan 1.4 $(FORTH) ds2texi.fs >$@
263 : pazsan 1.1
264 :     gforth.dvi: gforth.texi
265 : anton 1.9 $(TEXI2DVI) gforth.texi
266 : anton 1.5
267 :     gforth.ps: gforth.dvi
268 : anton 1.9 $(DVI2PS) gforth.dvi -o $@
269 : anton 1.11
270 :     gforth.info: gforth.texi
271 :     -$(MAKEINFO) gforth.texi
272 : anton 1.15
273 :     html: gforth.texi
274 :     -$(RM) html/*
275 :     -mkdir html
276 :     cd html; $(TEXI2HTML) -menu -split_node ../gforth.texi
277 : pazsan 1.1
278 : anton 1.9 # For an explanation of the following Makefile rules, see node
279 :     # `Automatic Remaking' in GNU Autoconf documentation.
280 :     Makefile: Makefile.in config.status
281 :     CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
282 :     config.status: configure
283 :     ./config.status --recheck
284 :     configure: configure.in
285 :     cd $(srcdir) && autoconf

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help