* Makefile.tpl (all-sim): Depend on maybe-configure-gdb.
[deliverable/binutils-gdb.git] / Makefile.tpl
CommitLineData
52d7cdee 1[+ AutoGen5 template -*- Mode: Makefile -*-
405ea7a0
NN
2in
3+]
4
5# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
6#
7# Makefile for directory with subdirs to build.
8# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
9# 1999, 2000, 2001, 2002 Free Software Foundation
10#
11# This file is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# This program is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with this program; if not, write to the Free Software
23# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24#
25
26# Tell GNU make 3.79 not to run the top level in parallel. This
27# prevents contention for $builddir/$target/config.cache, as well
28# as minimizing scatter in file system caches.
29NOTPARALLEL = .NOTPARALLEL
30$(NOTPARALLEL):
31
583d52d7
NN
32VPATH=@srcdir@
33links=@configlinks@
34
35build_alias=@build_alias@
36build_cpu=@build_cpu@
37build_vendor=@build_vendor@
38build_os=@build_os@
39build_canonical=@build_cpu@-@build_vendor@-@build_os@
40host_alias=@host_alias@
41host_cpu=@host_cpu@
42host_vendor=@host_vendor@
43host_os=@host_os@
44host_canonical=@host_cpu@-@host_vendor@-@host_os@
45target_alias=@target_alias@
46target_cpu=@target_cpu@
47target_vendor=@target_vendor@
48target_os=@target_os@
49target_canonical=@target_cpu@-@target_vendor@-@target_os@
50
51enable_shared = @enable_shared@
52enable_threads = @enable_threads@
53enable_version_specific_runtime_libs = @enable_version_specific_runtime_libs@
54# The file containing GCC's version number.
55gcc_version_trigger = @gcc_version_trigger@
56gcc_version = @gcc_version@
57
c66d951e
NN
58srcdir = @srcdir@
59
60prefix = @prefix@
61exec_prefix = @exec_prefix@
62
63bindir = @bindir@
64sbindir = @sbindir@
65libexecdir = @libexecdir@
66datadir = @datadir@
67sysconfdir = @sysconfdir@
68sharedstatedir = @sharedstatedir@
69localstatedir = @localstatedir@
70libdir = @libdir@
71includedir = @includedir@
72oldincludedir = @oldincludedir@
73infodir = @infodir@
74mandir = @mandir@
58daee98 75gxx_include_dir=@gxx_include_dir@
405ea7a0 76
c66d951e
NN
77tooldir = @tooldir@
78build_tooldir = @build_tooldir@
405ea7a0 79
c66d951e 80program_transform_name = @program_transform_name@
405ea7a0
NN
81
82man1dir = $(mandir)/man1
83man2dir = $(mandir)/man2
84man3dir = $(mandir)/man3
85man4dir = $(mandir)/man4
86man5dir = $(mandir)/man5
87man6dir = $(mandir)/man6
88man7dir = $(mandir)/man7
89man8dir = $(mandir)/man8
90man9dir = $(mandir)/man9
405ea7a0
NN
91# Directory in which the compiler finds executables, libraries, etc.
92libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
93GDB_NLM_DEPS =
94
c66d951e 95SHELL = @config_shell@
405ea7a0
NN
96
97# pwd command to use. Allow user to override default by setting PWDCMD in
98# the environment to account for automounters. The make variable must not
99# be called PWDCMD, otherwise the value set here is passed to make
100# subprocesses and overrides the setting from the user's environment.
101PWD = $${PWDCMD-pwd}
102
103# INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
104# cygwin host.
105INSTALL_PROGRAM_ARGS =
106
107INSTALL = $(SHELL) $$s/install-sh -c
108INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
109INSTALL_SCRIPT = $(INSTALL)
110INSTALL_DATA = $(INSTALL) -m 644
111
852e5f18
NN
112AS = @AS@
113AR = @AR@
405ea7a0
NN
114AR_FLAGS = rc
115CC = cc
116
117# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
118# here so that they can be overridden by Makefile fragments.
3866be5d 119BUILD_CC = $(CC_FOR_BUILD)
852e5f18
NN
120BUILD_PREFIX = @BUILD_PREFIX@
121BUILD_PREFIX_1 = @BUILD_PREFIX_1@
405ea7a0
NN
122
123# These flag values are normally overridden by the configure script.
124CFLAGS = -g
125CXXFLAGS = -g -O2
126
127LDFLAGS =
128LIBCFLAGS = $(CFLAGS)
129CFLAGS_FOR_BUILD = $(CFLAGS)
130# During gcc bootstrap, if we use some random cc for stage1 then
131# CFLAGS will be just -g. We want to ensure that TARGET libraries
132# (which we know are built with gcc) are built with optimizations so
133# prepend -O2 when setting CFLAGS_FOR_TARGET.
134CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
135LDFLAGS_FOR_TARGET =
136LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
137PICFLAG =
138PICFLAG_FOR_TARGET =
139
140CXX = c++
141
142# Use -O2 to stress test the compiler.
143LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
144CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
145LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
146
852e5f18
NN
147DLLTOOL = @DLLTOOL@
148WINDRES = @WINDRES@
405ea7a0 149
852e5f18 150NM = @NM@
405ea7a0 151
852e5f18 152LD = @LD@
405ea7a0 153
405ea7a0 154# These values are substituted by configure.
c66d951e
NN
155DEFAULT_YACC = @DEFAULT_YACC@
156DEFAULT_LEX = @DEFAULT_LEX@
157DEFAULT_M4 = @DEFAULT_M4@
405ea7a0 158
852e5f18
NN
159BISON=@BISON@
160USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \
405ea7a0
NN
161 echo $$r/bison/bison -L $$s/bison/ ; \
162 else \
163 echo bison ; \
164 fi`
165
852e5f18
NN
166YACC=@YACC@
167USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \
405ea7a0
NN
168 echo $$r/bison/bison -y -L $$s/bison/ ; \
169 elif [ -f $$r/byacc/byacc ] ; then \
170 echo $$r/byacc/byacc ; \
171 else \
172 echo ${DEFAULT_YACC} ; \
173 fi`
174
852e5f18
NN
175LEX=@LEX@
176USUAL_LEX = `if [ -f $$r/flex/flex ] ; \
405ea7a0
NN
177 then echo $$r/flex/flex ; \
178 else echo ${DEFAULT_LEX} ; fi`
179
180M4 = `if [ -f $$r/m4/m4 ] ; \
181 then echo $$r/m4/m4 ; \
182 else echo ${DEFAULT_M4} ; fi`
183
184# For an installed makeinfo, we require it to be from texinfo 4 or
185# higher, else we use the "missing" dummy.
852e5f18
NN
186MAKEINFO=@MAKEINFO@
187USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
405ea7a0
NN
188 then echo $$r/texinfo/makeinfo/makeinfo ; \
189 else if (makeinfo --version \
190 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
191 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
192
193# This just becomes part of the MAKEINFO definition passed down to
194# sub-makes. It lets flags be given on the command line while still
195# using the makeinfo from the object tree.
196MAKEINFOFLAGS =
197
198EXPECT = `if [ -f $$r/expect/expect ] ; \
199 then echo $$r/expect/expect ; \
200 else echo expect ; fi`
201
202RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
203 then echo $$s/dejagnu/runtest ; \
204 else echo runtest ; fi`
205
206
207# compilers to use to create programs which must be run in the build
208# environment.
852e5f18 209CC_FOR_BUILD = @CC_FOR_BUILD@
405ea7a0
NN
210CXX_FOR_BUILD = $(CXX)
211
f03b4789 212SUBDIRS = @configdirs@
405ea7a0
NN
213
214# This is set by the configure script to the list of directories which
215# should be built using the target tools.
58daee98 216TARGET_CONFIGDIRS = @target_configdirs@
405ea7a0
NN
217
218# Target libraries are put under this directory:
219# Changed by configure to $(target_alias) if cross.
58daee98 220TARGET_SUBDIR = @target_subdir@
405ea7a0
NN
221
222BUILD_CONFIGDIRS = libiberty
58daee98 223BUILD_SUBDIR = @build_subdir@
405ea7a0 224
405ea7a0
NN
225# This is set by the configure script to the arguments to use when configuring
226# directories built for the build system.
58daee98 227BUILD_CONFIGARGS = @build_configargs@
405ea7a0 228
15723a45
NN
229# This is set by the configure script to the arguments to use when configuring
230# directories built for the host system.
231HOST_CONFIGARGS = @host_configargs@
232
233# This is set by the configure script to the arguments to use when configuring
234# directories built for the target.
235TARGET_CONFIGARGS = @target_configargs@
236
405ea7a0
NN
237# This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
238# was used.
8607b6c9 239SET_LIB_PATH = @SET_LIB_PATH@
405ea7a0
NN
240
241# This is the name of the environment variable used for the path to
242# the libraries. This may be changed by configure.in.
8607b6c9 243RPATH_ENVVAR = @RPATH_ENVVAR@
405ea7a0
NN
244
245# This is the list of directories that may be needed in RPATH_ENVVAR
246# so that programs built for the host machine work.
247HOST_LIB_PATH = $$r/bfd:$$r/opcodes
248
249# This is the list of directories that may be needed in RPATH_ENVVAR
250# so that prorgams built for the target machine work.
251TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
252
253# configure.in sets SET_LIB_PATH to this if --enable-shared was used.
254# Some platforms don't like blank entries, so we remove duplicate,
255# leading and trailing colons.
256REALLY_SET_LIB_PATH = \
257 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
258
405ea7a0 259# Should be substed by configure.in
58daee98
NN
260FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
261CC_FOR_TARGET = @CC_FOR_TARGET@
262CXX_FOR_TARGET = @CXX_FOR_TARGET@
930314a4 263RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
58daee98 264CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
930314a4 265RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
58daee98 266GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
405ea7a0
NN
267
268# If GCC_FOR_TARGET is not overriden on the command line, then this
269# variable is passed down to the gcc Makefile, where it is used to
270# build libgcc2.a. We define it here so that it can itself be
271# overridden on the command line.
852e5f18
NN
272GCC_FOR_TARGET=@GCC_FOR_TARGET@
273USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
405ea7a0 274
852e5f18
NN
275AS_FOR_TARGET=@AS_FOR_TARGET@
276USUAL_AS_FOR_TARGET = ` \
405ea7a0
NN
277 if [ -f $$r/gas/as-new ] ; then \
278 echo $$r/gas/as-new ; \
279 elif [ -f $$r/gcc/xgcc ]; then \
280 $(CC_FOR_TARGET) -print-prog-name=as ; \
281 else \
282 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
283 echo $(AS); \
284 else \
285 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
286 fi; \
287 fi`
288
852e5f18
NN
289LD_FOR_TARGET=@LD_FOR_TARGET@
290USUAL_LD_FOR_TARGET = ` \
405ea7a0
NN
291 if [ -f $$r/ld/ld-new ] ; then \
292 echo $$r/ld/ld-new ; \
293 elif [ -f $$r/gcc/xgcc ]; then \
294 $(CC_FOR_TARGET) -print-prog-name=ld ; \
295 else \
296 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
297 echo $(LD); \
298 else \
299 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
300 fi; \
301 fi`
302
852e5f18
NN
303DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
304USUAL_DLLTOOL_FOR_TARGET = ` \
405ea7a0
NN
305 if [ -f $$r/binutils/dlltool ] ; then \
306 echo $$r/binutils/dlltool ; \
307 else \
308 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
309 echo $(DLLTOOL); \
310 else \
311 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
312 fi; \
313 fi`
314
852e5f18
NN
315WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
316USUAL_WINDRES_FOR_TARGET = ` \
405ea7a0
NN
317 if [ -f $$r/binutils/windres ] ; then \
318 echo $$r/binutils/windres ; \
319 else \
320 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
321 echo $(WINDRES); \
322 else \
323 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
324 fi; \
325 fi`
326
852e5f18
NN
327AR_FOR_TARGET=@AR_FOR_TARGET@
328USUAL_AR_FOR_TARGET = ` \
405ea7a0
NN
329 if [ -f $$r/binutils/ar ] ; then \
330 echo $$r/binutils/ar ; \
331 else \
332 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
333 echo $(AR); \
334 else \
335 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
336 fi; \
337 fi`
338
852e5f18
NN
339RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
340USUAL_RANLIB_FOR_TARGET = ` \
405ea7a0
NN
341 if [ -f $$r/binutils/ranlib ] ; then \
342 echo $$r/binutils/ranlib ; \
343 else \
344 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
345 if [ x'$(RANLIB)' != x ]; then \
346 echo $(RANLIB); \
347 else \
348 echo ranlib; \
349 fi; \
350 else \
351 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
352 fi; \
353 fi`
354
852e5f18
NN
355NM_FOR_TARGET=@NM_FOR_TARGET@
356USUAL_NM_FOR_TARGET = ` \
405ea7a0
NN
357 if [ -f $$r/binutils/nm-new ] ; then \
358 echo $$r/binutils/nm-new ; \
359 elif [ -f $$r/gcc/xgcc ]; then \
360 $(CC_FOR_TARGET) -print-prog-name=nm ; \
361 else \
362 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
363 echo $(NM); \
364 else \
365 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
366 fi; \
367 fi`
368
369# The first rule in the file had better be this one. Don't put any above it.
370# This lives here to allow makefile fragments to contain dependencies.
371all: all.normal
372.PHONY: all
373
405ea7a0
NN
374#### host and target specific makefile fragments come in here.
375###
376
377# Flags to pass down to all sub-makes.
378# Please keep these in alphabetical order.
379BASE_FLAGS_TO_PASS = \
380 "AR_FLAGS=$(AR_FLAGS)" \
381 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
382 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
383 "BISON=$(BISON)" \
384 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
385 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
386 "CFLAGS=$(CFLAGS)" \
387 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
388 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
389 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
390 "CXXFLAGS=$(CXXFLAGS)" \
391 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
392 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
393 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
394 "INSTALL=$(INSTALL)" \
395 "INSTALL_DATA=$(INSTALL_DATA)" \
396 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
397 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
398 "LDFLAGS=$(LDFLAGS)" \
399 "LEX=$(LEX)" \
400 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
401 "LIBCFLAGS=$(LIBCFLAGS)" \
402 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
403 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
404 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
405 "M4=$(M4)" \
406 "MAKE=$(MAKE)" \
407 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
408 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
409 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
410 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
411 "SHELL=$(SHELL)" \
412 "EXPECT=$(EXPECT)" \
413 "RUNTEST=$(RUNTEST)" \
414 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
415 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
416 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
417 "YACC=$(YACC)" \
418 "bindir=$(bindir)" \
419 "datadir=$(datadir)" \
420 "exec_prefix=$(exec_prefix)" \
421 "includedir=$(includedir)" \
422 "infodir=$(infodir)" \
423 "libdir=$(libdir)" \
424 "libexecdir=$(libexecdir)" \
425 "lispdir=$(lispdir)" \
426 "libstdcxx_incdir=$(libstdcxx_incdir)" \
427 "libsubdir=$(libsubdir)" \
428 "localstatedir=$(localstatedir)" \
429 "mandir=$(mandir)" \
430 "oldincludedir=$(oldincludedir)" \
431 "prefix=$(prefix)" \
432 "sbindir=$(sbindir)" \
433 "sharedstatedir=$(sharedstatedir)" \
434 "sysconfdir=$(sysconfdir)" \
435 "tooldir=$(tooldir)" \
436 "build_tooldir=$(build_tooldir)" \
437 "gxx_include_dir=$(gxx_include_dir)" \
438 "gcc_version=$(gcc_version)" \
439 "gcc_version_trigger=$(gcc_version_trigger)" \
440 "target_alias=$(target_alias)"
441
442# For any flags above that may contain shell code that varies from one
443# target library to another. When doing recursive invocations of the
444# top-level Makefile, we don't want the outer make to evaluate them,
445# so we pass these variables down unchanged. They must not contain
446# single nor double quotes.
447RECURSE_FLAGS = \
930314a4
NN
448 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
449 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
405ea7a0
NN
450
451# Flags to pass down to most sub-makes, in which we're building with
452# the host environment.
453# If any variables are added here, they must be added to do-*, below.
454EXTRA_HOST_FLAGS = \
455 'AR=$(AR)' \
456 'AS=$(AS)' \
457 'CC=$(CC)' \
458 'CXX=$(CXX)' \
459 'DLLTOOL=$(DLLTOOL)' \
460 'LD=$(LD)' \
461 'NM=$(NM)' \
462 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
463 'WINDRES=$(WINDRES)'
464
465FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
466
467# Flags that are concerned with the location of the X11 include files
468# and library files
469#
470# NOTE: until the top-level is getting the values via autoconf, it only
471# causes problems to have this top-level Makefile overriding the autoconf-set
472# values in child directories. Only variables that don't conflict with
473# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
474#
475X11_FLAGS_TO_PASS = \
476 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
477 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
478
479# Flags to pass down to makes which are built with the target environment.
480# The double $ decreases the length of the command line; the variables
481# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
482# If any variables are added here, they must be added to do-*, below.
483EXTRA_TARGET_FLAGS = \
484 'AR=$$(AR_FOR_TARGET)' \
485 'AS=$$(AS_FOR_TARGET)' \
486 'CC=$$(CC_FOR_TARGET)' \
487 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
488 'CXX=$$(CXX_FOR_TARGET)' \
489 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
490 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
491 'LD=$$(LD_FOR_TARGET)' \
492 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
493 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
494 'NM=$$(NM_FOR_TARGET)' \
495 'RANLIB=$$(RANLIB_FOR_TARGET)' \
496 'WINDRES=$$(WINDRES_FOR_TARGET)'
497
498TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
499
500# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
501# unfortunately needs the native compiler and the target ar and
502# ranlib.
503# If any variables are added here, they must be added to do-*, below.
504# The HOST_* variables are a special case, which are used for the gcc
505# cross-building scheme.
506EXTRA_GCC_FLAGS = \
507 'AR=$(AR)' \
508 'AS=$(AS)' \
509 'CC=$(CC)' \
510 'CXX=$(CXX)' \
511 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
3866be5d 512 'BUILD_CC=$(CC_FOR_BUILD)' \
405ea7a0
NN
513 'BUILD_PREFIX=$(BUILD_PREFIX)' \
514 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
515 'NM=$(NM)' \
516 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
517 'WINDRES=$$(WINDRES_FOR_TARGET)' \
518 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
519 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
520 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
521 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
522 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
523 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
524 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
525 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
526 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
527 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
528 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
529
530GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
531
db1ac78d
NN
532configure-host: @configure_host_modules@
533configure-target: @configure_target_modules@
405ea7a0
NN
534
535# This is a list of the targets for which we can do a clean-{target}.
52d7cdee
NN
536CLEAN_MODULES =[+
537 FOR host_modules +][+
538 IF (not (or (exist? "no_clean") (exist? "with_x"))) +] \
539 clean-[+module+][+
540 ENDIF no_clean +][+
541 ENDFOR host_modules +]
405ea7a0
NN
542
543# All of the target modules that can be cleaned
52d7cdee
NN
544CLEAN_TARGET_MODULES =[+
545 FOR target_modules +][+
546 IF (not (exist? "no_clean")) +] \
547 clean-target-[+module+][+
548 ENDIF no_clean +][+
549 ENDFOR target_modules +]
405ea7a0
NN
550
551# All of the x11 modules that can be cleaned
852e5f18
NN
552CLEAN_X11_MODULES = [+ FOR host_modules +][+ IF with_x +]\
553 clean-[+module+] [+ ENDIF with_x +][+ ENDFOR host_modules +]
405ea7a0
NN
554
555# The target built for a native build.
3866be5d 556# This list only includes modules actually being configured and built.
405ea7a0 557.PHONY: all.normal
3866be5d
NN
558all.normal: @all_build_modules@ \
559 @all_host_modules@ \
560 @all_target_modules@
561
db1ac78d 562all-host: @all_host_modules@
3866be5d 563all-target: @all_target_modules@
405ea7a0
NN
564
565# Do a target for all the subdirectories. A ``make do-X'' will do a
566# ``make X'' in all subdirectories (because, in general, there is a
567# dependency (below) of X upon do-X, a ``make X'' will also do this,
568# but it may do additional work as well).
569# This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
570# because it is so large that it can easily overflow the command line
571# length limit on some systems.
e393202e
NN
572[+ FOR recursive_targets +]
573.PHONY: do-[+target+]
574do-[+target+]:
575 @r=`${PWD}`; export r; \
405ea7a0
NN
576 s=`cd $(srcdir); ${PWD}`; export s; \
577 $(SET_LIB_PATH) \
578 for i in $(SUBDIRS) -dummy-; do \
579 if [ -f ./$$i/Makefile ]; then \
580 case $$i in \
581 gcc) \
582 for flag in $(EXTRA_GCC_FLAGS); do \
583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
584 done; \
585 ;; \
586 *) \
587 for flag in $(EXTRA_HOST_FLAGS); do \
588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
589 done; \
590 ;; \
591 esac ; \
592 if (cd ./$$i; \
593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
595 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
e393202e 597 [+target+]); \
405ea7a0
NN
598 then true; else exit 1; fi; \
599 else true; fi; \
600 done
e393202e 601 # Break into two pieces
405ea7a0
NN
602 r=`${PWD}`; export r; \
603 s=`cd $(srcdir); ${PWD}`; export s; \
604 $(SET_LIB_PATH) \
605 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
606 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
607 for flag in $(EXTRA_TARGET_FLAGS); do \
608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
609 done; \
610 if (cd $(TARGET_SUBDIR)/$$i; \
611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
613 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
e393202e 615 [+target+]); \
405ea7a0
NN
616 then true; else exit 1; fi; \
617 else true; fi; \
618 done
e393202e
NN
619[+ ENDFOR recursive_targets +]
620
405ea7a0
NN
621
622# Here are the targets which correspond to the do-X targets.
623
624.PHONY: info installcheck dvi install-info
625.PHONY: clean distclean mostlyclean maintainer-clean realclean
626.PHONY: local-clean local-distclean local-maintainer-clean
627info: do-info
628installcheck: do-installcheck
629dvi: do-dvi
630
631# Make sure makeinfo is built before we do a `make info'.
632do-info: all-texinfo
633
634install-info: do-install-info dir.info
635 s=`cd $(srcdir); ${PWD}`; export s; \
636 if [ -f dir.info ] ; then \
637 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
638 else true ; fi
639
640local-clean:
641 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
642
643local-distclean:
644 -rm -f Makefile config.status config.cache mh-frag mt-frag
645 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
646 rm -rf $(TARGET_SUBDIR); \
647 else true; fi
648 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
649 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
650 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
651 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
652 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
653
654local-maintainer-clean:
655 @echo "This command is intended for maintainers to use;"
656 @echo "it deletes files that may require special tools to rebuild."
657
658clean: do-clean local-clean
659mostlyclean: do-mostlyclean local-clean
660distclean: do-distclean local-clean local-distclean
661maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
662maintainer-clean: local-distclean
663realclean: maintainer-clean
664
665# This rule is used to clean specific modules.
666.PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
667$(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
668 @dir=`echo $@ | sed -e 's/clean-//'`; \
669 if [ -f ./$${dir}/Makefile ] ; then \
670 r=`${PWD}`; export r; \
671 s=`cd $(srcdir); ${PWD}`; export s; \
672 $(SET_LIB_PATH) \
673 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
674 else \
675 true; \
676 fi
677
678.PHONY: $(CLEAN_TARGET_MODULES)
679$(CLEAN_TARGET_MODULES):
680 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
681 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
682 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
683 r=`${PWD}`; export r; \
684 s=`cd $(srcdir); ${PWD}`; export s; \
685 $(SET_LIB_PATH) \
686 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
687 else \
688 true; \
689 fi
690
691clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
692clean-target-libgcc:
693 test ! -d gcc/libgcc || \
694 (cd gcc/libgcc && find . -type d -print) | \
695 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
696 -rm -rf gcc/libgcc
697
698# Check target.
699
700.PHONY: check do-check
701check:
702 $(MAKE) do-check NOTPARALLEL=parallel-ok
703
3866be5d
NN
704# Only include modules actually being configured and built.
705do-check: @check_host_modules@ \
706 @check_target_modules@
405ea7a0
NN
707
708# Automated reporting of test results.
709
710warning.log: build.log
711 $(srcdir)/contrib/warn_summary build.log > $@
712
713mail-report.log:
714 if test x'$(BOOT_CFLAGS)' != x''; then \
715 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
716 fi; \
717 $(srcdir)/contrib/test_summary -t >$@
718 chmod +x $@
719 echo If you really want to send e-mail, run ./$@ now
720
721mail-report-with-warnings.log: warning.log
722 if test x'$(BOOT_CFLAGS)' != x''; then \
723 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
724 fi; \
725 $(srcdir)/contrib/test_summary -t -i warning.log >$@
726 chmod +x $@
727 echo If you really want to send e-mail, run ./$@ now
728
729# Installation targets.
730
ae831be5 731.PHONY: install uninstall
3866be5d
NN
732install: installdirs @install_host_modules@ @install_target_modules@
733
734install-target: @install_target_modules@
405ea7a0
NN
735
736uninstall:
737 @echo "the uninstall target is not supported in this tree"
738
405ea7a0
NN
739.PHONY: install.all
740install.all: install-no-fixedincludes
741 @if [ -f ./gcc/Makefile ] ; then \
742 r=`${PWD}` ; export r ; \
743 $(SET_LIB_PATH) \
744 (cd ./gcc; \
745 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
746 else \
747 true ; \
748 fi
749
750# install-no-fixedincludes is used because Cygnus can not distribute
751# the fixed header files.
752.PHONY: install-no-fixedincludes
3866be5d
NN
753install-no-fixedincludes: installdirs @install_host_modules_nogcc@ \
754 @install_target_modules@ gcc-no-fixedincludes
405ea7a0 755
15723a45 756### other supporting targets
405ea7a0 757
15723a45
NN
758MAKEDIRS= \
759 $(DESTDIR)$(prefix) \
760 $(DESTDIR)$(exec_prefix)
761.PHONY: installdirs
762installdirs: mkinstalldirs
763 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
764
765dir.info: do-install-info
766 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
767 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
768 mv -f dir.info.new dir.info ; \
769 else true ; \
405ea7a0
NN
770 fi
771
15723a45
NN
772dist:
773 @echo "Building a full distribution of this tree isn't done"
774 @echo "via 'make dist'. Check out the etc/ subdirectory"
775
776etags tags: TAGS
777
778# Right now this just builds TAGS in each subdirectory. emacs19 has the
779# ability to use several tags files at once, so there is probably no need
780# to combine them into one big TAGS file (like CVS 1.3 does). We could
781# (if we felt like it) have this Makefile write a piece of elisp which
782# the user could load to tell emacs19 where all the TAGS files we just
783# built are.
784TAGS: do-TAGS
785
786
787# --------------------------------------
788# Modules which run on the build machine
789# --------------------------------------
790[+ FOR build_modules +]
930314a4
NN
791.PHONY: configure-build-[+module+] maybe-configure-build-[+module+]
792maybe-configure-build-[+module+]:
15723a45
NN
793configure-build-[+module+]: $(BUILD_SUBDIR)/[+module+]/Makefile
794$(BUILD_SUBDIR)/[+module+]/Makefile: config.status
795 @[ -d $(BUILD_SUBDIR)/[+module+] ] || mkdir $(BUILD_SUBDIR)/[+module+];\
405ea7a0
NN
796 r=`${PWD}`; export r; \
797 s=`cd $(srcdir); ${PWD}`; export s; \
798 AR="$(AR_FOR_BUILD)"; export AR; \
799 AS="$(AS_FOR_BUILD)"; export AS; \
800 CC="$(CC_FOR_BUILD)"; export CC; \
801 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
802 CXX="$(CXX_FOR_BUILD)"; export CXX; \
803 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
804 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
805 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
806 LD="$(LD_FOR_BUILD)"; export LD; \
807 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
808 NM="$(NM_FOR_BUILD)"; export NM; \
809 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
810 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
e393202e
NN
811 echo Configuring in $(BUILD_SUBDIR)/[+module+]; \
812 cd "$(BUILD_SUBDIR)/[+module+]" || exit 1; \
405ea7a0
NN
813 case $(srcdir) in \
814 /* | [A-Za-z]:[\\/]*) \
815 topdir=$(srcdir) ;; \
816 *) \
817 case "$(BUILD_SUBDIR)" in \
818 .) topdir="../$(srcdir)" ;; \
819 *) topdir="../../$(srcdir)" ;; \
820 esac ;; \
821 esac; \
822 if [ "$(srcdir)" = "." ] ; then \
823 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
e393202e 824 if $(SHELL) $$s/symlink-tree $${topdir}/[+module+] "no-such-file" ; then \
405ea7a0
NN
825 if [ -f Makefile ]; then \
826 if $(MAKE) distclean; then \
827 true; \
828 else \
829 exit 1; \
830 fi; \
831 else \
832 true; \
833 fi; \
834 else \
835 exit 1; \
836 fi; \
837 else \
838 true; \
839 fi; \
840 srcdiroption="--srcdir=."; \
841 libsrcdir="."; \
842 else \
e393202e
NN
843 srcdiroption="--srcdir=$${topdir}/[+module+]"; \
844 libsrcdir="$$s/[+module+]"; \
405ea7a0 845 fi; \
930314a4
NN
846 rm -f no-such-file || : ; \
847 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
848 $(BUILD_CONFIGARGS) $${srcdiroption} \
849 --with-build-subdir="$(BUILD_SUBDIR)" \
15723a45
NN
850 || exit 1
851
852.PHONY: all-build-[+module+] maybe-all-build-[+module+]
853maybe-all-build-[+module+]:
854all-build-[+module+]: configure-build-[+module+]
855 @r=`${PWD}`; export r; \
856 s=`cd $(srcdir); ${PWD}`; export s; \
857 (cd $(BUILD_SUBDIR)/[+module+] && $(MAKE) all)
e393202e 858[+ ENDFOR build_modules +]
405ea7a0 859
15723a45
NN
860# --------------------------------------
861# Modules which run on the host machine
862# --------------------------------------
3866be5d 863[+ FOR host_modules +]
e2b9e2dc
NN
864.PHONY: configure-[+module+] maybe-configure-[+module+]
865maybe-configure-[+module+]:
866configure-[+module+]: [+module+]/Makefile
867
868[+module+]/Makefile: config.status
869 @[ -d [+module+] ] || mkdir [+module+]; \
870 r=`${PWD}`; export r; \
871 s=`cd $(srcdir); ${PWD}`; export s; \
872 CC="$(CC)"; export CC; \
873 CFLAGS="$(CFLAGS)"; export CFLAGS; \
874 CXX="$(CXX)"; export CXX; \
875 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
876 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
877 AR="$(AR)"; export AR; \
878 AS="$(AS)"; export AS; \
879 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
880 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
881 LD="$(LD)"; export LD; \
882 NM="$(NM)"; export NM; \
883 RANLIB="$(RANLIB)"; export RANLIB; \
884 WINDRES="$(WINDRES)"; export WINDRES; \
885 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
886 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
887 fi; \
888 echo Configuring in [+module+]; \
889 cd [+module+] || exit 1; \
890 case $(srcdir) in \
891 \.) \
892 srcdiroption="--srcdir=."; \
893 libsrcdir=".";; \
894 /* | [A-Za-z]:[\\/]*) \
895 srcdiroption="--srcdir=$(srcdir)/[+module+]"; \
896 libsrcdir="$$s/[+module+]";; \
897 *) \
898 srcdiroption="--srcdir=../$(srcdir)/[+module+]"; \
899 libsrcdir="$$s/[+module+]";; \
900 esac; \
901 $(SHELL) $${libsrcdir}/configure \
902 $(HOST_CONFIGARGS) $${srcdiroption} \
903 || exit 1
904
930314a4
NN
905.PHONY: all-[+module+] maybe-all-[+module+]
906maybe-all-[+module+]:
db1ac78d 907all-[+module+]: configure-[+module+]
930314a4 908 @r=`${PWD}`; export r; \
405ea7a0
NN
909 s=`cd $(srcdir); ${PWD}`; export s; \
910 $(SET_LIB_PATH) \
3866be5d
NN
911 (cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
912 IF with_x
913 +] $(X11_FLAGS_TO_PASS)[+
930314a4 914 ENDIF with_x +] all)
405ea7a0 915
3866be5d
NN
916[+ IF no_check +]
917.PHONY: check-[+module+]
918check-[+module+]:
919[+ ELIF no_check_cross +]
920.PHONY: check-[+module+]
921# This module is only tested in a native toolchain.
922check-[+module+]:
405ea7a0 923 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
405ea7a0
NN
924 r=`${PWD}`; export r; \
925 s=`cd $(srcdir); ${PWD}`; export s; \
926 $(SET_LIB_PATH) \
3866be5d
NN
927 (cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
928 IF with_x
929 +] $(X11_FLAGS_TO_PASS)[+
930 ENDIF with_x +] check); \
405ea7a0 931 fi
3866be5d
NN
932[+ ELSE check +]
933.PHONY: check-[+module+]
934check-[+module+]:
930314a4 935 @r=`${PWD}`; export r; \
405ea7a0
NN
936 s=`cd $(srcdir); ${PWD}`; export s; \
937 $(SET_LIB_PATH) \
3866be5d
NN
938 (cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
939 IF with_x
940 +] $(X11_FLAGS_TO_PASS)[+
930314a4 941 ENDIF with_x +] check)
3866be5d 942[+ ENDIF no_check +]
405ea7a0 943
3866be5d 944[+ IF no_install +]
930314a4
NN
945.PHONY: install-[+module+] maybe-install-[+module+]
946maybe-install-[+module+]:
3866be5d
NN
947install-[+module+]:
948[+ ELSE install +]
930314a4
NN
949.PHONY: install-[+module+] maybe-install-[+module+]
950maybe-install-[+module+]:
3866be5d 951install-[+module+]: installdirs
930314a4 952 @r=`${PWD}`; export r; \
405ea7a0
NN
953 s=`cd $(srcdir); ${PWD}`; export s; \
954 $(SET_LIB_PATH) \
3866be5d
NN
955 (cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
956 IF with_x
957 +] $(X11_FLAGS_TO_PASS)[+
930314a4 958 ENDIF with_x +] install)
3866be5d
NN
959[+ ENDIF no_install +]
960[+ ENDFOR host_modules +]
405ea7a0 961
15723a45
NN
962# ---------------------------------------
963# Modules which run on the target machine
964# ---------------------------------------
e393202e 965[+ FOR target_modules +]
930314a4
NN
966.PHONY: configure-target-[+module+] maybe-configure-target-[+module+]
967maybe-configure-target-[+module+]:
15723a45
NN
968configure-target-[+module+]: $(TARGET_SUBDIR)/[+module+]/Makefile
969
db1ac78d
NN
970# Don't manually override CC_FOR_TARGET at make time; get it set right
971# at configure time. Otherwise multilibs may be wrong.
972$(TARGET_SUBDIR)/[+module+]/multilib.out: maybe-all-gcc
15723a45
NN
973 @[ -d $(TARGET_SUBDIR)/[+module+] ] || mkdir $(TARGET_SUBDIR)/[+module+];\
974 r=`${PWD}`; export r; \
975 echo "Configuring multilibs for [+module+]"; \
976 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/[+module+]/multilib.out 2> /dev/null
977
978$(TARGET_SUBDIR)/[+module+]/Makefile: config.status $(TARGET_SUBDIR)/[+module+]/multilib.out
979 @[ -d $(TARGET_SUBDIR)/[+module+] ] || mkdir $(TARGET_SUBDIR)/[+module+];\
405ea7a0
NN
980 r=`${PWD}`; export r; \
981 s=`cd $(srcdir); ${PWD}`; export s; \
982 $(SET_LIB_PATH) \
983 AR="$(AR_FOR_TARGET)"; export AR; \
984 AS="$(AS_FOR_TARGET)"; export AS; \
985 CC="$(CC_FOR_TARGET)"; export CC; \
930314a4
NN
986 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \[+
987 IF raw_cxx +]
988 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
989 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \[+
990 ELSE normal_cxx +]
991 CXX="$(CXX_FOR_TARGET)"; export CXX; \[+
992 ENDIF raw_cxx +]
405ea7a0
NN
993 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
994 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
995 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
996 LD="$(LD_FOR_TARGET)"; export LD; \
997 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
998 NM="$(NM_FOR_TARGET)"; export NM; \
999 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1000 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
e393202e
NN
1001 echo Configuring in $(TARGET_SUBDIR)/[+module+]; \
1002 cd "$(TARGET_SUBDIR)/[+module+]" || exit 1; \
405ea7a0
NN
1003 case $(srcdir) in \
1004 /* | [A-Za-z]:[\\/]*) \
1005 topdir=$(srcdir) ;; \
1006 *) \
1007 case "$(TARGET_SUBDIR)" in \
1008 .) topdir="../$(srcdir)" ;; \
1009 *) topdir="../../$(srcdir)" ;; \
1010 esac ;; \
1011 esac; \
1012 if [ "$(srcdir)" = "." ] ; then \
1013 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
e393202e 1014 if $(SHELL) $$s/symlink-tree $${topdir}/[+module+] "no-such-file" ; then \
405ea7a0
NN
1015 if [ -f Makefile ]; then \
1016 if $(MAKE) distclean; then \
1017 true; \
1018 else \
1019 exit 1; \
1020 fi; \
1021 else \
1022 true; \
1023 fi; \
1024 else \
1025 exit 1; \
1026 fi; \
1027 else \
1028 true; \
1029 fi; \
1030 srcdiroption="--srcdir=."; \
1031 libsrcdir="."; \
1032 else \
e393202e
NN
1033 srcdiroption="--srcdir=$${topdir}/[+module+]"; \
1034 libsrcdir="$$s/[+module+]"; \
405ea7a0 1035 fi; \
930314a4
NN
1036 rm -f no-such-file || : ; \
1037 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1038 $(TARGET_CONFIGARGS) $${srcdiroption} \
1039 --with-target-subdir="$(TARGET_SUBDIR)" \
15723a45 1040 || exit 1
405ea7a0 1041
930314a4
NN
1042.PHONY: all-target-[+module+] maybe-all-target-[+module+]
1043maybe-all-target-[+module+]:
15723a45 1044all-target-[+module+]: configure-target-[+module+]
930314a4 1045 @r=`${PWD}`; export r; \
405ea7a0
NN
1046 s=`cd $(srcdir); ${PWD}`; export s; \
1047 $(SET_LIB_PATH) \
e393202e 1048 (cd $(TARGET_SUBDIR)/[+module+]; \
930314a4
NN
1049 $(MAKE) $(TARGET_FLAGS_TO_PASS) [+
1050 IF raw_cxx
1051 +] 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' [+
1052 ENDIF raw_cxx
1053 +] all)
3866be5d
NN
1054[+ IF no_check +]
1055# Dummy target for uncheckable module.
1056.PHONY: check-target-[+module+]
1057check-target-[+module+]:
1058[+ ELSE check +]
e393202e
NN
1059.PHONY: check-target-[+module+]
1060check-target-[+module+]:
930314a4 1061 @r=`${PWD}`; export r; \
405ea7a0
NN
1062 s=`cd $(srcdir); ${PWD}`; export s; \
1063 $(SET_LIB_PATH) \
e393202e 1064 (cd $(TARGET_SUBDIR)/[+module+]; \
930314a4
NN
1065 $(MAKE) $(TARGET_FLAGS_TO_PASS) [+
1066 IF raw_cxx
1067 +] 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' [+
1068 ENDIF raw_cxx
1069 +] check)
e393202e 1070[+ ENDIF no_check +]
930314a4
NN
1071[+ IF no_install +]
1072.PHONY: install-target-[+module+] maybe-install-target-[+module+]
1073maybe-install-target-[+module+]:
1074# Dummy target for uninstallable.
1075install-target-[+module+]:
1076[+ ELSE install +]
1077.PHONY: install-target-[+module+] maybe-install-target-[+module+]
1078maybe-install-target-[+module+]:
e393202e 1079install-target-[+module+]: installdirs
930314a4 1080 @r=`${PWD}`; export r; \
405ea7a0
NN
1081 s=`cd $(srcdir); ${PWD}`; export s; \
1082 $(SET_LIB_PATH) \
e393202e 1083 (cd $(TARGET_SUBDIR)/[+module+]; \
930314a4 1084 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e
NN
1085[+ ENDIF no_install +]
1086[+ ENDFOR target_modules +]
405ea7a0 1087
15723a45
NN
1088# ----------
1089# GCC module
1090# ----------
1091
1092# Unfortunately, while gcc _should_ be a host module,
1093# libgcc is a target module, and gen* programs are
1094# build modules. So GCC is a sort of hybrid.
1095
405ea7a0 1096# gcc is the only module which uses GCC_FLAGS_TO_PASS.
e2b9e2dc
NN
1097.PHONY: configure-gcc maybe-configure-gcc
1098maybe-configure-gcc:
1099configure-gcc: gcc/Makefile
1100
1101gcc/Makefile: config.status
1102 @[ -d gcc ] || mkdir gcc; \
1103 r=`${PWD}`; export r; \
1104 s=`cd $(srcdir); ${PWD}`; export s; \
1105 CC="$(CC)"; export CC; \
1106 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1107 CXX="$(CXX)"; export CXX; \
1108 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1109 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1110 AR="$(AR)"; export AR; \
1111 AS="$(AS)"; export AS; \
1112 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1113 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1114 LD="$(LD)"; export LD; \
1115 NM="$(NM)"; export NM; \
1116 RANLIB="$(RANLIB)"; export RANLIB; \
1117 WINDRES="$(WINDRES)"; export WINDRES; \
1118 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1119 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1120 fi; \
1121 echo Configuring in gcc; \
1122 cd gcc || exit 1; \
1123 case $(srcdir) in \
1124 \.) \
1125 srcdiroption="--srcdir=."; \
1126 libsrcdir=".";; \
1127 /* | [A-Za-z]:[\\/]*) \
1128 srcdiroption="--srcdir=$(srcdir)/gcc"; \
1129 libsrcdir="$$s/gcc";; \
1130 *) \
1131 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
1132 libsrcdir="$$s/gcc";; \
1133 esac; \
1134 $(SHELL) $${libsrcdir}/configure \
1135 $(HOST_CONFIGARGS) $${srcdiroption} \
1136 || exit 1
1137
db1ac78d
NN
1138# Don't remake gcc if it's already been made by 'bootstrap'; that causes
1139# nothing but trouble. This wart will be fixed eventually by moving
1140# the bootstrap behavior to this file.
930314a4
NN
1141.PHONY: all-gcc maybe-all-gcc
1142maybe-all-gcc:
db1ac78d
NN
1143all-gcc: configure-gcc
1144 @if [ -f gcc/xgcc ] ; then \
1145 exit 0 ; \
1146 else \
405ea7a0
NN
1147 r=`${PWD}`; export r; \
1148 s=`cd $(srcdir); ${PWD}`; export s; \
1149 $(SET_LIB_PATH) \
1150 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
405ea7a0
NN
1151 fi
1152
1153# Building GCC uses some tools for rebuilding "source" files
1154# like texinfo, bison/byacc, etc. So we must depend on those.
1155#
1156# While building GCC, it may be necessary to run various target
1157# programs like the assembler, linker, etc. So we depend on
1158# those too.
1159#
1160# In theory, on an SMP all those dependencies can be resolved
1161# in parallel.
1162#
1aa8389d 1163.PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
db1ac78d 1164bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap configure-gcc
405ea7a0
NN
1165 @r=`${PWD}`; export r; \
1166 s=`cd $(srcdir); ${PWD}`; export s; \
1167 $(SET_LIB_PATH) \
1168 echo "Bootstrapping the compiler"; \
1169 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
1170 @r=`${PWD}`; export r; \
1171 s=`cd $(srcdir); ${PWD}`; export s; \
1172 case "$@" in \
1173 *bootstrap4-lean ) \
1174 msg="Comparing stage3 and stage4 of the compiler"; \
1175 compare=compare3-lean ;; \
1176 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
1177 compare=compare3 ;; \
1178 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
1179 compare=compare-lean ;; \
1180 * ) msg="Comparing stage2 and stage3 of the compiler"; \
1181 compare=compare ;; \
1182 esac; \
1183 $(SET_LIB_PATH) \
1184 echo "$$msg"; \
1185 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
1186 @r=`${PWD}`; export r; \
1187 s=`cd $(srcdir); ${PWD}` ; export s; \
1188 $(SET_LIB_PATH) \
1189 echo "Building runtime libraries"; \
1190 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
1191
1192.PHONY: cross
1193cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1194 @r=`${PWD}`; export r; \
1195 s=`cd $(srcdir); ${PWD}`; export s; \
1196 $(SET_LIB_PATH) \
1197 echo "Building the C and C++ compiler"; \
1198 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
1199 @r=`${PWD}`; export r; \
1200 s=`cd $(srcdir); ${PWD}` ; export s; \
1201 $(SET_LIB_PATH) \
1202 echo "Building runtime libraries"; \
1203 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
1204 LANGUAGES="c c++" all
1205
1206.PHONY: check-gcc
1207check-gcc:
1208 @if [ -f ./gcc/Makefile ] ; then \
1209 r=`${PWD}`; export r; \
1210 s=`cd $(srcdir); ${PWD}`; export s; \
1211 $(SET_LIB_PATH) \
1212 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1213 else \
1214 true; \
1215 fi
1216
1217.PHONY: check-c++
1218check-c++:
1219 @if [ -f ./gcc/Makefile ] ; then \
1220 r=`${PWD}`; export r; \
1221 s=`cd $(srcdir); ${PWD}`; export s; \
1222 $(SET_LIB_PATH) \
1223 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
1224 $(MAKE) check-target-libstdc++-v3; \
1225 else \
1226 true; \
1227 fi
1228
930314a4
NN
1229.PHONY: install-gcc maybe-install-gcc
1230maybe-install-gcc:
405ea7a0
NN
1231install-gcc:
1232 @if [ -f ./gcc/Makefile ] ; then \
1233 r=`${PWD}`; export r; \
1234 s=`cd $(srcdir); ${PWD}`; export s; \
1235 $(SET_LIB_PATH) \
1236 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1237 else \
1238 true; \
1239 fi
1240
15723a45
NN
1241# Install the gcc headers files, but not the fixed include files,
1242# which Cygnus is not allowed to distribute. This rule is very
1243# dependent on the workings of the gcc Makefile.in.
1244.PHONY: gcc-no-fixedincludes
1245gcc-no-fixedincludes:
1246 @if [ -f ./gcc/Makefile ]; then \
1247 rm -rf gcc/tmp-include; \
1248 mv gcc/include gcc/tmp-include 2>/dev/null; \
1249 mkdir gcc/include; \
1250 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1251 touch gcc/stmp-fixinc gcc/include/fixed; \
1252 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1253 r=`${PWD}`; export r; \
1254 s=`cd $(srcdir); ${PWD}` ; export s; \
1255 $(SET_LIB_PATH) \
1256 (cd ./gcc; \
1257 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1258 rm -rf gcc/include; \
1259 mv gcc/tmp-include gcc/include 2>/dev/null; \
1260 else true; fi
1261
ae831be5
NN
1262# --------------------------------------
1263# Dependencies between different modules
1264# --------------------------------------
405ea7a0 1265
ae831be5
NN
1266# There are two types of dependencies here: 'hard' dependencies, where one
1267# module simply won't build without the other; and 'soft' dependencies, where
1268# if the depended-on module is missing, the depending module will do without
1269# or find a substitute somewhere (perhaps installed). Soft dependencies
1270# are specified by depending on a 'maybe-' target. If you're not sure,
1271# it's safer to use a soft dependency.
1272
1273# Host modules specific to gcc.
e2b9e2dc 1274# GCC needs to identify certain tools.
b4a77b47 1275configure-gcc: maybe-configure-binutils maybe-configure-gas maybe-configure-ld maybe-configure-bison maybe-configure-flex
ae831be5
NN
1276all-gcc: maybe-all-libiberty maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
1277# This is a slightly kludgy method of getting dependencies on
1278# all-build-libiberty correct; it would be better to build it every time.
1279all-gcc: maybe-all-build-libiberty
1280all-bootstrap: maybe-all-libiberty maybe-all-texinfo maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
1281
1282# Host modules specific to gdb.
e2b9e2dc 1283# GDB needs to know that the simulator is being built.
b4a77b47 1284configure-gdb: maybe-configure-tcl maybe-configure-tk maybe-configure-sim
ae831be5
NN
1285GDB_TK = @GDB_TK@
1286all-gdb: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-mmalloc maybe-all-readline maybe-all-bison maybe-all-byacc maybe-all-sim $(gdbnlmrequirements) $(GDB_TK)
1287install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui
e2b9e2dc 1288libgui/Makefile: maybe-configure-tcl maybe-configure-tk
ae831be5
NN
1289all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl
1290
1291# Host modules specific to binutils.
b4a77b47 1292configure-bfd: configure-libiberty
930314a4
NN
1293all-bfd: maybe-all-libiberty maybe-all-intl
1294all-binutils: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-flex maybe-all-bison maybe-all-byacc maybe-all-intl
ae831be5
NN
1295# We put install-opcodes before install-binutils because the installed
1296# binutils might be on PATH, and they might need the shared opcodes
1297# library.
1298install-binutils: maybe-install-opcodes
1299all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl
1300all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl
1301all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl
1302all-opcodes: maybe-all-bfd maybe-all-libiberty
1303
1304# Other host modules in the 'src' repository.
930314a4 1305all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk
b4a77b47 1306configure-expect: maybe-configure-tcl maybe-configure-tk
930314a4 1307all-expect: maybe-all-tcl maybe-all-tk
b4a77b47 1308configure-itcl: maybe-configure-tcl maybe-configure-tk
ae831be5
NN
1309all-itcl: maybe-all-tcl maybe-all-tk
1310# We put install-tcl before install-itcl because itcl wants to run a
1311# program on installation which uses the Tcl libraries.
1312install-itcl: maybe-install-tcl
1313all-sid: maybe-all-tcl maybe-all-tk
1314install-sid: maybe-install-tcl maybe-install-tk
a36d530e 1315all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline maybe-configure-gdb
b4a77b47 1316configure-tk: maybe-configure-tcl
ae831be5 1317all-tk: maybe-all-tcl
b4a77b47 1318configure-tix: maybe-configure-tcl maybe-configure-tk
ae831be5
NN
1319all-tix: maybe-all-tcl maybe-all-tk
1320all-texinfo: maybe-all-libiberty
1321
1322# Other host modules. Warning, these are not well tested.
1323all-autoconf: maybe-all-m4 maybe-all-texinfo
1324all-automake: maybe-all-m4 maybe-all-texinfo
1325all-bison: maybe-all-texinfo
1326all-diff: maybe-all-libiberty
1327all-fastjar: maybe-all-zlib maybe-all-libiberty
930314a4
NN
1328all-fileutils: maybe-all-libiberty
1329all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc
930314a4
NN
1330all-grep: maybe-all-libiberty
1331all-gzip: maybe-all-libiberty
1332all-hello: maybe-all-libiberty
930314a4
NN
1333all-m4: maybe-all-libiberty maybe-all-texinfo
1334all-make: maybe-all-libiberty
930314a4
NN
1335all-patch: maybe-all-libiberty
1336all-prms: maybe-all-libiberty
930314a4
NN
1337all-recode: maybe-all-libiberty
1338all-sed: maybe-all-libiberty
1339all-send-pr: maybe-all-prms
930314a4
NN
1340all-snavigator: maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-db maybe-all-grep maybe-all-libgui
1341all-tar: maybe-all-libiberty
1342all-tclX: maybe-all-tcl maybe-all-tk
930314a4 1343all-uudecode: maybe-all-libiberty
ae831be5
NN
1344
1345ALL_GCC = maybe-all-gcc
1346ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss
1347ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3
1348
1349# Target modules specific to gcc.
b4a77b47
DD
1350configure-target-boehm-gc: $(ALL_GCC_C) maybe-configure-target-qthreads
1351configure-target-fastjar: maybe-configure-target-zlib
930314a4 1352all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty
b4a77b47 1353configure-target-libf2c: $(ALL_GCC_C)
ae831be5 1354all-target-libf2c: maybe-all-target-libiberty
b4a77b47
DD
1355configure-target-libffi: $(ALL_GCC_C)
1356configure-target-libjava: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi
ae831be5 1357all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi
b4a77b47 1358configure-target-libobjc: $(ALL_GCC_C)
ae831be5 1359all-target-libobjc: maybe-all-target-libiberty
b4a77b47 1360configure-target-libstdc++-v3: $(ALL_GCC_C)
ae831be5 1361all-target-libstdc++-v3: maybe-all-target-libiberty
b4a77b47 1362configure-target-zlib: $(ALL_GCC_C)
a9590527 1363
ae831be5 1364# Target modules in the 'src' repository.
b4a77b47
DD
1365configure-target-examples: $(ALL_GCC_C)
1366configure-target-libgloss: $(ALL_GCC)
ae831be5 1367all-target-libgloss: maybe-configure-target-newlib
b4a77b47
DD
1368configure-target-libiberty: $(ALL_GCC_C)
1369configure-target-libtermcap: $(ALL_GCC_C)
1370configure-target-newlib: $(ALL_GCC)
1371configure-target-winsup: $(ALL_GCC_C)
ae831be5 1372all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap
a9590527 1373
ae831be5 1374# Other target modules. Warning, these are not well tested.
b4a77b47 1375configure-target-gperf: $(ALL_GCC_CXX)
ae831be5 1376all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3
b4a77b47 1377configure-target-qthreads: $(ALL_GCC_C)
907a7241 1378
930314a4
NN
1379# Dependencies of maybe-foo on foo. These are used because, for example,
1380# all-gcc only depends on all-gas if gas is present and being configured.
1381@maybe_dependencies@
1382
a2cc058a
NN
1383# Serialization dependencies. Host configures don't work well in parallel to
1384# each other, due to contention over config.cache. Target configures and
1385# build configures are similar.
1386@serialization_dependencies@
1387
15723a45
NN
1388# --------------------------------
1389# Regenerating top level configury
1390# --------------------------------
405ea7a0
NN
1391
1392# Rebuilding Makefile.in, using autogen.
907a7241 1393$(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
405ea7a0
NN
1394 cd $(srcdir) && autogen Makefile.def
1395
1396# with the gnu make, this is done automatically.
1397
583d52d7
NN
1398host_makefile_frag=@host_makefile_frag@
1399target_makefile_frag=@target_makefile_frag@
1400
405ea7a0
NN
1401Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
1402 $(SHELL) ./config.status
1403
1404#
405ea7a0
NN
1405
1406.NOEXPORT:
1407MAKEOVERRIDES=
1408
1409# end of Makefile.in
This page took 0.091316 seconds and 4 git commands to generate.