Use new tail-calling mechanism on ARM.
[official-gcc.git] / gcc / f / Makefile.in
blob1f93e551c2197076e7dd76af50fcb96277d038b0
1 # Makefile for GNU F77 compiler.
2 # Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
4 #This file is part of GNU Fortran.
6 #GNU Fortran is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 2, or (at your option)
9 #any later version.
11 #GNU Fortran is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GNU Fortran; see the file COPYING. If not, write to
18 #the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19 #02111-1307, USA.
21 # The makefile built from this file lives in the language subdirectory.
22 # Its purpose is to provide support for:
24 # 1) recursion where necessary, and only then (building .o's), and
25 # 2) building and debugging f771 from the language subdirectory, and
26 # 3) nothing else.
28 # The parent makefile handles all other chores, with help from the
29 # language makefile fragment, of course.
31 # The targets for external use are:
32 # all, TAGS, ???mostlyclean, ???clean.
34 # Suppress smart makes who think they know how to automake Yacc files
35 .y.c:
37 # Variables that exist for you to override.
38 # See below for how to change them for certain systems.
40 # Various ways of specifying flags for compilations:
41 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
42 # BOOT_CFLAGS is the value of CFLAGS to pass
43 # to the stage2 and stage3 compilations
44 # XCFLAGS is used for most compilations but not when using the GCC just built.
45 XCFLAGS =
46 CFLAGS = -g
47 BOOT_CFLAGS = -O $(CFLAGS)
48 # These exists to be overridden by the x-* and t-* files, respectively.
49 X_CFLAGS =
50 T_CFLAGS =
52 X_CPPFLAGS =
53 T_CPPFLAGS =
55 CC = @CC@
56 BISON = bison
57 BISONFLAGS =
58 LEX = flex
59 LEXFLAGS =
60 AR = ar
61 AR_FLAGS = rc
62 SHELL = /bin/sh
63 MAKEINFO = makeinfo
64 TEXI2DVI = texi2dvi
66 # Define this as & to perform parallel make on a Sequent.
67 # Note that this has some bugs, and it seems currently necessary
68 # to compile all the gen* files first by hand to avoid erroneous results.
69 P =
71 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
72 # It omits XCFLAGS, and specifies -B./.
73 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
74 GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)
76 # Tools to use when building a cross-compiler.
77 # These are used because `configure' appends `cross-make'
78 # to the makefile when making a cross-compiler.
80 target=@target@
81 xmake_file=@dep_host_xmake_file@
82 tmake_file=@dep_tmake_file@
84 # Directory where sources are, from where we are.
85 srcdir = @srcdir@
86 VPATH = @srcdir@
88 # Additional system libraries to link with.
89 CLIB=
91 # Choose the real default target.
92 ALL=all
94 # End of variables for you to override.
96 # Definition of `all' is here so that new rules inserted by sed
97 # do not specify the default target.
98 all: all.indirect
100 # This tells GNU Make version 3 not to put all variables in the environment.
101 .NOEXPORT:
103 # sed inserts variable overrides after the following line.
104 ####target overrides
105 @target_overrides@
106 ####host overrides
107 @host_overrides@
108 ####cross overrides
109 @cross_defines@
110 @cross_overrides@
111 ####build overrides
112 @build_overrides@
114 # Now figure out from those variables how to compile and link.
116 all.indirect: Makefile ../f771$(exeext)
118 # IN_GCC tells obstack.h that we are using gcc's <stddef.h> file.
119 INTERNAL_CFLAGS = $(CROSS) -DIN_GCC @extra_c_flags@
121 # This is the variable actually used when we compile.
122 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS) -W -Wall
124 # Likewise.
125 ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
127 # This is where we get libiberty.a from.
128 LIBIBERTY = ../../libiberty/libiberty.a
130 # We should be compiling with the built compiler, for which
131 # BOOT_LDFLAGS is appropriate. (Formerly we had a separate
132 # F771_LDFLAGS, but the ld flags can be taken care of by the target
133 # configuration files in egcs.)
134 LDFLAGS=$(BOOT_LDFLAGS)
136 # How to link with both our special library facilities
137 # and the system's installed libraries.
138 LIBS = $(LIBIBERTY) $(CLIB)
139 LIBDEPS = $(LIBIBERTY)
141 # Specify the directories to be searched for header files.
142 # Both . and srcdir are used, in that order,
143 # so that tm.h and config.h will be found in the compilation
144 # subdirectory rather than in the source directory.
145 INCLUDES = -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config -I$(srcdir)/../../include
147 # Always use -I$(srcdir)/config when compiling.
148 .c.o:
149 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
152 # Lists of files for various purposes.
154 # Language-specific object files for g77
156 F77_OBJS = \
157 bad.o \
158 bit.o \
159 bld.o \
160 com.o \
161 data.o \
162 equiv.o \
163 expr.o \
164 global.o \
165 implic.o \
166 info.o \
167 intrin.o \
168 lab.o \
169 lex.o \
170 malloc.o \
171 name.o \
172 parse.o \
173 proj.o \
174 src.o \
175 st.o \
176 sta.o \
177 stb.o \
178 stc.o \
179 std.o \
180 ste.o \
181 storag.o \
182 stp.o \
183 str.o \
184 sts.o \
185 stt.o \
186 stu.o \
187 stv.o \
188 stw.o \
189 symbol.o \
190 target.o \
191 top.o \
192 type.o \
193 version.o \
194 where.o
196 # Language-independent object files.
197 OBJS = `cat ../stamp-objlist`
198 OBJDEPS = ../stamp-objlist
200 compiler: ../f771$(exeext)
201 ../f771$(exeext): $(P) $(F77_OBJS) $(OBJDEPS) $(LIBDEPS)
202 rm -f f771$(exeext)
203 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(F77_OBJS) $(OBJS) $(LIBS)
205 Makefile: $(srcdir)/Makefile.in $(srcdir)/../configure
206 cd ..; $(SHELL) config.status
208 native: config.status ../f771$(exeext)
210 # Compiling object files from source files.
212 # Note that dependencies on obstack.h are not written
213 # because that file is not part of GCC.
215 # F77 language-specific files.
217 # These macros expand to the corresponding g77-source .j files plus
218 # the gcc-source files involved (each file itself, plus whatever
219 # files on which it depends, but without including stuff resulting
220 # from configuration, since we can't guess at that). The files
221 # that live in a distclean'd gcc source directory have "$(srcdir)/"
222 # prefixes, while the others don't because they'll be created
223 # only in the build directory.
224 ASSERT_H = $(srcdir)/assert.j $(srcdir)/../assert.h
225 CONFIG_H = $(srcdir)/config.j ../config.h
226 CONVERT_H = $(srcdir)/convert.j $(srcdir)/../convert.h
227 FLAGS_H = $(srcdir)/flags.j $(srcdir)/../flags.h
228 GGC_H = $(srcdir)/ggc.j $(srcdir)/../ggc.h $(srcdir)/../varray.h
229 GLIMITS_H = $(srcdir)/glimits.j $(srcdir)/../glimits.h
230 HCONFIG_H = $(srcdir)/hconfig.j ../hconfig.h
231 INPUT_H = $(srcdir)/input.j $(srcdir)/../input.h
232 OUTPUT_H = $(srcdir)/output.j $(srcdir)/../output.h
233 RTL_H = $(srcdir)/rtl.j $(srcdir)/../rtl.h $(srcdir)/../rtl.def \
234 $(srcdir)/../machmode.h $(srcdir)/../machmode.def
235 SYSTEM_H = $(srcdir)/system.j $(srcdir)/../system.h
236 TCONFIG_H = $(srcdir)/tconfig.j ../tconfig.h
237 TM_H = $(srcdir)/tm.j ../tm.h
238 TOPLEV_H = $(srcdir)/toplev.j $(srcdir)/../toplev.h
239 TREE_H = $(srcdir)/tree.j $(srcdir)/../tree.h $(srcdir)/../real.h \
240 $(srcdir)/../tree.def $(srcdir)/../machmode.h $(srcdir)/../machmode.def
242 #Build the first part of this list with the command line:
243 # cd gcc/; make deps-kinda -f f/Makefile.in
244 #Note that this command uses the host C compiler;
245 # use HOST_CC="./xgcc -B./" to use GCC in the build directory, for example.
246 #Also note that this particular build file seems to want to use
247 # substitions: $(CONFIG_H) for config.h; $(TREE_H) for tree.h;
248 # $(RTL_H) for rtl.h; etc.. deps-kinda uses a sed script to do those
249 # substitutions, plus others for elegance.
251 ansify.o: ansify.c $(HCONFIG_H) $(SYSTEM_H) $(ASSERT_H)
252 bad.o: bad.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) bad.h bad.def where.h \
253 $(GLIMITS_H) top.h malloc.h $(FLAGS_H) com.h com-rt.def $(TREE_H) bld.h \
254 bld-op.def bit.h info.h info-b.def info-k.def info-w.def target.h \
255 lex.h type.h intrin.h intrin.def lab.h symbol.h symbol.def equiv.h \
256 storag.h global.h name.h $(TOPLEV_H)
257 bit.o: bit.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) $(GLIMITS_H) bit.h \
258 malloc.h
259 bld.o: bld.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) bld.h bld-op.def bit.h \
260 malloc.h com.h com-rt.def $(TREE_H) info.h info-b.def info-k.def \
261 info-w.def target.h bad.h bad.def where.h $(GLIMITS_H) top.h lex.h \
262 type.h lab.h storag.h symbol.h symbol.def equiv.h global.h name.h \
263 intrin.h intrin.def
264 com.o: com.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) $(FLAGS_H) $(RTL_H) $(TOPLEV_H) \
265 $(TREE_H) $(OUTPUT_H) $(CONVERT_H) com.h com-rt.def bld.h bld-op.def bit.h \
266 malloc.h info.h info-b.def info-k.def info-w.def target.h bad.h \
267 bad.def where.h $(GLIMITS_H) top.h lex.h type.h intrin.h intrin.def \
268 lab.h symbol.h symbol.def equiv.h storag.h global.h name.h expr.h \
269 implic.h src.h st.h $(GGC_H)
270 data.o: data.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) data.h bld.h \
271 bld-op.def bit.h malloc.h com.h com-rt.def $(TREE_H) info.h info-b.def \
272 info-k.def info-w.def target.h bad.h bad.def where.h $(GLIMITS_H) top.h \
273 lex.h type.h lab.h storag.h symbol.h symbol.def equiv.h global.h \
274 name.h intrin.h intrin.def expr.h st.h
275 equiv.o: equiv.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) equiv.h bld.h \
276 bld-op.def bit.h malloc.h com.h com-rt.def $(TREE_H) info.h info-b.def \
277 info-k.def info-w.def target.h bad.h bad.def where.h $(GLIMITS_H) top.h \
278 lex.h type.h lab.h storag.h symbol.h symbol.def global.h name.h \
279 intrin.h intrin.def data.h
280 expr.o: expr.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) expr.h bld.h \
281 bld-op.def bit.h malloc.h com.h com-rt.def $(TREE_H) info.h info-b.def \
282 info-k.def info-w.def target.h bad.h bad.def where.h $(GLIMITS_H) top.h \
283 lex.h type.h lab.h storag.h symbol.h symbol.def equiv.h global.h \
284 name.h intrin.h intrin.def implic.h src.h st.h stamp-str
285 fini.o: fini.c proj.h $(HCONFIG_H) $(SYSTEM_H) $(ASSERT_H) malloc.h
286 global.o: global.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) global.h info.h \
287 info-b.def info-k.def info-w.def target.h $(TREE_H) bad.h bad.def \
288 where.h $(GLIMITS_H) top.h malloc.h lex.h type.h name.h symbol.h \
289 symbol.def bld.h bld-op.def bit.h com.h com-rt.def lab.h storag.h \
290 intrin.h intrin.def equiv.h
291 implic.o: implic.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) implic.h info.h \
292 info-b.def info-k.def info-w.def target.h $(TREE_H) bad.h bad.def \
293 where.h $(GLIMITS_H) top.h malloc.h lex.h type.h symbol.h symbol.def \
294 bld.h bld-op.def bit.h com.h com-rt.def lab.h storag.h intrin.h \
295 intrin.def equiv.h global.h name.h src.h
296 info.o: info.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) info.h info-b.def \
297 info-k.def info-w.def target.h $(TREE_H) bad.h bad.def where.h $(GLIMITS_H) \
298 top.h malloc.h lex.h type.h
299 intdoc.o: intdoc.c $(HCONFIG_H) $(SYSTEM_H) $(ASSERT_H) intrin.h intrin.def \
300 intdoc.h0 intdoc.h0
301 intrin.o: intrin.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) intrin.h \
302 intrin.def bld.h bld-op.def bit.h malloc.h com.h com-rt.def $(TREE_H) \
303 info.h info-b.def info-k.def info-w.def target.h bad.h bad.def \
304 where.h $(GLIMITS_H) top.h lex.h type.h lab.h storag.h symbol.h \
305 symbol.def equiv.h global.h name.h expr.h src.h
306 lab.o: lab.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) lab.h com.h com-rt.def \
307 $(TREE_H) bld.h bld-op.def bit.h malloc.h info.h info-b.def info-k.def \
308 info-w.def target.h bad.h bad.def where.h $(GLIMITS_H) top.h lex.h \
309 type.h intrin.h intrin.def symbol.h symbol.def equiv.h storag.h \
310 global.h name.h
311 lex.o: lex.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) top.h malloc.h where.h \
312 $(GLIMITS_H) bad.h bad.def com.h com-rt.def $(TREE_H) bld.h bld-op.def \
313 bit.h info.h info-b.def info-k.def info-w.def target.h lex.h type.h \
314 intrin.h intrin.def lab.h symbol.h symbol.def equiv.h storag.h \
315 global.h name.h src.h $(FLAGS_H) $(INPUT_H) $(TOPLEV_H) $(OUTPUT_H) $(GGC_H)
316 malloc.o: malloc.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) malloc.h
317 name.o: name.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) bad.h bad.def where.h \
318 $(GLIMITS_H) top.h malloc.h name.h global.h info.h info-b.def info-k.def \
319 info-w.def target.h $(TREE_H) lex.h type.h symbol.h symbol.def bld.h \
320 bld-op.def bit.h com.h com-rt.def lab.h storag.h intrin.h intrin.def \
321 equiv.h src.h
322 parse.o: parse.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) top.h malloc.h \
323 where.h $(GLIMITS_H) com.h com-rt.def $(TREE_H) bld.h bld-op.def bit.h \
324 info.h info-b.def info-k.def info-w.def target.h bad.h bad.def lex.h \
325 type.h intrin.h intrin.def lab.h symbol.h symbol.def equiv.h storag.h \
326 global.h name.h version.h $(FLAGS_H)
327 proj.o: proj.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) $(GLIMITS_H)
328 src.o: src.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) src.h bad.h bad.def \
329 where.h $(GLIMITS_H) top.h malloc.h
330 st.o: st.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) st.h bad.h bad.def \
331 where.h $(GLIMITS_H) top.h malloc.h lex.h symbol.h symbol.def bld.h \
332 bld-op.def bit.h com.h com-rt.def $(TREE_H) info.h info-b.def info-k.def \
333 info-w.def target.h type.h lab.h storag.h intrin.h intrin.def equiv.h \
334 global.h name.h sta.h stamp-str stb.h expr.h stp.h stt.h stc.h std.h \
335 stv.h stw.h ste.h sts.h stu.h
336 sta.o: sta.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) sta.h bad.h bad.def \
337 where.h $(GLIMITS_H) top.h malloc.h lex.h stamp-str symbol.h symbol.def \
338 bld.h bld-op.def bit.h com.h com-rt.def $(TREE_H) info.h info-b.def \
339 info-k.def info-w.def target.h type.h lab.h storag.h intrin.h \
340 intrin.def equiv.h global.h name.h implic.h stb.h expr.h stp.h stt.h \
341 stc.h std.h stv.h stw.h
342 stb.o: stb.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) stb.h bad.h bad.def \
343 where.h $(GLIMITS_H) top.h malloc.h expr.h bld.h bld-op.def bit.h com.h \
344 com-rt.def $(TREE_H) info.h info-b.def info-k.def info-w.def target.h \
345 lex.h type.h lab.h storag.h symbol.h symbol.def equiv.h global.h \
346 name.h intrin.h intrin.def stp.h stt.h stamp-str src.h sta.h stc.h
347 stc.o: stc.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) stc.h bad.h bad.def \
348 where.h $(GLIMITS_H) top.h malloc.h bld.h bld-op.def bit.h com.h \
349 com-rt.def $(TREE_H) info.h info-b.def info-k.def info-w.def target.h \
350 lex.h type.h lab.h storag.h symbol.h symbol.def equiv.h global.h \
351 name.h intrin.h intrin.def expr.h stp.h stt.h stamp-str data.h implic.h \
352 src.h sta.h std.h stv.h stw.h
353 std.o: std.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) std.h bld.h bld-op.def \
354 bit.h malloc.h com.h com-rt.def $(TREE_H) info.h info-b.def info-k.def \
355 info-w.def target.h bad.h bad.def where.h $(GLIMITS_H) top.h lex.h \
356 type.h lab.h storag.h symbol.h symbol.def equiv.h global.h name.h \
357 intrin.h intrin.def stp.h stt.h stamp-str stv.h stw.h sta.h ste.h sts.h
358 ste.o: ste.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) $(RTL_H) $(TOPLEV_H) ste.h \
359 bld.h bld-op.def bit.h malloc.h com.h com-rt.def $(TREE_H) info.h \
360 info-b.def info-k.def info-w.def target.h bad.h bad.def where.h \
361 $(GLIMITS_H) top.h lex.h type.h lab.h storag.h symbol.h symbol.def \
362 equiv.h global.h name.h intrin.h intrin.def stp.h stt.h stamp-str sts.h \
363 stv.h stw.h expr.h sta.h $(GGC_H)
364 storag.o: storag.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) storag.h bld.h \
365 bld-op.def bit.h malloc.h com.h com-rt.def $(TREE_H) info.h info-b.def \
366 info-k.def info-w.def target.h bad.h bad.def where.h $(GLIMITS_H) top.h \
367 lex.h type.h lab.h symbol.h symbol.def equiv.h global.h name.h \
368 intrin.h intrin.def data.h
369 stp.o: stp.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) stp.h bld.h bld-op.def \
370 bit.h malloc.h com.h com-rt.def $(TREE_H) info.h info-b.def info-k.def \
371 info-w.def target.h bad.h bad.def where.h $(GLIMITS_H) top.h lex.h \
372 type.h lab.h storag.h symbol.h symbol.def equiv.h global.h name.h \
373 intrin.h intrin.def stt.h
374 str.o: str.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) src.h bad.h bad.def \
375 where.h $(GLIMITS_H) top.h malloc.h stamp-str lex.h
376 sts.o: sts.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) sts.h malloc.h com.h \
377 com-rt.def $(TREE_H) bld.h bld-op.def bit.h info.h info-b.def info-k.def \
378 info-w.def target.h bad.h bad.def where.h $(GLIMITS_H) top.h lex.h \
379 type.h intrin.h intrin.def lab.h symbol.h symbol.def equiv.h storag.h \
380 global.h name.h
381 stt.o: stt.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) stt.h top.h malloc.h \
382 where.h $(GLIMITS_H) bld.h bld-op.def bit.h com.h com-rt.def $(TREE_H) \
383 info.h info-b.def info-k.def info-w.def target.h bad.h bad.def lex.h \
384 type.h lab.h storag.h symbol.h symbol.def equiv.h global.h name.h \
385 intrin.h intrin.def stp.h expr.h sta.h stamp-str
386 stu.o: stu.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) bld.h bld-op.def bit.h \
387 malloc.h com.h com-rt.def $(TREE_H) info.h info-b.def info-k.def \
388 info-w.def target.h bad.h bad.def where.h $(GLIMITS_H) top.h lex.h \
389 type.h lab.h storag.h symbol.h symbol.def equiv.h global.h name.h \
390 intrin.h intrin.def implic.h stu.h sta.h stamp-str
391 stv.o: stv.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) stv.h lab.h com.h \
392 com-rt.def $(TREE_H) bld.h bld-op.def bit.h malloc.h info.h info-b.def \
393 info-k.def info-w.def target.h bad.h bad.def where.h $(GLIMITS_H) top.h \
394 lex.h type.h intrin.h intrin.def symbol.h symbol.def equiv.h storag.h \
395 global.h name.h
396 stw.o: stw.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) stw.h bld.h bld-op.def \
397 bit.h malloc.h com.h com-rt.def $(TREE_H) info.h info-b.def info-k.def \
398 info-w.def target.h bad.h bad.def where.h $(GLIMITS_H) top.h lex.h \
399 type.h lab.h storag.h symbol.h symbol.def equiv.h global.h name.h \
400 intrin.h intrin.def stv.h sta.h stamp-str
401 symbol.o: symbol.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) symbol.h \
402 symbol.def bld.h bld-op.def bit.h malloc.h com.h com-rt.def $(TREE_H) \
403 info.h info-b.def info-k.def info-w.def target.h bad.h bad.def \
404 where.h $(GLIMITS_H) top.h lex.h type.h lab.h storag.h intrin.h \
405 intrin.def equiv.h global.h name.h src.h st.h
406 target.o: target.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) $(GLIMITS_H) \
407 target.h $(TREE_H) bad.h bad.def where.h top.h malloc.h info.h \
408 info-b.def info-k.def info-w.def type.h lex.h
409 top.o: top.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) top.h malloc.h where.h \
410 $(GLIMITS_H) bad.h bad.def bit.h bld.h bld-op.def com.h com-rt.def \
411 $(TREE_H) info.h info-b.def info-k.def info-w.def target.h lex.h type.h \
412 lab.h storag.h symbol.h symbol.def equiv.h global.h name.h intrin.h \
413 intrin.def data.h expr.h implic.h src.h st.h $(FLAGS_H) $(TOPLEV_H)
414 type.o: type.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) type.h malloc.h
415 version.o: version.c
416 where.o: where.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) where.h $(GLIMITS_H) \
417 top.h malloc.h lex.h $(GGC_H)
419 # The rest of this list (Fortran 77 language-specific files) is hand-generated.
421 stamp-str: str-1t.h str-1t.j str-2t.h str-2t.j \
422 str-fo.h str-fo.j str-io.h str-io.j str-nq.h str-nq.j \
423 str-op.h str-op.j str-ot.h str-ot.j
424 touch stamp-str
426 str-1t.h str-1t.j: fini str-1t.fin
427 ./fini `echo $(srcdir)/str-1t.fin | sed 's,^\./,,'` str-1t.j str-1t.h
429 str-2t.h str-2t.j: fini str-2t.fin
430 ./fini `echo $(srcdir)/str-2t.fin | sed 's,^\./,,'` str-2t.j str-2t.h
432 str-fo.h str-fo.j: fini str-fo.fin
433 ./fini `echo $(srcdir)/str-fo.fin | sed 's,^\./,,'` str-fo.j str-fo.h
435 str-io.h str-io.j: fini str-io.fin
436 ./fini `echo $(srcdir)/str-io.fin | sed 's,^\./,,'` str-io.j str-io.h
438 str-nq.h str-nq.j: fini str-nq.fin
439 ./fini `echo $(srcdir)/str-nq.fin | sed 's,^\./,,'` str-nq.j str-nq.h
441 str-op.h str-op.j: fini str-op.fin
442 ./fini `echo $(srcdir)/str-op.fin | sed 's,^\./,,'` str-op.j str-op.h
444 str-ot.h str-ot.j: fini str-ot.fin
445 ./fini `echo $(srcdir)/str-ot.fin | sed 's,^\./,,'` str-ot.j str-ot.h
447 fini: fini.o proj-h.o
448 $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o fini fini.o proj-h.o
450 fini.o:
451 $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
452 `echo $(srcdir)/fini.c | sed 's,^\./,,'` -o $@
454 # Like proj.o, but depends on hconfig.h instead of config.h.
455 proj-h.o: proj.c proj.h $(HCONFIG_H) $(SYSTEM_H) $(ASSERT_H) $(GLIMITS_H)
456 $(HOST_CC) -c -DUSE_HCONFIG $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
457 `echo $(srcdir)/proj.c | sed 's,^\./,,'` -o $@
459 # Other than str-*.j, the *.j files are dummy #include files
460 # that normally just #include the corresponding back-end *.h
461 # files, but not if MAKING_DEPENDENCIES is #defined. The str-*.j
462 # files also are not actually included if MAKING_DEPENDENCIES
463 # is #defined. The point of all this is to come up with a clean
464 # dependencies list whether working in a clean directory, such
465 # that str-*.j and such do not exist, or in a directory full
466 # of already-built files. Any dependency on a str-*.j file
467 # implies a dependency on str.h, so we key on that to replace
468 # it with stamp-str, and dependencies on the other *.j files
469 # are generally left alone (modulo special macros like RTL_H)
470 # because we might not want to recompile all of g77 just
471 # because a back-end file changes. MG is usually "-MG" but
472 # should be defined with "make MG= deps-kinda..." if using
473 # a compiler that doesn't support -MG (gcc does as of 2.6) --
474 # it prevents diagnostics when an #include file is missing,
475 # as will be the case with proj.h in a clean directory.
476 MG=-MG
477 deps-kinda:
478 $(HOST_CC) -DMAKING_DEPENDENCIES -MM $(MG) *.c 2>&1 | \
479 sed -e 's: \([.]/\)*assert[.]j: $$(ASSERT_H):g' \
480 -e 's: \([.]/\)*config[.]j: $$(CONFIG_H):g' \
481 -e 's: \([.]/\)*convert[.]j: $$(CONVERT_H):g' \
482 -e 's: \([.]/\)*flags[.]j: $$(FLAGS_H):g' \
483 -e 's: \([.]/\)*glimits[.]j: $$(GLIMITS_H):g' \
484 -e 's: \([.]/\)*hconfig[.]j: $$(HCONFIG_H):g' \
485 -e 's: \([.]/\)*input[.]j: $$(INPUT_H):g' \
486 -e 's: \([.]/\)*output[.]j: $$(OUTPUT_H):g' \
487 -e 's: \([.]/\)*rtl[.]j: $$(RTL_H):g' \
488 -e 's: \([.]/\)*system[.]j: $$(SYSTEM_H):g' \
489 -e 's: \([.]/\)*tconfig[.]j: $$(TCONFIG_H):g' \
490 -e 's: \([.]/\)*tm[.]j: $$(TM_H):g' \
491 -e 's: \([.]/\)*toplev[.]j: $$(TOPLEV_H):g' \
492 -e 's: \([.]/\)*tree[.]j: $$(TREE_H):g' \
493 -e 's: \([.]/\)*str[.]h: stamp-str:g' \
494 -e 's:.*g77spec.*::g' \
495 -e 's%^\(.*\)[ ]*: %\1: %g'
497 # This rule is just a handy way to build the g77 derived files without
498 # having the gcc source tree around.
499 g77-only: force
500 if [ -f g77.texi ] ; then \
501 (cd ..; $(MAKE) srcdir=. HOST_CC=cc HOST_CFLAGS=-g -f f/Make-lang.in f77.rebuilt); \
502 else \
503 $(MAKE) srcdir=. HOST_CC=cc HOST_CFLAGS=-g -f f/Make-lang.in f77.rebuilt; \
507 # These exist for maintenance purposes.
509 # Update the tags table.
510 TAGS: force
511 cd $(srcdir)/f ; \
512 etags *.c *.h ; \
513 echo 'l' | tr 'l' '\f' >> TAGS ; \
514 etags -a ../*.h ../*.c;
516 .PHONY: none all all.indirect f77.rebuilt compiler native deps-kinda g77-only TAGS force
518 force: