[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.9 FORTH = ./gforth
20 : pazsan 1.1 CC = gcc
21 : anton 1.9 TEXI2DVI = tex
22 :     DVI2PS = dvips
23 : anton 1.11 MAKEINFO = makeinfo
24 : anton 1.9 XCFLAGS = @CFLAGS@
25 :     XDEFINES = @DEFS@
26 :     SWITCHES = $(XCFLAGS) $(XDEFINES) -D_POSIX_VERSION#-DNDEBUG #turn off assertions
27 : pazsan 1.10 ENGINE_FLAGS = -fforce-mem -fforce-addr -fomit-frame-pointer -fno-defer-pop -fcaller-saves
28 : anton 1.9 CFLAGS = -g -O4 -Wall $(SWITCHES)
29 : pazsan 1.1
30 :     #-Xlinker -n puts text and data into the same 256M region
31 :     #John Wavrik should use -Xlinker -N to get a writable text (executable)
32 : anton 1.9 LDFLAGS = -Xlinker -N @LDFLAGS@
33 :     LDLIBS = @LIBS@
34 :    
35 :     prefix = @prefix@
36 :     exec_prefix = @exec_prefix@
37 :     srcdir = @srcdir@
38 :     bindir = $(exec_prefix)/bin
39 :     #read-only architecture-independent files
40 :     datadir = $(prefix)/share
41 :     #read-only architecture-dependent non-ascii files
42 :     libdir = $(prefix)/lib
43 :     infodir = $(prefix)/info
44 :     mandir = $(prefix)/man/man1
45 : pazsan 1.1
46 :    
47 :     INCLUDES = forth.h io.h
48 :    
49 : pazsan 1.6 FORTH_SRC = add.fs assert.fs ansi.fs blocks.fs bufio.fs checkans.fs \
50 :     colorize.fs cross.fs debug.fs debugging.fs doskey.fs ds2texi.fs \
51 :     dumpimage.fs environ.fs errore.fs etags.fs extend.fs filedump.fs \
52 :     float.fs glocals.fs glosgen.fs gray.fs hash.fs history.fs \
53 :     kernal.fs locals-test.fs look.fs mach32b.fs mach32l.fs main.fs \
54 :     other.fs prims2x.fs random.fs search-order.fs see.fs sieve.fs \
55 :     startup.fs struct.fs tools.fs toolsext.fs tt.fs vars.fs vt100.fs \
56 :     vt100key.fs wordinfo.fs wordsets.fs
57 : pazsan 1.1
58 : pazsan 1.10 SOURCES = Makefile.in configure.in configure config.sub config.guess \
59 : anton 1.5 INSTALL README ToDo BUGS model gforth.ds \
60 : pazsan 1.6 primitives engine.c main.c io.c \
61 : anton 1.9 m68k.h mips.h 386.h hppa.h cache.c sparc.h 32bit.h \
62 : anton 1.5 getopt.c getopt1.c getopt.h \
63 : anton 1.9 ecvt.c memcmp.c strtol.c strtoul.c memmove.c \
64 : pazsan 1.7 makefile.dos io-dos.h configure.bat startup.dos \
65 : pazsan 1.6 glosgen.glo glossaries.doc \
66 : pazsan 1.1 $(INCLUDES) $(FORTH_SRC)
67 :    
68 : anton 1.5 RCS_FILES = ToDo model high-level
69 : pazsan 1.1
70 :     GEN = gforth
71 :    
72 : anton 1.9 OBJECTS = engine.o io.o main.o @LIBOBJS@ @getopt_long@
73 : pazsan 1.1
74 :     # things that need a working forth system to be generated
75 :     # this is used for antidependences,
76 : anton 1.5
77 : pazsan 1.10 FORTH_GEN = primitives.b primitives.i prim_labels.i aliases.fs @KERNAL@
78 : anton 1.5
79 : anton 1.9 GEN_PRECIOUS = $(FORTH_GEN) gforth.texi gforth.dvi gforth.ps Makefile configure
80 : pazsan 1.1
81 : anton 1.9 #standards.info recommends this:
82 :     .SUFFIXES:
83 :     .SUFFIXES: .c .o
84 :    
85 : pazsan 1.2 all:
86 : pazsan 1.7 if [ ! -f gforth ]; then $(MAKE) first; fi
87 : pazsan 1.2 $(MAKE) more
88 : pazsan 1.1
89 : pazsan 1.2 first: gforth
90 :    
91 : pazsan 1.3 more: $(FORTH_GEN) gforth
92 : pazsan 1.2
93 : pazsan 1.1 #from the gcc Makefile:
94 :     #"Deletion of files made during compilation.
95 :     # There are four levels of this:
96 :     # `mostlyclean', `clean', `distclean' and `realclean'.
97 :     # `mostlyclean' is useful while working on a particular type of machine.
98 :     # It deletes most, but not all, of the files made by compilation.
99 :     # It does not delete libgcc.a or its parts, so it won't have to be recompiled.
100 :     # `clean' deletes everything made by running `make all'.
101 :     # `distclean' also deletes the files made by config.
102 :     # `realclean' also deletes everything that could be regenerated automatically."
103 :    
104 :     clean:
105 : pazsan 1.4 -$(RM) $(GEN) *.o *.s
106 : pazsan 1.1
107 :     distclean: clean
108 : anton 1.9 -$(RM) machine.h gforth.fi config.cache config.log
109 : pazsan 1.1
110 :     realclean: distclean
111 : pazsan 1.4 -$(RM) $(GEN_PRECIOUS)
112 : pazsan 1.1
113 : anton 1.9 dist: $(SOURCES) $(FORTH_GEN)
114 : pazsan 1.10 -rm gforth-$(VERSION)
115 :     ln -s `pwd` gforth-$(VERSION)
116 : pazsan 1.6 echo "" $(SOURCES) $(FORTH_GEN) |\
117 :     sed -e 's| | gforth-$(VERSION)/|g' |\
118 : pazsan 1.10 xargs tar cvf gforth-$(VERSION).tar
119 : anton 1.5 gzip -9 -f gforth-$(VERSION).tar
120 : pazsan 1.10 -rm gforth-$(VERSION)
121 : pazsan 1.1
122 : anton 1.9 install: gforth $(FORTH_SRC) gforth.fi gforth.1 gforth.info
123 :     $(INSTALL) -d $(bindir) $(mandir) $(infodir) $(libdir)/gforth $(datadir)/gforth
124 :     $(INSTALL_PROGRAM) gforth $(bindir)
125 :     $(INSTALL_DATA) gforth.1 $(mandir)
126 : anton 1.11 $(INSTALL_DATA) gforth.info* $(infodir)
127 : anton 1.9 $(INSTALL_DATA) gforth.fi $(libdir)/gforth
128 :     for i in $(FORTH_SRC); do \
129 :     $(CP) $$i $(datadir)/gforth; \
130 :     $(LN_S) $(datadir)/gforth/$$i $(libdir)/gforth \
131 :     done
132 :    
133 :     dvi: gforth.dvi
134 : anton 1.5
135 : pazsan 1.2 gforth: $(OBJECTS)
136 : pazsan 1.4 -$(CP) gforth gforth~
137 : pazsan 1.1 $(GCC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $@
138 : anton 1.9 @MAKE_EXE@
139 : pazsan 1.1
140 :     kernl32l.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
141 :     errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
142 :     mach32l.fs $(FORTH_GEN)
143 : pazsan 1.4 -$(CP) kernl32l.fi kernl32l.fi~
144 : pazsan 1.1 $(FORTH) -e 's" mach32l.fs"' main.fs
145 : anton 1.9 @LINK_KERNL32L@
146 : pazsan 1.1
147 :     kernl32b.fi: main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
148 :     errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
149 :     mach32b.fs $(FORTH_GEN)
150 : pazsan 1.4 -$(CP) kernl32b.fi kernl32b.fi~
151 : pazsan 1.1 $(FORTH) -e 's" mach32b.fs"' main.fs
152 : anton 1.9 @LINK_KERNL32B@
153 : pazsan 1.1
154 :     engine.s: engine.c primitives.i prim_labels.i machine.h $(INCLUDES)
155 : anton 1.9 $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -S engine.c
156 : pazsan 1.1
157 :     engine.o: engine.c primitives.i prim_labels.i machine.h $(INCLUDES)
158 : anton 1.9 $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -c engine.c
159 :    
160 :     strtoul.o: strtoul.c strtol.c
161 : pazsan 1.1
162 :     primitives.b: primitives
163 :     m4 primitives >$@
164 :    
165 :     primitives.i : primitives.b prims2x.fs
166 :     $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-c process-file bye" >$@
167 :    
168 :     prim_labels.i : primitives.b prims2x.fs
169 :     $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-label process-file bye" >$@
170 :    
171 :     aliases.fs: primitives.b prims2x.fs
172 :     $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-alias process-file bye" >$@
173 :    
174 :     primitives.fs: primitives.b prims2x.fs
175 :     $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-forth process-file bye" >$@
176 :    
177 :     gforth.texi: gforth.ds primitives.b ds2texi.fs prims2x.fs
178 : pazsan 1.4 $(FORTH) ds2texi.fs >$@
179 : pazsan 1.1
180 :     gforth.dvi: gforth.texi
181 : anton 1.9 $(TEXI2DVI) gforth.texi
182 : anton 1.5
183 :     gforth.ps: gforth.dvi
184 : anton 1.9 $(DVI2PS) gforth.dvi -o $@
185 : anton 1.11
186 :     gforth.info: gforth.texi
187 :     -$(MAKEINFO) gforth.texi
188 : pazsan 1.1
189 : anton 1.9 # For an explanation of the following Makefile rules, see node
190 :     # `Automatic Remaking' in GNU Autoconf documentation.
191 :     Makefile: Makefile.in config.status
192 :     CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
193 :     config.status: configure
194 :     ./config.status --recheck
195 :     configure: configure.in
196 :     cd $(srcdir) && autoconf
197 :    
198 :     #unnecessary and does not work with all makes
199 :     #%.s : %.c $(INCLUDES)
200 :     # $(CC) $(CFLAGS) -S $< -o $@
201 : pazsan 1.1
202 : anton 1.9 #%.o : %.s
203 :     # $(CC) $(CFLAGS) -c $< -o $@
204 : pazsan 1.1

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help