[gforth] / gforth / engine / Makefile.in  

gforth: gforth/engine/Makefile.in


1 : anton 1.6 #Makefile for the C part of Gforth
2 : anton 1.1
3 : anton 1.66 #Copyright (C) 1995,1996,1997,1998,2000,2003,2006,2007 Free Software Foundation, Inc.
4 : anton 1.1
5 :     #This file is part of Gforth.
6 :    
7 :     #Gforth is free software; you can redistribute it and/or
8 :     #modify it under the terms of the GNU General Public License
9 : anton 1.67 #as published by the Free Software Foundation, either version 3
10 : anton 1.1 #of the License, or (at your option) any later version.
11 :    
12 :     #This program is distributed in the hope that it will be useful,
13 :     #but WITHOUT ANY WARRANTY; without even the implied warranty of
14 :     #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.#See the
15 :     #GNU General Public License for more details.
16 :    
17 :     #You should have received a copy of the GNU General Public License
18 : anton 1.67 #along with this program. If not, see http://www.gnu.org/licenses/.
19 : anton 1.1
20 : jwilke 1.4 # ------------- gforth version
21 :    
22 : anton 1.41 VERSION =@PACKAGE_VERSION@
23 : anton 1.6 DOSVERSION=`echo $VERSION|sed 's/\.//g'`
24 : anton 1.49 EXE=@EXEEXT@
25 : jwilke 1.4
26 :     # ------------- System specific variables
27 :    
28 : anton 1.6 machine=@machine@
29 : pazsan 1.60 kernel_fi = @kernel_fi@
30 :     include_fi = @include_fi@
31 : jwilke 1.4 # this is the type of machine
32 :     # used to extend the include path with ./arch/$machine
33 :     # so we could include a machine specific
34 :     # machine.h file
35 :    
36 :     PATHSEP = @PATHSEP@
37 :    
38 :     osclass = @OSCLASS@
39 :    
40 : pazsan 1.60 EC = @EC@
41 :    
42 : jwilke 1.4 # ------------- Utility programs
43 : jwilke 1.3
44 : anton 1.1 SHELL = /bin/sh
45 :     RM = rm
46 :     RMTREE = rm -rf
47 : pazsan 1.19 CP = cp -p
48 : anton 1.1 TAR = tar cf -
49 :     GCC = @CC@
50 : pazsan 1.72 BOOTFORTH = @GFORTH@
51 : anton 1.1 CC = $(GCC)
52 : pazsan 1.63 LD = $(GCC:gcc=ld)
53 : pazsan 1.64 AS = $(GCC:gcc=as)
54 : anton 1.1 STRIP = strip
55 : pazsan 1.63 GCCLD = @GCC_LD@
56 : jwilke 1.3
57 : anton 1.24 FORTHPATH = .$(PATHSEP)$(libdir)/gforth/site-forth$(PATHSEP)$(datadir)/gforth/site-forth$(PATHSEP)$(libdir)/gforth/$(VERSION)$(PATHSEP)$(datadir)/gforth/$(VERSION)
58 : pazsan 1.5
59 :     # ------------ Install Directorys
60 :    
61 :     VPATH = @srcdir@
62 :     prefix = @prefix@
63 :     exec_prefix = @exec_prefix@
64 :     srcdir = @srcdir@
65 :     bindir = $(exec_prefix)/bin
66 :     #read-only architecture-independent files
67 :     datadir = $(prefix)/share
68 :     #read-only architecture-dependent non-ascii files
69 :     libdir = $(prefix)/lib
70 :     infodir = $(prefix)/info
71 :     mandir = $(prefix)/man
72 :     man1dir= $(mandir)/man1
73 :     man1ext= .1
74 : jwilke 1.4
75 :     # ------------- Compiler Flags
76 : jwilke 1.3
77 : anton 1.1 XCFLAGS = @CFLAGS@
78 :     XDEFINES = @DEFS@
79 : anton 1.68 SWITCHES = $(XCFLAGS) $(XDEFINES) $(OPTDEFINES)
80 : anton 1.54 #use -fno-inline to avoid register problems with asinh, atanh on gcc-3.3 on 386
81 :     ENGINE_FLAGS = @ENGINE_FLAGS@ -fno-defer-pop -fcaller-saves -fno-inline
82 : anton 1.1 DEBUGFLAG = @DEBUGFLAG@
83 : anton 1.55 CFLAGS = $(DEBUGFLAG) -I$(srcdir)/../arch/$(machine) -I. -Wall $(SWITCHES) -DDEFAULTPATH='"$(FORTHPATH)"'
84 :     CFLAGS2 = $(DEBUGFLAG) -I$(srcdir)/../arch/$(machine) -I. -Wall $(SWITCHES) -DDEFAULTPATH='"$(FORTHPATH)"'
85 : pazsan 1.17 FORTHKFLAGS= --die-on-signal -p "..$(PATHSEP)$(srcdir)" -i ../$(kernel_fi)
86 : pazsan 1.11 FORTHK = ../gforth $(FORTHKFLAGS)
87 : pazsan 1.72 FORTH = $(BOOTFORTH) --die-on-signal
88 : jwilke 1.4
89 :     #John Wavrik should use -Xlinker -N to get a writable text (executable)
90 :     XLDFLAGS = @LDFLAGS@
91 : anton 1.8 LDFLAGS = $(DEBUGFLAG) $(XLDFLAGS)
92 : jwilke 1.4 LDLIBS = @LIBS@
93 : jwilke 1.3
94 : anton 1.70 AOBJECTS = @signals_o@ support$(OPT).o @LIBOBJS@ $(OPTOBJECTS)
95 : anton 1.1
96 : pazsan 1.64 @MAKEINC@
97 :    
98 : anton 1.68 OBJECTS = engine$(OPT).o @engine2@ main$(OPT).o
99 :     OBJECTS_NATIVE = engine-native$(OPT).o engine-native2$(OPT).o engine-native3$(OPT).o main-native$(OPT).o
100 :     OBJECTS_FAST = engine-fast$(OPT).o @engine_fast2@ main-fast$(OPT).o
101 :     OBJECTS_ITC = engine-itc$(OPT).o main-itc$(OPT).o
102 :     OBJECTS_DITC = engine-ditc$(OPT).o main-ditc$(OPT).o
103 :     OBJECTS_PROF = engine-prof$(OPT).o main-prof$(OPT).o
104 :     OBJECTS_FI = engine$(OPT).o main-fi$(OPT).o
105 : jwilke 1.3
106 :     # In engine subdirectory there are (or should be) only files that belong to
107 :     # our engine, so we can make life easy
108 : anton 1.65 DEPS = config.h forth.h io.h $(srcdir)/../arch/$(machine)/*.[h]
109 :     ENGINE_DEPS = engine.c $(DEPS) prim_lab.i prim.i @image_i@ fnmatch.h threaded.h
110 : anton 1.52 MAIN_DEPS = main.c $(DEPS) prim_superend.i prim_num.i prim_grp.i costs.i super2.i
111 : anton 1.65 ENGINE_FAST_DEPS = engine.c $(DEPS) prim_lab-fast.i prim-fast.i fnmatch.h threaded.h
112 : anton 1.56 MAIN_FAST_DEPS = main.c $(DEPS) prim_superend-fast.i prim_num-fast.i prim_grp-fast.i costs-fast.i super2-fast.i
113 : anton 1.1
114 : anton 1.16 #some makes don't do the -o $@ correctly, so we help them
115 :     .c.o:
116 :     $(GCC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
117 :    
118 : pazsan 1.64 .s.o:
119 :     $(GCC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
120 :    
121 : anton 1.68 support$(OPT).o: support.c config.h forth.h longlong.h
122 :     $(GCC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
123 : anton 1.48
124 : anton 1.65 strtol.o: strtol.c ansidecl.h
125 :    
126 :     fnmatch.o: fnmatch.c fnmatch.h
127 :    
128 :     getopt1.o: getopt1.c getopt.h
129 :    
130 :     getopt.o: getopt.c getopt.h
131 :    
132 : anton 1.68 gforth$(OPT)$(EC)$(EXE): $(OBJECTS) $(AOBJECTS)
133 : pazsan 1.63 $(GCCLD) $(LDFLAGS) $(OBJECTS) $(AOBJECTS) $(LDLIBS) -o $@
134 : anton 1.1
135 : anton 1.68 gforth-native$(OPT)$(EC)$(EXE): $(OBJECTS_NATIVE) $(AOBJECTS)
136 : pazsan 1.63 $(GCCLD) $(LDFLAGS) $(OBJECTS_NATIVE) $(AOBJECTS) $(LDLIBS) -o $@
137 : anton 1.37
138 : anton 1.68 gforth-fast$(OPT)$(EC)$(EXE): $(OBJECTS_FAST) $(AOBJECTS)
139 : pazsan 1.63 $(GCCLD) $(LDFLAGS) $(OBJECTS_FAST) $(AOBJECTS) $(LDLIBS) -o $@
140 : anton 1.18
141 : anton 1.68 gforth-itc$(OPT)$(EC)$(EXE): $(OBJECTS_ITC) $(AOBJECTS)
142 : pazsan 1.63 $(GCCLD) $(LDFLAGS) $(OBJECTS_ITC) $(AOBJECTS) $(LDLIBS) -o $@
143 : anton 1.34
144 : anton 1.68 gforth-ditc$(OPT)$(EC)$(EXE): $(OBJECTS_DITC) $(AOBJECTS)
145 : pazsan 1.63 $(GCCLD) $(LDFLAGS) $(OBJECTS_DITC) $(AOBJECTS) $(LDLIBS) -o $@
146 : jwilke 1.3
147 : anton 1.68 gforth-prof$(OPT)$(EC)$(EXE): $(OBJECTS_PROF) $(AOBJECTS) profile$(OPT).o
148 :     $(GCCLD) $(LDFLAGS) $(OBJECTS_PROF) $(AOBJECTS) profile$(OPT).o $(LDLIBS) -o $@
149 : anton 1.29
150 : anton 1.68 gforth-fi$(OPT)$(EC)$(EXE): $(OBJECTS_FI) $(AOBJECTS)
151 : pazsan 1.63 $(GCCLD) $(LDFLAGS) $(OBJECTS_FI) $(AOBJECTS) $(LDLIBS) -o $@
152 : pazsan 1.11
153 : anton 1.56 engine.s: $(ENGINE_FAST_DEPS)
154 : anton 1.50 $(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -S $(srcdir)/engine.c
155 : jwilke 1.3
156 : anton 1.68 engine$(OPT).o: $(ENGINE_DEPS)
157 : anton 1.50 $(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DGFORTH_DEBUGGING -o $@ -c $(srcdir)/engine.c
158 : anton 1.40
159 : anton 1.68 engine2$(OPT).o: $(ENGINE_DEPS)
160 : anton 1.50 $(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DGFORTH_DEBUGGING -DENGINE=2 -o $@ -c $(srcdir)/engine.c
161 : anton 1.18
162 : anton 1.68 engine-native$(OPT).o:$(ENGINE_FAST_DEPS)
163 : anton 1.50 $(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DNO_IP -o $@ -c $(srcdir)/engine.c
164 : anton 1.40
165 : anton 1.68 engine-native2$(OPT).o:$(ENGINE_FAST_DEPS)
166 : anton 1.50 $(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DNO_IP -DENGINE=2 -o $@ -c $(srcdir)/engine.c
167 : anton 1.40
168 : anton 1.68 engine-native3$(OPT).o:$(ENGINE_FAST_DEPS)
169 : anton 1.50 $(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DNO_IP -DENGINE=3 -o $@ -c $(srcdir)/engine.c
170 : anton 1.37
171 : anton 1.68 engine-fast$(OPT).o: $(ENGINE_FAST_DEPS)
172 : anton 1.50 $(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -o $@ -c $(srcdir)/engine.c
173 : anton 1.40
174 : anton 1.68 engine-fast2$(OPT).o: $(ENGINE_FAST_DEPS)
175 : anton 1.50 $(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DENGINE=2 -o $@ -c $(srcdir)/engine.c
176 : anton 1.34
177 : anton 1.68 engine-itc$(OPT).o: $(ENGINE_DEPS)
178 : anton 1.50 $(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DINDIRECT_THREADED -DGFORTH_DEBUGGING -o $@ -c $(srcdir)/engine.c
179 : jwilke 1.3
180 : anton 1.68 engine-ditc$(OPT).o: $(ENGINE_DEPS)
181 : anton 1.50 $(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DDOUBLY_INDIRECT -o $@ -c $(srcdir)/engine.c
182 : jwilke 1.3
183 : anton 1.68 engine-prof$(OPT).o: $(ENGINE_DEPS)
184 : anton 1.50 $(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DVM_PROFILING -o $@ -c $(srcdir)/engine.c
185 : anton 1.29
186 : anton 1.68 main$(OPT).o: $(MAIN_DEPS)
187 : pazsan 1.60 $(GCC) $(CFLAGS) -DGFORTH_DEBUGGING @no_dynamic@ -o $@ -c $(srcdir)/main.c
188 : anton 1.37
189 : anton 1.68 main-native$(OPT).o: $(MAIN_FAST_DEPS)
190 : anton 1.50 $(GCC) $(CFLAGS) -DNO_IP -o $@ -c $(srcdir)/main.c
191 : anton 1.18
192 : anton 1.68 main-fast$(OPT).o: $(MAIN_FAST_DEPS)
193 : anton 1.50 $(GCC) $(CFLAGS) -o $@ -c $(srcdir)/main.c
194 : anton 1.34
195 : anton 1.68 main-itc$(OPT).o: $(MAIN_DEPS)
196 : anton 1.50 $(GCC) $(CFLAGS) -DINDIRECT_THREADED -DGFORTH_DEBUGGING -o $@ -c $(srcdir)/main.c
197 : jwilke 1.3
198 : anton 1.68 main-ditc$(OPT).o: $(MAIN_DEPS)
199 : anton 1.50 $(GCC) $(CFLAGS) -DDOUBLY_INDIRECT -o $@ -c $(srcdir)/main.c
200 : jwilke 1.3
201 : anton 1.68 main-prof$(OPT).o: $(MAIN_DEPS)
202 : anton 1.50 $(GCC) $(CFLAGS) -DVM_PROFILING -o $@ -c $(srcdir)/main.c
203 : anton 1.29
204 : anton 1.68 main-fi$(OPT).o: $(MAIN_DEPS)
205 : anton 1.50 $(GCC) $(CFLAGS) -DINCLUDE_IMAGE -o $@ -c $(srcdir)/main.c
206 : pazsan 1.11
207 : anton 1.68 peephole$(OPT).o: peephole.c peephole.i $(DEPS)
208 : anton 1.50 $(GCC) $(CFLAGS) -o $@ -c $(srcdir)/peephole.c
209 : anton 1.29
210 : anton 1.68 profile$(OPT).o: profile.c profile.i $(DEPS)
211 : anton 1.50 $(GCC) $(CFLAGS) -o $@ -c $(srcdir)/profile.c
212 : jwilke 1.3
213 : anton 1.28 #The next two rules seem to be superfluous:
214 :    
215 :     # engine: $(OBJECTS) $(OBJECTS0) ;
216 :    
217 :     # engine_ditc: $(OBJECTS_DITC) $(OBJECTS0) ;
218 : pazsan 1.2
219 :     #NeXTstep hack
220 :    
221 : anton 1.69 termios.o: /usr/lib/libposix.a
222 :     ar x /usr/lib/libposix.a termios.o
223 : anton 1.6
224 : pazsan 1.11 #duplicated rules to avoid too many recursive make invocations
225 : jwilke 1.23 # !! No any forth stuff should be done in ../Makefile.
226 :     # !! I added the dependencies on prim.i and prim_lab.i in the main Makefile, jens
227 : pazsan 1.11
228 : anton 1.27 #I commented out the following rules because they are no longer up-to-date. - anton
229 : pazsan 1.11
230 : anton 1.27 #prim.i: ../prim.b ../prims2x.fs
231 :     # $(FORTHK) prims2x.fs -e "s\" ../prim.b\" ' output-c process-file bye" >$@-
232 :     # $(CP) $@- $@
233 :     # $(RM) $@-
234 :     #
235 :     #prim_lab.i: ../prim.b ../prims2x.fs
236 :     # $(FORTHK) prims2x.fs -e "s\" ../prim.b\" ' output-label process-file bye" >$@-
237 :     # $(CP) $@- $@
238 :     # $(RM) $@-
239 : pazsan 1.11
240 :     config.h: stamp-h
241 : pazsan 1.57 stamp-h: config.h.in ../config.status ../stamp-h.in
242 : pazsan 1.11 cd .. && CONFIG_FILES=$@ CONFIG_HEADERS=engine/config.h ./config.status
243 :     echo timestamp > stamp-h
244 : anton 1.6
245 : anton 1.71 Makefile: Makefile.in ../config.status ../configure.in
246 : pazsan 1.73 cd .. && $(MAKE) engine/Makefile.in
247 : anton 1.71
248 : pazsan 1.60 image.i: ../fi2c.fs ../$(include_fi)
249 : pazsan 1.72 $(BOOTFORTH) ../fi2c.fs -e "s\" ../$(include_fi)\" fi2c bye" >$@
250 : anton 1.9
251 : pazsan 1.11 ../$(include_fi): FORCE
252 :     cd .. && $(MAKE) $(include_fi)
253 : anton 1.6
254 :     #phony targets depend on FORCE; this is more portable than .PHONY
255 :     FORCE:
256 : jwilke 1.3

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help