* Makefile.tpl: Add targets for configuring host subdirs in Makefile,
[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@
15723a45 262BASE_CC_FOR_TARGET = @BASE_CC_FOR_TARGET@
58daee98 263CXX_FOR_TARGET = @CXX_FOR_TARGET@
930314a4 264RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
58daee98 265CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
930314a4 266RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
58daee98 267GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
405ea7a0
NN
268
269# If GCC_FOR_TARGET is not overriden on the command line, then this
270# variable is passed down to the gcc Makefile, where it is used to
271# build libgcc2.a. We define it here so that it can itself be
272# overridden on the command line.
852e5f18
NN
273GCC_FOR_TARGET=@GCC_FOR_TARGET@
274USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
405ea7a0 275
852e5f18
NN
276AS_FOR_TARGET=@AS_FOR_TARGET@
277USUAL_AS_FOR_TARGET = ` \
405ea7a0
NN
278 if [ -f $$r/gas/as-new ] ; then \
279 echo $$r/gas/as-new ; \
280 elif [ -f $$r/gcc/xgcc ]; then \
281 $(CC_FOR_TARGET) -print-prog-name=as ; \
282 else \
283 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
284 echo $(AS); \
285 else \
286 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
287 fi; \
288 fi`
289
852e5f18
NN
290LD_FOR_TARGET=@LD_FOR_TARGET@
291USUAL_LD_FOR_TARGET = ` \
405ea7a0
NN
292 if [ -f $$r/ld/ld-new ] ; then \
293 echo $$r/ld/ld-new ; \
294 elif [ -f $$r/gcc/xgcc ]; then \
295 $(CC_FOR_TARGET) -print-prog-name=ld ; \
296 else \
297 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
298 echo $(LD); \
299 else \
300 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
301 fi; \
302 fi`
303
852e5f18
NN
304DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
305USUAL_DLLTOOL_FOR_TARGET = ` \
405ea7a0
NN
306 if [ -f $$r/binutils/dlltool ] ; then \
307 echo $$r/binutils/dlltool ; \
308 else \
309 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
310 echo $(DLLTOOL); \
311 else \
312 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
313 fi; \
314 fi`
315
852e5f18
NN
316WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
317USUAL_WINDRES_FOR_TARGET = ` \
405ea7a0
NN
318 if [ -f $$r/binutils/windres ] ; then \
319 echo $$r/binutils/windres ; \
320 else \
321 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
322 echo $(WINDRES); \
323 else \
324 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
325 fi; \
326 fi`
327
852e5f18
NN
328AR_FOR_TARGET=@AR_FOR_TARGET@
329USUAL_AR_FOR_TARGET = ` \
405ea7a0
NN
330 if [ -f $$r/binutils/ar ] ; then \
331 echo $$r/binutils/ar ; \
332 else \
333 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
334 echo $(AR); \
335 else \
336 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
337 fi; \
338 fi`
339
852e5f18
NN
340RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
341USUAL_RANLIB_FOR_TARGET = ` \
405ea7a0
NN
342 if [ -f $$r/binutils/ranlib ] ; then \
343 echo $$r/binutils/ranlib ; \
344 else \
345 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
346 if [ x'$(RANLIB)' != x ]; then \
347 echo $(RANLIB); \
348 else \
349 echo ranlib; \
350 fi; \
351 else \
352 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
353 fi; \
354 fi`
355
852e5f18
NN
356NM_FOR_TARGET=@NM_FOR_TARGET@
357USUAL_NM_FOR_TARGET = ` \
405ea7a0
NN
358 if [ -f $$r/binutils/nm-new ] ; then \
359 echo $$r/binutils/nm-new ; \
360 elif [ -f $$r/gcc/xgcc ]; then \
361 $(CC_FOR_TARGET) -print-prog-name=nm ; \
362 else \
363 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
364 echo $(NM); \
365 else \
366 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
367 fi; \
368 fi`
369
370# The first rule in the file had better be this one. Don't put any above it.
371# This lives here to allow makefile fragments to contain dependencies.
372all: all.normal
373.PHONY: all
374
405ea7a0
NN
375#### host and target specific makefile fragments come in here.
376###
377
378# Flags to pass down to all sub-makes.
379# Please keep these in alphabetical order.
380BASE_FLAGS_TO_PASS = \
381 "AR_FLAGS=$(AR_FLAGS)" \
382 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
383 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
384 "BISON=$(BISON)" \
385 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
386 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
387 "CFLAGS=$(CFLAGS)" \
388 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
389 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
390 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
391 "CXXFLAGS=$(CXXFLAGS)" \
392 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
393 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
394 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
395 "INSTALL=$(INSTALL)" \
396 "INSTALL_DATA=$(INSTALL_DATA)" \
397 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
398 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
399 "LDFLAGS=$(LDFLAGS)" \
400 "LEX=$(LEX)" \
401 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
402 "LIBCFLAGS=$(LIBCFLAGS)" \
403 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
404 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
405 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
406 "M4=$(M4)" \
407 "MAKE=$(MAKE)" \
408 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
409 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
410 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
411 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
412 "SHELL=$(SHELL)" \
413 "EXPECT=$(EXPECT)" \
414 "RUNTEST=$(RUNTEST)" \
415 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
416 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
417 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
418 "YACC=$(YACC)" \
419 "bindir=$(bindir)" \
420 "datadir=$(datadir)" \
421 "exec_prefix=$(exec_prefix)" \
422 "includedir=$(includedir)" \
423 "infodir=$(infodir)" \
424 "libdir=$(libdir)" \
425 "libexecdir=$(libexecdir)" \
426 "lispdir=$(lispdir)" \
427 "libstdcxx_incdir=$(libstdcxx_incdir)" \
428 "libsubdir=$(libsubdir)" \
429 "localstatedir=$(localstatedir)" \
430 "mandir=$(mandir)" \
431 "oldincludedir=$(oldincludedir)" \
432 "prefix=$(prefix)" \
433 "sbindir=$(sbindir)" \
434 "sharedstatedir=$(sharedstatedir)" \
435 "sysconfdir=$(sysconfdir)" \
436 "tooldir=$(tooldir)" \
437 "build_tooldir=$(build_tooldir)" \
438 "gxx_include_dir=$(gxx_include_dir)" \
439 "gcc_version=$(gcc_version)" \
440 "gcc_version_trigger=$(gcc_version_trigger)" \
441 "target_alias=$(target_alias)"
442
443# For any flags above that may contain shell code that varies from one
444# target library to another. When doing recursive invocations of the
445# top-level Makefile, we don't want the outer make to evaluate them,
446# so we pass these variables down unchanged. They must not contain
447# single nor double quotes.
448RECURSE_FLAGS = \
930314a4
NN
449 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
450 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
405ea7a0
NN
451
452# Flags to pass down to most sub-makes, in which we're building with
453# the host environment.
454# If any variables are added here, they must be added to do-*, below.
455EXTRA_HOST_FLAGS = \
456 'AR=$(AR)' \
457 'AS=$(AS)' \
458 'CC=$(CC)' \
459 'CXX=$(CXX)' \
460 'DLLTOOL=$(DLLTOOL)' \
461 'LD=$(LD)' \
462 'NM=$(NM)' \
463 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
464 'WINDRES=$(WINDRES)'
465
466FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
467
468# Flags that are concerned with the location of the X11 include files
469# and library files
470#
471# NOTE: until the top-level is getting the values via autoconf, it only
472# causes problems to have this top-level Makefile overriding the autoconf-set
473# values in child directories. Only variables that don't conflict with
474# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
475#
476X11_FLAGS_TO_PASS = \
477 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
478 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
479
480# Flags to pass down to makes which are built with the target environment.
481# The double $ decreases the length of the command line; the variables
482# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
483# If any variables are added here, they must be added to do-*, below.
484EXTRA_TARGET_FLAGS = \
485 'AR=$$(AR_FOR_TARGET)' \
486 'AS=$$(AS_FOR_TARGET)' \
487 'CC=$$(CC_FOR_TARGET)' \
488 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
489 'CXX=$$(CXX_FOR_TARGET)' \
490 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
491 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
492 'LD=$$(LD_FOR_TARGET)' \
493 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
494 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
495 'NM=$$(NM_FOR_TARGET)' \
496 'RANLIB=$$(RANLIB_FOR_TARGET)' \
497 'WINDRES=$$(WINDRES_FOR_TARGET)'
498
499TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
500
501# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
502# unfortunately needs the native compiler and the target ar and
503# ranlib.
504# If any variables are added here, they must be added to do-*, below.
505# The HOST_* variables are a special case, which are used for the gcc
506# cross-building scheme.
507EXTRA_GCC_FLAGS = \
508 'AR=$(AR)' \
509 'AS=$(AS)' \
510 'CC=$(CC)' \
511 'CXX=$(CXX)' \
512 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
3866be5d 513 'BUILD_CC=$(CC_FOR_BUILD)' \
405ea7a0
NN
514 'BUILD_PREFIX=$(BUILD_PREFIX)' \
515 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
516 'NM=$(NM)' \
517 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
518 'WINDRES=$$(WINDRES_FOR_TARGET)' \
519 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
520 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
521 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
522 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
523 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
524 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
525 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
526 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
527 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
528 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
529 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
530
531GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
532
405ea7a0
NN
533# This is a list of the configure targets for all of the modules which
534# are compiled using the target tools.
52d7cdee
NN
535CONFIGURE_TARGET_MODULES =[+
536 FOR target_modules +] \
537 configure-target-[+module+][+
538 ENDFOR target_modules +]
405ea7a0 539
3866be5d 540configure-target: $(CONFIGURE_TARGET_MODULES)
405ea7a0
NN
541
542# This is a list of the targets for which we can do a clean-{target}.
52d7cdee
NN
543CLEAN_MODULES =[+
544 FOR host_modules +][+
545 IF (not (or (exist? "no_clean") (exist? "with_x"))) +] \
546 clean-[+module+][+
547 ENDIF no_clean +][+
548 ENDFOR host_modules +]
405ea7a0
NN
549
550# All of the target modules that can be cleaned
52d7cdee
NN
551CLEAN_TARGET_MODULES =[+
552 FOR target_modules +][+
553 IF (not (exist? "no_clean")) +] \
554 clean-target-[+module+][+
555 ENDIF no_clean +][+
556 ENDFOR target_modules +]
405ea7a0
NN
557
558# All of the x11 modules that can be cleaned
852e5f18
NN
559CLEAN_X11_MODULES = [+ FOR host_modules +][+ IF with_x +]\
560 clean-[+module+] [+ ENDIF with_x +][+ ENDFOR host_modules +]
405ea7a0
NN
561
562# The target built for a native build.
3866be5d 563# This list only includes modules actually being configured and built.
405ea7a0 564.PHONY: all.normal
3866be5d
NN
565all.normal: @all_build_modules@ \
566 @all_host_modules@ \
567 @all_target_modules@
568
569all-target: @all_target_modules@
405ea7a0
NN
570
571# Do a target for all the subdirectories. A ``make do-X'' will do a
572# ``make X'' in all subdirectories (because, in general, there is a
573# dependency (below) of X upon do-X, a ``make X'' will also do this,
574# but it may do additional work as well).
575# This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
576# because it is so large that it can easily overflow the command line
577# length limit on some systems.
e393202e
NN
578[+ FOR recursive_targets +]
579.PHONY: do-[+target+]
580do-[+target+]:
581 @r=`${PWD}`; export r; \
405ea7a0
NN
582 s=`cd $(srcdir); ${PWD}`; export s; \
583 $(SET_LIB_PATH) \
584 for i in $(SUBDIRS) -dummy-; do \
585 if [ -f ./$$i/Makefile ]; then \
586 case $$i in \
587 gcc) \
588 for flag in $(EXTRA_GCC_FLAGS); do \
589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
590 done; \
591 ;; \
592 *) \
593 for flag in $(EXTRA_HOST_FLAGS); do \
594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
595 done; \
596 ;; \
597 esac ; \
598 if (cd ./$$i; \
599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
601 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
e393202e 603 [+target+]); \
405ea7a0
NN
604 then true; else exit 1; fi; \
605 else true; fi; \
606 done
e393202e 607 # Break into two pieces
405ea7a0
NN
608 r=`${PWD}`; export r; \
609 s=`cd $(srcdir); ${PWD}`; export s; \
610 $(SET_LIB_PATH) \
611 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
612 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
613 for flag in $(EXTRA_TARGET_FLAGS); do \
614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
615 done; \
616 if (cd $(TARGET_SUBDIR)/$$i; \
617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
619 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
e393202e 621 [+target+]); \
405ea7a0
NN
622 then true; else exit 1; fi; \
623 else true; fi; \
624 done
e393202e
NN
625[+ ENDFOR recursive_targets +]
626
405ea7a0
NN
627
628# Here are the targets which correspond to the do-X targets.
629
630.PHONY: info installcheck dvi install-info
631.PHONY: clean distclean mostlyclean maintainer-clean realclean
632.PHONY: local-clean local-distclean local-maintainer-clean
633info: do-info
634installcheck: do-installcheck
635dvi: do-dvi
636
637# Make sure makeinfo is built before we do a `make info'.
638do-info: all-texinfo
639
640install-info: do-install-info dir.info
641 s=`cd $(srcdir); ${PWD}`; export s; \
642 if [ -f dir.info ] ; then \
643 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
644 else true ; fi
645
646local-clean:
647 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
648
649local-distclean:
650 -rm -f Makefile config.status config.cache mh-frag mt-frag
651 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
652 rm -rf $(TARGET_SUBDIR); \
653 else true; fi
654 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
655 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
656 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
657 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
658 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
659
660local-maintainer-clean:
661 @echo "This command is intended for maintainers to use;"
662 @echo "it deletes files that may require special tools to rebuild."
663
664clean: do-clean local-clean
665mostlyclean: do-mostlyclean local-clean
666distclean: do-distclean local-clean local-distclean
667maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
668maintainer-clean: local-distclean
669realclean: maintainer-clean
670
671# This rule is used to clean specific modules.
672.PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
673$(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
674 @dir=`echo $@ | sed -e 's/clean-//'`; \
675 if [ -f ./$${dir}/Makefile ] ; then \
676 r=`${PWD}`; export r; \
677 s=`cd $(srcdir); ${PWD}`; export s; \
678 $(SET_LIB_PATH) \
679 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
680 else \
681 true; \
682 fi
683
684.PHONY: $(CLEAN_TARGET_MODULES)
685$(CLEAN_TARGET_MODULES):
686 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
687 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
688 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
689 r=`${PWD}`; export r; \
690 s=`cd $(srcdir); ${PWD}`; export s; \
691 $(SET_LIB_PATH) \
692 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
693 else \
694 true; \
695 fi
696
697clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
698clean-target-libgcc:
699 test ! -d gcc/libgcc || \
700 (cd gcc/libgcc && find . -type d -print) | \
701 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
702 -rm -rf gcc/libgcc
703
704# Check target.
705
706.PHONY: check do-check
707check:
708 $(MAKE) do-check NOTPARALLEL=parallel-ok
709
3866be5d
NN
710# Only include modules actually being configured and built.
711do-check: @check_host_modules@ \
712 @check_target_modules@
405ea7a0
NN
713
714# Automated reporting of test results.
715
716warning.log: build.log
717 $(srcdir)/contrib/warn_summary build.log > $@
718
719mail-report.log:
720 if test x'$(BOOT_CFLAGS)' != x''; then \
721 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
722 fi; \
723 $(srcdir)/contrib/test_summary -t >$@
724 chmod +x $@
725 echo If you really want to send e-mail, run ./$@ now
726
727mail-report-with-warnings.log: warning.log
728 if test x'$(BOOT_CFLAGS)' != x''; then \
729 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
730 fi; \
731 $(srcdir)/contrib/test_summary -t -i warning.log >$@
732 chmod +x $@
733 echo If you really want to send e-mail, run ./$@ now
734
735# Installation targets.
736
ae831be5 737.PHONY: install uninstall
3866be5d
NN
738install: installdirs @install_host_modules@ @install_target_modules@
739
740install-target: @install_target_modules@
405ea7a0
NN
741
742uninstall:
743 @echo "the uninstall target is not supported in this tree"
744
405ea7a0
NN
745.PHONY: install.all
746install.all: install-no-fixedincludes
747 @if [ -f ./gcc/Makefile ] ; then \
748 r=`${PWD}` ; export r ; \
749 $(SET_LIB_PATH) \
750 (cd ./gcc; \
751 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
752 else \
753 true ; \
754 fi
755
756# install-no-fixedincludes is used because Cygnus can not distribute
757# the fixed header files.
758.PHONY: install-no-fixedincludes
3866be5d
NN
759install-no-fixedincludes: installdirs @install_host_modules_nogcc@ \
760 @install_target_modules@ gcc-no-fixedincludes
405ea7a0 761
15723a45 762### other supporting targets
405ea7a0 763
15723a45
NN
764MAKEDIRS= \
765 $(DESTDIR)$(prefix) \
766 $(DESTDIR)$(exec_prefix)
767.PHONY: installdirs
768installdirs: mkinstalldirs
769 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
770
771dir.info: do-install-info
772 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
773 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
774 mv -f dir.info.new dir.info ; \
775 else true ; \
405ea7a0
NN
776 fi
777
15723a45
NN
778dist:
779 @echo "Building a full distribution of this tree isn't done"
780 @echo "via 'make dist'. Check out the etc/ subdirectory"
781
782etags tags: TAGS
783
784# Right now this just builds TAGS in each subdirectory. emacs19 has the
785# ability to use several tags files at once, so there is probably no need
786# to combine them into one big TAGS file (like CVS 1.3 does). We could
787# (if we felt like it) have this Makefile write a piece of elisp which
788# the user could load to tell emacs19 where all the TAGS files we just
789# built are.
790TAGS: do-TAGS
791
792
793# --------------------------------------
794# Modules which run on the build machine
795# --------------------------------------
796[+ FOR build_modules +]
930314a4
NN
797.PHONY: configure-build-[+module+] maybe-configure-build-[+module+]
798maybe-configure-build-[+module+]:
15723a45
NN
799configure-build-[+module+]: $(BUILD_SUBDIR)/[+module+]/Makefile
800$(BUILD_SUBDIR)/[+module+]/Makefile: config.status
801 @[ -d $(BUILD_SUBDIR)/[+module+] ] || mkdir $(BUILD_SUBDIR)/[+module+];\
405ea7a0
NN
802 r=`${PWD}`; export r; \
803 s=`cd $(srcdir); ${PWD}`; export s; \
804 AR="$(AR_FOR_BUILD)"; export AR; \
805 AS="$(AS_FOR_BUILD)"; export AS; \
806 CC="$(CC_FOR_BUILD)"; export CC; \
807 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
808 CXX="$(CXX_FOR_BUILD)"; export CXX; \
809 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
810 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
811 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
812 LD="$(LD_FOR_BUILD)"; export LD; \
813 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
814 NM="$(NM_FOR_BUILD)"; export NM; \
815 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
816 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
e393202e
NN
817 echo Configuring in $(BUILD_SUBDIR)/[+module+]; \
818 cd "$(BUILD_SUBDIR)/[+module+]" || exit 1; \
405ea7a0
NN
819 case $(srcdir) in \
820 /* | [A-Za-z]:[\\/]*) \
821 topdir=$(srcdir) ;; \
822 *) \
823 case "$(BUILD_SUBDIR)" in \
824 .) topdir="../$(srcdir)" ;; \
825 *) topdir="../../$(srcdir)" ;; \
826 esac ;; \
827 esac; \
828 if [ "$(srcdir)" = "." ] ; then \
829 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
e393202e 830 if $(SHELL) $$s/symlink-tree $${topdir}/[+module+] "no-such-file" ; then \
405ea7a0
NN
831 if [ -f Makefile ]; then \
832 if $(MAKE) distclean; then \
833 true; \
834 else \
835 exit 1; \
836 fi; \
837 else \
838 true; \
839 fi; \
840 else \
841 exit 1; \
842 fi; \
843 else \
844 true; \
845 fi; \
846 srcdiroption="--srcdir=."; \
847 libsrcdir="."; \
848 else \
e393202e
NN
849 srcdiroption="--srcdir=$${topdir}/[+module+]"; \
850 libsrcdir="$$s/[+module+]"; \
405ea7a0 851 fi; \
930314a4
NN
852 rm -f no-such-file || : ; \
853 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
854 $(BUILD_CONFIGARGS) $${srcdiroption} \
855 --with-build-subdir="$(BUILD_SUBDIR)" \
15723a45
NN
856 || exit 1
857
858.PHONY: all-build-[+module+] maybe-all-build-[+module+]
859maybe-all-build-[+module+]:
860all-build-[+module+]: configure-build-[+module+]
861 @r=`${PWD}`; export r; \
862 s=`cd $(srcdir); ${PWD}`; export s; \
863 (cd $(BUILD_SUBDIR)/[+module+] && $(MAKE) all)
e393202e 864[+ ENDFOR build_modules +]
405ea7a0 865
15723a45
NN
866# --------------------------------------
867# Modules which run on the host machine
868# --------------------------------------
3866be5d 869[+ FOR host_modules +]
e2b9e2dc
NN
870.PHONY: configure-[+module+] maybe-configure-[+module+]
871maybe-configure-[+module+]:
872configure-[+module+]: [+module+]/Makefile
873
874[+module+]/Makefile: config.status
875 @[ -d [+module+] ] || mkdir [+module+]; \
876 r=`${PWD}`; export r; \
877 s=`cd $(srcdir); ${PWD}`; export s; \
878 CC="$(CC)"; export CC; \
879 CFLAGS="$(CFLAGS)"; export CFLAGS; \
880 CXX="$(CXX)"; export CXX; \
881 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
882 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
883 AR="$(AR)"; export AR; \
884 AS="$(AS)"; export AS; \
885 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
886 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
887 LD="$(LD)"; export LD; \
888 NM="$(NM)"; export NM; \
889 RANLIB="$(RANLIB)"; export RANLIB; \
890 WINDRES="$(WINDRES)"; export WINDRES; \
891 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
892 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
893 fi; \
894 echo Configuring in [+module+]; \
895 cd [+module+] || exit 1; \
896 case $(srcdir) in \
897 \.) \
898 srcdiroption="--srcdir=."; \
899 libsrcdir=".";; \
900 /* | [A-Za-z]:[\\/]*) \
901 srcdiroption="--srcdir=$(srcdir)/[+module+]"; \
902 libsrcdir="$$s/[+module+]";; \
903 *) \
904 srcdiroption="--srcdir=../$(srcdir)/[+module+]"; \
905 libsrcdir="$$s/[+module+]";; \
906 esac; \
907 $(SHELL) $${libsrcdir}/configure \
908 $(HOST_CONFIGARGS) $${srcdiroption} \
909 || exit 1
910
930314a4
NN
911.PHONY: all-[+module+] maybe-all-[+module+]
912maybe-all-[+module+]:
3866be5d 913all-[+module+]:
930314a4 914 @r=`${PWD}`; export r; \
405ea7a0
NN
915 s=`cd $(srcdir); ${PWD}`; export s; \
916 $(SET_LIB_PATH) \
3866be5d
NN
917 (cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
918 IF with_x
919 +] $(X11_FLAGS_TO_PASS)[+
930314a4 920 ENDIF with_x +] all)
405ea7a0 921
3866be5d
NN
922[+ IF no_check +]
923.PHONY: check-[+module+]
924check-[+module+]:
925[+ ELIF no_check_cross +]
926.PHONY: check-[+module+]
927# This module is only tested in a native toolchain.
928check-[+module+]:
405ea7a0 929 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
405ea7a0
NN
930 r=`${PWD}`; export r; \
931 s=`cd $(srcdir); ${PWD}`; export s; \
932 $(SET_LIB_PATH) \
3866be5d
NN
933 (cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
934 IF with_x
935 +] $(X11_FLAGS_TO_PASS)[+
936 ENDIF with_x +] check); \
405ea7a0 937 fi
3866be5d
NN
938[+ ELSE check +]
939.PHONY: check-[+module+]
940check-[+module+]:
930314a4 941 @r=`${PWD}`; export r; \
405ea7a0
NN
942 s=`cd $(srcdir); ${PWD}`; export s; \
943 $(SET_LIB_PATH) \
3866be5d
NN
944 (cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
945 IF with_x
946 +] $(X11_FLAGS_TO_PASS)[+
930314a4 947 ENDIF with_x +] check)
3866be5d 948[+ ENDIF no_check +]
405ea7a0 949
3866be5d 950[+ IF no_install +]
930314a4
NN
951.PHONY: install-[+module+] maybe-install-[+module+]
952maybe-install-[+module+]:
3866be5d
NN
953install-[+module+]:
954[+ ELSE install +]
930314a4
NN
955.PHONY: install-[+module+] maybe-install-[+module+]
956maybe-install-[+module+]:
3866be5d 957install-[+module+]: installdirs
930314a4 958 @r=`${PWD}`; export r; \
405ea7a0
NN
959 s=`cd $(srcdir); ${PWD}`; export s; \
960 $(SET_LIB_PATH) \
3866be5d
NN
961 (cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
962 IF with_x
963 +] $(X11_FLAGS_TO_PASS)[+
930314a4 964 ENDIF with_x +] install)
3866be5d
NN
965[+ ENDIF no_install +]
966[+ ENDFOR host_modules +]
405ea7a0 967
15723a45
NN
968# ---------------------------------------
969# Modules which run on the target machine
970# ---------------------------------------
e393202e 971[+ FOR target_modules +]
930314a4
NN
972.PHONY: configure-target-[+module+] maybe-configure-target-[+module+]
973maybe-configure-target-[+module+]:
15723a45
NN
974configure-target-[+module+]: $(TARGET_SUBDIR)/[+module+]/Makefile
975
976$(TARGET_SUBDIR)/[+module+]/multilib.out: $(BASE_CC_FOR_TARGET)
977 @[ -d $(TARGET_SUBDIR)/[+module+] ] || mkdir $(TARGET_SUBDIR)/[+module+];\
978 r=`${PWD}`; export r; \
979 echo "Configuring multilibs for [+module+]"; \
980 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/[+module+]/multilib.out 2> /dev/null
981
982$(TARGET_SUBDIR)/[+module+]/Makefile: config.status $(TARGET_SUBDIR)/[+module+]/multilib.out
983 @[ -d $(TARGET_SUBDIR)/[+module+] ] || mkdir $(TARGET_SUBDIR)/[+module+];\
405ea7a0
NN
984 r=`${PWD}`; export r; \
985 s=`cd $(srcdir); ${PWD}`; export s; \
986 $(SET_LIB_PATH) \
987 AR="$(AR_FOR_TARGET)"; export AR; \
988 AS="$(AS_FOR_TARGET)"; export AS; \
989 CC="$(CC_FOR_TARGET)"; export CC; \
930314a4
NN
990 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \[+
991 IF raw_cxx +]
992 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
993 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \[+
994 ELSE normal_cxx +]
995 CXX="$(CXX_FOR_TARGET)"; export CXX; \[+
996 ENDIF raw_cxx +]
405ea7a0
NN
997 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
998 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
999 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1000 LD="$(LD_FOR_TARGET)"; export LD; \
1001 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1002 NM="$(NM_FOR_TARGET)"; export NM; \
1003 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1004 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
e393202e
NN
1005 echo Configuring in $(TARGET_SUBDIR)/[+module+]; \
1006 cd "$(TARGET_SUBDIR)/[+module+]" || exit 1; \
405ea7a0
NN
1007 case $(srcdir) in \
1008 /* | [A-Za-z]:[\\/]*) \
1009 topdir=$(srcdir) ;; \
1010 *) \
1011 case "$(TARGET_SUBDIR)" in \
1012 .) topdir="../$(srcdir)" ;; \
1013 *) topdir="../../$(srcdir)" ;; \
1014 esac ;; \
1015 esac; \
1016 if [ "$(srcdir)" = "." ] ; then \
1017 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
e393202e 1018 if $(SHELL) $$s/symlink-tree $${topdir}/[+module+] "no-such-file" ; then \
405ea7a0
NN
1019 if [ -f Makefile ]; then \
1020 if $(MAKE) distclean; then \
1021 true; \
1022 else \
1023 exit 1; \
1024 fi; \
1025 else \
1026 true; \
1027 fi; \
1028 else \
1029 exit 1; \
1030 fi; \
1031 else \
1032 true; \
1033 fi; \
1034 srcdiroption="--srcdir=."; \
1035 libsrcdir="."; \
1036 else \
e393202e
NN
1037 srcdiroption="--srcdir=$${topdir}/[+module+]"; \
1038 libsrcdir="$$s/[+module+]"; \
405ea7a0 1039 fi; \
930314a4
NN
1040 rm -f no-such-file || : ; \
1041 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1042 $(TARGET_CONFIGARGS) $${srcdiroption} \
1043 --with-target-subdir="$(TARGET_SUBDIR)" \
15723a45 1044 || exit 1
405ea7a0 1045
930314a4
NN
1046.PHONY: all-target-[+module+] maybe-all-target-[+module+]
1047maybe-all-target-[+module+]:
15723a45 1048all-target-[+module+]: configure-target-[+module+]
930314a4 1049 @r=`${PWD}`; export r; \
405ea7a0
NN
1050 s=`cd $(srcdir); ${PWD}`; export s; \
1051 $(SET_LIB_PATH) \
e393202e 1052 (cd $(TARGET_SUBDIR)/[+module+]; \
930314a4
NN
1053 $(MAKE) $(TARGET_FLAGS_TO_PASS) [+
1054 IF raw_cxx
1055 +] 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' [+
1056 ENDIF raw_cxx
1057 +] all)
3866be5d
NN
1058[+ IF no_check +]
1059# Dummy target for uncheckable module.
1060.PHONY: check-target-[+module+]
1061check-target-[+module+]:
1062[+ ELSE check +]
e393202e
NN
1063.PHONY: check-target-[+module+]
1064check-target-[+module+]:
930314a4 1065 @r=`${PWD}`; export r; \
405ea7a0
NN
1066 s=`cd $(srcdir); ${PWD}`; export s; \
1067 $(SET_LIB_PATH) \
e393202e 1068 (cd $(TARGET_SUBDIR)/[+module+]; \
930314a4
NN
1069 $(MAKE) $(TARGET_FLAGS_TO_PASS) [+
1070 IF raw_cxx
1071 +] 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' [+
1072 ENDIF raw_cxx
1073 +] check)
e393202e 1074[+ ENDIF no_check +]
930314a4
NN
1075[+ IF no_install +]
1076.PHONY: install-target-[+module+] maybe-install-target-[+module+]
1077maybe-install-target-[+module+]:
1078# Dummy target for uninstallable.
1079install-target-[+module+]:
1080[+ ELSE install +]
1081.PHONY: install-target-[+module+] maybe-install-target-[+module+]
1082maybe-install-target-[+module+]:
e393202e 1083install-target-[+module+]: installdirs
930314a4 1084 @r=`${PWD}`; export r; \
405ea7a0
NN
1085 s=`cd $(srcdir); ${PWD}`; export s; \
1086 $(SET_LIB_PATH) \
e393202e 1087 (cd $(TARGET_SUBDIR)/[+module+]; \
930314a4 1088 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e
NN
1089[+ ENDIF no_install +]
1090[+ ENDFOR target_modules +]
405ea7a0 1091
15723a45
NN
1092# ----------
1093# GCC module
1094# ----------
1095
1096# Unfortunately, while gcc _should_ be a host module,
1097# libgcc is a target module, and gen* programs are
1098# build modules. So GCC is a sort of hybrid.
1099
405ea7a0 1100# gcc is the only module which uses GCC_FLAGS_TO_PASS.
e2b9e2dc
NN
1101.PHONY: configure-gcc maybe-configure-gcc
1102maybe-configure-gcc:
1103configure-gcc: gcc/Makefile
1104
1105gcc/Makefile: config.status
1106 @[ -d gcc ] || mkdir gcc; \
1107 r=`${PWD}`; export r; \
1108 s=`cd $(srcdir); ${PWD}`; export s; \
1109 CC="$(CC)"; export CC; \
1110 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1111 CXX="$(CXX)"; export CXX; \
1112 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1113 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1114 AR="$(AR)"; export AR; \
1115 AS="$(AS)"; export AS; \
1116 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1117 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1118 LD="$(LD)"; export LD; \
1119 NM="$(NM)"; export NM; \
1120 RANLIB="$(RANLIB)"; export RANLIB; \
1121 WINDRES="$(WINDRES)"; export WINDRES; \
1122 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1123 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1124 fi; \
1125 echo Configuring in gcc; \
1126 cd gcc || exit 1; \
1127 case $(srcdir) in \
1128 \.) \
1129 srcdiroption="--srcdir=."; \
1130 libsrcdir=".";; \
1131 /* | [A-Za-z]:[\\/]*) \
1132 srcdiroption="--srcdir=$(srcdir)/gcc"; \
1133 libsrcdir="$$s/gcc";; \
1134 *) \
1135 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
1136 libsrcdir="$$s/gcc";; \
1137 esac; \
1138 $(SHELL) $${libsrcdir}/configure \
1139 $(HOST_CONFIGARGS) $${srcdiroption} \
1140 || exit 1
1141
930314a4
NN
1142.PHONY: all-gcc maybe-all-gcc
1143maybe-all-gcc:
405ea7a0
NN
1144all-gcc:
1145 @if [ -f ./gcc/Makefile ] ; then \
1146 r=`${PWD}`; export r; \
1147 s=`cd $(srcdir); ${PWD}`; export s; \
1148 $(SET_LIB_PATH) \
1149 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1150 else \
1151 true; \
1152 fi
1153
1154# Building GCC uses some tools for rebuilding "source" files
1155# like texinfo, bison/byacc, etc. So we must depend on those.
1156#
1157# While building GCC, it may be necessary to run various target
1158# programs like the assembler, linker, etc. So we depend on
1159# those too.
1160#
1161# In theory, on an SMP all those dependencies can be resolved
1162# in parallel.
1163#
1aa8389d
DD
1164.PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
1165bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap
405ea7a0
NN
1166 @r=`${PWD}`; export r; \
1167 s=`cd $(srcdir); ${PWD}`; export s; \
1168 $(SET_LIB_PATH) \
1169 echo "Bootstrapping the compiler"; \
1170 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
1171 @r=`${PWD}`; export r; \
1172 s=`cd $(srcdir); ${PWD}`; export s; \
1173 case "$@" in \
1174 *bootstrap4-lean ) \
1175 msg="Comparing stage3 and stage4 of the compiler"; \
1176 compare=compare3-lean ;; \
1177 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
1178 compare=compare3 ;; \
1179 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
1180 compare=compare-lean ;; \
1181 * ) msg="Comparing stage2 and stage3 of the compiler"; \
1182 compare=compare ;; \
1183 esac; \
1184 $(SET_LIB_PATH) \
1185 echo "$$msg"; \
1186 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
1187 @r=`${PWD}`; export r; \
1188 s=`cd $(srcdir); ${PWD}` ; export s; \
1189 $(SET_LIB_PATH) \
1190 echo "Building runtime libraries"; \
1191 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
1192
1193.PHONY: cross
1194cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1195 @r=`${PWD}`; export r; \
1196 s=`cd $(srcdir); ${PWD}`; export s; \
1197 $(SET_LIB_PATH) \
1198 echo "Building the C and C++ compiler"; \
1199 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
1200 @r=`${PWD}`; export r; \
1201 s=`cd $(srcdir); ${PWD}` ; export s; \
1202 $(SET_LIB_PATH) \
1203 echo "Building runtime libraries"; \
1204 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
1205 LANGUAGES="c c++" all
1206
1207.PHONY: check-gcc
1208check-gcc:
1209 @if [ -f ./gcc/Makefile ] ; then \
1210 r=`${PWD}`; export r; \
1211 s=`cd $(srcdir); ${PWD}`; export s; \
1212 $(SET_LIB_PATH) \
1213 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1214 else \
1215 true; \
1216 fi
1217
1218.PHONY: check-c++
1219check-c++:
1220 @if [ -f ./gcc/Makefile ] ; then \
1221 r=`${PWD}`; export r; \
1222 s=`cd $(srcdir); ${PWD}`; export s; \
1223 $(SET_LIB_PATH) \
1224 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
1225 $(MAKE) check-target-libstdc++-v3; \
1226 else \
1227 true; \
1228 fi
1229
930314a4
NN
1230.PHONY: install-gcc maybe-install-gcc
1231maybe-install-gcc:
405ea7a0
NN
1232install-gcc:
1233 @if [ -f ./gcc/Makefile ] ; then \
1234 r=`${PWD}`; export r; \
1235 s=`cd $(srcdir); ${PWD}`; export s; \
1236 $(SET_LIB_PATH) \
1237 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1238 else \
1239 true; \
1240 fi
1241
15723a45
NN
1242# Install the gcc headers files, but not the fixed include files,
1243# which Cygnus is not allowed to distribute. This rule is very
1244# dependent on the workings of the gcc Makefile.in.
1245.PHONY: gcc-no-fixedincludes
1246gcc-no-fixedincludes:
1247 @if [ -f ./gcc/Makefile ]; then \
1248 rm -rf gcc/tmp-include; \
1249 mv gcc/include gcc/tmp-include 2>/dev/null; \
1250 mkdir gcc/include; \
1251 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1252 touch gcc/stmp-fixinc gcc/include/fixed; \
1253 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1254 r=`${PWD}`; export r; \
1255 s=`cd $(srcdir); ${PWD}` ; export s; \
1256 $(SET_LIB_PATH) \
1257 (cd ./gcc; \
1258 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1259 rm -rf gcc/include; \
1260 mv gcc/tmp-include gcc/include 2>/dev/null; \
1261 else true; fi
1262
ae831be5
NN
1263# --------------------------------------
1264# Dependencies between different modules
1265# --------------------------------------
405ea7a0 1266
ae831be5
NN
1267# There are two types of dependencies here: 'hard' dependencies, where one
1268# module simply won't build without the other; and 'soft' dependencies, where
1269# if the depended-on module is missing, the depending module will do without
1270# or find a substitute somewhere (perhaps installed). Soft dependencies
1271# are specified by depending on a 'maybe-' target. If you're not sure,
1272# it's safer to use a soft dependency.
1273
1274# Host modules specific to gcc.
e2b9e2dc
NN
1275# GCC needs to identify certain tools.
1276gcc/Makefile: maybe-configure-binutils maybe-configure-gas maybe-configure-ld maybe-configure-bison maybe-configure-flex
ae831be5
NN
1277all-gcc: maybe-all-libiberty maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
1278# This is a slightly kludgy method of getting dependencies on
1279# all-build-libiberty correct; it would be better to build it every time.
1280all-gcc: maybe-all-build-libiberty
1281all-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
1282
1283# Host modules specific to gdb.
e2b9e2dc
NN
1284# GDB needs to know that the simulator is being built.
1285gdb/Makefile: maybe-configure-tcl maybe-configure-tk maybe-configure-sim
ae831be5
NN
1286GDB_TK = @GDB_TK@
1287all-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)
1288install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui
e2b9e2dc 1289libgui/Makefile: maybe-configure-tcl maybe-configure-tk
ae831be5
NN
1290all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl
1291
1292# Host modules specific to binutils.
e2b9e2dc 1293bfd/Makefile: configure-libiberty
930314a4
NN
1294all-bfd: maybe-all-libiberty maybe-all-intl
1295all-binutils: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-flex maybe-all-bison maybe-all-byacc maybe-all-intl
ae831be5
NN
1296# We put install-opcodes before install-binutils because the installed
1297# binutils might be on PATH, and they might need the shared opcodes
1298# library.
1299install-binutils: maybe-install-opcodes
1300all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl
1301all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl
1302all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl
1303all-opcodes: maybe-all-bfd maybe-all-libiberty
1304
1305# Other host modules in the 'src' repository.
930314a4 1306all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk
e2b9e2dc 1307expect/Makefile: maybe-configure-tcl maybe-configure-tk
930314a4 1308all-expect: maybe-all-tcl maybe-all-tk
e2b9e2dc 1309itcl/Makefile: maybe-configure-tcl maybe-configure-tk
ae831be5
NN
1310all-itcl: maybe-all-tcl maybe-all-tk
1311# We put install-tcl before install-itcl because itcl wants to run a
1312# program on installation which uses the Tcl libraries.
1313install-itcl: maybe-install-tcl
1314all-sid: maybe-all-tcl maybe-all-tk
1315install-sid: maybe-install-tcl maybe-install-tk
1316all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline
e2b9e2dc 1317tk/Makefile: maybe-configure-tcl
ae831be5 1318all-tk: maybe-all-tcl
e2b9e2dc 1319tix/Makefile: maybe-configure-tcl maybe-configure-tk
ae831be5
NN
1320all-tix: maybe-all-tcl maybe-all-tk
1321all-texinfo: maybe-all-libiberty
1322
1323# Other host modules. Warning, these are not well tested.
1324all-autoconf: maybe-all-m4 maybe-all-texinfo
1325all-automake: maybe-all-m4 maybe-all-texinfo
1326all-bison: maybe-all-texinfo
1327all-diff: maybe-all-libiberty
1328all-fastjar: maybe-all-zlib maybe-all-libiberty
930314a4
NN
1329all-fileutils: maybe-all-libiberty
1330all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc
930314a4
NN
1331all-grep: maybe-all-libiberty
1332all-gzip: maybe-all-libiberty
1333all-hello: maybe-all-libiberty
930314a4
NN
1334all-m4: maybe-all-libiberty maybe-all-texinfo
1335all-make: maybe-all-libiberty
930314a4
NN
1336all-patch: maybe-all-libiberty
1337all-prms: maybe-all-libiberty
930314a4
NN
1338all-recode: maybe-all-libiberty
1339all-sed: maybe-all-libiberty
1340all-send-pr: maybe-all-prms
930314a4
NN
1341all-snavigator: maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-db maybe-all-grep maybe-all-libgui
1342all-tar: maybe-all-libiberty
1343all-tclX: maybe-all-tcl maybe-all-tk
930314a4 1344all-uudecode: maybe-all-libiberty
ae831be5
NN
1345
1346ALL_GCC = maybe-all-gcc
1347ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss
1348ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3
1349
1350# Target modules specific to gcc.
15723a45
NN
1351$(TARGET_SUBDIR)/boehm-gc/Makefile: $(ALL_GCC_C) maybe-configure-target-qthreads
1352$(TARGET_SUBDIR)/fastjar/Makefile: maybe-configure-target-zlib
930314a4 1353all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty
15723a45 1354$(TARGET_SUBDIR)/libf2c/Makefile: $(ALL_GCC_C)
ae831be5 1355all-target-libf2c: maybe-all-target-libiberty
15723a45
NN
1356$(TARGET_SUBDIR)/libffi/Makefile: $(ALL_GCC_C)
1357$(TARGET_SUBDIR)/libjava/Makefile: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi
ae831be5 1358all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi
15723a45 1359$(TARGET_SUBDIR)/libobjc/Makefile: $(ALL_GCC_C)
ae831be5 1360all-target-libobjc: maybe-all-target-libiberty
15723a45 1361$(TARGET_SUBDIR)/libstdc++-v3/Makefile: $(ALL_GCC_C)
ae831be5 1362all-target-libstdc++-v3: maybe-all-target-libiberty
15723a45 1363$(TARGET_SUBDIR)/zlib/Makefile: $(ALL_GCC_C)
a9590527 1364
ae831be5 1365# Target modules in the 'src' repository.
15723a45
NN
1366$(TARGET_SUBDIR)/examples/Makefile: $(ALL_GCC_C)
1367$(TARGET_SUBDIR)/libgloss/Makefile: $(ALL_GCC)
ae831be5 1368all-target-libgloss: maybe-configure-target-newlib
15723a45
NN
1369$(TARGET_SUBDIR)/libiberty/Makefile: $(ALL_GCC_C)
1370$(TARGET_SUBDIR)/libtermcap/Makefile: $(ALL_GCC_C)
1371$(TARGET_SUBDIR)/newlib/Makefile: $(ALL_GCC)
1372$(TARGET_SUBDIR)/winsup/Makefile: $(ALL_GCC_C)
ae831be5 1373all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap
a9590527 1374
ae831be5 1375# Other target modules. Warning, these are not well tested.
15723a45 1376$(TARGET_SUBDIR)/gperf/Makefile: $(ALL_GCC_CXX)
ae831be5 1377all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3
15723a45 1378$(TARGET_SUBDIR)/qthreads/Makefile: $(ALL_GCC_C)
907a7241 1379
930314a4
NN
1380# Dependencies of maybe-foo on foo. These are used because, for example,
1381# all-gcc only depends on all-gas if gas is present and being configured.
1382@maybe_dependencies@
1383
a2cc058a
NN
1384# Serialization dependencies. Host configures don't work well in parallel to
1385# each other, due to contention over config.cache. Target configures and
1386# build configures are similar.
1387@serialization_dependencies@
1388
15723a45
NN
1389# --------------------------------
1390# Regenerating top level configury
1391# --------------------------------
405ea7a0
NN
1392
1393# Rebuilding Makefile.in, using autogen.
907a7241 1394$(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
405ea7a0
NN
1395 cd $(srcdir) && autogen Makefile.def
1396
1397# with the gnu make, this is done automatically.
1398
583d52d7
NN
1399host_makefile_frag=@host_makefile_frag@
1400target_makefile_frag=@target_makefile_frag@
1401
405ea7a0
NN
1402Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
1403 $(SHELL) ./config.status
1404
1405#
405ea7a0
NN
1406
1407.NOEXPORT:
1408MAKEOVERRIDES=
1409
1410# end of Makefile.in
This page took 0.16454 seconds and 4 git commands to generate.