Commit | Line | Data |
---|---|---|
405ea7a0 NN |
1 | |
2 | # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'. | |
252b5132 RH |
3 | # |
4 | # Makefile for directory with subdirs to build. | |
5cec67bf | 5 | # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, |
52cf9762 | 6 | # 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
05a13254 | 7 | # 2011, 2012, 2013, 2014, 2015, 2016, 2017 |
1b05fbbd | 8 | # Free Software Foundation |
252b5132 RH |
9 | # |
10 | # This file is free software; you can redistribute it and/or modify | |
11 | # it under the terms of the GNU General Public License as published by | |
e8a5fa9c | 12 | # the Free Software Foundation; either version 3 of the License, or |
252b5132 RH |
13 | # (at your option) any later version. |
14 | # | |
15 | # This program is distributed in the hope that it will be useful, | |
16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | # GNU General Public License for more details. | |
19 | # | |
20 | # You should have received a copy of the GNU General Public License | |
e8a5fa9c RW |
21 | # along with this program; see the file COPYING3. If not see |
22 | # <http://www.gnu.org/licenses/>. | |
252b5132 RH |
23 | # |
24 | ||
0bb6ea20 HPN |
25 | # First, test for a proper version of make, but only where one is required. |
26 | ||
27 | @if gcc | |
28 | ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty. | |
29 | $(error GNU make version 3.80 or newer is required.) | |
30 | endif | |
31 | @endif gcc | |
32 | ||
50212802 NN |
33 | # ------------------------------- |
34 | # Standard Autoconf-set variables | |
35 | # ------------------------------- | |
583d52d7 | 36 | VPATH=@srcdir@ |
583d52d7 | 37 | |
c6b750e1 | 38 | build_alias=@build_noncanonical@ |
4b900473 PB |
39 | build_vendor=@build_vendor@ |
40 | build_os=@build_os@ | |
7f121bbf | 41 | build=@build@ |
c6b750e1 | 42 | host_alias=@host_noncanonical@ |
4b900473 PB |
43 | host_vendor=@host_vendor@ |
44 | host_os=@host_os@ | |
7f121bbf | 45 | host=@host@ |
c6b750e1 | 46 | target_alias=@target_noncanonical@ |
4b900473 PB |
47 | target_vendor=@target_vendor@ |
48 | target_os=@target_os@ | |
7f121bbf | 49 | target=@target@ |
583d52d7 | 50 | |
50212802 | 51 | program_transform_name = @program_transform_name@ |
403d9505 NN |
52 | |
53 | prefix = @prefix@ | |
54 | exec_prefix = @exec_prefix@ | |
55 | ||
50212802 NN |
56 | srcdir = @srcdir@ |
57 | ||
403d9505 NN |
58 | bindir = @bindir@ |
59 | sbindir = @sbindir@ | |
60 | libexecdir = @libexecdir@ | |
61 | datadir = @datadir@ | |
62 | sysconfdir = @sysconfdir@ | |
63 | sharedstatedir = @sharedstatedir@ | |
64 | localstatedir = @localstatedir@ | |
65 | libdir = @libdir@ | |
66 | includedir = @includedir@ | |
67 | oldincludedir = @oldincludedir@ | |
68 | infodir = @infodir@ | |
108a6f8e CD |
69 | datarootdir = @datarootdir@ |
70 | docdir = @docdir@ | |
a3ca38d2 | 71 | pdfdir = @pdfdir@ |
108a6f8e | 72 | htmldir = @htmldir@ |
403d9505 | 73 | mandir = @mandir@ |
252b5132 RH |
74 | man1dir = $(mandir)/man1 |
75 | man2dir = $(mandir)/man2 | |
76 | man3dir = $(mandir)/man3 | |
77 | man4dir = $(mandir)/man4 | |
78 | man5dir = $(mandir)/man5 | |
79 | man6dir = $(mandir)/man6 | |
80 | man7dir = $(mandir)/man7 | |
81 | man8dir = $(mandir)/man8 | |
82 | man9dir = $(mandir)/man9 | |
d5de0a84 | 83 | |
e5c3f801 NN |
84 | INSTALL = @INSTALL@ |
85 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
86 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
87 | INSTALL_DATA = @INSTALL_DATA@ | |
656fdd47 PB |
88 | LN = @LN@ |
89 | LN_S = @LN_S@ | |
77d7106f AM |
90 | MAINT = @MAINT@ |
91 | MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ | |
92 | MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ | |
252b5132 | 93 | |
50212802 NN |
94 | # ------------------------------------------------- |
95 | # Miscellaneous non-standard autoconf-set variables | |
96 | # ------------------------------------------------- | |
252b5132 | 97 | |
50212802 NN |
98 | # The gcc driver likes to know the arguments it was configured with. |
99 | TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@ | |
252b5132 | 100 | |
50212802 NN |
101 | tooldir = @tooldir@ |
102 | build_tooldir = @build_tooldir@ | |
252b5132 | 103 | |
50212802 NN |
104 | # This is the name of the environment variable used for the path to |
105 | # the libraries. | |
106 | RPATH_ENVVAR = @RPATH_ENVVAR@ | |
252b5132 | 107 | |
3bbd2f8f AL |
108 | # On targets where RPATH_ENVVAR is PATH, a subdirectory of the GCC build path |
109 | # is used instead of the directory itself to avoid including built | |
110 | # executables in PATH. | |
111 | GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@ | |
112 | ||
50212802 NN |
113 | # Build programs are put under this directory. |
114 | BUILD_SUBDIR = @build_subdir@ | |
115 | # This is set by the configure script to the arguments to use when configuring | |
116 | # directories built for the build system. | |
a7254363 | 117 | BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)" |
6a9cf61e | 118 | |
e8a5fa9c RW |
119 | # Linker flags to use on the host, for stage1 or when not |
120 | # bootstrapping. | |
121 | STAGE1_LDFLAGS = @stage1_ldflags@ | |
122 | ||
123 | # Libraries to use on the host, for stage1 or when not bootstrapping. | |
124 | STAGE1_LIBS = @stage1_libs@ | |
125 | ||
126 | # Linker flags to use for stage2 and later. | |
127 | POSTSTAGE1_LDFLAGS = @poststage1_ldflags@ | |
128 | ||
129 | # Libraries to use for stage2 and later. | |
130 | POSTSTAGE1_LIBS = @poststage1_libs@ | |
131 | ||
6a9cf61e PB |
132 | # This is the list of variables to export in the environment when |
133 | # configuring any subdirectory. It must also be exported whenever | |
134 | # recursing into a build directory in case that directory's Makefile | |
135 | # re-runs configure. | |
136 | BASE_EXPORTS = \ | |
137 | FLEX="$(FLEX)"; export FLEX; \ | |
138 | LEX="$(LEX)"; export LEX; \ | |
139 | BISON="$(BISON)"; export BISON; \ | |
140 | YACC="$(YACC)"; export YACC; \ | |
141 | M4="$(M4)"; export M4; \ | |
8e957354 PB |
142 | SED="$(SED)"; export SED; \ |
143 | AWK="$(AWK)"; export AWK; \ | |
6a9cf61e PB |
144 | MAKEINFO="$(MAKEINFO)"; export MAKEINFO; |
145 | ||
378fce5b | 146 | # This is the list of variables to export in the environment when |
6a9cf61e | 147 | # configuring subdirectories for the build system. |
378fce5b | 148 | BUILD_EXPORTS = \ |
6a9cf61e | 149 | $(BASE_EXPORTS) \ |
378fce5b DD |
150 | AR="$(AR_FOR_BUILD)"; export AR; \ |
151 | AS="$(AS_FOR_BUILD)"; export AS; \ | |
152 | CC="$(CC_FOR_BUILD)"; export CC; \ | |
153 | CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ | |
154 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | |
155 | CXX="$(CXX_FOR_BUILD)"; export CXX; \ | |
156 | CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \ | |
378fce5b | 157 | GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \ |
e552509b ILT |
158 | GOC="$(GOC_FOR_BUILD)"; export GOC; \ |
159 | GOCFLAGS="$(GOCFLAGS_FOR_BUILD)"; export GOCFLAGS; \ | |
378fce5b DD |
160 | DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \ |
161 | LD="$(LD_FOR_BUILD)"; export LD; \ | |
162 | LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \ | |
163 | NM="$(NM_FOR_BUILD)"; export NM; \ | |
164 | RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \ | |
0c24b341 NC |
165 | WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \ |
166 | WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC; | |
50212802 | 167 | |
6641ce42 | 168 | # These variables must be set on the make command line for directories |
2440009d | 169 | # built for the build system to override those in BASE_FLAGS_TO_PASS. |
6641ce42 JM |
170 | EXTRA_BUILD_FLAGS = \ |
171 | CFLAGS="$(CFLAGS_FOR_BUILD)" \ | |
172 | LDFLAGS="$(LDFLAGS_FOR_BUILD)" | |
173 | ||
50212802 NN |
174 | # This is the list of directories to built for the host system. |
175 | SUBDIRS = @configdirs@ | |
911e63d0 | 176 | TARGET_CONFIGDIRS = @target_configdirs@ |
50212802 NN |
177 | # This is set by the configure script to the arguments to use when configuring |
178 | # directories built for the host system. | |
179 | HOST_CONFIGARGS = @host_configargs@ | |
b00612cc PB |
180 | # Host programs are put under this directory, which is . except if building |
181 | # with srcdir=.. | |
182 | HOST_SUBDIR = @host_subdir@ | |
378fce5b | 183 | # This is the list of variables to export in the environment when |
be01d343 PB |
184 | # configuring subdirectories for the host system. We need to pass |
185 | # some to the GCC configure because of its hybrid host/target nature. | |
378fce5b | 186 | HOST_EXPORTS = \ |
6a9cf61e | 187 | $(BASE_EXPORTS) \ |
378fce5b | 188 | CC="$(CC)"; export CC; \ |
da888c87 | 189 | ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \ |
378fce5b DD |
190 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ |
191 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | |
192 | CXX="$(CXX)"; export CXX; \ | |
193 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1b05fbbd | 194 | GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \ |
9b980aa1 | 195 | GOC="$(GOC)"; export GOC; \ |
378fce5b DD |
196 | AR="$(AR)"; export AR; \ |
197 | AS="$(AS)"; export AS; \ | |
198 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
199 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
200 | LD="$(LD)"; export LD; \ | |
e8a5fa9c | 201 | LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \ |
378fce5b DD |
202 | NM="$(NM)"; export NM; \ |
203 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
204 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
0c24b341 | 205 | WINDMC="$(WINDMC)"; export WINDMC; \ |
378fce5b | 206 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ |
95b6a1f2 | 207 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ |
b121d7d4 | 208 | READELF="$(READELF)"; export READELF; \ |
be01d343 PB |
209 | AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \ |
210 | AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \ | |
211 | GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \ | |
212 | LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \ | |
213 | NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \ | |
214 | OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \ | |
6b91c541 | 215 | OBJCOPY_FOR_TARGET="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY_FOR_TARGET; \ |
be01d343 | 216 | RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \ |
b121d7d4 | 217 | READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \ |
378fce5b | 218 | TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \ |
e8a5fa9c | 219 | HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \ |
378fce5b | 220 | GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \ |
315b3b02 | 221 | GMPINC="$(HOST_GMPINC)"; export GMPINC; \ |
1b6c0831 | 222 | ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \ |
7ec59b9e | 223 | ISLINC="$(HOST_ISLINC)"; export ISLINC; \ |
52cf9762 | 224 | ISLVER="$(HOST_ISLVER)"; export ISLVER; \ |
22121df0 L |
225 | LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \ |
226 | LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \ | |
4849dfd8 | 227 | XGCC_FLAGS_FOR_TARGET="$(XGCC_FLAGS_FOR_TARGET)"; export XGCC_FLAGS_FOR_TARGET; \ |
f70224b5 PB |
228 | @if gcc-bootstrap |
229 | $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ | |
230 | @endif gcc-bootstrap | |
e90269c8 | 231 | $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); |
378fce5b | 232 | |
1f53ca9a AO |
233 | POSTSTAGE1_CXX_EXPORT = \ |
234 | CXX='$(CXX)'; export CXX; \ | |
235 | CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD; | |
236 | @if target-libstdc++-v3-bootstrap | |
237 | # Override the above if we're bootstrapping C++. | |
238 | POSTSTAGE1_CXX_EXPORT = \ | |
d2489204 | 239 | CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \ |
1f53ca9a | 240 | -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \ |
1d14850f | 241 | -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \ |
ffdd6afc | 242 | -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \ |
abca8d87 | 243 | `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \ |
244 | `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \ | |
245 | `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$s/libstdc++-v3/libsupc++ \ | |
ffdd6afc ILT |
246 | -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \ |
247 | -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs"; \ | |
248 | export CXX; \ | |
1f53ca9a AO |
249 | CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD; |
250 | @endif target-libstdc++-v3-bootstrap | |
251 | ||
378fce5b | 252 | # Similar, for later GCC stages. |
d545f33b | 253 | POSTSTAGE1_HOST_EXPORTS = \ |
7ffa0b57 | 254 | $(HOST_EXPORTS) \ |
b00612cc | 255 | CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \ |
1b05fbbd AO |
256 | -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \ |
257 | $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \ | |
258 | CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \ | |
1f53ca9a | 259 | $(POSTSTAGE1_CXX_EXPORT) \ |
1b6c0831 | 260 | $(LTO_EXPORTS) \ |
e8a5fa9c RW |
261 | GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \ |
262 | LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \ | |
263 | HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS; | |
50212802 | 264 | |
50212802 NN |
265 | # Target libraries are put under this directory: |
266 | TARGET_SUBDIR = @target_subdir@ | |
267 | # This is set by the configure script to the arguments to use when configuring | |
268 | # directories built for the target. | |
a7254363 | 269 | TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)" |
378fce5b | 270 | # This is the list of variables to export in the environment when |
f2b2dd91 | 271 | # configuring subdirectories for the target system. |
378fce5b | 272 | BASE_TARGET_EXPORTS = \ |
6a9cf61e | 273 | $(BASE_EXPORTS) \ |
378fce5b | 274 | AR="$(AR_FOR_TARGET)"; export AR; \ |
be01d343 | 275 | AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \ |
1b05fbbd AO |
276 | CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \ |
277 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
378fce5b | 278 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ |
06bcb89d | 279 | CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \ |
1b05fbbd | 280 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ |
1b05fbbd | 281 | GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \ |
e552509b | 282 | GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \ |
378fce5b | 283 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ |
be01d343 | 284 | LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \ |
378fce5b | 285 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ |
7e0f7140 | 286 | LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \ |
be01d343 | 287 | NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \ |
5ae72758 | 288 | OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \ |
6b91c541 | 289 | OBJCOPY="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY; \ |
378fce5b | 290 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ |
b121d7d4 | 291 | READELF="$(READELF_FOR_TARGET)"; export READELF; \ |
7e0f7140 | 292 | STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \ |
315b3b02 | 293 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ |
0c24b341 | 294 | WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \ |
f2b2dd91 RW |
295 | @if gcc-bootstrap |
296 | $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ | |
297 | @endif gcc-bootstrap | |
911e63d0 JR |
298 | $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ |
299 | TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS; | |
378fce5b DD |
300 | |
301 | RAW_CXX_TARGET_EXPORTS = \ | |
302 | $(BASE_TARGET_EXPORTS) \ | |
303 | CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ | |
1b05fbbd | 304 | CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX; |
378fce5b DD |
305 | |
306 | NORMAL_TARGET_EXPORTS = \ | |
307 | $(BASE_TARGET_EXPORTS) \ | |
1b05fbbd | 308 | CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX; |
50212802 | 309 | |
4b1cb4fe DD |
310 | # Where to find GMP |
311 | HOST_GMPLIBS = @gmplibs@ | |
312 | HOST_GMPINC = @gmpinc@ | |
313 | ||
4849dfd8 | 314 | # Where to find isl |
1b6c0831 | 315 | HOST_ISLLIBS = @isllibs@ |
7ec59b9e | 316 | HOST_ISLINC = @islinc@ |
52cf9762 | 317 | HOST_ISLVER = @islver@ |
e28c595f | 318 | |
700d40ca ILT |
319 | # Where to find libelf |
320 | HOST_LIBELFLIBS = @libelflibs@ | |
321 | HOST_LIBELFINC = @libelfinc@ | |
322 | ||
50212802 NN |
323 | # ---------------------------------------------- |
324 | # Programs producing files for the BUILD machine | |
325 | # ---------------------------------------------- | |
326 | ||
f6c1938b | 327 | SHELL = @SHELL@ |
50212802 NN |
328 | |
329 | # pwd command to use. Allow user to override default by setting PWDCMD in | |
330 | # the environment to account for automounters. The make variable must not | |
331 | # be called PWDCMD, otherwise the value set here is passed to make | |
332 | # subprocesses and overrides the setting from the user's environment. | |
b40e3958 L |
333 | # Don't use PWD since it is a common shell environment variable and we |
334 | # don't want to corrupt it. | |
335 | PWD_COMMAND = $${PWDCMD-pwd} | |
50212802 NN |
336 | |
337 | # compilers to use to create programs which must be run in the build | |
338 | # environment. | |
b5714970 PB |
339 | AR_FOR_BUILD = @AR_FOR_BUILD@ |
340 | AS_FOR_BUILD = @AS_FOR_BUILD@ | |
50212802 | 341 | CC_FOR_BUILD = @CC_FOR_BUILD@ |
5fbad20a | 342 | CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ |
b5714970 PB |
343 | CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@ |
344 | CXX_FOR_BUILD = @CXX_FOR_BUILD@ | |
345 | DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@ | |
b5714970 | 346 | GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@ |
9b980aa1 | 347 | GOC_FOR_BUILD = @GOC_FOR_BUILD@ |
b5714970 PB |
348 | LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@ |
349 | LD_FOR_BUILD = @LD_FOR_BUILD@ | |
350 | NM_FOR_BUILD = @NM_FOR_BUILD@ | |
351 | RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@ | |
352 | WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@ | |
353 | WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@ | |
50212802 NN |
354 | |
355 | # Special variables passed down in EXTRA_GCC_FLAGS. They are defined | |
356 | # here so that they can be overridden by Makefile fragments. | |
50212802 NN |
357 | BUILD_PREFIX = @BUILD_PREFIX@ |
358 | BUILD_PREFIX_1 = @BUILD_PREFIX_1@ | |
252b5132 | 359 | |
0df3d27f PB |
360 | # Flags to pass to stage2 and later makes. They are defined |
361 | # here so that they can be overridden by Makefile fragments. | |
362 | BOOT_CFLAGS= -g -O2 | |
f6d183c0 | 363 | BOOT_LDFLAGS= |
d7b9dae9 | 364 | BOOT_ADAFLAGS= -gnatpg |
0df3d27f | 365 | |
8e957354 PB |
366 | AWK = @AWK@ |
367 | SED = @SED@ | |
be01d343 PB |
368 | BISON = @BISON@ |
369 | YACC = @YACC@ | |
370 | FLEX = @FLEX@ | |
371 | LEX = @LEX@ | |
372 | M4 = @M4@ | |
373 | MAKEINFO = @MAKEINFO@ | |
374 | EXPECT = @EXPECT@ | |
375 | RUNTEST = @RUNTEST@ | |
252b5132 | 376 | |
05a13254 NC |
377 | AUTO_PROFILE = gcc-auto-profile -c 1000000 |
378 | ||
252b5132 RH |
379 | # This just becomes part of the MAKEINFO definition passed down to |
380 | # sub-makes. It lets flags be given on the command line while still | |
381 | # using the makeinfo from the object tree. | |
62a3fc85 DD |
382 | # (Default to avoid splitting info files by setting the threshold high.) |
383 | MAKEINFOFLAGS = --split-size=5000000 | |
252b5132 | 384 | |
50212802 NN |
385 | # --------------------------------------------- |
386 | # Programs producing files for the HOST machine | |
387 | # --------------------------------------------- | |
252b5132 | 388 | |
50212802 | 389 | AS = @AS@ |
50212802 NN |
390 | AR = @AR@ |
391 | AR_FLAGS = rc | |
50212802 | 392 | CC = @CC@ |
50212802 | 393 | CXX = @CXX@ |
50212802 | 394 | DLLTOOL = @DLLTOOL@ |
50212802 | 395 | LD = @LD@ |
be01d343 PB |
396 | LIPO = @LIPO@ |
397 | NM = @NM@ | |
80911fe1 | 398 | OBJDUMP = @OBJDUMP@ |
50212802 | 399 | RANLIB = @RANLIB@ |
b121d7d4 | 400 | READELF = @READELF@ |
be01d343 | 401 | STRIP = @STRIP@ |
50212802 | 402 | WINDRES = @WINDRES@ |
0c24b341 | 403 | WINDMC = @WINDMC@ |
252b5132 | 404 | |
a0323144 PB |
405 | GNATBIND = @GNATBIND@ |
406 | GNATMAKE = @GNATMAKE@ | |
407 | ||
be01d343 | 408 | CFLAGS = @CFLAGS@ |
b2edfdd2 | 409 | LDFLAGS = @LDFLAGS@ |
be01d343 PB |
410 | LIBCFLAGS = $(CFLAGS) |
411 | CXXFLAGS = @CXXFLAGS@ | |
412 | LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates | |
e552509b | 413 | GOCFLAGS = $(CFLAGS) |
50212802 | 414 | |
05a13254 NC |
415 | CREATE_GCOV = create_gcov |
416 | ||
1b05fbbd AO |
417 | TFLAGS = |
418 | ||
419 | # Defaults for all stages; some are overridden below. | |
420 | ||
421 | STAGE_CFLAGS = $(BOOT_CFLAGS) | |
422 | STAGE_TFLAGS = $(TFLAGS) | |
423 | STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@ | |
424 | ||
425 | ||
426 | # Defaults for stage 1; some are overridden below. | |
427 | STAGE1_CFLAGS = $(STAGE_CFLAGS) | |
1f53ca9a AO |
428 | STAGE1_CXXFLAGS = $(CXXFLAGS) |
429 | @if target-libstdc++-v3-bootstrap | |
430 | # Override the above if we're bootstrapping C++. | |
431 | STAGE1_CXXFLAGS = $(STAGE1_CFLAGS) | |
432 | @endif target-libstdc++-v3-bootstrap | |
1b05fbbd | 433 | STAGE1_TFLAGS = $(STAGE_TFLAGS) |
7ec59b9e | 434 | STAGE1_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS) |
1b05fbbd AO |
435 | |
436 | # Defaults for stage 2; some are overridden below. | |
437 | STAGE2_CFLAGS = $(STAGE_CFLAGS) | |
1f53ca9a AO |
438 | STAGE2_CXXFLAGS = $(CXXFLAGS) |
439 | @if target-libstdc++-v3-bootstrap | |
440 | # Override the above if we're bootstrapping C++. | |
441 | STAGE2_CXXFLAGS = $(STAGE2_CFLAGS) | |
442 | @endif target-libstdc++-v3-bootstrap | |
1b05fbbd | 443 | STAGE2_TFLAGS = $(STAGE_TFLAGS) |
7ec59b9e | 444 | STAGE2_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS) |
1b05fbbd AO |
445 | |
446 | # Defaults for stage 3; some are overridden below. | |
447 | STAGE3_CFLAGS = $(STAGE_CFLAGS) | |
1f53ca9a AO |
448 | STAGE3_CXXFLAGS = $(CXXFLAGS) |
449 | @if target-libstdc++-v3-bootstrap | |
450 | # Override the above if we're bootstrapping C++. | |
451 | STAGE3_CXXFLAGS = $(STAGE3_CFLAGS) | |
452 | @endif target-libstdc++-v3-bootstrap | |
1b05fbbd | 453 | STAGE3_TFLAGS = $(STAGE_TFLAGS) |
7ec59b9e | 454 | STAGE3_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS) |
1b05fbbd AO |
455 | |
456 | # Defaults for stage 4; some are overridden below. | |
457 | STAGE4_CFLAGS = $(STAGE_CFLAGS) | |
1f53ca9a AO |
458 | STAGE4_CXXFLAGS = $(CXXFLAGS) |
459 | @if target-libstdc++-v3-bootstrap | |
460 | # Override the above if we're bootstrapping C++. | |
461 | STAGE4_CXXFLAGS = $(STAGE4_CFLAGS) | |
462 | @endif target-libstdc++-v3-bootstrap | |
1b05fbbd | 463 | STAGE4_TFLAGS = $(STAGE_TFLAGS) |
7ec59b9e | 464 | STAGE4_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS) |
1b05fbbd AO |
465 | |
466 | # Defaults for stage profile; some are overridden below. | |
467 | STAGEprofile_CFLAGS = $(STAGE_CFLAGS) | |
1f53ca9a AO |
468 | STAGEprofile_CXXFLAGS = $(CXXFLAGS) |
469 | @if target-libstdc++-v3-bootstrap | |
470 | # Override the above if we're bootstrapping C++. | |
471 | STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS) | |
472 | @endif target-libstdc++-v3-bootstrap | |
1b05fbbd | 473 | STAGEprofile_TFLAGS = $(STAGE_TFLAGS) |
7ec59b9e | 474 | STAGEprofile_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS) |
1b05fbbd AO |
475 | |
476 | # Defaults for stage feedback; some are overridden below. | |
477 | STAGEfeedback_CFLAGS = $(STAGE_CFLAGS) | |
1f53ca9a AO |
478 | STAGEfeedback_CXXFLAGS = $(CXXFLAGS) |
479 | @if target-libstdc++-v3-bootstrap | |
480 | # Override the above if we're bootstrapping C++. | |
481 | STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS) | |
482 | @endif target-libstdc++-v3-bootstrap | |
1b05fbbd | 483 | STAGEfeedback_TFLAGS = $(STAGE_TFLAGS) |
7ec59b9e | 484 | STAGEfeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS) |
1b05fbbd AO |
485 | |
486 | ||
22121df0 L |
487 | # By default, C and C++ are the only stage1 languages, because they are the |
488 | # only ones we require to build with the bootstrap compiler, and also the | |
489 | # only ones useful for building stage2. | |
8a0d8a5c | 490 | |
1b05fbbd | 491 | STAGE1_CFLAGS = @stage1_cflags@ |
1f53ca9a AO |
492 | STAGE1_CHECKING = @stage1_checking@ |
493 | STAGE1_LANGUAGES = @stage1_languages@ | |
1b05fbbd AO |
494 | # * We force-disable intermodule optimizations, even if |
495 | # --enable-intermodule was passed, since the installed compiler | |
496 | # probably can't handle them. Luckily, autoconf always respects | |
497 | # the last argument when conflicting --enable arguments are passed. | |
498 | # * Likewise, we force-disable coverage flags, since the installed | |
499 | # compiler probably has never heard of them. | |
880b18d1 | 500 | # * We also disable -Wformat, since older GCCs don't understand newer %s. |
1b05fbbd | 501 | STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \ |
880b18d1 | 502 | --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" \ |
503 | --disable-build-format-warnings | |
8a0d8a5c | 504 | |
1b05fbbd AO |
505 | STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate |
506 | STAGEprofile_TFLAGS = $(STAGE2_TFLAGS) | |
8520c408 | 507 | |
1b05fbbd AO |
508 | STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use |
509 | STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS) | |
7f6ef0c0 | 510 | |
05a13254 NC |
511 | STAGEautoprofile_CFLAGS = $(STAGE2_CFLAGS) -g |
512 | STAGEautoprofile_TFLAGS = $(STAGE2_TFLAGS) | |
513 | ||
514 | STAGEautofeedback_CFLAGS = $(STAGE3_CFLAGS) | |
515 | STAGEautofeedback_TFLAGS = $(STAGE3_TFLAGS) | |
516 | ||
8520c408 AO |
517 | do-compare = @do_compare@ |
518 | do-compare3 = $(do-compare) | |
8520c408 | 519 | |
50212802 NN |
520 | # ----------------------------------------------- |
521 | # Programs producing files for the TARGET machine | |
522 | # ----------------------------------------------- | |
0da52010 | 523 | |
50212802 | 524 | AR_FOR_TARGET=@AR_FOR_TARGET@ |
852e5f18 | 525 | AS_FOR_TARGET=@AS_FOR_TARGET@ |
1b05fbbd | 526 | CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@ |
55db4b87 | 527 | |
50212802 NN |
528 | # If GCC_FOR_TARGET is not overriden on the command line, then this |
529 | # variable is passed down to the gcc Makefile, where it is used to | |
530 | # build libgcc2.a. We define it here so that it can itself be | |
531 | # overridden on the command line. | |
1b05fbbd AO |
532 | GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@ |
533 | CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@ | |
534 | RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@ | |
1b05fbbd | 535 | GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@ |
e552509b | 536 | GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@ |
852e5f18 | 537 | DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@ |
50212802 | 538 | LD_FOR_TARGET=@LD_FOR_TARGET@ |
50212802 | 539 | |
7e0f7140 | 540 | LIPO_FOR_TARGET=@LIPO_FOR_TARGET@ |
50212802 | 541 | NM_FOR_TARGET=@NM_FOR_TARGET@ |
5ae72758 | 542 | OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@ |
6b91c541 | 543 | OBJCOPY_FOR_TARGET=@OBJCOPY_FOR_TARGET@ |
852e5f18 | 544 | RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@ |
b121d7d4 | 545 | READELF_FOR_TARGET=@READELF_FOR_TARGET@ |
7e0f7140 | 546 | STRIP_FOR_TARGET=@STRIP_FOR_TARGET@ |
50212802 | 547 | WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@ |
0c24b341 | 548 | WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@ |
252b5132 | 549 | |
be01d343 PB |
550 | COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@ |
551 | COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@ | |
552 | COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@ | |
553 | ||
7f6ef0c0 PB |
554 | CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@ |
555 | CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@ | |
7f6ef0c0 | 556 | |
be01d343 PB |
557 | LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) |
558 | LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates | |
91c1f14c | 559 | LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@ |
e552509b | 560 | GOCFLAGS_FOR_TARGET = -O2 -g |
50212802 | 561 | |
1b05fbbd AO |
562 | FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@ |
563 | SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ | |
564 | DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@ | |
565 | ||
566 | XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET) | |
567 | ||
50212802 NN |
568 | # ------------------------------------ |
569 | # Miscellaneous targets and flag lists | |
570 | # ------------------------------------ | |
571 | ||
252b5132 RH |
572 | # The first rule in the file had better be this one. Don't put any above it. |
573 | # This lives here to allow makefile fragments to contain dependencies. | |
f70224b5 | 574 | all: |
252b5132 | 575 | |
252b5132 | 576 | #### host and target specific makefile fragments come in here. |
a0da8069 NN |
577 | @target_makefile_frag@ |
578 | @alphaieee_frag@ | |
579 | @ospace_frag@ | |
580 | @host_makefile_frag@ | |
252b5132 RH |
581 | ### |
582 | ||
e90269c8 | 583 | # This is the list of directories that may be needed in RPATH_ENVVAR |
18a8530e | 584 | # so that programs built for the target machine work. |
1b6c0831 | 585 | TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libsanitizer)$(TARGET_LIB_PATH_libmpx)$(TARGET_LIB_PATH_libvtv)$(TARGET_LIB_PATH_libcilkrts)$(TARGET_LIB_PATH_liboffloadmic)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgomp)$(TARGET_LIB_PATH_libitm)$(TARGET_LIB_PATH_libatomic)$(HOST_LIB_PATH_gcc) |
e90269c8 PB |
586 | |
587 | @if target-libstdc++-v3 | |
18a8530e | 588 | TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs: |
e90269c8 PB |
589 | @endif target-libstdc++-v3 |
590 | ||
5286fdef L |
591 | @if target-libsanitizer |
592 | TARGET_LIB_PATH_libsanitizer = $$r/$(TARGET_SUBDIR)/libsanitizer/.libs: | |
593 | @endif target-libsanitizer | |
594 | ||
1b6c0831 L |
595 | @if target-libmpx |
596 | TARGET_LIB_PATH_libmpx = $$r/$(TARGET_SUBDIR)/libmpx/.libs: | |
597 | @endif target-libmpx | |
598 | ||
95e43135 JBG |
599 | @if target-libvtv |
600 | TARGET_LIB_PATH_libvtv = $$r/$(TARGET_SUBDIR)/libvtv/.libs: | |
601 | @endif target-libvtv | |
602 | ||
e78e02e6 | 603 | @if target-libcilkrts |
604 | TARGET_LIB_PATH_libcilkrts = $$r/$(TARGET_SUBDIR)/libcilkrts/.libs: | |
605 | @endif target-libcilkrts | |
606 | ||
1b6c0831 L |
607 | @if target-liboffloadmic |
608 | TARGET_LIB_PATH_liboffloadmic = $$r/$(TARGET_SUBDIR)/liboffloadmic/.libs: | |
609 | @endif target-liboffloadmic | |
610 | ||
064d0a7c PB |
611 | @if target-libssp |
612 | TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs: | |
613 | @endif target-libssp | |
614 | ||
b3ded179 PB |
615 | @if target-libgomp |
616 | TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs: | |
617 | @endif target-libgomp | |
618 | ||
7ec59b9e L |
619 | @if target-libitm |
620 | TARGET_LIB_PATH_libitm = $$r/$(TARGET_SUBDIR)/libitm/.libs: | |
621 | @endif target-libitm | |
622 | ||
623 | @if target-libatomic | |
624 | TARGET_LIB_PATH_libatomic = $$r/$(TARGET_SUBDIR)/libatomic/.libs: | |
625 | @endif target-libatomic | |
626 | ||
e90269c8 PB |
627 | |
628 | ||
629 | # This is the list of directories that may be needed in RPATH_ENVVAR | |
630 | # so that programs built for the host machine work. | |
1b6c0831 | 631 | HOST_LIB_PATH = $(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_isl)$(HOST_LIB_PATH_libelf) |
e90269c8 PB |
632 | |
633 | # Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch | |
634 | @if gcc | |
3bbd2f8f | 635 | HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR): |
e90269c8 PB |
636 | @endif gcc |
637 | ||
638 | ||
4b900473 PB |
639 | @if gmp |
640 | HOST_LIB_PATH_gmp = \ | |
641 | $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs: | |
642 | @endif gmp | |
643 | ||
644 | @if mpfr | |
645 | HOST_LIB_PATH_mpfr = \ | |
05a13254 | 646 | $$r/$(HOST_SUBDIR)/mpfr/src/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/src/.libs: |
4b900473 PB |
647 | @endif mpfr |
648 | ||
e8a5fa9c RW |
649 | @if mpc |
650 | HOST_LIB_PATH_mpc = \ | |
05a13254 | 651 | $$r/$(HOST_SUBDIR)/mpc/src/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/src/.libs: |
e8a5fa9c RW |
652 | @endif mpc |
653 | ||
7ec59b9e L |
654 | @if isl |
655 | HOST_LIB_PATH_isl = \ | |
656 | $$r/$(HOST_SUBDIR)/isl/.libs:$$r/$(HOST_SUBDIR)/prev-isl/.libs: | |
657 | @endif isl | |
e28c595f | 658 | |
1f53ca9a AO |
659 | @if libelf |
660 | HOST_LIB_PATH_libelf = \ | |
661 | $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs: | |
662 | @endif libelf | |
663 | ||
e90269c8 | 664 | |
87cda2cf AO |
665 | CXX_FOR_TARGET_FLAG_TO_PASS = \ |
666 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" | |
667 | @if target-libstdc++-v3 | |
668 | # CXX_FOR_TARGET is tricky to get right for target libs that require a | |
669 | # functional C++ compiler. When we recurse, if we expand | |
670 | # CXX_FOR_TARGET before configuring libstdc++-v3, we won't get | |
671 | # libstdc++ include flags from the script. Instead, we get an | |
672 | # -funconfigured-* word, so that we'll get errors if this invalid C++ | |
673 | # command line is used for anything, but also so that we can use the | |
674 | # word to decide whether or not to pass on this CXX_FOR_TARGET. If we | |
675 | # don't pass it on, sub-make will use the default definition, that | |
676 | # re-expands it at the time of use, so we'll get it right when we need | |
677 | # it. One potential exception is the expansion of CXX_FOR_TARGET | |
678 | # passed down as part of CXX within TARGET_FLAGS, but this wouldn't | |
679 | # really work, for C++ host programs can't depend on the current-stage | |
680 | # C++ target library. | |
681 | CXX_FOR_TARGET_FLAG_TO_PASS = \ | |
682 | $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi) | |
683 | @endif target-libstdc++-v3 | |
684 | ||
22121df0 L |
685 | # Flags to pass down to all sub-makes. STAGE*FLAGS, |
686 | # MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them | |
687 | # overrideable (for a bootstrap build stage1 also builds gcc.info). | |
252b5132 | 688 | BASE_FLAGS_TO_PASS = \ |
497f816e | 689 | "DESTDIR=$(DESTDIR)" \ |
252b5132 | 690 | "RPATH_ENVVAR=$(RPATH_ENVVAR)" \ |
252b5132 | 691 | "TARGET_SUBDIR=$(TARGET_SUBDIR)" \ |
252b5132 RH |
692 | "bindir=$(bindir)" \ |
693 | "datadir=$(datadir)" \ | |
694 | "exec_prefix=$(exec_prefix)" \ | |
695 | "includedir=$(includedir)" \ | |
108a6f8e CD |
696 | "datarootdir=$(datarootdir)" \ |
697 | "docdir=$(docdir)" \ | |
252b5132 | 698 | "infodir=$(infodir)" \ |
a3ca38d2 | 699 | "pdfdir=$(pdfdir)" \ |
108a6f8e | 700 | "htmldir=$(htmldir)" \ |
252b5132 RH |
701 | "libdir=$(libdir)" \ |
702 | "libexecdir=$(libexecdir)" \ | |
703 | "lispdir=$(lispdir)" \ | |
704 | "localstatedir=$(localstatedir)" \ | |
705 | "mandir=$(mandir)" \ | |
706 | "oldincludedir=$(oldincludedir)" \ | |
707 | "prefix=$(prefix)" \ | |
708 | "sbindir=$(sbindir)" \ | |
709 | "sharedstatedir=$(sharedstatedir)" \ | |
710 | "sysconfdir=$(sysconfdir)" \ | |
711 | "tooldir=$(tooldir)" \ | |
ba73c63f | 712 | "build_tooldir=$(build_tooldir)" \ |
12f0bd74 | 713 | "target_alias=$(target_alias)" \ |
8e957354 | 714 | "AWK=$(AWK)" \ |
12f0bd74 NN |
715 | "BISON=$(BISON)" \ |
716 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ | |
b2edd3b5 | 717 | "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ |
12f0bd74 NN |
718 | "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ |
719 | "EXPECT=$(EXPECT)" \ | |
6a9cf61e | 720 | "FLEX=$(FLEX)" \ |
12f0bd74 NN |
721 | "INSTALL=$(INSTALL)" \ |
722 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
723 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
724 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ | |
6641ce42 | 725 | "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \ |
12f0bd74 NN |
726 | "LEX=$(LEX)" \ |
727 | "M4=$(M4)" \ | |
728 | "MAKE=$(MAKE)" \ | |
729 | "RUNTEST=$(RUNTEST)" \ | |
730 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ | |
8e957354 | 731 | "SED=$(SED)" \ |
12f0bd74 NN |
732 | "SHELL=$(SHELL)" \ |
733 | "YACC=$(YACC)" \ | |
c52c6897 | 734 | "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ |
da888c87 | 735 | "ADA_CFLAGS=$(ADA_CFLAGS)" \ |
12f0bd74 | 736 | "AR_FLAGS=$(AR_FLAGS)" \ |
c52c6897 | 737 | "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ |
f6d183c0 PB |
738 | "BOOT_CFLAGS=$(BOOT_CFLAGS)" \ |
739 | "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \ | |
12f0bd74 NN |
740 | "CFLAGS=$(CFLAGS)" \ |
741 | "CXXFLAGS=$(CXXFLAGS)" \ | |
742 | "LDFLAGS=$(LDFLAGS)" \ | |
743 | "LIBCFLAGS=$(LIBCFLAGS)" \ | |
744 | "LIBCXXFLAGS=$(LIBCXXFLAGS)" \ | |
8a0d8a5c | 745 | "STAGE1_CHECKING=$(STAGE1_CHECKING)" \ |
80911fe1 | 746 | "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \ |
a0323144 PB |
747 | "GNATBIND=$(GNATBIND)" \ |
748 | "GNATMAKE=$(GNATMAKE)" \ | |
12f0bd74 NN |
749 | "AR_FOR_TARGET=$(AR_FOR_TARGET)" \ |
750 | "AS_FOR_TARGET=$(AS_FOR_TARGET)" \ | |
751 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ | |
752 | "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ | |
06bcb89d | 753 | "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \ |
12f0bd74 NN |
754 | "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \ |
755 | "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \ | |
1b05fbbd | 756 | "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \ |
4b1cb4fe | 757 | "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \ |
e552509b ILT |
758 | "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \ |
759 | "GOCFLAGS_FOR_TARGET=$(GOCFLAGS_FOR_TARGET)" \ | |
12f0bd74 | 760 | "LD_FOR_TARGET=$(LD_FOR_TARGET)" \ |
7e0f7140 | 761 | "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \ |
414e5532 | 762 | "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \ |
12f0bd74 NN |
763 | "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ |
764 | "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \ | |
765 | "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ | |
5ae72758 | 766 | "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \ |
6b91c541 | 767 | "OBJCOPY_FOR_TARGET=$(OBJCOPY_FOR_TARGET)" \ |
12f0bd74 | 768 | "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \ |
b121d7d4 | 769 | "READELF_FOR_TARGET=$(READELF_FOR_TARGET)" \ |
7e0f7140 | 770 | "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \ |
12f0bd74 | 771 | "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \ |
0c24b341 | 772 | "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \ |
1b05fbbd | 773 | "BUILD_CONFIG=$(BUILD_CONFIG)" \ |
c52c6897 | 774 | "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ |
80911fe1 | 775 | "LEAN=$(LEAN)" \ |
1b05fbbd | 776 | "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \ |
1f53ca9a | 777 | "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \ |
1b05fbbd AO |
778 | "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \ |
779 | "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \ | |
1f53ca9a | 780 | "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \ |
1b05fbbd AO |
781 | "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \ |
782 | "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \ | |
1f53ca9a | 783 | "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \ |
1b05fbbd AO |
784 | "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \ |
785 | "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \ | |
1f53ca9a | 786 | "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \ |
1b05fbbd AO |
787 | "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \ |
788 | "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \ | |
1f53ca9a | 789 | "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \ |
1b05fbbd AO |
790 | "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \ |
791 | "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \ | |
1f53ca9a | 792 | "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \ |
1b05fbbd | 793 | "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \ |
87cda2cf | 794 | $(CXX_FOR_TARGET_FLAG_TO_PASS) \ |
1b05fbbd | 795 | "TFLAGS=$(TFLAGS)" \ |
10ecffb9 | 796 | "CONFIG_SHELL=$(SHELL)" \ |
52cf9762 NC |
797 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ |
798 | $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)") | |
252b5132 | 799 | |
55db4b87 PB |
800 | # We leave this in just in case, but it is not needed anymore. |
801 | RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) | |
656fdd47 | 802 | |
252b5132 RH |
803 | # Flags to pass down to most sub-makes, in which we're building with |
804 | # the host environment. | |
252b5132 RH |
805 | EXTRA_HOST_FLAGS = \ |
806 | 'AR=$(AR)' \ | |
807 | 'AS=$(AS)' \ | |
808 | 'CC=$(CC)' \ | |
809 | 'CXX=$(CXX)' \ | |
810 | 'DLLTOOL=$(DLLTOOL)' \ | |
1b05fbbd | 811 | 'GFORTRAN=$(GFORTRAN)' \ |
9b980aa1 | 812 | 'GOC=$(GOC)' \ |
252b5132 | 813 | 'LD=$(LD)' \ |
be01d343 | 814 | 'LIPO=$(LIPO)' \ |
252b5132 | 815 | 'NM=$(NM)' \ |
80911fe1 | 816 | 'OBJDUMP=$(OBJDUMP)' \ |
b9459e83 | 817 | 'RANLIB=$(RANLIB)' \ |
b121d7d4 | 818 | 'READELF=$(READELF)' \ |
be01d343 | 819 | 'STRIP=$(STRIP)' \ |
0c24b341 | 820 | 'WINDRES=$(WINDRES)' \ |
05a13254 NC |
821 | 'WINDMC=$(WINDMC)' \ |
822 | 'CREATE_GCOV=$(CREATE_GCOV)' | |
252b5132 RH |
823 | |
824 | FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) | |
825 | ||
b3676d82 EB |
826 | # Flags to pass to stage1 or when not bootstrapping. |
827 | ||
828 | STAGE1_FLAGS_TO_PASS = \ | |
829 | LDFLAGS="$${LDFLAGS}" \ | |
830 | HOST_LIBS="$${HOST_LIBS}" | |
831 | ||
8a0d8a5c PB |
832 | # Flags to pass to stage2 and later makes. |
833 | ||
834 | POSTSTAGE1_FLAGS_TO_PASS = \ | |
e8a5fa9c RW |
835 | CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \ |
836 | CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \ | |
837 | GNATBIND="$${GNATBIND}" \ | |
1f53ca9a AO |
838 | LDFLAGS="$${LDFLAGS}" \ |
839 | HOST_LIBS="$${HOST_LIBS}" \ | |
1b6c0831 | 840 | $(LTO_FLAGS_TO_PASS) \ |
8a0d8a5c PB |
841 | "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" |
842 | ||
f91ca6bc IB |
843 | @if gcc-bootstrap |
844 | EXTRA_HOST_EXPORTS = if [ $(current_stage) != stage1 ]; then \ | |
845 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
22121df0 | 846 | fi; |
f91ca6bc IB |
847 | |
848 | EXTRA_BOOTSTRAP_FLAGS = CC="$$CC" CXX="$$CXX" LDFLAGS="$$LDFLAGS" | |
849 | @endif gcc-bootstrap | |
850 | ||
252b5132 | 851 | # Flags to pass down to makes which are built with the target environment. |
0aed8855 PB |
852 | # The double $ decreases the length of the command line; those variables |
853 | # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The | |
7f6ef0c0 PB |
854 | # *_CFLAGS_FOR_TARGET variables are not passed down and most often empty, |
855 | # so we expand them here. | |
252b5132 RH |
856 | EXTRA_TARGET_FLAGS = \ |
857 | 'AR=$$(AR_FOR_TARGET)' \ | |
0aed8855 | 858 | 'AS=$(COMPILER_AS_FOR_TARGET)' \ |
1b05fbbd AO |
859 | 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \ |
860 | 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \ | |
1b6c0831 L |
861 | 'CXX=$$(CXX_FOR_TARGET) -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \ |
862 | -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \ | |
863 | $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \ | |
1b05fbbd | 864 | 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \ |
252b5132 | 865 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ |
1b05fbbd | 866 | 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \ |
9b980aa1 | 867 | 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \ |
e552509b | 868 | 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \ |
0aed8855 | 869 | 'LD=$(COMPILER_LD_FOR_TARGET)' \ |
414e5532 | 870 | 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \ |
1b05fbbd AO |
871 | 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \ |
872 | 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \ | |
0aed8855 | 873 | 'NM=$(COMPILER_NM_FOR_TARGET)' \ |
5ae72758 | 874 | 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \ |
6b91c541 | 875 | 'OBJCOPY=$$(OBJCOPY_FOR_TARGET)' \ |
252b5132 | 876 | 'RANLIB=$$(RANLIB_FOR_TARGET)' \ |
b121d7d4 | 877 | 'READELF=$$(READELF_FOR_TARGET)' \ |
0c24b341 | 878 | 'WINDRES=$$(WINDRES_FOR_TARGET)' \ |
1b05fbbd AO |
879 | 'WINDMC=$$(WINDMC_FOR_TARGET)' \ |
880 | 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \ | |
1b6c0831 L |
881 | 'STAGE1_LDFLAGS=$$(POSTSTAGE1_LDFLAGS)' \ |
882 | 'STAGE1_LIBS=$$(POSTSTAGE1_LIBS)' \ | |
1b05fbbd | 883 | "TFLAGS=$$TFLAGS" |
252b5132 RH |
884 | |
885 | TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) | |
886 | ||
887 | # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it | |
888 | # unfortunately needs the native compiler and the target ar and | |
889 | # ranlib. | |
890 | # If any variables are added here, they must be added to do-*, below. | |
2a4cbe27 | 891 | # The BUILD_* variables are a special case, which are used for the gcc |
252b5132 RH |
892 | # cross-building scheme. |
893 | EXTRA_GCC_FLAGS = \ | |
252b5132 | 894 | "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ |
3dee29da | 895 | "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ |
98dd765a | 896 | "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" |
252b5132 | 897 | |
f0b24077 | 898 | GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS) |
252b5132 | 899 | |
1b05fbbd | 900 | @if gcc |
96655cc4 | 901 | BUILD_CONFIG = @BUILD_CONFIG@ |
1b05fbbd AO |
902 | ifneq ($(BUILD_CONFIG),) |
903 | include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk) | |
904 | endif | |
905 | @endif gcc | |
906 | ||
dd12c3a8 | 907 | .PHONY: configure-host |
b813574b | 908 | configure-host: \ |
dd12c3a8 NN |
909 | maybe-configure-bfd \ |
910 | maybe-configure-opcodes \ | |
911 | maybe-configure-binutils \ | |
912 | maybe-configure-bison \ | |
f9806fa5 | 913 | maybe-configure-cgen \ |
dd12c3a8 | 914 | maybe-configure-dejagnu \ |
dd12c3a8 NN |
915 | maybe-configure-etc \ |
916 | maybe-configure-fastjar \ | |
d3ed111c | 917 | maybe-configure-fixincludes \ |
dd12c3a8 NN |
918 | maybe-configure-flex \ |
919 | maybe-configure-gas \ | |
b813574b | 920 | maybe-configure-gcc \ |
4b900473 PB |
921 | maybe-configure-gmp \ |
922 | maybe-configure-mpfr \ | |
e8a5fa9c | 923 | maybe-configure-mpc \ |
7ec59b9e | 924 | maybe-configure-isl \ |
1f53ca9a | 925 | maybe-configure-libelf \ |
93f9b408 | 926 | maybe-configure-gold \ |
dd12c3a8 | 927 | maybe-configure-gprof \ |
dd12c3a8 NN |
928 | maybe-configure-intl \ |
929 | maybe-configure-tcl \ | |
930 | maybe-configure-itcl \ | |
931 | maybe-configure-ld \ | |
2bf680c4 | 932 | maybe-configure-libbacktrace \ |
04cf1b77 | 933 | maybe-configure-libcpp \ |
be01d343 | 934 | maybe-configure-libdecnumber \ |
dd12c3a8 NN |
935 | maybe-configure-libgui \ |
936 | maybe-configure-libiberty \ | |
1b6c0831 | 937 | maybe-configure-libiberty-linker-plugin \ |
dc448a7b | 938 | maybe-configure-libiconv \ |
dd12c3a8 | 939 | maybe-configure-m4 \ |
dd12c3a8 | 940 | maybe-configure-readline \ |
dd12c3a8 NN |
941 | maybe-configure-sid \ |
942 | maybe-configure-sim \ | |
dd12c3a8 | 943 | maybe-configure-texinfo \ |
dd12c3a8 NN |
944 | maybe-configure-zlib \ |
945 | maybe-configure-gdb \ | |
946 | maybe-configure-expect \ | |
947 | maybe-configure-guile \ | |
948 | maybe-configure-tk \ | |
dd12c3a8 | 949 | maybe-configure-libtermcap \ |
b00612cc | 950 | maybe-configure-utils \ |
700d40ca | 951 | maybe-configure-gnattools \ |
1b6c0831 L |
952 | maybe-configure-lto-plugin \ |
953 | maybe-configure-libcc1 \ | |
954 | maybe-configure-gotools | |
dd12c3a8 NN |
955 | .PHONY: configure-target |
956 | configure-target: \ | |
957 | maybe-configure-target-libstdc++-v3 \ | |
5286fdef | 958 | maybe-configure-target-libsanitizer \ |
1b6c0831 | 959 | maybe-configure-target-libmpx \ |
95e43135 | 960 | maybe-configure-target-libvtv \ |
e78e02e6 | 961 | maybe-configure-target-libcilkrts \ |
1b6c0831 | 962 | maybe-configure-target-liboffloadmic \ |
064d0a7c | 963 | maybe-configure-target-libssp \ |
dd12c3a8 | 964 | maybe-configure-target-newlib \ |
6aa8ef82 | 965 | maybe-configure-target-libgcc \ |
2bf680c4 | 966 | maybe-configure-target-libbacktrace \ |
e552509b | 967 | maybe-configure-target-libquadmath \ |
4b1cb4fe | 968 | maybe-configure-target-libgfortran \ |
dd12c3a8 | 969 | maybe-configure-target-libobjc \ |
e552509b | 970 | maybe-configure-target-libgo \ |
dd12c3a8 NN |
971 | maybe-configure-target-libtermcap \ |
972 | maybe-configure-target-winsup \ | |
973 | maybe-configure-target-libgloss \ | |
dd12c3a8 | 974 | maybe-configure-target-libffi \ |
dd12c3a8 | 975 | maybe-configure-target-zlib \ |
a2592b1b | 976 | maybe-configure-target-rda \ |
b3ded179 | 977 | maybe-configure-target-libada \ |
7ec59b9e L |
978 | maybe-configure-target-libgomp \ |
979 | maybe-configure-target-libitm \ | |
980 | maybe-configure-target-libatomic | |
252b5132 | 981 | |
319cab08 PB |
982 | # The target built for a native non-bootstrap build. |
983 | .PHONY: all | |
f70224b5 PB |
984 | all: |
985 | @if gcc-bootstrap | |
be01d343 | 986 | [ -f stage_final ] || echo stage3 > stage_final |
f70224b5 PB |
987 | @r=`${PWD_COMMAND}`; export r; \ |
988 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 989 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble |
f70224b5 | 990 | @endif gcc-bootstrap |
0aed8855 | 991 | @: $(MAKE); $(unstage) |
f70224b5 PB |
992 | @r=`${PWD_COMMAND}`; export r; \ |
993 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 994 | @if gcc-bootstrap |
b5233201 | 995 | if [ -f stage_last ]; then \ |
07fc31c9 | 996 | TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \ |
be01d343 | 997 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \ |
f70224b5 | 998 | else \ |
1b05fbbd | 999 | @endif gcc-bootstrap |
b5233201 AO |
1000 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \ |
1001 | @if gcc-bootstrap | |
1002 | ; \ | |
04ec0acb | 1003 | fi \ |
b5233201 | 1004 | @endif gcc-bootstrap |
04ec0acb | 1005 | && : |
6a9cf61e PB |
1006 | |
1007 | .PHONY: all-build | |
c52c6897 PB |
1008 | |
1009 | all-build: maybe-all-build-libiberty | |
1010 | all-build: maybe-all-build-bison | |
c52c6897 PB |
1011 | all-build: maybe-all-build-flex |
1012 | all-build: maybe-all-build-m4 | |
1013 | all-build: maybe-all-build-texinfo | |
1014 | all-build: maybe-all-build-fixincludes | |
1b6c0831 | 1015 | all-build: maybe-all-build-libcpp |
c52c6897 | 1016 | |
dd12c3a8 | 1017 | .PHONY: all-host |
c52c6897 | 1018 | |
c52c6897 PB |
1019 | @if bfd-no-bootstrap |
1020 | all-host: maybe-all-bfd | |
1021 | @endif bfd-no-bootstrap | |
1022 | @if opcodes-no-bootstrap | |
1023 | all-host: maybe-all-opcodes | |
1024 | @endif opcodes-no-bootstrap | |
1025 | @if binutils-no-bootstrap | |
1026 | all-host: maybe-all-binutils | |
1027 | @endif binutils-no-bootstrap | |
1028 | all-host: maybe-all-bison | |
f9806fa5 | 1029 | all-host: maybe-all-cgen |
c52c6897 | 1030 | all-host: maybe-all-dejagnu |
c52c6897 PB |
1031 | all-host: maybe-all-etc |
1032 | all-host: maybe-all-fastjar | |
201f096f | 1033 | @if fixincludes-no-bootstrap |
c52c6897 | 1034 | all-host: maybe-all-fixincludes |
201f096f | 1035 | @endif fixincludes-no-bootstrap |
c52c6897 PB |
1036 | all-host: maybe-all-flex |
1037 | @if gas-no-bootstrap | |
1038 | all-host: maybe-all-gas | |
1039 | @endif gas-no-bootstrap | |
1040 | @if gcc-no-bootstrap | |
1041 | all-host: maybe-all-gcc | |
1042 | @endif gcc-no-bootstrap | |
4b900473 PB |
1043 | @if gmp-no-bootstrap |
1044 | all-host: maybe-all-gmp | |
1045 | @endif gmp-no-bootstrap | |
1046 | @if mpfr-no-bootstrap | |
1047 | all-host: maybe-all-mpfr | |
1048 | @endif mpfr-no-bootstrap | |
e8a5fa9c RW |
1049 | @if mpc-no-bootstrap |
1050 | all-host: maybe-all-mpc | |
1051 | @endif mpc-no-bootstrap | |
7ec59b9e L |
1052 | @if isl-no-bootstrap |
1053 | all-host: maybe-all-isl | |
1054 | @endif isl-no-bootstrap | |
1f53ca9a AO |
1055 | @if libelf-no-bootstrap |
1056 | all-host: maybe-all-libelf | |
1057 | @endif libelf-no-bootstrap | |
93f9b408 ILT |
1058 | @if gold-no-bootstrap |
1059 | all-host: maybe-all-gold | |
1060 | @endif gold-no-bootstrap | |
c52c6897 | 1061 | all-host: maybe-all-gprof |
c52c6897 PB |
1062 | @if intl-no-bootstrap |
1063 | all-host: maybe-all-intl | |
1064 | @endif intl-no-bootstrap | |
1065 | all-host: maybe-all-tcl | |
1066 | all-host: maybe-all-itcl | |
1067 | @if ld-no-bootstrap | |
1068 | all-host: maybe-all-ld | |
1069 | @endif ld-no-bootstrap | |
2bf680c4 ILT |
1070 | @if libbacktrace-no-bootstrap |
1071 | all-host: maybe-all-libbacktrace | |
1072 | @endif libbacktrace-no-bootstrap | |
c52c6897 PB |
1073 | @if libcpp-no-bootstrap |
1074 | all-host: maybe-all-libcpp | |
1075 | @endif libcpp-no-bootstrap | |
1076 | @if libdecnumber-no-bootstrap | |
1077 | all-host: maybe-all-libdecnumber | |
1078 | @endif libdecnumber-no-bootstrap | |
1079 | all-host: maybe-all-libgui | |
1080 | @if libiberty-no-bootstrap | |
1081 | all-host: maybe-all-libiberty | |
1082 | @endif libiberty-no-bootstrap | |
1b6c0831 L |
1083 | @if libiberty-linker-plugin-no-bootstrap |
1084 | all-host: maybe-all-libiberty-linker-plugin | |
1085 | @endif libiberty-linker-plugin-no-bootstrap | |
016a3251 | 1086 | @if libiconv-no-bootstrap |
dc448a7b | 1087 | all-host: maybe-all-libiconv |
016a3251 | 1088 | @endif libiconv-no-bootstrap |
c52c6897 | 1089 | all-host: maybe-all-m4 |
c52c6897 | 1090 | all-host: maybe-all-readline |
c52c6897 PB |
1091 | all-host: maybe-all-sid |
1092 | all-host: maybe-all-sim | |
c52c6897 | 1093 | all-host: maybe-all-texinfo |
c52c6897 PB |
1094 | @if zlib-no-bootstrap |
1095 | all-host: maybe-all-zlib | |
1096 | @endif zlib-no-bootstrap | |
1097 | all-host: maybe-all-gdb | |
1098 | all-host: maybe-all-expect | |
1099 | all-host: maybe-all-guile | |
1100 | all-host: maybe-all-tk | |
1101 | all-host: maybe-all-libtermcap | |
1102 | all-host: maybe-all-utils | |
1103 | all-host: maybe-all-gnattools | |
700d40ca ILT |
1104 | @if lto-plugin-no-bootstrap |
1105 | all-host: maybe-all-lto-plugin | |
1106 | @endif lto-plugin-no-bootstrap | |
1b6c0831 L |
1107 | all-host: maybe-all-libcc1 |
1108 | all-host: maybe-all-gotools | |
c52c6897 | 1109 | |
dd12c3a8 | 1110 | .PHONY: all-target |
c52c6897 | 1111 | |
e8a5fa9c | 1112 | @if target-libstdc++-v3-no-bootstrap |
c52c6897 | 1113 | all-target: maybe-all-target-libstdc++-v3 |
e8a5fa9c | 1114 | @endif target-libstdc++-v3-no-bootstrap |
5eb08693 | 1115 | @if target-libsanitizer-no-bootstrap |
5286fdef | 1116 | all-target: maybe-all-target-libsanitizer |
5eb08693 | 1117 | @endif target-libsanitizer-no-bootstrap |
1b6c0831 L |
1118 | @if target-libmpx-no-bootstrap |
1119 | all-target: maybe-all-target-libmpx | |
1120 | @endif target-libmpx-no-bootstrap | |
95e43135 JBG |
1121 | @if target-libvtv-no-bootstrap |
1122 | all-target: maybe-all-target-libvtv | |
1123 | @endif target-libvtv-no-bootstrap | |
e78e02e6 | 1124 | all-target: maybe-all-target-libcilkrts |
1b6c0831 | 1125 | all-target: maybe-all-target-liboffloadmic |
c52c6897 | 1126 | all-target: maybe-all-target-libssp |
c52c6897 | 1127 | all-target: maybe-all-target-newlib |
f86e35b8 | 1128 | @if target-libgcc-no-bootstrap |
6aa8ef82 | 1129 | all-target: maybe-all-target-libgcc |
f86e35b8 | 1130 | @endif target-libgcc-no-bootstrap |
2bf680c4 | 1131 | all-target: maybe-all-target-libbacktrace |
e552509b | 1132 | all-target: maybe-all-target-libquadmath |
c52c6897 PB |
1133 | all-target: maybe-all-target-libgfortran |
1134 | all-target: maybe-all-target-libobjc | |
e552509b | 1135 | all-target: maybe-all-target-libgo |
c52c6897 PB |
1136 | all-target: maybe-all-target-libtermcap |
1137 | all-target: maybe-all-target-winsup | |
1138 | all-target: maybe-all-target-libgloss | |
c52c6897 | 1139 | all-target: maybe-all-target-libffi |
c52c6897 | 1140 | all-target: maybe-all-target-zlib |
c52c6897 PB |
1141 | all-target: maybe-all-target-rda |
1142 | all-target: maybe-all-target-libada | |
911e63d0 | 1143 | @if target-libgomp-no-bootstrap |
c52c6897 | 1144 | all-target: maybe-all-target-libgomp |
911e63d0 | 1145 | @endif target-libgomp-no-bootstrap |
7ec59b9e L |
1146 | all-target: maybe-all-target-libitm |
1147 | all-target: maybe-all-target-libatomic | |
252b5132 RH |
1148 | |
1149 | # Do a target for all the subdirectories. A ``make do-X'' will do a | |
1150 | # ``make X'' in all subdirectories (because, in general, there is a | |
1151 | # dependency (below) of X upon do-X, a ``make X'' will also do this, | |
1152 | # but it may do additional work as well). | |
e393202e | 1153 | |
2a4cbe27 | 1154 | .PHONY: do-info |
f70224b5 | 1155 | do-info: |
0aed8855 | 1156 | @: $(MAKE); $(unstage) |
e360f423 PB |
1157 | @r=`${PWD_COMMAND}`; export r; \ |
1158 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1159 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \ | |
f70224b5 | 1160 | info-target |
f70224b5 | 1161 | |
e393202e | 1162 | |
2a4cbe27 | 1163 | .PHONY: info-host |
c52c6897 | 1164 | |
c52c6897 PB |
1165 | info-host: maybe-info-bfd |
1166 | info-host: maybe-info-opcodes | |
1167 | info-host: maybe-info-binutils | |
1168 | info-host: maybe-info-bison | |
f9806fa5 | 1169 | info-host: maybe-info-cgen |
c52c6897 | 1170 | info-host: maybe-info-dejagnu |
c52c6897 PB |
1171 | info-host: maybe-info-etc |
1172 | info-host: maybe-info-fastjar | |
c52c6897 PB |
1173 | info-host: maybe-info-fixincludes |
1174 | info-host: maybe-info-flex | |
1175 | info-host: maybe-info-gas | |
1176 | info-host: maybe-info-gcc | |
4b900473 PB |
1177 | info-host: maybe-info-gmp |
1178 | info-host: maybe-info-mpfr | |
e8a5fa9c | 1179 | info-host: maybe-info-mpc |
7ec59b9e | 1180 | info-host: maybe-info-isl |
1f53ca9a | 1181 | info-host: maybe-info-libelf |
93f9b408 | 1182 | info-host: maybe-info-gold |
c52c6897 | 1183 | info-host: maybe-info-gprof |
c52c6897 PB |
1184 | info-host: maybe-info-intl |
1185 | info-host: maybe-info-tcl | |
1186 | info-host: maybe-info-itcl | |
1187 | info-host: maybe-info-ld | |
2bf680c4 | 1188 | info-host: maybe-info-libbacktrace |
c52c6897 PB |
1189 | info-host: maybe-info-libcpp |
1190 | info-host: maybe-info-libdecnumber | |
1191 | info-host: maybe-info-libgui | |
1192 | info-host: maybe-info-libiberty | |
1b6c0831 | 1193 | info-host: maybe-info-libiberty-linker-plugin |
dc448a7b | 1194 | info-host: maybe-info-libiconv |
c52c6897 | 1195 | info-host: maybe-info-m4 |
c52c6897 | 1196 | info-host: maybe-info-readline |
c52c6897 PB |
1197 | info-host: maybe-info-sid |
1198 | info-host: maybe-info-sim | |
c52c6897 | 1199 | info-host: maybe-info-texinfo |
c52c6897 PB |
1200 | info-host: maybe-info-zlib |
1201 | info-host: maybe-info-gdb | |
1202 | info-host: maybe-info-expect | |
1203 | info-host: maybe-info-guile | |
1204 | info-host: maybe-info-tk | |
1205 | info-host: maybe-info-libtermcap | |
1206 | info-host: maybe-info-utils | |
1207 | info-host: maybe-info-gnattools | |
700d40ca | 1208 | info-host: maybe-info-lto-plugin |
1b6c0831 L |
1209 | info-host: maybe-info-libcc1 |
1210 | info-host: maybe-info-gotools | |
252b5132 | 1211 | |
2a4cbe27 | 1212 | .PHONY: info-target |
c52c6897 PB |
1213 | |
1214 | info-target: maybe-info-target-libstdc++-v3 | |
5286fdef | 1215 | info-target: maybe-info-target-libsanitizer |
1b6c0831 | 1216 | info-target: maybe-info-target-libmpx |
95e43135 | 1217 | info-target: maybe-info-target-libvtv |
e78e02e6 | 1218 | info-target: maybe-info-target-libcilkrts |
1b6c0831 | 1219 | info-target: maybe-info-target-liboffloadmic |
c52c6897 | 1220 | info-target: maybe-info-target-libssp |
c52c6897 | 1221 | info-target: maybe-info-target-newlib |
6aa8ef82 | 1222 | info-target: maybe-info-target-libgcc |
2bf680c4 | 1223 | info-target: maybe-info-target-libbacktrace |
e552509b | 1224 | info-target: maybe-info-target-libquadmath |
c52c6897 PB |
1225 | info-target: maybe-info-target-libgfortran |
1226 | info-target: maybe-info-target-libobjc | |
e552509b | 1227 | info-target: maybe-info-target-libgo |
c52c6897 PB |
1228 | info-target: maybe-info-target-libtermcap |
1229 | info-target: maybe-info-target-winsup | |
1230 | info-target: maybe-info-target-libgloss | |
c52c6897 | 1231 | info-target: maybe-info-target-libffi |
c52c6897 | 1232 | info-target: maybe-info-target-zlib |
c52c6897 PB |
1233 | info-target: maybe-info-target-rda |
1234 | info-target: maybe-info-target-libada | |
1235 | info-target: maybe-info-target-libgomp | |
7ec59b9e L |
1236 | info-target: maybe-info-target-libitm |
1237 | info-target: maybe-info-target-libatomic | |
252b5132 | 1238 | |
4fa63067 | 1239 | .PHONY: do-dvi |
f70224b5 | 1240 | do-dvi: |
0aed8855 | 1241 | @: $(MAKE); $(unstage) |
e360f423 PB |
1242 | @r=`${PWD_COMMAND}`; export r; \ |
1243 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1244 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \ | |
f70224b5 | 1245 | dvi-target |
f70224b5 | 1246 | |
2a4cbe27 | 1247 | |
4fa63067 | 1248 | .PHONY: dvi-host |
c52c6897 | 1249 | |
c52c6897 PB |
1250 | dvi-host: maybe-dvi-bfd |
1251 | dvi-host: maybe-dvi-opcodes | |
1252 | dvi-host: maybe-dvi-binutils | |
1253 | dvi-host: maybe-dvi-bison | |
f9806fa5 | 1254 | dvi-host: maybe-dvi-cgen |
c52c6897 | 1255 | dvi-host: maybe-dvi-dejagnu |
c52c6897 PB |
1256 | dvi-host: maybe-dvi-etc |
1257 | dvi-host: maybe-dvi-fastjar | |
c52c6897 PB |
1258 | dvi-host: maybe-dvi-fixincludes |
1259 | dvi-host: maybe-dvi-flex | |
1260 | dvi-host: maybe-dvi-gas | |
1261 | dvi-host: maybe-dvi-gcc | |
4b900473 PB |
1262 | dvi-host: maybe-dvi-gmp |
1263 | dvi-host: maybe-dvi-mpfr | |
e8a5fa9c | 1264 | dvi-host: maybe-dvi-mpc |
7ec59b9e | 1265 | dvi-host: maybe-dvi-isl |
1f53ca9a | 1266 | dvi-host: maybe-dvi-libelf |
93f9b408 | 1267 | dvi-host: maybe-dvi-gold |
c52c6897 | 1268 | dvi-host: maybe-dvi-gprof |
c52c6897 PB |
1269 | dvi-host: maybe-dvi-intl |
1270 | dvi-host: maybe-dvi-tcl | |
1271 | dvi-host: maybe-dvi-itcl | |
1272 | dvi-host: maybe-dvi-ld | |
2bf680c4 | 1273 | dvi-host: maybe-dvi-libbacktrace |
c52c6897 PB |
1274 | dvi-host: maybe-dvi-libcpp |
1275 | dvi-host: maybe-dvi-libdecnumber | |
1276 | dvi-host: maybe-dvi-libgui | |
1277 | dvi-host: maybe-dvi-libiberty | |
1b6c0831 | 1278 | dvi-host: maybe-dvi-libiberty-linker-plugin |
dc448a7b | 1279 | dvi-host: maybe-dvi-libiconv |
c52c6897 | 1280 | dvi-host: maybe-dvi-m4 |
c52c6897 | 1281 | dvi-host: maybe-dvi-readline |
c52c6897 PB |
1282 | dvi-host: maybe-dvi-sid |
1283 | dvi-host: maybe-dvi-sim | |
c52c6897 | 1284 | dvi-host: maybe-dvi-texinfo |
c52c6897 PB |
1285 | dvi-host: maybe-dvi-zlib |
1286 | dvi-host: maybe-dvi-gdb | |
1287 | dvi-host: maybe-dvi-expect | |
1288 | dvi-host: maybe-dvi-guile | |
1289 | dvi-host: maybe-dvi-tk | |
1290 | dvi-host: maybe-dvi-libtermcap | |
1291 | dvi-host: maybe-dvi-utils | |
1292 | dvi-host: maybe-dvi-gnattools | |
700d40ca | 1293 | dvi-host: maybe-dvi-lto-plugin |
1b6c0831 L |
1294 | dvi-host: maybe-dvi-libcc1 |
1295 | dvi-host: maybe-dvi-gotools | |
2a4cbe27 | 1296 | |
4fa63067 | 1297 | .PHONY: dvi-target |
c52c6897 PB |
1298 | |
1299 | dvi-target: maybe-dvi-target-libstdc++-v3 | |
5286fdef | 1300 | dvi-target: maybe-dvi-target-libsanitizer |
1b6c0831 | 1301 | dvi-target: maybe-dvi-target-libmpx |
95e43135 | 1302 | dvi-target: maybe-dvi-target-libvtv |
e78e02e6 | 1303 | dvi-target: maybe-dvi-target-libcilkrts |
1b6c0831 | 1304 | dvi-target: maybe-dvi-target-liboffloadmic |
c52c6897 | 1305 | dvi-target: maybe-dvi-target-libssp |
c52c6897 | 1306 | dvi-target: maybe-dvi-target-newlib |
6aa8ef82 | 1307 | dvi-target: maybe-dvi-target-libgcc |
2bf680c4 | 1308 | dvi-target: maybe-dvi-target-libbacktrace |
e552509b | 1309 | dvi-target: maybe-dvi-target-libquadmath |
c52c6897 PB |
1310 | dvi-target: maybe-dvi-target-libgfortran |
1311 | dvi-target: maybe-dvi-target-libobjc | |
e552509b | 1312 | dvi-target: maybe-dvi-target-libgo |
c52c6897 PB |
1313 | dvi-target: maybe-dvi-target-libtermcap |
1314 | dvi-target: maybe-dvi-target-winsup | |
1315 | dvi-target: maybe-dvi-target-libgloss | |
c52c6897 | 1316 | dvi-target: maybe-dvi-target-libffi |
c52c6897 | 1317 | dvi-target: maybe-dvi-target-zlib |
c52c6897 PB |
1318 | dvi-target: maybe-dvi-target-rda |
1319 | dvi-target: maybe-dvi-target-libada | |
1320 | dvi-target: maybe-dvi-target-libgomp | |
7ec59b9e L |
1321 | dvi-target: maybe-dvi-target-libitm |
1322 | dvi-target: maybe-dvi-target-libatomic | |
2a4cbe27 | 1323 | |
56a8fe78 DD |
1324 | .PHONY: do-pdf |
1325 | do-pdf: | |
1326 | @: $(MAKE); $(unstage) | |
1327 | @r=`${PWD_COMMAND}`; export r; \ | |
1328 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1329 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \ | |
1330 | pdf-target | |
1331 | ||
1332 | ||
1333 | .PHONY: pdf-host | |
1334 | ||
56a8fe78 DD |
1335 | pdf-host: maybe-pdf-bfd |
1336 | pdf-host: maybe-pdf-opcodes | |
1337 | pdf-host: maybe-pdf-binutils | |
1338 | pdf-host: maybe-pdf-bison | |
f9806fa5 | 1339 | pdf-host: maybe-pdf-cgen |
56a8fe78 | 1340 | pdf-host: maybe-pdf-dejagnu |
56a8fe78 DD |
1341 | pdf-host: maybe-pdf-etc |
1342 | pdf-host: maybe-pdf-fastjar | |
56a8fe78 DD |
1343 | pdf-host: maybe-pdf-fixincludes |
1344 | pdf-host: maybe-pdf-flex | |
1345 | pdf-host: maybe-pdf-gas | |
1346 | pdf-host: maybe-pdf-gcc | |
4b900473 PB |
1347 | pdf-host: maybe-pdf-gmp |
1348 | pdf-host: maybe-pdf-mpfr | |
e8a5fa9c | 1349 | pdf-host: maybe-pdf-mpc |
7ec59b9e | 1350 | pdf-host: maybe-pdf-isl |
1f53ca9a | 1351 | pdf-host: maybe-pdf-libelf |
93f9b408 | 1352 | pdf-host: maybe-pdf-gold |
56a8fe78 | 1353 | pdf-host: maybe-pdf-gprof |
56a8fe78 DD |
1354 | pdf-host: maybe-pdf-intl |
1355 | pdf-host: maybe-pdf-tcl | |
1356 | pdf-host: maybe-pdf-itcl | |
1357 | pdf-host: maybe-pdf-ld | |
2bf680c4 | 1358 | pdf-host: maybe-pdf-libbacktrace |
56a8fe78 DD |
1359 | pdf-host: maybe-pdf-libcpp |
1360 | pdf-host: maybe-pdf-libdecnumber | |
1361 | pdf-host: maybe-pdf-libgui | |
1362 | pdf-host: maybe-pdf-libiberty | |
1b6c0831 | 1363 | pdf-host: maybe-pdf-libiberty-linker-plugin |
dc448a7b | 1364 | pdf-host: maybe-pdf-libiconv |
56a8fe78 | 1365 | pdf-host: maybe-pdf-m4 |
56a8fe78 | 1366 | pdf-host: maybe-pdf-readline |
56a8fe78 DD |
1367 | pdf-host: maybe-pdf-sid |
1368 | pdf-host: maybe-pdf-sim | |
56a8fe78 | 1369 | pdf-host: maybe-pdf-texinfo |
56a8fe78 DD |
1370 | pdf-host: maybe-pdf-zlib |
1371 | pdf-host: maybe-pdf-gdb | |
1372 | pdf-host: maybe-pdf-expect | |
1373 | pdf-host: maybe-pdf-guile | |
1374 | pdf-host: maybe-pdf-tk | |
1375 | pdf-host: maybe-pdf-libtermcap | |
1376 | pdf-host: maybe-pdf-utils | |
1377 | pdf-host: maybe-pdf-gnattools | |
700d40ca | 1378 | pdf-host: maybe-pdf-lto-plugin |
1b6c0831 L |
1379 | pdf-host: maybe-pdf-libcc1 |
1380 | pdf-host: maybe-pdf-gotools | |
56a8fe78 DD |
1381 | |
1382 | .PHONY: pdf-target | |
1383 | ||
1384 | pdf-target: maybe-pdf-target-libstdc++-v3 | |
5286fdef | 1385 | pdf-target: maybe-pdf-target-libsanitizer |
1b6c0831 | 1386 | pdf-target: maybe-pdf-target-libmpx |
95e43135 | 1387 | pdf-target: maybe-pdf-target-libvtv |
e78e02e6 | 1388 | pdf-target: maybe-pdf-target-libcilkrts |
1b6c0831 | 1389 | pdf-target: maybe-pdf-target-liboffloadmic |
56a8fe78 DD |
1390 | pdf-target: maybe-pdf-target-libssp |
1391 | pdf-target: maybe-pdf-target-newlib | |
6aa8ef82 | 1392 | pdf-target: maybe-pdf-target-libgcc |
2bf680c4 | 1393 | pdf-target: maybe-pdf-target-libbacktrace |
e552509b | 1394 | pdf-target: maybe-pdf-target-libquadmath |
56a8fe78 DD |
1395 | pdf-target: maybe-pdf-target-libgfortran |
1396 | pdf-target: maybe-pdf-target-libobjc | |
e552509b | 1397 | pdf-target: maybe-pdf-target-libgo |
56a8fe78 DD |
1398 | pdf-target: maybe-pdf-target-libtermcap |
1399 | pdf-target: maybe-pdf-target-winsup | |
1400 | pdf-target: maybe-pdf-target-libgloss | |
56a8fe78 | 1401 | pdf-target: maybe-pdf-target-libffi |
56a8fe78 | 1402 | pdf-target: maybe-pdf-target-zlib |
56a8fe78 DD |
1403 | pdf-target: maybe-pdf-target-rda |
1404 | pdf-target: maybe-pdf-target-libada | |
1405 | pdf-target: maybe-pdf-target-libgomp | |
7ec59b9e L |
1406 | pdf-target: maybe-pdf-target-libitm |
1407 | pdf-target: maybe-pdf-target-libatomic | |
56a8fe78 | 1408 | |
6d389afc | 1409 | .PHONY: do-html |
f70224b5 | 1410 | do-html: |
0aed8855 | 1411 | @: $(MAKE); $(unstage) |
e360f423 PB |
1412 | @r=`${PWD_COMMAND}`; export r; \ |
1413 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1414 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \ | |
f70224b5 | 1415 | html-target |
f70224b5 | 1416 | |
6d389afc MS |
1417 | |
1418 | .PHONY: html-host | |
c52c6897 | 1419 | |
c52c6897 PB |
1420 | html-host: maybe-html-bfd |
1421 | html-host: maybe-html-opcodes | |
1422 | html-host: maybe-html-binutils | |
1423 | html-host: maybe-html-bison | |
f9806fa5 | 1424 | html-host: maybe-html-cgen |
c52c6897 | 1425 | html-host: maybe-html-dejagnu |
c52c6897 PB |
1426 | html-host: maybe-html-etc |
1427 | html-host: maybe-html-fastjar | |
c52c6897 PB |
1428 | html-host: maybe-html-fixincludes |
1429 | html-host: maybe-html-flex | |
1430 | html-host: maybe-html-gas | |
1431 | html-host: maybe-html-gcc | |
4b900473 PB |
1432 | html-host: maybe-html-gmp |
1433 | html-host: maybe-html-mpfr | |
e8a5fa9c | 1434 | html-host: maybe-html-mpc |
7ec59b9e | 1435 | html-host: maybe-html-isl |
1f53ca9a | 1436 | html-host: maybe-html-libelf |
93f9b408 | 1437 | html-host: maybe-html-gold |
c52c6897 | 1438 | html-host: maybe-html-gprof |
c52c6897 PB |
1439 | html-host: maybe-html-intl |
1440 | html-host: maybe-html-tcl | |
1441 | html-host: maybe-html-itcl | |
1442 | html-host: maybe-html-ld | |
2bf680c4 | 1443 | html-host: maybe-html-libbacktrace |
c52c6897 PB |
1444 | html-host: maybe-html-libcpp |
1445 | html-host: maybe-html-libdecnumber | |
1446 | html-host: maybe-html-libgui | |
1447 | html-host: maybe-html-libiberty | |
1b6c0831 | 1448 | html-host: maybe-html-libiberty-linker-plugin |
dc448a7b | 1449 | html-host: maybe-html-libiconv |
c52c6897 | 1450 | html-host: maybe-html-m4 |
c52c6897 | 1451 | html-host: maybe-html-readline |
c52c6897 PB |
1452 | html-host: maybe-html-sid |
1453 | html-host: maybe-html-sim | |
c52c6897 | 1454 | html-host: maybe-html-texinfo |
c52c6897 PB |
1455 | html-host: maybe-html-zlib |
1456 | html-host: maybe-html-gdb | |
1457 | html-host: maybe-html-expect | |
1458 | html-host: maybe-html-guile | |
1459 | html-host: maybe-html-tk | |
1460 | html-host: maybe-html-libtermcap | |
1461 | html-host: maybe-html-utils | |
1462 | html-host: maybe-html-gnattools | |
700d40ca | 1463 | html-host: maybe-html-lto-plugin |
1b6c0831 L |
1464 | html-host: maybe-html-libcc1 |
1465 | html-host: maybe-html-gotools | |
6d389afc MS |
1466 | |
1467 | .PHONY: html-target | |
c52c6897 PB |
1468 | |
1469 | html-target: maybe-html-target-libstdc++-v3 | |
5286fdef | 1470 | html-target: maybe-html-target-libsanitizer |
1b6c0831 | 1471 | html-target: maybe-html-target-libmpx |
95e43135 | 1472 | html-target: maybe-html-target-libvtv |
e78e02e6 | 1473 | html-target: maybe-html-target-libcilkrts |
1b6c0831 | 1474 | html-target: maybe-html-target-liboffloadmic |
c52c6897 | 1475 | html-target: maybe-html-target-libssp |
c52c6897 | 1476 | html-target: maybe-html-target-newlib |
6aa8ef82 | 1477 | html-target: maybe-html-target-libgcc |
2bf680c4 | 1478 | html-target: maybe-html-target-libbacktrace |
e552509b | 1479 | html-target: maybe-html-target-libquadmath |
c52c6897 PB |
1480 | html-target: maybe-html-target-libgfortran |
1481 | html-target: maybe-html-target-libobjc | |
e552509b | 1482 | html-target: maybe-html-target-libgo |
c52c6897 PB |
1483 | html-target: maybe-html-target-libtermcap |
1484 | html-target: maybe-html-target-winsup | |
1485 | html-target: maybe-html-target-libgloss | |
c52c6897 | 1486 | html-target: maybe-html-target-libffi |
c52c6897 | 1487 | html-target: maybe-html-target-zlib |
c52c6897 PB |
1488 | html-target: maybe-html-target-rda |
1489 | html-target: maybe-html-target-libada | |
1490 | html-target: maybe-html-target-libgomp | |
7ec59b9e L |
1491 | html-target: maybe-html-target-libitm |
1492 | html-target: maybe-html-target-libatomic | |
6d389afc | 1493 | |
4fa63067 | 1494 | .PHONY: do-TAGS |
f70224b5 | 1495 | do-TAGS: |
0aed8855 | 1496 | @: $(MAKE); $(unstage) |
e360f423 PB |
1497 | @r=`${PWD_COMMAND}`; export r; \ |
1498 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1499 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \ | |
f70224b5 | 1500 | TAGS-target |
f70224b5 | 1501 | |
2a4cbe27 | 1502 | |
4fa63067 | 1503 | .PHONY: TAGS-host |
c52c6897 | 1504 | |
c52c6897 PB |
1505 | TAGS-host: maybe-TAGS-bfd |
1506 | TAGS-host: maybe-TAGS-opcodes | |
1507 | TAGS-host: maybe-TAGS-binutils | |
1508 | TAGS-host: maybe-TAGS-bison | |
f9806fa5 | 1509 | TAGS-host: maybe-TAGS-cgen |
c52c6897 | 1510 | TAGS-host: maybe-TAGS-dejagnu |
c52c6897 PB |
1511 | TAGS-host: maybe-TAGS-etc |
1512 | TAGS-host: maybe-TAGS-fastjar | |
c52c6897 PB |
1513 | TAGS-host: maybe-TAGS-fixincludes |
1514 | TAGS-host: maybe-TAGS-flex | |
1515 | TAGS-host: maybe-TAGS-gas | |
1516 | TAGS-host: maybe-TAGS-gcc | |
4b900473 PB |
1517 | TAGS-host: maybe-TAGS-gmp |
1518 | TAGS-host: maybe-TAGS-mpfr | |
e8a5fa9c | 1519 | TAGS-host: maybe-TAGS-mpc |
7ec59b9e | 1520 | TAGS-host: maybe-TAGS-isl |
1f53ca9a | 1521 | TAGS-host: maybe-TAGS-libelf |
93f9b408 | 1522 | TAGS-host: maybe-TAGS-gold |
c52c6897 | 1523 | TAGS-host: maybe-TAGS-gprof |
c52c6897 PB |
1524 | TAGS-host: maybe-TAGS-intl |
1525 | TAGS-host: maybe-TAGS-tcl | |
1526 | TAGS-host: maybe-TAGS-itcl | |
1527 | TAGS-host: maybe-TAGS-ld | |
2bf680c4 | 1528 | TAGS-host: maybe-TAGS-libbacktrace |
c52c6897 PB |
1529 | TAGS-host: maybe-TAGS-libcpp |
1530 | TAGS-host: maybe-TAGS-libdecnumber | |
1531 | TAGS-host: maybe-TAGS-libgui | |
1532 | TAGS-host: maybe-TAGS-libiberty | |
1b6c0831 | 1533 | TAGS-host: maybe-TAGS-libiberty-linker-plugin |
dc448a7b | 1534 | TAGS-host: maybe-TAGS-libiconv |
c52c6897 | 1535 | TAGS-host: maybe-TAGS-m4 |
c52c6897 | 1536 | TAGS-host: maybe-TAGS-readline |
c52c6897 PB |
1537 | TAGS-host: maybe-TAGS-sid |
1538 | TAGS-host: maybe-TAGS-sim | |
c52c6897 | 1539 | TAGS-host: maybe-TAGS-texinfo |
c52c6897 PB |
1540 | TAGS-host: maybe-TAGS-zlib |
1541 | TAGS-host: maybe-TAGS-gdb | |
1542 | TAGS-host: maybe-TAGS-expect | |
1543 | TAGS-host: maybe-TAGS-guile | |
1544 | TAGS-host: maybe-TAGS-tk | |
1545 | TAGS-host: maybe-TAGS-libtermcap | |
1546 | TAGS-host: maybe-TAGS-utils | |
1547 | TAGS-host: maybe-TAGS-gnattools | |
700d40ca | 1548 | TAGS-host: maybe-TAGS-lto-plugin |
1b6c0831 L |
1549 | TAGS-host: maybe-TAGS-libcc1 |
1550 | TAGS-host: maybe-TAGS-gotools | |
2a4cbe27 | 1551 | |
4fa63067 | 1552 | .PHONY: TAGS-target |
c52c6897 PB |
1553 | |
1554 | TAGS-target: maybe-TAGS-target-libstdc++-v3 | |
5286fdef | 1555 | TAGS-target: maybe-TAGS-target-libsanitizer |
1b6c0831 | 1556 | TAGS-target: maybe-TAGS-target-libmpx |
95e43135 | 1557 | TAGS-target: maybe-TAGS-target-libvtv |
e78e02e6 | 1558 | TAGS-target: maybe-TAGS-target-libcilkrts |
1b6c0831 | 1559 | TAGS-target: maybe-TAGS-target-liboffloadmic |
c52c6897 | 1560 | TAGS-target: maybe-TAGS-target-libssp |
c52c6897 | 1561 | TAGS-target: maybe-TAGS-target-newlib |
6aa8ef82 | 1562 | TAGS-target: maybe-TAGS-target-libgcc |
2bf680c4 | 1563 | TAGS-target: maybe-TAGS-target-libbacktrace |
e552509b | 1564 | TAGS-target: maybe-TAGS-target-libquadmath |
c52c6897 PB |
1565 | TAGS-target: maybe-TAGS-target-libgfortran |
1566 | TAGS-target: maybe-TAGS-target-libobjc | |
e552509b | 1567 | TAGS-target: maybe-TAGS-target-libgo |
c52c6897 PB |
1568 | TAGS-target: maybe-TAGS-target-libtermcap |
1569 | TAGS-target: maybe-TAGS-target-winsup | |
1570 | TAGS-target: maybe-TAGS-target-libgloss | |
c52c6897 | 1571 | TAGS-target: maybe-TAGS-target-libffi |
c52c6897 | 1572 | TAGS-target: maybe-TAGS-target-zlib |
c52c6897 PB |
1573 | TAGS-target: maybe-TAGS-target-rda |
1574 | TAGS-target: maybe-TAGS-target-libada | |
1575 | TAGS-target: maybe-TAGS-target-libgomp | |
7ec59b9e L |
1576 | TAGS-target: maybe-TAGS-target-libitm |
1577 | TAGS-target: maybe-TAGS-target-libatomic | |
a2592b1b | 1578 | |
4fa63067 | 1579 | .PHONY: do-install-info |
f70224b5 | 1580 | do-install-info: |
0aed8855 | 1581 | @: $(MAKE); $(unstage) |
e360f423 PB |
1582 | @r=`${PWD_COMMAND}`; export r; \ |
1583 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1584 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \ | |
f70224b5 | 1585 | install-info-target |
f70224b5 | 1586 | |
a2592b1b | 1587 | |
4fa63067 | 1588 | .PHONY: install-info-host |
c52c6897 | 1589 | |
c52c6897 PB |
1590 | install-info-host: maybe-install-info-bfd |
1591 | install-info-host: maybe-install-info-opcodes | |
1592 | install-info-host: maybe-install-info-binutils | |
1593 | install-info-host: maybe-install-info-bison | |
f9806fa5 | 1594 | install-info-host: maybe-install-info-cgen |
c52c6897 | 1595 | install-info-host: maybe-install-info-dejagnu |
c52c6897 PB |
1596 | install-info-host: maybe-install-info-etc |
1597 | install-info-host: maybe-install-info-fastjar | |
c52c6897 PB |
1598 | install-info-host: maybe-install-info-fixincludes |
1599 | install-info-host: maybe-install-info-flex | |
1600 | install-info-host: maybe-install-info-gas | |
1601 | install-info-host: maybe-install-info-gcc | |
4b900473 PB |
1602 | install-info-host: maybe-install-info-gmp |
1603 | install-info-host: maybe-install-info-mpfr | |
e8a5fa9c | 1604 | install-info-host: maybe-install-info-mpc |
7ec59b9e | 1605 | install-info-host: maybe-install-info-isl |
1f53ca9a | 1606 | install-info-host: maybe-install-info-libelf |
93f9b408 | 1607 | install-info-host: maybe-install-info-gold |
c52c6897 | 1608 | install-info-host: maybe-install-info-gprof |
c52c6897 PB |
1609 | install-info-host: maybe-install-info-intl |
1610 | install-info-host: maybe-install-info-tcl | |
1611 | install-info-host: maybe-install-info-itcl | |
1612 | install-info-host: maybe-install-info-ld | |
2bf680c4 | 1613 | install-info-host: maybe-install-info-libbacktrace |
c52c6897 PB |
1614 | install-info-host: maybe-install-info-libcpp |
1615 | install-info-host: maybe-install-info-libdecnumber | |
1616 | install-info-host: maybe-install-info-libgui | |
1617 | install-info-host: maybe-install-info-libiberty | |
1b6c0831 | 1618 | install-info-host: maybe-install-info-libiberty-linker-plugin |
dc448a7b | 1619 | install-info-host: maybe-install-info-libiconv |
c52c6897 | 1620 | install-info-host: maybe-install-info-m4 |
c52c6897 | 1621 | install-info-host: maybe-install-info-readline |
c52c6897 PB |
1622 | install-info-host: maybe-install-info-sid |
1623 | install-info-host: maybe-install-info-sim | |
c52c6897 | 1624 | install-info-host: maybe-install-info-texinfo |
c52c6897 PB |
1625 | install-info-host: maybe-install-info-zlib |
1626 | install-info-host: maybe-install-info-gdb | |
1627 | install-info-host: maybe-install-info-expect | |
1628 | install-info-host: maybe-install-info-guile | |
1629 | install-info-host: maybe-install-info-tk | |
1630 | install-info-host: maybe-install-info-libtermcap | |
1631 | install-info-host: maybe-install-info-utils | |
1632 | install-info-host: maybe-install-info-gnattools | |
700d40ca | 1633 | install-info-host: maybe-install-info-lto-plugin |
1b6c0831 L |
1634 | install-info-host: maybe-install-info-libcc1 |
1635 | install-info-host: maybe-install-info-gotools | |
a2592b1b | 1636 | |
4fa63067 | 1637 | .PHONY: install-info-target |
c52c6897 PB |
1638 | |
1639 | install-info-target: maybe-install-info-target-libstdc++-v3 | |
5286fdef | 1640 | install-info-target: maybe-install-info-target-libsanitizer |
1b6c0831 | 1641 | install-info-target: maybe-install-info-target-libmpx |
95e43135 | 1642 | install-info-target: maybe-install-info-target-libvtv |
e78e02e6 | 1643 | install-info-target: maybe-install-info-target-libcilkrts |
1b6c0831 | 1644 | install-info-target: maybe-install-info-target-liboffloadmic |
c52c6897 | 1645 | install-info-target: maybe-install-info-target-libssp |
c52c6897 | 1646 | install-info-target: maybe-install-info-target-newlib |
6aa8ef82 | 1647 | install-info-target: maybe-install-info-target-libgcc |
2bf680c4 | 1648 | install-info-target: maybe-install-info-target-libbacktrace |
e552509b | 1649 | install-info-target: maybe-install-info-target-libquadmath |
c52c6897 PB |
1650 | install-info-target: maybe-install-info-target-libgfortran |
1651 | install-info-target: maybe-install-info-target-libobjc | |
e552509b | 1652 | install-info-target: maybe-install-info-target-libgo |
c52c6897 PB |
1653 | install-info-target: maybe-install-info-target-libtermcap |
1654 | install-info-target: maybe-install-info-target-winsup | |
1655 | install-info-target: maybe-install-info-target-libgloss | |
c52c6897 | 1656 | install-info-target: maybe-install-info-target-libffi |
c52c6897 | 1657 | install-info-target: maybe-install-info-target-zlib |
c52c6897 PB |
1658 | install-info-target: maybe-install-info-target-rda |
1659 | install-info-target: maybe-install-info-target-libada | |
1660 | install-info-target: maybe-install-info-target-libgomp | |
7ec59b9e L |
1661 | install-info-target: maybe-install-info-target-libitm |
1662 | install-info-target: maybe-install-info-target-libatomic | |
2a4cbe27 | 1663 | |
a3ca38d2 DD |
1664 | .PHONY: do-install-pdf |
1665 | do-install-pdf: | |
1666 | @: $(MAKE); $(unstage) | |
1667 | @r=`${PWD_COMMAND}`; export r; \ | |
1668 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1669 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \ | |
1670 | install-pdf-target | |
1671 | ||
1672 | ||
1673 | .PHONY: install-pdf-host | |
1674 | ||
a3ca38d2 DD |
1675 | install-pdf-host: maybe-install-pdf-bfd |
1676 | install-pdf-host: maybe-install-pdf-opcodes | |
1677 | install-pdf-host: maybe-install-pdf-binutils | |
1678 | install-pdf-host: maybe-install-pdf-bison | |
f9806fa5 | 1679 | install-pdf-host: maybe-install-pdf-cgen |
a3ca38d2 | 1680 | install-pdf-host: maybe-install-pdf-dejagnu |
a3ca38d2 DD |
1681 | install-pdf-host: maybe-install-pdf-etc |
1682 | install-pdf-host: maybe-install-pdf-fastjar | |
a3ca38d2 DD |
1683 | install-pdf-host: maybe-install-pdf-fixincludes |
1684 | install-pdf-host: maybe-install-pdf-flex | |
1685 | install-pdf-host: maybe-install-pdf-gas | |
1686 | install-pdf-host: maybe-install-pdf-gcc | |
a3ca38d2 DD |
1687 | install-pdf-host: maybe-install-pdf-gmp |
1688 | install-pdf-host: maybe-install-pdf-mpfr | |
e8a5fa9c | 1689 | install-pdf-host: maybe-install-pdf-mpc |
7ec59b9e | 1690 | install-pdf-host: maybe-install-pdf-isl |
1f53ca9a | 1691 | install-pdf-host: maybe-install-pdf-libelf |
93f9b408 | 1692 | install-pdf-host: maybe-install-pdf-gold |
a3ca38d2 | 1693 | install-pdf-host: maybe-install-pdf-gprof |
a3ca38d2 DD |
1694 | install-pdf-host: maybe-install-pdf-intl |
1695 | install-pdf-host: maybe-install-pdf-tcl | |
1696 | install-pdf-host: maybe-install-pdf-itcl | |
1697 | install-pdf-host: maybe-install-pdf-ld | |
2bf680c4 | 1698 | install-pdf-host: maybe-install-pdf-libbacktrace |
a3ca38d2 DD |
1699 | install-pdf-host: maybe-install-pdf-libcpp |
1700 | install-pdf-host: maybe-install-pdf-libdecnumber | |
1701 | install-pdf-host: maybe-install-pdf-libgui | |
1702 | install-pdf-host: maybe-install-pdf-libiberty | |
1b6c0831 | 1703 | install-pdf-host: maybe-install-pdf-libiberty-linker-plugin |
dc448a7b | 1704 | install-pdf-host: maybe-install-pdf-libiconv |
a3ca38d2 | 1705 | install-pdf-host: maybe-install-pdf-m4 |
a3ca38d2 | 1706 | install-pdf-host: maybe-install-pdf-readline |
a3ca38d2 DD |
1707 | install-pdf-host: maybe-install-pdf-sid |
1708 | install-pdf-host: maybe-install-pdf-sim | |
a3ca38d2 | 1709 | install-pdf-host: maybe-install-pdf-texinfo |
a3ca38d2 DD |
1710 | install-pdf-host: maybe-install-pdf-zlib |
1711 | install-pdf-host: maybe-install-pdf-gdb | |
1712 | install-pdf-host: maybe-install-pdf-expect | |
1713 | install-pdf-host: maybe-install-pdf-guile | |
1714 | install-pdf-host: maybe-install-pdf-tk | |
1715 | install-pdf-host: maybe-install-pdf-libtermcap | |
1716 | install-pdf-host: maybe-install-pdf-utils | |
1717 | install-pdf-host: maybe-install-pdf-gnattools | |
700d40ca | 1718 | install-pdf-host: maybe-install-pdf-lto-plugin |
1b6c0831 L |
1719 | install-pdf-host: maybe-install-pdf-libcc1 |
1720 | install-pdf-host: maybe-install-pdf-gotools | |
a3ca38d2 DD |
1721 | |
1722 | .PHONY: install-pdf-target | |
1723 | ||
1724 | install-pdf-target: maybe-install-pdf-target-libstdc++-v3 | |
5286fdef | 1725 | install-pdf-target: maybe-install-pdf-target-libsanitizer |
1b6c0831 | 1726 | install-pdf-target: maybe-install-pdf-target-libmpx |
95e43135 | 1727 | install-pdf-target: maybe-install-pdf-target-libvtv |
e78e02e6 | 1728 | install-pdf-target: maybe-install-pdf-target-libcilkrts |
1b6c0831 | 1729 | install-pdf-target: maybe-install-pdf-target-liboffloadmic |
a3ca38d2 DD |
1730 | install-pdf-target: maybe-install-pdf-target-libssp |
1731 | install-pdf-target: maybe-install-pdf-target-newlib | |
1732 | install-pdf-target: maybe-install-pdf-target-libgcc | |
2bf680c4 | 1733 | install-pdf-target: maybe-install-pdf-target-libbacktrace |
e552509b | 1734 | install-pdf-target: maybe-install-pdf-target-libquadmath |
a3ca38d2 DD |
1735 | install-pdf-target: maybe-install-pdf-target-libgfortran |
1736 | install-pdf-target: maybe-install-pdf-target-libobjc | |
e552509b | 1737 | install-pdf-target: maybe-install-pdf-target-libgo |
a3ca38d2 DD |
1738 | install-pdf-target: maybe-install-pdf-target-libtermcap |
1739 | install-pdf-target: maybe-install-pdf-target-winsup | |
1740 | install-pdf-target: maybe-install-pdf-target-libgloss | |
a3ca38d2 | 1741 | install-pdf-target: maybe-install-pdf-target-libffi |
a3ca38d2 | 1742 | install-pdf-target: maybe-install-pdf-target-zlib |
a3ca38d2 DD |
1743 | install-pdf-target: maybe-install-pdf-target-rda |
1744 | install-pdf-target: maybe-install-pdf-target-libada | |
1745 | install-pdf-target: maybe-install-pdf-target-libgomp | |
7ec59b9e L |
1746 | install-pdf-target: maybe-install-pdf-target-libitm |
1747 | install-pdf-target: maybe-install-pdf-target-libatomic | |
a3ca38d2 | 1748 | |
108a6f8e CD |
1749 | .PHONY: do-install-html |
1750 | do-install-html: | |
1751 | @: $(MAKE); $(unstage) | |
1752 | @r=`${PWD_COMMAND}`; export r; \ | |
1753 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1754 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \ | |
1755 | install-html-target | |
1756 | ||
1757 | ||
1758 | .PHONY: install-html-host | |
1759 | ||
108a6f8e CD |
1760 | install-html-host: maybe-install-html-bfd |
1761 | install-html-host: maybe-install-html-opcodes | |
1762 | install-html-host: maybe-install-html-binutils | |
1763 | install-html-host: maybe-install-html-bison | |
f9806fa5 | 1764 | install-html-host: maybe-install-html-cgen |
108a6f8e | 1765 | install-html-host: maybe-install-html-dejagnu |
108a6f8e CD |
1766 | install-html-host: maybe-install-html-etc |
1767 | install-html-host: maybe-install-html-fastjar | |
108a6f8e CD |
1768 | install-html-host: maybe-install-html-fixincludes |
1769 | install-html-host: maybe-install-html-flex | |
1770 | install-html-host: maybe-install-html-gas | |
1771 | install-html-host: maybe-install-html-gcc | |
4b900473 PB |
1772 | install-html-host: maybe-install-html-gmp |
1773 | install-html-host: maybe-install-html-mpfr | |
e8a5fa9c | 1774 | install-html-host: maybe-install-html-mpc |
7ec59b9e | 1775 | install-html-host: maybe-install-html-isl |
1f53ca9a | 1776 | install-html-host: maybe-install-html-libelf |
93f9b408 | 1777 | install-html-host: maybe-install-html-gold |
108a6f8e | 1778 | install-html-host: maybe-install-html-gprof |
108a6f8e CD |
1779 | install-html-host: maybe-install-html-intl |
1780 | install-html-host: maybe-install-html-tcl | |
1781 | install-html-host: maybe-install-html-itcl | |
1782 | install-html-host: maybe-install-html-ld | |
2bf680c4 | 1783 | install-html-host: maybe-install-html-libbacktrace |
108a6f8e CD |
1784 | install-html-host: maybe-install-html-libcpp |
1785 | install-html-host: maybe-install-html-libdecnumber | |
1786 | install-html-host: maybe-install-html-libgui | |
1787 | install-html-host: maybe-install-html-libiberty | |
1b6c0831 | 1788 | install-html-host: maybe-install-html-libiberty-linker-plugin |
dc448a7b | 1789 | install-html-host: maybe-install-html-libiconv |
108a6f8e | 1790 | install-html-host: maybe-install-html-m4 |
108a6f8e | 1791 | install-html-host: maybe-install-html-readline |
108a6f8e CD |
1792 | install-html-host: maybe-install-html-sid |
1793 | install-html-host: maybe-install-html-sim | |
108a6f8e | 1794 | install-html-host: maybe-install-html-texinfo |
108a6f8e CD |
1795 | install-html-host: maybe-install-html-zlib |
1796 | install-html-host: maybe-install-html-gdb | |
1797 | install-html-host: maybe-install-html-expect | |
1798 | install-html-host: maybe-install-html-guile | |
1799 | install-html-host: maybe-install-html-tk | |
1800 | install-html-host: maybe-install-html-libtermcap | |
1801 | install-html-host: maybe-install-html-utils | |
1802 | install-html-host: maybe-install-html-gnattools | |
700d40ca | 1803 | install-html-host: maybe-install-html-lto-plugin |
1b6c0831 L |
1804 | install-html-host: maybe-install-html-libcc1 |
1805 | install-html-host: maybe-install-html-gotools | |
108a6f8e CD |
1806 | |
1807 | .PHONY: install-html-target | |
1808 | ||
1809 | install-html-target: maybe-install-html-target-libstdc++-v3 | |
5286fdef | 1810 | install-html-target: maybe-install-html-target-libsanitizer |
1b6c0831 | 1811 | install-html-target: maybe-install-html-target-libmpx |
95e43135 | 1812 | install-html-target: maybe-install-html-target-libvtv |
e78e02e6 | 1813 | install-html-target: maybe-install-html-target-libcilkrts |
1b6c0831 | 1814 | install-html-target: maybe-install-html-target-liboffloadmic |
108a6f8e | 1815 | install-html-target: maybe-install-html-target-libssp |
108a6f8e | 1816 | install-html-target: maybe-install-html-target-newlib |
6aa8ef82 | 1817 | install-html-target: maybe-install-html-target-libgcc |
2bf680c4 | 1818 | install-html-target: maybe-install-html-target-libbacktrace |
e552509b | 1819 | install-html-target: maybe-install-html-target-libquadmath |
108a6f8e CD |
1820 | install-html-target: maybe-install-html-target-libgfortran |
1821 | install-html-target: maybe-install-html-target-libobjc | |
e552509b | 1822 | install-html-target: maybe-install-html-target-libgo |
108a6f8e CD |
1823 | install-html-target: maybe-install-html-target-libtermcap |
1824 | install-html-target: maybe-install-html-target-winsup | |
1825 | install-html-target: maybe-install-html-target-libgloss | |
108a6f8e | 1826 | install-html-target: maybe-install-html-target-libffi |
108a6f8e | 1827 | install-html-target: maybe-install-html-target-zlib |
108a6f8e CD |
1828 | install-html-target: maybe-install-html-target-rda |
1829 | install-html-target: maybe-install-html-target-libada | |
1830 | install-html-target: maybe-install-html-target-libgomp | |
7ec59b9e L |
1831 | install-html-target: maybe-install-html-target-libitm |
1832 | install-html-target: maybe-install-html-target-libatomic | |
108a6f8e | 1833 | |
2a4cbe27 | 1834 | .PHONY: do-installcheck |
f70224b5 | 1835 | do-installcheck: |
0aed8855 | 1836 | @: $(MAKE); $(unstage) |
e360f423 PB |
1837 | @r=`${PWD_COMMAND}`; export r; \ |
1838 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1839 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \ | |
f70224b5 | 1840 | installcheck-target |
f70224b5 | 1841 | |
2a4cbe27 NN |
1842 | |
1843 | .PHONY: installcheck-host | |
c52c6897 | 1844 | |
c52c6897 PB |
1845 | installcheck-host: maybe-installcheck-bfd |
1846 | installcheck-host: maybe-installcheck-opcodes | |
1847 | installcheck-host: maybe-installcheck-binutils | |
1848 | installcheck-host: maybe-installcheck-bison | |
f9806fa5 | 1849 | installcheck-host: maybe-installcheck-cgen |
c52c6897 | 1850 | installcheck-host: maybe-installcheck-dejagnu |
c52c6897 PB |
1851 | installcheck-host: maybe-installcheck-etc |
1852 | installcheck-host: maybe-installcheck-fastjar | |
c52c6897 PB |
1853 | installcheck-host: maybe-installcheck-fixincludes |
1854 | installcheck-host: maybe-installcheck-flex | |
1855 | installcheck-host: maybe-installcheck-gas | |
1856 | installcheck-host: maybe-installcheck-gcc | |
4b900473 PB |
1857 | installcheck-host: maybe-installcheck-gmp |
1858 | installcheck-host: maybe-installcheck-mpfr | |
e8a5fa9c | 1859 | installcheck-host: maybe-installcheck-mpc |
7ec59b9e | 1860 | installcheck-host: maybe-installcheck-isl |
1f53ca9a | 1861 | installcheck-host: maybe-installcheck-libelf |
93f9b408 | 1862 | installcheck-host: maybe-installcheck-gold |
c52c6897 | 1863 | installcheck-host: maybe-installcheck-gprof |
c52c6897 PB |
1864 | installcheck-host: maybe-installcheck-intl |
1865 | installcheck-host: maybe-installcheck-tcl | |
1866 | installcheck-host: maybe-installcheck-itcl | |
1867 | installcheck-host: maybe-installcheck-ld | |
2bf680c4 | 1868 | installcheck-host: maybe-installcheck-libbacktrace |
c52c6897 PB |
1869 | installcheck-host: maybe-installcheck-libcpp |
1870 | installcheck-host: maybe-installcheck-libdecnumber | |
1871 | installcheck-host: maybe-installcheck-libgui | |
1872 | installcheck-host: maybe-installcheck-libiberty | |
1b6c0831 | 1873 | installcheck-host: maybe-installcheck-libiberty-linker-plugin |
dc448a7b | 1874 | installcheck-host: maybe-installcheck-libiconv |
c52c6897 | 1875 | installcheck-host: maybe-installcheck-m4 |
c52c6897 | 1876 | installcheck-host: maybe-installcheck-readline |
c52c6897 PB |
1877 | installcheck-host: maybe-installcheck-sid |
1878 | installcheck-host: maybe-installcheck-sim | |
c52c6897 | 1879 | installcheck-host: maybe-installcheck-texinfo |
c52c6897 PB |
1880 | installcheck-host: maybe-installcheck-zlib |
1881 | installcheck-host: maybe-installcheck-gdb | |
1882 | installcheck-host: maybe-installcheck-expect | |
1883 | installcheck-host: maybe-installcheck-guile | |
1884 | installcheck-host: maybe-installcheck-tk | |
1885 | installcheck-host: maybe-installcheck-libtermcap | |
1886 | installcheck-host: maybe-installcheck-utils | |
1887 | installcheck-host: maybe-installcheck-gnattools | |
700d40ca | 1888 | installcheck-host: maybe-installcheck-lto-plugin |
1b6c0831 L |
1889 | installcheck-host: maybe-installcheck-libcc1 |
1890 | installcheck-host: maybe-installcheck-gotools | |
2a4cbe27 NN |
1891 | |
1892 | .PHONY: installcheck-target | |
c52c6897 PB |
1893 | |
1894 | installcheck-target: maybe-installcheck-target-libstdc++-v3 | |
5286fdef | 1895 | installcheck-target: maybe-installcheck-target-libsanitizer |
1b6c0831 | 1896 | installcheck-target: maybe-installcheck-target-libmpx |
95e43135 | 1897 | installcheck-target: maybe-installcheck-target-libvtv |
e78e02e6 | 1898 | installcheck-target: maybe-installcheck-target-libcilkrts |
1b6c0831 | 1899 | installcheck-target: maybe-installcheck-target-liboffloadmic |
c52c6897 | 1900 | installcheck-target: maybe-installcheck-target-libssp |
c52c6897 | 1901 | installcheck-target: maybe-installcheck-target-newlib |
6aa8ef82 | 1902 | installcheck-target: maybe-installcheck-target-libgcc |
2bf680c4 | 1903 | installcheck-target: maybe-installcheck-target-libbacktrace |
e552509b | 1904 | installcheck-target: maybe-installcheck-target-libquadmath |
c52c6897 PB |
1905 | installcheck-target: maybe-installcheck-target-libgfortran |
1906 | installcheck-target: maybe-installcheck-target-libobjc | |
e552509b | 1907 | installcheck-target: maybe-installcheck-target-libgo |
c52c6897 PB |
1908 | installcheck-target: maybe-installcheck-target-libtermcap |
1909 | installcheck-target: maybe-installcheck-target-winsup | |
1910 | installcheck-target: maybe-installcheck-target-libgloss | |
c52c6897 | 1911 | installcheck-target: maybe-installcheck-target-libffi |
c52c6897 | 1912 | installcheck-target: maybe-installcheck-target-zlib |
c52c6897 PB |
1913 | installcheck-target: maybe-installcheck-target-rda |
1914 | installcheck-target: maybe-installcheck-target-libada | |
1915 | installcheck-target: maybe-installcheck-target-libgomp | |
7ec59b9e L |
1916 | installcheck-target: maybe-installcheck-target-libitm |
1917 | installcheck-target: maybe-installcheck-target-libatomic | |
2a4cbe27 | 1918 | |
4fa63067 | 1919 | .PHONY: do-mostlyclean |
f70224b5 | 1920 | do-mostlyclean: |
0aed8855 | 1921 | @: $(MAKE); $(unstage) |
e360f423 PB |
1922 | @r=`${PWD_COMMAND}`; export r; \ |
1923 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1924 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \ | |
f70224b5 | 1925 | mostlyclean-target |
f70224b5 | 1926 | |
2a4cbe27 | 1927 | |
4fa63067 | 1928 | .PHONY: mostlyclean-host |
c52c6897 | 1929 | |
c52c6897 PB |
1930 | mostlyclean-host: maybe-mostlyclean-bfd |
1931 | mostlyclean-host: maybe-mostlyclean-opcodes | |
1932 | mostlyclean-host: maybe-mostlyclean-binutils | |
1933 | mostlyclean-host: maybe-mostlyclean-bison | |
f9806fa5 | 1934 | mostlyclean-host: maybe-mostlyclean-cgen |
c52c6897 | 1935 | mostlyclean-host: maybe-mostlyclean-dejagnu |
c52c6897 PB |
1936 | mostlyclean-host: maybe-mostlyclean-etc |
1937 | mostlyclean-host: maybe-mostlyclean-fastjar | |
c52c6897 PB |
1938 | mostlyclean-host: maybe-mostlyclean-fixincludes |
1939 | mostlyclean-host: maybe-mostlyclean-flex | |
1940 | mostlyclean-host: maybe-mostlyclean-gas | |
1941 | mostlyclean-host: maybe-mostlyclean-gcc | |
4b900473 PB |
1942 | mostlyclean-host: maybe-mostlyclean-gmp |
1943 | mostlyclean-host: maybe-mostlyclean-mpfr | |
e8a5fa9c | 1944 | mostlyclean-host: maybe-mostlyclean-mpc |
7ec59b9e | 1945 | mostlyclean-host: maybe-mostlyclean-isl |
1f53ca9a | 1946 | mostlyclean-host: maybe-mostlyclean-libelf |
93f9b408 | 1947 | mostlyclean-host: maybe-mostlyclean-gold |
c52c6897 | 1948 | mostlyclean-host: maybe-mostlyclean-gprof |
c52c6897 PB |
1949 | mostlyclean-host: maybe-mostlyclean-intl |
1950 | mostlyclean-host: maybe-mostlyclean-tcl | |
1951 | mostlyclean-host: maybe-mostlyclean-itcl | |
1952 | mostlyclean-host: maybe-mostlyclean-ld | |
2bf680c4 | 1953 | mostlyclean-host: maybe-mostlyclean-libbacktrace |
c52c6897 PB |
1954 | mostlyclean-host: maybe-mostlyclean-libcpp |
1955 | mostlyclean-host: maybe-mostlyclean-libdecnumber | |
1956 | mostlyclean-host: maybe-mostlyclean-libgui | |
1957 | mostlyclean-host: maybe-mostlyclean-libiberty | |
1b6c0831 | 1958 | mostlyclean-host: maybe-mostlyclean-libiberty-linker-plugin |
dc448a7b | 1959 | mostlyclean-host: maybe-mostlyclean-libiconv |
c52c6897 | 1960 | mostlyclean-host: maybe-mostlyclean-m4 |
c52c6897 | 1961 | mostlyclean-host: maybe-mostlyclean-readline |
c52c6897 PB |
1962 | mostlyclean-host: maybe-mostlyclean-sid |
1963 | mostlyclean-host: maybe-mostlyclean-sim | |
c52c6897 | 1964 | mostlyclean-host: maybe-mostlyclean-texinfo |
c52c6897 PB |
1965 | mostlyclean-host: maybe-mostlyclean-zlib |
1966 | mostlyclean-host: maybe-mostlyclean-gdb | |
1967 | mostlyclean-host: maybe-mostlyclean-expect | |
1968 | mostlyclean-host: maybe-mostlyclean-guile | |
1969 | mostlyclean-host: maybe-mostlyclean-tk | |
1970 | mostlyclean-host: maybe-mostlyclean-libtermcap | |
1971 | mostlyclean-host: maybe-mostlyclean-utils | |
1972 | mostlyclean-host: maybe-mostlyclean-gnattools | |
700d40ca | 1973 | mostlyclean-host: maybe-mostlyclean-lto-plugin |
1b6c0831 L |
1974 | mostlyclean-host: maybe-mostlyclean-libcc1 |
1975 | mostlyclean-host: maybe-mostlyclean-gotools | |
2a4cbe27 | 1976 | |
4fa63067 | 1977 | .PHONY: mostlyclean-target |
c52c6897 PB |
1978 | |
1979 | mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3 | |
5286fdef | 1980 | mostlyclean-target: maybe-mostlyclean-target-libsanitizer |
1b6c0831 | 1981 | mostlyclean-target: maybe-mostlyclean-target-libmpx |
95e43135 | 1982 | mostlyclean-target: maybe-mostlyclean-target-libvtv |
e78e02e6 | 1983 | mostlyclean-target: maybe-mostlyclean-target-libcilkrts |
1b6c0831 | 1984 | mostlyclean-target: maybe-mostlyclean-target-liboffloadmic |
c52c6897 | 1985 | mostlyclean-target: maybe-mostlyclean-target-libssp |
c52c6897 | 1986 | mostlyclean-target: maybe-mostlyclean-target-newlib |
6aa8ef82 | 1987 | mostlyclean-target: maybe-mostlyclean-target-libgcc |
2bf680c4 | 1988 | mostlyclean-target: maybe-mostlyclean-target-libbacktrace |
e552509b | 1989 | mostlyclean-target: maybe-mostlyclean-target-libquadmath |
c52c6897 PB |
1990 | mostlyclean-target: maybe-mostlyclean-target-libgfortran |
1991 | mostlyclean-target: maybe-mostlyclean-target-libobjc | |
e552509b | 1992 | mostlyclean-target: maybe-mostlyclean-target-libgo |
c52c6897 PB |
1993 | mostlyclean-target: maybe-mostlyclean-target-libtermcap |
1994 | mostlyclean-target: maybe-mostlyclean-target-winsup | |
1995 | mostlyclean-target: maybe-mostlyclean-target-libgloss | |
c52c6897 | 1996 | mostlyclean-target: maybe-mostlyclean-target-libffi |
c52c6897 | 1997 | mostlyclean-target: maybe-mostlyclean-target-zlib |
c52c6897 PB |
1998 | mostlyclean-target: maybe-mostlyclean-target-rda |
1999 | mostlyclean-target: maybe-mostlyclean-target-libada | |
2000 | mostlyclean-target: maybe-mostlyclean-target-libgomp | |
7ec59b9e L |
2001 | mostlyclean-target: maybe-mostlyclean-target-libitm |
2002 | mostlyclean-target: maybe-mostlyclean-target-libatomic | |
2a4cbe27 | 2003 | |
4fa63067 | 2004 | .PHONY: do-clean |
f70224b5 | 2005 | do-clean: |
0aed8855 | 2006 | @: $(MAKE); $(unstage) |
e360f423 PB |
2007 | @r=`${PWD_COMMAND}`; export r; \ |
2008 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2009 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \ | |
f70224b5 | 2010 | clean-target |
f70224b5 | 2011 | |
2a4cbe27 | 2012 | |
4fa63067 | 2013 | .PHONY: clean-host |
c52c6897 | 2014 | |
c52c6897 PB |
2015 | clean-host: maybe-clean-bfd |
2016 | clean-host: maybe-clean-opcodes | |
2017 | clean-host: maybe-clean-binutils | |
2018 | clean-host: maybe-clean-bison | |
f9806fa5 | 2019 | clean-host: maybe-clean-cgen |
c52c6897 | 2020 | clean-host: maybe-clean-dejagnu |
c52c6897 PB |
2021 | clean-host: maybe-clean-etc |
2022 | clean-host: maybe-clean-fastjar | |
c52c6897 PB |
2023 | clean-host: maybe-clean-fixincludes |
2024 | clean-host: maybe-clean-flex | |
2025 | clean-host: maybe-clean-gas | |
2026 | clean-host: maybe-clean-gcc | |
4b900473 PB |
2027 | clean-host: maybe-clean-gmp |
2028 | clean-host: maybe-clean-mpfr | |
e8a5fa9c | 2029 | clean-host: maybe-clean-mpc |
7ec59b9e | 2030 | clean-host: maybe-clean-isl |
1f53ca9a | 2031 | clean-host: maybe-clean-libelf |
93f9b408 | 2032 | clean-host: maybe-clean-gold |
c52c6897 | 2033 | clean-host: maybe-clean-gprof |
c52c6897 PB |
2034 | clean-host: maybe-clean-intl |
2035 | clean-host: maybe-clean-tcl | |
2036 | clean-host: maybe-clean-itcl | |
2037 | clean-host: maybe-clean-ld | |
2bf680c4 | 2038 | clean-host: maybe-clean-libbacktrace |
c52c6897 PB |
2039 | clean-host: maybe-clean-libcpp |
2040 | clean-host: maybe-clean-libdecnumber | |
2041 | clean-host: maybe-clean-libgui | |
2042 | clean-host: maybe-clean-libiberty | |
1b6c0831 | 2043 | clean-host: maybe-clean-libiberty-linker-plugin |
dc448a7b | 2044 | clean-host: maybe-clean-libiconv |
c52c6897 | 2045 | clean-host: maybe-clean-m4 |
c52c6897 | 2046 | clean-host: maybe-clean-readline |
c52c6897 PB |
2047 | clean-host: maybe-clean-sid |
2048 | clean-host: maybe-clean-sim | |
c52c6897 | 2049 | clean-host: maybe-clean-texinfo |
c52c6897 PB |
2050 | clean-host: maybe-clean-zlib |
2051 | clean-host: maybe-clean-gdb | |
2052 | clean-host: maybe-clean-expect | |
2053 | clean-host: maybe-clean-guile | |
2054 | clean-host: maybe-clean-tk | |
2055 | clean-host: maybe-clean-libtermcap | |
2056 | clean-host: maybe-clean-utils | |
2057 | clean-host: maybe-clean-gnattools | |
700d40ca | 2058 | clean-host: maybe-clean-lto-plugin |
1b6c0831 L |
2059 | clean-host: maybe-clean-libcc1 |
2060 | clean-host: maybe-clean-gotools | |
2a4cbe27 | 2061 | |
4fa63067 | 2062 | .PHONY: clean-target |
c52c6897 PB |
2063 | |
2064 | clean-target: maybe-clean-target-libstdc++-v3 | |
5286fdef | 2065 | clean-target: maybe-clean-target-libsanitizer |
1b6c0831 | 2066 | clean-target: maybe-clean-target-libmpx |
95e43135 | 2067 | clean-target: maybe-clean-target-libvtv |
e78e02e6 | 2068 | clean-target: maybe-clean-target-libcilkrts |
1b6c0831 | 2069 | clean-target: maybe-clean-target-liboffloadmic |
c52c6897 | 2070 | clean-target: maybe-clean-target-libssp |
c52c6897 | 2071 | clean-target: maybe-clean-target-newlib |
6aa8ef82 | 2072 | clean-target: maybe-clean-target-libgcc |
2bf680c4 | 2073 | clean-target: maybe-clean-target-libbacktrace |
e552509b | 2074 | clean-target: maybe-clean-target-libquadmath |
c52c6897 PB |
2075 | clean-target: maybe-clean-target-libgfortran |
2076 | clean-target: maybe-clean-target-libobjc | |
e552509b | 2077 | clean-target: maybe-clean-target-libgo |
c52c6897 PB |
2078 | clean-target: maybe-clean-target-libtermcap |
2079 | clean-target: maybe-clean-target-winsup | |
2080 | clean-target: maybe-clean-target-libgloss | |
c52c6897 | 2081 | clean-target: maybe-clean-target-libffi |
c52c6897 | 2082 | clean-target: maybe-clean-target-zlib |
c52c6897 PB |
2083 | clean-target: maybe-clean-target-rda |
2084 | clean-target: maybe-clean-target-libada | |
2085 | clean-target: maybe-clean-target-libgomp | |
7ec59b9e L |
2086 | clean-target: maybe-clean-target-libitm |
2087 | clean-target: maybe-clean-target-libatomic | |
2a4cbe27 | 2088 | |
4fa63067 | 2089 | .PHONY: do-distclean |
f70224b5 | 2090 | do-distclean: |
0aed8855 | 2091 | @: $(MAKE); $(unstage) |
e360f423 PB |
2092 | @r=`${PWD_COMMAND}`; export r; \ |
2093 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2094 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \ | |
f70224b5 | 2095 | distclean-target |
f70224b5 | 2096 | |
2a4cbe27 | 2097 | |
4fa63067 | 2098 | .PHONY: distclean-host |
c52c6897 | 2099 | |
c52c6897 PB |
2100 | distclean-host: maybe-distclean-bfd |
2101 | distclean-host: maybe-distclean-opcodes | |
2102 | distclean-host: maybe-distclean-binutils | |
2103 | distclean-host: maybe-distclean-bison | |
f9806fa5 | 2104 | distclean-host: maybe-distclean-cgen |
c52c6897 | 2105 | distclean-host: maybe-distclean-dejagnu |
c52c6897 PB |
2106 | distclean-host: maybe-distclean-etc |
2107 | distclean-host: maybe-distclean-fastjar | |
c52c6897 PB |
2108 | distclean-host: maybe-distclean-fixincludes |
2109 | distclean-host: maybe-distclean-flex | |
2110 | distclean-host: maybe-distclean-gas | |
2111 | distclean-host: maybe-distclean-gcc | |
4b900473 PB |
2112 | distclean-host: maybe-distclean-gmp |
2113 | distclean-host: maybe-distclean-mpfr | |
e8a5fa9c | 2114 | distclean-host: maybe-distclean-mpc |
7ec59b9e | 2115 | distclean-host: maybe-distclean-isl |
1f53ca9a | 2116 | distclean-host: maybe-distclean-libelf |
93f9b408 | 2117 | distclean-host: maybe-distclean-gold |
c52c6897 | 2118 | distclean-host: maybe-distclean-gprof |
c52c6897 PB |
2119 | distclean-host: maybe-distclean-intl |
2120 | distclean-host: maybe-distclean-tcl | |
2121 | distclean-host: maybe-distclean-itcl | |
2122 | distclean-host: maybe-distclean-ld | |
2bf680c4 | 2123 | distclean-host: maybe-distclean-libbacktrace |
c52c6897 PB |
2124 | distclean-host: maybe-distclean-libcpp |
2125 | distclean-host: maybe-distclean-libdecnumber | |
2126 | distclean-host: maybe-distclean-libgui | |
2127 | distclean-host: maybe-distclean-libiberty | |
1b6c0831 | 2128 | distclean-host: maybe-distclean-libiberty-linker-plugin |
dc448a7b | 2129 | distclean-host: maybe-distclean-libiconv |
c52c6897 | 2130 | distclean-host: maybe-distclean-m4 |
c52c6897 | 2131 | distclean-host: maybe-distclean-readline |
c52c6897 PB |
2132 | distclean-host: maybe-distclean-sid |
2133 | distclean-host: maybe-distclean-sim | |
c52c6897 | 2134 | distclean-host: maybe-distclean-texinfo |
c52c6897 PB |
2135 | distclean-host: maybe-distclean-zlib |
2136 | distclean-host: maybe-distclean-gdb | |
2137 | distclean-host: maybe-distclean-expect | |
2138 | distclean-host: maybe-distclean-guile | |
2139 | distclean-host: maybe-distclean-tk | |
2140 | distclean-host: maybe-distclean-libtermcap | |
2141 | distclean-host: maybe-distclean-utils | |
2142 | distclean-host: maybe-distclean-gnattools | |
700d40ca | 2143 | distclean-host: maybe-distclean-lto-plugin |
1b6c0831 L |
2144 | distclean-host: maybe-distclean-libcc1 |
2145 | distclean-host: maybe-distclean-gotools | |
2a4cbe27 | 2146 | |
4fa63067 | 2147 | .PHONY: distclean-target |
c52c6897 PB |
2148 | |
2149 | distclean-target: maybe-distclean-target-libstdc++-v3 | |
5286fdef | 2150 | distclean-target: maybe-distclean-target-libsanitizer |
1b6c0831 | 2151 | distclean-target: maybe-distclean-target-libmpx |
95e43135 | 2152 | distclean-target: maybe-distclean-target-libvtv |
e78e02e6 | 2153 | distclean-target: maybe-distclean-target-libcilkrts |
1b6c0831 | 2154 | distclean-target: maybe-distclean-target-liboffloadmic |
c52c6897 | 2155 | distclean-target: maybe-distclean-target-libssp |
c52c6897 | 2156 | distclean-target: maybe-distclean-target-newlib |
6aa8ef82 | 2157 | distclean-target: maybe-distclean-target-libgcc |
2bf680c4 | 2158 | distclean-target: maybe-distclean-target-libbacktrace |
e552509b | 2159 | distclean-target: maybe-distclean-target-libquadmath |
c52c6897 PB |
2160 | distclean-target: maybe-distclean-target-libgfortran |
2161 | distclean-target: maybe-distclean-target-libobjc | |
e552509b | 2162 | distclean-target: maybe-distclean-target-libgo |
c52c6897 PB |
2163 | distclean-target: maybe-distclean-target-libtermcap |
2164 | distclean-target: maybe-distclean-target-winsup | |
2165 | distclean-target: maybe-distclean-target-libgloss | |
c52c6897 | 2166 | distclean-target: maybe-distclean-target-libffi |
c52c6897 | 2167 | distclean-target: maybe-distclean-target-zlib |
c52c6897 PB |
2168 | distclean-target: maybe-distclean-target-rda |
2169 | distclean-target: maybe-distclean-target-libada | |
2170 | distclean-target: maybe-distclean-target-libgomp | |
7ec59b9e L |
2171 | distclean-target: maybe-distclean-target-libitm |
2172 | distclean-target: maybe-distclean-target-libatomic | |
2a4cbe27 | 2173 | |
4fa63067 | 2174 | .PHONY: do-maintainer-clean |
f70224b5 | 2175 | do-maintainer-clean: |
0aed8855 | 2176 | @: $(MAKE); $(unstage) |
e360f423 PB |
2177 | @r=`${PWD_COMMAND}`; export r; \ |
2178 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2179 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \ | |
f70224b5 | 2180 | maintainer-clean-target |
f70224b5 | 2181 | |
2a4cbe27 | 2182 | |
4fa63067 | 2183 | .PHONY: maintainer-clean-host |
c52c6897 | 2184 | |
c52c6897 PB |
2185 | maintainer-clean-host: maybe-maintainer-clean-bfd |
2186 | maintainer-clean-host: maybe-maintainer-clean-opcodes | |
2187 | maintainer-clean-host: maybe-maintainer-clean-binutils | |
2188 | maintainer-clean-host: maybe-maintainer-clean-bison | |
f9806fa5 | 2189 | maintainer-clean-host: maybe-maintainer-clean-cgen |
c52c6897 | 2190 | maintainer-clean-host: maybe-maintainer-clean-dejagnu |
c52c6897 PB |
2191 | maintainer-clean-host: maybe-maintainer-clean-etc |
2192 | maintainer-clean-host: maybe-maintainer-clean-fastjar | |
c52c6897 PB |
2193 | maintainer-clean-host: maybe-maintainer-clean-fixincludes |
2194 | maintainer-clean-host: maybe-maintainer-clean-flex | |
2195 | maintainer-clean-host: maybe-maintainer-clean-gas | |
2196 | maintainer-clean-host: maybe-maintainer-clean-gcc | |
4b900473 PB |
2197 | maintainer-clean-host: maybe-maintainer-clean-gmp |
2198 | maintainer-clean-host: maybe-maintainer-clean-mpfr | |
e8a5fa9c | 2199 | maintainer-clean-host: maybe-maintainer-clean-mpc |
7ec59b9e | 2200 | maintainer-clean-host: maybe-maintainer-clean-isl |
1f53ca9a | 2201 | maintainer-clean-host: maybe-maintainer-clean-libelf |
93f9b408 | 2202 | maintainer-clean-host: maybe-maintainer-clean-gold |
c52c6897 | 2203 | maintainer-clean-host: maybe-maintainer-clean-gprof |
c52c6897 PB |
2204 | maintainer-clean-host: maybe-maintainer-clean-intl |
2205 | maintainer-clean-host: maybe-maintainer-clean-tcl | |
2206 | maintainer-clean-host: maybe-maintainer-clean-itcl | |
2207 | maintainer-clean-host: maybe-maintainer-clean-ld | |
2bf680c4 | 2208 | maintainer-clean-host: maybe-maintainer-clean-libbacktrace |
c52c6897 PB |
2209 | maintainer-clean-host: maybe-maintainer-clean-libcpp |
2210 | maintainer-clean-host: maybe-maintainer-clean-libdecnumber | |
2211 | maintainer-clean-host: maybe-maintainer-clean-libgui | |
2212 | maintainer-clean-host: maybe-maintainer-clean-libiberty | |
1b6c0831 | 2213 | maintainer-clean-host: maybe-maintainer-clean-libiberty-linker-plugin |
dc448a7b | 2214 | maintainer-clean-host: maybe-maintainer-clean-libiconv |
c52c6897 | 2215 | maintainer-clean-host: maybe-maintainer-clean-m4 |
c52c6897 | 2216 | maintainer-clean-host: maybe-maintainer-clean-readline |
c52c6897 PB |
2217 | maintainer-clean-host: maybe-maintainer-clean-sid |
2218 | maintainer-clean-host: maybe-maintainer-clean-sim | |
c52c6897 | 2219 | maintainer-clean-host: maybe-maintainer-clean-texinfo |
c52c6897 PB |
2220 | maintainer-clean-host: maybe-maintainer-clean-zlib |
2221 | maintainer-clean-host: maybe-maintainer-clean-gdb | |
2222 | maintainer-clean-host: maybe-maintainer-clean-expect | |
2223 | maintainer-clean-host: maybe-maintainer-clean-guile | |
2224 | maintainer-clean-host: maybe-maintainer-clean-tk | |
2225 | maintainer-clean-host: maybe-maintainer-clean-libtermcap | |
2226 | maintainer-clean-host: maybe-maintainer-clean-utils | |
2227 | maintainer-clean-host: maybe-maintainer-clean-gnattools | |
700d40ca | 2228 | maintainer-clean-host: maybe-maintainer-clean-lto-plugin |
1b6c0831 L |
2229 | maintainer-clean-host: maybe-maintainer-clean-libcc1 |
2230 | maintainer-clean-host: maybe-maintainer-clean-gotools | |
2a4cbe27 | 2231 | |
4fa63067 | 2232 | .PHONY: maintainer-clean-target |
c52c6897 PB |
2233 | |
2234 | maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3 | |
5286fdef | 2235 | maintainer-clean-target: maybe-maintainer-clean-target-libsanitizer |
1b6c0831 | 2236 | maintainer-clean-target: maybe-maintainer-clean-target-libmpx |
95e43135 | 2237 | maintainer-clean-target: maybe-maintainer-clean-target-libvtv |
e78e02e6 | 2238 | maintainer-clean-target: maybe-maintainer-clean-target-libcilkrts |
1b6c0831 | 2239 | maintainer-clean-target: maybe-maintainer-clean-target-liboffloadmic |
c52c6897 | 2240 | maintainer-clean-target: maybe-maintainer-clean-target-libssp |
c52c6897 | 2241 | maintainer-clean-target: maybe-maintainer-clean-target-newlib |
6aa8ef82 | 2242 | maintainer-clean-target: maybe-maintainer-clean-target-libgcc |
2bf680c4 | 2243 | maintainer-clean-target: maybe-maintainer-clean-target-libbacktrace |
e552509b | 2244 | maintainer-clean-target: maybe-maintainer-clean-target-libquadmath |
c52c6897 PB |
2245 | maintainer-clean-target: maybe-maintainer-clean-target-libgfortran |
2246 | maintainer-clean-target: maybe-maintainer-clean-target-libobjc | |
e552509b | 2247 | maintainer-clean-target: maybe-maintainer-clean-target-libgo |
c52c6897 PB |
2248 | maintainer-clean-target: maybe-maintainer-clean-target-libtermcap |
2249 | maintainer-clean-target: maybe-maintainer-clean-target-winsup | |
2250 | maintainer-clean-target: maybe-maintainer-clean-target-libgloss | |
c52c6897 | 2251 | maintainer-clean-target: maybe-maintainer-clean-target-libffi |
c52c6897 | 2252 | maintainer-clean-target: maybe-maintainer-clean-target-zlib |
c52c6897 PB |
2253 | maintainer-clean-target: maybe-maintainer-clean-target-rda |
2254 | maintainer-clean-target: maybe-maintainer-clean-target-libada | |
2255 | maintainer-clean-target: maybe-maintainer-clean-target-libgomp | |
7ec59b9e L |
2256 | maintainer-clean-target: maybe-maintainer-clean-target-libitm |
2257 | maintainer-clean-target: maybe-maintainer-clean-target-libatomic | |
2a4cbe27 | 2258 | |
2a4cbe27 | 2259 | |
4fa63067 | 2260 | # Here are the targets which correspond to the do-X targets. |
2a4cbe27 | 2261 | |
a3ca38d2 DD |
2262 | .PHONY: info installcheck dvi pdf html |
2263 | .PHONY: install-info install-pdf install-html | |
4fa63067 NN |
2264 | .PHONY: clean distclean mostlyclean maintainer-clean realclean |
2265 | .PHONY: local-clean local-distclean local-maintainer-clean | |
2266 | info: do-info | |
2267 | installcheck: do-installcheck | |
2268 | dvi: do-dvi | |
56a8fe78 | 2269 | pdf: do-pdf |
6d389afc | 2270 | html: do-html |
2a4cbe27 | 2271 | |
4fa63067 NN |
2272 | # Make sure makeinfo is built before we do a `make info', if we're |
2273 | # in fact building texinfo. | |
2274 | do-info: maybe-all-texinfo | |
2a4cbe27 | 2275 | |
4fa63067 | 2276 | install-info: do-install-info dir.info |
b40e3958 | 2277 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
22121df0 L |
2278 | if [ -f dir.info ]; then \ |
2279 | $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info; \ | |
2280 | else true; fi | |
2a4cbe27 | 2281 | |
a3ca38d2 DD |
2282 | install-pdf: do-install-pdf |
2283 | ||
108a6f8e CD |
2284 | install-html: do-install-html |
2285 | ||
4fa63067 NN |
2286 | local-clean: |
2287 | -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log | |
2a4cbe27 | 2288 | |
4fa63067 NN |
2289 | local-distclean: |
2290 | -rm -f Makefile config.status config.cache mh-frag mt-frag | |
bb7dc663 | 2291 | -rm -f maybedep.tmp serdep.tmp stage_final |
4fa63067 NN |
2292 | -if [ "$(TARGET_SUBDIR)" != "." ]; then \ |
2293 | rm -rf $(TARGET_SUBDIR); \ | |
2294 | else true; fi | |
2295 | -rm -rf $(BUILD_SUBDIR) | |
b00612cc PB |
2296 | -if [ "$(HOST_SUBDIR)" != "." ]; then \ |
2297 | rm -rf $(HOST_SUBDIR); \ | |
2298 | else true; fi | |
4fa63067 NN |
2299 | -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile |
2300 | -rm -f texinfo/doc/Makefile texinfo/po/POTFILES | |
2301 | -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null | |
2302 | -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null | |
bb7dc663 NC |
2303 | -rmdir fastjar gcc gnattools gotools libcc1 libiberty 2>/dev/null |
2304 | -rmdir texinfo zlib 2>/dev/null | |
18fa8f9c | 2305 | -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null |
2a4cbe27 | 2306 | |
4fa63067 NN |
2307 | local-maintainer-clean: |
2308 | @echo "This command is intended for maintainers to use;" | |
2309 | @echo "it deletes files that may require special tools to rebuild." | |
2a4cbe27 | 2310 | |
4fa63067 NN |
2311 | clean: do-clean local-clean |
2312 | mostlyclean: do-mostlyclean local-clean | |
2313 | distclean: do-distclean local-clean local-distclean | |
2314 | maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean | |
2315 | maintainer-clean: local-distclean | |
2316 | realclean: maintainer-clean | |
2a4cbe27 | 2317 | |
4fa63067 | 2318 | # Check target. |
2a4cbe27 | 2319 | |
4fa63067 NN |
2320 | .PHONY: check do-check |
2321 | check: do-check | |
2a4cbe27 | 2322 | |
4fa63067 | 2323 | # Only include modules actually being configured and built. |
f70224b5 PB |
2324 | .PHONY: check-host |
2325 | check-host: \ | |
4fa63067 NN |
2326 | maybe-check-bfd \ |
2327 | maybe-check-opcodes \ | |
2328 | maybe-check-binutils \ | |
2329 | maybe-check-bison \ | |
f9806fa5 | 2330 | maybe-check-cgen \ |
4fa63067 | 2331 | maybe-check-dejagnu \ |
4fa63067 NN |
2332 | maybe-check-etc \ |
2333 | maybe-check-fastjar \ | |
d3ed111c | 2334 | maybe-check-fixincludes \ |
4fa63067 NN |
2335 | maybe-check-flex \ |
2336 | maybe-check-gas \ | |
b813574b | 2337 | maybe-check-gcc \ |
4b900473 PB |
2338 | maybe-check-gmp \ |
2339 | maybe-check-mpfr \ | |
e8a5fa9c | 2340 | maybe-check-mpc \ |
7ec59b9e | 2341 | maybe-check-isl \ |
1f53ca9a | 2342 | maybe-check-libelf \ |
93f9b408 | 2343 | maybe-check-gold \ |
4fa63067 | 2344 | maybe-check-gprof \ |
4fa63067 NN |
2345 | maybe-check-intl \ |
2346 | maybe-check-tcl \ | |
2347 | maybe-check-itcl \ | |
2348 | maybe-check-ld \ | |
2bf680c4 | 2349 | maybe-check-libbacktrace \ |
04cf1b77 | 2350 | maybe-check-libcpp \ |
be01d343 | 2351 | maybe-check-libdecnumber \ |
4fa63067 NN |
2352 | maybe-check-libgui \ |
2353 | maybe-check-libiberty \ | |
1b6c0831 | 2354 | maybe-check-libiberty-linker-plugin \ |
dc448a7b | 2355 | maybe-check-libiconv \ |
4fa63067 | 2356 | maybe-check-m4 \ |
4fa63067 | 2357 | maybe-check-readline \ |
4fa63067 NN |
2358 | maybe-check-sid \ |
2359 | maybe-check-sim \ | |
4fa63067 | 2360 | maybe-check-texinfo \ |
4fa63067 NN |
2361 | maybe-check-zlib \ |
2362 | maybe-check-gdb \ | |
2363 | maybe-check-expect \ | |
2364 | maybe-check-guile \ | |
2365 | maybe-check-tk \ | |
4fa63067 NN |
2366 | maybe-check-libtermcap \ |
2367 | maybe-check-utils \ | |
700d40ca | 2368 | maybe-check-gnattools \ |
1b6c0831 L |
2369 | maybe-check-lto-plugin \ |
2370 | maybe-check-libcc1 \ | |
2371 | maybe-check-gotools | |
f70224b5 PB |
2372 | |
2373 | .PHONY: check-target | |
2374 | check-target: \ | |
4fa63067 | 2375 | maybe-check-target-libstdc++-v3 \ |
5286fdef | 2376 | maybe-check-target-libsanitizer \ |
1b6c0831 | 2377 | maybe-check-target-libmpx \ |
95e43135 | 2378 | maybe-check-target-libvtv \ |
e78e02e6 | 2379 | maybe-check-target-libcilkrts \ |
1b6c0831 | 2380 | maybe-check-target-liboffloadmic \ |
064d0a7c | 2381 | maybe-check-target-libssp \ |
4fa63067 | 2382 | maybe-check-target-newlib \ |
6aa8ef82 | 2383 | maybe-check-target-libgcc \ |
2bf680c4 | 2384 | maybe-check-target-libbacktrace \ |
e552509b | 2385 | maybe-check-target-libquadmath \ |
4b1cb4fe | 2386 | maybe-check-target-libgfortran \ |
4fa63067 | 2387 | maybe-check-target-libobjc \ |
e552509b | 2388 | maybe-check-target-libgo \ |
4fa63067 NN |
2389 | maybe-check-target-libtermcap \ |
2390 | maybe-check-target-winsup \ | |
2391 | maybe-check-target-libgloss \ | |
4fa63067 | 2392 | maybe-check-target-libffi \ |
4fa63067 | 2393 | maybe-check-target-zlib \ |
4fa63067 | 2394 | maybe-check-target-rda \ |
b3ded179 | 2395 | maybe-check-target-libada \ |
7ec59b9e L |
2396 | maybe-check-target-libgomp \ |
2397 | maybe-check-target-libitm \ | |
2398 | maybe-check-target-libatomic | |
f70224b5 PB |
2399 | |
2400 | do-check: | |
0aed8855 | 2401 | @: $(MAKE); $(unstage) |
e360f423 PB |
2402 | @r=`${PWD_COMMAND}`; export r; \ |
2403 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2404 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target | |
2a4cbe27 | 2405 | |
4fa63067 | 2406 | # Automated reporting of test results. |
2a4cbe27 | 2407 | |
4fa63067 NN |
2408 | warning.log: build.log |
2409 | $(srcdir)/contrib/warn_summary build.log > $@ | |
2a4cbe27 | 2410 | |
4fa63067 NN |
2411 | mail-report.log: |
2412 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
2413 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
2414 | fi; \ | |
2415 | $(srcdir)/contrib/test_summary -t >$@ | |
2416 | chmod +x $@ | |
2417 | echo If you really want to send e-mail, run ./$@ now | |
2a4cbe27 | 2418 | |
4fa63067 NN |
2419 | mail-report-with-warnings.log: warning.log |
2420 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
2421 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
2422 | fi; \ | |
2423 | $(srcdir)/contrib/test_summary -t -i warning.log >$@ | |
2424 | chmod +x $@ | |
2425 | echo If you really want to send e-mail, run ./$@ now | |
2a4cbe27 | 2426 | |
1b6c0831 L |
2427 | # Local Vim config |
2428 | ||
2429 | $(srcdir)/.local.vimrc: | |
22121df0 | 2430 | $(LN_S) contrib/vimrc $@ |
1b6c0831 L |
2431 | |
2432 | $(srcdir)/.lvimrc: | |
22121df0 | 2433 | $(LN_S) contrib/vimrc $@ |
1b6c0831 L |
2434 | |
2435 | vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc | |
2436 | ||
2437 | .PHONY: vimrc | |
2438 | ||
4849dfd8 NC |
2439 | # clang-format config |
2440 | ||
2441 | $(srcdir)/.clang-format: | |
2442 | $(LN_S) contrib/clang-format $@ | |
2443 | ||
2444 | clang-format: $(srcdir)/.clang-format | |
2445 | ||
2446 | .PHONY: clang-format | |
2447 | ||
4fa63067 | 2448 | # Installation targets. |
2a4cbe27 | 2449 | |
4fa63067 | 2450 | .PHONY: install uninstall |
f70224b5 | 2451 | install: |
0aed8855 | 2452 | @: $(MAKE); $(unstage) |
e360f423 PB |
2453 | @r=`${PWD_COMMAND}`; export r; \ |
2454 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2455 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target | |
2a4cbe27 | 2456 | |
4fa63067 NN |
2457 | .PHONY: install-host-nogcc |
2458 | install-host-nogcc: \ | |
4fa63067 NN |
2459 | maybe-install-bfd \ |
2460 | maybe-install-opcodes \ | |
2461 | maybe-install-binutils \ | |
2462 | maybe-install-bison \ | |
f9806fa5 | 2463 | maybe-install-cgen \ |
4fa63067 | 2464 | maybe-install-dejagnu \ |
4fa63067 NN |
2465 | maybe-install-etc \ |
2466 | maybe-install-fastjar \ | |
d3ed111c | 2467 | maybe-install-fixincludes \ |
4fa63067 NN |
2468 | maybe-install-flex \ |
2469 | maybe-install-gas \ | |
4b900473 PB |
2470 | maybe-install-gmp \ |
2471 | maybe-install-mpfr \ | |
e8a5fa9c | 2472 | maybe-install-mpc \ |
7ec59b9e | 2473 | maybe-install-isl \ |
1f53ca9a | 2474 | maybe-install-libelf \ |
93f9b408 | 2475 | maybe-install-gold \ |
4fa63067 | 2476 | maybe-install-gprof \ |
4fa63067 NN |
2477 | maybe-install-intl \ |
2478 | maybe-install-tcl \ | |
2479 | maybe-install-itcl \ | |
2480 | maybe-install-ld \ | |
2bf680c4 | 2481 | maybe-install-libbacktrace \ |
04cf1b77 | 2482 | maybe-install-libcpp \ |
be01d343 | 2483 | maybe-install-libdecnumber \ |
4fa63067 NN |
2484 | maybe-install-libgui \ |
2485 | maybe-install-libiberty \ | |
1b6c0831 | 2486 | maybe-install-libiberty-linker-plugin \ |
dc448a7b | 2487 | maybe-install-libiconv \ |
4fa63067 | 2488 | maybe-install-m4 \ |
4fa63067 | 2489 | maybe-install-readline \ |
4fa63067 NN |
2490 | maybe-install-sid \ |
2491 | maybe-install-sim \ | |
4fa63067 | 2492 | maybe-install-texinfo \ |
4fa63067 NN |
2493 | maybe-install-zlib \ |
2494 | maybe-install-gdb \ | |
2495 | maybe-install-expect \ | |
2496 | maybe-install-guile \ | |
2497 | maybe-install-tk \ | |
4fa63067 | 2498 | maybe-install-libtermcap \ |
b00612cc | 2499 | maybe-install-utils \ |
700d40ca | 2500 | maybe-install-gnattools \ |
1b6c0831 L |
2501 | maybe-install-lto-plugin \ |
2502 | maybe-install-libcc1 \ | |
2503 | maybe-install-gotools | |
2a4cbe27 | 2504 | |
4fa63067 | 2505 | .PHONY: install-host |
b813574b | 2506 | install-host: \ |
4fa63067 NN |
2507 | maybe-install-bfd \ |
2508 | maybe-install-opcodes \ | |
2509 | maybe-install-binutils \ | |
2510 | maybe-install-bison \ | |
f9806fa5 | 2511 | maybe-install-cgen \ |
4fa63067 | 2512 | maybe-install-dejagnu \ |
4fa63067 NN |
2513 | maybe-install-etc \ |
2514 | maybe-install-fastjar \ | |
d3ed111c | 2515 | maybe-install-fixincludes \ |
4fa63067 NN |
2516 | maybe-install-flex \ |
2517 | maybe-install-gas \ | |
b813574b | 2518 | maybe-install-gcc \ |
4b900473 PB |
2519 | maybe-install-gmp \ |
2520 | maybe-install-mpfr \ | |
e8a5fa9c | 2521 | maybe-install-mpc \ |
7ec59b9e | 2522 | maybe-install-isl \ |
1f53ca9a | 2523 | maybe-install-libelf \ |
93f9b408 | 2524 | maybe-install-gold \ |
4fa63067 | 2525 | maybe-install-gprof \ |
4fa63067 NN |
2526 | maybe-install-intl \ |
2527 | maybe-install-tcl \ | |
2528 | maybe-install-itcl \ | |
2529 | maybe-install-ld \ | |
2bf680c4 | 2530 | maybe-install-libbacktrace \ |
04cf1b77 | 2531 | maybe-install-libcpp \ |
be01d343 | 2532 | maybe-install-libdecnumber \ |
4fa63067 NN |
2533 | maybe-install-libgui \ |
2534 | maybe-install-libiberty \ | |
1b6c0831 | 2535 | maybe-install-libiberty-linker-plugin \ |
dc448a7b | 2536 | maybe-install-libiconv \ |
4fa63067 | 2537 | maybe-install-m4 \ |
4fa63067 | 2538 | maybe-install-readline \ |
4fa63067 NN |
2539 | maybe-install-sid \ |
2540 | maybe-install-sim \ | |
4fa63067 | 2541 | maybe-install-texinfo \ |
4fa63067 NN |
2542 | maybe-install-zlib \ |
2543 | maybe-install-gdb \ | |
2544 | maybe-install-expect \ | |
2545 | maybe-install-guile \ | |
2546 | maybe-install-tk \ | |
4fa63067 | 2547 | maybe-install-libtermcap \ |
b00612cc | 2548 | maybe-install-utils \ |
700d40ca | 2549 | maybe-install-gnattools \ |
1b6c0831 L |
2550 | maybe-install-lto-plugin \ |
2551 | maybe-install-libcc1 \ | |
2552 | maybe-install-gotools | |
2a4cbe27 | 2553 | |
4fa63067 NN |
2554 | .PHONY: install-target |
2555 | install-target: \ | |
2556 | maybe-install-target-libstdc++-v3 \ | |
5286fdef | 2557 | maybe-install-target-libsanitizer \ |
1b6c0831 | 2558 | maybe-install-target-libmpx \ |
95e43135 | 2559 | maybe-install-target-libvtv \ |
e78e02e6 | 2560 | maybe-install-target-libcilkrts \ |
1b6c0831 | 2561 | maybe-install-target-liboffloadmic \ |
064d0a7c | 2562 | maybe-install-target-libssp \ |
4fa63067 | 2563 | maybe-install-target-newlib \ |
6aa8ef82 | 2564 | maybe-install-target-libgcc \ |
2bf680c4 | 2565 | maybe-install-target-libbacktrace \ |
e552509b | 2566 | maybe-install-target-libquadmath \ |
4b1cb4fe | 2567 | maybe-install-target-libgfortran \ |
4fa63067 | 2568 | maybe-install-target-libobjc \ |
e552509b | 2569 | maybe-install-target-libgo \ |
4fa63067 NN |
2570 | maybe-install-target-libtermcap \ |
2571 | maybe-install-target-winsup \ | |
2572 | maybe-install-target-libgloss \ | |
4fa63067 | 2573 | maybe-install-target-libffi \ |
4fa63067 | 2574 | maybe-install-target-zlib \ |
4fa63067 | 2575 | maybe-install-target-rda \ |
b3ded179 | 2576 | maybe-install-target-libada \ |
7ec59b9e L |
2577 | maybe-install-target-libgomp \ |
2578 | maybe-install-target-libitm \ | |
2579 | maybe-install-target-libatomic | |
2a4cbe27 | 2580 | |
4fa63067 NN |
2581 | uninstall: |
2582 | @echo "the uninstall target is not supported in this tree" | |
2a4cbe27 | 2583 | |
4fa63067 NN |
2584 | .PHONY: install.all |
2585 | install.all: install-no-fixedincludes | |
22121df0 L |
2586 | @if [ -f ./gcc/Makefile ]; then \ |
2587 | r=`${PWD_COMMAND}`; export r; \ | |
0aed8855 | 2588 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
7ffa0b57 | 2589 | $(HOST_EXPORTS) \ |
4fa63067 | 2590 | (cd ./gcc && \ |
22121df0 | 2591 | $(MAKE) $(FLAGS_TO_PASS) install-headers); \ |
4fa63067 | 2592 | else \ |
22121df0 | 2593 | true; \ |
4fa63067 | 2594 | fi |
2a4cbe27 | 2595 | |
7ec59b9e L |
2596 | # install-no-fixedincludes is used to allow the elaboration of binary packages |
2597 | # suitable for distribution, where we cannot include the fixed system header | |
2598 | # files. | |
4fa63067 NN |
2599 | .PHONY: install-no-fixedincludes |
2600 | install-no-fixedincludes: installdirs install-host-nogcc \ | |
7ec59b9e | 2601 | install-target gcc-install-no-fixedincludes |
2a4cbe27 | 2602 | |
9b980aa1 RW |
2603 | .PHONY: install-strip |
2604 | install-strip: | |
2605 | @: $(MAKE); $(unstage) | |
2606 | @r=`${PWD_COMMAND}`; export r; \ | |
2607 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2608 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target | |
2609 | ||
2610 | .PHONY: install-strip-host | |
2611 | install-strip-host: \ | |
9b980aa1 RW |
2612 | maybe-install-strip-bfd \ |
2613 | maybe-install-strip-opcodes \ | |
2614 | maybe-install-strip-binutils \ | |
2615 | maybe-install-strip-bison \ | |
9b980aa1 RW |
2616 | maybe-install-strip-cgen \ |
2617 | maybe-install-strip-dejagnu \ | |
9b980aa1 RW |
2618 | maybe-install-strip-etc \ |
2619 | maybe-install-strip-fastjar \ | |
9b980aa1 RW |
2620 | maybe-install-strip-fixincludes \ |
2621 | maybe-install-strip-flex \ | |
2622 | maybe-install-strip-gas \ | |
2623 | maybe-install-strip-gcc \ | |
9b980aa1 RW |
2624 | maybe-install-strip-gmp \ |
2625 | maybe-install-strip-mpfr \ | |
2626 | maybe-install-strip-mpc \ | |
7ec59b9e | 2627 | maybe-install-strip-isl \ |
9b980aa1 | 2628 | maybe-install-strip-libelf \ |
9b980aa1 RW |
2629 | maybe-install-strip-gold \ |
2630 | maybe-install-strip-gprof \ | |
9b980aa1 RW |
2631 | maybe-install-strip-intl \ |
2632 | maybe-install-strip-tcl \ | |
2633 | maybe-install-strip-itcl \ | |
2634 | maybe-install-strip-ld \ | |
2bf680c4 | 2635 | maybe-install-strip-libbacktrace \ |
9b980aa1 RW |
2636 | maybe-install-strip-libcpp \ |
2637 | maybe-install-strip-libdecnumber \ | |
2638 | maybe-install-strip-libgui \ | |
2639 | maybe-install-strip-libiberty \ | |
1b6c0831 | 2640 | maybe-install-strip-libiberty-linker-plugin \ |
9b980aa1 | 2641 | maybe-install-strip-libiconv \ |
9b980aa1 | 2642 | maybe-install-strip-m4 \ |
9b980aa1 | 2643 | maybe-install-strip-readline \ |
9b980aa1 RW |
2644 | maybe-install-strip-sid \ |
2645 | maybe-install-strip-sim \ | |
9b980aa1 | 2646 | maybe-install-strip-texinfo \ |
9b980aa1 RW |
2647 | maybe-install-strip-zlib \ |
2648 | maybe-install-strip-gdb \ | |
2649 | maybe-install-strip-expect \ | |
2650 | maybe-install-strip-guile \ | |
2651 | maybe-install-strip-tk \ | |
2652 | maybe-install-strip-libtermcap \ | |
2653 | maybe-install-strip-utils \ | |
2654 | maybe-install-strip-gnattools \ | |
1b6c0831 L |
2655 | maybe-install-strip-lto-plugin \ |
2656 | maybe-install-strip-libcc1 \ | |
2657 | maybe-install-strip-gotools | |
9b980aa1 RW |
2658 | |
2659 | .PHONY: install-strip-target | |
2660 | install-strip-target: \ | |
2661 | maybe-install-strip-target-libstdc++-v3 \ | |
5286fdef | 2662 | maybe-install-strip-target-libsanitizer \ |
1b6c0831 | 2663 | maybe-install-strip-target-libmpx \ |
95e43135 | 2664 | maybe-install-strip-target-libvtv \ |
e78e02e6 | 2665 | maybe-install-strip-target-libcilkrts \ |
1b6c0831 | 2666 | maybe-install-strip-target-liboffloadmic \ |
9b980aa1 RW |
2667 | maybe-install-strip-target-libssp \ |
2668 | maybe-install-strip-target-newlib \ | |
2669 | maybe-install-strip-target-libgcc \ | |
2bf680c4 | 2670 | maybe-install-strip-target-libbacktrace \ |
9b980aa1 RW |
2671 | maybe-install-strip-target-libquadmath \ |
2672 | maybe-install-strip-target-libgfortran \ | |
2673 | maybe-install-strip-target-libobjc \ | |
2674 | maybe-install-strip-target-libgo \ | |
2675 | maybe-install-strip-target-libtermcap \ | |
2676 | maybe-install-strip-target-winsup \ | |
2677 | maybe-install-strip-target-libgloss \ | |
9b980aa1 | 2678 | maybe-install-strip-target-libffi \ |
9b980aa1 | 2679 | maybe-install-strip-target-zlib \ |
9b980aa1 RW |
2680 | maybe-install-strip-target-rda \ |
2681 | maybe-install-strip-target-libada \ | |
7ec59b9e L |
2682 | maybe-install-strip-target-libgomp \ |
2683 | maybe-install-strip-target-libitm \ | |
2684 | maybe-install-strip-target-libatomic | |
9b980aa1 RW |
2685 | |
2686 | ||
4fa63067 | 2687 | ### other supporting targets |
2a4cbe27 | 2688 | |
4fa63067 NN |
2689 | MAKEDIRS= \ |
2690 | $(DESTDIR)$(prefix) \ | |
2691 | $(DESTDIR)$(exec_prefix) | |
2692 | .PHONY: installdirs | |
2693 | installdirs: mkinstalldirs | |
2694 | $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS) | |
2a4cbe27 | 2695 | |
4fa63067 | 2696 | dir.info: do-install-info |
22121df0 L |
2697 | if [ -f $(srcdir)/texinfo/gen-info-dir ]; then \ |
2698 | $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new; \ | |
2699 | mv -f dir.info.new dir.info; \ | |
2700 | else true; \ | |
4fa63067 | 2701 | fi |
2a4cbe27 | 2702 | |
4fa63067 NN |
2703 | dist: |
2704 | @echo "Building a full distribution of this tree isn't done" | |
2705 | @echo "via 'make dist'. Check out the etc/ subdirectory" | |
2a4cbe27 | 2706 | |
4fa63067 | 2707 | etags tags: TAGS |
2a4cbe27 | 2708 | |
4fa63067 NN |
2709 | # Right now this just builds TAGS in each subdirectory. emacs19 has the |
2710 | # ability to use several tags files at once, so there is probably no need | |
2711 | # to combine them into one big TAGS file (like CVS 1.3 does). We could | |
2712 | # (if we felt like it) have this Makefile write a piece of elisp which | |
2713 | # the user could load to tell emacs19 where all the TAGS files we just | |
2714 | # built are. | |
2715 | TAGS: do-TAGS | |
2a4cbe27 | 2716 | |
a7254363 PB |
2717 | # ------------------------------------ |
2718 | # Macros for configure and all targets | |
2719 | # ------------------------------------ | |
2720 | ||
2721 | ||
2722 | ||
2723 | ||
2724 | ||
4fa63067 NN |
2725 | # -------------------------------------- |
2726 | # Modules which run on the build machine | |
2727 | # -------------------------------------- | |
2728 | ||
a7254363 | 2729 | |
4fa63067 NN |
2730 | .PHONY: configure-build-libiberty maybe-configure-build-libiberty |
2731 | maybe-configure-build-libiberty: | |
4f0ef2d8 CD |
2732 | @if gcc-bootstrap |
2733 | configure-build-libiberty: stage_current | |
2734 | @endif gcc-bootstrap | |
6bd3dfaa PB |
2735 | @if build-libiberty |
2736 | maybe-configure-build-libiberty: configure-build-libiberty | |
c52c6897 | 2737 | configure-build-libiberty: |
0aed8855 | 2738 | @: $(MAKE); $(unstage) |
c52c6897 | 2739 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 2740 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 | 2741 | test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \ |
22121df0 | 2742 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty; \ |
1f53ca9a | 2743 | $(BUILD_EXPORTS) \ |
4fa63067 NN |
2744 | echo Configuring in $(BUILD_SUBDIR)/libiberty; \ |
2745 | cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \ | |
2746 | case $(srcdir) in \ | |
b00612cc PB |
2747 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2748 | *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \ | |
2749 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 2750 | esac; \ |
1b6c0831 | 2751 | module_srcdir=libiberty; \ |
4fa63067 | 2752 | rm -f no-such-file || : ; \ |
1b6c0831 L |
2753 | CONFIG_SITE=no-such-file $(SHELL) \ |
2754 | $$s/$$module_srcdir/configure \ | |
2755 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 2756 | $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \ |
1b6c0831 | 2757 | --target=${target_alias} \ |
2a4cbe27 | 2758 | || exit 1 |
6bd3dfaa | 2759 | @endif build-libiberty |
2a4cbe27 | 2760 | |
a7254363 PB |
2761 | |
2762 | ||
d545f33b PB |
2763 | |
2764 | ||
4fa63067 NN |
2765 | .PHONY: all-build-libiberty maybe-all-build-libiberty |
2766 | maybe-all-build-libiberty: | |
4f0ef2d8 CD |
2767 | @if gcc-bootstrap |
2768 | all-build-libiberty: stage_current | |
2769 | @endif gcc-bootstrap | |
6bd3dfaa | 2770 | @if build-libiberty |
72b2455a | 2771 | TARGET-build-libiberty=all |
6bd3dfaa | 2772 | maybe-all-build-libiberty: all-build-libiberty |
4fa63067 | 2773 | all-build-libiberty: configure-build-libiberty |
0aed8855 | 2774 | @: $(MAKE); $(unstage) |
4fa63067 | 2775 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 2776 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1f53ca9a | 2777 | $(BUILD_EXPORTS) \ |
72b2455a | 2778 | (cd $(BUILD_SUBDIR)/libiberty && \ |
b3676d82 | 2779 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \ |
7f6ef0c0 | 2780 | $(TARGET-build-libiberty)) |
6bd3dfaa | 2781 | @endif build-libiberty |
2a4cbe27 | 2782 | |
a7254363 PB |
2783 | |
2784 | ||
d545f33b PB |
2785 | |
2786 | ||
6a9cf61e PB |
2787 | .PHONY: configure-build-bison maybe-configure-build-bison |
2788 | maybe-configure-build-bison: | |
4f0ef2d8 CD |
2789 | @if gcc-bootstrap |
2790 | configure-build-bison: stage_current | |
2791 | @endif gcc-bootstrap | |
6a9cf61e PB |
2792 | @if build-bison |
2793 | maybe-configure-build-bison: configure-build-bison | |
c52c6897 | 2794 | configure-build-bison: |
0aed8855 | 2795 | @: $(MAKE); $(unstage) |
c52c6897 | 2796 | @r=`${PWD_COMMAND}`; export r; \ |
6a9cf61e | 2797 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 | 2798 | test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \ |
22121df0 | 2799 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison; \ |
1f53ca9a | 2800 | $(BUILD_EXPORTS) \ |
6a9cf61e PB |
2801 | echo Configuring in $(BUILD_SUBDIR)/bison; \ |
2802 | cd "$(BUILD_SUBDIR)/bison" || exit 1; \ | |
2803 | case $(srcdir) in \ | |
b00612cc PB |
2804 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2805 | *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \ | |
2806 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6a9cf61e | 2807 | esac; \ |
1b6c0831 | 2808 | module_srcdir=bison; \ |
6a9cf61e | 2809 | rm -f no-such-file || : ; \ |
1b6c0831 L |
2810 | CONFIG_SITE=no-such-file $(SHELL) \ |
2811 | $$s/$$module_srcdir/configure \ | |
2812 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 2813 | $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \ |
1b6c0831 | 2814 | --target=${target_alias} \ |
6a9cf61e PB |
2815 | || exit 1 |
2816 | @endif build-bison | |
2817 | ||
a7254363 PB |
2818 | |
2819 | ||
d545f33b PB |
2820 | |
2821 | ||
6a9cf61e PB |
2822 | .PHONY: all-build-bison maybe-all-build-bison |
2823 | maybe-all-build-bison: | |
4f0ef2d8 CD |
2824 | @if gcc-bootstrap |
2825 | all-build-bison: stage_current | |
2826 | @endif gcc-bootstrap | |
6a9cf61e | 2827 | @if build-bison |
72b2455a | 2828 | TARGET-build-bison=all |
6a9cf61e PB |
2829 | maybe-all-build-bison: all-build-bison |
2830 | all-build-bison: configure-build-bison | |
0aed8855 | 2831 | @: $(MAKE); $(unstage) |
6a9cf61e PB |
2832 | @r=`${PWD_COMMAND}`; export r; \ |
2833 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 2834 | $(BUILD_EXPORTS) \ |
72b2455a | 2835 | (cd $(BUILD_SUBDIR)/bison && \ |
b3676d82 | 2836 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \ |
7f6ef0c0 | 2837 | $(TARGET-build-bison)) |
6a9cf61e PB |
2838 | @endif build-bison |
2839 | ||
a7254363 PB |
2840 | |
2841 | ||
d545f33b PB |
2842 | |
2843 | ||
6a9cf61e PB |
2844 | .PHONY: configure-build-flex maybe-configure-build-flex |
2845 | maybe-configure-build-flex: | |
4f0ef2d8 CD |
2846 | @if gcc-bootstrap |
2847 | configure-build-flex: stage_current | |
2848 | @endif gcc-bootstrap | |
6a9cf61e PB |
2849 | @if build-flex |
2850 | maybe-configure-build-flex: configure-build-flex | |
c52c6897 | 2851 | configure-build-flex: |
0aed8855 | 2852 | @: $(MAKE); $(unstage) |
c52c6897 | 2853 | @r=`${PWD_COMMAND}`; export r; \ |
6a9cf61e | 2854 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 | 2855 | test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \ |
22121df0 | 2856 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex; \ |
1f53ca9a | 2857 | $(BUILD_EXPORTS) \ |
6a9cf61e PB |
2858 | echo Configuring in $(BUILD_SUBDIR)/flex; \ |
2859 | cd "$(BUILD_SUBDIR)/flex" || exit 1; \ | |
2860 | case $(srcdir) in \ | |
b00612cc PB |
2861 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2862 | *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \ | |
2863 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6a9cf61e | 2864 | esac; \ |
1b6c0831 | 2865 | module_srcdir=flex; \ |
6a9cf61e | 2866 | rm -f no-such-file || : ; \ |
1b6c0831 L |
2867 | CONFIG_SITE=no-such-file $(SHELL) \ |
2868 | $$s/$$module_srcdir/configure \ | |
2869 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 2870 | $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \ |
1b6c0831 | 2871 | --target=${target_alias} \ |
6a9cf61e PB |
2872 | || exit 1 |
2873 | @endif build-flex | |
2874 | ||
a7254363 PB |
2875 | |
2876 | ||
d545f33b PB |
2877 | |
2878 | ||
6a9cf61e PB |
2879 | .PHONY: all-build-flex maybe-all-build-flex |
2880 | maybe-all-build-flex: | |
4f0ef2d8 CD |
2881 | @if gcc-bootstrap |
2882 | all-build-flex: stage_current | |
2883 | @endif gcc-bootstrap | |
6a9cf61e | 2884 | @if build-flex |
72b2455a | 2885 | TARGET-build-flex=all |
6a9cf61e PB |
2886 | maybe-all-build-flex: all-build-flex |
2887 | all-build-flex: configure-build-flex | |
0aed8855 | 2888 | @: $(MAKE); $(unstage) |
6a9cf61e PB |
2889 | @r=`${PWD_COMMAND}`; export r; \ |
2890 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 2891 | $(BUILD_EXPORTS) \ |
72b2455a | 2892 | (cd $(BUILD_SUBDIR)/flex && \ |
b3676d82 | 2893 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \ |
7f6ef0c0 | 2894 | $(TARGET-build-flex)) |
6a9cf61e PB |
2895 | @endif build-flex |
2896 | ||
a7254363 PB |
2897 | |
2898 | ||
d545f33b PB |
2899 | |
2900 | ||
6a9cf61e PB |
2901 | .PHONY: configure-build-m4 maybe-configure-build-m4 |
2902 | maybe-configure-build-m4: | |
4f0ef2d8 CD |
2903 | @if gcc-bootstrap |
2904 | configure-build-m4: stage_current | |
2905 | @endif gcc-bootstrap | |
6a9cf61e PB |
2906 | @if build-m4 |
2907 | maybe-configure-build-m4: configure-build-m4 | |
c52c6897 | 2908 | configure-build-m4: |
0aed8855 | 2909 | @: $(MAKE); $(unstage) |
c52c6897 | 2910 | @r=`${PWD_COMMAND}`; export r; \ |
6a9cf61e | 2911 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 | 2912 | test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \ |
22121df0 | 2913 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4; \ |
1f53ca9a | 2914 | $(BUILD_EXPORTS) \ |
6a9cf61e PB |
2915 | echo Configuring in $(BUILD_SUBDIR)/m4; \ |
2916 | cd "$(BUILD_SUBDIR)/m4" || exit 1; \ | |
2917 | case $(srcdir) in \ | |
b00612cc PB |
2918 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2919 | *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \ | |
2920 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6a9cf61e | 2921 | esac; \ |
1b6c0831 | 2922 | module_srcdir=m4; \ |
6a9cf61e | 2923 | rm -f no-such-file || : ; \ |
1b6c0831 L |
2924 | CONFIG_SITE=no-such-file $(SHELL) \ |
2925 | $$s/$$module_srcdir/configure \ | |
2926 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 2927 | $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \ |
1b6c0831 | 2928 | --target=${target_alias} \ |
6a9cf61e PB |
2929 | || exit 1 |
2930 | @endif build-m4 | |
2931 | ||
a7254363 PB |
2932 | |
2933 | ||
d545f33b PB |
2934 | |
2935 | ||
6a9cf61e PB |
2936 | .PHONY: all-build-m4 maybe-all-build-m4 |
2937 | maybe-all-build-m4: | |
4f0ef2d8 CD |
2938 | @if gcc-bootstrap |
2939 | all-build-m4: stage_current | |
2940 | @endif gcc-bootstrap | |
6a9cf61e | 2941 | @if build-m4 |
72b2455a | 2942 | TARGET-build-m4=all |
6a9cf61e PB |
2943 | maybe-all-build-m4: all-build-m4 |
2944 | all-build-m4: configure-build-m4 | |
0aed8855 | 2945 | @: $(MAKE); $(unstage) |
6a9cf61e PB |
2946 | @r=`${PWD_COMMAND}`; export r; \ |
2947 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 2948 | $(BUILD_EXPORTS) \ |
72b2455a | 2949 | (cd $(BUILD_SUBDIR)/m4 && \ |
b3676d82 | 2950 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \ |
7f6ef0c0 | 2951 | $(TARGET-build-m4)) |
6a9cf61e PB |
2952 | @endif build-m4 |
2953 | ||
a7254363 PB |
2954 | |
2955 | ||
d545f33b PB |
2956 | |
2957 | ||
6a9cf61e PB |
2958 | .PHONY: configure-build-texinfo maybe-configure-build-texinfo |
2959 | maybe-configure-build-texinfo: | |
4f0ef2d8 CD |
2960 | @if gcc-bootstrap |
2961 | configure-build-texinfo: stage_current | |
2962 | @endif gcc-bootstrap | |
6a9cf61e PB |
2963 | @if build-texinfo |
2964 | maybe-configure-build-texinfo: configure-build-texinfo | |
c52c6897 | 2965 | configure-build-texinfo: |
0aed8855 | 2966 | @: $(MAKE); $(unstage) |
c52c6897 | 2967 | @r=`${PWD_COMMAND}`; export r; \ |
6a9cf61e | 2968 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 | 2969 | test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \ |
22121df0 | 2970 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo; \ |
1f53ca9a | 2971 | $(BUILD_EXPORTS) \ |
6a9cf61e PB |
2972 | echo Configuring in $(BUILD_SUBDIR)/texinfo; \ |
2973 | cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \ | |
2974 | case $(srcdir) in \ | |
b00612cc PB |
2975 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2976 | *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \ | |
2977 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6a9cf61e | 2978 | esac; \ |
1b6c0831 | 2979 | module_srcdir=texinfo; \ |
6a9cf61e | 2980 | rm -f no-such-file || : ; \ |
1b6c0831 L |
2981 | CONFIG_SITE=no-such-file $(SHELL) \ |
2982 | $$s/$$module_srcdir/configure \ | |
2983 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 2984 | $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \ |
1b6c0831 | 2985 | --target=${target_alias} \ |
6a9cf61e PB |
2986 | || exit 1 |
2987 | @endif build-texinfo | |
2988 | ||
a7254363 PB |
2989 | |
2990 | ||
d545f33b PB |
2991 | |
2992 | ||
6a9cf61e PB |
2993 | .PHONY: all-build-texinfo maybe-all-build-texinfo |
2994 | maybe-all-build-texinfo: | |
4f0ef2d8 CD |
2995 | @if gcc-bootstrap |
2996 | all-build-texinfo: stage_current | |
2997 | @endif gcc-bootstrap | |
6a9cf61e | 2998 | @if build-texinfo |
72b2455a | 2999 | TARGET-build-texinfo=all |
6a9cf61e PB |
3000 | maybe-all-build-texinfo: all-build-texinfo |
3001 | all-build-texinfo: configure-build-texinfo | |
0aed8855 | 3002 | @: $(MAKE); $(unstage) |
6a9cf61e PB |
3003 | @r=`${PWD_COMMAND}`; export r; \ |
3004 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 3005 | $(BUILD_EXPORTS) \ |
72b2455a | 3006 | (cd $(BUILD_SUBDIR)/texinfo && \ |
b3676d82 | 3007 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \ |
7f6ef0c0 | 3008 | $(TARGET-build-texinfo)) |
6a9cf61e PB |
3009 | @endif build-texinfo |
3010 | ||
a7254363 PB |
3011 | |
3012 | ||
d545f33b PB |
3013 | |
3014 | ||
ee025550 PB |
3015 | .PHONY: configure-build-fixincludes maybe-configure-build-fixincludes |
3016 | maybe-configure-build-fixincludes: | |
4f0ef2d8 CD |
3017 | @if gcc-bootstrap |
3018 | configure-build-fixincludes: stage_current | |
3019 | @endif gcc-bootstrap | |
ee025550 PB |
3020 | @if build-fixincludes |
3021 | maybe-configure-build-fixincludes: configure-build-fixincludes | |
c52c6897 | 3022 | configure-build-fixincludes: |
0aed8855 | 3023 | @: $(MAKE); $(unstage) |
c52c6897 | 3024 | @r=`${PWD_COMMAND}`; export r; \ |
ee025550 | 3025 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 | 3026 | test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \ |
22121df0 | 3027 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes; \ |
1f53ca9a | 3028 | $(BUILD_EXPORTS) \ |
ee025550 PB |
3029 | echo Configuring in $(BUILD_SUBDIR)/fixincludes; \ |
3030 | cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \ | |
3031 | case $(srcdir) in \ | |
b00612cc PB |
3032 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
3033 | *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \ | |
3034 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
ee025550 | 3035 | esac; \ |
1b6c0831 | 3036 | module_srcdir=fixincludes; \ |
ee025550 | 3037 | rm -f no-such-file || : ; \ |
1b6c0831 L |
3038 | CONFIG_SITE=no-such-file $(SHELL) \ |
3039 | $$s/$$module_srcdir/configure \ | |
3040 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 3041 | $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \ |
1b6c0831 | 3042 | --target=${target_alias} \ |
ee025550 PB |
3043 | || exit 1 |
3044 | @endif build-fixincludes | |
3045 | ||
a7254363 PB |
3046 | |
3047 | ||
d545f33b PB |
3048 | |
3049 | ||
ee025550 PB |
3050 | .PHONY: all-build-fixincludes maybe-all-build-fixincludes |
3051 | maybe-all-build-fixincludes: | |
4f0ef2d8 CD |
3052 | @if gcc-bootstrap |
3053 | all-build-fixincludes: stage_current | |
3054 | @endif gcc-bootstrap | |
ee025550 PB |
3055 | @if build-fixincludes |
3056 | TARGET-build-fixincludes=all | |
3057 | maybe-all-build-fixincludes: all-build-fixincludes | |
3058 | all-build-fixincludes: configure-build-fixincludes | |
0aed8855 | 3059 | @: $(MAKE); $(unstage) |
ee025550 PB |
3060 | @r=`${PWD_COMMAND}`; export r; \ |
3061 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 3062 | $(BUILD_EXPORTS) \ |
ee025550 | 3063 | (cd $(BUILD_SUBDIR)/fixincludes && \ |
b3676d82 | 3064 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \ |
7f6ef0c0 | 3065 | $(TARGET-build-fixincludes)) |
ee025550 PB |
3066 | @endif build-fixincludes |
3067 | ||
2a4cbe27 | 3068 | |
a7254363 | 3069 | |
d545f33b PB |
3070 | |
3071 | ||
1b6c0831 L |
3072 | .PHONY: configure-build-libcpp maybe-configure-build-libcpp |
3073 | maybe-configure-build-libcpp: | |
3074 | @if gcc-bootstrap | |
3075 | configure-build-libcpp: stage_current | |
3076 | @endif gcc-bootstrap | |
3077 | @if build-libcpp | |
3078 | maybe-configure-build-libcpp: configure-build-libcpp | |
3079 | configure-build-libcpp: | |
3080 | @: $(MAKE); $(unstage) | |
3081 | @r=`${PWD_COMMAND}`; export r; \ | |
3082 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
3083 | test ! -f $(BUILD_SUBDIR)/libcpp/Makefile || exit 0; \ | |
22121df0 | 3084 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libcpp; \ |
1b6c0831 L |
3085 | $(BUILD_EXPORTS) \ |
3086 | echo Configuring in $(BUILD_SUBDIR)/libcpp; \ | |
3087 | cd "$(BUILD_SUBDIR)/libcpp" || exit 1; \ | |
3088 | case $(srcdir) in \ | |
3089 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
3090 | *) topdir=`echo $(BUILD_SUBDIR)/libcpp/ | \ | |
3091 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
3092 | esac; \ | |
3093 | module_srcdir=libcpp; \ | |
3094 | rm -f no-such-file || : ; \ | |
3095 | CONFIG_SITE=no-such-file $(SHELL) \ | |
3096 | $$s/$$module_srcdir/configure \ | |
3097 | --srcdir=$${topdir}/$$module_srcdir \ | |
3098 | $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \ | |
3099 | --target=${target_alias} --disable-nls am_cv_func_iconv=no \ | |
3100 | || exit 1 | |
3101 | @endif build-libcpp | |
3102 | ||
3103 | ||
3104 | ||
3105 | ||
3106 | ||
3107 | .PHONY: all-build-libcpp maybe-all-build-libcpp | |
3108 | maybe-all-build-libcpp: | |
3109 | @if gcc-bootstrap | |
3110 | all-build-libcpp: stage_current | |
3111 | @endif gcc-bootstrap | |
3112 | @if build-libcpp | |
3113 | TARGET-build-libcpp=all | |
3114 | maybe-all-build-libcpp: all-build-libcpp | |
3115 | all-build-libcpp: configure-build-libcpp | |
3116 | @: $(MAKE); $(unstage) | |
3117 | @r=`${PWD_COMMAND}`; export r; \ | |
3118 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
3119 | $(BUILD_EXPORTS) \ | |
3120 | (cd $(BUILD_SUBDIR)/libcpp && \ | |
3121 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \ | |
3122 | $(TARGET-build-libcpp)) | |
3123 | @endif build-libcpp | |
3124 | ||
3125 | ||
3126 | ||
3127 | ||
3128 | ||
4fa63067 NN |
3129 | # -------------------------------------- |
3130 | # Modules which run on the host machine | |
3131 | # -------------------------------------- | |
2a4cbe27 | 3132 | |
a7254363 | 3133 | |
a90ef4bf JM |
3134 | .PHONY: configure-bfd maybe-configure-bfd |
3135 | maybe-configure-bfd: | |
4f0ef2d8 | 3136 | @if gcc-bootstrap |
a90ef4bf | 3137 | configure-bfd: stage_current |
4f0ef2d8 | 3138 | @endif gcc-bootstrap |
a90ef4bf JM |
3139 | @if bfd |
3140 | maybe-configure-bfd: configure-bfd | |
3141 | configure-bfd: | |
c52c6897 | 3142 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 3143 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 3144 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ |
22121df0 | 3145 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \ |
1f53ca9a | 3146 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
3147 | echo Configuring in $(HOST_SUBDIR)/bfd; \ |
3148 | cd "$(HOST_SUBDIR)/bfd" || exit 1; \ | |
4fa63067 | 3149 | case $(srcdir) in \ |
b00612cc | 3150 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 3151 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ |
b00612cc | 3152 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 3153 | esac; \ |
1b6c0831 L |
3154 | module_srcdir=bfd; \ |
3155 | $(SHELL) \ | |
3156 | $$s/$$module_srcdir/configure \ | |
3157 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 3158 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 3159 | --target=${target_alias} \ |
2a4cbe27 | 3160 | || exit 1 |
a90ef4bf | 3161 | @endif bfd |
a7254363 | 3162 | |
d545f33b PB |
3163 | |
3164 | ||
a90ef4bf JM |
3165 | .PHONY: configure-stage1-bfd maybe-configure-stage1-bfd |
3166 | maybe-configure-stage1-bfd: | |
3167 | @if bfd-bootstrap | |
3168 | maybe-configure-stage1-bfd: configure-stage1-bfd | |
3169 | configure-stage1-bfd: | |
3170 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
3171 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd | |
4fa63067 NN |
3172 | @r=`${PWD_COMMAND}`; export r; \ |
3173 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
3174 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
3175 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ | |
3176 | $(HOST_EXPORTS) \ | |
3177 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ | |
3178 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
3179 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
3180 | echo Configuring stage 1 in $(HOST_SUBDIR)/bfd; \ |
3181 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \ | |
a90ef4bf JM |
3182 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
3183 | case $(srcdir) in \ | |
3184 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
3185 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
3186 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
3187 | esac; \ | |
1b6c0831 L |
3188 | module_srcdir=bfd; \ |
3189 | $(SHELL) $$s/$$module_srcdir/configure \ | |
3190 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 3191 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
3192 | --target=${target_alias} \ |
3193 | \ | |
a90ef4bf JM |
3194 | $(STAGE1_CONFIGURE_FLAGS) |
3195 | @endif bfd-bootstrap | |
2a4cbe27 | 3196 | |
a90ef4bf JM |
3197 | .PHONY: configure-stage2-bfd maybe-configure-stage2-bfd |
3198 | maybe-configure-stage2-bfd: | |
3199 | @if bfd-bootstrap | |
3200 | maybe-configure-stage2-bfd: configure-stage2-bfd | |
3201 | configure-stage2-bfd: | |
3202 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
3203 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd | |
4fa63067 | 3204 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 3205 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
3206 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
3207 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ | |
378fce5b | 3208 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
3209 | $(POSTSTAGE1_HOST_EXPORTS) \ |
3210 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
3211 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
3212 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
3213 | echo Configuring stage 2 in $(HOST_SUBDIR)/bfd; \ |
3214 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \ | |
a90ef4bf JM |
3215 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
3216 | case $(srcdir) in \ | |
3217 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
3218 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
3219 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
3220 | esac; \ | |
1b6c0831 L |
3221 | module_srcdir=bfd; \ |
3222 | $(SHELL) $$s/$$module_srcdir/configure \ | |
3223 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 3224 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 3225 | --target=${target_alias} \ |
22121df0 | 3226 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
3227 | $(STAGE2_CONFIGURE_FLAGS) |
3228 | @endif bfd-bootstrap | |
2a4cbe27 | 3229 | |
a90ef4bf JM |
3230 | .PHONY: configure-stage3-bfd maybe-configure-stage3-bfd |
3231 | maybe-configure-stage3-bfd: | |
3232 | @if bfd-bootstrap | |
3233 | maybe-configure-stage3-bfd: configure-stage3-bfd | |
3234 | configure-stage3-bfd: | |
3235 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
3236 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd | |
4fa63067 | 3237 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 3238 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
3239 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
3240 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ | |
378fce5b | 3241 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
3242 | $(POSTSTAGE1_HOST_EXPORTS) \ |
3243 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
3244 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
3245 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
3246 | echo Configuring stage 3 in $(HOST_SUBDIR)/bfd; \ |
3247 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \ | |
a90ef4bf JM |
3248 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
3249 | case $(srcdir) in \ | |
3250 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
3251 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
3252 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
3253 | esac; \ | |
1b6c0831 L |
3254 | module_srcdir=bfd; \ |
3255 | $(SHELL) $$s/$$module_srcdir/configure \ | |
3256 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 3257 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 3258 | --target=${target_alias} \ |
22121df0 | 3259 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
3260 | $(STAGE3_CONFIGURE_FLAGS) |
3261 | @endif bfd-bootstrap | |
9b980aa1 | 3262 | |
a90ef4bf JM |
3263 | .PHONY: configure-stage4-bfd maybe-configure-stage4-bfd |
3264 | maybe-configure-stage4-bfd: | |
3265 | @if bfd-bootstrap | |
3266 | maybe-configure-stage4-bfd: configure-stage4-bfd | |
3267 | configure-stage4-bfd: | |
3268 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
3269 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd | |
9b980aa1 RW |
3270 | @r=`${PWD_COMMAND}`; export r; \ |
3271 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
3272 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
3273 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ | |
9b980aa1 | 3274 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
3275 | $(POSTSTAGE1_HOST_EXPORTS) \ |
3276 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
3277 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
3278 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
3279 | echo Configuring stage 4 in $(HOST_SUBDIR)/bfd; \ |
3280 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \ | |
a90ef4bf JM |
3281 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
3282 | case $(srcdir) in \ | |
3283 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
3284 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
3285 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
3286 | esac; \ | |
1b6c0831 L |
3287 | module_srcdir=bfd; \ |
3288 | $(SHELL) $$s/$$module_srcdir/configure \ | |
3289 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 3290 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 3291 | --target=${target_alias} \ |
22121df0 | 3292 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
3293 | $(STAGE4_CONFIGURE_FLAGS) |
3294 | @endif bfd-bootstrap | |
4fa63067 | 3295 | |
a90ef4bf JM |
3296 | .PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd |
3297 | maybe-configure-stageprofile-bfd: | |
3298 | @if bfd-bootstrap | |
3299 | maybe-configure-stageprofile-bfd: configure-stageprofile-bfd | |
3300 | configure-stageprofile-bfd: | |
3301 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
3302 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd | |
3303 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 3304 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
3305 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
3306 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ | |
378fce5b | 3307 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
3308 | $(POSTSTAGE1_HOST_EXPORTS) \ |
3309 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
3310 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
3311 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
3312 | echo Configuring stage profile in $(HOST_SUBDIR)/bfd; \ |
3313 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \ | |
a90ef4bf JM |
3314 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
3315 | case $(srcdir) in \ | |
3316 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
3317 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
3318 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
3319 | esac; \ | |
1b6c0831 L |
3320 | module_srcdir=bfd; \ |
3321 | $(SHELL) $$s/$$module_srcdir/configure \ | |
3322 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 3323 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 3324 | --target=${target_alias} \ |
22121df0 | 3325 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
3326 | $(STAGEprofile_CONFIGURE_FLAGS) |
3327 | @endif bfd-bootstrap | |
2a4cbe27 | 3328 | |
a90ef4bf JM |
3329 | .PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd |
3330 | maybe-configure-stagefeedback-bfd: | |
3331 | @if bfd-bootstrap | |
3332 | maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd | |
3333 | configure-stagefeedback-bfd: | |
3334 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
3335 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd | |
3336 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 3337 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
3338 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
3339 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ | |
378fce5b | 3340 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
3341 | $(POSTSTAGE1_HOST_EXPORTS) \ |
3342 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
3343 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
3344 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
3345 | echo Configuring stage feedback in $(HOST_SUBDIR)/bfd; \ |
3346 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \ | |
a90ef4bf JM |
3347 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
3348 | case $(srcdir) in \ | |
3349 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
3350 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
3351 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
3352 | esac; \ | |
1b6c0831 L |
3353 | module_srcdir=bfd; \ |
3354 | $(SHELL) $$s/$$module_srcdir/configure \ | |
3355 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 3356 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 3357 | --target=${target_alias} \ |
22121df0 | 3358 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
3359 | $(STAGEfeedback_CONFIGURE_FLAGS) |
3360 | @endif bfd-bootstrap | |
2a4cbe27 | 3361 | |
56a8fe78 | 3362 | |
56a8fe78 | 3363 | |
56a8fe78 | 3364 | |
6d389afc | 3365 | |
a90ef4bf JM |
3366 | .PHONY: all-bfd maybe-all-bfd |
3367 | maybe-all-bfd: | |
3368 | @if gcc-bootstrap | |
3369 | all-bfd: stage_current | |
3370 | @endif gcc-bootstrap | |
3371 | @if bfd | |
3372 | TARGET-bfd=all | |
3373 | maybe-all-bfd: all-bfd | |
3374 | all-bfd: configure-bfd | |
3375 | @r=`${PWD_COMMAND}`; export r; \ | |
6d389afc | 3376 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
3377 | $(HOST_EXPORTS) \ |
3378 | (cd $(HOST_SUBDIR)/bfd && \ | |
b3676d82 | 3379 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
3380 | $(TARGET-bfd)) |
3381 | @endif bfd | |
6d389afc | 3382 | |
6d389afc | 3383 | |
2a4cbe27 | 3384 | |
a90ef4bf JM |
3385 | .PHONY: all-stage1-bfd maybe-all-stage1-bfd |
3386 | .PHONY: clean-stage1-bfd maybe-clean-stage1-bfd | |
3387 | maybe-all-stage1-bfd: | |
3388 | maybe-clean-stage1-bfd: | |
3389 | @if bfd-bootstrap | |
3390 | maybe-all-stage1-bfd: all-stage1-bfd | |
3391 | all-stage1: all-stage1-bfd | |
3392 | TARGET-stage1-bfd = $(TARGET-bfd) | |
3393 | all-stage1-bfd: configure-stage1-bfd | |
3394 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
3395 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 3396 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
3397 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
3398 | $(HOST_EXPORTS) \ | |
3399 | cd $(HOST_SUBDIR)/bfd && \ | |
05a13254 | 3400 | \ |
a90ef4bf JM |
3401 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
3402 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
3403 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
3404 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
3405 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
3406 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
3407 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
3408 | $(EXTRA_HOST_FLAGS) \ |
3409 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 3410 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 3411 | $(TARGET-stage1-bfd) |
2a4cbe27 | 3412 | |
a90ef4bf JM |
3413 | maybe-clean-stage1-bfd: clean-stage1-bfd |
3414 | clean-stage1: clean-stage1-bfd | |
3415 | clean-stage1-bfd: | |
3416 | @if [ $(current_stage) = stage1 ]; then \ | |
3417 | [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \ | |
3418 | else \ | |
3419 | [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \ | |
3420 | $(MAKE) stage1-start; \ | |
3421 | fi; \ | |
3422 | cd $(HOST_SUBDIR)/bfd && \ | |
3423 | $(MAKE) $(EXTRA_HOST_FLAGS) \ | |
b3676d82 | 3424 | $(STAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 3425 | @endif bfd-bootstrap |
2a4cbe27 | 3426 | |
2a4cbe27 | 3427 | |
a90ef4bf JM |
3428 | .PHONY: all-stage2-bfd maybe-all-stage2-bfd |
3429 | .PHONY: clean-stage2-bfd maybe-clean-stage2-bfd | |
3430 | maybe-all-stage2-bfd: | |
3431 | maybe-clean-stage2-bfd: | |
3432 | @if bfd-bootstrap | |
3433 | maybe-all-stage2-bfd: all-stage2-bfd | |
3434 | all-stage2: all-stage2-bfd | |
3435 | TARGET-stage2-bfd = $(TARGET-bfd) | |
3436 | all-stage2-bfd: configure-stage2-bfd | |
3437 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
3438 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 3439 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 3440 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
378fce5b | 3441 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
3442 | $(POSTSTAGE1_HOST_EXPORTS) \ |
3443 | cd $(HOST_SUBDIR)/bfd && \ | |
05a13254 | 3444 | \ |
a90ef4bf JM |
3445 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
3446 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
3447 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
3448 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
3449 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
3450 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
3451 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
3452 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 3453 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 3454 | $(TARGET-stage2-bfd) |
2a4cbe27 | 3455 | |
a90ef4bf JM |
3456 | maybe-clean-stage2-bfd: clean-stage2-bfd |
3457 | clean-stage2: clean-stage2-bfd | |
3458 | clean-stage2-bfd: | |
3459 | @if [ $(current_stage) = stage2 ]; then \ | |
3460 | [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \ | |
3461 | else \ | |
3462 | [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \ | |
3463 | $(MAKE) stage2-start; \ | |
3464 | fi; \ | |
3465 | cd $(HOST_SUBDIR)/bfd && \ | |
b3676d82 | 3466 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 3467 | @endif bfd-bootstrap |
2a4cbe27 | 3468 | |
a3ca38d2 | 3469 | |
a90ef4bf JM |
3470 | .PHONY: all-stage3-bfd maybe-all-stage3-bfd |
3471 | .PHONY: clean-stage3-bfd maybe-clean-stage3-bfd | |
3472 | maybe-all-stage3-bfd: | |
3473 | maybe-clean-stage3-bfd: | |
3474 | @if bfd-bootstrap | |
3475 | maybe-all-stage3-bfd: all-stage3-bfd | |
3476 | all-stage3: all-stage3-bfd | |
3477 | TARGET-stage3-bfd = $(TARGET-bfd) | |
3478 | all-stage3-bfd: configure-stage3-bfd | |
3479 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
3480 | @r=`${PWD_COMMAND}`; export r; \ | |
a3ca38d2 | 3481 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 3482 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
a3ca38d2 | 3483 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
3484 | $(POSTSTAGE1_HOST_EXPORTS) \ |
3485 | cd $(HOST_SUBDIR)/bfd && \ | |
05a13254 | 3486 | \ |
a90ef4bf JM |
3487 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
3488 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
3489 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
3490 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
3491 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
3492 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
3493 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
3494 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 3495 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 3496 | $(TARGET-stage3-bfd) |
a3ca38d2 | 3497 | |
a90ef4bf JM |
3498 | maybe-clean-stage3-bfd: clean-stage3-bfd |
3499 | clean-stage3: clean-stage3-bfd | |
3500 | clean-stage3-bfd: | |
3501 | @if [ $(current_stage) = stage3 ]; then \ | |
3502 | [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \ | |
3503 | else \ | |
3504 | [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \ | |
3505 | $(MAKE) stage3-start; \ | |
3506 | fi; \ | |
3507 | cd $(HOST_SUBDIR)/bfd && \ | |
b3676d82 | 3508 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 3509 | @endif bfd-bootstrap |
a3ca38d2 | 3510 | |
108a6f8e | 3511 | |
a90ef4bf JM |
3512 | .PHONY: all-stage4-bfd maybe-all-stage4-bfd |
3513 | .PHONY: clean-stage4-bfd maybe-clean-stage4-bfd | |
3514 | maybe-all-stage4-bfd: | |
3515 | maybe-clean-stage4-bfd: | |
3516 | @if bfd-bootstrap | |
3517 | maybe-all-stage4-bfd: all-stage4-bfd | |
3518 | all-stage4: all-stage4-bfd | |
3519 | TARGET-stage4-bfd = $(TARGET-bfd) | |
3520 | all-stage4-bfd: configure-stage4-bfd | |
3521 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
3522 | @r=`${PWD_COMMAND}`; export r; \ | |
108a6f8e | 3523 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 3524 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
108a6f8e | 3525 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
3526 | $(POSTSTAGE1_HOST_EXPORTS) \ |
3527 | cd $(HOST_SUBDIR)/bfd && \ | |
05a13254 | 3528 | \ |
a90ef4bf JM |
3529 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
3530 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
3531 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
3532 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
3533 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
3534 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
3535 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
3536 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 3537 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 3538 | $(TARGET-stage4-bfd) |
108a6f8e | 3539 | |
a90ef4bf JM |
3540 | maybe-clean-stage4-bfd: clean-stage4-bfd |
3541 | clean-stage4: clean-stage4-bfd | |
3542 | clean-stage4-bfd: | |
3543 | @if [ $(current_stage) = stage4 ]; then \ | |
3544 | [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \ | |
3545 | else \ | |
3546 | [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \ | |
3547 | $(MAKE) stage4-start; \ | |
3548 | fi; \ | |
3549 | cd $(HOST_SUBDIR)/bfd && \ | |
b3676d82 | 3550 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 3551 | @endif bfd-bootstrap |
108a6f8e | 3552 | |
2a4cbe27 | 3553 | |
a90ef4bf JM |
3554 | .PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd |
3555 | .PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd | |
3556 | maybe-all-stageprofile-bfd: | |
3557 | maybe-clean-stageprofile-bfd: | |
3558 | @if bfd-bootstrap | |
3559 | maybe-all-stageprofile-bfd: all-stageprofile-bfd | |
3560 | all-stageprofile: all-stageprofile-bfd | |
3561 | TARGET-stageprofile-bfd = $(TARGET-bfd) | |
3562 | all-stageprofile-bfd: configure-stageprofile-bfd | |
3563 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
3564 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 3565 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 3566 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
378fce5b | 3567 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
3568 | $(POSTSTAGE1_HOST_EXPORTS) \ |
3569 | cd $(HOST_SUBDIR)/bfd && \ | |
05a13254 | 3570 | \ |
a90ef4bf JM |
3571 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
3572 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
3573 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
3574 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
3575 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
3576 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
3577 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
3578 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 3579 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf | 3580 | $(TARGET-stageprofile-bfd) |
2a4cbe27 | 3581 | |
a90ef4bf JM |
3582 | maybe-clean-stageprofile-bfd: clean-stageprofile-bfd |
3583 | clean-stageprofile: clean-stageprofile-bfd | |
3584 | clean-stageprofile-bfd: | |
3585 | @if [ $(current_stage) = stageprofile ]; then \ | |
3586 | [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \ | |
3587 | else \ | |
3588 | [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \ | |
3589 | $(MAKE) stageprofile-start; \ | |
3590 | fi; \ | |
3591 | cd $(HOST_SUBDIR)/bfd && \ | |
b3676d82 | 3592 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 3593 | @endif bfd-bootstrap |
2a4cbe27 | 3594 | |
a7254363 | 3595 | |
a90ef4bf JM |
3596 | .PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd |
3597 | .PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd | |
3598 | maybe-all-stagefeedback-bfd: | |
3599 | maybe-clean-stagefeedback-bfd: | |
3600 | @if bfd-bootstrap | |
3601 | maybe-all-stagefeedback-bfd: all-stagefeedback-bfd | |
3602 | all-stagefeedback: all-stagefeedback-bfd | |
3603 | TARGET-stagefeedback-bfd = $(TARGET-bfd) | |
3604 | all-stagefeedback-bfd: configure-stagefeedback-bfd | |
3605 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
c52c6897 | 3606 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 3607 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
3608 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
3609 | $(HOST_EXPORTS) \ | |
3610 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
3611 | cd $(HOST_SUBDIR)/bfd && \ | |
05a13254 | 3612 | \ |
a90ef4bf JM |
3613 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
3614 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
3615 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
3616 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
3617 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
3618 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
3619 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
3620 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 3621 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf | 3622 | $(TARGET-stagefeedback-bfd) |
d545f33b | 3623 | |
a90ef4bf JM |
3624 | maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd |
3625 | clean-stagefeedback: clean-stagefeedback-bfd | |
3626 | clean-stagefeedback-bfd: | |
3627 | @if [ $(current_stage) = stagefeedback ]; then \ | |
3628 | [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \ | |
3629 | else \ | |
3630 | [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \ | |
3631 | $(MAKE) stagefeedback-start; \ | |
3632 | fi; \ | |
3633 | cd $(HOST_SUBDIR)/bfd && \ | |
b3676d82 | 3634 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 3635 | @endif bfd-bootstrap |
d545f33b | 3636 | |
2a4cbe27 | 3637 | |
a7254363 | 3638 | |
d545f33b PB |
3639 | |
3640 | ||
a90ef4bf JM |
3641 | .PHONY: check-bfd maybe-check-bfd |
3642 | maybe-check-bfd: | |
3643 | @if bfd | |
3644 | maybe-check-bfd: check-bfd | |
2a4cbe27 | 3645 | |
a90ef4bf | 3646 | check-bfd: |
0aed8855 | 3647 | @: $(MAKE); $(unstage) |
4fa63067 | 3648 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 3649 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
f91ca6bc | 3650 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 3651 | (cd $(HOST_SUBDIR)/bfd && \ |
f91ca6bc | 3652 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
2a4cbe27 | 3653 | |
a90ef4bf | 3654 | @endif bfd |
2a4cbe27 | 3655 | |
a90ef4bf JM |
3656 | .PHONY: install-bfd maybe-install-bfd |
3657 | maybe-install-bfd: | |
3658 | @if bfd | |
3659 | maybe-install-bfd: install-bfd | |
2a4cbe27 | 3660 | |
a90ef4bf | 3661 | install-bfd: installdirs |
0aed8855 | 3662 | @: $(MAKE); $(unstage) |
4fa63067 | 3663 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 3664 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 3665 | $(HOST_EXPORTS) \ |
a90ef4bf | 3666 | (cd $(HOST_SUBDIR)/bfd && \ |
2da12f12 | 3667 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 3668 | |
a90ef4bf | 3669 | @endif bfd |
2a4cbe27 | 3670 | |
a90ef4bf JM |
3671 | .PHONY: install-strip-bfd maybe-install-strip-bfd |
3672 | maybe-install-strip-bfd: | |
3673 | @if bfd | |
3674 | maybe-install-strip-bfd: install-strip-bfd | |
9b980aa1 | 3675 | |
a90ef4bf | 3676 | install-strip-bfd: installdirs |
9b980aa1 RW |
3677 | @: $(MAKE); $(unstage) |
3678 | @r=`${PWD_COMMAND}`; export r; \ | |
3679 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
3680 | $(HOST_EXPORTS) \ | |
a90ef4bf | 3681 | (cd $(HOST_SUBDIR)/bfd && \ |
9b980aa1 RW |
3682 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
3683 | ||
a90ef4bf | 3684 | @endif bfd |
9b980aa1 | 3685 | |
56a8fe78 | 3686 | # Other targets (info, dvi, pdf, etc.) |
2a4cbe27 | 3687 | |
a90ef4bf JM |
3688 | .PHONY: maybe-info-bfd info-bfd |
3689 | maybe-info-bfd: | |
3690 | @if bfd | |
3691 | maybe-info-bfd: info-bfd | |
4fa63067 | 3692 | |
a90ef4bf JM |
3693 | info-bfd: \ |
3694 | configure-bfd | |
3695 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
3696 | r=`${PWD_COMMAND}`; export r; \ |
3697 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3698 | $(HOST_EXPORTS) \ |
b813574b | 3699 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3700 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3701 | done; \ | |
22121df0 | 3702 | echo "Doing info in bfd"; \ |
a90ef4bf | 3703 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
3704 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3705 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3706 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 3707 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 3708 | info) \ |
2a4cbe27 NN |
3709 | || exit 1 |
3710 | ||
a90ef4bf | 3711 | @endif bfd |
2a4cbe27 | 3712 | |
a90ef4bf JM |
3713 | .PHONY: maybe-dvi-bfd dvi-bfd |
3714 | maybe-dvi-bfd: | |
3715 | @if bfd | |
3716 | maybe-dvi-bfd: dvi-bfd | |
2a4cbe27 | 3717 | |
a90ef4bf JM |
3718 | dvi-bfd: \ |
3719 | configure-bfd | |
3720 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
3721 | r=`${PWD_COMMAND}`; export r; \ |
3722 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3723 | $(HOST_EXPORTS) \ |
b813574b | 3724 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3725 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3726 | done; \ | |
22121df0 | 3727 | echo "Doing dvi in bfd"; \ |
a90ef4bf | 3728 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
3729 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3730 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3731 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 3732 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 3733 | dvi) \ |
2a4cbe27 NN |
3734 | || exit 1 |
3735 | ||
a90ef4bf | 3736 | @endif bfd |
2a4cbe27 | 3737 | |
a90ef4bf JM |
3738 | .PHONY: maybe-pdf-bfd pdf-bfd |
3739 | maybe-pdf-bfd: | |
3740 | @if bfd | |
3741 | maybe-pdf-bfd: pdf-bfd | |
56a8fe78 | 3742 | |
a90ef4bf JM |
3743 | pdf-bfd: \ |
3744 | configure-bfd | |
3745 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
56a8fe78 DD |
3746 | r=`${PWD_COMMAND}`; export r; \ |
3747 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
3748 | $(HOST_EXPORTS) \ | |
3749 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
3750 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
3751 | done; \ | |
22121df0 | 3752 | echo "Doing pdf in bfd"; \ |
a90ef4bf | 3753 | (cd $(HOST_SUBDIR)/bfd && \ |
56a8fe78 DD |
3754 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3755 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3756 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 3757 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
3758 | pdf) \ |
3759 | || exit 1 | |
3760 | ||
a90ef4bf | 3761 | @endif bfd |
56a8fe78 | 3762 | |
a90ef4bf JM |
3763 | .PHONY: maybe-html-bfd html-bfd |
3764 | maybe-html-bfd: | |
3765 | @if bfd | |
3766 | maybe-html-bfd: html-bfd | |
6d389afc | 3767 | |
a90ef4bf JM |
3768 | html-bfd: \ |
3769 | configure-bfd | |
3770 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
6d389afc MS |
3771 | r=`${PWD_COMMAND}`; export r; \ |
3772 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
3773 | $(HOST_EXPORTS) \ |
3774 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
3775 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
3776 | done; \ | |
22121df0 | 3777 | echo "Doing html in bfd"; \ |
a90ef4bf | 3778 | (cd $(HOST_SUBDIR)/bfd && \ |
6d389afc MS |
3779 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3780 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3781 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 3782 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
3783 | html) \ |
3784 | || exit 1 | |
3785 | ||
a90ef4bf | 3786 | @endif bfd |
6d389afc | 3787 | |
a90ef4bf JM |
3788 | .PHONY: maybe-TAGS-bfd TAGS-bfd |
3789 | maybe-TAGS-bfd: | |
3790 | @if bfd | |
3791 | maybe-TAGS-bfd: TAGS-bfd | |
2a4cbe27 | 3792 | |
a90ef4bf JM |
3793 | TAGS-bfd: \ |
3794 | configure-bfd | |
3795 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
3796 | r=`${PWD_COMMAND}`; export r; \ |
3797 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3798 | $(HOST_EXPORTS) \ |
b813574b | 3799 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3800 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3801 | done; \ | |
22121df0 | 3802 | echo "Doing TAGS in bfd"; \ |
a90ef4bf | 3803 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
3804 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3805 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3806 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 3807 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 3808 | TAGS) \ |
2a4cbe27 NN |
3809 | || exit 1 |
3810 | ||
a90ef4bf | 3811 | @endif bfd |
2a4cbe27 | 3812 | |
a90ef4bf JM |
3813 | .PHONY: maybe-install-info-bfd install-info-bfd |
3814 | maybe-install-info-bfd: | |
3815 | @if bfd | |
3816 | maybe-install-info-bfd: install-info-bfd | |
2a4cbe27 | 3817 | |
a90ef4bf JM |
3818 | install-info-bfd: \ |
3819 | configure-bfd \ | |
3820 | info-bfd | |
3821 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
3822 | r=`${PWD_COMMAND}`; export r; \ |
3823 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3824 | $(HOST_EXPORTS) \ |
b813574b | 3825 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3826 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3827 | done; \ | |
22121df0 | 3828 | echo "Doing install-info in bfd"; \ |
a90ef4bf | 3829 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
3830 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3831 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3832 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 3833 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 3834 | install-info) \ |
2a4cbe27 NN |
3835 | || exit 1 |
3836 | ||
a90ef4bf | 3837 | @endif bfd |
2a4cbe27 | 3838 | |
a90ef4bf JM |
3839 | .PHONY: maybe-install-pdf-bfd install-pdf-bfd |
3840 | maybe-install-pdf-bfd: | |
3841 | @if bfd | |
3842 | maybe-install-pdf-bfd: install-pdf-bfd | |
a3ca38d2 | 3843 | |
a90ef4bf JM |
3844 | install-pdf-bfd: \ |
3845 | configure-bfd \ | |
3846 | pdf-bfd | |
3847 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
3848 | r=`${PWD_COMMAND}`; export r; \ |
3849 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
3850 | $(HOST_EXPORTS) \ | |
3851 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
3852 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
3853 | done; \ | |
22121df0 | 3854 | echo "Doing install-pdf in bfd"; \ |
a90ef4bf | 3855 | (cd $(HOST_SUBDIR)/bfd && \ |
a3ca38d2 DD |
3856 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3857 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3858 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 3859 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
3860 | install-pdf) \ |
3861 | || exit 1 | |
3862 | ||
a90ef4bf | 3863 | @endif bfd |
a3ca38d2 | 3864 | |
a90ef4bf JM |
3865 | .PHONY: maybe-install-html-bfd install-html-bfd |
3866 | maybe-install-html-bfd: | |
3867 | @if bfd | |
3868 | maybe-install-html-bfd: install-html-bfd | |
108a6f8e | 3869 | |
a90ef4bf JM |
3870 | install-html-bfd: \ |
3871 | configure-bfd \ | |
3872 | html-bfd | |
3873 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
108a6f8e CD |
3874 | r=`${PWD_COMMAND}`; export r; \ |
3875 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
3876 | $(HOST_EXPORTS) \ | |
3877 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
3878 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
3879 | done; \ | |
22121df0 | 3880 | echo "Doing install-html in bfd"; \ |
a90ef4bf | 3881 | (cd $(HOST_SUBDIR)/bfd && \ |
108a6f8e CD |
3882 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3883 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3884 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 3885 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
3886 | install-html) \ |
3887 | || exit 1 | |
3888 | ||
a90ef4bf | 3889 | @endif bfd |
108a6f8e | 3890 | |
a90ef4bf JM |
3891 | .PHONY: maybe-installcheck-bfd installcheck-bfd |
3892 | maybe-installcheck-bfd: | |
3893 | @if bfd | |
3894 | maybe-installcheck-bfd: installcheck-bfd | |
2a4cbe27 | 3895 | |
a90ef4bf JM |
3896 | installcheck-bfd: \ |
3897 | configure-bfd | |
3898 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
3899 | r=`${PWD_COMMAND}`; export r; \ |
3900 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3901 | $(HOST_EXPORTS) \ |
b813574b | 3902 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3903 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3904 | done; \ | |
22121df0 | 3905 | echo "Doing installcheck in bfd"; \ |
a90ef4bf | 3906 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
3907 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3908 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3909 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 3910 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 3911 | installcheck) \ |
2a4cbe27 NN |
3912 | || exit 1 |
3913 | ||
a90ef4bf | 3914 | @endif bfd |
2a4cbe27 | 3915 | |
a90ef4bf JM |
3916 | .PHONY: maybe-mostlyclean-bfd mostlyclean-bfd |
3917 | maybe-mostlyclean-bfd: | |
3918 | @if bfd | |
3919 | maybe-mostlyclean-bfd: mostlyclean-bfd | |
2a4cbe27 | 3920 | |
a90ef4bf JM |
3921 | mostlyclean-bfd: |
3922 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
3923 | r=`${PWD_COMMAND}`; export r; \ |
3924 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3925 | $(HOST_EXPORTS) \ |
b813574b | 3926 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3927 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3928 | done; \ | |
22121df0 | 3929 | echo "Doing mostlyclean in bfd"; \ |
a90ef4bf | 3930 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
3931 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3932 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3933 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 3934 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 3935 | mostlyclean) \ |
2a4cbe27 NN |
3936 | || exit 1 |
3937 | ||
a90ef4bf | 3938 | @endif bfd |
2a4cbe27 | 3939 | |
a90ef4bf JM |
3940 | .PHONY: maybe-clean-bfd clean-bfd |
3941 | maybe-clean-bfd: | |
3942 | @if bfd | |
3943 | maybe-clean-bfd: clean-bfd | |
2a4cbe27 | 3944 | |
a90ef4bf JM |
3945 | clean-bfd: |
3946 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
3947 | r=`${PWD_COMMAND}`; export r; \ |
3948 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3949 | $(HOST_EXPORTS) \ |
b813574b | 3950 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3951 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3952 | done; \ | |
22121df0 | 3953 | echo "Doing clean in bfd"; \ |
a90ef4bf | 3954 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
3955 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3956 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3957 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 3958 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 3959 | clean) \ |
2a4cbe27 NN |
3960 | || exit 1 |
3961 | ||
a90ef4bf | 3962 | @endif bfd |
2a4cbe27 | 3963 | |
a90ef4bf JM |
3964 | .PHONY: maybe-distclean-bfd distclean-bfd |
3965 | maybe-distclean-bfd: | |
3966 | @if bfd | |
3967 | maybe-distclean-bfd: distclean-bfd | |
2a4cbe27 | 3968 | |
a90ef4bf JM |
3969 | distclean-bfd: |
3970 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
3971 | r=`${PWD_COMMAND}`; export r; \ |
3972 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3973 | $(HOST_EXPORTS) \ |
b813574b | 3974 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3975 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3976 | done; \ | |
22121df0 | 3977 | echo "Doing distclean in bfd"; \ |
a90ef4bf | 3978 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
3979 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3980 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3981 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 3982 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 3983 | distclean) \ |
2a4cbe27 NN |
3984 | || exit 1 |
3985 | ||
a90ef4bf | 3986 | @endif bfd |
2a4cbe27 | 3987 | |
a90ef4bf JM |
3988 | .PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd |
3989 | maybe-maintainer-clean-bfd: | |
3990 | @if bfd | |
3991 | maybe-maintainer-clean-bfd: maintainer-clean-bfd | |
2a4cbe27 | 3992 | |
a90ef4bf JM |
3993 | maintainer-clean-bfd: |
3994 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
3995 | r=`${PWD_COMMAND}`; export r; \ |
3996 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3997 | $(HOST_EXPORTS) \ |
b813574b | 3998 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3999 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4000 | done; \ | |
22121df0 | 4001 | echo "Doing maintainer-clean in bfd"; \ |
a90ef4bf | 4002 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
4003 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4004 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4005 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 4006 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 4007 | maintainer-clean) \ |
2a4cbe27 NN |
4008 | || exit 1 |
4009 | ||
a90ef4bf | 4010 | @endif bfd |
2a4cbe27 | 4011 | |
2a4cbe27 | 4012 | |
a7254363 | 4013 | |
a90ef4bf JM |
4014 | .PHONY: configure-opcodes maybe-configure-opcodes |
4015 | maybe-configure-opcodes: | |
4f0ef2d8 | 4016 | @if gcc-bootstrap |
a90ef4bf | 4017 | configure-opcodes: stage_current |
4f0ef2d8 | 4018 | @endif gcc-bootstrap |
a90ef4bf JM |
4019 | @if opcodes |
4020 | maybe-configure-opcodes: configure-opcodes | |
4021 | configure-opcodes: | |
c52c6897 | 4022 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 4023 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 4024 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ |
22121df0 | 4025 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \ |
1f53ca9a | 4026 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
4027 | echo Configuring in $(HOST_SUBDIR)/opcodes; \ |
4028 | cd "$(HOST_SUBDIR)/opcodes" || exit 1; \ | |
4fa63067 | 4029 | case $(srcdir) in \ |
b00612cc | 4030 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 4031 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ |
b00612cc | 4032 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 4033 | esac; \ |
1b6c0831 L |
4034 | module_srcdir=opcodes; \ |
4035 | $(SHELL) \ | |
4036 | $$s/$$module_srcdir/configure \ | |
4037 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 4038 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 4039 | --target=${target_alias} \ |
2a4cbe27 | 4040 | || exit 1 |
a90ef4bf | 4041 | @endif opcodes |
a7254363 | 4042 | |
d545f33b PB |
4043 | |
4044 | ||
a90ef4bf JM |
4045 | .PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes |
4046 | maybe-configure-stage1-opcodes: | |
4047 | @if opcodes-bootstrap | |
4048 | maybe-configure-stage1-opcodes: configure-stage1-opcodes | |
4049 | configure-stage1-opcodes: | |
4050 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
4051 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes | |
4fa63067 NN |
4052 | @r=`${PWD_COMMAND}`; export r; \ |
4053 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
4054 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
4055 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ | |
4056 | $(HOST_EXPORTS) \ | |
4057 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ | |
4058 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
4059 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
4060 | echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes; \ |
4061 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \ | |
a90ef4bf JM |
4062 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
4063 | case $(srcdir) in \ | |
4064 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4065 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
4066 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4067 | esac; \ | |
1b6c0831 L |
4068 | module_srcdir=opcodes; \ |
4069 | $(SHELL) $$s/$$module_srcdir/configure \ | |
4070 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 4071 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
4072 | --target=${target_alias} \ |
4073 | \ | |
a90ef4bf JM |
4074 | $(STAGE1_CONFIGURE_FLAGS) |
4075 | @endif opcodes-bootstrap | |
2a4cbe27 | 4076 | |
a90ef4bf JM |
4077 | .PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes |
4078 | maybe-configure-stage2-opcodes: | |
4079 | @if opcodes-bootstrap | |
4080 | maybe-configure-stage2-opcodes: configure-stage2-opcodes | |
4081 | configure-stage2-opcodes: | |
4082 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
4083 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes | |
4fa63067 | 4084 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 4085 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
4086 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
4087 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ | |
378fce5b | 4088 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
4089 | $(POSTSTAGE1_HOST_EXPORTS) \ |
4090 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
4091 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
4092 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
4093 | echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes; \ |
4094 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \ | |
a90ef4bf JM |
4095 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
4096 | case $(srcdir) in \ | |
4097 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4098 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
4099 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4100 | esac; \ | |
1b6c0831 L |
4101 | module_srcdir=opcodes; \ |
4102 | $(SHELL) $$s/$$module_srcdir/configure \ | |
4103 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 4104 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 4105 | --target=${target_alias} \ |
22121df0 | 4106 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
4107 | $(STAGE2_CONFIGURE_FLAGS) |
4108 | @endif opcodes-bootstrap | |
2a4cbe27 | 4109 | |
a90ef4bf JM |
4110 | .PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes |
4111 | maybe-configure-stage3-opcodes: | |
4112 | @if opcodes-bootstrap | |
4113 | maybe-configure-stage3-opcodes: configure-stage3-opcodes | |
4114 | configure-stage3-opcodes: | |
4115 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
4116 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes | |
4fa63067 NN |
4117 | @r=`${PWD_COMMAND}`; export r; \ |
4118 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
4119 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
4120 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ | |
378fce5b | 4121 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
4122 | $(POSTSTAGE1_HOST_EXPORTS) \ |
4123 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
4124 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
4125 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
4126 | echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes; \ |
4127 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \ | |
a90ef4bf JM |
4128 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
4129 | case $(srcdir) in \ | |
4130 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4131 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
4132 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4133 | esac; \ | |
1b6c0831 L |
4134 | module_srcdir=opcodes; \ |
4135 | $(SHELL) $$s/$$module_srcdir/configure \ | |
4136 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 4137 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 4138 | --target=${target_alias} \ |
22121df0 | 4139 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
4140 | $(STAGE3_CONFIGURE_FLAGS) |
4141 | @endif opcodes-bootstrap | |
9b980aa1 | 4142 | |
a90ef4bf JM |
4143 | .PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes |
4144 | maybe-configure-stage4-opcodes: | |
4145 | @if opcodes-bootstrap | |
4146 | maybe-configure-stage4-opcodes: configure-stage4-opcodes | |
4147 | configure-stage4-opcodes: | |
4148 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
4149 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes | |
9b980aa1 RW |
4150 | @r=`${PWD_COMMAND}`; export r; \ |
4151 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
4152 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
4153 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ | |
9b980aa1 | 4154 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
4155 | $(POSTSTAGE1_HOST_EXPORTS) \ |
4156 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
4157 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
4158 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
4159 | echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes; \ |
4160 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \ | |
a90ef4bf JM |
4161 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
4162 | case $(srcdir) in \ | |
4163 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4164 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
4165 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4166 | esac; \ | |
1b6c0831 L |
4167 | module_srcdir=opcodes; \ |
4168 | $(SHELL) $$s/$$module_srcdir/configure \ | |
4169 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 4170 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 4171 | --target=${target_alias} \ |
22121df0 | 4172 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
4173 | $(STAGE4_CONFIGURE_FLAGS) |
4174 | @endif opcodes-bootstrap | |
4fa63067 | 4175 | |
a90ef4bf JM |
4176 | .PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes |
4177 | maybe-configure-stageprofile-opcodes: | |
4178 | @if opcodes-bootstrap | |
4179 | maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes | |
4180 | configure-stageprofile-opcodes: | |
4181 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
4182 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes | |
4183 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 4184 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
4185 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
4186 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ | |
378fce5b | 4187 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
4188 | $(POSTSTAGE1_HOST_EXPORTS) \ |
4189 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
4190 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
4191 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
4192 | echo Configuring stage profile in $(HOST_SUBDIR)/opcodes; \ |
4193 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \ | |
a90ef4bf JM |
4194 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
4195 | case $(srcdir) in \ | |
4196 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4197 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
4198 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4199 | esac; \ | |
1b6c0831 L |
4200 | module_srcdir=opcodes; \ |
4201 | $(SHELL) $$s/$$module_srcdir/configure \ | |
4202 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 4203 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 4204 | --target=${target_alias} \ |
22121df0 | 4205 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
4206 | $(STAGEprofile_CONFIGURE_FLAGS) |
4207 | @endif opcodes-bootstrap | |
4208 | ||
4209 | .PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes | |
4210 | maybe-configure-stagefeedback-opcodes: | |
4211 | @if opcodes-bootstrap | |
4212 | maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes | |
4213 | configure-stagefeedback-opcodes: | |
4214 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
4215 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes | |
4216 | @r=`${PWD_COMMAND}`; export r; \ | |
4217 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4218 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
4219 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ | |
4220 | $(HOST_EXPORTS) \ | |
4221 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4222 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
4223 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
4224 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
4225 | echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes; \ |
4226 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \ | |
a90ef4bf JM |
4227 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
4228 | case $(srcdir) in \ | |
4229 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4230 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
4231 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4232 | esac; \ | |
1b6c0831 L |
4233 | module_srcdir=opcodes; \ |
4234 | $(SHELL) $$s/$$module_srcdir/configure \ | |
4235 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 4236 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 4237 | --target=${target_alias} \ |
22121df0 | 4238 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
4239 | $(STAGEfeedback_CONFIGURE_FLAGS) |
4240 | @endif opcodes-bootstrap | |
4241 | ||
4242 | ||
4243 | ||
4244 | ||
4245 | ||
4246 | .PHONY: all-opcodes maybe-all-opcodes | |
4247 | maybe-all-opcodes: | |
4248 | @if gcc-bootstrap | |
4249 | all-opcodes: stage_current | |
4250 | @endif gcc-bootstrap | |
4251 | @if opcodes | |
4252 | TARGET-opcodes=all | |
4253 | maybe-all-opcodes: all-opcodes | |
4254 | all-opcodes: configure-opcodes | |
4255 | @r=`${PWD_COMMAND}`; export r; \ | |
4256 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4257 | $(HOST_EXPORTS) \ | |
4258 | (cd $(HOST_SUBDIR)/opcodes && \ | |
b3676d82 | 4259 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
4260 | $(TARGET-opcodes)) |
4261 | @endif opcodes | |
4262 | ||
4263 | ||
4264 | ||
4265 | .PHONY: all-stage1-opcodes maybe-all-stage1-opcodes | |
4266 | .PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes | |
4267 | maybe-all-stage1-opcodes: | |
4268 | maybe-clean-stage1-opcodes: | |
4269 | @if opcodes-bootstrap | |
4270 | maybe-all-stage1-opcodes: all-stage1-opcodes | |
4271 | all-stage1: all-stage1-opcodes | |
4272 | TARGET-stage1-opcodes = $(TARGET-opcodes) | |
4273 | all-stage1-opcodes: configure-stage1-opcodes | |
4274 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
4275 | @r=`${PWD_COMMAND}`; export r; \ | |
4276 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4277 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
4278 | $(HOST_EXPORTS) \ | |
4279 | cd $(HOST_SUBDIR)/opcodes && \ | |
05a13254 | 4280 | \ |
a90ef4bf JM |
4281 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
4282 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
4283 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
4284 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
4285 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
4286 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
4287 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
4288 | $(EXTRA_HOST_FLAGS) \ |
4289 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 4290 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf JM |
4291 | $(TARGET-stage1-opcodes) |
4292 | ||
4293 | maybe-clean-stage1-opcodes: clean-stage1-opcodes | |
4294 | clean-stage1: clean-stage1-opcodes | |
4295 | clean-stage1-opcodes: | |
4296 | @if [ $(current_stage) = stage1 ]; then \ | |
4297 | [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \ | |
4298 | else \ | |
4299 | [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \ | |
4300 | $(MAKE) stage1-start; \ | |
4301 | fi; \ | |
4302 | cd $(HOST_SUBDIR)/opcodes && \ | |
4303 | $(MAKE) $(EXTRA_HOST_FLAGS) \ | |
b3676d82 | 4304 | $(STAGE1_FLAGS_TO_PASS) clean |
a90ef4bf JM |
4305 | @endif opcodes-bootstrap |
4306 | ||
4307 | ||
4308 | .PHONY: all-stage2-opcodes maybe-all-stage2-opcodes | |
4309 | .PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes | |
4310 | maybe-all-stage2-opcodes: | |
4311 | maybe-clean-stage2-opcodes: | |
4312 | @if opcodes-bootstrap | |
4313 | maybe-all-stage2-opcodes: all-stage2-opcodes | |
4314 | all-stage2: all-stage2-opcodes | |
4315 | TARGET-stage2-opcodes = $(TARGET-opcodes) | |
4316 | all-stage2-opcodes: configure-stage2-opcodes | |
4317 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
4318 | @r=`${PWD_COMMAND}`; export r; \ | |
4319 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4320 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
4321 | $(HOST_EXPORTS) \ | |
4322 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4323 | cd $(HOST_SUBDIR)/opcodes && \ | |
05a13254 | 4324 | \ |
a90ef4bf JM |
4325 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
4326 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
4327 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
4328 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
4329 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
4330 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
4331 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
4332 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 4333 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf JM |
4334 | $(TARGET-stage2-opcodes) |
4335 | ||
4336 | maybe-clean-stage2-opcodes: clean-stage2-opcodes | |
4337 | clean-stage2: clean-stage2-opcodes | |
4338 | clean-stage2-opcodes: | |
4339 | @if [ $(current_stage) = stage2 ]; then \ | |
4340 | [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \ | |
4341 | else \ | |
4342 | [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \ | |
4343 | $(MAKE) stage2-start; \ | |
4344 | fi; \ | |
4345 | cd $(HOST_SUBDIR)/opcodes && \ | |
b3676d82 | 4346 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf JM |
4347 | @endif opcodes-bootstrap |
4348 | ||
4349 | ||
4350 | .PHONY: all-stage3-opcodes maybe-all-stage3-opcodes | |
4351 | .PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes | |
4352 | maybe-all-stage3-opcodes: | |
4353 | maybe-clean-stage3-opcodes: | |
4354 | @if opcodes-bootstrap | |
4355 | maybe-all-stage3-opcodes: all-stage3-opcodes | |
4356 | all-stage3: all-stage3-opcodes | |
4357 | TARGET-stage3-opcodes = $(TARGET-opcodes) | |
4358 | all-stage3-opcodes: configure-stage3-opcodes | |
4359 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
4360 | @r=`${PWD_COMMAND}`; export r; \ | |
4361 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4362 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
4363 | $(HOST_EXPORTS) \ | |
4364 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4365 | cd $(HOST_SUBDIR)/opcodes && \ | |
05a13254 | 4366 | \ |
a90ef4bf JM |
4367 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
4368 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
4369 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
4370 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
4371 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
4372 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
4373 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
4374 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 4375 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf JM |
4376 | $(TARGET-stage3-opcodes) |
4377 | ||
4378 | maybe-clean-stage3-opcodes: clean-stage3-opcodes | |
4379 | clean-stage3: clean-stage3-opcodes | |
4380 | clean-stage3-opcodes: | |
4381 | @if [ $(current_stage) = stage3 ]; then \ | |
4382 | [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \ | |
4383 | else \ | |
4384 | [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \ | |
4385 | $(MAKE) stage3-start; \ | |
4386 | fi; \ | |
4387 | cd $(HOST_SUBDIR)/opcodes && \ | |
b3676d82 | 4388 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf JM |
4389 | @endif opcodes-bootstrap |
4390 | ||
4391 | ||
4392 | .PHONY: all-stage4-opcodes maybe-all-stage4-opcodes | |
4393 | .PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes | |
4394 | maybe-all-stage4-opcodes: | |
4395 | maybe-clean-stage4-opcodes: | |
4396 | @if opcodes-bootstrap | |
4397 | maybe-all-stage4-opcodes: all-stage4-opcodes | |
4398 | all-stage4: all-stage4-opcodes | |
4399 | TARGET-stage4-opcodes = $(TARGET-opcodes) | |
4400 | all-stage4-opcodes: configure-stage4-opcodes | |
4401 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
4402 | @r=`${PWD_COMMAND}`; export r; \ | |
4403 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4404 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
4405 | $(HOST_EXPORTS) \ | |
4406 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4407 | cd $(HOST_SUBDIR)/opcodes && \ | |
05a13254 | 4408 | \ |
a90ef4bf JM |
4409 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
4410 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
4411 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
4412 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
4413 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
4414 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
4415 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
4416 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 4417 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf JM |
4418 | $(TARGET-stage4-opcodes) |
4419 | ||
4420 | maybe-clean-stage4-opcodes: clean-stage4-opcodes | |
4421 | clean-stage4: clean-stage4-opcodes | |
4422 | clean-stage4-opcodes: | |
4423 | @if [ $(current_stage) = stage4 ]; then \ | |
4424 | [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \ | |
4425 | else \ | |
4426 | [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \ | |
4427 | $(MAKE) stage4-start; \ | |
4428 | fi; \ | |
4429 | cd $(HOST_SUBDIR)/opcodes && \ | |
b3676d82 | 4430 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf JM |
4431 | @endif opcodes-bootstrap |
4432 | ||
4433 | ||
4434 | .PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes | |
4435 | .PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes | |
4436 | maybe-all-stageprofile-opcodes: | |
4437 | maybe-clean-stageprofile-opcodes: | |
4438 | @if opcodes-bootstrap | |
4439 | maybe-all-stageprofile-opcodes: all-stageprofile-opcodes | |
4440 | all-stageprofile: all-stageprofile-opcodes | |
4441 | TARGET-stageprofile-opcodes = $(TARGET-opcodes) | |
4442 | all-stageprofile-opcodes: configure-stageprofile-opcodes | |
4443 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
4444 | @r=`${PWD_COMMAND}`; export r; \ | |
4445 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4446 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
4447 | $(HOST_EXPORTS) \ | |
4448 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4449 | cd $(HOST_SUBDIR)/opcodes && \ | |
05a13254 | 4450 | \ |
a90ef4bf JM |
4451 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
4452 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
4453 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
4454 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
4455 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
4456 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
4457 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
4458 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 4459 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf JM |
4460 | $(TARGET-stageprofile-opcodes) |
4461 | ||
4462 | maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes | |
4463 | clean-stageprofile: clean-stageprofile-opcodes | |
4464 | clean-stageprofile-opcodes: | |
4465 | @if [ $(current_stage) = stageprofile ]; then \ | |
4466 | [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \ | |
4467 | else \ | |
4468 | [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \ | |
4469 | $(MAKE) stageprofile-start; \ | |
4470 | fi; \ | |
4471 | cd $(HOST_SUBDIR)/opcodes && \ | |
b3676d82 | 4472 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf JM |
4473 | @endif opcodes-bootstrap |
4474 | ||
4475 | ||
4476 | .PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes | |
4477 | .PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes | |
4478 | maybe-all-stagefeedback-opcodes: | |
4479 | maybe-clean-stagefeedback-opcodes: | |
4480 | @if opcodes-bootstrap | |
4481 | maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes | |
4482 | all-stagefeedback: all-stagefeedback-opcodes | |
4483 | TARGET-stagefeedback-opcodes = $(TARGET-opcodes) | |
4484 | all-stagefeedback-opcodes: configure-stagefeedback-opcodes | |
4485 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
4486 | @r=`${PWD_COMMAND}`; export r; \ | |
4487 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4488 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
4489 | $(HOST_EXPORTS) \ | |
4490 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4491 | cd $(HOST_SUBDIR)/opcodes && \ | |
05a13254 | 4492 | \ |
a90ef4bf JM |
4493 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
4494 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
4495 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
4496 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
4497 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
4498 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
4499 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
4500 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 4501 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf JM |
4502 | $(TARGET-stagefeedback-opcodes) |
4503 | ||
4504 | maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes | |
4505 | clean-stagefeedback: clean-stagefeedback-opcodes | |
4506 | clean-stagefeedback-opcodes: | |
4507 | @if [ $(current_stage) = stagefeedback ]; then \ | |
4508 | [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \ | |
4509 | else \ | |
4510 | [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \ | |
4511 | $(MAKE) stagefeedback-start; \ | |
4512 | fi; \ | |
4513 | cd $(HOST_SUBDIR)/opcodes && \ | |
b3676d82 | 4514 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf JM |
4515 | @endif opcodes-bootstrap |
4516 | ||
4517 | ||
4518 | ||
4519 | ||
4520 | ||
4521 | .PHONY: check-opcodes maybe-check-opcodes | |
4522 | maybe-check-opcodes: | |
4523 | @if opcodes | |
4524 | maybe-check-opcodes: check-opcodes | |
4525 | ||
4526 | check-opcodes: | |
0aed8855 | 4527 | @: $(MAKE); $(unstage) |
a90ef4bf | 4528 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 4529 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
f91ca6bc | 4530 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 4531 | (cd $(HOST_SUBDIR)/opcodes && \ |
f91ca6bc | 4532 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
2a4cbe27 | 4533 | |
a90ef4bf | 4534 | @endif opcodes |
2a4cbe27 | 4535 | |
a90ef4bf JM |
4536 | .PHONY: install-opcodes maybe-install-opcodes |
4537 | maybe-install-opcodes: | |
4538 | @if opcodes | |
4539 | maybe-install-opcodes: install-opcodes | |
56a8fe78 | 4540 | |
a90ef4bf | 4541 | install-opcodes: installdirs |
56a8fe78 | 4542 | @: $(MAKE); $(unstage) |
a90ef4bf | 4543 | @r=`${PWD_COMMAND}`; export r; \ |
56a8fe78 DD |
4544 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
4545 | $(HOST_EXPORTS) \ | |
a90ef4bf JM |
4546 | (cd $(HOST_SUBDIR)/opcodes && \ |
4547 | $(MAKE) $(FLAGS_TO_PASS) install) | |
56a8fe78 | 4548 | |
a90ef4bf | 4549 | @endif opcodes |
56a8fe78 | 4550 | |
a90ef4bf JM |
4551 | .PHONY: install-strip-opcodes maybe-install-strip-opcodes |
4552 | maybe-install-strip-opcodes: | |
4553 | @if opcodes | |
4554 | maybe-install-strip-opcodes: install-strip-opcodes | |
6d389afc | 4555 | |
a90ef4bf | 4556 | install-strip-opcodes: installdirs |
0aed8855 | 4557 | @: $(MAKE); $(unstage) |
a90ef4bf JM |
4558 | @r=`${PWD_COMMAND}`; export r; \ |
4559 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4560 | $(HOST_EXPORTS) \ | |
4561 | (cd $(HOST_SUBDIR)/opcodes && \ | |
4562 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
4563 | ||
4564 | @endif opcodes | |
4565 | ||
4566 | # Other targets (info, dvi, pdf, etc.) | |
4567 | ||
4568 | .PHONY: maybe-info-opcodes info-opcodes | |
4569 | maybe-info-opcodes: | |
4570 | @if opcodes | |
4571 | maybe-info-opcodes: info-opcodes | |
4572 | ||
4573 | info-opcodes: \ | |
4574 | configure-opcodes | |
4575 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
6d389afc MS |
4576 | r=`${PWD_COMMAND}`; export r; \ |
4577 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
4578 | $(HOST_EXPORTS) \ |
4579 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
4580 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
4581 | done; \ | |
22121df0 | 4582 | echo "Doing info in opcodes"; \ |
a90ef4bf | 4583 | (cd $(HOST_SUBDIR)/opcodes && \ |
6d389afc MS |
4584 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4585 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4586 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 4587 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 4588 | info) \ |
6d389afc MS |
4589 | || exit 1 |
4590 | ||
a90ef4bf | 4591 | @endif opcodes |
6d389afc | 4592 | |
a90ef4bf JM |
4593 | .PHONY: maybe-dvi-opcodes dvi-opcodes |
4594 | maybe-dvi-opcodes: | |
4595 | @if opcodes | |
4596 | maybe-dvi-opcodes: dvi-opcodes | |
2a4cbe27 | 4597 | |
a90ef4bf JM |
4598 | dvi-opcodes: \ |
4599 | configure-opcodes | |
4600 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4601 | r=`${PWD_COMMAND}`; export r; \ |
4602 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4603 | $(HOST_EXPORTS) \ |
b813574b | 4604 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4605 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4606 | done; \ | |
22121df0 | 4607 | echo "Doing dvi in opcodes"; \ |
a90ef4bf | 4608 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4609 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4610 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4611 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 4612 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 4613 | dvi) \ |
2a4cbe27 NN |
4614 | || exit 1 |
4615 | ||
a90ef4bf | 4616 | @endif opcodes |
2a4cbe27 | 4617 | |
a90ef4bf JM |
4618 | .PHONY: maybe-pdf-opcodes pdf-opcodes |
4619 | maybe-pdf-opcodes: | |
4620 | @if opcodes | |
4621 | maybe-pdf-opcodes: pdf-opcodes | |
2a4cbe27 | 4622 | |
a90ef4bf JM |
4623 | pdf-opcodes: \ |
4624 | configure-opcodes | |
4625 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4626 | r=`${PWD_COMMAND}`; export r; \ |
4627 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4628 | $(HOST_EXPORTS) \ |
b813574b | 4629 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4630 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4631 | done; \ | |
22121df0 | 4632 | echo "Doing pdf in opcodes"; \ |
a90ef4bf | 4633 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4634 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4635 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4636 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 4637 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 4638 | pdf) \ |
2a4cbe27 NN |
4639 | || exit 1 |
4640 | ||
a90ef4bf | 4641 | @endif opcodes |
2a4cbe27 | 4642 | |
a90ef4bf JM |
4643 | .PHONY: maybe-html-opcodes html-opcodes |
4644 | maybe-html-opcodes: | |
4645 | @if opcodes | |
4646 | maybe-html-opcodes: html-opcodes | |
a3ca38d2 | 4647 | |
a90ef4bf JM |
4648 | html-opcodes: \ |
4649 | configure-opcodes | |
4650 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
4651 | r=`${PWD_COMMAND}`; export r; \ |
4652 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4653 | $(HOST_EXPORTS) \ | |
4654 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
4655 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
4656 | done; \ | |
22121df0 | 4657 | echo "Doing html in opcodes"; \ |
a90ef4bf | 4658 | (cd $(HOST_SUBDIR)/opcodes && \ |
a3ca38d2 DD |
4659 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4660 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4661 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 4662 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 4663 | html) \ |
a3ca38d2 DD |
4664 | || exit 1 |
4665 | ||
a90ef4bf | 4666 | @endif opcodes |
a3ca38d2 | 4667 | |
a90ef4bf JM |
4668 | .PHONY: maybe-TAGS-opcodes TAGS-opcodes |
4669 | maybe-TAGS-opcodes: | |
4670 | @if opcodes | |
4671 | maybe-TAGS-opcodes: TAGS-opcodes | |
108a6f8e | 4672 | |
a90ef4bf JM |
4673 | TAGS-opcodes: \ |
4674 | configure-opcodes | |
4675 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
108a6f8e CD |
4676 | r=`${PWD_COMMAND}`; export r; \ |
4677 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4678 | $(HOST_EXPORTS) \ | |
4679 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
4680 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
4681 | done; \ | |
22121df0 | 4682 | echo "Doing TAGS in opcodes"; \ |
a90ef4bf | 4683 | (cd $(HOST_SUBDIR)/opcodes && \ |
108a6f8e CD |
4684 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4685 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4686 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 4687 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 4688 | TAGS) \ |
108a6f8e CD |
4689 | || exit 1 |
4690 | ||
a90ef4bf | 4691 | @endif opcodes |
108a6f8e | 4692 | |
a90ef4bf JM |
4693 | .PHONY: maybe-install-info-opcodes install-info-opcodes |
4694 | maybe-install-info-opcodes: | |
4695 | @if opcodes | |
4696 | maybe-install-info-opcodes: install-info-opcodes | |
2a4cbe27 | 4697 | |
a90ef4bf JM |
4698 | install-info-opcodes: \ |
4699 | configure-opcodes \ | |
4700 | info-opcodes | |
4701 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4702 | r=`${PWD_COMMAND}`; export r; \ |
4703 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4704 | $(HOST_EXPORTS) \ |
b813574b | 4705 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4706 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4707 | done; \ | |
22121df0 | 4708 | echo "Doing install-info in opcodes"; \ |
a90ef4bf | 4709 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4710 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4711 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4712 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 4713 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 4714 | install-info) \ |
2a4cbe27 NN |
4715 | || exit 1 |
4716 | ||
a90ef4bf | 4717 | @endif opcodes |
2a4cbe27 | 4718 | |
a90ef4bf JM |
4719 | .PHONY: maybe-install-pdf-opcodes install-pdf-opcodes |
4720 | maybe-install-pdf-opcodes: | |
4721 | @if opcodes | |
4722 | maybe-install-pdf-opcodes: install-pdf-opcodes | |
2a4cbe27 | 4723 | |
a90ef4bf JM |
4724 | install-pdf-opcodes: \ |
4725 | configure-opcodes \ | |
4726 | pdf-opcodes | |
4727 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4728 | r=`${PWD_COMMAND}`; export r; \ |
4729 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4730 | $(HOST_EXPORTS) \ |
b813574b | 4731 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4732 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4733 | done; \ | |
22121df0 | 4734 | echo "Doing install-pdf in opcodes"; \ |
a90ef4bf | 4735 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4736 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4737 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4738 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 4739 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 4740 | install-pdf) \ |
2a4cbe27 NN |
4741 | || exit 1 |
4742 | ||
a90ef4bf | 4743 | @endif opcodes |
2a4cbe27 | 4744 | |
a90ef4bf JM |
4745 | .PHONY: maybe-install-html-opcodes install-html-opcodes |
4746 | maybe-install-html-opcodes: | |
4747 | @if opcodes | |
4748 | maybe-install-html-opcodes: install-html-opcodes | |
2a4cbe27 | 4749 | |
a90ef4bf JM |
4750 | install-html-opcodes: \ |
4751 | configure-opcodes \ | |
4752 | html-opcodes | |
4753 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4754 | r=`${PWD_COMMAND}`; export r; \ |
4755 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4756 | $(HOST_EXPORTS) \ |
b813574b | 4757 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4758 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4759 | done; \ | |
22121df0 | 4760 | echo "Doing install-html in opcodes"; \ |
a90ef4bf | 4761 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4762 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4763 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4764 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 4765 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 4766 | install-html) \ |
2a4cbe27 NN |
4767 | || exit 1 |
4768 | ||
a90ef4bf | 4769 | @endif opcodes |
2a4cbe27 | 4770 | |
a90ef4bf JM |
4771 | .PHONY: maybe-installcheck-opcodes installcheck-opcodes |
4772 | maybe-installcheck-opcodes: | |
4773 | @if opcodes | |
4774 | maybe-installcheck-opcodes: installcheck-opcodes | |
2a4cbe27 | 4775 | |
a90ef4bf JM |
4776 | installcheck-opcodes: \ |
4777 | configure-opcodes | |
4778 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4779 | r=`${PWD_COMMAND}`; export r; \ |
4780 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4781 | $(HOST_EXPORTS) \ |
b813574b | 4782 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4783 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4784 | done; \ | |
22121df0 | 4785 | echo "Doing installcheck in opcodes"; \ |
a90ef4bf | 4786 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4787 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4788 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4789 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 4790 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 4791 | installcheck) \ |
2a4cbe27 NN |
4792 | || exit 1 |
4793 | ||
a90ef4bf | 4794 | @endif opcodes |
2a4cbe27 | 4795 | |
a90ef4bf JM |
4796 | .PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes |
4797 | maybe-mostlyclean-opcodes: | |
4798 | @if opcodes | |
4799 | maybe-mostlyclean-opcodes: mostlyclean-opcodes | |
2a4cbe27 | 4800 | |
a90ef4bf JM |
4801 | mostlyclean-opcodes: |
4802 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4803 | r=`${PWD_COMMAND}`; export r; \ |
4804 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4805 | $(HOST_EXPORTS) \ |
b813574b | 4806 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4807 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4808 | done; \ | |
22121df0 | 4809 | echo "Doing mostlyclean in opcodes"; \ |
a90ef4bf | 4810 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4811 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4812 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4813 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 4814 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 4815 | mostlyclean) \ |
2a4cbe27 NN |
4816 | || exit 1 |
4817 | ||
a90ef4bf | 4818 | @endif opcodes |
2a4cbe27 | 4819 | |
a90ef4bf JM |
4820 | .PHONY: maybe-clean-opcodes clean-opcodes |
4821 | maybe-clean-opcodes: | |
4822 | @if opcodes | |
4823 | maybe-clean-opcodes: clean-opcodes | |
2a4cbe27 | 4824 | |
a90ef4bf JM |
4825 | clean-opcodes: |
4826 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4827 | r=`${PWD_COMMAND}`; export r; \ |
4828 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4829 | $(HOST_EXPORTS) \ |
b813574b | 4830 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4831 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4832 | done; \ | |
22121df0 | 4833 | echo "Doing clean in opcodes"; \ |
a90ef4bf | 4834 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4835 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4836 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4837 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 4838 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 4839 | clean) \ |
2a4cbe27 NN |
4840 | || exit 1 |
4841 | ||
a90ef4bf | 4842 | @endif opcodes |
2a4cbe27 | 4843 | |
a90ef4bf JM |
4844 | .PHONY: maybe-distclean-opcodes distclean-opcodes |
4845 | maybe-distclean-opcodes: | |
4846 | @if opcodes | |
4847 | maybe-distclean-opcodes: distclean-opcodes | |
2a4cbe27 | 4848 | |
a90ef4bf JM |
4849 | distclean-opcodes: |
4850 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4851 | r=`${PWD_COMMAND}`; export r; \ |
4852 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4853 | $(HOST_EXPORTS) \ |
b813574b | 4854 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4855 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4856 | done; \ | |
22121df0 | 4857 | echo "Doing distclean in opcodes"; \ |
a90ef4bf | 4858 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4859 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4860 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4861 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 4862 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 4863 | distclean) \ |
2a4cbe27 NN |
4864 | || exit 1 |
4865 | ||
a90ef4bf | 4866 | @endif opcodes |
2a4cbe27 | 4867 | |
a90ef4bf JM |
4868 | .PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes |
4869 | maybe-maintainer-clean-opcodes: | |
4870 | @if opcodes | |
4871 | maybe-maintainer-clean-opcodes: maintainer-clean-opcodes | |
2a4cbe27 | 4872 | |
a90ef4bf JM |
4873 | maintainer-clean-opcodes: |
4874 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
4875 | r=`${PWD_COMMAND}`; export r; \ |
4876 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4877 | $(HOST_EXPORTS) \ |
b813574b | 4878 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4879 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4880 | done; \ | |
22121df0 | 4881 | echo "Doing maintainer-clean in opcodes"; \ |
a90ef4bf | 4882 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
4883 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4884 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4885 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 4886 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 4887 | maintainer-clean) \ |
2a4cbe27 NN |
4888 | || exit 1 |
4889 | ||
a90ef4bf | 4890 | @endif opcodes |
2a4cbe27 | 4891 | |
2a4cbe27 | 4892 | |
a7254363 | 4893 | |
a90ef4bf JM |
4894 | .PHONY: configure-binutils maybe-configure-binutils |
4895 | maybe-configure-binutils: | |
4f0ef2d8 | 4896 | @if gcc-bootstrap |
a90ef4bf | 4897 | configure-binutils: stage_current |
4f0ef2d8 | 4898 | @endif gcc-bootstrap |
a90ef4bf JM |
4899 | @if binutils |
4900 | maybe-configure-binutils: configure-binutils | |
4901 | configure-binutils: | |
c52c6897 PB |
4902 | @r=`${PWD_COMMAND}`; export r; \ |
4903 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 4904 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
22121df0 | 4905 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \ |
1f53ca9a | 4906 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
4907 | echo Configuring in $(HOST_SUBDIR)/binutils; \ |
4908 | cd "$(HOST_SUBDIR)/binutils" || exit 1; \ | |
4fa63067 | 4909 | case $(srcdir) in \ |
b00612cc | 4910 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 4911 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ |
b00612cc | 4912 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 4913 | esac; \ |
1b6c0831 L |
4914 | module_srcdir=binutils; \ |
4915 | $(SHELL) \ | |
4916 | $$s/$$module_srcdir/configure \ | |
4917 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 4918 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 4919 | --target=${target_alias} \ |
2a4cbe27 | 4920 | || exit 1 |
a90ef4bf | 4921 | @endif binutils |
2a4cbe27 | 4922 | |
a7254363 PB |
4923 | |
4924 | ||
a90ef4bf JM |
4925 | .PHONY: configure-stage1-binutils maybe-configure-stage1-binutils |
4926 | maybe-configure-stage1-binutils: | |
4927 | @if binutils-bootstrap | |
4928 | maybe-configure-stage1-binutils: configure-stage1-binutils | |
4929 | configure-stage1-binutils: | |
c52c6897 | 4930 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
a90ef4bf | 4931 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils |
c52c6897 PB |
4932 | @r=`${PWD_COMMAND}`; export r; \ |
4933 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 4934 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
a90ef4bf | 4935 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
1b05fbbd | 4936 | $(HOST_EXPORTS) \ |
8ee82aff | 4937 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
4938 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ |
4939 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
4940 | echo Configuring stage 1 in $(HOST_SUBDIR)/binutils; \ |
4941 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \ | |
a90ef4bf | 4942 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
d545f33b PB |
4943 | case $(srcdir) in \ |
4944 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 4945 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ |
d545f33b PB |
4946 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4947 | esac; \ | |
1b6c0831 L |
4948 | module_srcdir=binutils; \ |
4949 | $(SHELL) $$s/$$module_srcdir/configure \ | |
4950 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 4951 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
4952 | --target=${target_alias} \ |
4953 | \ | |
1b05fbbd | 4954 | $(STAGE1_CONFIGURE_FLAGS) |
a90ef4bf | 4955 | @endif binutils-bootstrap |
d545f33b | 4956 | |
a90ef4bf JM |
4957 | .PHONY: configure-stage2-binutils maybe-configure-stage2-binutils |
4958 | maybe-configure-stage2-binutils: | |
4959 | @if binutils-bootstrap | |
4960 | maybe-configure-stage2-binutils: configure-stage2-binutils | |
4961 | configure-stage2-binutils: | |
c52c6897 | 4962 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
a90ef4bf | 4963 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils |
c52c6897 PB |
4964 | @r=`${PWD_COMMAND}`; export r; \ |
4965 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 4966 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
a90ef4bf | 4967 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
d545f33b | 4968 | $(HOST_EXPORTS) \ |
1b05fbbd | 4969 | $(POSTSTAGE1_HOST_EXPORTS) \ |
8520c408 | 4970 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
4971 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ |
4972 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
4973 | echo Configuring stage 2 in $(HOST_SUBDIR)/binutils; \ |
4974 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \ | |
a90ef4bf | 4975 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
d545f33b PB |
4976 | case $(srcdir) in \ |
4977 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 4978 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ |
d545f33b PB |
4979 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4980 | esac; \ | |
1b6c0831 L |
4981 | module_srcdir=binutils; \ |
4982 | $(SHELL) $$s/$$module_srcdir/configure \ | |
4983 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 4984 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 4985 | --target=${target_alias} \ |
22121df0 | 4986 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b05fbbd | 4987 | $(STAGE2_CONFIGURE_FLAGS) |
a90ef4bf | 4988 | @endif binutils-bootstrap |
8520c408 | 4989 | |
a90ef4bf JM |
4990 | .PHONY: configure-stage3-binutils maybe-configure-stage3-binutils |
4991 | maybe-configure-stage3-binutils: | |
4992 | @if binutils-bootstrap | |
4993 | maybe-configure-stage3-binutils: configure-stage3-binutils | |
4994 | configure-stage3-binutils: | |
c52c6897 | 4995 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
a90ef4bf | 4996 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils |
c52c6897 PB |
4997 | @r=`${PWD_COMMAND}`; export r; \ |
4998 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 4999 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
a90ef4bf | 5000 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
d545f33b | 5001 | $(HOST_EXPORTS) \ |
1b05fbbd | 5002 | $(POSTSTAGE1_HOST_EXPORTS) \ |
8520c408 | 5003 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
5004 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ |
5005 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
5006 | echo Configuring stage 3 in $(HOST_SUBDIR)/binutils; \ |
5007 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \ | |
a90ef4bf | 5008 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
d545f33b PB |
5009 | case $(srcdir) in \ |
5010 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 5011 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ |
d545f33b PB |
5012 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
5013 | esac; \ | |
1b6c0831 L |
5014 | module_srcdir=binutils; \ |
5015 | $(SHELL) $$s/$$module_srcdir/configure \ | |
5016 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 5017 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 5018 | --target=${target_alias} \ |
22121df0 | 5019 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b05fbbd | 5020 | $(STAGE3_CONFIGURE_FLAGS) |
a90ef4bf | 5021 | @endif binutils-bootstrap |
8520c408 | 5022 | |
a90ef4bf JM |
5023 | .PHONY: configure-stage4-binutils maybe-configure-stage4-binutils |
5024 | maybe-configure-stage4-binutils: | |
5025 | @if binutils-bootstrap | |
5026 | maybe-configure-stage4-binutils: configure-stage4-binutils | |
5027 | configure-stage4-binutils: | |
c52c6897 | 5028 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
a90ef4bf | 5029 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils |
c52c6897 PB |
5030 | @r=`${PWD_COMMAND}`; export r; \ |
5031 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 5032 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
a90ef4bf | 5033 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
d545f33b | 5034 | $(HOST_EXPORTS) \ |
1b05fbbd | 5035 | $(POSTSTAGE1_HOST_EXPORTS) \ |
8520c408 | 5036 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
5037 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ |
5038 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
5039 | echo Configuring stage 4 in $(HOST_SUBDIR)/binutils; \ |
5040 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \ | |
a90ef4bf | 5041 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
d545f33b PB |
5042 | case $(srcdir) in \ |
5043 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 5044 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ |
d545f33b PB |
5045 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
5046 | esac; \ | |
1b6c0831 L |
5047 | module_srcdir=binutils; \ |
5048 | $(SHELL) $$s/$$module_srcdir/configure \ | |
5049 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 5050 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 5051 | --target=${target_alias} \ |
22121df0 | 5052 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b05fbbd | 5053 | $(STAGE4_CONFIGURE_FLAGS) |
a90ef4bf | 5054 | @endif binutils-bootstrap |
d545f33b | 5055 | |
a90ef4bf JM |
5056 | .PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils |
5057 | maybe-configure-stageprofile-binutils: | |
5058 | @if binutils-bootstrap | |
5059 | maybe-configure-stageprofile-binutils: configure-stageprofile-binutils | |
5060 | configure-stageprofile-binutils: | |
c52c6897 | 5061 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
a90ef4bf | 5062 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils |
c52c6897 PB |
5063 | @r=`${PWD_COMMAND}`; export r; \ |
5064 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 5065 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
a90ef4bf | 5066 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
d545f33b | 5067 | $(HOST_EXPORTS) \ |
1b05fbbd AO |
5068 | $(POSTSTAGE1_HOST_EXPORTS) \ |
5069 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
1f53ca9a AO |
5070 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ |
5071 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
5072 | echo Configuring stage profile in $(HOST_SUBDIR)/binutils; \ |
5073 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \ | |
a90ef4bf | 5074 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
d545f33b PB |
5075 | case $(srcdir) in \ |
5076 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 5077 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ |
d545f33b PB |
5078 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
5079 | esac; \ | |
1b6c0831 L |
5080 | module_srcdir=binutils; \ |
5081 | $(SHELL) $$s/$$module_srcdir/configure \ | |
5082 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 5083 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 5084 | --target=${target_alias} \ |
22121df0 | 5085 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b05fbbd | 5086 | $(STAGEprofile_CONFIGURE_FLAGS) |
a90ef4bf | 5087 | @endif binutils-bootstrap |
d545f33b | 5088 | |
a90ef4bf JM |
5089 | .PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils |
5090 | maybe-configure-stagefeedback-binutils: | |
5091 | @if binutils-bootstrap | |
5092 | maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils | |
5093 | configure-stagefeedback-binutils: | |
c52c6897 | 5094 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
a90ef4bf | 5095 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils |
c52c6897 PB |
5096 | @r=`${PWD_COMMAND}`; export r; \ |
5097 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 5098 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
a90ef4bf | 5099 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
d545f33b | 5100 | $(HOST_EXPORTS) \ |
1b05fbbd AO |
5101 | $(POSTSTAGE1_HOST_EXPORTS) \ |
5102 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
1f53ca9a AO |
5103 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ |
5104 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
5105 | echo Configuring stage feedback in $(HOST_SUBDIR)/binutils; \ |
5106 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \ | |
a90ef4bf | 5107 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
d545f33b PB |
5108 | case $(srcdir) in \ |
5109 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 5110 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ |
d545f33b PB |
5111 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
5112 | esac; \ | |
1b6c0831 L |
5113 | module_srcdir=binutils; \ |
5114 | $(SHELL) $$s/$$module_srcdir/configure \ | |
5115 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 5116 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 5117 | --target=${target_alias} \ |
22121df0 | 5118 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b05fbbd | 5119 | $(STAGEfeedback_CONFIGURE_FLAGS) |
a90ef4bf | 5120 | @endif binutils-bootstrap |
d545f33b PB |
5121 | |
5122 | ||
5123 | ||
5124 | ||
5125 | ||
a90ef4bf JM |
5126 | .PHONY: all-binutils maybe-all-binutils |
5127 | maybe-all-binutils: | |
4f0ef2d8 | 5128 | @if gcc-bootstrap |
a90ef4bf | 5129 | all-binutils: stage_current |
4f0ef2d8 | 5130 | @endif gcc-bootstrap |
a90ef4bf JM |
5131 | @if binutils |
5132 | TARGET-binutils=all | |
5133 | maybe-all-binutils: all-binutils | |
5134 | all-binutils: configure-binutils | |
c52c6897 | 5135 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 5136 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1f53ca9a | 5137 | $(HOST_EXPORTS) \ |
a90ef4bf | 5138 | (cd $(HOST_SUBDIR)/binutils && \ |
b3676d82 | 5139 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
5140 | $(TARGET-binutils)) |
5141 | @endif binutils | |
2a4cbe27 | 5142 | |
a7254363 | 5143 | |
d545f33b | 5144 | |
a90ef4bf JM |
5145 | .PHONY: all-stage1-binutils maybe-all-stage1-binutils |
5146 | .PHONY: clean-stage1-binutils maybe-clean-stage1-binutils | |
5147 | maybe-all-stage1-binutils: | |
5148 | maybe-clean-stage1-binutils: | |
5149 | @if binutils-bootstrap | |
5150 | maybe-all-stage1-binutils: all-stage1-binutils | |
5151 | all-stage1: all-stage1-binutils | |
5152 | TARGET-stage1-binutils = $(TARGET-binutils) | |
5153 | all-stage1-binutils: configure-stage1-binutils | |
c52c6897 | 5154 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
d545f33b PB |
5155 | @r=`${PWD_COMMAND}`; export r; \ |
5156 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 5157 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
1f53ca9a | 5158 | $(HOST_EXPORTS) \ |
a90ef4bf | 5159 | cd $(HOST_SUBDIR)/binutils && \ |
05a13254 | 5160 | \ |
7f6ef0c0 | 5161 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 5162 | CFLAGS="$(STAGE1_CFLAGS)" \ |
1f53ca9a | 5163 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ |
1b05fbbd AO |
5164 | LIBCFLAGS="$(LIBCFLAGS)" \ |
5165 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
5166 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
5167 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
5168 | $(EXTRA_HOST_FLAGS) \ |
5169 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 5170 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 5171 | $(TARGET-stage1-binutils) |
d545f33b | 5172 | |
a90ef4bf JM |
5173 | maybe-clean-stage1-binutils: clean-stage1-binutils |
5174 | clean-stage1: clean-stage1-binutils | |
5175 | clean-stage1-binutils: | |
9dbaa842 | 5176 | @if [ $(current_stage) = stage1 ]; then \ |
a90ef4bf | 5177 | [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \ |
9dbaa842 | 5178 | else \ |
a90ef4bf | 5179 | [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \ |
9dbaa842 DD |
5180 | $(MAKE) stage1-start; \ |
5181 | fi; \ | |
a90ef4bf | 5182 | cd $(HOST_SUBDIR)/binutils && \ |
7f6ef0c0 | 5183 | $(MAKE) $(EXTRA_HOST_FLAGS) \ |
b3676d82 | 5184 | $(STAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 5185 | @endif binutils-bootstrap |
d545f33b PB |
5186 | |
5187 | ||
a90ef4bf JM |
5188 | .PHONY: all-stage2-binutils maybe-all-stage2-binutils |
5189 | .PHONY: clean-stage2-binutils maybe-clean-stage2-binutils | |
5190 | maybe-all-stage2-binutils: | |
5191 | maybe-clean-stage2-binutils: | |
5192 | @if binutils-bootstrap | |
5193 | maybe-all-stage2-binutils: all-stage2-binutils | |
5194 | all-stage2: all-stage2-binutils | |
5195 | TARGET-stage2-binutils = $(TARGET-binutils) | |
5196 | all-stage2-binutils: configure-stage2-binutils | |
c52c6897 | 5197 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
d545f33b PB |
5198 | @r=`${PWD_COMMAND}`; export r; \ |
5199 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 5200 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
d545f33b | 5201 | $(HOST_EXPORTS) \ |
1f53ca9a | 5202 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 5203 | cd $(HOST_SUBDIR)/binutils && \ |
05a13254 | 5204 | \ |
7f6ef0c0 | 5205 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 5206 | CFLAGS="$(STAGE2_CFLAGS)" \ |
1f53ca9a | 5207 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ |
1b05fbbd AO |
5208 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ |
5209 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
5210 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
5211 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
5212 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 5213 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 5214 | $(TARGET-stage2-binutils) |
d545f33b | 5215 | |
a90ef4bf JM |
5216 | maybe-clean-stage2-binutils: clean-stage2-binutils |
5217 | clean-stage2: clean-stage2-binutils | |
5218 | clean-stage2-binutils: | |
9dbaa842 | 5219 | @if [ $(current_stage) = stage2 ]; then \ |
a90ef4bf | 5220 | [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \ |
9dbaa842 | 5221 | else \ |
a90ef4bf | 5222 | [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \ |
9dbaa842 DD |
5223 | $(MAKE) stage2-start; \ |
5224 | fi; \ | |
a90ef4bf | 5225 | cd $(HOST_SUBDIR)/binutils && \ |
b3676d82 | 5226 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 5227 | @endif binutils-bootstrap |
d545f33b PB |
5228 | |
5229 | ||
a90ef4bf JM |
5230 | .PHONY: all-stage3-binutils maybe-all-stage3-binutils |
5231 | .PHONY: clean-stage3-binutils maybe-clean-stage3-binutils | |
5232 | maybe-all-stage3-binutils: | |
5233 | maybe-clean-stage3-binutils: | |
5234 | @if binutils-bootstrap | |
5235 | maybe-all-stage3-binutils: all-stage3-binutils | |
5236 | all-stage3: all-stage3-binutils | |
5237 | TARGET-stage3-binutils = $(TARGET-binutils) | |
5238 | all-stage3-binutils: configure-stage3-binutils | |
c52c6897 | 5239 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
d545f33b PB |
5240 | @r=`${PWD_COMMAND}`; export r; \ |
5241 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 5242 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
d545f33b | 5243 | $(HOST_EXPORTS) \ |
1f53ca9a | 5244 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 5245 | cd $(HOST_SUBDIR)/binutils && \ |
05a13254 | 5246 | \ |
7f6ef0c0 | 5247 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 5248 | CFLAGS="$(STAGE3_CFLAGS)" \ |
1f53ca9a | 5249 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ |
1b05fbbd AO |
5250 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ |
5251 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
5252 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
5253 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
5254 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 5255 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 5256 | $(TARGET-stage3-binutils) |
d545f33b | 5257 | |
a90ef4bf JM |
5258 | maybe-clean-stage3-binutils: clean-stage3-binutils |
5259 | clean-stage3: clean-stage3-binutils | |
5260 | clean-stage3-binutils: | |
9dbaa842 | 5261 | @if [ $(current_stage) = stage3 ]; then \ |
a90ef4bf | 5262 | [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \ |
9dbaa842 | 5263 | else \ |
a90ef4bf | 5264 | [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \ |
9dbaa842 DD |
5265 | $(MAKE) stage3-start; \ |
5266 | fi; \ | |
a90ef4bf | 5267 | cd $(HOST_SUBDIR)/binutils && \ |
b3676d82 | 5268 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 5269 | @endif binutils-bootstrap |
d545f33b PB |
5270 | |
5271 | ||
a90ef4bf JM |
5272 | .PHONY: all-stage4-binutils maybe-all-stage4-binutils |
5273 | .PHONY: clean-stage4-binutils maybe-clean-stage4-binutils | |
5274 | maybe-all-stage4-binutils: | |
5275 | maybe-clean-stage4-binutils: | |
5276 | @if binutils-bootstrap | |
5277 | maybe-all-stage4-binutils: all-stage4-binutils | |
5278 | all-stage4: all-stage4-binutils | |
5279 | TARGET-stage4-binutils = $(TARGET-binutils) | |
5280 | all-stage4-binutils: configure-stage4-binutils | |
c52c6897 | 5281 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
d545f33b PB |
5282 | @r=`${PWD_COMMAND}`; export r; \ |
5283 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 5284 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
d545f33b | 5285 | $(HOST_EXPORTS) \ |
1f53ca9a | 5286 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 5287 | cd $(HOST_SUBDIR)/binutils && \ |
05a13254 | 5288 | \ |
7f6ef0c0 | 5289 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 5290 | CFLAGS="$(STAGE4_CFLAGS)" \ |
1f53ca9a | 5291 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ |
7f6ef0c0 | 5292 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ |
1b05fbbd AO |
5293 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ |
5294 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
5295 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
5296 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 5297 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 5298 | $(TARGET-stage4-binutils) |
d545f33b | 5299 | |
a90ef4bf JM |
5300 | maybe-clean-stage4-binutils: clean-stage4-binutils |
5301 | clean-stage4: clean-stage4-binutils | |
5302 | clean-stage4-binutils: | |
9dbaa842 | 5303 | @if [ $(current_stage) = stage4 ]; then \ |
a90ef4bf | 5304 | [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \ |
9dbaa842 | 5305 | else \ |
a90ef4bf | 5306 | [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \ |
9dbaa842 DD |
5307 | $(MAKE) stage4-start; \ |
5308 | fi; \ | |
a90ef4bf | 5309 | cd $(HOST_SUBDIR)/binutils && \ |
b3676d82 | 5310 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 5311 | @endif binutils-bootstrap |
d545f33b PB |
5312 | |
5313 | ||
a90ef4bf JM |
5314 | .PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils |
5315 | .PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils | |
5316 | maybe-all-stageprofile-binutils: | |
5317 | maybe-clean-stageprofile-binutils: | |
5318 | @if binutils-bootstrap | |
5319 | maybe-all-stageprofile-binutils: all-stageprofile-binutils | |
5320 | all-stageprofile: all-stageprofile-binutils | |
5321 | TARGET-stageprofile-binutils = $(TARGET-binutils) | |
5322 | all-stageprofile-binutils: configure-stageprofile-binutils | |
c52c6897 | 5323 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
d545f33b PB |
5324 | @r=`${PWD_COMMAND}`; export r; \ |
5325 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 5326 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
d545f33b | 5327 | $(HOST_EXPORTS) \ |
1f53ca9a | 5328 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 5329 | cd $(HOST_SUBDIR)/binutils && \ |
05a13254 | 5330 | \ |
7f6ef0c0 | 5331 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 5332 | CFLAGS="$(STAGEprofile_CFLAGS)" \ |
1f53ca9a | 5333 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ |
1b05fbbd AO |
5334 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ |
5335 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
5336 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
5337 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
5338 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 5339 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf | 5340 | $(TARGET-stageprofile-binutils) |
d545f33b | 5341 | |
a90ef4bf JM |
5342 | maybe-clean-stageprofile-binutils: clean-stageprofile-binutils |
5343 | clean-stageprofile: clean-stageprofile-binutils | |
5344 | clean-stageprofile-binutils: | |
9dbaa842 | 5345 | @if [ $(current_stage) = stageprofile ]; then \ |
a90ef4bf | 5346 | [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \ |
9dbaa842 | 5347 | else \ |
a90ef4bf | 5348 | [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \ |
9dbaa842 DD |
5349 | $(MAKE) stageprofile-start; \ |
5350 | fi; \ | |
a90ef4bf | 5351 | cd $(HOST_SUBDIR)/binutils && \ |
b3676d82 | 5352 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 5353 | @endif binutils-bootstrap |
d545f33b PB |
5354 | |
5355 | ||
a90ef4bf JM |
5356 | .PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils |
5357 | .PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils | |
5358 | maybe-all-stagefeedback-binutils: | |
5359 | maybe-clean-stagefeedback-binutils: | |
5360 | @if binutils-bootstrap | |
5361 | maybe-all-stagefeedback-binutils: all-stagefeedback-binutils | |
5362 | all-stagefeedback: all-stagefeedback-binutils | |
5363 | TARGET-stagefeedback-binutils = $(TARGET-binutils) | |
5364 | all-stagefeedback-binutils: configure-stagefeedback-binutils | |
c52c6897 | 5365 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
d545f33b PB |
5366 | @r=`${PWD_COMMAND}`; export r; \ |
5367 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 5368 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
d545f33b | 5369 | $(HOST_EXPORTS) \ |
1f53ca9a | 5370 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 5371 | cd $(HOST_SUBDIR)/binutils && \ |
05a13254 | 5372 | \ |
7f6ef0c0 | 5373 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 5374 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ |
1f53ca9a | 5375 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ |
1b05fbbd AO |
5376 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ |
5377 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
5378 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
5379 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
5380 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 5381 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf | 5382 | $(TARGET-stagefeedback-binutils) |
d545f33b | 5383 | |
a90ef4bf JM |
5384 | maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils |
5385 | clean-stagefeedback: clean-stagefeedback-binutils | |
5386 | clean-stagefeedback-binutils: | |
9dbaa842 | 5387 | @if [ $(current_stage) = stagefeedback ]; then \ |
a90ef4bf | 5388 | [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \ |
9dbaa842 | 5389 | else \ |
a90ef4bf | 5390 | [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \ |
9dbaa842 DD |
5391 | $(MAKE) stagefeedback-start; \ |
5392 | fi; \ | |
a90ef4bf | 5393 | cd $(HOST_SUBDIR)/binutils && \ |
b3676d82 | 5394 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 5395 | @endif binutils-bootstrap |
d545f33b PB |
5396 | |
5397 | ||
5398 | ||
5399 | ||
5400 | ||
a90ef4bf JM |
5401 | .PHONY: check-binutils maybe-check-binutils |
5402 | maybe-check-binutils: | |
5403 | @if binutils | |
5404 | maybe-check-binutils: check-binutils | |
2a4cbe27 | 5405 | |
a90ef4bf | 5406 | check-binutils: |
0aed8855 | 5407 | @: $(MAKE); $(unstage) |
4fa63067 | 5408 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 5409 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
f91ca6bc | 5410 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 5411 | (cd $(HOST_SUBDIR)/binutils && \ |
f91ca6bc | 5412 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
2a4cbe27 | 5413 | |
a90ef4bf | 5414 | @endif binutils |
2a4cbe27 | 5415 | |
a90ef4bf JM |
5416 | .PHONY: install-binutils maybe-install-binutils |
5417 | maybe-install-binutils: | |
5418 | @if binutils | |
5419 | maybe-install-binutils: install-binutils | |
2a4cbe27 | 5420 | |
a90ef4bf | 5421 | install-binutils: installdirs |
0aed8855 | 5422 | @: $(MAKE); $(unstage) |
4fa63067 | 5423 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 5424 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 5425 | $(HOST_EXPORTS) \ |
a90ef4bf | 5426 | (cd $(HOST_SUBDIR)/binutils && \ |
2da12f12 | 5427 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 5428 | |
a90ef4bf | 5429 | @endif binutils |
2a4cbe27 | 5430 | |
a90ef4bf JM |
5431 | .PHONY: install-strip-binutils maybe-install-strip-binutils |
5432 | maybe-install-strip-binutils: | |
5433 | @if binutils | |
5434 | maybe-install-strip-binutils: install-strip-binutils | |
9b980aa1 | 5435 | |
a90ef4bf | 5436 | install-strip-binutils: installdirs |
9b980aa1 RW |
5437 | @: $(MAKE); $(unstage) |
5438 | @r=`${PWD_COMMAND}`; export r; \ | |
5439 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
5440 | $(HOST_EXPORTS) \ | |
a90ef4bf | 5441 | (cd $(HOST_SUBDIR)/binutils && \ |
9b980aa1 RW |
5442 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
5443 | ||
a90ef4bf | 5444 | @endif binutils |
9b980aa1 | 5445 | |
56a8fe78 | 5446 | # Other targets (info, dvi, pdf, etc.) |
2a4cbe27 | 5447 | |
a90ef4bf JM |
5448 | .PHONY: maybe-info-binutils info-binutils |
5449 | maybe-info-binutils: | |
5450 | @if binutils | |
5451 | maybe-info-binutils: info-binutils | |
4fa63067 | 5452 | |
a90ef4bf JM |
5453 | info-binutils: \ |
5454 | configure-binutils | |
5455 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
5456 | r=`${PWD_COMMAND}`; export r; \ |
5457 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5458 | $(HOST_EXPORTS) \ |
b813574b | 5459 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5460 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5461 | done; \ | |
22121df0 | 5462 | echo "Doing info in binutils"; \ |
a90ef4bf | 5463 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
5464 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5465 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5466 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 5467 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 5468 | info) \ |
2a4cbe27 NN |
5469 | || exit 1 |
5470 | ||
a90ef4bf | 5471 | @endif binutils |
2a4cbe27 | 5472 | |
a90ef4bf JM |
5473 | .PHONY: maybe-dvi-binutils dvi-binutils |
5474 | maybe-dvi-binutils: | |
5475 | @if binutils | |
5476 | maybe-dvi-binutils: dvi-binutils | |
2a4cbe27 | 5477 | |
a90ef4bf JM |
5478 | dvi-binutils: \ |
5479 | configure-binutils | |
5480 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
5481 | r=`${PWD_COMMAND}`; export r; \ |
5482 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5483 | $(HOST_EXPORTS) \ |
b813574b | 5484 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5485 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5486 | done; \ | |
22121df0 | 5487 | echo "Doing dvi in binutils"; \ |
a90ef4bf | 5488 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
5489 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5490 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5491 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 5492 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 5493 | dvi) \ |
2a4cbe27 NN |
5494 | || exit 1 |
5495 | ||
a90ef4bf | 5496 | @endif binutils |
2a4cbe27 | 5497 | |
a90ef4bf JM |
5498 | .PHONY: maybe-pdf-binutils pdf-binutils |
5499 | maybe-pdf-binutils: | |
5500 | @if binutils | |
5501 | maybe-pdf-binutils: pdf-binutils | |
56a8fe78 | 5502 | |
a90ef4bf JM |
5503 | pdf-binutils: \ |
5504 | configure-binutils | |
5505 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
56a8fe78 DD |
5506 | r=`${PWD_COMMAND}`; export r; \ |
5507 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
5508 | $(HOST_EXPORTS) \ | |
5509 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
5510 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
5511 | done; \ | |
22121df0 | 5512 | echo "Doing pdf in binutils"; \ |
a90ef4bf | 5513 | (cd $(HOST_SUBDIR)/binutils && \ |
56a8fe78 DD |
5514 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5515 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5516 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 5517 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
5518 | pdf) \ |
5519 | || exit 1 | |
5520 | ||
a90ef4bf | 5521 | @endif binutils |
56a8fe78 | 5522 | |
a90ef4bf JM |
5523 | .PHONY: maybe-html-binutils html-binutils |
5524 | maybe-html-binutils: | |
5525 | @if binutils | |
5526 | maybe-html-binutils: html-binutils | |
6d389afc | 5527 | |
a90ef4bf JM |
5528 | html-binutils: \ |
5529 | configure-binutils | |
5530 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
6d389afc MS |
5531 | r=`${PWD_COMMAND}`; export r; \ |
5532 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
5533 | $(HOST_EXPORTS) \ |
5534 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
5535 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
5536 | done; \ | |
22121df0 | 5537 | echo "Doing html in binutils"; \ |
a90ef4bf | 5538 | (cd $(HOST_SUBDIR)/binutils && \ |
6d389afc MS |
5539 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5540 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5541 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 5542 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
5543 | html) \ |
5544 | || exit 1 | |
5545 | ||
a90ef4bf | 5546 | @endif binutils |
6d389afc | 5547 | |
a90ef4bf JM |
5548 | .PHONY: maybe-TAGS-binutils TAGS-binutils |
5549 | maybe-TAGS-binutils: | |
5550 | @if binutils | |
5551 | maybe-TAGS-binutils: TAGS-binutils | |
2a4cbe27 | 5552 | |
a90ef4bf JM |
5553 | TAGS-binutils: \ |
5554 | configure-binutils | |
5555 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
5556 | r=`${PWD_COMMAND}`; export r; \ |
5557 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5558 | $(HOST_EXPORTS) \ |
b813574b | 5559 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5560 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5561 | done; \ | |
22121df0 | 5562 | echo "Doing TAGS in binutils"; \ |
a90ef4bf | 5563 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
5564 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5565 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5566 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 5567 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 5568 | TAGS) \ |
2a4cbe27 NN |
5569 | || exit 1 |
5570 | ||
a90ef4bf | 5571 | @endif binutils |
2a4cbe27 | 5572 | |
a90ef4bf JM |
5573 | .PHONY: maybe-install-info-binutils install-info-binutils |
5574 | maybe-install-info-binutils: | |
5575 | @if binutils | |
5576 | maybe-install-info-binutils: install-info-binutils | |
2a4cbe27 | 5577 | |
a90ef4bf JM |
5578 | install-info-binutils: \ |
5579 | configure-binutils \ | |
5580 | info-binutils | |
5581 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
5582 | r=`${PWD_COMMAND}`; export r; \ |
5583 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5584 | $(HOST_EXPORTS) \ |
b813574b | 5585 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5586 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5587 | done; \ | |
22121df0 | 5588 | echo "Doing install-info in binutils"; \ |
a90ef4bf | 5589 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
5590 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5591 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5592 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 5593 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 5594 | install-info) \ |
2a4cbe27 NN |
5595 | || exit 1 |
5596 | ||
a90ef4bf | 5597 | @endif binutils |
2a4cbe27 | 5598 | |
a90ef4bf JM |
5599 | .PHONY: maybe-install-pdf-binutils install-pdf-binutils |
5600 | maybe-install-pdf-binutils: | |
5601 | @if binutils | |
5602 | maybe-install-pdf-binutils: install-pdf-binutils | |
a3ca38d2 | 5603 | |
a90ef4bf JM |
5604 | install-pdf-binutils: \ |
5605 | configure-binutils \ | |
5606 | pdf-binutils | |
5607 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
5608 | r=`${PWD_COMMAND}`; export r; \ |
5609 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
5610 | $(HOST_EXPORTS) \ | |
5611 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
5612 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
5613 | done; \ | |
22121df0 | 5614 | echo "Doing install-pdf in binutils"; \ |
a90ef4bf | 5615 | (cd $(HOST_SUBDIR)/binutils && \ |
a3ca38d2 DD |
5616 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5617 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5618 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 5619 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
5620 | install-pdf) \ |
5621 | || exit 1 | |
5622 | ||
a90ef4bf | 5623 | @endif binutils |
a3ca38d2 | 5624 | |
a90ef4bf JM |
5625 | .PHONY: maybe-install-html-binutils install-html-binutils |
5626 | maybe-install-html-binutils: | |
5627 | @if binutils | |
5628 | maybe-install-html-binutils: install-html-binutils | |
108a6f8e | 5629 | |
a90ef4bf JM |
5630 | install-html-binutils: \ |
5631 | configure-binutils \ | |
5632 | html-binutils | |
5633 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
108a6f8e CD |
5634 | r=`${PWD_COMMAND}`; export r; \ |
5635 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
5636 | $(HOST_EXPORTS) \ | |
5637 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
5638 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
5639 | done; \ | |
22121df0 | 5640 | echo "Doing install-html in binutils"; \ |
a90ef4bf | 5641 | (cd $(HOST_SUBDIR)/binutils && \ |
108a6f8e CD |
5642 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5643 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5644 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 5645 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
5646 | install-html) \ |
5647 | || exit 1 | |
5648 | ||
a90ef4bf | 5649 | @endif binutils |
108a6f8e | 5650 | |
a90ef4bf JM |
5651 | .PHONY: maybe-installcheck-binutils installcheck-binutils |
5652 | maybe-installcheck-binutils: | |
5653 | @if binutils | |
5654 | maybe-installcheck-binutils: installcheck-binutils | |
2a4cbe27 | 5655 | |
a90ef4bf JM |
5656 | installcheck-binutils: \ |
5657 | configure-binutils | |
5658 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
5659 | r=`${PWD_COMMAND}`; export r; \ |
5660 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5661 | $(HOST_EXPORTS) \ |
b813574b | 5662 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5663 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5664 | done; \ | |
22121df0 | 5665 | echo "Doing installcheck in binutils"; \ |
a90ef4bf | 5666 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
5667 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5668 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5669 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 5670 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 5671 | installcheck) \ |
2a4cbe27 NN |
5672 | || exit 1 |
5673 | ||
a90ef4bf | 5674 | @endif binutils |
2a4cbe27 | 5675 | |
a90ef4bf JM |
5676 | .PHONY: maybe-mostlyclean-binutils mostlyclean-binutils |
5677 | maybe-mostlyclean-binutils: | |
5678 | @if binutils | |
5679 | maybe-mostlyclean-binutils: mostlyclean-binutils | |
2a4cbe27 | 5680 | |
a90ef4bf JM |
5681 | mostlyclean-binutils: |
5682 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
5683 | r=`${PWD_COMMAND}`; export r; \ |
5684 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5685 | $(HOST_EXPORTS) \ |
b813574b | 5686 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5687 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5688 | done; \ | |
22121df0 | 5689 | echo "Doing mostlyclean in binutils"; \ |
a90ef4bf | 5690 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
5691 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5692 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5693 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 5694 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 5695 | mostlyclean) \ |
2a4cbe27 NN |
5696 | || exit 1 |
5697 | ||
a90ef4bf | 5698 | @endif binutils |
2a4cbe27 | 5699 | |
a90ef4bf JM |
5700 | .PHONY: maybe-clean-binutils clean-binutils |
5701 | maybe-clean-binutils: | |
5702 | @if binutils | |
5703 | maybe-clean-binutils: clean-binutils | |
2a4cbe27 | 5704 | |
a90ef4bf JM |
5705 | clean-binutils: |
5706 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
5707 | r=`${PWD_COMMAND}`; export r; \ |
5708 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5709 | $(HOST_EXPORTS) \ |
b813574b | 5710 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5711 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5712 | done; \ | |
22121df0 | 5713 | echo "Doing clean in binutils"; \ |
a90ef4bf | 5714 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
5715 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5716 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5717 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 5718 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 5719 | clean) \ |
2a4cbe27 NN |
5720 | || exit 1 |
5721 | ||
a90ef4bf | 5722 | @endif binutils |
2a4cbe27 | 5723 | |
a90ef4bf JM |
5724 | .PHONY: maybe-distclean-binutils distclean-binutils |
5725 | maybe-distclean-binutils: | |
5726 | @if binutils | |
5727 | maybe-distclean-binutils: distclean-binutils | |
2a4cbe27 | 5728 | |
a90ef4bf JM |
5729 | distclean-binutils: |
5730 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
5731 | r=`${PWD_COMMAND}`; export r; \ |
5732 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5733 | $(HOST_EXPORTS) \ |
b813574b | 5734 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5735 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5736 | done; \ | |
22121df0 | 5737 | echo "Doing distclean in binutils"; \ |
a90ef4bf | 5738 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
5739 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5740 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5741 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 5742 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 5743 | distclean) \ |
2a4cbe27 NN |
5744 | || exit 1 |
5745 | ||
a90ef4bf | 5746 | @endif binutils |
2a4cbe27 | 5747 | |
a90ef4bf JM |
5748 | .PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils |
5749 | maybe-maintainer-clean-binutils: | |
5750 | @if binutils | |
5751 | maybe-maintainer-clean-binutils: maintainer-clean-binutils | |
a2592b1b | 5752 | |
a90ef4bf JM |
5753 | maintainer-clean-binutils: |
5754 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
a2592b1b DD |
5755 | r=`${PWD_COMMAND}`; export r; \ |
5756 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5757 | $(HOST_EXPORTS) \ |
b813574b | 5758 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
a2592b1b DD |
5759 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5760 | done; \ | |
22121df0 | 5761 | echo "Doing maintainer-clean in binutils"; \ |
a90ef4bf | 5762 | (cd $(HOST_SUBDIR)/binutils && \ |
a2592b1b DD |
5763 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5764 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5765 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 5766 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 5767 | maintainer-clean) \ |
a2592b1b DD |
5768 | || exit 1 |
5769 | ||
a90ef4bf | 5770 | @endif binutils |
a2592b1b | 5771 | |
2a4cbe27 | 5772 | |
a7254363 | 5773 | |
a90ef4bf JM |
5774 | .PHONY: configure-bison maybe-configure-bison |
5775 | maybe-configure-bison: | |
4f0ef2d8 | 5776 | @if gcc-bootstrap |
a90ef4bf | 5777 | configure-bison: stage_current |
4f0ef2d8 | 5778 | @endif gcc-bootstrap |
a90ef4bf JM |
5779 | @if bison |
5780 | maybe-configure-bison: configure-bison | |
5781 | configure-bison: | |
5782 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
5783 | @r=`${PWD_COMMAND}`; export r; \ |
5784 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 5785 | test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \ |
22121df0 | 5786 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison; \ |
1f53ca9a | 5787 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
5788 | echo Configuring in $(HOST_SUBDIR)/bison; \ |
5789 | cd "$(HOST_SUBDIR)/bison" || exit 1; \ | |
4fa63067 | 5790 | case $(srcdir) in \ |
b00612cc | 5791 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 5792 | *) topdir=`echo $(HOST_SUBDIR)/bison/ | \ |
b00612cc | 5793 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 5794 | esac; \ |
1b6c0831 L |
5795 | module_srcdir=bison; \ |
5796 | $(SHELL) \ | |
5797 | $$s/$$module_srcdir/configure \ | |
5798 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 5799 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 5800 | --target=${target_alias} \ |
4fa63067 | 5801 | || exit 1 |
a90ef4bf | 5802 | @endif bison |
2a4cbe27 | 5803 | |
a7254363 PB |
5804 | |
5805 | ||
d545f33b | 5806 | |
8520c408 | 5807 | |
a90ef4bf JM |
5808 | .PHONY: all-bison maybe-all-bison |
5809 | maybe-all-bison: | |
5810 | @if gcc-bootstrap | |
5811 | all-bison: stage_current | |
5812 | @endif gcc-bootstrap | |
5813 | @if bison | |
5814 | TARGET-bison=all | |
5815 | maybe-all-bison: all-bison | |
5816 | all-bison: configure-bison | |
5817 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
5818 | @r=`${PWD_COMMAND}`; export r; \ |
5819 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
5820 | $(HOST_EXPORTS) \ |
5821 | (cd $(HOST_SUBDIR)/bison && \ | |
b3676d82 | 5822 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
5823 | $(TARGET-bison)) |
5824 | @endif bison | |
8520c408 | 5825 | |
d545f33b | 5826 | |
d545f33b | 5827 | |
d545f33b | 5828 | |
a90ef4bf JM |
5829 | .PHONY: check-bison maybe-check-bison |
5830 | maybe-check-bison: | |
5831 | @if bison | |
5832 | maybe-check-bison: check-bison | |
d545f33b | 5833 | |
a90ef4bf JM |
5834 | # This module is only tested in a native toolchain. |
5835 | check-bison: | |
5836 | @: $(MAKE); $(unstage) | |
22121df0 | 5837 | @if [ '$(host)' = '$(target)' ]; then \ |
a90ef4bf JM |
5838 | r=`${PWD_COMMAND}`; export r; \ |
5839 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 5840 | $(HOST_EXPORTS) \ |
a90ef4bf | 5841 | (cd $(HOST_SUBDIR)/bison && \ |
f91ca6bc | 5842 | $(MAKE) $(FLAGS_TO_PASS) check) |
a90ef4bf | 5843 | fi |
d545f33b | 5844 | |
a90ef4bf | 5845 | @endif bison |
d545f33b | 5846 | |
a90ef4bf JM |
5847 | .PHONY: install-bison maybe-install-bison |
5848 | maybe-install-bison: | |
5849 | @if bison | |
5850 | maybe-install-bison: install-bison | |
d545f33b | 5851 | |
a90ef4bf JM |
5852 | install-bison: installdirs |
5853 | @: $(MAKE); $(unstage) | |
c52c6897 | 5854 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 5855 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
5856 | $(HOST_EXPORTS) \ |
5857 | (cd $(HOST_SUBDIR)/bison && \ | |
5858 | $(MAKE) $(FLAGS_TO_PASS) install) | |
2a4cbe27 | 5859 | |
a90ef4bf | 5860 | @endif bison |
a7254363 | 5861 | |
a90ef4bf JM |
5862 | .PHONY: install-strip-bison maybe-install-strip-bison |
5863 | maybe-install-strip-bison: | |
5864 | @if bison | |
5865 | maybe-install-strip-bison: install-strip-bison | |
d545f33b | 5866 | |
a90ef4bf JM |
5867 | install-strip-bison: installdirs |
5868 | @: $(MAKE); $(unstage) | |
d545f33b PB |
5869 | @r=`${PWD_COMMAND}`; export r; \ |
5870 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
5871 | $(HOST_EXPORTS) \ |
5872 | (cd $(HOST_SUBDIR)/bison && \ | |
5873 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
d545f33b | 5874 | |
a90ef4bf | 5875 | @endif bison |
d545f33b | 5876 | |
a90ef4bf | 5877 | # Other targets (info, dvi, pdf, etc.) |
d545f33b | 5878 | |
a90ef4bf JM |
5879 | .PHONY: maybe-info-bison info-bison |
5880 | maybe-info-bison: | |
5881 | @if bison | |
5882 | maybe-info-bison: info-bison | |
5883 | ||
5884 | info-bison: \ | |
5885 | configure-bison | |
5886 | @: $(MAKE); $(unstage) | |
5887 | @[ -f ./bison/Makefile ] || exit 0; \ | |
5888 | r=`${PWD_COMMAND}`; export r; \ | |
d545f33b PB |
5889 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
5890 | $(HOST_EXPORTS) \ | |
a90ef4bf JM |
5891 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
5892 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
5893 | done; \ | |
22121df0 | 5894 | echo "Doing info in bison"; \ |
a90ef4bf JM |
5895 | (cd $(HOST_SUBDIR)/bison && \ |
5896 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
5897 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5898 | "RANLIB=$${RANLIB}" \ | |
5899 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
5900 | info) \ | |
5901 | || exit 1 | |
d545f33b | 5902 | |
a90ef4bf | 5903 | @endif bison |
d545f33b | 5904 | |
a90ef4bf JM |
5905 | .PHONY: maybe-dvi-bison dvi-bison |
5906 | maybe-dvi-bison: | |
5907 | @if bison | |
5908 | maybe-dvi-bison: dvi-bison | |
d545f33b | 5909 | |
a90ef4bf JM |
5910 | dvi-bison: \ |
5911 | configure-bison | |
5912 | @: $(MAKE); $(unstage) | |
5913 | @[ -f ./bison/Makefile ] || exit 0; \ | |
5914 | r=`${PWD_COMMAND}`; export r; \ | |
d545f33b PB |
5915 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
5916 | $(HOST_EXPORTS) \ | |
a90ef4bf JM |
5917 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
5918 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
5919 | done; \ | |
22121df0 | 5920 | echo "Doing dvi in bison"; \ |
a90ef4bf JM |
5921 | (cd $(HOST_SUBDIR)/bison && \ |
5922 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
5923 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5924 | "RANLIB=$${RANLIB}" \ | |
5925 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
5926 | dvi) \ | |
5927 | || exit 1 | |
d545f33b | 5928 | |
a90ef4bf | 5929 | @endif bison |
d545f33b | 5930 | |
a90ef4bf JM |
5931 | .PHONY: maybe-pdf-bison pdf-bison |
5932 | maybe-pdf-bison: | |
5933 | @if bison | |
5934 | maybe-pdf-bison: pdf-bison | |
d545f33b | 5935 | |
a90ef4bf JM |
5936 | pdf-bison: \ |
5937 | configure-bison | |
5938 | @: $(MAKE); $(unstage) | |
5939 | @[ -f ./bison/Makefile ] || exit 0; \ | |
5940 | r=`${PWD_COMMAND}`; export r; \ | |
d545f33b PB |
5941 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
5942 | $(HOST_EXPORTS) \ | |
a90ef4bf JM |
5943 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
5944 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
5945 | done; \ | |
22121df0 | 5946 | echo "Doing pdf in bison"; \ |
a90ef4bf JM |
5947 | (cd $(HOST_SUBDIR)/bison && \ |
5948 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
5949 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5950 | "RANLIB=$${RANLIB}" \ | |
5951 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
5952 | pdf) \ | |
5953 | || exit 1 | |
d545f33b | 5954 | |
a90ef4bf | 5955 | @endif bison |
d545f33b | 5956 | |
a90ef4bf JM |
5957 | .PHONY: maybe-html-bison html-bison |
5958 | maybe-html-bison: | |
5959 | @if bison | |
5960 | maybe-html-bison: html-bison | |
d545f33b | 5961 | |
a90ef4bf JM |
5962 | html-bison: \ |
5963 | configure-bison | |
5964 | @: $(MAKE); $(unstage) | |
5965 | @[ -f ./bison/Makefile ] || exit 0; \ | |
5966 | r=`${PWD_COMMAND}`; export r; \ | |
d545f33b PB |
5967 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
5968 | $(HOST_EXPORTS) \ | |
a90ef4bf JM |
5969 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
5970 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
5971 | done; \ | |
22121df0 | 5972 | echo "Doing html in bison"; \ |
a90ef4bf JM |
5973 | (cd $(HOST_SUBDIR)/bison && \ |
5974 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
5975 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5976 | "RANLIB=$${RANLIB}" \ | |
5977 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
5978 | html) \ | |
5979 | || exit 1 | |
d545f33b | 5980 | |
a90ef4bf | 5981 | @endif bison |
2a4cbe27 | 5982 | |
a90ef4bf JM |
5983 | .PHONY: maybe-TAGS-bison TAGS-bison |
5984 | maybe-TAGS-bison: | |
5985 | @if bison | |
5986 | maybe-TAGS-bison: TAGS-bison | |
2a4cbe27 | 5987 | |
a90ef4bf JM |
5988 | TAGS-bison: \ |
5989 | configure-bison | |
0aed8855 | 5990 | @: $(MAKE); $(unstage) |
a90ef4bf JM |
5991 | @[ -f ./bison/Makefile ] || exit 0; \ |
5992 | r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 5993 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 5994 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
5995 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
5996 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
5997 | done; \ | |
22121df0 | 5998 | echo "Doing TAGS in bison"; \ |
a90ef4bf JM |
5999 | (cd $(HOST_SUBDIR)/bison && \ |
6000 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
6001 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6002 | "RANLIB=$${RANLIB}" \ | |
6003 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
6004 | TAGS) \ | |
6005 | || exit 1 | |
4fa63067 | 6006 | |
a90ef4bf | 6007 | @endif bison |
4fa63067 | 6008 | |
a90ef4bf JM |
6009 | .PHONY: maybe-install-info-bison install-info-bison |
6010 | maybe-install-info-bison: | |
6011 | @if bison | |
6012 | maybe-install-info-bison: install-info-bison | |
9b980aa1 | 6013 | |
a90ef4bf JM |
6014 | install-info-bison: \ |
6015 | configure-bison \ | |
6016 | info-bison | |
9b980aa1 | 6017 | @: $(MAKE); $(unstage) |
a90ef4bf | 6018 | @[ -f ./bison/Makefile ] || exit 0; \ |
b40e3958 L |
6019 | r=`${PWD_COMMAND}`; export r; \ |
6020 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6021 | $(HOST_EXPORTS) \ |
b813574b | 6022 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6023 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6024 | done; \ | |
22121df0 | 6025 | echo "Doing install-info in bison"; \ |
a90ef4bf | 6026 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
6027 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6028 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6029 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6030 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 6031 | install-info) \ |
2a4cbe27 NN |
6032 | || exit 1 |
6033 | ||
a90ef4bf | 6034 | @endif bison |
2a4cbe27 | 6035 | |
a90ef4bf JM |
6036 | .PHONY: maybe-install-pdf-bison install-pdf-bison |
6037 | maybe-install-pdf-bison: | |
6038 | @if bison | |
6039 | maybe-install-pdf-bison: install-pdf-bison | |
2a4cbe27 | 6040 | |
a90ef4bf JM |
6041 | install-pdf-bison: \ |
6042 | configure-bison \ | |
6043 | pdf-bison | |
6044 | @: $(MAKE); $(unstage) | |
6045 | @[ -f ./bison/Makefile ] || exit 0; \ | |
b40e3958 L |
6046 | r=`${PWD_COMMAND}`; export r; \ |
6047 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6048 | $(HOST_EXPORTS) \ |
b813574b | 6049 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6050 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6051 | done; \ | |
22121df0 | 6052 | echo "Doing install-pdf in bison"; \ |
a90ef4bf | 6053 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
6054 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6055 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6056 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6057 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 6058 | install-pdf) \ |
2a4cbe27 NN |
6059 | || exit 1 |
6060 | ||
a90ef4bf | 6061 | @endif bison |
2a4cbe27 | 6062 | |
a90ef4bf JM |
6063 | .PHONY: maybe-install-html-bison install-html-bison |
6064 | maybe-install-html-bison: | |
6065 | @if bison | |
6066 | maybe-install-html-bison: install-html-bison | |
56a8fe78 | 6067 | |
a90ef4bf JM |
6068 | install-html-bison: \ |
6069 | configure-bison \ | |
6070 | html-bison | |
6071 | @: $(MAKE); $(unstage) | |
6072 | @[ -f ./bison/Makefile ] || exit 0; \ | |
56a8fe78 DD |
6073 | r=`${PWD_COMMAND}`; export r; \ |
6074 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6075 | $(HOST_EXPORTS) \ | |
6076 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6077 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6078 | done; \ | |
22121df0 | 6079 | echo "Doing install-html in bison"; \ |
a90ef4bf | 6080 | (cd $(HOST_SUBDIR)/bison && \ |
56a8fe78 DD |
6081 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6082 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6083 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6084 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 6085 | install-html) \ |
56a8fe78 DD |
6086 | || exit 1 |
6087 | ||
a90ef4bf | 6088 | @endif bison |
56a8fe78 | 6089 | |
a90ef4bf JM |
6090 | .PHONY: maybe-installcheck-bison installcheck-bison |
6091 | maybe-installcheck-bison: | |
6092 | @if bison | |
6093 | maybe-installcheck-bison: installcheck-bison | |
6d389afc | 6094 | |
a90ef4bf JM |
6095 | installcheck-bison: \ |
6096 | configure-bison | |
6097 | @: $(MAKE); $(unstage) | |
6098 | @[ -f ./bison/Makefile ] || exit 0; \ | |
6d389afc MS |
6099 | r=`${PWD_COMMAND}`; export r; \ |
6100 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
6101 | $(HOST_EXPORTS) \ |
6102 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6103 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6104 | done; \ | |
22121df0 | 6105 | echo "Doing installcheck in bison"; \ |
a90ef4bf | 6106 | (cd $(HOST_SUBDIR)/bison && \ |
6d389afc MS |
6107 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6108 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6109 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6110 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 6111 | installcheck) \ |
6d389afc MS |
6112 | || exit 1 |
6113 | ||
a90ef4bf | 6114 | @endif bison |
6d389afc | 6115 | |
a90ef4bf JM |
6116 | .PHONY: maybe-mostlyclean-bison mostlyclean-bison |
6117 | maybe-mostlyclean-bison: | |
6118 | @if bison | |
6119 | maybe-mostlyclean-bison: mostlyclean-bison | |
2a4cbe27 | 6120 | |
a90ef4bf JM |
6121 | mostlyclean-bison: |
6122 | @: $(MAKE); $(unstage) | |
6123 | @[ -f ./bison/Makefile ] || exit 0; \ | |
b40e3958 L |
6124 | r=`${PWD_COMMAND}`; export r; \ |
6125 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6126 | $(HOST_EXPORTS) \ |
b813574b | 6127 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6128 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6129 | done; \ | |
22121df0 | 6130 | echo "Doing mostlyclean in bison"; \ |
a90ef4bf | 6131 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
6132 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6133 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6134 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6135 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 6136 | mostlyclean) \ |
2a4cbe27 NN |
6137 | || exit 1 |
6138 | ||
a90ef4bf | 6139 | @endif bison |
2a4cbe27 | 6140 | |
a90ef4bf JM |
6141 | .PHONY: maybe-clean-bison clean-bison |
6142 | maybe-clean-bison: | |
6143 | @if bison | |
6144 | maybe-clean-bison: clean-bison | |
2a4cbe27 | 6145 | |
a90ef4bf JM |
6146 | clean-bison: |
6147 | @: $(MAKE); $(unstage) | |
6148 | @[ -f ./bison/Makefile ] || exit 0; \ | |
b40e3958 L |
6149 | r=`${PWD_COMMAND}`; export r; \ |
6150 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6151 | $(HOST_EXPORTS) \ |
b813574b | 6152 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6153 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6154 | done; \ | |
22121df0 | 6155 | echo "Doing clean in bison"; \ |
a90ef4bf | 6156 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
6157 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6158 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6159 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6160 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 6161 | clean) \ |
2a4cbe27 NN |
6162 | || exit 1 |
6163 | ||
a90ef4bf | 6164 | @endif bison |
2a4cbe27 | 6165 | |
a90ef4bf JM |
6166 | .PHONY: maybe-distclean-bison distclean-bison |
6167 | maybe-distclean-bison: | |
6168 | @if bison | |
6169 | maybe-distclean-bison: distclean-bison | |
a3ca38d2 | 6170 | |
a90ef4bf JM |
6171 | distclean-bison: |
6172 | @: $(MAKE); $(unstage) | |
6173 | @[ -f ./bison/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
6174 | r=`${PWD_COMMAND}`; export r; \ |
6175 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6176 | $(HOST_EXPORTS) \ | |
6177 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6178 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6179 | done; \ | |
22121df0 | 6180 | echo "Doing distclean in bison"; \ |
a90ef4bf | 6181 | (cd $(HOST_SUBDIR)/bison && \ |
a3ca38d2 DD |
6182 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6183 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6184 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6185 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 6186 | distclean) \ |
a3ca38d2 DD |
6187 | || exit 1 |
6188 | ||
a90ef4bf | 6189 | @endif bison |
a3ca38d2 | 6190 | |
a90ef4bf JM |
6191 | .PHONY: maybe-maintainer-clean-bison maintainer-clean-bison |
6192 | maybe-maintainer-clean-bison: | |
6193 | @if bison | |
6194 | maybe-maintainer-clean-bison: maintainer-clean-bison | |
108a6f8e | 6195 | |
a90ef4bf JM |
6196 | maintainer-clean-bison: |
6197 | @: $(MAKE); $(unstage) | |
6198 | @[ -f ./bison/Makefile ] || exit 0; \ | |
108a6f8e CD |
6199 | r=`${PWD_COMMAND}`; export r; \ |
6200 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6201 | $(HOST_EXPORTS) \ | |
6202 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6203 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6204 | done; \ | |
22121df0 | 6205 | echo "Doing maintainer-clean in bison"; \ |
a90ef4bf | 6206 | (cd $(HOST_SUBDIR)/bison && \ |
108a6f8e CD |
6207 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6208 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6209 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6210 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 6211 | maintainer-clean) \ |
108a6f8e CD |
6212 | || exit 1 |
6213 | ||
a90ef4bf | 6214 | @endif bison |
108a6f8e | 6215 | |
2a4cbe27 | 6216 | |
a90ef4bf JM |
6217 | |
6218 | .PHONY: configure-cgen maybe-configure-cgen | |
6219 | maybe-configure-cgen: | |
6220 | @if gcc-bootstrap | |
6221 | configure-cgen: stage_current | |
6222 | @endif gcc-bootstrap | |
6223 | @if cgen | |
6224 | maybe-configure-cgen: configure-cgen | |
6225 | configure-cgen: | |
6226 | @: $(MAKE); $(unstage) | |
6227 | @r=`${PWD_COMMAND}`; export r; \ | |
6228 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6229 | test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \ | |
22121df0 | 6230 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen; \ |
a90ef4bf JM |
6231 | $(HOST_EXPORTS) \ |
6232 | echo Configuring in $(HOST_SUBDIR)/cgen; \ | |
6233 | cd "$(HOST_SUBDIR)/cgen" || exit 1; \ | |
6234 | case $(srcdir) in \ | |
6235 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
6236 | *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \ | |
6237 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6238 | esac; \ | |
1b6c0831 L |
6239 | module_srcdir=cgen; \ |
6240 | $(SHELL) \ | |
6241 | $$s/$$module_srcdir/configure \ | |
6242 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 6243 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 6244 | --target=${target_alias} \ |
a90ef4bf JM |
6245 | || exit 1 |
6246 | @endif cgen | |
6247 | ||
6248 | ||
6249 | ||
6250 | ||
6251 | ||
6252 | .PHONY: all-cgen maybe-all-cgen | |
6253 | maybe-all-cgen: | |
6254 | @if gcc-bootstrap | |
6255 | all-cgen: stage_current | |
6256 | @endif gcc-bootstrap | |
6257 | @if cgen | |
6258 | TARGET-cgen=all | |
6259 | maybe-all-cgen: all-cgen | |
6260 | all-cgen: configure-cgen | |
6261 | @: $(MAKE); $(unstage) | |
6262 | @r=`${PWD_COMMAND}`; export r; \ | |
6263 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6264 | $(HOST_EXPORTS) \ | |
6265 | (cd $(HOST_SUBDIR)/cgen && \ | |
b3676d82 | 6266 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
6267 | $(TARGET-cgen)) |
6268 | @endif cgen | |
6269 | ||
6270 | ||
6271 | ||
6272 | ||
6273 | .PHONY: check-cgen maybe-check-cgen | |
6274 | maybe-check-cgen: | |
6275 | @if cgen | |
6276 | maybe-check-cgen: check-cgen | |
6277 | ||
6278 | check-cgen: | |
6279 | @: $(MAKE); $(unstage) | |
6280 | @r=`${PWD_COMMAND}`; export r; \ | |
6281 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 6282 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
6283 | (cd $(HOST_SUBDIR)/cgen && \ |
6284 | $(MAKE) $(FLAGS_TO_PASS) check) | |
6285 | ||
6286 | @endif cgen | |
6287 | ||
6288 | .PHONY: install-cgen maybe-install-cgen | |
6289 | maybe-install-cgen: | |
6290 | @if cgen | |
6291 | maybe-install-cgen: install-cgen | |
6292 | ||
6293 | install-cgen: installdirs | |
6294 | @: $(MAKE); $(unstage) | |
6295 | @r=`${PWD_COMMAND}`; export r; \ | |
6296 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6297 | $(HOST_EXPORTS) \ | |
6298 | (cd $(HOST_SUBDIR)/cgen && \ | |
6299 | $(MAKE) $(FLAGS_TO_PASS) install) | |
6300 | ||
6301 | @endif cgen | |
6302 | ||
6303 | .PHONY: install-strip-cgen maybe-install-strip-cgen | |
6304 | maybe-install-strip-cgen: | |
6305 | @if cgen | |
6306 | maybe-install-strip-cgen: install-strip-cgen | |
6307 | ||
6308 | install-strip-cgen: installdirs | |
6309 | @: $(MAKE); $(unstage) | |
6310 | @r=`${PWD_COMMAND}`; export r; \ | |
6311 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6312 | $(HOST_EXPORTS) \ | |
6313 | (cd $(HOST_SUBDIR)/cgen && \ | |
6314 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
6315 | ||
6316 | @endif cgen | |
6317 | ||
6318 | # Other targets (info, dvi, pdf, etc.) | |
6319 | ||
6320 | .PHONY: maybe-info-cgen info-cgen | |
6321 | maybe-info-cgen: | |
6322 | @if cgen | |
6323 | maybe-info-cgen: info-cgen | |
6324 | ||
6325 | info-cgen: \ | |
6326 | configure-cgen | |
6327 | @: $(MAKE); $(unstage) | |
6328 | @[ -f ./cgen/Makefile ] || exit 0; \ | |
b40e3958 L |
6329 | r=`${PWD_COMMAND}`; export r; \ |
6330 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6331 | $(HOST_EXPORTS) \ |
b813574b | 6332 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6333 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6334 | done; \ | |
22121df0 | 6335 | echo "Doing info in cgen"; \ |
a90ef4bf | 6336 | (cd $(HOST_SUBDIR)/cgen && \ |
2a4cbe27 NN |
6337 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6338 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6339 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6340 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 6341 | info) \ |
2a4cbe27 NN |
6342 | || exit 1 |
6343 | ||
a90ef4bf | 6344 | @endif cgen |
2a4cbe27 | 6345 | |
a90ef4bf JM |
6346 | .PHONY: maybe-dvi-cgen dvi-cgen |
6347 | maybe-dvi-cgen: | |
6348 | @if cgen | |
6349 | maybe-dvi-cgen: dvi-cgen | |
2a4cbe27 | 6350 | |
a90ef4bf JM |
6351 | dvi-cgen: \ |
6352 | configure-cgen | |
6353 | @: $(MAKE); $(unstage) | |
6354 | @[ -f ./cgen/Makefile ] || exit 0; \ | |
b40e3958 L |
6355 | r=`${PWD_COMMAND}`; export r; \ |
6356 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6357 | $(HOST_EXPORTS) \ |
b813574b | 6358 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6359 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6360 | done; \ | |
22121df0 | 6361 | echo "Doing dvi in cgen"; \ |
a90ef4bf | 6362 | (cd $(HOST_SUBDIR)/cgen && \ |
2a4cbe27 NN |
6363 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6364 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6365 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6366 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 6367 | dvi) \ |
2a4cbe27 NN |
6368 | || exit 1 |
6369 | ||
a90ef4bf | 6370 | @endif cgen |
2a4cbe27 | 6371 | |
a90ef4bf JM |
6372 | .PHONY: maybe-pdf-cgen pdf-cgen |
6373 | maybe-pdf-cgen: | |
6374 | @if cgen | |
6375 | maybe-pdf-cgen: pdf-cgen | |
2a4cbe27 | 6376 | |
a90ef4bf JM |
6377 | pdf-cgen: \ |
6378 | configure-cgen | |
6379 | @: $(MAKE); $(unstage) | |
6380 | @[ -f ./cgen/Makefile ] || exit 0; \ | |
b40e3958 L |
6381 | r=`${PWD_COMMAND}`; export r; \ |
6382 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6383 | $(HOST_EXPORTS) \ |
b813574b | 6384 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6385 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6386 | done; \ | |
22121df0 | 6387 | echo "Doing pdf in cgen"; \ |
a90ef4bf | 6388 | (cd $(HOST_SUBDIR)/cgen && \ |
2a4cbe27 NN |
6389 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6390 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6391 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6392 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 6393 | pdf) \ |
2a4cbe27 NN |
6394 | || exit 1 |
6395 | ||
a90ef4bf | 6396 | @endif cgen |
2a4cbe27 | 6397 | |
a90ef4bf JM |
6398 | .PHONY: maybe-html-cgen html-cgen |
6399 | maybe-html-cgen: | |
6400 | @if cgen | |
6401 | maybe-html-cgen: html-cgen | |
2a4cbe27 | 6402 | |
a90ef4bf JM |
6403 | html-cgen: \ |
6404 | configure-cgen | |
6405 | @: $(MAKE); $(unstage) | |
6406 | @[ -f ./cgen/Makefile ] || exit 0; \ | |
b40e3958 L |
6407 | r=`${PWD_COMMAND}`; export r; \ |
6408 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6409 | $(HOST_EXPORTS) \ |
b813574b | 6410 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6411 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6412 | done; \ | |
22121df0 | 6413 | echo "Doing html in cgen"; \ |
a90ef4bf | 6414 | (cd $(HOST_SUBDIR)/cgen && \ |
2a4cbe27 NN |
6415 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6416 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6417 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6418 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 6419 | html) \ |
2a4cbe27 NN |
6420 | || exit 1 |
6421 | ||
a90ef4bf | 6422 | @endif cgen |
2a4cbe27 | 6423 | |
a90ef4bf JM |
6424 | .PHONY: maybe-TAGS-cgen TAGS-cgen |
6425 | maybe-TAGS-cgen: | |
6426 | @if cgen | |
6427 | maybe-TAGS-cgen: TAGS-cgen | |
2a4cbe27 | 6428 | |
a90ef4bf JM |
6429 | TAGS-cgen: \ |
6430 | configure-cgen | |
6431 | @: $(MAKE); $(unstage) | |
6432 | @[ -f ./cgen/Makefile ] || exit 0; \ | |
b40e3958 L |
6433 | r=`${PWD_COMMAND}`; export r; \ |
6434 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6435 | $(HOST_EXPORTS) \ |
b813574b | 6436 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6437 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6438 | done; \ | |
22121df0 | 6439 | echo "Doing TAGS in cgen"; \ |
a90ef4bf | 6440 | (cd $(HOST_SUBDIR)/cgen && \ |
2a4cbe27 NN |
6441 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6442 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6443 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6444 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 6445 | TAGS) \ |
2a4cbe27 NN |
6446 | || exit 1 |
6447 | ||
a90ef4bf | 6448 | @endif cgen |
2a4cbe27 | 6449 | |
a90ef4bf JM |
6450 | .PHONY: maybe-install-info-cgen install-info-cgen |
6451 | maybe-install-info-cgen: | |
6452 | @if cgen | |
6453 | maybe-install-info-cgen: install-info-cgen | |
2a4cbe27 | 6454 | |
a90ef4bf JM |
6455 | install-info-cgen: \ |
6456 | configure-cgen \ | |
6457 | info-cgen | |
6458 | @: $(MAKE); $(unstage) | |
6459 | @[ -f ./cgen/Makefile ] || exit 0; \ | |
6460 | r=`${PWD_COMMAND}`; export r; \ | |
6461 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6462 | $(HOST_EXPORTS) \ | |
6463 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6464 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6465 | done; \ | |
22121df0 | 6466 | echo "Doing install-info in cgen"; \ |
a90ef4bf JM |
6467 | (cd $(HOST_SUBDIR)/cgen && \ |
6468 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
6469 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6470 | "RANLIB=$${RANLIB}" \ | |
6471 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
6472 | install-info) \ | |
6473 | || exit 1 | |
a7254363 | 6474 | |
a90ef4bf JM |
6475 | @endif cgen |
6476 | ||
6477 | .PHONY: maybe-install-pdf-cgen install-pdf-cgen | |
6478 | maybe-install-pdf-cgen: | |
6479 | @if cgen | |
6480 | maybe-install-pdf-cgen: install-pdf-cgen | |
6481 | ||
6482 | install-pdf-cgen: \ | |
6483 | configure-cgen \ | |
6484 | pdf-cgen | |
6485 | @: $(MAKE); $(unstage) | |
6486 | @[ -f ./cgen/Makefile ] || exit 0; \ | |
6487 | r=`${PWD_COMMAND}`; export r; \ | |
c52c6897 | 6488 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
6489 | $(HOST_EXPORTS) \ |
6490 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6491 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6492 | done; \ | |
22121df0 | 6493 | echo "Doing install-pdf in cgen"; \ |
a90ef4bf JM |
6494 | (cd $(HOST_SUBDIR)/cgen && \ |
6495 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
6496 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6497 | "RANLIB=$${RANLIB}" \ | |
6498 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
6499 | install-pdf) \ | |
2a4cbe27 NN |
6500 | || exit 1 |
6501 | ||
a90ef4bf | 6502 | @endif cgen |
a7254363 | 6503 | |
a90ef4bf JM |
6504 | .PHONY: maybe-install-html-cgen install-html-cgen |
6505 | maybe-install-html-cgen: | |
6506 | @if cgen | |
6507 | maybe-install-html-cgen: install-html-cgen | |
a7254363 | 6508 | |
a90ef4bf JM |
6509 | install-html-cgen: \ |
6510 | configure-cgen \ | |
6511 | html-cgen | |
6512 | @: $(MAKE); $(unstage) | |
6513 | @[ -f ./cgen/Makefile ] || exit 0; \ | |
6514 | r=`${PWD_COMMAND}`; export r; \ | |
c52c6897 | 6515 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1b05fbbd | 6516 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
6517 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
6518 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6519 | done; \ | |
22121df0 | 6520 | echo "Doing install-html in cgen"; \ |
a90ef4bf JM |
6521 | (cd $(HOST_SUBDIR)/cgen && \ |
6522 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
6523 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6524 | "RANLIB=$${RANLIB}" \ | |
6525 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
6526 | install-html) \ | |
6527 | || exit 1 | |
d545f33b | 6528 | |
a90ef4bf JM |
6529 | @endif cgen |
6530 | ||
6531 | .PHONY: maybe-installcheck-cgen installcheck-cgen | |
6532 | maybe-installcheck-cgen: | |
6533 | @if cgen | |
6534 | maybe-installcheck-cgen: installcheck-cgen | |
6535 | ||
6536 | installcheck-cgen: \ | |
6537 | configure-cgen | |
6538 | @: $(MAKE); $(unstage) | |
6539 | @[ -f ./cgen/Makefile ] || exit 0; \ | |
6540 | r=`${PWD_COMMAND}`; export r; \ | |
c52c6897 | 6541 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
d545f33b | 6542 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
6543 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
6544 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6545 | done; \ | |
22121df0 | 6546 | echo "Doing installcheck in cgen"; \ |
a90ef4bf JM |
6547 | (cd $(HOST_SUBDIR)/cgen && \ |
6548 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
6549 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6550 | "RANLIB=$${RANLIB}" \ | |
6551 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
6552 | installcheck) \ | |
6553 | || exit 1 | |
8520c408 | 6554 | |
a90ef4bf JM |
6555 | @endif cgen |
6556 | ||
6557 | .PHONY: maybe-mostlyclean-cgen mostlyclean-cgen | |
6558 | maybe-mostlyclean-cgen: | |
6559 | @if cgen | |
6560 | maybe-mostlyclean-cgen: mostlyclean-cgen | |
6561 | ||
6562 | mostlyclean-cgen: | |
6563 | @: $(MAKE); $(unstage) | |
6564 | @[ -f ./cgen/Makefile ] || exit 0; \ | |
6565 | r=`${PWD_COMMAND}`; export r; \ | |
c52c6897 | 6566 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
d545f33b | 6567 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
6568 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
6569 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6570 | done; \ | |
22121df0 | 6571 | echo "Doing mostlyclean in cgen"; \ |
a90ef4bf JM |
6572 | (cd $(HOST_SUBDIR)/cgen && \ |
6573 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
6574 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6575 | "RANLIB=$${RANLIB}" \ | |
6576 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
6577 | mostlyclean) \ | |
6578 | || exit 1 | |
8520c408 | 6579 | |
a90ef4bf JM |
6580 | @endif cgen |
6581 | ||
6582 | .PHONY: maybe-clean-cgen clean-cgen | |
6583 | maybe-clean-cgen: | |
6584 | @if cgen | |
6585 | maybe-clean-cgen: clean-cgen | |
6586 | ||
6587 | clean-cgen: | |
6588 | @: $(MAKE); $(unstage) | |
6589 | @[ -f ./cgen/Makefile ] || exit 0; \ | |
6590 | r=`${PWD_COMMAND}`; export r; \ | |
c52c6897 | 6591 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
d545f33b | 6592 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
6593 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
6594 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6595 | done; \ | |
22121df0 | 6596 | echo "Doing clean in cgen"; \ |
a90ef4bf JM |
6597 | (cd $(HOST_SUBDIR)/cgen && \ |
6598 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
6599 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6600 | "RANLIB=$${RANLIB}" \ | |
6601 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
6602 | clean) \ | |
6603 | || exit 1 | |
d545f33b | 6604 | |
a90ef4bf JM |
6605 | @endif cgen |
6606 | ||
6607 | .PHONY: maybe-distclean-cgen distclean-cgen | |
6608 | maybe-distclean-cgen: | |
6609 | @if cgen | |
6610 | maybe-distclean-cgen: distclean-cgen | |
6611 | ||
6612 | distclean-cgen: | |
6613 | @: $(MAKE); $(unstage) | |
6614 | @[ -f ./cgen/Makefile ] || exit 0; \ | |
6615 | r=`${PWD_COMMAND}`; export r; \ | |
c52c6897 | 6616 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
d545f33b | 6617 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
6618 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
6619 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6620 | done; \ | |
22121df0 | 6621 | echo "Doing distclean in cgen"; \ |
a90ef4bf JM |
6622 | (cd $(HOST_SUBDIR)/cgen && \ |
6623 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
6624 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6625 | "RANLIB=$${RANLIB}" \ | |
6626 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
6627 | distclean) \ | |
6628 | || exit 1 | |
d545f33b | 6629 | |
a90ef4bf JM |
6630 | @endif cgen |
6631 | ||
6632 | .PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen | |
6633 | maybe-maintainer-clean-cgen: | |
6634 | @if cgen | |
6635 | maybe-maintainer-clean-cgen: maintainer-clean-cgen | |
6636 | ||
6637 | maintainer-clean-cgen: | |
6638 | @: $(MAKE); $(unstage) | |
6639 | @[ -f ./cgen/Makefile ] || exit 0; \ | |
6640 | r=`${PWD_COMMAND}`; export r; \ | |
c52c6897 | 6641 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
d545f33b | 6642 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
6643 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
6644 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6645 | done; \ | |
22121df0 | 6646 | echo "Doing maintainer-clean in cgen"; \ |
a90ef4bf JM |
6647 | (cd $(HOST_SUBDIR)/cgen && \ |
6648 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
6649 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6650 | "RANLIB=$${RANLIB}" \ | |
6651 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
6652 | maintainer-clean) \ | |
6653 | || exit 1 | |
6654 | ||
6655 | @endif cgen | |
6656 | ||
6657 | ||
6658 | ||
6659 | .PHONY: configure-dejagnu maybe-configure-dejagnu | |
6660 | maybe-configure-dejagnu: | |
6661 | @if gcc-bootstrap | |
6662 | configure-dejagnu: stage_current | |
6663 | @endif gcc-bootstrap | |
6664 | @if dejagnu | |
6665 | maybe-configure-dejagnu: configure-dejagnu | |
6666 | configure-dejagnu: | |
6667 | @: $(MAKE); $(unstage) | |
6668 | @r=`${PWD_COMMAND}`; export r; \ | |
6669 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6670 | test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \ | |
22121df0 | 6671 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu; \ |
a90ef4bf JM |
6672 | $(HOST_EXPORTS) \ |
6673 | echo Configuring in $(HOST_SUBDIR)/dejagnu; \ | |
6674 | cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \ | |
d545f33b PB |
6675 | case $(srcdir) in \ |
6676 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 6677 | *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \ |
d545f33b PB |
6678 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
6679 | esac; \ | |
1b6c0831 L |
6680 | module_srcdir=dejagnu; \ |
6681 | $(SHELL) \ | |
6682 | $$s/$$module_srcdir/configure \ | |
6683 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 6684 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 6685 | --target=${target_alias} \ |
a90ef4bf JM |
6686 | || exit 1 |
6687 | @endif dejagnu | |
d545f33b PB |
6688 | |
6689 | ||
6690 | ||
6691 | ||
6692 | ||
a90ef4bf JM |
6693 | .PHONY: all-dejagnu maybe-all-dejagnu |
6694 | maybe-all-dejagnu: | |
4f0ef2d8 | 6695 | @if gcc-bootstrap |
a90ef4bf | 6696 | all-dejagnu: stage_current |
4f0ef2d8 | 6697 | @endif gcc-bootstrap |
a90ef4bf JM |
6698 | @if dejagnu |
6699 | TARGET-dejagnu=all | |
6700 | maybe-all-dejagnu: all-dejagnu | |
6701 | all-dejagnu: configure-dejagnu | |
6702 | @: $(MAKE); $(unstage) | |
c52c6897 | 6703 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 6704 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1f53ca9a | 6705 | $(HOST_EXPORTS) \ |
a90ef4bf | 6706 | (cd $(HOST_SUBDIR)/dejagnu && \ |
b3676d82 | 6707 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
6708 | $(TARGET-dejagnu)) |
6709 | @endif dejagnu | |
4fa63067 | 6710 | |
a7254363 | 6711 | |
4fa63067 | 6712 | |
a90ef4bf JM |
6713 | |
6714 | .PHONY: check-dejagnu maybe-check-dejagnu | |
6715 | maybe-check-dejagnu: | |
6716 | @if dejagnu | |
6717 | maybe-check-dejagnu: check-dejagnu | |
6718 | ||
6719 | check-dejagnu: | |
6720 | @: $(MAKE); $(unstage) | |
4fa63067 NN |
6721 | @r=`${PWD_COMMAND}`; export r; \ |
6722 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 6723 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
6724 | (cd $(HOST_SUBDIR)/dejagnu && \ |
6725 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 6726 | |
a90ef4bf | 6727 | @endif dejagnu |
2a4cbe27 | 6728 | |
a90ef4bf JM |
6729 | .PHONY: install-dejagnu maybe-install-dejagnu |
6730 | maybe-install-dejagnu: | |
6731 | @if dejagnu | |
6732 | maybe-install-dejagnu: install-dejagnu | |
2a4cbe27 | 6733 | |
a90ef4bf JM |
6734 | install-dejagnu: installdirs |
6735 | @: $(MAKE); $(unstage) | |
4fa63067 | 6736 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 6737 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 6738 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
6739 | (cd $(HOST_SUBDIR)/dejagnu && \ |
6740 | $(MAKE) $(FLAGS_TO_PASS) install) | |
2a4cbe27 | 6741 | |
a90ef4bf | 6742 | @endif dejagnu |
d545f33b | 6743 | |
a90ef4bf JM |
6744 | .PHONY: install-strip-dejagnu maybe-install-strip-dejagnu |
6745 | maybe-install-strip-dejagnu: | |
6746 | @if dejagnu | |
6747 | maybe-install-strip-dejagnu: install-strip-dejagnu | |
9b980aa1 | 6748 | |
a90ef4bf | 6749 | install-strip-dejagnu: installdirs |
9b980aa1 RW |
6750 | @: $(MAKE); $(unstage) |
6751 | @r=`${PWD_COMMAND}`; export r; \ | |
6752 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6753 | $(HOST_EXPORTS) \ | |
a90ef4bf | 6754 | (cd $(HOST_SUBDIR)/dejagnu && \ |
9b980aa1 RW |
6755 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
6756 | ||
a90ef4bf | 6757 | @endif dejagnu |
9b980aa1 | 6758 | |
56a8fe78 | 6759 | # Other targets (info, dvi, pdf, etc.) |
d545f33b | 6760 | |
a90ef4bf JM |
6761 | .PHONY: maybe-info-dejagnu info-dejagnu |
6762 | maybe-info-dejagnu: | |
6763 | @if dejagnu | |
6764 | maybe-info-dejagnu: info-dejagnu | |
d545f33b | 6765 | |
a90ef4bf JM |
6766 | info-dejagnu: \ |
6767 | configure-dejagnu | |
6768 | @: $(MAKE); $(unstage) | |
6769 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
d545f33b PB |
6770 | r=`${PWD_COMMAND}`; export r; \ |
6771 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6772 | $(HOST_EXPORTS) \ | |
6773 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6774 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6775 | done; \ | |
22121df0 | 6776 | echo "Doing info in dejagnu"; \ |
a90ef4bf | 6777 | (cd $(HOST_SUBDIR)/dejagnu && \ |
d545f33b PB |
6778 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6779 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6780 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6781 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
d545f33b PB |
6782 | info) \ |
6783 | || exit 1 | |
6784 | ||
a90ef4bf | 6785 | @endif dejagnu |
d545f33b | 6786 | |
a90ef4bf JM |
6787 | .PHONY: maybe-dvi-dejagnu dvi-dejagnu |
6788 | maybe-dvi-dejagnu: | |
6789 | @if dejagnu | |
6790 | maybe-dvi-dejagnu: dvi-dejagnu | |
d545f33b | 6791 | |
a90ef4bf JM |
6792 | dvi-dejagnu: \ |
6793 | configure-dejagnu | |
6794 | @: $(MAKE); $(unstage) | |
6795 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
d545f33b PB |
6796 | r=`${PWD_COMMAND}`; export r; \ |
6797 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6798 | $(HOST_EXPORTS) \ | |
6799 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6800 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6801 | done; \ | |
22121df0 | 6802 | echo "Doing dvi in dejagnu"; \ |
a90ef4bf | 6803 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
6804 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6805 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6806 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6807 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 6808 | dvi) \ |
2a4cbe27 NN |
6809 | || exit 1 |
6810 | ||
a90ef4bf | 6811 | @endif dejagnu |
2a4cbe27 | 6812 | |
a90ef4bf JM |
6813 | .PHONY: maybe-pdf-dejagnu pdf-dejagnu |
6814 | maybe-pdf-dejagnu: | |
6815 | @if dejagnu | |
6816 | maybe-pdf-dejagnu: pdf-dejagnu | |
56a8fe78 | 6817 | |
a90ef4bf JM |
6818 | pdf-dejagnu: \ |
6819 | configure-dejagnu | |
6820 | @: $(MAKE); $(unstage) | |
6821 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
56a8fe78 DD |
6822 | r=`${PWD_COMMAND}`; export r; \ |
6823 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6824 | $(HOST_EXPORTS) \ | |
6825 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6826 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6827 | done; \ | |
22121df0 | 6828 | echo "Doing pdf in dejagnu"; \ |
a90ef4bf | 6829 | (cd $(HOST_SUBDIR)/dejagnu && \ |
56a8fe78 DD |
6830 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6831 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6832 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6833 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
6834 | pdf) \ |
6835 | || exit 1 | |
6836 | ||
a90ef4bf | 6837 | @endif dejagnu |
56a8fe78 | 6838 | |
a90ef4bf JM |
6839 | .PHONY: maybe-html-dejagnu html-dejagnu |
6840 | maybe-html-dejagnu: | |
6841 | @if dejagnu | |
6842 | maybe-html-dejagnu: html-dejagnu | |
6d389afc | 6843 | |
a90ef4bf JM |
6844 | html-dejagnu: \ |
6845 | configure-dejagnu | |
6846 | @: $(MAKE); $(unstage) | |
6847 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
6d389afc MS |
6848 | r=`${PWD_COMMAND}`; export r; \ |
6849 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
6850 | $(HOST_EXPORTS) \ |
6851 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6852 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6853 | done; \ | |
22121df0 | 6854 | echo "Doing html in dejagnu"; \ |
a90ef4bf | 6855 | (cd $(HOST_SUBDIR)/dejagnu && \ |
6d389afc MS |
6856 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6857 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6858 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6859 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
6860 | html) \ |
6861 | || exit 1 | |
6862 | ||
a90ef4bf | 6863 | @endif dejagnu |
6d389afc | 6864 | |
a90ef4bf JM |
6865 | .PHONY: maybe-TAGS-dejagnu TAGS-dejagnu |
6866 | maybe-TAGS-dejagnu: | |
6867 | @if dejagnu | |
6868 | maybe-TAGS-dejagnu: TAGS-dejagnu | |
2a4cbe27 | 6869 | |
a90ef4bf JM |
6870 | TAGS-dejagnu: \ |
6871 | configure-dejagnu | |
6872 | @: $(MAKE); $(unstage) | |
6873 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
6874 | r=`${PWD_COMMAND}`; export r; \ |
6875 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6876 | $(HOST_EXPORTS) \ |
b813574b | 6877 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6878 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6879 | done; \ | |
22121df0 | 6880 | echo "Doing TAGS in dejagnu"; \ |
a90ef4bf | 6881 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
6882 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6883 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6884 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6885 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 6886 | TAGS) \ |
2a4cbe27 NN |
6887 | || exit 1 |
6888 | ||
a90ef4bf | 6889 | @endif dejagnu |
2a4cbe27 | 6890 | |
a90ef4bf JM |
6891 | .PHONY: maybe-install-info-dejagnu install-info-dejagnu |
6892 | maybe-install-info-dejagnu: | |
6893 | @if dejagnu | |
6894 | maybe-install-info-dejagnu: install-info-dejagnu | |
2a4cbe27 | 6895 | |
a90ef4bf JM |
6896 | install-info-dejagnu: \ |
6897 | configure-dejagnu \ | |
6898 | info-dejagnu | |
6899 | @: $(MAKE); $(unstage) | |
6900 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
6901 | r=`${PWD_COMMAND}`; export r; \ |
6902 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6903 | $(HOST_EXPORTS) \ |
b813574b | 6904 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6905 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6906 | done; \ | |
22121df0 | 6907 | echo "Doing install-info in dejagnu"; \ |
a90ef4bf | 6908 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
6909 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6910 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6911 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6912 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 6913 | install-info) \ |
2a4cbe27 NN |
6914 | || exit 1 |
6915 | ||
a90ef4bf | 6916 | @endif dejagnu |
2a4cbe27 | 6917 | |
a90ef4bf JM |
6918 | .PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu |
6919 | maybe-install-pdf-dejagnu: | |
6920 | @if dejagnu | |
6921 | maybe-install-pdf-dejagnu: install-pdf-dejagnu | |
a3ca38d2 | 6922 | |
a90ef4bf JM |
6923 | install-pdf-dejagnu: \ |
6924 | configure-dejagnu \ | |
6925 | pdf-dejagnu | |
6926 | @: $(MAKE); $(unstage) | |
6927 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
6928 | r=`${PWD_COMMAND}`; export r; \ |
6929 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6930 | $(HOST_EXPORTS) \ | |
6931 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6932 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6933 | done; \ | |
22121df0 | 6934 | echo "Doing install-pdf in dejagnu"; \ |
a90ef4bf | 6935 | (cd $(HOST_SUBDIR)/dejagnu && \ |
a3ca38d2 DD |
6936 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6937 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6938 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6939 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
6940 | install-pdf) \ |
6941 | || exit 1 | |
6942 | ||
a90ef4bf | 6943 | @endif dejagnu |
a3ca38d2 | 6944 | |
a90ef4bf JM |
6945 | .PHONY: maybe-install-html-dejagnu install-html-dejagnu |
6946 | maybe-install-html-dejagnu: | |
6947 | @if dejagnu | |
6948 | maybe-install-html-dejagnu: install-html-dejagnu | |
108a6f8e | 6949 | |
a90ef4bf JM |
6950 | install-html-dejagnu: \ |
6951 | configure-dejagnu \ | |
6952 | html-dejagnu | |
6953 | @: $(MAKE); $(unstage) | |
6954 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
108a6f8e CD |
6955 | r=`${PWD_COMMAND}`; export r; \ |
6956 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6957 | $(HOST_EXPORTS) \ | |
6958 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6959 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6960 | done; \ | |
22121df0 | 6961 | echo "Doing install-html in dejagnu"; \ |
a90ef4bf | 6962 | (cd $(HOST_SUBDIR)/dejagnu && \ |
108a6f8e CD |
6963 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6964 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6965 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6966 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
6967 | install-html) \ |
6968 | || exit 1 | |
6969 | ||
a90ef4bf | 6970 | @endif dejagnu |
108a6f8e | 6971 | |
a90ef4bf JM |
6972 | .PHONY: maybe-installcheck-dejagnu installcheck-dejagnu |
6973 | maybe-installcheck-dejagnu: | |
6974 | @if dejagnu | |
6975 | maybe-installcheck-dejagnu: installcheck-dejagnu | |
2a4cbe27 | 6976 | |
a90ef4bf JM |
6977 | installcheck-dejagnu: \ |
6978 | configure-dejagnu | |
6979 | @: $(MAKE); $(unstage) | |
6980 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
6981 | r=`${PWD_COMMAND}`; export r; \ |
6982 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6983 | $(HOST_EXPORTS) \ |
b813574b | 6984 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6985 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6986 | done; \ | |
22121df0 | 6987 | echo "Doing installcheck in dejagnu"; \ |
a90ef4bf | 6988 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
6989 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6990 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6991 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 6992 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 6993 | installcheck) \ |
2a4cbe27 NN |
6994 | || exit 1 |
6995 | ||
a90ef4bf | 6996 | @endif dejagnu |
2a4cbe27 | 6997 | |
a90ef4bf JM |
6998 | .PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu |
6999 | maybe-mostlyclean-dejagnu: | |
7000 | @if dejagnu | |
7001 | maybe-mostlyclean-dejagnu: mostlyclean-dejagnu | |
2a4cbe27 | 7002 | |
a90ef4bf JM |
7003 | mostlyclean-dejagnu: |
7004 | @: $(MAKE); $(unstage) | |
7005 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
7006 | r=`${PWD_COMMAND}`; export r; \ |
7007 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7008 | $(HOST_EXPORTS) \ |
b813574b | 7009 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7010 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7011 | done; \ | |
22121df0 | 7012 | echo "Doing mostlyclean in dejagnu"; \ |
a90ef4bf | 7013 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
7014 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7015 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7016 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7017 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7018 | mostlyclean) \ |
2a4cbe27 NN |
7019 | || exit 1 |
7020 | ||
a90ef4bf | 7021 | @endif dejagnu |
2a4cbe27 | 7022 | |
a90ef4bf JM |
7023 | .PHONY: maybe-clean-dejagnu clean-dejagnu |
7024 | maybe-clean-dejagnu: | |
7025 | @if dejagnu | |
7026 | maybe-clean-dejagnu: clean-dejagnu | |
2a4cbe27 | 7027 | |
a90ef4bf JM |
7028 | clean-dejagnu: |
7029 | @: $(MAKE); $(unstage) | |
7030 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
7031 | r=`${PWD_COMMAND}`; export r; \ |
7032 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7033 | $(HOST_EXPORTS) \ |
b813574b | 7034 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7035 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7036 | done; \ | |
22121df0 | 7037 | echo "Doing clean in dejagnu"; \ |
a90ef4bf | 7038 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
7039 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7040 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7041 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7042 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7043 | clean) \ |
2a4cbe27 NN |
7044 | || exit 1 |
7045 | ||
a90ef4bf | 7046 | @endif dejagnu |
2a4cbe27 | 7047 | |
a90ef4bf JM |
7048 | .PHONY: maybe-distclean-dejagnu distclean-dejagnu |
7049 | maybe-distclean-dejagnu: | |
7050 | @if dejagnu | |
7051 | maybe-distclean-dejagnu: distclean-dejagnu | |
2a4cbe27 | 7052 | |
a90ef4bf JM |
7053 | distclean-dejagnu: |
7054 | @: $(MAKE); $(unstage) | |
7055 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
7056 | r=`${PWD_COMMAND}`; export r; \ |
7057 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7058 | $(HOST_EXPORTS) \ |
b813574b | 7059 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7060 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7061 | done; \ | |
22121df0 | 7062 | echo "Doing distclean in dejagnu"; \ |
a90ef4bf | 7063 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
7064 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7065 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7066 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7067 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7068 | distclean) \ |
2a4cbe27 NN |
7069 | || exit 1 |
7070 | ||
a90ef4bf | 7071 | @endif dejagnu |
2a4cbe27 | 7072 | |
a90ef4bf JM |
7073 | .PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu |
7074 | maybe-maintainer-clean-dejagnu: | |
7075 | @if dejagnu | |
7076 | maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu | |
2a4cbe27 | 7077 | |
a90ef4bf JM |
7078 | maintainer-clean-dejagnu: |
7079 | @: $(MAKE); $(unstage) | |
7080 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
b40e3958 L |
7081 | r=`${PWD_COMMAND}`; export r; \ |
7082 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7083 | $(HOST_EXPORTS) \ |
b813574b | 7084 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7085 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7086 | done; \ | |
22121df0 | 7087 | echo "Doing maintainer-clean in dejagnu"; \ |
a90ef4bf | 7088 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
7089 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7090 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7091 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7092 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7093 | maintainer-clean) \ |
2a4cbe27 NN |
7094 | || exit 1 |
7095 | ||
a90ef4bf | 7096 | @endif dejagnu |
2a4cbe27 | 7097 | |
2a4cbe27 | 7098 | |
a7254363 | 7099 | |
a90ef4bf JM |
7100 | .PHONY: configure-etc maybe-configure-etc |
7101 | maybe-configure-etc: | |
4f0ef2d8 | 7102 | @if gcc-bootstrap |
a90ef4bf | 7103 | configure-etc: stage_current |
4f0ef2d8 | 7104 | @endif gcc-bootstrap |
a90ef4bf JM |
7105 | @if etc |
7106 | maybe-configure-etc: configure-etc | |
7107 | configure-etc: | |
0aed8855 | 7108 | @: $(MAKE); $(unstage) |
c52c6897 | 7109 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 7110 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 7111 | test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \ |
22121df0 | 7112 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc; \ |
1f53ca9a | 7113 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
7114 | echo Configuring in $(HOST_SUBDIR)/etc; \ |
7115 | cd "$(HOST_SUBDIR)/etc" || exit 1; \ | |
4fa63067 | 7116 | case $(srcdir) in \ |
b00612cc | 7117 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 7118 | *) topdir=`echo $(HOST_SUBDIR)/etc/ | \ |
b00612cc | 7119 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 7120 | esac; \ |
1b6c0831 L |
7121 | module_srcdir=etc; \ |
7122 | $(SHELL) \ | |
7123 | $$s/$$module_srcdir/configure \ | |
7124 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 7125 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 7126 | --target=${target_alias} \ |
2a4cbe27 | 7127 | || exit 1 |
a90ef4bf | 7128 | @endif etc |
2a4cbe27 | 7129 | |
a7254363 PB |
7130 | |
7131 | ||
d545f33b PB |
7132 | |
7133 | ||
a90ef4bf JM |
7134 | .PHONY: all-etc maybe-all-etc |
7135 | maybe-all-etc: | |
4f0ef2d8 | 7136 | @if gcc-bootstrap |
a90ef4bf | 7137 | all-etc: stage_current |
4f0ef2d8 | 7138 | @endif gcc-bootstrap |
a90ef4bf JM |
7139 | @if etc |
7140 | TARGET-etc=all | |
7141 | maybe-all-etc: all-etc | |
7142 | all-etc: configure-etc | |
0aed8855 | 7143 | @: $(MAKE); $(unstage) |
4fa63067 NN |
7144 | @r=`${PWD_COMMAND}`; export r; \ |
7145 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 7146 | $(HOST_EXPORTS) \ |
a90ef4bf | 7147 | (cd $(HOST_SUBDIR)/etc && \ |
b3676d82 | 7148 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
7149 | $(TARGET-etc)) |
7150 | @endif etc | |
2a4cbe27 | 7151 | |
a7254363 | 7152 | |
d545f33b PB |
7153 | |
7154 | ||
a90ef4bf JM |
7155 | .PHONY: check-etc maybe-check-etc |
7156 | maybe-check-etc: | |
7157 | @if etc | |
7158 | maybe-check-etc: check-etc | |
2a4cbe27 | 7159 | |
a90ef4bf | 7160 | check-etc: |
0aed8855 | 7161 | @: $(MAKE); $(unstage) |
a90ef4bf JM |
7162 | @r=`${PWD_COMMAND}`; export r; \ |
7163 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 7164 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
7165 | (cd $(HOST_SUBDIR)/etc && \ |
7166 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 7167 | |
a90ef4bf | 7168 | @endif etc |
4fa63067 | 7169 | |
a90ef4bf JM |
7170 | .PHONY: install-etc maybe-install-etc |
7171 | maybe-install-etc: | |
7172 | @if etc | |
7173 | maybe-install-etc: install-etc | |
4fa63067 | 7174 | |
a90ef4bf | 7175 | install-etc: installdirs |
0aed8855 | 7176 | @: $(MAKE); $(unstage) |
4fa63067 | 7177 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 7178 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 7179 | $(HOST_EXPORTS) \ |
a90ef4bf | 7180 | (cd $(HOST_SUBDIR)/etc && \ |
2da12f12 | 7181 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 7182 | |
a90ef4bf | 7183 | @endif etc |
2a4cbe27 | 7184 | |
a90ef4bf JM |
7185 | .PHONY: install-strip-etc maybe-install-strip-etc |
7186 | maybe-install-strip-etc: | |
7187 | @if etc | |
7188 | maybe-install-strip-etc: install-strip-etc | |
9b980aa1 | 7189 | |
a90ef4bf | 7190 | install-strip-etc: installdirs |
9b980aa1 RW |
7191 | @: $(MAKE); $(unstage) |
7192 | @r=`${PWD_COMMAND}`; export r; \ | |
7193 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7194 | $(HOST_EXPORTS) \ | |
a90ef4bf | 7195 | (cd $(HOST_SUBDIR)/etc && \ |
9b980aa1 RW |
7196 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
7197 | ||
a90ef4bf | 7198 | @endif etc |
9b980aa1 | 7199 | |
56a8fe78 | 7200 | # Other targets (info, dvi, pdf, etc.) |
2a4cbe27 | 7201 | |
a90ef4bf JM |
7202 | .PHONY: maybe-info-etc info-etc |
7203 | maybe-info-etc: | |
7204 | @if etc | |
7205 | maybe-info-etc: info-etc | |
4fa63067 | 7206 | |
a90ef4bf JM |
7207 | info-etc: \ |
7208 | configure-etc | |
0aed8855 | 7209 | @: $(MAKE); $(unstage) |
a90ef4bf | 7210 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
7211 | r=`${PWD_COMMAND}`; export r; \ |
7212 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7213 | $(HOST_EXPORTS) \ |
b813574b | 7214 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7215 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7216 | done; \ | |
22121df0 | 7217 | echo "Doing info in etc"; \ |
a90ef4bf | 7218 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
7219 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7220 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7221 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7222 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7223 | info) \ |
2a4cbe27 NN |
7224 | || exit 1 |
7225 | ||
a90ef4bf | 7226 | @endif etc |
2a4cbe27 | 7227 | |
a90ef4bf JM |
7228 | .PHONY: maybe-dvi-etc dvi-etc |
7229 | maybe-dvi-etc: | |
7230 | @if etc | |
7231 | maybe-dvi-etc: dvi-etc | |
2a4cbe27 | 7232 | |
a90ef4bf JM |
7233 | dvi-etc: \ |
7234 | configure-etc | |
0aed8855 | 7235 | @: $(MAKE); $(unstage) |
a90ef4bf | 7236 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
7237 | r=`${PWD_COMMAND}`; export r; \ |
7238 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7239 | $(HOST_EXPORTS) \ |
b813574b | 7240 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7241 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7242 | done; \ | |
22121df0 | 7243 | echo "Doing dvi in etc"; \ |
a90ef4bf | 7244 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
7245 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7246 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7247 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7248 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7249 | dvi) \ |
2a4cbe27 NN |
7250 | || exit 1 |
7251 | ||
a90ef4bf | 7252 | @endif etc |
2a4cbe27 | 7253 | |
a90ef4bf JM |
7254 | .PHONY: maybe-pdf-etc pdf-etc |
7255 | maybe-pdf-etc: | |
7256 | @if etc | |
7257 | maybe-pdf-etc: pdf-etc | |
56a8fe78 | 7258 | |
a90ef4bf JM |
7259 | pdf-etc: \ |
7260 | configure-etc | |
56a8fe78 | 7261 | @: $(MAKE); $(unstage) |
a90ef4bf | 7262 | @[ -f ./etc/Makefile ] || exit 0; \ |
56a8fe78 DD |
7263 | r=`${PWD_COMMAND}`; export r; \ |
7264 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7265 | $(HOST_EXPORTS) \ | |
7266 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7267 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7268 | done; \ | |
22121df0 | 7269 | echo "Doing pdf in etc"; \ |
a90ef4bf | 7270 | (cd $(HOST_SUBDIR)/etc && \ |
56a8fe78 DD |
7271 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7272 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7273 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7274 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
7275 | pdf) \ |
7276 | || exit 1 | |
7277 | ||
a90ef4bf | 7278 | @endif etc |
56a8fe78 | 7279 | |
a90ef4bf JM |
7280 | .PHONY: maybe-html-etc html-etc |
7281 | maybe-html-etc: | |
7282 | @if etc | |
7283 | maybe-html-etc: html-etc | |
6d389afc | 7284 | |
a90ef4bf JM |
7285 | html-etc: \ |
7286 | configure-etc | |
0aed8855 | 7287 | @: $(MAKE); $(unstage) |
a90ef4bf | 7288 | @[ -f ./etc/Makefile ] || exit 0; \ |
6d389afc MS |
7289 | r=`${PWD_COMMAND}`; export r; \ |
7290 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
7291 | $(HOST_EXPORTS) \ |
7292 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7293 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7294 | done; \ | |
22121df0 | 7295 | echo "Doing html in etc"; \ |
a90ef4bf | 7296 | (cd $(HOST_SUBDIR)/etc && \ |
6d389afc MS |
7297 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7298 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7299 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7300 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
7301 | html) \ |
7302 | || exit 1 | |
7303 | ||
a90ef4bf | 7304 | @endif etc |
6d389afc | 7305 | |
a90ef4bf JM |
7306 | .PHONY: maybe-TAGS-etc TAGS-etc |
7307 | maybe-TAGS-etc: | |
7308 | @if etc | |
7309 | maybe-TAGS-etc: TAGS-etc | |
2a4cbe27 | 7310 | |
a90ef4bf JM |
7311 | TAGS-etc: \ |
7312 | configure-etc | |
0aed8855 | 7313 | @: $(MAKE); $(unstage) |
a90ef4bf | 7314 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
7315 | r=`${PWD_COMMAND}`; export r; \ |
7316 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7317 | $(HOST_EXPORTS) \ |
b813574b | 7318 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7319 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7320 | done; \ | |
22121df0 | 7321 | echo "Doing TAGS in etc"; \ |
a90ef4bf | 7322 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
7323 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7324 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7325 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7326 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7327 | TAGS) \ |
2a4cbe27 NN |
7328 | || exit 1 |
7329 | ||
a90ef4bf | 7330 | @endif etc |
2a4cbe27 | 7331 | |
a90ef4bf JM |
7332 | .PHONY: maybe-install-info-etc install-info-etc |
7333 | maybe-install-info-etc: | |
7334 | @if etc | |
7335 | maybe-install-info-etc: install-info-etc | |
2a4cbe27 | 7336 | |
a90ef4bf JM |
7337 | install-info-etc: \ |
7338 | configure-etc \ | |
7339 | info-etc | |
0aed8855 | 7340 | @: $(MAKE); $(unstage) |
a90ef4bf | 7341 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
7342 | r=`${PWD_COMMAND}`; export r; \ |
7343 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7344 | $(HOST_EXPORTS) \ |
b813574b | 7345 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7346 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7347 | done; \ | |
22121df0 | 7348 | echo "Doing install-info in etc"; \ |
a90ef4bf | 7349 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
7350 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7351 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7352 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7353 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7354 | install-info) \ |
2a4cbe27 NN |
7355 | || exit 1 |
7356 | ||
a90ef4bf | 7357 | @endif etc |
2a4cbe27 | 7358 | |
a90ef4bf JM |
7359 | .PHONY: maybe-install-pdf-etc install-pdf-etc |
7360 | maybe-install-pdf-etc: | |
7361 | @if etc | |
7362 | maybe-install-pdf-etc: install-pdf-etc | |
a3ca38d2 | 7363 | |
a90ef4bf JM |
7364 | install-pdf-etc: \ |
7365 | configure-etc \ | |
7366 | pdf-etc | |
a3ca38d2 | 7367 | @: $(MAKE); $(unstage) |
a90ef4bf | 7368 | @[ -f ./etc/Makefile ] || exit 0; \ |
a3ca38d2 DD |
7369 | r=`${PWD_COMMAND}`; export r; \ |
7370 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7371 | $(HOST_EXPORTS) \ | |
7372 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7373 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7374 | done; \ | |
22121df0 | 7375 | echo "Doing install-pdf in etc"; \ |
a90ef4bf | 7376 | (cd $(HOST_SUBDIR)/etc && \ |
a3ca38d2 DD |
7377 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7378 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7379 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7380 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
7381 | install-pdf) \ |
7382 | || exit 1 | |
7383 | ||
a90ef4bf | 7384 | @endif etc |
a3ca38d2 | 7385 | |
a90ef4bf JM |
7386 | .PHONY: maybe-install-html-etc install-html-etc |
7387 | maybe-install-html-etc: | |
7388 | @if etc | |
7389 | maybe-install-html-etc: install-html-etc | |
108a6f8e | 7390 | |
a90ef4bf JM |
7391 | install-html-etc: \ |
7392 | configure-etc \ | |
7393 | html-etc | |
108a6f8e | 7394 | @: $(MAKE); $(unstage) |
a90ef4bf | 7395 | @[ -f ./etc/Makefile ] || exit 0; \ |
108a6f8e CD |
7396 | r=`${PWD_COMMAND}`; export r; \ |
7397 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7398 | $(HOST_EXPORTS) \ | |
7399 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7400 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7401 | done; \ | |
22121df0 | 7402 | echo "Doing install-html in etc"; \ |
a90ef4bf | 7403 | (cd $(HOST_SUBDIR)/etc && \ |
108a6f8e CD |
7404 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7405 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7406 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7407 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
7408 | install-html) \ |
7409 | || exit 1 | |
7410 | ||
a90ef4bf | 7411 | @endif etc |
108a6f8e | 7412 | |
a90ef4bf JM |
7413 | .PHONY: maybe-installcheck-etc installcheck-etc |
7414 | maybe-installcheck-etc: | |
7415 | @if etc | |
7416 | maybe-installcheck-etc: installcheck-etc | |
2a4cbe27 | 7417 | |
a90ef4bf JM |
7418 | installcheck-etc: \ |
7419 | configure-etc | |
0aed8855 | 7420 | @: $(MAKE); $(unstage) |
a90ef4bf | 7421 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
7422 | r=`${PWD_COMMAND}`; export r; \ |
7423 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7424 | $(HOST_EXPORTS) \ |
b813574b | 7425 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7426 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7427 | done; \ | |
22121df0 | 7428 | echo "Doing installcheck in etc"; \ |
a90ef4bf | 7429 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
7430 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7431 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7432 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7433 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7434 | installcheck) \ |
2a4cbe27 NN |
7435 | || exit 1 |
7436 | ||
a90ef4bf | 7437 | @endif etc |
2a4cbe27 | 7438 | |
a90ef4bf JM |
7439 | .PHONY: maybe-mostlyclean-etc mostlyclean-etc |
7440 | maybe-mostlyclean-etc: | |
7441 | @if etc | |
7442 | maybe-mostlyclean-etc: mostlyclean-etc | |
2a4cbe27 | 7443 | |
a90ef4bf | 7444 | mostlyclean-etc: |
0aed8855 | 7445 | @: $(MAKE); $(unstage) |
a90ef4bf | 7446 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
7447 | r=`${PWD_COMMAND}`; export r; \ |
7448 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7449 | $(HOST_EXPORTS) \ |
b813574b | 7450 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7451 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7452 | done; \ | |
22121df0 | 7453 | echo "Doing mostlyclean in etc"; \ |
a90ef4bf | 7454 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
7455 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7456 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7457 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7458 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7459 | mostlyclean) \ |
2a4cbe27 NN |
7460 | || exit 1 |
7461 | ||
a90ef4bf | 7462 | @endif etc |
2a4cbe27 | 7463 | |
a90ef4bf JM |
7464 | .PHONY: maybe-clean-etc clean-etc |
7465 | maybe-clean-etc: | |
7466 | @if etc | |
7467 | maybe-clean-etc: clean-etc | |
2a4cbe27 | 7468 | |
a90ef4bf | 7469 | clean-etc: |
0aed8855 | 7470 | @: $(MAKE); $(unstage) |
a90ef4bf | 7471 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
7472 | r=`${PWD_COMMAND}`; export r; \ |
7473 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7474 | $(HOST_EXPORTS) \ |
b813574b | 7475 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7476 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7477 | done; \ | |
22121df0 | 7478 | echo "Doing clean in etc"; \ |
a90ef4bf | 7479 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
7480 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7481 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7482 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7483 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7484 | clean) \ |
2a4cbe27 NN |
7485 | || exit 1 |
7486 | ||
a90ef4bf | 7487 | @endif etc |
2a4cbe27 | 7488 | |
a90ef4bf JM |
7489 | .PHONY: maybe-distclean-etc distclean-etc |
7490 | maybe-distclean-etc: | |
7491 | @if etc | |
7492 | maybe-distclean-etc: distclean-etc | |
2a4cbe27 | 7493 | |
a90ef4bf | 7494 | distclean-etc: |
0aed8855 | 7495 | @: $(MAKE); $(unstage) |
a90ef4bf | 7496 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
7497 | r=`${PWD_COMMAND}`; export r; \ |
7498 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7499 | $(HOST_EXPORTS) \ |
b813574b | 7500 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7501 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7502 | done; \ | |
22121df0 | 7503 | echo "Doing distclean in etc"; \ |
a90ef4bf | 7504 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
7505 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7506 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7507 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7508 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7509 | distclean) \ |
2a4cbe27 NN |
7510 | || exit 1 |
7511 | ||
a90ef4bf | 7512 | @endif etc |
2a4cbe27 | 7513 | |
a90ef4bf JM |
7514 | .PHONY: maybe-maintainer-clean-etc maintainer-clean-etc |
7515 | maybe-maintainer-clean-etc: | |
7516 | @if etc | |
7517 | maybe-maintainer-clean-etc: maintainer-clean-etc | |
2a4cbe27 | 7518 | |
a90ef4bf | 7519 | maintainer-clean-etc: |
0aed8855 | 7520 | @: $(MAKE); $(unstage) |
a90ef4bf | 7521 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
7522 | r=`${PWD_COMMAND}`; export r; \ |
7523 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7524 | $(HOST_EXPORTS) \ |
b813574b | 7525 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7526 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7527 | done; \ | |
22121df0 | 7528 | echo "Doing maintainer-clean in etc"; \ |
a90ef4bf | 7529 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
7530 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7531 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7532 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7533 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7534 | maintainer-clean) \ |
2a4cbe27 NN |
7535 | || exit 1 |
7536 | ||
a90ef4bf | 7537 | @endif etc |
2a4cbe27 | 7538 | |
2a4cbe27 | 7539 | |
a7254363 | 7540 | |
a90ef4bf JM |
7541 | .PHONY: configure-fastjar maybe-configure-fastjar |
7542 | maybe-configure-fastjar: | |
4f0ef2d8 | 7543 | @if gcc-bootstrap |
a90ef4bf | 7544 | configure-fastjar: stage_current |
4f0ef2d8 | 7545 | @endif gcc-bootstrap |
a90ef4bf JM |
7546 | @if fastjar |
7547 | maybe-configure-fastjar: configure-fastjar | |
7548 | configure-fastjar: | |
0aed8855 | 7549 | @: $(MAKE); $(unstage) |
c52c6897 | 7550 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 7551 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 7552 | test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \ |
22121df0 | 7553 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar; \ |
1f53ca9a | 7554 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
7555 | echo Configuring in $(HOST_SUBDIR)/fastjar; \ |
7556 | cd "$(HOST_SUBDIR)/fastjar" || exit 1; \ | |
4fa63067 | 7557 | case $(srcdir) in \ |
b00612cc | 7558 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 7559 | *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \ |
b00612cc | 7560 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 7561 | esac; \ |
1b6c0831 L |
7562 | module_srcdir=fastjar; \ |
7563 | $(SHELL) \ | |
7564 | $$s/$$module_srcdir/configure \ | |
7565 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 7566 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 7567 | --target=${target_alias} \ |
4fa63067 | 7568 | || exit 1 |
a90ef4bf | 7569 | @endif fastjar |
4fa63067 | 7570 | |
a7254363 PB |
7571 | |
7572 | ||
d545f33b PB |
7573 | |
7574 | ||
a90ef4bf JM |
7575 | .PHONY: all-fastjar maybe-all-fastjar |
7576 | maybe-all-fastjar: | |
4f0ef2d8 | 7577 | @if gcc-bootstrap |
a90ef4bf | 7578 | all-fastjar: stage_current |
4f0ef2d8 | 7579 | @endif gcc-bootstrap |
a90ef4bf JM |
7580 | @if fastjar |
7581 | TARGET-fastjar=all | |
7582 | maybe-all-fastjar: all-fastjar | |
7583 | all-fastjar: configure-fastjar | |
0aed8855 | 7584 | @: $(MAKE); $(unstage) |
4fa63067 NN |
7585 | @r=`${PWD_COMMAND}`; export r; \ |
7586 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 7587 | $(HOST_EXPORTS) \ |
a90ef4bf | 7588 | (cd $(HOST_SUBDIR)/fastjar && \ |
b3676d82 | 7589 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
7590 | $(TARGET-fastjar)) |
7591 | @endif fastjar | |
4fa63067 | 7592 | |
a7254363 | 7593 | |
d545f33b PB |
7594 | |
7595 | ||
a90ef4bf JM |
7596 | .PHONY: check-fastjar maybe-check-fastjar |
7597 | maybe-check-fastjar: | |
7598 | @if fastjar | |
7599 | maybe-check-fastjar: check-fastjar | |
4fa63067 NN |
7600 | |
7601 | # This module is only tested in a native toolchain. | |
a90ef4bf | 7602 | check-fastjar: |
0aed8855 | 7603 | @: $(MAKE); $(unstage) |
22121df0 | 7604 | @if [ '$(host)' = '$(target)' ]; then \ |
4fa63067 NN |
7605 | r=`${PWD_COMMAND}`; export r; \ |
7606 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 7607 | $(HOST_EXPORTS) \ |
a90ef4bf | 7608 | (cd $(HOST_SUBDIR)/fastjar && \ |
f91ca6bc | 7609 | $(MAKE) $(FLAGS_TO_PASS) check) |
4fa63067 NN |
7610 | fi |
7611 | ||
a90ef4bf | 7612 | @endif fastjar |
4fa63067 | 7613 | |
a90ef4bf JM |
7614 | .PHONY: install-fastjar maybe-install-fastjar |
7615 | maybe-install-fastjar: | |
7616 | @if fastjar | |
7617 | maybe-install-fastjar: install-fastjar | |
4fa63067 | 7618 | |
a90ef4bf | 7619 | install-fastjar: installdirs |
0aed8855 | 7620 | @: $(MAKE); $(unstage) |
4fa63067 NN |
7621 | @r=`${PWD_COMMAND}`; export r; \ |
7622 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7623 | $(HOST_EXPORTS) \ |
a90ef4bf | 7624 | (cd $(HOST_SUBDIR)/fastjar && \ |
2da12f12 | 7625 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 7626 | |
a90ef4bf | 7627 | @endif fastjar |
4fa63067 | 7628 | |
a90ef4bf JM |
7629 | .PHONY: install-strip-fastjar maybe-install-strip-fastjar |
7630 | maybe-install-strip-fastjar: | |
7631 | @if fastjar | |
7632 | maybe-install-strip-fastjar: install-strip-fastjar | |
9b980aa1 | 7633 | |
a90ef4bf | 7634 | install-strip-fastjar: installdirs |
9b980aa1 RW |
7635 | @: $(MAKE); $(unstage) |
7636 | @r=`${PWD_COMMAND}`; export r; \ | |
7637 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7638 | $(HOST_EXPORTS) \ | |
a90ef4bf | 7639 | (cd $(HOST_SUBDIR)/fastjar && \ |
9b980aa1 RW |
7640 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
7641 | ||
a90ef4bf | 7642 | @endif fastjar |
9b980aa1 | 7643 | |
56a8fe78 | 7644 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 7645 | |
a90ef4bf JM |
7646 | .PHONY: maybe-info-fastjar info-fastjar |
7647 | maybe-info-fastjar: | |
7648 | @if fastjar | |
7649 | maybe-info-fastjar: info-fastjar | |
4fa63067 | 7650 | |
a90ef4bf JM |
7651 | info-fastjar: \ |
7652 | configure-fastjar | |
0aed8855 | 7653 | @: $(MAKE); $(unstage) |
a90ef4bf | 7654 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
7655 | r=`${PWD_COMMAND}`; export r; \ |
7656 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7657 | $(HOST_EXPORTS) \ |
b813574b | 7658 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7659 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7660 | done; \ | |
22121df0 | 7661 | echo "Doing info in fastjar"; \ |
a90ef4bf | 7662 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7663 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7664 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7665 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7666 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7667 | info) \ |
2a4cbe27 NN |
7668 | || exit 1 |
7669 | ||
a90ef4bf | 7670 | @endif fastjar |
2a4cbe27 | 7671 | |
a90ef4bf JM |
7672 | .PHONY: maybe-dvi-fastjar dvi-fastjar |
7673 | maybe-dvi-fastjar: | |
7674 | @if fastjar | |
7675 | maybe-dvi-fastjar: dvi-fastjar | |
2a4cbe27 | 7676 | |
a90ef4bf JM |
7677 | dvi-fastjar: \ |
7678 | configure-fastjar | |
0aed8855 | 7679 | @: $(MAKE); $(unstage) |
a90ef4bf | 7680 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
7681 | r=`${PWD_COMMAND}`; export r; \ |
7682 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7683 | $(HOST_EXPORTS) \ |
b813574b | 7684 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7685 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7686 | done; \ | |
22121df0 | 7687 | echo "Doing dvi in fastjar"; \ |
a90ef4bf | 7688 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7689 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7690 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7691 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7692 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7693 | dvi) \ |
2a4cbe27 NN |
7694 | || exit 1 |
7695 | ||
a90ef4bf | 7696 | @endif fastjar |
2a4cbe27 | 7697 | |
a90ef4bf JM |
7698 | .PHONY: maybe-pdf-fastjar pdf-fastjar |
7699 | maybe-pdf-fastjar: | |
7700 | @if fastjar | |
7701 | maybe-pdf-fastjar: pdf-fastjar | |
56a8fe78 | 7702 | |
a90ef4bf JM |
7703 | pdf-fastjar: \ |
7704 | configure-fastjar | |
56a8fe78 | 7705 | @: $(MAKE); $(unstage) |
a90ef4bf | 7706 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
56a8fe78 DD |
7707 | r=`${PWD_COMMAND}`; export r; \ |
7708 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7709 | $(HOST_EXPORTS) \ | |
7710 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7711 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7712 | done; \ | |
22121df0 | 7713 | echo "Doing pdf in fastjar"; \ |
a90ef4bf | 7714 | (cd $(HOST_SUBDIR)/fastjar && \ |
56a8fe78 DD |
7715 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7716 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7717 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7718 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
7719 | pdf) \ |
7720 | || exit 1 | |
7721 | ||
a90ef4bf | 7722 | @endif fastjar |
56a8fe78 | 7723 | |
a90ef4bf JM |
7724 | .PHONY: maybe-html-fastjar html-fastjar |
7725 | maybe-html-fastjar: | |
7726 | @if fastjar | |
7727 | maybe-html-fastjar: html-fastjar | |
6d389afc | 7728 | |
a90ef4bf JM |
7729 | html-fastjar: \ |
7730 | configure-fastjar | |
0aed8855 | 7731 | @: $(MAKE); $(unstage) |
a90ef4bf | 7732 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
6d389afc MS |
7733 | r=`${PWD_COMMAND}`; export r; \ |
7734 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
7735 | $(HOST_EXPORTS) \ |
7736 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7737 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7738 | done; \ | |
22121df0 | 7739 | echo "Doing html in fastjar"; \ |
a90ef4bf | 7740 | (cd $(HOST_SUBDIR)/fastjar && \ |
6d389afc MS |
7741 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7742 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7743 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7744 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
7745 | html) \ |
7746 | || exit 1 | |
7747 | ||
a90ef4bf | 7748 | @endif fastjar |
6d389afc | 7749 | |
a90ef4bf JM |
7750 | .PHONY: maybe-TAGS-fastjar TAGS-fastjar |
7751 | maybe-TAGS-fastjar: | |
7752 | @if fastjar | |
7753 | maybe-TAGS-fastjar: TAGS-fastjar | |
2a4cbe27 | 7754 | |
a90ef4bf JM |
7755 | TAGS-fastjar: \ |
7756 | configure-fastjar | |
0aed8855 | 7757 | @: $(MAKE); $(unstage) |
a90ef4bf | 7758 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
7759 | r=`${PWD_COMMAND}`; export r; \ |
7760 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7761 | $(HOST_EXPORTS) \ |
b813574b | 7762 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7763 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7764 | done; \ | |
22121df0 | 7765 | echo "Doing TAGS in fastjar"; \ |
a90ef4bf | 7766 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7767 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7768 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7769 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7770 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7771 | TAGS) \ |
2a4cbe27 NN |
7772 | || exit 1 |
7773 | ||
a90ef4bf | 7774 | @endif fastjar |
2a4cbe27 | 7775 | |
a90ef4bf JM |
7776 | .PHONY: maybe-install-info-fastjar install-info-fastjar |
7777 | maybe-install-info-fastjar: | |
7778 | @if fastjar | |
7779 | maybe-install-info-fastjar: install-info-fastjar | |
2a4cbe27 | 7780 | |
a90ef4bf JM |
7781 | install-info-fastjar: \ |
7782 | configure-fastjar \ | |
7783 | info-fastjar | |
0aed8855 | 7784 | @: $(MAKE); $(unstage) |
a90ef4bf | 7785 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
7786 | r=`${PWD_COMMAND}`; export r; \ |
7787 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7788 | $(HOST_EXPORTS) \ |
b813574b | 7789 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7790 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7791 | done; \ | |
22121df0 | 7792 | echo "Doing install-info in fastjar"; \ |
a90ef4bf | 7793 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7794 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7795 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7796 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7797 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7798 | install-info) \ |
2a4cbe27 NN |
7799 | || exit 1 |
7800 | ||
a90ef4bf | 7801 | @endif fastjar |
2a4cbe27 | 7802 | |
a90ef4bf JM |
7803 | .PHONY: maybe-install-pdf-fastjar install-pdf-fastjar |
7804 | maybe-install-pdf-fastjar: | |
7805 | @if fastjar | |
7806 | maybe-install-pdf-fastjar: install-pdf-fastjar | |
a3ca38d2 | 7807 | |
a90ef4bf JM |
7808 | install-pdf-fastjar: \ |
7809 | configure-fastjar \ | |
7810 | pdf-fastjar | |
a3ca38d2 | 7811 | @: $(MAKE); $(unstage) |
a90ef4bf | 7812 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
a3ca38d2 DD |
7813 | r=`${PWD_COMMAND}`; export r; \ |
7814 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7815 | $(HOST_EXPORTS) \ | |
7816 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7817 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7818 | done; \ | |
22121df0 | 7819 | echo "Doing install-pdf in fastjar"; \ |
a90ef4bf | 7820 | (cd $(HOST_SUBDIR)/fastjar && \ |
a3ca38d2 DD |
7821 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7822 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7823 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7824 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
7825 | install-pdf) \ |
7826 | || exit 1 | |
7827 | ||
a90ef4bf | 7828 | @endif fastjar |
a3ca38d2 | 7829 | |
a90ef4bf JM |
7830 | .PHONY: maybe-install-html-fastjar install-html-fastjar |
7831 | maybe-install-html-fastjar: | |
7832 | @if fastjar | |
7833 | maybe-install-html-fastjar: install-html-fastjar | |
108a6f8e | 7834 | |
a90ef4bf JM |
7835 | install-html-fastjar: \ |
7836 | configure-fastjar \ | |
7837 | html-fastjar | |
108a6f8e | 7838 | @: $(MAKE); $(unstage) |
a90ef4bf | 7839 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
108a6f8e CD |
7840 | r=`${PWD_COMMAND}`; export r; \ |
7841 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7842 | $(HOST_EXPORTS) \ | |
7843 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7844 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7845 | done; \ | |
22121df0 | 7846 | echo "Doing install-html in fastjar"; \ |
a90ef4bf | 7847 | (cd $(HOST_SUBDIR)/fastjar && \ |
108a6f8e CD |
7848 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7849 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7850 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7851 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
7852 | install-html) \ |
7853 | || exit 1 | |
7854 | ||
a90ef4bf | 7855 | @endif fastjar |
108a6f8e | 7856 | |
a90ef4bf JM |
7857 | .PHONY: maybe-installcheck-fastjar installcheck-fastjar |
7858 | maybe-installcheck-fastjar: | |
7859 | @if fastjar | |
7860 | maybe-installcheck-fastjar: installcheck-fastjar | |
2a4cbe27 | 7861 | |
a90ef4bf JM |
7862 | installcheck-fastjar: \ |
7863 | configure-fastjar | |
0aed8855 | 7864 | @: $(MAKE); $(unstage) |
a90ef4bf | 7865 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
7866 | r=`${PWD_COMMAND}`; export r; \ |
7867 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7868 | $(HOST_EXPORTS) \ |
b813574b | 7869 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7870 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7871 | done; \ | |
22121df0 | 7872 | echo "Doing installcheck in fastjar"; \ |
a90ef4bf | 7873 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7874 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7875 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7876 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7877 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7878 | installcheck) \ |
2a4cbe27 NN |
7879 | || exit 1 |
7880 | ||
a90ef4bf | 7881 | @endif fastjar |
2a4cbe27 | 7882 | |
a90ef4bf JM |
7883 | .PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar |
7884 | maybe-mostlyclean-fastjar: | |
7885 | @if fastjar | |
7886 | maybe-mostlyclean-fastjar: mostlyclean-fastjar | |
2a4cbe27 | 7887 | |
a90ef4bf | 7888 | mostlyclean-fastjar: |
0aed8855 | 7889 | @: $(MAKE); $(unstage) |
a90ef4bf | 7890 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
7891 | r=`${PWD_COMMAND}`; export r; \ |
7892 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7893 | $(HOST_EXPORTS) \ |
b813574b | 7894 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7895 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7896 | done; \ | |
22121df0 | 7897 | echo "Doing mostlyclean in fastjar"; \ |
a90ef4bf | 7898 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7899 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7900 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7901 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7902 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7903 | mostlyclean) \ |
2a4cbe27 NN |
7904 | || exit 1 |
7905 | ||
a90ef4bf | 7906 | @endif fastjar |
2a4cbe27 | 7907 | |
a90ef4bf JM |
7908 | .PHONY: maybe-clean-fastjar clean-fastjar |
7909 | maybe-clean-fastjar: | |
7910 | @if fastjar | |
7911 | maybe-clean-fastjar: clean-fastjar | |
2a4cbe27 | 7912 | |
a90ef4bf | 7913 | clean-fastjar: |
0aed8855 | 7914 | @: $(MAKE); $(unstage) |
a90ef4bf | 7915 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
7916 | r=`${PWD_COMMAND}`; export r; \ |
7917 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7918 | $(HOST_EXPORTS) \ |
b813574b | 7919 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7920 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7921 | done; \ | |
22121df0 | 7922 | echo "Doing clean in fastjar"; \ |
a90ef4bf | 7923 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7924 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7925 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7926 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7927 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7928 | clean) \ |
2a4cbe27 NN |
7929 | || exit 1 |
7930 | ||
a90ef4bf | 7931 | @endif fastjar |
2a4cbe27 | 7932 | |
a90ef4bf JM |
7933 | .PHONY: maybe-distclean-fastjar distclean-fastjar |
7934 | maybe-distclean-fastjar: | |
7935 | @if fastjar | |
7936 | maybe-distclean-fastjar: distclean-fastjar | |
2a4cbe27 | 7937 | |
a90ef4bf | 7938 | distclean-fastjar: |
0aed8855 | 7939 | @: $(MAKE); $(unstage) |
a90ef4bf | 7940 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
7941 | r=`${PWD_COMMAND}`; export r; \ |
7942 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7943 | $(HOST_EXPORTS) \ |
b813574b | 7944 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7945 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7946 | done; \ | |
22121df0 | 7947 | echo "Doing distclean in fastjar"; \ |
a90ef4bf | 7948 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7949 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7950 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7951 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7952 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7953 | distclean) \ |
2a4cbe27 NN |
7954 | || exit 1 |
7955 | ||
a90ef4bf | 7956 | @endif fastjar |
2a4cbe27 | 7957 | |
a90ef4bf JM |
7958 | .PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar |
7959 | maybe-maintainer-clean-fastjar: | |
7960 | @if fastjar | |
7961 | maybe-maintainer-clean-fastjar: maintainer-clean-fastjar | |
7962 | ||
7963 | maintainer-clean-fastjar: | |
0aed8855 | 7964 | @: $(MAKE); $(unstage) |
a90ef4bf | 7965 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
7966 | r=`${PWD_COMMAND}`; export r; \ |
7967 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7968 | $(HOST_EXPORTS) \ |
b813574b | 7969 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7970 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7971 | done; \ | |
22121df0 | 7972 | echo "Doing maintainer-clean in fastjar"; \ |
a90ef4bf | 7973 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
7974 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7975 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7976 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 7977 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 7978 | maintainer-clean) \ |
2a4cbe27 NN |
7979 | || exit 1 |
7980 | ||
a90ef4bf | 7981 | @endif fastjar |
2a4cbe27 | 7982 | |
2a4cbe27 | 7983 | |
a7254363 | 7984 | |
a90ef4bf JM |
7985 | .PHONY: configure-fixincludes maybe-configure-fixincludes |
7986 | maybe-configure-fixincludes: | |
4f0ef2d8 | 7987 | @if gcc-bootstrap |
a90ef4bf | 7988 | configure-fixincludes: stage_current |
4f0ef2d8 | 7989 | @endif gcc-bootstrap |
a90ef4bf JM |
7990 | @if fixincludes |
7991 | maybe-configure-fixincludes: configure-fixincludes | |
7992 | configure-fixincludes: | |
c52c6897 | 7993 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 7994 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 7995 | test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \ |
22121df0 | 7996 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \ |
1f53ca9a | 7997 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
7998 | echo Configuring in $(HOST_SUBDIR)/fixincludes; \ |
7999 | cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \ | |
4fa63067 | 8000 | case $(srcdir) in \ |
b00612cc | 8001 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 8002 | *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \ |
b00612cc | 8003 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 8004 | esac; \ |
1b6c0831 L |
8005 | module_srcdir=fixincludes; \ |
8006 | $(SHELL) \ | |
8007 | $$s/$$module_srcdir/configure \ | |
8008 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 8009 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 8010 | --target=${target_alias} \ |
4fa63067 | 8011 | || exit 1 |
a90ef4bf | 8012 | @endif fixincludes |
4fa63067 | 8013 | |
a7254363 PB |
8014 | |
8015 | ||
201f096f | 8016 | .PHONY: configure-stage1-fixincludes maybe-configure-stage1-fixincludes |
8017 | maybe-configure-stage1-fixincludes: | |
8018 | @if fixincludes-bootstrap | |
8019 | maybe-configure-stage1-fixincludes: configure-stage1-fixincludes | |
8020 | configure-stage1-fixincludes: | |
8021 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
8022 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes | |
8023 | @r=`${PWD_COMMAND}`; export r; \ | |
8024 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8025 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
8026 | test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \ | |
8027 | $(HOST_EXPORTS) \ | |
8028 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ | |
8029 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
8030 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
8031 | echo Configuring stage 1 in $(HOST_SUBDIR)/fixincludes; \ |
8032 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \ | |
201f096f | 8033 | cd $(HOST_SUBDIR)/fixincludes || exit 1; \ |
8034 | case $(srcdir) in \ | |
8035 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
8036 | *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \ | |
8037 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
8038 | esac; \ | |
1b6c0831 L |
8039 | module_srcdir=fixincludes; \ |
8040 | $(SHELL) $$s/$$module_srcdir/configure \ | |
8041 | --srcdir=$${topdir}/$$module_srcdir \ | |
201f096f | 8042 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
8043 | --target=${target_alias} \ |
8044 | \ | |
201f096f | 8045 | $(STAGE1_CONFIGURE_FLAGS) |
8046 | @endif fixincludes-bootstrap | |
8047 | ||
8048 | .PHONY: configure-stage2-fixincludes maybe-configure-stage2-fixincludes | |
8049 | maybe-configure-stage2-fixincludes: | |
8050 | @if fixincludes-bootstrap | |
8051 | maybe-configure-stage2-fixincludes: configure-stage2-fixincludes | |
8052 | configure-stage2-fixincludes: | |
8053 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
8054 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes | |
8055 | @r=`${PWD_COMMAND}`; export r; \ | |
8056 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8057 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
8058 | test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \ | |
8059 | $(HOST_EXPORTS) \ | |
8060 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
8061 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
8062 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
8063 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
8064 | echo Configuring stage 2 in $(HOST_SUBDIR)/fixincludes; \ |
8065 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \ | |
201f096f | 8066 | cd $(HOST_SUBDIR)/fixincludes || exit 1; \ |
8067 | case $(srcdir) in \ | |
8068 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
8069 | *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \ | |
8070 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
8071 | esac; \ | |
1b6c0831 L |
8072 | module_srcdir=fixincludes; \ |
8073 | $(SHELL) $$s/$$module_srcdir/configure \ | |
8074 | --srcdir=$${topdir}/$$module_srcdir \ | |
201f096f | 8075 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 8076 | --target=${target_alias} \ |
22121df0 | 8077 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
201f096f | 8078 | $(STAGE2_CONFIGURE_FLAGS) |
8079 | @endif fixincludes-bootstrap | |
8080 | ||
8081 | .PHONY: configure-stage3-fixincludes maybe-configure-stage3-fixincludes | |
8082 | maybe-configure-stage3-fixincludes: | |
8083 | @if fixincludes-bootstrap | |
8084 | maybe-configure-stage3-fixincludes: configure-stage3-fixincludes | |
8085 | configure-stage3-fixincludes: | |
8086 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
8087 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes | |
8088 | @r=`${PWD_COMMAND}`; export r; \ | |
8089 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8090 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
8091 | test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \ | |
8092 | $(HOST_EXPORTS) \ | |
8093 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
8094 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
8095 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
8096 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
8097 | echo Configuring stage 3 in $(HOST_SUBDIR)/fixincludes; \ |
8098 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \ | |
201f096f | 8099 | cd $(HOST_SUBDIR)/fixincludes || exit 1; \ |
8100 | case $(srcdir) in \ | |
8101 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
8102 | *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \ | |
8103 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
8104 | esac; \ | |
1b6c0831 L |
8105 | module_srcdir=fixincludes; \ |
8106 | $(SHELL) $$s/$$module_srcdir/configure \ | |
8107 | --srcdir=$${topdir}/$$module_srcdir \ | |
201f096f | 8108 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 8109 | --target=${target_alias} \ |
22121df0 | 8110 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
201f096f | 8111 | $(STAGE3_CONFIGURE_FLAGS) |
8112 | @endif fixincludes-bootstrap | |
8113 | ||
8114 | .PHONY: configure-stage4-fixincludes maybe-configure-stage4-fixincludes | |
8115 | maybe-configure-stage4-fixincludes: | |
8116 | @if fixincludes-bootstrap | |
8117 | maybe-configure-stage4-fixincludes: configure-stage4-fixincludes | |
8118 | configure-stage4-fixincludes: | |
8119 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
8120 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes | |
8121 | @r=`${PWD_COMMAND}`; export r; \ | |
8122 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8123 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
8124 | test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \ | |
8125 | $(HOST_EXPORTS) \ | |
8126 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
8127 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
8128 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
8129 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
8130 | echo Configuring stage 4 in $(HOST_SUBDIR)/fixincludes; \ |
8131 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \ | |
201f096f | 8132 | cd $(HOST_SUBDIR)/fixincludes || exit 1; \ |
8133 | case $(srcdir) in \ | |
8134 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
8135 | *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \ | |
8136 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
8137 | esac; \ | |
1b6c0831 L |
8138 | module_srcdir=fixincludes; \ |
8139 | $(SHELL) $$s/$$module_srcdir/configure \ | |
8140 | --srcdir=$${topdir}/$$module_srcdir \ | |
201f096f | 8141 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 8142 | --target=${target_alias} \ |
22121df0 | 8143 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
201f096f | 8144 | $(STAGE4_CONFIGURE_FLAGS) |
8145 | @endif fixincludes-bootstrap | |
8146 | ||
8147 | .PHONY: configure-stageprofile-fixincludes maybe-configure-stageprofile-fixincludes | |
8148 | maybe-configure-stageprofile-fixincludes: | |
8149 | @if fixincludes-bootstrap | |
8150 | maybe-configure-stageprofile-fixincludes: configure-stageprofile-fixincludes | |
8151 | configure-stageprofile-fixincludes: | |
8152 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
8153 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes | |
8154 | @r=`${PWD_COMMAND}`; export r; \ | |
8155 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8156 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
8157 | test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \ | |
8158 | $(HOST_EXPORTS) \ | |
8159 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
8160 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
8161 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
8162 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
8163 | echo Configuring stage profile in $(HOST_SUBDIR)/fixincludes; \ |
8164 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \ | |
201f096f | 8165 | cd $(HOST_SUBDIR)/fixincludes || exit 1; \ |
8166 | case $(srcdir) in \ | |
8167 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
8168 | *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \ | |
8169 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
8170 | esac; \ | |
1b6c0831 L |
8171 | module_srcdir=fixincludes; \ |
8172 | $(SHELL) $$s/$$module_srcdir/configure \ | |
8173 | --srcdir=$${topdir}/$$module_srcdir \ | |
201f096f | 8174 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 8175 | --target=${target_alias} \ |
22121df0 | 8176 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
201f096f | 8177 | $(STAGEprofile_CONFIGURE_FLAGS) |
8178 | @endif fixincludes-bootstrap | |
8179 | ||
8180 | .PHONY: configure-stagefeedback-fixincludes maybe-configure-stagefeedback-fixincludes | |
8181 | maybe-configure-stagefeedback-fixincludes: | |
8182 | @if fixincludes-bootstrap | |
8183 | maybe-configure-stagefeedback-fixincludes: configure-stagefeedback-fixincludes | |
8184 | configure-stagefeedback-fixincludes: | |
8185 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
8186 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes | |
8187 | @r=`${PWD_COMMAND}`; export r; \ | |
8188 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8189 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
8190 | test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \ | |
8191 | $(HOST_EXPORTS) \ | |
8192 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
8193 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
8194 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
8195 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
8196 | echo Configuring stage feedback in $(HOST_SUBDIR)/fixincludes; \ |
8197 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \ | |
201f096f | 8198 | cd $(HOST_SUBDIR)/fixincludes || exit 1; \ |
8199 | case $(srcdir) in \ | |
8200 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
8201 | *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \ | |
8202 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
8203 | esac; \ | |
1b6c0831 L |
8204 | module_srcdir=fixincludes; \ |
8205 | $(SHELL) $$s/$$module_srcdir/configure \ | |
8206 | --srcdir=$${topdir}/$$module_srcdir \ | |
201f096f | 8207 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 8208 | --target=${target_alias} \ |
22121df0 | 8209 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
201f096f | 8210 | $(STAGEfeedback_CONFIGURE_FLAGS) |
8211 | @endif fixincludes-bootstrap | |
8212 | ||
8213 | ||
8214 | ||
d545f33b PB |
8215 | |
8216 | ||
a90ef4bf JM |
8217 | .PHONY: all-fixincludes maybe-all-fixincludes |
8218 | maybe-all-fixincludes: | |
4f0ef2d8 | 8219 | @if gcc-bootstrap |
a90ef4bf | 8220 | all-fixincludes: stage_current |
4f0ef2d8 | 8221 | @endif gcc-bootstrap |
a90ef4bf JM |
8222 | @if fixincludes |
8223 | TARGET-fixincludes=all | |
8224 | maybe-all-fixincludes: all-fixincludes | |
8225 | all-fixincludes: configure-fixincludes | |
4fa63067 NN |
8226 | @r=`${PWD_COMMAND}`; export r; \ |
8227 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 8228 | $(HOST_EXPORTS) \ |
a90ef4bf | 8229 | (cd $(HOST_SUBDIR)/fixincludes && \ |
b3676d82 | 8230 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
8231 | $(TARGET-fixincludes)) |
8232 | @endif fixincludes | |
4fa63067 | 8233 | |
a7254363 | 8234 | |
d545f33b | 8235 | |
201f096f | 8236 | .PHONY: all-stage1-fixincludes maybe-all-stage1-fixincludes |
8237 | .PHONY: clean-stage1-fixincludes maybe-clean-stage1-fixincludes | |
8238 | maybe-all-stage1-fixincludes: | |
8239 | maybe-clean-stage1-fixincludes: | |
8240 | @if fixincludes-bootstrap | |
8241 | maybe-all-stage1-fixincludes: all-stage1-fixincludes | |
8242 | all-stage1: all-stage1-fixincludes | |
8243 | TARGET-stage1-fixincludes = $(TARGET-fixincludes) | |
8244 | all-stage1-fixincludes: configure-stage1-fixincludes | |
8245 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
8246 | @r=`${PWD_COMMAND}`; export r; \ | |
8247 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8248 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
8249 | $(HOST_EXPORTS) \ | |
8250 | cd $(HOST_SUBDIR)/fixincludes && \ | |
05a13254 | 8251 | \ |
201f096f | 8252 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
8253 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
8254 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
8255 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
8256 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
8257 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
8258 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
8259 | $(EXTRA_HOST_FLAGS) \ | |
8260 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 8261 | TFLAGS="$(STAGE1_TFLAGS)" \ |
201f096f | 8262 | $(TARGET-stage1-fixincludes) |
8263 | ||
8264 | maybe-clean-stage1-fixincludes: clean-stage1-fixincludes | |
8265 | clean-stage1: clean-stage1-fixincludes | |
8266 | clean-stage1-fixincludes: | |
8267 | @if [ $(current_stage) = stage1 ]; then \ | |
8268 | [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \ | |
8269 | else \ | |
8270 | [ -f $(HOST_SUBDIR)/stage1-fixincludes/Makefile ] || exit 0; \ | |
8271 | $(MAKE) stage1-start; \ | |
8272 | fi; \ | |
8273 | cd $(HOST_SUBDIR)/fixincludes && \ | |
8274 | $(MAKE) $(EXTRA_HOST_FLAGS) \ | |
8275 | $(STAGE1_FLAGS_TO_PASS) clean | |
8276 | @endif fixincludes-bootstrap | |
8277 | ||
8278 | ||
8279 | .PHONY: all-stage2-fixincludes maybe-all-stage2-fixincludes | |
8280 | .PHONY: clean-stage2-fixincludes maybe-clean-stage2-fixincludes | |
8281 | maybe-all-stage2-fixincludes: | |
8282 | maybe-clean-stage2-fixincludes: | |
8283 | @if fixincludes-bootstrap | |
8284 | maybe-all-stage2-fixincludes: all-stage2-fixincludes | |
8285 | all-stage2: all-stage2-fixincludes | |
8286 | TARGET-stage2-fixincludes = $(TARGET-fixincludes) | |
8287 | all-stage2-fixincludes: configure-stage2-fixincludes | |
8288 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
8289 | @r=`${PWD_COMMAND}`; export r; \ | |
8290 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8291 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
8292 | $(HOST_EXPORTS) \ | |
8293 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
8294 | cd $(HOST_SUBDIR)/fixincludes && \ | |
05a13254 | 8295 | \ |
201f096f | 8296 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
8297 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
8298 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
8299 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
8300 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
8301 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
8302 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
8303 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 8304 | TFLAGS="$(STAGE2_TFLAGS)" \ |
201f096f | 8305 | $(TARGET-stage2-fixincludes) |
8306 | ||
8307 | maybe-clean-stage2-fixincludes: clean-stage2-fixincludes | |
8308 | clean-stage2: clean-stage2-fixincludes | |
8309 | clean-stage2-fixincludes: | |
8310 | @if [ $(current_stage) = stage2 ]; then \ | |
8311 | [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \ | |
8312 | else \ | |
8313 | [ -f $(HOST_SUBDIR)/stage2-fixincludes/Makefile ] || exit 0; \ | |
8314 | $(MAKE) stage2-start; \ | |
8315 | fi; \ | |
8316 | cd $(HOST_SUBDIR)/fixincludes && \ | |
8317 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean | |
8318 | @endif fixincludes-bootstrap | |
8319 | ||
8320 | ||
8321 | .PHONY: all-stage3-fixincludes maybe-all-stage3-fixincludes | |
8322 | .PHONY: clean-stage3-fixincludes maybe-clean-stage3-fixincludes | |
8323 | maybe-all-stage3-fixincludes: | |
8324 | maybe-clean-stage3-fixincludes: | |
8325 | @if fixincludes-bootstrap | |
8326 | maybe-all-stage3-fixincludes: all-stage3-fixincludes | |
8327 | all-stage3: all-stage3-fixincludes | |
8328 | TARGET-stage3-fixincludes = $(TARGET-fixincludes) | |
8329 | all-stage3-fixincludes: configure-stage3-fixincludes | |
8330 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
8331 | @r=`${PWD_COMMAND}`; export r; \ | |
8332 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8333 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
8334 | $(HOST_EXPORTS) \ | |
8335 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
8336 | cd $(HOST_SUBDIR)/fixincludes && \ | |
05a13254 | 8337 | \ |
201f096f | 8338 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
8339 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
8340 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
8341 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
8342 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
8343 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
8344 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
8345 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 8346 | TFLAGS="$(STAGE3_TFLAGS)" \ |
201f096f | 8347 | $(TARGET-stage3-fixincludes) |
8348 | ||
8349 | maybe-clean-stage3-fixincludes: clean-stage3-fixincludes | |
8350 | clean-stage3: clean-stage3-fixincludes | |
8351 | clean-stage3-fixincludes: | |
8352 | @if [ $(current_stage) = stage3 ]; then \ | |
8353 | [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \ | |
8354 | else \ | |
8355 | [ -f $(HOST_SUBDIR)/stage3-fixincludes/Makefile ] || exit 0; \ | |
8356 | $(MAKE) stage3-start; \ | |
8357 | fi; \ | |
8358 | cd $(HOST_SUBDIR)/fixincludes && \ | |
8359 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean | |
8360 | @endif fixincludes-bootstrap | |
8361 | ||
8362 | ||
8363 | .PHONY: all-stage4-fixincludes maybe-all-stage4-fixincludes | |
8364 | .PHONY: clean-stage4-fixincludes maybe-clean-stage4-fixincludes | |
8365 | maybe-all-stage4-fixincludes: | |
8366 | maybe-clean-stage4-fixincludes: | |
8367 | @if fixincludes-bootstrap | |
8368 | maybe-all-stage4-fixincludes: all-stage4-fixincludes | |
8369 | all-stage4: all-stage4-fixincludes | |
8370 | TARGET-stage4-fixincludes = $(TARGET-fixincludes) | |
8371 | all-stage4-fixincludes: configure-stage4-fixincludes | |
8372 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
8373 | @r=`${PWD_COMMAND}`; export r; \ | |
8374 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8375 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
8376 | $(HOST_EXPORTS) \ | |
8377 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
8378 | cd $(HOST_SUBDIR)/fixincludes && \ | |
05a13254 | 8379 | \ |
201f096f | 8380 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
8381 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
8382 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
8383 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
8384 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
8385 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
8386 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
8387 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 8388 | TFLAGS="$(STAGE4_TFLAGS)" \ |
201f096f | 8389 | $(TARGET-stage4-fixincludes) |
8390 | ||
8391 | maybe-clean-stage4-fixincludes: clean-stage4-fixincludes | |
8392 | clean-stage4: clean-stage4-fixincludes | |
8393 | clean-stage4-fixincludes: | |
8394 | @if [ $(current_stage) = stage4 ]; then \ | |
8395 | [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \ | |
8396 | else \ | |
8397 | [ -f $(HOST_SUBDIR)/stage4-fixincludes/Makefile ] || exit 0; \ | |
8398 | $(MAKE) stage4-start; \ | |
8399 | fi; \ | |
8400 | cd $(HOST_SUBDIR)/fixincludes && \ | |
8401 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean | |
8402 | @endif fixincludes-bootstrap | |
8403 | ||
8404 | ||
8405 | .PHONY: all-stageprofile-fixincludes maybe-all-stageprofile-fixincludes | |
8406 | .PHONY: clean-stageprofile-fixincludes maybe-clean-stageprofile-fixincludes | |
8407 | maybe-all-stageprofile-fixincludes: | |
8408 | maybe-clean-stageprofile-fixincludes: | |
8409 | @if fixincludes-bootstrap | |
8410 | maybe-all-stageprofile-fixincludes: all-stageprofile-fixincludes | |
8411 | all-stageprofile: all-stageprofile-fixincludes | |
8412 | TARGET-stageprofile-fixincludes = $(TARGET-fixincludes) | |
8413 | all-stageprofile-fixincludes: configure-stageprofile-fixincludes | |
8414 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
8415 | @r=`${PWD_COMMAND}`; export r; \ | |
8416 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8417 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
8418 | $(HOST_EXPORTS) \ | |
8419 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
8420 | cd $(HOST_SUBDIR)/fixincludes && \ | |
05a13254 | 8421 | \ |
201f096f | 8422 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
8423 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
8424 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
8425 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
8426 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
8427 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
8428 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
8429 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 8430 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
201f096f | 8431 | $(TARGET-stageprofile-fixincludes) |
8432 | ||
8433 | maybe-clean-stageprofile-fixincludes: clean-stageprofile-fixincludes | |
8434 | clean-stageprofile: clean-stageprofile-fixincludes | |
8435 | clean-stageprofile-fixincludes: | |
8436 | @if [ $(current_stage) = stageprofile ]; then \ | |
8437 | [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \ | |
8438 | else \ | |
8439 | [ -f $(HOST_SUBDIR)/stageprofile-fixincludes/Makefile ] || exit 0; \ | |
8440 | $(MAKE) stageprofile-start; \ | |
8441 | fi; \ | |
8442 | cd $(HOST_SUBDIR)/fixincludes && \ | |
8443 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean | |
8444 | @endif fixincludes-bootstrap | |
8445 | ||
8446 | ||
8447 | .PHONY: all-stagefeedback-fixincludes maybe-all-stagefeedback-fixincludes | |
8448 | .PHONY: clean-stagefeedback-fixincludes maybe-clean-stagefeedback-fixincludes | |
8449 | maybe-all-stagefeedback-fixincludes: | |
8450 | maybe-clean-stagefeedback-fixincludes: | |
8451 | @if fixincludes-bootstrap | |
8452 | maybe-all-stagefeedback-fixincludes: all-stagefeedback-fixincludes | |
8453 | all-stagefeedback: all-stagefeedback-fixincludes | |
8454 | TARGET-stagefeedback-fixincludes = $(TARGET-fixincludes) | |
8455 | all-stagefeedback-fixincludes: configure-stagefeedback-fixincludes | |
8456 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
8457 | @r=`${PWD_COMMAND}`; export r; \ | |
8458 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8459 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
8460 | $(HOST_EXPORTS) \ | |
8461 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
8462 | cd $(HOST_SUBDIR)/fixincludes && \ | |
05a13254 | 8463 | \ |
201f096f | 8464 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
8465 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
8466 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
8467 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
8468 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
8469 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
8470 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
8471 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 8472 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
201f096f | 8473 | $(TARGET-stagefeedback-fixincludes) |
8474 | ||
8475 | maybe-clean-stagefeedback-fixincludes: clean-stagefeedback-fixincludes | |
8476 | clean-stagefeedback: clean-stagefeedback-fixincludes | |
8477 | clean-stagefeedback-fixincludes: | |
8478 | @if [ $(current_stage) = stagefeedback ]; then \ | |
8479 | [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \ | |
8480 | else \ | |
8481 | [ -f $(HOST_SUBDIR)/stagefeedback-fixincludes/Makefile ] || exit 0; \ | |
8482 | $(MAKE) stagefeedback-start; \ | |
8483 | fi; \ | |
8484 | cd $(HOST_SUBDIR)/fixincludes && \ | |
8485 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean | |
8486 | @endif fixincludes-bootstrap | |
8487 | ||
8488 | ||
8489 | ||
8490 | ||
d545f33b | 8491 | |
a90ef4bf JM |
8492 | .PHONY: check-fixincludes maybe-check-fixincludes |
8493 | maybe-check-fixincludes: | |
8494 | @if fixincludes | |
8495 | maybe-check-fixincludes: check-fixincludes | |
4fa63067 | 8496 | |
a90ef4bf | 8497 | check-fixincludes: |
0aed8855 | 8498 | @: $(MAKE); $(unstage) |
4fa63067 NN |
8499 | @r=`${PWD_COMMAND}`; export r; \ |
8500 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 8501 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 8502 | (cd $(HOST_SUBDIR)/fixincludes && \ |
f91ca6bc | 8503 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
4fa63067 | 8504 | |
a90ef4bf | 8505 | @endif fixincludes |
4fa63067 | 8506 | |
a90ef4bf JM |
8507 | .PHONY: install-fixincludes maybe-install-fixincludes |
8508 | maybe-install-fixincludes: | |
8509 | @if fixincludes | |
8510 | maybe-install-fixincludes: install-fixincludes | |
4fa63067 | 8511 | |
a90ef4bf | 8512 | install-fixincludes: installdirs |
0aed8855 | 8513 | @: $(MAKE); $(unstage) |
4fa63067 NN |
8514 | @r=`${PWD_COMMAND}`; export r; \ |
8515 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8516 | $(HOST_EXPORTS) \ |
a90ef4bf | 8517 | (cd $(HOST_SUBDIR)/fixincludes && \ |
2da12f12 | 8518 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 8519 | |
a90ef4bf | 8520 | @endif fixincludes |
4fa63067 | 8521 | |
a90ef4bf JM |
8522 | .PHONY: install-strip-fixincludes maybe-install-strip-fixincludes |
8523 | maybe-install-strip-fixincludes: | |
8524 | @if fixincludes | |
8525 | maybe-install-strip-fixincludes: install-strip-fixincludes | |
9b980aa1 | 8526 | |
a90ef4bf | 8527 | install-strip-fixincludes: installdirs |
9b980aa1 RW |
8528 | @: $(MAKE); $(unstage) |
8529 | @r=`${PWD_COMMAND}`; export r; \ | |
8530 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8531 | $(HOST_EXPORTS) \ | |
a90ef4bf | 8532 | (cd $(HOST_SUBDIR)/fixincludes && \ |
9b980aa1 RW |
8533 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
8534 | ||
a90ef4bf | 8535 | @endif fixincludes |
9b980aa1 | 8536 | |
56a8fe78 | 8537 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 8538 | |
a90ef4bf JM |
8539 | .PHONY: maybe-info-fixincludes info-fixincludes |
8540 | maybe-info-fixincludes: | |
8541 | @if fixincludes | |
8542 | maybe-info-fixincludes: info-fixincludes | |
4fa63067 | 8543 | |
a90ef4bf JM |
8544 | info-fixincludes: \ |
8545 | configure-fixincludes | |
a90ef4bf | 8546 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
b40e3958 L |
8547 | r=`${PWD_COMMAND}`; export r; \ |
8548 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8549 | $(HOST_EXPORTS) \ |
b813574b | 8550 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8551 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8552 | done; \ | |
22121df0 | 8553 | echo "Doing info in fixincludes"; \ |
a90ef4bf | 8554 | (cd $(HOST_SUBDIR)/fixincludes && \ |
2a4cbe27 NN |
8555 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8556 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8557 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 8558 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 8559 | info) \ |
2a4cbe27 NN |
8560 | || exit 1 |
8561 | ||
a90ef4bf | 8562 | @endif fixincludes |
2a4cbe27 | 8563 | |
a90ef4bf JM |
8564 | .PHONY: maybe-dvi-fixincludes dvi-fixincludes |
8565 | maybe-dvi-fixincludes: | |
8566 | @if fixincludes | |
8567 | maybe-dvi-fixincludes: dvi-fixincludes | |
2a4cbe27 | 8568 | |
a90ef4bf JM |
8569 | dvi-fixincludes: \ |
8570 | configure-fixincludes | |
a90ef4bf | 8571 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
b40e3958 L |
8572 | r=`${PWD_COMMAND}`; export r; \ |
8573 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8574 | $(HOST_EXPORTS) \ |
b813574b | 8575 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8576 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8577 | done; \ | |
22121df0 | 8578 | echo "Doing dvi in fixincludes"; \ |
a90ef4bf | 8579 | (cd $(HOST_SUBDIR)/fixincludes && \ |
2a4cbe27 NN |
8580 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8581 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8582 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 8583 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 8584 | dvi) \ |
2a4cbe27 NN |
8585 | || exit 1 |
8586 | ||
a90ef4bf | 8587 | @endif fixincludes |
2a4cbe27 | 8588 | |
a90ef4bf JM |
8589 | .PHONY: maybe-pdf-fixincludes pdf-fixincludes |
8590 | maybe-pdf-fixincludes: | |
8591 | @if fixincludes | |
8592 | maybe-pdf-fixincludes: pdf-fixincludes | |
56a8fe78 | 8593 | |
a90ef4bf JM |
8594 | pdf-fixincludes: \ |
8595 | configure-fixincludes | |
a90ef4bf | 8596 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
56a8fe78 DD |
8597 | r=`${PWD_COMMAND}`; export r; \ |
8598 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8599 | $(HOST_EXPORTS) \ | |
8600 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8601 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8602 | done; \ | |
22121df0 | 8603 | echo "Doing pdf in fixincludes"; \ |
a90ef4bf | 8604 | (cd $(HOST_SUBDIR)/fixincludes && \ |
56a8fe78 DD |
8605 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8606 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8607 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 8608 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
8609 | pdf) \ |
8610 | || exit 1 | |
8611 | ||
a90ef4bf | 8612 | @endif fixincludes |
56a8fe78 | 8613 | |
a90ef4bf JM |
8614 | .PHONY: maybe-html-fixincludes html-fixincludes |
8615 | maybe-html-fixincludes: | |
8616 | @if fixincludes | |
8617 | maybe-html-fixincludes: html-fixincludes | |
6d389afc | 8618 | |
a90ef4bf JM |
8619 | html-fixincludes: \ |
8620 | configure-fixincludes | |
a90ef4bf | 8621 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
6d389afc MS |
8622 | r=`${PWD_COMMAND}`; export r; \ |
8623 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
8624 | $(HOST_EXPORTS) \ |
8625 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8626 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8627 | done; \ | |
22121df0 | 8628 | echo "Doing html in fixincludes"; \ |
a90ef4bf | 8629 | (cd $(HOST_SUBDIR)/fixincludes && \ |
6d389afc MS |
8630 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8631 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8632 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 8633 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
8634 | html) \ |
8635 | || exit 1 | |
8636 | ||
a90ef4bf | 8637 | @endif fixincludes |
6d389afc | 8638 | |
a90ef4bf JM |
8639 | .PHONY: maybe-TAGS-fixincludes TAGS-fixincludes |
8640 | maybe-TAGS-fixincludes: | |
8641 | @if fixincludes | |
8642 | maybe-TAGS-fixincludes: TAGS-fixincludes | |
2a4cbe27 | 8643 | |
a90ef4bf JM |
8644 | # fixincludes doesn't support TAGS. |
8645 | TAGS-fixincludes: | |
2a4cbe27 | 8646 | |
a90ef4bf | 8647 | @endif fixincludes |
2a4cbe27 | 8648 | |
a90ef4bf JM |
8649 | .PHONY: maybe-install-info-fixincludes install-info-fixincludes |
8650 | maybe-install-info-fixincludes: | |
8651 | @if fixincludes | |
8652 | maybe-install-info-fixincludes: install-info-fixincludes | |
2a4cbe27 | 8653 | |
a90ef4bf JM |
8654 | install-info-fixincludes: \ |
8655 | configure-fixincludes \ | |
8656 | info-fixincludes | |
a90ef4bf | 8657 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
b40e3958 L |
8658 | r=`${PWD_COMMAND}`; export r; \ |
8659 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8660 | $(HOST_EXPORTS) \ |
b813574b | 8661 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8662 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8663 | done; \ | |
22121df0 | 8664 | echo "Doing install-info in fixincludes"; \ |
a90ef4bf | 8665 | (cd $(HOST_SUBDIR)/fixincludes && \ |
2a4cbe27 NN |
8666 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8667 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8668 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 8669 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 8670 | install-info) \ |
2a4cbe27 NN |
8671 | || exit 1 |
8672 | ||
a90ef4bf | 8673 | @endif fixincludes |
2a4cbe27 | 8674 | |
a90ef4bf JM |
8675 | .PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes |
8676 | maybe-install-pdf-fixincludes: | |
8677 | @if fixincludes | |
8678 | maybe-install-pdf-fixincludes: install-pdf-fixincludes | |
a3ca38d2 | 8679 | |
a90ef4bf JM |
8680 | install-pdf-fixincludes: \ |
8681 | configure-fixincludes \ | |
8682 | pdf-fixincludes | |
a90ef4bf | 8683 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
a3ca38d2 DD |
8684 | r=`${PWD_COMMAND}`; export r; \ |
8685 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8686 | $(HOST_EXPORTS) \ | |
8687 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8688 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8689 | done; \ | |
22121df0 | 8690 | echo "Doing install-pdf in fixincludes"; \ |
a90ef4bf | 8691 | (cd $(HOST_SUBDIR)/fixincludes && \ |
a3ca38d2 DD |
8692 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8693 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8694 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 8695 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
8696 | install-pdf) \ |
8697 | || exit 1 | |
8698 | ||
a90ef4bf | 8699 | @endif fixincludes |
a3ca38d2 | 8700 | |
a90ef4bf JM |
8701 | .PHONY: maybe-install-html-fixincludes install-html-fixincludes |
8702 | maybe-install-html-fixincludes: | |
8703 | @if fixincludes | |
8704 | maybe-install-html-fixincludes: install-html-fixincludes | |
108a6f8e | 8705 | |
a90ef4bf JM |
8706 | install-html-fixincludes: \ |
8707 | configure-fixincludes \ | |
8708 | html-fixincludes | |
a90ef4bf | 8709 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
108a6f8e CD |
8710 | r=`${PWD_COMMAND}`; export r; \ |
8711 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8712 | $(HOST_EXPORTS) \ | |
8713 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8714 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8715 | done; \ | |
22121df0 | 8716 | echo "Doing install-html in fixincludes"; \ |
a90ef4bf | 8717 | (cd $(HOST_SUBDIR)/fixincludes && \ |
108a6f8e CD |
8718 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8719 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8720 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 8721 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
8722 | install-html) \ |
8723 | || exit 1 | |
8724 | ||
a90ef4bf | 8725 | @endif fixincludes |
108a6f8e | 8726 | |
a90ef4bf JM |
8727 | .PHONY: maybe-installcheck-fixincludes installcheck-fixincludes |
8728 | maybe-installcheck-fixincludes: | |
8729 | @if fixincludes | |
8730 | maybe-installcheck-fixincludes: installcheck-fixincludes | |
2a4cbe27 | 8731 | |
a90ef4bf JM |
8732 | installcheck-fixincludes: \ |
8733 | configure-fixincludes | |
a90ef4bf | 8734 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
b40e3958 L |
8735 | r=`${PWD_COMMAND}`; export r; \ |
8736 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8737 | $(HOST_EXPORTS) \ |
b813574b | 8738 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8739 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8740 | done; \ | |
22121df0 | 8741 | echo "Doing installcheck in fixincludes"; \ |
a90ef4bf | 8742 | (cd $(HOST_SUBDIR)/fixincludes && \ |
2a4cbe27 NN |
8743 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8744 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8745 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 8746 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 8747 | installcheck) \ |
2a4cbe27 NN |
8748 | || exit 1 |
8749 | ||
a90ef4bf | 8750 | @endif fixincludes |
2a4cbe27 | 8751 | |
a90ef4bf JM |
8752 | .PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes |
8753 | maybe-mostlyclean-fixincludes: | |
8754 | @if fixincludes | |
8755 | maybe-mostlyclean-fixincludes: mostlyclean-fixincludes | |
2a4cbe27 | 8756 | |
a90ef4bf | 8757 | mostlyclean-fixincludes: |
a90ef4bf | 8758 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
b40e3958 L |
8759 | r=`${PWD_COMMAND}`; export r; \ |
8760 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8761 | $(HOST_EXPORTS) \ |
b813574b | 8762 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8763 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8764 | done; \ | |
22121df0 | 8765 | echo "Doing mostlyclean in fixincludes"; \ |
a90ef4bf | 8766 | (cd $(HOST_SUBDIR)/fixincludes && \ |
2a4cbe27 NN |
8767 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8768 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8769 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 8770 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 8771 | mostlyclean) \ |
2a4cbe27 NN |
8772 | || exit 1 |
8773 | ||
a90ef4bf | 8774 | @endif fixincludes |
2a4cbe27 | 8775 | |
a90ef4bf JM |
8776 | .PHONY: maybe-clean-fixincludes clean-fixincludes |
8777 | maybe-clean-fixincludes: | |
8778 | @if fixincludes | |
8779 | maybe-clean-fixincludes: clean-fixincludes | |
2a4cbe27 | 8780 | |
a90ef4bf | 8781 | clean-fixincludes: |
a90ef4bf | 8782 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
b40e3958 L |
8783 | r=`${PWD_COMMAND}`; export r; \ |
8784 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8785 | $(HOST_EXPORTS) \ |
b813574b | 8786 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8787 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8788 | done; \ | |
22121df0 | 8789 | echo "Doing clean in fixincludes"; \ |
a90ef4bf | 8790 | (cd $(HOST_SUBDIR)/fixincludes && \ |
2a4cbe27 NN |
8791 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8792 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8793 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 8794 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 8795 | clean) \ |
2a4cbe27 NN |
8796 | || exit 1 |
8797 | ||
a90ef4bf | 8798 | @endif fixincludes |
2a4cbe27 | 8799 | |
a90ef4bf JM |
8800 | .PHONY: maybe-distclean-fixincludes distclean-fixincludes |
8801 | maybe-distclean-fixincludes: | |
8802 | @if fixincludes | |
8803 | maybe-distclean-fixincludes: distclean-fixincludes | |
2a4cbe27 | 8804 | |
a90ef4bf | 8805 | distclean-fixincludes: |
a90ef4bf | 8806 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
b40e3958 L |
8807 | r=`${PWD_COMMAND}`; export r; \ |
8808 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8809 | $(HOST_EXPORTS) \ |
b813574b | 8810 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8811 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8812 | done; \ | |
22121df0 | 8813 | echo "Doing distclean in fixincludes"; \ |
a90ef4bf | 8814 | (cd $(HOST_SUBDIR)/fixincludes && \ |
2a4cbe27 NN |
8815 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8816 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8817 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 8818 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 8819 | distclean) \ |
2a4cbe27 NN |
8820 | || exit 1 |
8821 | ||
a90ef4bf | 8822 | @endif fixincludes |
2a4cbe27 | 8823 | |
a90ef4bf JM |
8824 | .PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes |
8825 | maybe-maintainer-clean-fixincludes: | |
8826 | @if fixincludes | |
8827 | maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes | |
2a4cbe27 | 8828 | |
a90ef4bf | 8829 | maintainer-clean-fixincludes: |
a90ef4bf | 8830 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
b40e3958 L |
8831 | r=`${PWD_COMMAND}`; export r; \ |
8832 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8833 | $(HOST_EXPORTS) \ |
b813574b | 8834 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8835 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8836 | done; \ | |
22121df0 | 8837 | echo "Doing maintainer-clean in fixincludes"; \ |
a90ef4bf | 8838 | (cd $(HOST_SUBDIR)/fixincludes && \ |
2a4cbe27 NN |
8839 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8840 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8841 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 8842 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 8843 | maintainer-clean) \ |
2a4cbe27 NN |
8844 | || exit 1 |
8845 | ||
a90ef4bf | 8846 | @endif fixincludes |
2a4cbe27 | 8847 | |
2a4cbe27 | 8848 | |
a7254363 | 8849 | |
a90ef4bf JM |
8850 | .PHONY: configure-flex maybe-configure-flex |
8851 | maybe-configure-flex: | |
f9806fa5 | 8852 | @if gcc-bootstrap |
a90ef4bf | 8853 | configure-flex: stage_current |
f9806fa5 | 8854 | @endif gcc-bootstrap |
a90ef4bf JM |
8855 | @if flex |
8856 | maybe-configure-flex: configure-flex | |
8857 | configure-flex: | |
f9806fa5 DE |
8858 | @: $(MAKE); $(unstage) |
8859 | @r=`${PWD_COMMAND}`; export r; \ | |
8860 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 8861 | test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \ |
22121df0 | 8862 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex; \ |
1f53ca9a | 8863 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
8864 | echo Configuring in $(HOST_SUBDIR)/flex; \ |
8865 | cd "$(HOST_SUBDIR)/flex" || exit 1; \ | |
f9806fa5 DE |
8866 | case $(srcdir) in \ |
8867 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 8868 | *) topdir=`echo $(HOST_SUBDIR)/flex/ | \ |
f9806fa5 DE |
8869 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
8870 | esac; \ | |
1b6c0831 L |
8871 | module_srcdir=flex; \ |
8872 | $(SHELL) \ | |
8873 | $$s/$$module_srcdir/configure \ | |
8874 | --srcdir=$${topdir}/$$module_srcdir \ | |
f9806fa5 | 8875 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 8876 | --target=${target_alias} \ |
f9806fa5 | 8877 | || exit 1 |
a90ef4bf | 8878 | @endif flex |
f9806fa5 DE |
8879 | |
8880 | ||
8881 | ||
8882 | ||
8883 | ||
a90ef4bf JM |
8884 | .PHONY: all-flex maybe-all-flex |
8885 | maybe-all-flex: | |
f9806fa5 | 8886 | @if gcc-bootstrap |
a90ef4bf | 8887 | all-flex: stage_current |
f9806fa5 | 8888 | @endif gcc-bootstrap |
a90ef4bf JM |
8889 | @if flex |
8890 | TARGET-flex=all | |
8891 | maybe-all-flex: all-flex | |
8892 | all-flex: configure-flex | |
f9806fa5 DE |
8893 | @: $(MAKE); $(unstage) |
8894 | @r=`${PWD_COMMAND}`; export r; \ | |
8895 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 8896 | $(HOST_EXPORTS) \ |
a90ef4bf | 8897 | (cd $(HOST_SUBDIR)/flex && \ |
b3676d82 | 8898 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
8899 | $(TARGET-flex)) |
8900 | @endif flex | |
f9806fa5 DE |
8901 | |
8902 | ||
8903 | ||
8904 | ||
a90ef4bf JM |
8905 | .PHONY: check-flex maybe-check-flex |
8906 | maybe-check-flex: | |
8907 | @if flex | |
8908 | maybe-check-flex: check-flex | |
f9806fa5 | 8909 | |
a90ef4bf JM |
8910 | # This module is only tested in a native toolchain. |
8911 | check-flex: | |
f9806fa5 | 8912 | @: $(MAKE); $(unstage) |
22121df0 | 8913 | @if [ '$(host)' = '$(target)' ]; then \ |
a90ef4bf JM |
8914 | r=`${PWD_COMMAND}`; export r; \ |
8915 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 8916 | $(HOST_EXPORTS) \ |
a90ef4bf | 8917 | (cd $(HOST_SUBDIR)/flex && \ |
f91ca6bc | 8918 | $(MAKE) $(FLAGS_TO_PASS) check) |
a90ef4bf | 8919 | fi |
f9806fa5 | 8920 | |
a90ef4bf | 8921 | @endif flex |
f9806fa5 | 8922 | |
a90ef4bf JM |
8923 | .PHONY: install-flex maybe-install-flex |
8924 | maybe-install-flex: | |
8925 | @if flex | |
8926 | maybe-install-flex: install-flex | |
f9806fa5 | 8927 | |
a90ef4bf | 8928 | install-flex: installdirs |
f9806fa5 DE |
8929 | @: $(MAKE); $(unstage) |
8930 | @r=`${PWD_COMMAND}`; export r; \ | |
8931 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8932 | $(HOST_EXPORTS) \ | |
a90ef4bf | 8933 | (cd $(HOST_SUBDIR)/flex && \ |
f9806fa5 DE |
8934 | $(MAKE) $(FLAGS_TO_PASS) install) |
8935 | ||
a90ef4bf | 8936 | @endif flex |
f9806fa5 | 8937 | |
a90ef4bf JM |
8938 | .PHONY: install-strip-flex maybe-install-strip-flex |
8939 | maybe-install-strip-flex: | |
8940 | @if flex | |
8941 | maybe-install-strip-flex: install-strip-flex | |
9b980aa1 | 8942 | |
a90ef4bf | 8943 | install-strip-flex: installdirs |
9b980aa1 RW |
8944 | @: $(MAKE); $(unstage) |
8945 | @r=`${PWD_COMMAND}`; export r; \ | |
8946 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8947 | $(HOST_EXPORTS) \ | |
a90ef4bf | 8948 | (cd $(HOST_SUBDIR)/flex && \ |
9b980aa1 RW |
8949 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
8950 | ||
a90ef4bf | 8951 | @endif flex |
9b980aa1 | 8952 | |
f9806fa5 DE |
8953 | # Other targets (info, dvi, pdf, etc.) |
8954 | ||
a90ef4bf JM |
8955 | .PHONY: maybe-info-flex info-flex |
8956 | maybe-info-flex: | |
8957 | @if flex | |
8958 | maybe-info-flex: info-flex | |
f9806fa5 | 8959 | |
a90ef4bf JM |
8960 | info-flex: \ |
8961 | configure-flex | |
f9806fa5 | 8962 | @: $(MAKE); $(unstage) |
a90ef4bf | 8963 | @[ -f ./flex/Makefile ] || exit 0; \ |
f9806fa5 DE |
8964 | r=`${PWD_COMMAND}`; export r; \ |
8965 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8966 | $(HOST_EXPORTS) \ | |
8967 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8968 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8969 | done; \ | |
22121df0 | 8970 | echo "Doing info in flex"; \ |
a90ef4bf | 8971 | (cd $(HOST_SUBDIR)/flex && \ |
f9806fa5 DE |
8972 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8973 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8974 | "RANLIB=$${RANLIB}" \ | |
8975 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
8976 | info) \ | |
8977 | || exit 1 | |
8978 | ||
a90ef4bf | 8979 | @endif flex |
f9806fa5 | 8980 | |
a90ef4bf JM |
8981 | .PHONY: maybe-dvi-flex dvi-flex |
8982 | maybe-dvi-flex: | |
8983 | @if flex | |
8984 | maybe-dvi-flex: dvi-flex | |
f9806fa5 | 8985 | |
a90ef4bf JM |
8986 | dvi-flex: \ |
8987 | configure-flex | |
f9806fa5 | 8988 | @: $(MAKE); $(unstage) |
a90ef4bf | 8989 | @[ -f ./flex/Makefile ] || exit 0; \ |
f9806fa5 DE |
8990 | r=`${PWD_COMMAND}`; export r; \ |
8991 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8992 | $(HOST_EXPORTS) \ | |
8993 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8994 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8995 | done; \ | |
22121df0 | 8996 | echo "Doing dvi in flex"; \ |
a90ef4bf | 8997 | (cd $(HOST_SUBDIR)/flex && \ |
f9806fa5 DE |
8998 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8999 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9000 | "RANLIB=$${RANLIB}" \ | |
9001 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
9002 | dvi) \ | |
9003 | || exit 1 | |
9004 | ||
a90ef4bf | 9005 | @endif flex |
f9806fa5 | 9006 | |
a90ef4bf JM |
9007 | .PHONY: maybe-pdf-flex pdf-flex |
9008 | maybe-pdf-flex: | |
9009 | @if flex | |
9010 | maybe-pdf-flex: pdf-flex | |
f9806fa5 | 9011 | |
a90ef4bf JM |
9012 | pdf-flex: \ |
9013 | configure-flex | |
f9806fa5 | 9014 | @: $(MAKE); $(unstage) |
a90ef4bf | 9015 | @[ -f ./flex/Makefile ] || exit 0; \ |
f9806fa5 DE |
9016 | r=`${PWD_COMMAND}`; export r; \ |
9017 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9018 | $(HOST_EXPORTS) \ | |
9019 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9020 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9021 | done; \ | |
22121df0 | 9022 | echo "Doing pdf in flex"; \ |
a90ef4bf | 9023 | (cd $(HOST_SUBDIR)/flex && \ |
f9806fa5 DE |
9024 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9025 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9026 | "RANLIB=$${RANLIB}" \ | |
9027 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
9028 | pdf) \ | |
9029 | || exit 1 | |
9030 | ||
a90ef4bf | 9031 | @endif flex |
f9806fa5 | 9032 | |
a90ef4bf JM |
9033 | .PHONY: maybe-html-flex html-flex |
9034 | maybe-html-flex: | |
9035 | @if flex | |
9036 | maybe-html-flex: html-flex | |
f9806fa5 | 9037 | |
a90ef4bf JM |
9038 | html-flex: \ |
9039 | configure-flex | |
f9806fa5 | 9040 | @: $(MAKE); $(unstage) |
a90ef4bf | 9041 | @[ -f ./flex/Makefile ] || exit 0; \ |
f9806fa5 DE |
9042 | r=`${PWD_COMMAND}`; export r; \ |
9043 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9044 | $(HOST_EXPORTS) \ | |
9045 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9046 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9047 | done; \ | |
22121df0 | 9048 | echo "Doing html in flex"; \ |
a90ef4bf | 9049 | (cd $(HOST_SUBDIR)/flex && \ |
f9806fa5 DE |
9050 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9051 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9052 | "RANLIB=$${RANLIB}" \ | |
9053 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
9054 | html) \ | |
9055 | || exit 1 | |
9056 | ||
a90ef4bf | 9057 | @endif flex |
f9806fa5 | 9058 | |
a90ef4bf JM |
9059 | .PHONY: maybe-TAGS-flex TAGS-flex |
9060 | maybe-TAGS-flex: | |
9061 | @if flex | |
9062 | maybe-TAGS-flex: TAGS-flex | |
f9806fa5 | 9063 | |
a90ef4bf JM |
9064 | TAGS-flex: \ |
9065 | configure-flex | |
f9806fa5 | 9066 | @: $(MAKE); $(unstage) |
a90ef4bf | 9067 | @[ -f ./flex/Makefile ] || exit 0; \ |
f9806fa5 DE |
9068 | r=`${PWD_COMMAND}`; export r; \ |
9069 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9070 | $(HOST_EXPORTS) \ | |
9071 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9072 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9073 | done; \ | |
22121df0 | 9074 | echo "Doing TAGS in flex"; \ |
a90ef4bf | 9075 | (cd $(HOST_SUBDIR)/flex && \ |
f9806fa5 DE |
9076 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9077 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9078 | "RANLIB=$${RANLIB}" \ | |
9079 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
9080 | TAGS) \ | |
9081 | || exit 1 | |
9082 | ||
a90ef4bf | 9083 | @endif flex |
f9806fa5 | 9084 | |
a90ef4bf JM |
9085 | .PHONY: maybe-install-info-flex install-info-flex |
9086 | maybe-install-info-flex: | |
9087 | @if flex | |
9088 | maybe-install-info-flex: install-info-flex | |
f9806fa5 | 9089 | |
a90ef4bf JM |
9090 | install-info-flex: \ |
9091 | configure-flex \ | |
9092 | info-flex | |
f9806fa5 | 9093 | @: $(MAKE); $(unstage) |
a90ef4bf | 9094 | @[ -f ./flex/Makefile ] || exit 0; \ |
f9806fa5 DE |
9095 | r=`${PWD_COMMAND}`; export r; \ |
9096 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9097 | $(HOST_EXPORTS) \ | |
9098 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9099 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9100 | done; \ | |
22121df0 | 9101 | echo "Doing install-info in flex"; \ |
a90ef4bf | 9102 | (cd $(HOST_SUBDIR)/flex && \ |
f9806fa5 DE |
9103 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9104 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9105 | "RANLIB=$${RANLIB}" \ | |
9106 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
9107 | install-info) \ | |
9108 | || exit 1 | |
9109 | ||
a90ef4bf | 9110 | @endif flex |
f9806fa5 | 9111 | |
a90ef4bf JM |
9112 | .PHONY: maybe-install-pdf-flex install-pdf-flex |
9113 | maybe-install-pdf-flex: | |
9114 | @if flex | |
9115 | maybe-install-pdf-flex: install-pdf-flex | |
f9806fa5 | 9116 | |
a90ef4bf JM |
9117 | install-pdf-flex: \ |
9118 | configure-flex \ | |
9119 | pdf-flex | |
f9806fa5 | 9120 | @: $(MAKE); $(unstage) |
a90ef4bf | 9121 | @[ -f ./flex/Makefile ] || exit 0; \ |
f9806fa5 DE |
9122 | r=`${PWD_COMMAND}`; export r; \ |
9123 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9124 | $(HOST_EXPORTS) \ | |
9125 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9126 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9127 | done; \ | |
22121df0 | 9128 | echo "Doing install-pdf in flex"; \ |
a90ef4bf | 9129 | (cd $(HOST_SUBDIR)/flex && \ |
f9806fa5 DE |
9130 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9131 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9132 | "RANLIB=$${RANLIB}" \ | |
9133 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
9134 | install-pdf) \ | |
9135 | || exit 1 | |
9136 | ||
a90ef4bf | 9137 | @endif flex |
f9806fa5 | 9138 | |
a90ef4bf JM |
9139 | .PHONY: maybe-install-html-flex install-html-flex |
9140 | maybe-install-html-flex: | |
9141 | @if flex | |
9142 | maybe-install-html-flex: install-html-flex | |
f9806fa5 | 9143 | |
a90ef4bf JM |
9144 | install-html-flex: \ |
9145 | configure-flex \ | |
9146 | html-flex | |
f9806fa5 | 9147 | @: $(MAKE); $(unstage) |
a90ef4bf | 9148 | @[ -f ./flex/Makefile ] || exit 0; \ |
f9806fa5 DE |
9149 | r=`${PWD_COMMAND}`; export r; \ |
9150 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9151 | $(HOST_EXPORTS) \ | |
9152 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9153 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9154 | done; \ | |
22121df0 | 9155 | echo "Doing install-html in flex"; \ |
a90ef4bf | 9156 | (cd $(HOST_SUBDIR)/flex && \ |
f9806fa5 DE |
9157 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9158 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9159 | "RANLIB=$${RANLIB}" \ | |
9160 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
9161 | install-html) \ | |
9162 | || exit 1 | |
9163 | ||
a90ef4bf | 9164 | @endif flex |
f9806fa5 | 9165 | |
a90ef4bf JM |
9166 | .PHONY: maybe-installcheck-flex installcheck-flex |
9167 | maybe-installcheck-flex: | |
9168 | @if flex | |
9169 | maybe-installcheck-flex: installcheck-flex | |
f9806fa5 | 9170 | |
a90ef4bf JM |
9171 | installcheck-flex: \ |
9172 | configure-flex | |
f9806fa5 | 9173 | @: $(MAKE); $(unstage) |
a90ef4bf | 9174 | @[ -f ./flex/Makefile ] || exit 0; \ |
f9806fa5 DE |
9175 | r=`${PWD_COMMAND}`; export r; \ |
9176 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9177 | $(HOST_EXPORTS) \ | |
9178 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9179 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9180 | done; \ | |
22121df0 | 9181 | echo "Doing installcheck in flex"; \ |
a90ef4bf | 9182 | (cd $(HOST_SUBDIR)/flex && \ |
f9806fa5 DE |
9183 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9184 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9185 | "RANLIB=$${RANLIB}" \ | |
9186 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
9187 | installcheck) \ | |
9188 | || exit 1 | |
9189 | ||
a90ef4bf | 9190 | @endif flex |
f9806fa5 | 9191 | |
a90ef4bf JM |
9192 | .PHONY: maybe-mostlyclean-flex mostlyclean-flex |
9193 | maybe-mostlyclean-flex: | |
9194 | @if flex | |
9195 | maybe-mostlyclean-flex: mostlyclean-flex | |
f9806fa5 | 9196 | |
a90ef4bf | 9197 | mostlyclean-flex: |
f9806fa5 | 9198 | @: $(MAKE); $(unstage) |
a90ef4bf | 9199 | @[ -f ./flex/Makefile ] || exit 0; \ |
f9806fa5 DE |
9200 | r=`${PWD_COMMAND}`; export r; \ |
9201 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9202 | $(HOST_EXPORTS) \ | |
9203 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9204 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9205 | done; \ | |
22121df0 | 9206 | echo "Doing mostlyclean in flex"; \ |
a90ef4bf | 9207 | (cd $(HOST_SUBDIR)/flex && \ |
f9806fa5 DE |
9208 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9209 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9210 | "RANLIB=$${RANLIB}" \ | |
9211 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
9212 | mostlyclean) \ | |
9213 | || exit 1 | |
9214 | ||
a90ef4bf | 9215 | @endif flex |
f9806fa5 | 9216 | |
a90ef4bf JM |
9217 | .PHONY: maybe-clean-flex clean-flex |
9218 | maybe-clean-flex: | |
9219 | @if flex | |
9220 | maybe-clean-flex: clean-flex | |
f9806fa5 | 9221 | |
a90ef4bf | 9222 | clean-flex: |
f9806fa5 | 9223 | @: $(MAKE); $(unstage) |
a90ef4bf | 9224 | @[ -f ./flex/Makefile ] || exit 0; \ |
f9806fa5 DE |
9225 | r=`${PWD_COMMAND}`; export r; \ |
9226 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9227 | $(HOST_EXPORTS) \ | |
9228 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9229 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9230 | done; \ | |
22121df0 | 9231 | echo "Doing clean in flex"; \ |
a90ef4bf | 9232 | (cd $(HOST_SUBDIR)/flex && \ |
f9806fa5 DE |
9233 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9234 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9235 | "RANLIB=$${RANLIB}" \ | |
9236 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
9237 | clean) \ | |
9238 | || exit 1 | |
9239 | ||
a90ef4bf | 9240 | @endif flex |
f9806fa5 | 9241 | |
a90ef4bf JM |
9242 | .PHONY: maybe-distclean-flex distclean-flex |
9243 | maybe-distclean-flex: | |
9244 | @if flex | |
9245 | maybe-distclean-flex: distclean-flex | |
f9806fa5 | 9246 | |
a90ef4bf | 9247 | distclean-flex: |
f9806fa5 | 9248 | @: $(MAKE); $(unstage) |
a90ef4bf | 9249 | @[ -f ./flex/Makefile ] || exit 0; \ |
f9806fa5 DE |
9250 | r=`${PWD_COMMAND}`; export r; \ |
9251 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9252 | $(HOST_EXPORTS) \ | |
9253 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9254 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9255 | done; \ | |
22121df0 | 9256 | echo "Doing distclean in flex"; \ |
a90ef4bf | 9257 | (cd $(HOST_SUBDIR)/flex && \ |
f9806fa5 DE |
9258 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9259 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9260 | "RANLIB=$${RANLIB}" \ | |
9261 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
9262 | distclean) \ | |
9263 | || exit 1 | |
9264 | ||
a90ef4bf | 9265 | @endif flex |
f9806fa5 | 9266 | |
a90ef4bf JM |
9267 | .PHONY: maybe-maintainer-clean-flex maintainer-clean-flex |
9268 | maybe-maintainer-clean-flex: | |
9269 | @if flex | |
9270 | maybe-maintainer-clean-flex: maintainer-clean-flex | |
f9806fa5 | 9271 | |
a90ef4bf | 9272 | maintainer-clean-flex: |
f9806fa5 | 9273 | @: $(MAKE); $(unstage) |
a90ef4bf | 9274 | @[ -f ./flex/Makefile ] || exit 0; \ |
f9806fa5 DE |
9275 | r=`${PWD_COMMAND}`; export r; \ |
9276 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9277 | $(HOST_EXPORTS) \ | |
9278 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9279 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9280 | done; \ | |
22121df0 | 9281 | echo "Doing maintainer-clean in flex"; \ |
a90ef4bf | 9282 | (cd $(HOST_SUBDIR)/flex && \ |
f9806fa5 DE |
9283 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9284 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9285 | "RANLIB=$${RANLIB}" \ | |
9286 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
9287 | maintainer-clean) \ | |
9288 | || exit 1 | |
9289 | ||
a90ef4bf | 9290 | @endif flex |
f9806fa5 DE |
9291 | |
9292 | ||
9293 | ||
a90ef4bf JM |
9294 | .PHONY: configure-gas maybe-configure-gas |
9295 | maybe-configure-gas: | |
4f0ef2d8 | 9296 | @if gcc-bootstrap |
a90ef4bf | 9297 | configure-gas: stage_current |
4f0ef2d8 | 9298 | @endif gcc-bootstrap |
a90ef4bf JM |
9299 | @if gas |
9300 | maybe-configure-gas: configure-gas | |
9301 | configure-gas: | |
c52c6897 | 9302 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 9303 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 9304 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ |
22121df0 | 9305 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \ |
1f53ca9a | 9306 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
9307 | echo Configuring in $(HOST_SUBDIR)/gas; \ |
9308 | cd "$(HOST_SUBDIR)/gas" || exit 1; \ | |
4fa63067 | 9309 | case $(srcdir) in \ |
b00612cc | 9310 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 9311 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ |
b00612cc | 9312 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 9313 | esac; \ |
1b6c0831 L |
9314 | module_srcdir=gas; \ |
9315 | $(SHELL) \ | |
9316 | $$s/$$module_srcdir/configure \ | |
9317 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 9318 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 9319 | --target=${target_alias} \ |
4fa63067 | 9320 | || exit 1 |
a90ef4bf | 9321 | @endif gas |
a7254363 | 9322 | |
d545f33b PB |
9323 | |
9324 | ||
a90ef4bf JM |
9325 | .PHONY: configure-stage1-gas maybe-configure-stage1-gas |
9326 | maybe-configure-stage1-gas: | |
9327 | @if gas-bootstrap | |
9328 | maybe-configure-stage1-gas: configure-stage1-gas | |
9329 | configure-stage1-gas: | |
9330 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
9331 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas | |
4fa63067 NN |
9332 | @r=`${PWD_COMMAND}`; export r; \ |
9333 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
9334 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
9335 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ | |
9336 | $(HOST_EXPORTS) \ | |
9337 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ | |
9338 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
9339 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
9340 | echo Configuring stage 1 in $(HOST_SUBDIR)/gas; \ |
9341 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \ | |
a90ef4bf JM |
9342 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
9343 | case $(srcdir) in \ | |
9344 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
9345 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
9346 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
9347 | esac; \ | |
1b6c0831 L |
9348 | module_srcdir=gas; \ |
9349 | $(SHELL) $$s/$$module_srcdir/configure \ | |
9350 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 9351 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
9352 | --target=${target_alias} \ |
9353 | \ | |
a90ef4bf JM |
9354 | $(STAGE1_CONFIGURE_FLAGS) |
9355 | @endif gas-bootstrap | |
4fa63067 | 9356 | |
a90ef4bf JM |
9357 | .PHONY: configure-stage2-gas maybe-configure-stage2-gas |
9358 | maybe-configure-stage2-gas: | |
9359 | @if gas-bootstrap | |
9360 | maybe-configure-stage2-gas: configure-stage2-gas | |
9361 | configure-stage2-gas: | |
9362 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
9363 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas | |
4fa63067 NN |
9364 | @r=`${PWD_COMMAND}`; export r; \ |
9365 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
9366 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
9367 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ | |
378fce5b | 9368 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
9369 | $(POSTSTAGE1_HOST_EXPORTS) \ |
9370 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
9371 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
9372 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
9373 | echo Configuring stage 2 in $(HOST_SUBDIR)/gas; \ |
9374 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \ | |
a90ef4bf JM |
9375 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
9376 | case $(srcdir) in \ | |
9377 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
9378 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
9379 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
9380 | esac; \ | |
1b6c0831 L |
9381 | module_srcdir=gas; \ |
9382 | $(SHELL) $$s/$$module_srcdir/configure \ | |
9383 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 9384 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 9385 | --target=${target_alias} \ |
22121df0 | 9386 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
9387 | $(STAGE2_CONFIGURE_FLAGS) |
9388 | @endif gas-bootstrap | |
4fa63067 | 9389 | |
a90ef4bf JM |
9390 | .PHONY: configure-stage3-gas maybe-configure-stage3-gas |
9391 | maybe-configure-stage3-gas: | |
9392 | @if gas-bootstrap | |
9393 | maybe-configure-stage3-gas: configure-stage3-gas | |
9394 | configure-stage3-gas: | |
9395 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
9396 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas | |
4fa63067 NN |
9397 | @r=`${PWD_COMMAND}`; export r; \ |
9398 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
9399 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
9400 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ | |
378fce5b | 9401 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
9402 | $(POSTSTAGE1_HOST_EXPORTS) \ |
9403 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
9404 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
9405 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
9406 | echo Configuring stage 3 in $(HOST_SUBDIR)/gas; \ |
9407 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \ | |
a90ef4bf JM |
9408 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
9409 | case $(srcdir) in \ | |
9410 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
9411 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
9412 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
9413 | esac; \ | |
1b6c0831 L |
9414 | module_srcdir=gas; \ |
9415 | $(SHELL) $$s/$$module_srcdir/configure \ | |
9416 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 9417 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 9418 | --target=${target_alias} \ |
22121df0 | 9419 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
9420 | $(STAGE3_CONFIGURE_FLAGS) |
9421 | @endif gas-bootstrap | |
9b980aa1 | 9422 | |
a90ef4bf JM |
9423 | .PHONY: configure-stage4-gas maybe-configure-stage4-gas |
9424 | maybe-configure-stage4-gas: | |
9425 | @if gas-bootstrap | |
9426 | maybe-configure-stage4-gas: configure-stage4-gas | |
9427 | configure-stage4-gas: | |
9428 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
9429 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas | |
9b980aa1 RW |
9430 | @r=`${PWD_COMMAND}`; export r; \ |
9431 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
9432 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
9433 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ | |
9b980aa1 | 9434 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
9435 | $(POSTSTAGE1_HOST_EXPORTS) \ |
9436 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
9437 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
9438 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
9439 | echo Configuring stage 4 in $(HOST_SUBDIR)/gas; \ |
9440 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \ | |
a90ef4bf JM |
9441 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
9442 | case $(srcdir) in \ | |
9443 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
9444 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
9445 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
9446 | esac; \ | |
1b6c0831 L |
9447 | module_srcdir=gas; \ |
9448 | $(SHELL) $$s/$$module_srcdir/configure \ | |
9449 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 9450 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 9451 | --target=${target_alias} \ |
22121df0 | 9452 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
9453 | $(STAGE4_CONFIGURE_FLAGS) |
9454 | @endif gas-bootstrap | |
4fa63067 | 9455 | |
a90ef4bf JM |
9456 | .PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas |
9457 | maybe-configure-stageprofile-gas: | |
9458 | @if gas-bootstrap | |
9459 | maybe-configure-stageprofile-gas: configure-stageprofile-gas | |
9460 | configure-stageprofile-gas: | |
9461 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
9462 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas | |
9463 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 9464 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
9465 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
9466 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ | |
378fce5b | 9467 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
9468 | $(POSTSTAGE1_HOST_EXPORTS) \ |
9469 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
9470 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
9471 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
9472 | echo Configuring stage profile in $(HOST_SUBDIR)/gas; \ |
9473 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \ | |
a90ef4bf JM |
9474 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
9475 | case $(srcdir) in \ | |
9476 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
9477 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
9478 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
9479 | esac; \ | |
1b6c0831 L |
9480 | module_srcdir=gas; \ |
9481 | $(SHELL) $$s/$$module_srcdir/configure \ | |
9482 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 9483 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 9484 | --target=${target_alias} \ |
22121df0 | 9485 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
9486 | $(STAGEprofile_CONFIGURE_FLAGS) |
9487 | @endif gas-bootstrap | |
2a4cbe27 | 9488 | |
a90ef4bf JM |
9489 | .PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas |
9490 | maybe-configure-stagefeedback-gas: | |
9491 | @if gas-bootstrap | |
9492 | maybe-configure-stagefeedback-gas: configure-stagefeedback-gas | |
9493 | configure-stagefeedback-gas: | |
9494 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
9495 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas | |
9496 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 9497 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
9498 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
9499 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ | |
378fce5b | 9500 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
9501 | $(POSTSTAGE1_HOST_EXPORTS) \ |
9502 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
9503 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
9504 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
9505 | echo Configuring stage feedback in $(HOST_SUBDIR)/gas; \ |
9506 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \ | |
a90ef4bf JM |
9507 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
9508 | case $(srcdir) in \ | |
9509 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
9510 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
9511 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
9512 | esac; \ | |
1b6c0831 L |
9513 | module_srcdir=gas; \ |
9514 | $(SHELL) $$s/$$module_srcdir/configure \ | |
9515 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 9516 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 9517 | --target=${target_alias} \ |
22121df0 | 9518 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
9519 | $(STAGEfeedback_CONFIGURE_FLAGS) |
9520 | @endif gas-bootstrap | |
2a4cbe27 | 9521 | |
56a8fe78 | 9522 | |
56a8fe78 | 9523 | |
56a8fe78 | 9524 | |
6d389afc | 9525 | |
a90ef4bf JM |
9526 | .PHONY: all-gas maybe-all-gas |
9527 | maybe-all-gas: | |
9528 | @if gcc-bootstrap | |
9529 | all-gas: stage_current | |
9530 | @endif gcc-bootstrap | |
9531 | @if gas | |
9532 | TARGET-gas=all | |
9533 | maybe-all-gas: all-gas | |
9534 | all-gas: configure-gas | |
9535 | @r=`${PWD_COMMAND}`; export r; \ | |
6d389afc | 9536 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
9537 | $(HOST_EXPORTS) \ |
9538 | (cd $(HOST_SUBDIR)/gas && \ | |
b3676d82 | 9539 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
9540 | $(TARGET-gas)) |
9541 | @endif gas | |
6d389afc | 9542 | |
6d389afc | 9543 | |
2a4cbe27 | 9544 | |
a90ef4bf JM |
9545 | .PHONY: all-stage1-gas maybe-all-stage1-gas |
9546 | .PHONY: clean-stage1-gas maybe-clean-stage1-gas | |
9547 | maybe-all-stage1-gas: | |
9548 | maybe-clean-stage1-gas: | |
9549 | @if gas-bootstrap | |
9550 | maybe-all-stage1-gas: all-stage1-gas | |
9551 | all-stage1: all-stage1-gas | |
9552 | TARGET-stage1-gas = $(TARGET-gas) | |
9553 | all-stage1-gas: configure-stage1-gas | |
9554 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
9555 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 9556 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
9557 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
9558 | $(HOST_EXPORTS) \ | |
9559 | cd $(HOST_SUBDIR)/gas && \ | |
05a13254 | 9560 | \ |
a90ef4bf JM |
9561 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
9562 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
9563 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
9564 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
9565 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
9566 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
9567 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
9568 | $(EXTRA_HOST_FLAGS) \ |
9569 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 9570 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 9571 | $(TARGET-stage1-gas) |
2a4cbe27 | 9572 | |
a90ef4bf JM |
9573 | maybe-clean-stage1-gas: clean-stage1-gas |
9574 | clean-stage1: clean-stage1-gas | |
9575 | clean-stage1-gas: | |
9576 | @if [ $(current_stage) = stage1 ]; then \ | |
9577 | [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \ | |
9578 | else \ | |
9579 | [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \ | |
9580 | $(MAKE) stage1-start; \ | |
9581 | fi; \ | |
9582 | cd $(HOST_SUBDIR)/gas && \ | |
9583 | $(MAKE) $(EXTRA_HOST_FLAGS) \ | |
b3676d82 | 9584 | $(STAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 9585 | @endif gas-bootstrap |
2a4cbe27 | 9586 | |
2a4cbe27 | 9587 | |
a90ef4bf JM |
9588 | .PHONY: all-stage2-gas maybe-all-stage2-gas |
9589 | .PHONY: clean-stage2-gas maybe-clean-stage2-gas | |
9590 | maybe-all-stage2-gas: | |
9591 | maybe-clean-stage2-gas: | |
9592 | @if gas-bootstrap | |
9593 | maybe-all-stage2-gas: all-stage2-gas | |
9594 | all-stage2: all-stage2-gas | |
9595 | TARGET-stage2-gas = $(TARGET-gas) | |
9596 | all-stage2-gas: configure-stage2-gas | |
9597 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
9598 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 9599 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 9600 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
378fce5b | 9601 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
9602 | $(POSTSTAGE1_HOST_EXPORTS) \ |
9603 | cd $(HOST_SUBDIR)/gas && \ | |
05a13254 | 9604 | \ |
a90ef4bf JM |
9605 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
9606 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
9607 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
9608 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
9609 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
9610 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
9611 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
9612 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 9613 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 9614 | $(TARGET-stage2-gas) |
2a4cbe27 | 9615 | |
a90ef4bf JM |
9616 | maybe-clean-stage2-gas: clean-stage2-gas |
9617 | clean-stage2: clean-stage2-gas | |
9618 | clean-stage2-gas: | |
9619 | @if [ $(current_stage) = stage2 ]; then \ | |
9620 | [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \ | |
9621 | else \ | |
9622 | [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \ | |
9623 | $(MAKE) stage2-start; \ | |
9624 | fi; \ | |
9625 | cd $(HOST_SUBDIR)/gas && \ | |
b3676d82 | 9626 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 9627 | @endif gas-bootstrap |
2a4cbe27 | 9628 | |
2a4cbe27 | 9629 | |
a90ef4bf JM |
9630 | .PHONY: all-stage3-gas maybe-all-stage3-gas |
9631 | .PHONY: clean-stage3-gas maybe-clean-stage3-gas | |
9632 | maybe-all-stage3-gas: | |
9633 | maybe-clean-stage3-gas: | |
9634 | @if gas-bootstrap | |
9635 | maybe-all-stage3-gas: all-stage3-gas | |
9636 | all-stage3: all-stage3-gas | |
9637 | TARGET-stage3-gas = $(TARGET-gas) | |
9638 | all-stage3-gas: configure-stage3-gas | |
9639 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
9640 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 9641 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 9642 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
378fce5b | 9643 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
9644 | $(POSTSTAGE1_HOST_EXPORTS) \ |
9645 | cd $(HOST_SUBDIR)/gas && \ | |
05a13254 | 9646 | \ |
a90ef4bf JM |
9647 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
9648 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
9649 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
9650 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
9651 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
9652 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
9653 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
9654 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 9655 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 9656 | $(TARGET-stage3-gas) |
2a4cbe27 | 9657 | |
a90ef4bf JM |
9658 | maybe-clean-stage3-gas: clean-stage3-gas |
9659 | clean-stage3: clean-stage3-gas | |
9660 | clean-stage3-gas: | |
9661 | @if [ $(current_stage) = stage3 ]; then \ | |
9662 | [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \ | |
9663 | else \ | |
9664 | [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \ | |
9665 | $(MAKE) stage3-start; \ | |
9666 | fi; \ | |
9667 | cd $(HOST_SUBDIR)/gas && \ | |
b3676d82 | 9668 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 9669 | @endif gas-bootstrap |
2a4cbe27 | 9670 | |
2a4cbe27 | 9671 | |
a90ef4bf JM |
9672 | .PHONY: all-stage4-gas maybe-all-stage4-gas |
9673 | .PHONY: clean-stage4-gas maybe-clean-stage4-gas | |
9674 | maybe-all-stage4-gas: | |
9675 | maybe-clean-stage4-gas: | |
9676 | @if gas-bootstrap | |
9677 | maybe-all-stage4-gas: all-stage4-gas | |
9678 | all-stage4: all-stage4-gas | |
9679 | TARGET-stage4-gas = $(TARGET-gas) | |
9680 | all-stage4-gas: configure-stage4-gas | |
9681 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
9682 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 9683 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 9684 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
378fce5b | 9685 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
9686 | $(POSTSTAGE1_HOST_EXPORTS) \ |
9687 | cd $(HOST_SUBDIR)/gas && \ | |
05a13254 | 9688 | \ |
a90ef4bf JM |
9689 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
9690 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
9691 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
9692 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
9693 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
9694 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
9695 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
9696 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 9697 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 9698 | $(TARGET-stage4-gas) |
2a4cbe27 | 9699 | |
a90ef4bf JM |
9700 | maybe-clean-stage4-gas: clean-stage4-gas |
9701 | clean-stage4: clean-stage4-gas | |
9702 | clean-stage4-gas: | |
9703 | @if [ $(current_stage) = stage4 ]; then \ | |
9704 | [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \ | |
9705 | else \ | |
9706 | [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \ | |
9707 | $(MAKE) stage4-start; \ | |
9708 | fi; \ | |
9709 | cd $(HOST_SUBDIR)/gas && \ | |
b3676d82 | 9710 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 9711 | @endif gas-bootstrap |
2a4cbe27 | 9712 | |
2a4cbe27 | 9713 | |
a90ef4bf JM |
9714 | .PHONY: all-stageprofile-gas maybe-all-stageprofile-gas |
9715 | .PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas | |
9716 | maybe-all-stageprofile-gas: | |
9717 | maybe-clean-stageprofile-gas: | |
9718 | @if gas-bootstrap | |
9719 | maybe-all-stageprofile-gas: all-stageprofile-gas | |
9720 | all-stageprofile: all-stageprofile-gas | |
9721 | TARGET-stageprofile-gas = $(TARGET-gas) | |
9722 | all-stageprofile-gas: configure-stageprofile-gas | |
9723 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
9724 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 9725 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 9726 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
378fce5b | 9727 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
9728 | $(POSTSTAGE1_HOST_EXPORTS) \ |
9729 | cd $(HOST_SUBDIR)/gas && \ | |
05a13254 | 9730 | \ |
a90ef4bf JM |
9731 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
9732 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
9733 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
9734 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
9735 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
9736 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
9737 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
9738 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 9739 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf | 9740 | $(TARGET-stageprofile-gas) |
4fa63067 | 9741 | |
a90ef4bf JM |
9742 | maybe-clean-stageprofile-gas: clean-stageprofile-gas |
9743 | clean-stageprofile: clean-stageprofile-gas | |
9744 | clean-stageprofile-gas: | |
9745 | @if [ $(current_stage) = stageprofile ]; then \ | |
9746 | [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \ | |
9747 | else \ | |
9748 | [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \ | |
9749 | $(MAKE) stageprofile-start; \ | |
9750 | fi; \ | |
9751 | cd $(HOST_SUBDIR)/gas && \ | |
b3676d82 | 9752 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 9753 | @endif gas-bootstrap |
4fa63067 | 9754 | |
a7254363 | 9755 | |
a90ef4bf JM |
9756 | .PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas |
9757 | .PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas | |
9758 | maybe-all-stagefeedback-gas: | |
9759 | maybe-clean-stagefeedback-gas: | |
9760 | @if gas-bootstrap | |
9761 | maybe-all-stagefeedback-gas: all-stagefeedback-gas | |
9762 | all-stagefeedback: all-stagefeedback-gas | |
9763 | TARGET-stagefeedback-gas = $(TARGET-gas) | |
9764 | all-stagefeedback-gas: configure-stagefeedback-gas | |
9765 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
c52c6897 | 9766 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 9767 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
9768 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
9769 | $(HOST_EXPORTS) \ | |
9770 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
9771 | cd $(HOST_SUBDIR)/gas && \ | |
05a13254 | 9772 | \ |
a90ef4bf JM |
9773 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
9774 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
9775 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
9776 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
9777 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
9778 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
9779 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
9780 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 9781 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf | 9782 | $(TARGET-stagefeedback-gas) |
d545f33b | 9783 | |
a90ef4bf JM |
9784 | maybe-clean-stagefeedback-gas: clean-stagefeedback-gas |
9785 | clean-stagefeedback: clean-stagefeedback-gas | |
9786 | clean-stagefeedback-gas: | |
9787 | @if [ $(current_stage) = stagefeedback ]; then \ | |
9788 | [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \ | |
9789 | else \ | |
9790 | [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \ | |
9791 | $(MAKE) stagefeedback-start; \ | |
9792 | fi; \ | |
9793 | cd $(HOST_SUBDIR)/gas && \ | |
b3676d82 | 9794 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 9795 | @endif gas-bootstrap |
d545f33b | 9796 | |
2a4cbe27 | 9797 | |
a7254363 | 9798 | |
d545f33b PB |
9799 | |
9800 | ||
a90ef4bf JM |
9801 | .PHONY: check-gas maybe-check-gas |
9802 | maybe-check-gas: | |
9803 | @if gas | |
9804 | maybe-check-gas: check-gas | |
2a4cbe27 | 9805 | |
a90ef4bf | 9806 | check-gas: |
0aed8855 | 9807 | @: $(MAKE); $(unstage) |
4fa63067 | 9808 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 9809 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
f91ca6bc | 9810 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 9811 | (cd $(HOST_SUBDIR)/gas && \ |
f91ca6bc | 9812 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
2a4cbe27 | 9813 | |
a90ef4bf | 9814 | @endif gas |
2a4cbe27 | 9815 | |
a90ef4bf JM |
9816 | .PHONY: install-gas maybe-install-gas |
9817 | maybe-install-gas: | |
9818 | @if gas | |
9819 | maybe-install-gas: install-gas | |
2a4cbe27 | 9820 | |
a90ef4bf | 9821 | install-gas: installdirs |
0aed8855 | 9822 | @: $(MAKE); $(unstage) |
4fa63067 | 9823 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 9824 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 9825 | $(HOST_EXPORTS) \ |
a90ef4bf | 9826 | (cd $(HOST_SUBDIR)/gas && \ |
2da12f12 | 9827 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 9828 | |
a90ef4bf | 9829 | @endif gas |
2a4cbe27 | 9830 | |
a90ef4bf JM |
9831 | .PHONY: install-strip-gas maybe-install-strip-gas |
9832 | maybe-install-strip-gas: | |
9833 | @if gas | |
9834 | maybe-install-strip-gas: install-strip-gas | |
9b980aa1 | 9835 | |
a90ef4bf | 9836 | install-strip-gas: installdirs |
9b980aa1 RW |
9837 | @: $(MAKE); $(unstage) |
9838 | @r=`${PWD_COMMAND}`; export r; \ | |
9839 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9840 | $(HOST_EXPORTS) \ | |
a90ef4bf | 9841 | (cd $(HOST_SUBDIR)/gas && \ |
9b980aa1 RW |
9842 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
9843 | ||
a90ef4bf | 9844 | @endif gas |
9b980aa1 | 9845 | |
56a8fe78 | 9846 | # Other targets (info, dvi, pdf, etc.) |
2a4cbe27 | 9847 | |
a90ef4bf JM |
9848 | .PHONY: maybe-info-gas info-gas |
9849 | maybe-info-gas: | |
9850 | @if gas | |
9851 | maybe-info-gas: info-gas | |
2a4cbe27 | 9852 | |
a90ef4bf JM |
9853 | info-gas: \ |
9854 | configure-gas | |
9855 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
9856 | r=`${PWD_COMMAND}`; export r; \ |
9857 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9858 | $(HOST_EXPORTS) \ |
b813574b | 9859 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9860 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9861 | done; \ | |
22121df0 | 9862 | echo "Doing info in gas"; \ |
a90ef4bf | 9863 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
9864 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9865 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9866 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 9867 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 9868 | info) \ |
2a4cbe27 NN |
9869 | || exit 1 |
9870 | ||
a90ef4bf | 9871 | @endif gas |
2a4cbe27 | 9872 | |
a90ef4bf JM |
9873 | .PHONY: maybe-dvi-gas dvi-gas |
9874 | maybe-dvi-gas: | |
9875 | @if gas | |
9876 | maybe-dvi-gas: dvi-gas | |
2a4cbe27 | 9877 | |
a90ef4bf JM |
9878 | dvi-gas: \ |
9879 | configure-gas | |
9880 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
9881 | r=`${PWD_COMMAND}`; export r; \ |
9882 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9883 | $(HOST_EXPORTS) \ |
b813574b | 9884 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9885 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9886 | done; \ | |
22121df0 | 9887 | echo "Doing dvi in gas"; \ |
a90ef4bf | 9888 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
9889 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9890 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9891 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 9892 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 9893 | dvi) \ |
2a4cbe27 NN |
9894 | || exit 1 |
9895 | ||
a90ef4bf | 9896 | @endif gas |
2a4cbe27 | 9897 | |
a90ef4bf JM |
9898 | .PHONY: maybe-pdf-gas pdf-gas |
9899 | maybe-pdf-gas: | |
9900 | @if gas | |
9901 | maybe-pdf-gas: pdf-gas | |
56a8fe78 | 9902 | |
a90ef4bf JM |
9903 | pdf-gas: \ |
9904 | configure-gas | |
9905 | @[ -f ./gas/Makefile ] || exit 0; \ | |
56a8fe78 DD |
9906 | r=`${PWD_COMMAND}`; export r; \ |
9907 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9908 | $(HOST_EXPORTS) \ | |
9909 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9910 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9911 | done; \ | |
22121df0 | 9912 | echo "Doing pdf in gas"; \ |
a90ef4bf | 9913 | (cd $(HOST_SUBDIR)/gas && \ |
56a8fe78 DD |
9914 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9915 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9916 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 9917 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
9918 | pdf) \ |
9919 | || exit 1 | |
9920 | ||
a90ef4bf | 9921 | @endif gas |
56a8fe78 | 9922 | |
a90ef4bf JM |
9923 | .PHONY: maybe-html-gas html-gas |
9924 | maybe-html-gas: | |
9925 | @if gas | |
9926 | maybe-html-gas: html-gas | |
6d389afc | 9927 | |
a90ef4bf JM |
9928 | html-gas: \ |
9929 | configure-gas | |
9930 | @[ -f ./gas/Makefile ] || exit 0; \ | |
6d389afc MS |
9931 | r=`${PWD_COMMAND}`; export r; \ |
9932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
9933 | $(HOST_EXPORTS) \ |
9934 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9935 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9936 | done; \ | |
22121df0 | 9937 | echo "Doing html in gas"; \ |
a90ef4bf | 9938 | (cd $(HOST_SUBDIR)/gas && \ |
6d389afc MS |
9939 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9940 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9941 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 9942 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
9943 | html) \ |
9944 | || exit 1 | |
9945 | ||
a90ef4bf | 9946 | @endif gas |
6d389afc | 9947 | |
a90ef4bf JM |
9948 | .PHONY: maybe-TAGS-gas TAGS-gas |
9949 | maybe-TAGS-gas: | |
9950 | @if gas | |
9951 | maybe-TAGS-gas: TAGS-gas | |
2a4cbe27 | 9952 | |
a90ef4bf JM |
9953 | TAGS-gas: \ |
9954 | configure-gas | |
9955 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
9956 | r=`${PWD_COMMAND}`; export r; \ |
9957 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9958 | $(HOST_EXPORTS) \ |
b813574b | 9959 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9960 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9961 | done; \ | |
22121df0 | 9962 | echo "Doing TAGS in gas"; \ |
a90ef4bf | 9963 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
9964 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9965 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9966 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 9967 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 9968 | TAGS) \ |
2a4cbe27 NN |
9969 | || exit 1 |
9970 | ||
a90ef4bf | 9971 | @endif gas |
2a4cbe27 | 9972 | |
a90ef4bf JM |
9973 | .PHONY: maybe-install-info-gas install-info-gas |
9974 | maybe-install-info-gas: | |
9975 | @if gas | |
9976 | maybe-install-info-gas: install-info-gas | |
2a4cbe27 | 9977 | |
a90ef4bf JM |
9978 | install-info-gas: \ |
9979 | configure-gas \ | |
9980 | info-gas | |
9981 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
9982 | r=`${PWD_COMMAND}`; export r; \ |
9983 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9984 | $(HOST_EXPORTS) \ |
b813574b | 9985 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9986 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9987 | done; \ | |
22121df0 | 9988 | echo "Doing install-info in gas"; \ |
a90ef4bf | 9989 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
9990 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9991 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9992 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 9993 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 9994 | install-info) \ |
2a4cbe27 NN |
9995 | || exit 1 |
9996 | ||
a90ef4bf | 9997 | @endif gas |
2a4cbe27 | 9998 | |
a90ef4bf JM |
9999 | .PHONY: maybe-install-pdf-gas install-pdf-gas |
10000 | maybe-install-pdf-gas: | |
10001 | @if gas | |
10002 | maybe-install-pdf-gas: install-pdf-gas | |
a3ca38d2 | 10003 | |
a90ef4bf JM |
10004 | install-pdf-gas: \ |
10005 | configure-gas \ | |
10006 | pdf-gas | |
10007 | @[ -f ./gas/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
10008 | r=`${PWD_COMMAND}`; export r; \ |
10009 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
10010 | $(HOST_EXPORTS) \ | |
10011 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10012 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10013 | done; \ | |
22121df0 | 10014 | echo "Doing install-pdf in gas"; \ |
a90ef4bf | 10015 | (cd $(HOST_SUBDIR)/gas && \ |
a3ca38d2 DD |
10016 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10017 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10018 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10019 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
10020 | install-pdf) \ |
10021 | || exit 1 | |
10022 | ||
a90ef4bf | 10023 | @endif gas |
a3ca38d2 | 10024 | |
a90ef4bf JM |
10025 | .PHONY: maybe-install-html-gas install-html-gas |
10026 | maybe-install-html-gas: | |
10027 | @if gas | |
10028 | maybe-install-html-gas: install-html-gas | |
108a6f8e | 10029 | |
a90ef4bf JM |
10030 | install-html-gas: \ |
10031 | configure-gas \ | |
10032 | html-gas | |
10033 | @[ -f ./gas/Makefile ] || exit 0; \ | |
108a6f8e CD |
10034 | r=`${PWD_COMMAND}`; export r; \ |
10035 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
10036 | $(HOST_EXPORTS) \ | |
10037 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10038 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10039 | done; \ | |
22121df0 | 10040 | echo "Doing install-html in gas"; \ |
a90ef4bf | 10041 | (cd $(HOST_SUBDIR)/gas && \ |
108a6f8e CD |
10042 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10043 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10044 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10045 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
10046 | install-html) \ |
10047 | || exit 1 | |
10048 | ||
a90ef4bf | 10049 | @endif gas |
108a6f8e | 10050 | |
a90ef4bf JM |
10051 | .PHONY: maybe-installcheck-gas installcheck-gas |
10052 | maybe-installcheck-gas: | |
10053 | @if gas | |
10054 | maybe-installcheck-gas: installcheck-gas | |
2a4cbe27 | 10055 | |
a90ef4bf JM |
10056 | installcheck-gas: \ |
10057 | configure-gas | |
10058 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
10059 | r=`${PWD_COMMAND}`; export r; \ |
10060 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10061 | $(HOST_EXPORTS) \ |
b813574b | 10062 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10063 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10064 | done; \ | |
22121df0 | 10065 | echo "Doing installcheck in gas"; \ |
a90ef4bf | 10066 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
10067 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10068 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10069 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10070 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 10071 | installcheck) \ |
2a4cbe27 NN |
10072 | || exit 1 |
10073 | ||
a90ef4bf | 10074 | @endif gas |
2a4cbe27 | 10075 | |
a90ef4bf JM |
10076 | .PHONY: maybe-mostlyclean-gas mostlyclean-gas |
10077 | maybe-mostlyclean-gas: | |
10078 | @if gas | |
10079 | maybe-mostlyclean-gas: mostlyclean-gas | |
2a4cbe27 | 10080 | |
a90ef4bf JM |
10081 | mostlyclean-gas: |
10082 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
10083 | r=`${PWD_COMMAND}`; export r; \ |
10084 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10085 | $(HOST_EXPORTS) \ |
b813574b | 10086 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10087 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10088 | done; \ | |
22121df0 | 10089 | echo "Doing mostlyclean in gas"; \ |
a90ef4bf | 10090 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
10091 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10092 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10093 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10094 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 10095 | mostlyclean) \ |
2a4cbe27 NN |
10096 | || exit 1 |
10097 | ||
a90ef4bf | 10098 | @endif gas |
2a4cbe27 | 10099 | |
a90ef4bf JM |
10100 | .PHONY: maybe-clean-gas clean-gas |
10101 | maybe-clean-gas: | |
10102 | @if gas | |
10103 | maybe-clean-gas: clean-gas | |
2a4cbe27 | 10104 | |
a90ef4bf JM |
10105 | clean-gas: |
10106 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
10107 | r=`${PWD_COMMAND}`; export r; \ |
10108 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10109 | $(HOST_EXPORTS) \ |
b813574b | 10110 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10111 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10112 | done; \ | |
22121df0 | 10113 | echo "Doing clean in gas"; \ |
a90ef4bf | 10114 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
10115 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10116 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10117 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10118 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 10119 | clean) \ |
2a4cbe27 NN |
10120 | || exit 1 |
10121 | ||
a90ef4bf | 10122 | @endif gas |
2a4cbe27 | 10123 | |
a90ef4bf JM |
10124 | .PHONY: maybe-distclean-gas distclean-gas |
10125 | maybe-distclean-gas: | |
10126 | @if gas | |
10127 | maybe-distclean-gas: distclean-gas | |
2a4cbe27 | 10128 | |
a90ef4bf JM |
10129 | distclean-gas: |
10130 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
10131 | r=`${PWD_COMMAND}`; export r; \ |
10132 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10133 | $(HOST_EXPORTS) \ |
b813574b | 10134 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10135 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10136 | done; \ | |
22121df0 | 10137 | echo "Doing distclean in gas"; \ |
a90ef4bf | 10138 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
10139 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10140 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10141 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10142 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 10143 | distclean) \ |
2a4cbe27 NN |
10144 | || exit 1 |
10145 | ||
a90ef4bf | 10146 | @endif gas |
2a4cbe27 | 10147 | |
a90ef4bf JM |
10148 | .PHONY: maybe-maintainer-clean-gas maintainer-clean-gas |
10149 | maybe-maintainer-clean-gas: | |
10150 | @if gas | |
10151 | maybe-maintainer-clean-gas: maintainer-clean-gas | |
2a4cbe27 | 10152 | |
a90ef4bf JM |
10153 | maintainer-clean-gas: |
10154 | @[ -f ./gas/Makefile ] || exit 0; \ | |
10155 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 10156 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 10157 | $(HOST_EXPORTS) \ |
b813574b | 10158 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10159 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10160 | done; \ | |
22121df0 | 10161 | echo "Doing maintainer-clean in gas"; \ |
a90ef4bf | 10162 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
10163 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10164 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10165 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10166 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 10167 | maintainer-clean) \ |
2a4cbe27 NN |
10168 | || exit 1 |
10169 | ||
a90ef4bf | 10170 | @endif gas |
2a4cbe27 | 10171 | |
2a4cbe27 | 10172 | |
a7254363 | 10173 | |
a90ef4bf JM |
10174 | .PHONY: configure-gcc maybe-configure-gcc |
10175 | maybe-configure-gcc: | |
4f0ef2d8 | 10176 | @if gcc-bootstrap |
a90ef4bf | 10177 | configure-gcc: stage_current |
4f0ef2d8 | 10178 | @endif gcc-bootstrap |
a90ef4bf JM |
10179 | @if gcc |
10180 | maybe-configure-gcc: configure-gcc | |
10181 | configure-gcc: | |
c52c6897 | 10182 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 10183 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 10184 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ |
22121df0 | 10185 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ |
1f53ca9a | 10186 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
10187 | echo Configuring in $(HOST_SUBDIR)/gcc; \ |
10188 | cd "$(HOST_SUBDIR)/gcc" || exit 1; \ | |
4fa63067 | 10189 | case $(srcdir) in \ |
b00612cc | 10190 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 10191 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ |
b00612cc | 10192 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 10193 | esac; \ |
1b6c0831 L |
10194 | module_srcdir=gcc; \ |
10195 | $(SHELL) \ | |
10196 | $$s/$$module_srcdir/configure \ | |
10197 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 10198 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 10199 | --target=${target_alias} \ |
4fa63067 | 10200 | || exit 1 |
a90ef4bf | 10201 | @endif gcc |
a7254363 | 10202 | |
d545f33b PB |
10203 | |
10204 | ||
a90ef4bf JM |
10205 | .PHONY: configure-stage1-gcc maybe-configure-stage1-gcc |
10206 | maybe-configure-stage1-gcc: | |
4f0ef2d8 | 10207 | @if gcc-bootstrap |
a90ef4bf JM |
10208 | maybe-configure-stage1-gcc: configure-stage1-gcc |
10209 | configure-stage1-gcc: | |
10210 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
10211 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc | |
4fa63067 NN |
10212 | @r=`${PWD_COMMAND}`; export r; \ |
10213 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
10214 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
10215 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ | |
10216 | $(HOST_EXPORTS) \ | |
10217 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ | |
10218 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
10219 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
10220 | echo Configuring stage 1 in $(HOST_SUBDIR)/gcc; \ |
10221 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ | |
a90ef4bf JM |
10222 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
10223 | case $(srcdir) in \ | |
10224 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
10225 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
10226 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
10227 | esac; \ | |
1b6c0831 L |
10228 | module_srcdir=gcc; \ |
10229 | $(SHELL) $$s/$$module_srcdir/configure \ | |
10230 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 10231 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
10232 | --target=${target_alias} \ |
10233 | \ | |
a90ef4bf JM |
10234 | $(STAGE1_CONFIGURE_FLAGS) |
10235 | @endif gcc-bootstrap | |
4fa63067 | 10236 | |
a90ef4bf JM |
10237 | .PHONY: configure-stage2-gcc maybe-configure-stage2-gcc |
10238 | maybe-configure-stage2-gcc: | |
10239 | @if gcc-bootstrap | |
10240 | maybe-configure-stage2-gcc: configure-stage2-gcc | |
10241 | configure-stage2-gcc: | |
10242 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
10243 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc | |
4fa63067 | 10244 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 10245 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
10246 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
10247 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ | |
378fce5b | 10248 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
10249 | $(POSTSTAGE1_HOST_EXPORTS) \ |
10250 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
10251 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
10252 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
10253 | echo Configuring stage 2 in $(HOST_SUBDIR)/gcc; \ |
10254 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ | |
a90ef4bf JM |
10255 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
10256 | case $(srcdir) in \ | |
10257 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
10258 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
10259 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
10260 | esac; \ | |
1b6c0831 L |
10261 | module_srcdir=gcc; \ |
10262 | $(SHELL) $$s/$$module_srcdir/configure \ | |
10263 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 10264 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 10265 | --target=${target_alias} \ |
22121df0 | 10266 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
10267 | $(STAGE2_CONFIGURE_FLAGS) |
10268 | @endif gcc-bootstrap | |
9b980aa1 | 10269 | |
a90ef4bf JM |
10270 | .PHONY: configure-stage3-gcc maybe-configure-stage3-gcc |
10271 | maybe-configure-stage3-gcc: | |
10272 | @if gcc-bootstrap | |
10273 | maybe-configure-stage3-gcc: configure-stage3-gcc | |
10274 | configure-stage3-gcc: | |
10275 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
10276 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc | |
9b980aa1 RW |
10277 | @r=`${PWD_COMMAND}`; export r; \ |
10278 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
10279 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
10280 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ | |
9b980aa1 | 10281 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
10282 | $(POSTSTAGE1_HOST_EXPORTS) \ |
10283 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
10284 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
10285 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
10286 | echo Configuring stage 3 in $(HOST_SUBDIR)/gcc; \ |
10287 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ | |
a90ef4bf JM |
10288 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
10289 | case $(srcdir) in \ | |
10290 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
10291 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
10292 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
10293 | esac; \ | |
1b6c0831 L |
10294 | module_srcdir=gcc; \ |
10295 | $(SHELL) $$s/$$module_srcdir/configure \ | |
10296 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 10297 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 10298 | --target=${target_alias} \ |
22121df0 | 10299 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
10300 | $(STAGE3_CONFIGURE_FLAGS) |
10301 | @endif gcc-bootstrap | |
4fa63067 | 10302 | |
a90ef4bf JM |
10303 | .PHONY: configure-stage4-gcc maybe-configure-stage4-gcc |
10304 | maybe-configure-stage4-gcc: | |
10305 | @if gcc-bootstrap | |
10306 | maybe-configure-stage4-gcc: configure-stage4-gcc | |
10307 | configure-stage4-gcc: | |
10308 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
10309 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc | |
10310 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 10311 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
10312 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
10313 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ | |
378fce5b | 10314 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
10315 | $(POSTSTAGE1_HOST_EXPORTS) \ |
10316 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
10317 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
10318 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
10319 | echo Configuring stage 4 in $(HOST_SUBDIR)/gcc; \ |
10320 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ | |
a90ef4bf JM |
10321 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
10322 | case $(srcdir) in \ | |
10323 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
10324 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
10325 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
10326 | esac; \ | |
1b6c0831 L |
10327 | module_srcdir=gcc; \ |
10328 | $(SHELL) $$s/$$module_srcdir/configure \ | |
10329 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 10330 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 10331 | --target=${target_alias} \ |
22121df0 | 10332 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
10333 | $(STAGE4_CONFIGURE_FLAGS) |
10334 | @endif gcc-bootstrap | |
2a4cbe27 | 10335 | |
a90ef4bf JM |
10336 | .PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc |
10337 | maybe-configure-stageprofile-gcc: | |
10338 | @if gcc-bootstrap | |
10339 | maybe-configure-stageprofile-gcc: configure-stageprofile-gcc | |
10340 | configure-stageprofile-gcc: | |
10341 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
10342 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc | |
10343 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 10344 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
10345 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
10346 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ | |
378fce5b | 10347 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
10348 | $(POSTSTAGE1_HOST_EXPORTS) \ |
10349 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
10350 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
10351 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
10352 | echo Configuring stage profile in $(HOST_SUBDIR)/gcc; \ |
10353 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ | |
a90ef4bf JM |
10354 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
10355 | case $(srcdir) in \ | |
10356 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
10357 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
10358 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
10359 | esac; \ | |
1b6c0831 L |
10360 | module_srcdir=gcc; \ |
10361 | $(SHELL) $$s/$$module_srcdir/configure \ | |
10362 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 10363 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 10364 | --target=${target_alias} \ |
22121df0 | 10365 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
10366 | $(STAGEprofile_CONFIGURE_FLAGS) |
10367 | @endif gcc-bootstrap | |
56a8fe78 | 10368 | |
a90ef4bf JM |
10369 | .PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc |
10370 | maybe-configure-stagefeedback-gcc: | |
10371 | @if gcc-bootstrap | |
10372 | maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc | |
10373 | configure-stagefeedback-gcc: | |
10374 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
10375 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc | |
10376 | @r=`${PWD_COMMAND}`; export r; \ | |
56a8fe78 | 10377 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
10378 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
10379 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ | |
56a8fe78 | 10380 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
10381 | $(POSTSTAGE1_HOST_EXPORTS) \ |
10382 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
10383 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
10384 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
10385 | echo Configuring stage feedback in $(HOST_SUBDIR)/gcc; \ |
10386 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ | |
a90ef4bf JM |
10387 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
10388 | case $(srcdir) in \ | |
10389 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
10390 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
10391 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
10392 | esac; \ | |
1b6c0831 L |
10393 | module_srcdir=gcc; \ |
10394 | $(SHELL) $$s/$$module_srcdir/configure \ | |
10395 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 10396 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 10397 | --target=${target_alias} \ |
22121df0 | 10398 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
10399 | $(STAGEfeedback_CONFIGURE_FLAGS) |
10400 | @endif gcc-bootstrap | |
56a8fe78 | 10401 | |
2a4cbe27 | 10402 | |
2a4cbe27 NN |
10403 | |
10404 | ||
2a4cbe27 | 10405 | |
a90ef4bf JM |
10406 | .PHONY: all-gcc maybe-all-gcc |
10407 | maybe-all-gcc: | |
10408 | @if gcc-bootstrap | |
10409 | all-gcc: stage_current | |
10410 | @endif gcc-bootstrap | |
10411 | @if gcc | |
10412 | TARGET-gcc=all | |
10413 | maybe-all-gcc: all-gcc | |
10414 | all-gcc: configure-gcc | |
10415 | @r=`${PWD_COMMAND}`; export r; \ | |
6d389afc | 10416 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
10417 | $(HOST_EXPORTS) \ |
10418 | (cd $(HOST_SUBDIR)/gcc && \ | |
b3676d82 | 10419 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \ |
a90ef4bf JM |
10420 | $(TARGET-gcc)) |
10421 | @endif gcc | |
6d389afc | 10422 | |
6d389afc | 10423 | |
6d389afc | 10424 | |
a90ef4bf JM |
10425 | .PHONY: all-stage1-gcc maybe-all-stage1-gcc |
10426 | .PHONY: clean-stage1-gcc maybe-clean-stage1-gcc | |
10427 | maybe-all-stage1-gcc: | |
10428 | maybe-clean-stage1-gcc: | |
10429 | @if gcc-bootstrap | |
10430 | maybe-all-stage1-gcc: all-stage1-gcc | |
10431 | all-stage1: all-stage1-gcc | |
10432 | TARGET-stage1-gcc = $(TARGET-gcc) | |
10433 | all-stage1-gcc: configure-stage1-gcc | |
10434 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
10435 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 10436 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
10437 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
10438 | $(HOST_EXPORTS) \ | |
10439 | cd $(HOST_SUBDIR)/gcc && \ | |
05a13254 | 10440 | \ |
a90ef4bf JM |
10441 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
10442 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
10443 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
10444 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
10445 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
10446 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
10447 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
10448 | $(EXTRA_HOST_FLAGS) \ |
10449 | $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \ | |
05a13254 | 10450 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 10451 | $(TARGET-stage1-gcc) |
2a4cbe27 | 10452 | |
a90ef4bf JM |
10453 | maybe-clean-stage1-gcc: clean-stage1-gcc |
10454 | clean-stage1: clean-stage1-gcc | |
10455 | clean-stage1-gcc: | |
10456 | @if [ $(current_stage) = stage1 ]; then \ | |
10457 | [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \ | |
10458 | else \ | |
10459 | [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \ | |
10460 | $(MAKE) stage1-start; \ | |
10461 | fi; \ | |
10462 | cd $(HOST_SUBDIR)/gcc && \ | |
10463 | $(MAKE) $(EXTRA_HOST_FLAGS) \ | |
b3676d82 | 10464 | $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean |
a90ef4bf | 10465 | @endif gcc-bootstrap |
2a4cbe27 | 10466 | |
a3ca38d2 | 10467 | |
a90ef4bf JM |
10468 | .PHONY: all-stage2-gcc maybe-all-stage2-gcc |
10469 | .PHONY: clean-stage2-gcc maybe-clean-stage2-gcc | |
10470 | maybe-all-stage2-gcc: | |
10471 | maybe-clean-stage2-gcc: | |
10472 | @if gcc-bootstrap | |
10473 | maybe-all-stage2-gcc: all-stage2-gcc | |
10474 | all-stage2: all-stage2-gcc | |
10475 | TARGET-stage2-gcc = $(TARGET-gcc) | |
10476 | all-stage2-gcc: configure-stage2-gcc | |
10477 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
10478 | @r=`${PWD_COMMAND}`; export r; \ | |
a3ca38d2 | 10479 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 10480 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
a3ca38d2 | 10481 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
10482 | $(POSTSTAGE1_HOST_EXPORTS) \ |
10483 | cd $(HOST_SUBDIR)/gcc && \ | |
05a13254 | 10484 | \ |
a90ef4bf JM |
10485 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
10486 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
10487 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
10488 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
10489 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
10490 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
10491 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
10492 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \ | |
05a13254 | 10493 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 10494 | $(TARGET-stage2-gcc) |
a3ca38d2 | 10495 | |
a90ef4bf JM |
10496 | maybe-clean-stage2-gcc: clean-stage2-gcc |
10497 | clean-stage2: clean-stage2-gcc | |
10498 | clean-stage2-gcc: | |
10499 | @if [ $(current_stage) = stage2 ]; then \ | |
10500 | [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \ | |
10501 | else \ | |
10502 | [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \ | |
10503 | $(MAKE) stage2-start; \ | |
10504 | fi; \ | |
10505 | cd $(HOST_SUBDIR)/gcc && \ | |
b3676d82 | 10506 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean |
a90ef4bf | 10507 | @endif gcc-bootstrap |
a3ca38d2 | 10508 | |
108a6f8e | 10509 | |
a90ef4bf JM |
10510 | .PHONY: all-stage3-gcc maybe-all-stage3-gcc |
10511 | .PHONY: clean-stage3-gcc maybe-clean-stage3-gcc | |
10512 | maybe-all-stage3-gcc: | |
10513 | maybe-clean-stage3-gcc: | |
10514 | @if gcc-bootstrap | |
10515 | maybe-all-stage3-gcc: all-stage3-gcc | |
10516 | all-stage3: all-stage3-gcc | |
10517 | TARGET-stage3-gcc = $(TARGET-gcc) | |
10518 | all-stage3-gcc: configure-stage3-gcc | |
10519 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
10520 | @r=`${PWD_COMMAND}`; export r; \ | |
108a6f8e | 10521 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 10522 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
108a6f8e | 10523 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
10524 | $(POSTSTAGE1_HOST_EXPORTS) \ |
10525 | cd $(HOST_SUBDIR)/gcc && \ | |
05a13254 | 10526 | \ |
a90ef4bf JM |
10527 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
10528 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
10529 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
10530 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
10531 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
10532 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
10533 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
10534 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \ | |
05a13254 | 10535 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 10536 | $(TARGET-stage3-gcc) |
108a6f8e | 10537 | |
a90ef4bf JM |
10538 | maybe-clean-stage3-gcc: clean-stage3-gcc |
10539 | clean-stage3: clean-stage3-gcc | |
10540 | clean-stage3-gcc: | |
10541 | @if [ $(current_stage) = stage3 ]; then \ | |
10542 | [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \ | |
10543 | else \ | |
10544 | [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \ | |
10545 | $(MAKE) stage3-start; \ | |
10546 | fi; \ | |
10547 | cd $(HOST_SUBDIR)/gcc && \ | |
b3676d82 | 10548 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean |
a90ef4bf | 10549 | @endif gcc-bootstrap |
108a6f8e | 10550 | |
2a4cbe27 | 10551 | |
a90ef4bf JM |
10552 | .PHONY: all-stage4-gcc maybe-all-stage4-gcc |
10553 | .PHONY: clean-stage4-gcc maybe-clean-stage4-gcc | |
10554 | maybe-all-stage4-gcc: | |
10555 | maybe-clean-stage4-gcc: | |
10556 | @if gcc-bootstrap | |
10557 | maybe-all-stage4-gcc: all-stage4-gcc | |
10558 | all-stage4: all-stage4-gcc | |
10559 | TARGET-stage4-gcc = $(TARGET-gcc) | |
10560 | all-stage4-gcc: configure-stage4-gcc | |
10561 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
10562 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 10563 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 10564 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
378fce5b | 10565 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
10566 | $(POSTSTAGE1_HOST_EXPORTS) \ |
10567 | cd $(HOST_SUBDIR)/gcc && \ | |
05a13254 | 10568 | \ |
a90ef4bf JM |
10569 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
10570 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
10571 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
10572 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
10573 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
10574 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
10575 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
10576 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \ | |
05a13254 | 10577 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 10578 | $(TARGET-stage4-gcc) |
2a4cbe27 | 10579 | |
a90ef4bf JM |
10580 | maybe-clean-stage4-gcc: clean-stage4-gcc |
10581 | clean-stage4: clean-stage4-gcc | |
10582 | clean-stage4-gcc: | |
10583 | @if [ $(current_stage) = stage4 ]; then \ | |
10584 | [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \ | |
10585 | else \ | |
10586 | [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \ | |
10587 | $(MAKE) stage4-start; \ | |
10588 | fi; \ | |
10589 | cd $(HOST_SUBDIR)/gcc && \ | |
b3676d82 | 10590 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean |
a90ef4bf | 10591 | @endif gcc-bootstrap |
2a4cbe27 | 10592 | |
a2592b1b | 10593 | |
a90ef4bf JM |
10594 | .PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc |
10595 | .PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc | |
10596 | maybe-all-stageprofile-gcc: | |
10597 | maybe-clean-stageprofile-gcc: | |
10598 | @if gcc-bootstrap | |
10599 | maybe-all-stageprofile-gcc: all-stageprofile-gcc | |
10600 | all-stageprofile: all-stageprofile-gcc | |
10601 | TARGET-stageprofile-gcc = $(TARGET-gcc) | |
10602 | all-stageprofile-gcc: configure-stageprofile-gcc | |
10603 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
10604 | @r=`${PWD_COMMAND}`; export r; \ | |
a2592b1b | 10605 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 10606 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
378fce5b | 10607 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
10608 | $(POSTSTAGE1_HOST_EXPORTS) \ |
10609 | cd $(HOST_SUBDIR)/gcc && \ | |
05a13254 | 10610 | \ |
a90ef4bf JM |
10611 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
10612 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
10613 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
10614 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
10615 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
10616 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
10617 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
10618 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \ | |
05a13254 | 10619 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf | 10620 | $(TARGET-stageprofile-gcc) |
2a4cbe27 | 10621 | |
a90ef4bf JM |
10622 | maybe-clean-stageprofile-gcc: clean-stageprofile-gcc |
10623 | clean-stageprofile: clean-stageprofile-gcc | |
10624 | clean-stageprofile-gcc: | |
10625 | @if [ $(current_stage) = stageprofile ]; then \ | |
10626 | [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \ | |
10627 | else \ | |
10628 | [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \ | |
10629 | $(MAKE) stageprofile-start; \ | |
10630 | fi; \ | |
10631 | cd $(HOST_SUBDIR)/gcc && \ | |
b3676d82 | 10632 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean |
a90ef4bf | 10633 | @endif gcc-bootstrap |
2a4cbe27 | 10634 | |
a7254363 | 10635 | |
a90ef4bf JM |
10636 | .PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc |
10637 | .PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc | |
10638 | maybe-all-stagefeedback-gcc: | |
10639 | maybe-clean-stagefeedback-gcc: | |
4f0ef2d8 | 10640 | @if gcc-bootstrap |
a90ef4bf JM |
10641 | maybe-all-stagefeedback-gcc: all-stagefeedback-gcc |
10642 | all-stagefeedback: all-stagefeedback-gcc | |
10643 | TARGET-stagefeedback-gcc = $(TARGET-gcc) | |
10644 | all-stagefeedback-gcc: configure-stagefeedback-gcc | |
10645 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
c52c6897 | 10646 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 10647 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
10648 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
10649 | $(HOST_EXPORTS) \ | |
10650 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
10651 | cd $(HOST_SUBDIR)/gcc && \ | |
05a13254 | 10652 | \ |
a90ef4bf JM |
10653 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
10654 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
10655 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
10656 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
10657 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
10658 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
10659 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
10660 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \ | |
05a13254 | 10661 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf | 10662 | $(TARGET-stagefeedback-gcc) |
d545f33b | 10663 | |
a90ef4bf JM |
10664 | maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc |
10665 | clean-stagefeedback: clean-stagefeedback-gcc | |
10666 | clean-stagefeedback-gcc: | |
10667 | @if [ $(current_stage) = stagefeedback ]; then \ | |
10668 | [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \ | |
10669 | else \ | |
10670 | [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \ | |
10671 | $(MAKE) stagefeedback-start; \ | |
10672 | fi; \ | |
10673 | cd $(HOST_SUBDIR)/gcc && \ | |
b3676d82 | 10674 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean |
4f0ef2d8 | 10675 | @endif gcc-bootstrap |
4fa63067 | 10676 | |
a7254363 | 10677 | |
d545f33b PB |
10678 | |
10679 | ||
4fa63067 | 10680 | |
a90ef4bf JM |
10681 | .PHONY: check-gcc maybe-check-gcc |
10682 | maybe-check-gcc: | |
10683 | @if gcc | |
10684 | maybe-check-gcc: check-gcc | |
10685 | ||
10686 | check-gcc: | |
0aed8855 | 10687 | @: $(MAKE); $(unstage) |
4fa63067 NN |
10688 | @r=`${PWD_COMMAND}`; export r; \ |
10689 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 10690 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 10691 | (cd $(HOST_SUBDIR)/gcc && \ |
f91ca6bc | 10692 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
4fa63067 | 10693 | |
a90ef4bf | 10694 | @endif gcc |
4fa63067 | 10695 | |
a90ef4bf JM |
10696 | .PHONY: install-gcc maybe-install-gcc |
10697 | maybe-install-gcc: | |
10698 | @if gcc | |
10699 | maybe-install-gcc: install-gcc | |
4fa63067 | 10700 | |
a90ef4bf | 10701 | install-gcc: installdirs |
0aed8855 | 10702 | @: $(MAKE); $(unstage) |
4fa63067 NN |
10703 | @r=`${PWD_COMMAND}`; export r; \ |
10704 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10705 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
10706 | (cd $(HOST_SUBDIR)/gcc && \ |
10707 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install) | |
4fa63067 | 10708 | |
a90ef4bf | 10709 | @endif gcc |
4fa63067 | 10710 | |
a90ef4bf JM |
10711 | .PHONY: install-strip-gcc maybe-install-strip-gcc |
10712 | maybe-install-strip-gcc: | |
10713 | @if gcc | |
10714 | maybe-install-strip-gcc: install-strip-gcc | |
9b980aa1 | 10715 | |
a90ef4bf | 10716 | install-strip-gcc: installdirs |
9b980aa1 RW |
10717 | @: $(MAKE); $(unstage) |
10718 | @r=`${PWD_COMMAND}`; export r; \ | |
10719 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
10720 | $(HOST_EXPORTS) \ | |
a90ef4bf JM |
10721 | (cd $(HOST_SUBDIR)/gcc && \ |
10722 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip) | |
9b980aa1 | 10723 | |
a90ef4bf | 10724 | @endif gcc |
9b980aa1 | 10725 | |
56a8fe78 | 10726 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 10727 | |
a90ef4bf JM |
10728 | .PHONY: maybe-info-gcc info-gcc |
10729 | maybe-info-gcc: | |
10730 | @if gcc | |
10731 | maybe-info-gcc: info-gcc | |
4fa63067 | 10732 | |
a90ef4bf JM |
10733 | info-gcc: \ |
10734 | configure-gcc | |
10735 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
10736 | r=`${PWD_COMMAND}`; export r; \ |
10737 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10738 | $(HOST_EXPORTS) \ |
a90ef4bf | 10739 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
10740 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10741 | done; \ | |
22121df0 | 10742 | echo "Doing info in gcc"; \ |
a90ef4bf | 10743 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
10744 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10745 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10746 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10747 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 10748 | info) \ |
2a4cbe27 NN |
10749 | || exit 1 |
10750 | ||
a90ef4bf | 10751 | @endif gcc |
2a4cbe27 | 10752 | |
a90ef4bf JM |
10753 | .PHONY: maybe-dvi-gcc dvi-gcc |
10754 | maybe-dvi-gcc: | |
10755 | @if gcc | |
10756 | maybe-dvi-gcc: dvi-gcc | |
2a4cbe27 | 10757 | |
a90ef4bf JM |
10758 | dvi-gcc: \ |
10759 | configure-gcc | |
10760 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
10761 | r=`${PWD_COMMAND}`; export r; \ |
10762 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10763 | $(HOST_EXPORTS) \ |
a90ef4bf | 10764 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
10765 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10766 | done; \ | |
22121df0 | 10767 | echo "Doing dvi in gcc"; \ |
a90ef4bf | 10768 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
10769 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10770 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10771 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10772 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 10773 | dvi) \ |
2a4cbe27 NN |
10774 | || exit 1 |
10775 | ||
a90ef4bf | 10776 | @endif gcc |
2a4cbe27 | 10777 | |
a90ef4bf JM |
10778 | .PHONY: maybe-pdf-gcc pdf-gcc |
10779 | maybe-pdf-gcc: | |
10780 | @if gcc | |
10781 | maybe-pdf-gcc: pdf-gcc | |
56a8fe78 | 10782 | |
a90ef4bf JM |
10783 | pdf-gcc: \ |
10784 | configure-gcc | |
10785 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
56a8fe78 DD |
10786 | r=`${PWD_COMMAND}`; export r; \ |
10787 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
10788 | $(HOST_EXPORTS) \ | |
a90ef4bf | 10789 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
56a8fe78 DD |
10790 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10791 | done; \ | |
22121df0 | 10792 | echo "Doing pdf in gcc"; \ |
a90ef4bf | 10793 | (cd $(HOST_SUBDIR)/gcc && \ |
56a8fe78 DD |
10794 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10795 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10796 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10797 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
10798 | pdf) \ |
10799 | || exit 1 | |
10800 | ||
a90ef4bf | 10801 | @endif gcc |
56a8fe78 | 10802 | |
a90ef4bf JM |
10803 | .PHONY: maybe-html-gcc html-gcc |
10804 | maybe-html-gcc: | |
10805 | @if gcc | |
10806 | maybe-html-gcc: html-gcc | |
6d389afc | 10807 | |
a90ef4bf JM |
10808 | html-gcc: \ |
10809 | configure-gcc | |
10810 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
6d389afc MS |
10811 | r=`${PWD_COMMAND}`; export r; \ |
10812 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 10813 | $(HOST_EXPORTS) \ |
a90ef4bf | 10814 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
6d389afc MS |
10815 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10816 | done; \ | |
22121df0 | 10817 | echo "Doing html in gcc"; \ |
a90ef4bf | 10818 | (cd $(HOST_SUBDIR)/gcc && \ |
6d389afc MS |
10819 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10820 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10821 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10822 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
10823 | html) \ |
10824 | || exit 1 | |
10825 | ||
a90ef4bf | 10826 | @endif gcc |
6d389afc | 10827 | |
a90ef4bf JM |
10828 | .PHONY: maybe-TAGS-gcc TAGS-gcc |
10829 | maybe-TAGS-gcc: | |
10830 | @if gcc | |
10831 | maybe-TAGS-gcc: TAGS-gcc | |
2a4cbe27 | 10832 | |
a90ef4bf JM |
10833 | TAGS-gcc: \ |
10834 | configure-gcc | |
10835 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
10836 | r=`${PWD_COMMAND}`; export r; \ |
10837 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10838 | $(HOST_EXPORTS) \ |
a90ef4bf | 10839 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
10840 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10841 | done; \ | |
22121df0 | 10842 | echo "Doing TAGS in gcc"; \ |
a90ef4bf | 10843 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
10844 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10845 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10846 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10847 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 10848 | TAGS) \ |
2a4cbe27 NN |
10849 | || exit 1 |
10850 | ||
a90ef4bf | 10851 | @endif gcc |
2a4cbe27 | 10852 | |
a90ef4bf JM |
10853 | .PHONY: maybe-install-info-gcc install-info-gcc |
10854 | maybe-install-info-gcc: | |
10855 | @if gcc | |
10856 | maybe-install-info-gcc: install-info-gcc | |
2a4cbe27 | 10857 | |
a90ef4bf JM |
10858 | install-info-gcc: \ |
10859 | configure-gcc \ | |
10860 | info-gcc | |
10861 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
10862 | r=`${PWD_COMMAND}`; export r; \ |
10863 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10864 | $(HOST_EXPORTS) \ |
a90ef4bf | 10865 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
10866 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10867 | done; \ | |
22121df0 | 10868 | echo "Doing install-info in gcc"; \ |
a90ef4bf | 10869 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
10870 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10871 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10872 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10873 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 10874 | install-info) \ |
2a4cbe27 NN |
10875 | || exit 1 |
10876 | ||
a90ef4bf | 10877 | @endif gcc |
2a4cbe27 | 10878 | |
a90ef4bf JM |
10879 | .PHONY: maybe-install-pdf-gcc install-pdf-gcc |
10880 | maybe-install-pdf-gcc: | |
10881 | @if gcc | |
10882 | maybe-install-pdf-gcc: install-pdf-gcc | |
a3ca38d2 | 10883 | |
a90ef4bf JM |
10884 | install-pdf-gcc: \ |
10885 | configure-gcc \ | |
10886 | pdf-gcc | |
10887 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
10888 | r=`${PWD_COMMAND}`; export r; \ |
10889 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
10890 | $(HOST_EXPORTS) \ | |
a90ef4bf | 10891 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
a3ca38d2 DD |
10892 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10893 | done; \ | |
22121df0 | 10894 | echo "Doing install-pdf in gcc"; \ |
a90ef4bf | 10895 | (cd $(HOST_SUBDIR)/gcc && \ |
a3ca38d2 DD |
10896 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10897 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10898 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10899 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
10900 | install-pdf) \ |
10901 | || exit 1 | |
10902 | ||
a90ef4bf | 10903 | @endif gcc |
a3ca38d2 | 10904 | |
a90ef4bf JM |
10905 | .PHONY: maybe-install-html-gcc install-html-gcc |
10906 | maybe-install-html-gcc: | |
10907 | @if gcc | |
10908 | maybe-install-html-gcc: install-html-gcc | |
108a6f8e | 10909 | |
a90ef4bf JM |
10910 | install-html-gcc: \ |
10911 | configure-gcc \ | |
10912 | html-gcc | |
10913 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
108a6f8e CD |
10914 | r=`${PWD_COMMAND}`; export r; \ |
10915 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
10916 | $(HOST_EXPORTS) \ | |
a90ef4bf | 10917 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
108a6f8e CD |
10918 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10919 | done; \ | |
22121df0 | 10920 | echo "Doing install-html in gcc"; \ |
a90ef4bf | 10921 | (cd $(HOST_SUBDIR)/gcc && \ |
108a6f8e CD |
10922 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10923 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10924 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10925 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
10926 | install-html) \ |
10927 | || exit 1 | |
10928 | ||
a90ef4bf | 10929 | @endif gcc |
108a6f8e | 10930 | |
a90ef4bf JM |
10931 | .PHONY: maybe-installcheck-gcc installcheck-gcc |
10932 | maybe-installcheck-gcc: | |
10933 | @if gcc | |
10934 | maybe-installcheck-gcc: installcheck-gcc | |
2a4cbe27 | 10935 | |
a90ef4bf JM |
10936 | installcheck-gcc: \ |
10937 | configure-gcc | |
10938 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
10939 | r=`${PWD_COMMAND}`; export r; \ |
10940 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10941 | $(HOST_EXPORTS) \ |
a90ef4bf | 10942 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
10943 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10944 | done; \ | |
22121df0 | 10945 | echo "Doing installcheck in gcc"; \ |
a90ef4bf | 10946 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
10947 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10948 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10949 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10950 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 10951 | installcheck) \ |
2a4cbe27 NN |
10952 | || exit 1 |
10953 | ||
a90ef4bf | 10954 | @endif gcc |
2a4cbe27 | 10955 | |
a90ef4bf JM |
10956 | .PHONY: maybe-mostlyclean-gcc mostlyclean-gcc |
10957 | maybe-mostlyclean-gcc: | |
10958 | @if gcc | |
10959 | maybe-mostlyclean-gcc: mostlyclean-gcc | |
2a4cbe27 | 10960 | |
a90ef4bf JM |
10961 | mostlyclean-gcc: |
10962 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
10963 | r=`${PWD_COMMAND}`; export r; \ |
10964 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10965 | $(HOST_EXPORTS) \ |
a90ef4bf | 10966 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
10967 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10968 | done; \ | |
22121df0 | 10969 | echo "Doing mostlyclean in gcc"; \ |
a90ef4bf | 10970 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
10971 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10972 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10973 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10974 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 10975 | mostlyclean) \ |
2a4cbe27 NN |
10976 | || exit 1 |
10977 | ||
a90ef4bf | 10978 | @endif gcc |
2a4cbe27 | 10979 | |
a90ef4bf JM |
10980 | .PHONY: maybe-clean-gcc clean-gcc |
10981 | maybe-clean-gcc: | |
10982 | @if gcc | |
10983 | maybe-clean-gcc: clean-gcc | |
2a4cbe27 | 10984 | |
a90ef4bf JM |
10985 | clean-gcc: |
10986 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
10987 | r=`${PWD_COMMAND}`; export r; \ |
10988 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10989 | $(HOST_EXPORTS) \ |
a90ef4bf | 10990 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
10991 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10992 | done; \ | |
22121df0 | 10993 | echo "Doing clean in gcc"; \ |
a90ef4bf | 10994 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
10995 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10996 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10997 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 10998 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 10999 | clean) \ |
2a4cbe27 NN |
11000 | || exit 1 |
11001 | ||
a90ef4bf | 11002 | @endif gcc |
2a4cbe27 | 11003 | |
a90ef4bf JM |
11004 | .PHONY: maybe-distclean-gcc distclean-gcc |
11005 | maybe-distclean-gcc: | |
11006 | @if gcc | |
11007 | maybe-distclean-gcc: distclean-gcc | |
2a4cbe27 | 11008 | |
a90ef4bf JM |
11009 | distclean-gcc: |
11010 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
11011 | r=`${PWD_COMMAND}`; export r; \ |
11012 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11013 | $(HOST_EXPORTS) \ |
a90ef4bf | 11014 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
11015 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11016 | done; \ | |
22121df0 | 11017 | echo "Doing distclean in gcc"; \ |
a90ef4bf | 11018 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
11019 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11020 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11021 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11022 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 11023 | distclean) \ |
2a4cbe27 NN |
11024 | || exit 1 |
11025 | ||
a90ef4bf | 11026 | @endif gcc |
2a4cbe27 | 11027 | |
a90ef4bf JM |
11028 | .PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc |
11029 | maybe-maintainer-clean-gcc: | |
11030 | @if gcc | |
11031 | maybe-maintainer-clean-gcc: maintainer-clean-gcc | |
2a4cbe27 | 11032 | |
a90ef4bf JM |
11033 | maintainer-clean-gcc: |
11034 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
11035 | r=`${PWD_COMMAND}`; export r; \ |
11036 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11037 | $(HOST_EXPORTS) \ |
a90ef4bf | 11038 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
11039 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11040 | done; \ | |
22121df0 | 11041 | echo "Doing maintainer-clean in gcc"; \ |
a90ef4bf | 11042 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
11043 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11044 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11045 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11046 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 11047 | maintainer-clean) \ |
2a4cbe27 NN |
11048 | || exit 1 |
11049 | ||
a90ef4bf | 11050 | @endif gcc |
2a4cbe27 | 11051 | |
2a4cbe27 | 11052 | |
a7254363 | 11053 | |
a90ef4bf JM |
11054 | .PHONY: configure-gmp maybe-configure-gmp |
11055 | maybe-configure-gmp: | |
4f0ef2d8 | 11056 | @if gcc-bootstrap |
a90ef4bf | 11057 | configure-gmp: stage_current |
4f0ef2d8 | 11058 | @endif gcc-bootstrap |
a90ef4bf JM |
11059 | @if gmp |
11060 | maybe-configure-gmp: configure-gmp | |
11061 | configure-gmp: | |
c52c6897 | 11062 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 11063 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 11064 | test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \ |
22121df0 | 11065 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \ |
1f53ca9a | 11066 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
11067 | echo Configuring in $(HOST_SUBDIR)/gmp; \ |
11068 | cd "$(HOST_SUBDIR)/gmp" || exit 1; \ | |
4fa63067 | 11069 | case $(srcdir) in \ |
b00612cc | 11070 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 11071 | *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \ |
b00612cc | 11072 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 11073 | esac; \ |
1b6c0831 L |
11074 | module_srcdir=gmp; \ |
11075 | $(SHELL) \ | |
11076 | $$s/$$module_srcdir/configure \ | |
11077 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 11078 | $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \ |
1b6c0831 | 11079 | --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \ |
4fa63067 | 11080 | || exit 1 |
a90ef4bf | 11081 | @endif gmp |
a7254363 | 11082 | |
d545f33b PB |
11083 | |
11084 | ||
a90ef4bf JM |
11085 | .PHONY: configure-stage1-gmp maybe-configure-stage1-gmp |
11086 | maybe-configure-stage1-gmp: | |
11087 | @if gmp-bootstrap | |
11088 | maybe-configure-stage1-gmp: configure-stage1-gmp | |
11089 | configure-stage1-gmp: | |
11090 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
11091 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp | |
4fa63067 NN |
11092 | @r=`${PWD_COMMAND}`; export r; \ |
11093 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
11094 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
11095 | test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \ | |
11096 | $(HOST_EXPORTS) \ | |
11097 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ | |
11098 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
11099 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
11100 | echo Configuring stage 1 in $(HOST_SUBDIR)/gmp; \ |
11101 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \ | |
a90ef4bf JM |
11102 | cd $(HOST_SUBDIR)/gmp || exit 1; \ |
11103 | case $(srcdir) in \ | |
11104 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11105 | *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \ | |
11106 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11107 | esac; \ | |
1b6c0831 L |
11108 | module_srcdir=gmp; \ |
11109 | $(SHELL) $$s/$$module_srcdir/configure \ | |
11110 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 11111 | $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \ |
1b6c0831 L |
11112 | --target=none-${host_vendor}-${host_os} \ |
11113 | \ | |
a90ef4bf | 11114 | $(STAGE1_CONFIGURE_FLAGS) \ |
1b6c0831 | 11115 | --disable-shared LEX="touch lex.yy.c" |
a90ef4bf | 11116 | @endif gmp-bootstrap |
4fa63067 | 11117 | |
a90ef4bf JM |
11118 | .PHONY: configure-stage2-gmp maybe-configure-stage2-gmp |
11119 | maybe-configure-stage2-gmp: | |
11120 | @if gmp-bootstrap | |
11121 | maybe-configure-stage2-gmp: configure-stage2-gmp | |
11122 | configure-stage2-gmp: | |
11123 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
11124 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp | |
11125 | @r=`${PWD_COMMAND}`; export r; \ | |
11126 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11127 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
11128 | test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \ | |
11129 | $(HOST_EXPORTS) \ | |
11130 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11131 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
11132 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
11133 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
11134 | echo Configuring stage 2 in $(HOST_SUBDIR)/gmp; \ |
11135 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \ | |
a90ef4bf JM |
11136 | cd $(HOST_SUBDIR)/gmp || exit 1; \ |
11137 | case $(srcdir) in \ | |
11138 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11139 | *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \ | |
11140 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11141 | esac; \ | |
1b6c0831 L |
11142 | module_srcdir=gmp; \ |
11143 | $(SHELL) $$s/$$module_srcdir/configure \ | |
11144 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 11145 | $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \ |
1b6c0831 | 11146 | --target=none-${host_vendor}-${host_os} \ |
22121df0 | 11147 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 11148 | $(STAGE2_CONFIGURE_FLAGS) \ |
1b6c0831 | 11149 | --disable-shared LEX="touch lex.yy.c" |
a90ef4bf | 11150 | @endif gmp-bootstrap |
4fa63067 | 11151 | |
a90ef4bf JM |
11152 | .PHONY: configure-stage3-gmp maybe-configure-stage3-gmp |
11153 | maybe-configure-stage3-gmp: | |
11154 | @if gmp-bootstrap | |
11155 | maybe-configure-stage3-gmp: configure-stage3-gmp | |
11156 | configure-stage3-gmp: | |
11157 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
11158 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp | |
4fa63067 | 11159 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 11160 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
11161 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
11162 | test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \ | |
378fce5b | 11163 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
11164 | $(POSTSTAGE1_HOST_EXPORTS) \ |
11165 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
11166 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
11167 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
11168 | echo Configuring stage 3 in $(HOST_SUBDIR)/gmp; \ |
11169 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \ | |
a90ef4bf JM |
11170 | cd $(HOST_SUBDIR)/gmp || exit 1; \ |
11171 | case $(srcdir) in \ | |
11172 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11173 | *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \ | |
11174 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11175 | esac; \ | |
1b6c0831 L |
11176 | module_srcdir=gmp; \ |
11177 | $(SHELL) $$s/$$module_srcdir/configure \ | |
11178 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 11179 | $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \ |
1b6c0831 | 11180 | --target=none-${host_vendor}-${host_os} \ |
22121df0 | 11181 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 11182 | $(STAGE3_CONFIGURE_FLAGS) \ |
1b6c0831 | 11183 | --disable-shared LEX="touch lex.yy.c" |
a90ef4bf | 11184 | @endif gmp-bootstrap |
2a4cbe27 | 11185 | |
a90ef4bf JM |
11186 | .PHONY: configure-stage4-gmp maybe-configure-stage4-gmp |
11187 | maybe-configure-stage4-gmp: | |
11188 | @if gmp-bootstrap | |
11189 | maybe-configure-stage4-gmp: configure-stage4-gmp | |
11190 | configure-stage4-gmp: | |
11191 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
11192 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp | |
11193 | @r=`${PWD_COMMAND}`; export r; \ | |
11194 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11195 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
11196 | test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \ | |
11197 | $(HOST_EXPORTS) \ | |
11198 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11199 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
11200 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
11201 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
11202 | echo Configuring stage 4 in $(HOST_SUBDIR)/gmp; \ |
11203 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \ | |
a90ef4bf JM |
11204 | cd $(HOST_SUBDIR)/gmp || exit 1; \ |
11205 | case $(srcdir) in \ | |
11206 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11207 | *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \ | |
11208 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11209 | esac; \ | |
1b6c0831 L |
11210 | module_srcdir=gmp; \ |
11211 | $(SHELL) $$s/$$module_srcdir/configure \ | |
11212 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 11213 | $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \ |
1b6c0831 | 11214 | --target=none-${host_vendor}-${host_os} \ |
22121df0 | 11215 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 11216 | $(STAGE4_CONFIGURE_FLAGS) \ |
1b6c0831 | 11217 | --disable-shared LEX="touch lex.yy.c" |
a90ef4bf | 11218 | @endif gmp-bootstrap |
2a4cbe27 | 11219 | |
a90ef4bf JM |
11220 | .PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp |
11221 | maybe-configure-stageprofile-gmp: | |
11222 | @if gmp-bootstrap | |
11223 | maybe-configure-stageprofile-gmp: configure-stageprofile-gmp | |
11224 | configure-stageprofile-gmp: | |
11225 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
11226 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp | |
11227 | @r=`${PWD_COMMAND}`; export r; \ | |
11228 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11229 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
11230 | test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \ | |
11231 | $(HOST_EXPORTS) \ | |
11232 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11233 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
11234 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
11235 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
11236 | echo Configuring stage profile in $(HOST_SUBDIR)/gmp; \ |
11237 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \ | |
a90ef4bf JM |
11238 | cd $(HOST_SUBDIR)/gmp || exit 1; \ |
11239 | case $(srcdir) in \ | |
11240 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11241 | *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \ | |
11242 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11243 | esac; \ | |
1b6c0831 L |
11244 | module_srcdir=gmp; \ |
11245 | $(SHELL) $$s/$$module_srcdir/configure \ | |
11246 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 11247 | $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \ |
1b6c0831 | 11248 | --target=none-${host_vendor}-${host_os} \ |
22121df0 | 11249 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 11250 | $(STAGEprofile_CONFIGURE_FLAGS) \ |
1b6c0831 | 11251 | --disable-shared LEX="touch lex.yy.c" |
a90ef4bf | 11252 | @endif gmp-bootstrap |
9b980aa1 | 11253 | |
a90ef4bf JM |
11254 | .PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp |
11255 | maybe-configure-stagefeedback-gmp: | |
11256 | @if gmp-bootstrap | |
11257 | maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp | |
11258 | configure-stagefeedback-gmp: | |
11259 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
11260 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp | |
9b980aa1 RW |
11261 | @r=`${PWD_COMMAND}`; export r; \ |
11262 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
11263 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
11264 | test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \ | |
9b980aa1 | 11265 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
11266 | $(POSTSTAGE1_HOST_EXPORTS) \ |
11267 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
11268 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
11269 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
11270 | echo Configuring stage feedback in $(HOST_SUBDIR)/gmp; \ |
11271 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \ | |
a90ef4bf JM |
11272 | cd $(HOST_SUBDIR)/gmp || exit 1; \ |
11273 | case $(srcdir) in \ | |
11274 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11275 | *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \ | |
11276 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11277 | esac; \ | |
1b6c0831 L |
11278 | module_srcdir=gmp; \ |
11279 | $(SHELL) $$s/$$module_srcdir/configure \ | |
11280 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 11281 | $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \ |
1b6c0831 | 11282 | --target=none-${host_vendor}-${host_os} \ |
22121df0 | 11283 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 11284 | $(STAGEfeedback_CONFIGURE_FLAGS) \ |
1b6c0831 | 11285 | --disable-shared LEX="touch lex.yy.c" |
a90ef4bf | 11286 | @endif gmp-bootstrap |
9b980aa1 | 11287 | |
9b980aa1 | 11288 | |
2a4cbe27 | 11289 | |
4fa63067 | 11290 | |
a90ef4bf JM |
11291 | |
11292 | .PHONY: all-gmp maybe-all-gmp | |
11293 | maybe-all-gmp: | |
11294 | @if gcc-bootstrap | |
11295 | all-gmp: stage_current | |
11296 | @endif gcc-bootstrap | |
11297 | @if gmp | |
11298 | TARGET-gmp=all | |
11299 | maybe-all-gmp: all-gmp | |
11300 | all-gmp: configure-gmp | |
11301 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 11302 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
11303 | $(HOST_EXPORTS) \ |
11304 | (cd $(HOST_SUBDIR)/gmp && \ | |
05a13254 | 11305 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \ |
a90ef4bf JM |
11306 | $(TARGET-gmp)) |
11307 | @endif gmp | |
2a4cbe27 NN |
11308 | |
11309 | ||
2a4cbe27 | 11310 | |
a90ef4bf JM |
11311 | .PHONY: all-stage1-gmp maybe-all-stage1-gmp |
11312 | .PHONY: clean-stage1-gmp maybe-clean-stage1-gmp | |
11313 | maybe-all-stage1-gmp: | |
11314 | maybe-clean-stage1-gmp: | |
11315 | @if gmp-bootstrap | |
11316 | maybe-all-stage1-gmp: all-stage1-gmp | |
11317 | all-stage1: all-stage1-gmp | |
11318 | TARGET-stage1-gmp = $(TARGET-gmp) | |
11319 | all-stage1-gmp: configure-stage1-gmp | |
11320 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
11321 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 11322 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
11323 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
11324 | $(HOST_EXPORTS) \ | |
11325 | cd $(HOST_SUBDIR)/gmp && \ | |
05a13254 | 11326 | \ |
a90ef4bf JM |
11327 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
11328 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
11329 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
11330 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
11331 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
11332 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
11333 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 | 11334 | $(EXTRA_HOST_FLAGS) \ |
05a13254 NC |
11335 | $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \ |
11336 | TFLAGS="$(STAGE1_TFLAGS)" \ | |
a90ef4bf | 11337 | $(TARGET-stage1-gmp) |
2a4cbe27 | 11338 | |
a90ef4bf JM |
11339 | maybe-clean-stage1-gmp: clean-stage1-gmp |
11340 | clean-stage1: clean-stage1-gmp | |
11341 | clean-stage1-gmp: | |
11342 | @if [ $(current_stage) = stage1 ]; then \ | |
11343 | [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \ | |
11344 | else \ | |
11345 | [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \ | |
11346 | $(MAKE) stage1-start; \ | |
11347 | fi; \ | |
11348 | cd $(HOST_SUBDIR)/gmp && \ | |
11349 | $(MAKE) $(EXTRA_HOST_FLAGS) \ | |
05a13254 | 11350 | $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean |
a90ef4bf | 11351 | @endif gmp-bootstrap |
2a4cbe27 | 11352 | |
56a8fe78 | 11353 | |
a90ef4bf JM |
11354 | .PHONY: all-stage2-gmp maybe-all-stage2-gmp |
11355 | .PHONY: clean-stage2-gmp maybe-clean-stage2-gmp | |
11356 | maybe-all-stage2-gmp: | |
11357 | maybe-clean-stage2-gmp: | |
11358 | @if gmp-bootstrap | |
11359 | maybe-all-stage2-gmp: all-stage2-gmp | |
11360 | all-stage2: all-stage2-gmp | |
11361 | TARGET-stage2-gmp = $(TARGET-gmp) | |
11362 | all-stage2-gmp: configure-stage2-gmp | |
11363 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
11364 | @r=`${PWD_COMMAND}`; export r; \ | |
56a8fe78 | 11365 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 11366 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
56a8fe78 | 11367 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
11368 | $(POSTSTAGE1_HOST_EXPORTS) \ |
11369 | cd $(HOST_SUBDIR)/gmp && \ | |
05a13254 | 11370 | \ |
a90ef4bf JM |
11371 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
11372 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
11373 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
11374 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
11375 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
11376 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
11377 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
05a13254 NC |
11378 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \ |
11379 | TFLAGS="$(STAGE2_TFLAGS)" \ | |
a90ef4bf | 11380 | $(TARGET-stage2-gmp) |
56a8fe78 | 11381 | |
a90ef4bf JM |
11382 | maybe-clean-stage2-gmp: clean-stage2-gmp |
11383 | clean-stage2: clean-stage2-gmp | |
11384 | clean-stage2-gmp: | |
11385 | @if [ $(current_stage) = stage2 ]; then \ | |
11386 | [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \ | |
11387 | else \ | |
11388 | [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \ | |
11389 | $(MAKE) stage2-start; \ | |
11390 | fi; \ | |
11391 | cd $(HOST_SUBDIR)/gmp && \ | |
05a13254 | 11392 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean |
a90ef4bf | 11393 | @endif gmp-bootstrap |
56a8fe78 | 11394 | |
6d389afc | 11395 | |
a90ef4bf JM |
11396 | .PHONY: all-stage3-gmp maybe-all-stage3-gmp |
11397 | .PHONY: clean-stage3-gmp maybe-clean-stage3-gmp | |
11398 | maybe-all-stage3-gmp: | |
11399 | maybe-clean-stage3-gmp: | |
11400 | @if gmp-bootstrap | |
11401 | maybe-all-stage3-gmp: all-stage3-gmp | |
11402 | all-stage3: all-stage3-gmp | |
11403 | TARGET-stage3-gmp = $(TARGET-gmp) | |
11404 | all-stage3-gmp: configure-stage3-gmp | |
11405 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
11406 | @r=`${PWD_COMMAND}`; export r; \ | |
6d389afc | 11407 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 11408 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
6d389afc | 11409 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
11410 | $(POSTSTAGE1_HOST_EXPORTS) \ |
11411 | cd $(HOST_SUBDIR)/gmp && \ | |
05a13254 | 11412 | \ |
a90ef4bf JM |
11413 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
11414 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
11415 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
11416 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
11417 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
11418 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
11419 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
05a13254 NC |
11420 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \ |
11421 | TFLAGS="$(STAGE3_TFLAGS)" \ | |
a90ef4bf | 11422 | $(TARGET-stage3-gmp) |
6d389afc | 11423 | |
a90ef4bf JM |
11424 | maybe-clean-stage3-gmp: clean-stage3-gmp |
11425 | clean-stage3: clean-stage3-gmp | |
11426 | clean-stage3-gmp: | |
11427 | @if [ $(current_stage) = stage3 ]; then \ | |
11428 | [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \ | |
11429 | else \ | |
11430 | [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \ | |
11431 | $(MAKE) stage3-start; \ | |
11432 | fi; \ | |
11433 | cd $(HOST_SUBDIR)/gmp && \ | |
05a13254 | 11434 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean |
a90ef4bf | 11435 | @endif gmp-bootstrap |
6d389afc | 11436 | |
2a4cbe27 | 11437 | |
a90ef4bf JM |
11438 | .PHONY: all-stage4-gmp maybe-all-stage4-gmp |
11439 | .PHONY: clean-stage4-gmp maybe-clean-stage4-gmp | |
11440 | maybe-all-stage4-gmp: | |
11441 | maybe-clean-stage4-gmp: | |
11442 | @if gmp-bootstrap | |
11443 | maybe-all-stage4-gmp: all-stage4-gmp | |
11444 | all-stage4: all-stage4-gmp | |
11445 | TARGET-stage4-gmp = $(TARGET-gmp) | |
11446 | all-stage4-gmp: configure-stage4-gmp | |
11447 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
11448 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 11449 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 11450 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
378fce5b | 11451 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
11452 | $(POSTSTAGE1_HOST_EXPORTS) \ |
11453 | cd $(HOST_SUBDIR)/gmp && \ | |
05a13254 | 11454 | \ |
a90ef4bf JM |
11455 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
11456 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
11457 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
11458 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
11459 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
11460 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
11461 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
05a13254 NC |
11462 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \ |
11463 | TFLAGS="$(STAGE4_TFLAGS)" \ | |
a90ef4bf | 11464 | $(TARGET-stage4-gmp) |
2a4cbe27 | 11465 | |
a90ef4bf JM |
11466 | maybe-clean-stage4-gmp: clean-stage4-gmp |
11467 | clean-stage4: clean-stage4-gmp | |
11468 | clean-stage4-gmp: | |
11469 | @if [ $(current_stage) = stage4 ]; then \ | |
11470 | [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \ | |
11471 | else \ | |
11472 | [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \ | |
11473 | $(MAKE) stage4-start; \ | |
11474 | fi; \ | |
11475 | cd $(HOST_SUBDIR)/gmp && \ | |
05a13254 | 11476 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean |
a90ef4bf | 11477 | @endif gmp-bootstrap |
2a4cbe27 | 11478 | |
2a4cbe27 | 11479 | |
a90ef4bf JM |
11480 | .PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp |
11481 | .PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp | |
11482 | maybe-all-stageprofile-gmp: | |
11483 | maybe-clean-stageprofile-gmp: | |
11484 | @if gmp-bootstrap | |
11485 | maybe-all-stageprofile-gmp: all-stageprofile-gmp | |
11486 | all-stageprofile: all-stageprofile-gmp | |
11487 | TARGET-stageprofile-gmp = $(TARGET-gmp) | |
11488 | all-stageprofile-gmp: configure-stageprofile-gmp | |
11489 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
11490 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 11491 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 11492 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
378fce5b | 11493 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
11494 | $(POSTSTAGE1_HOST_EXPORTS) \ |
11495 | cd $(HOST_SUBDIR)/gmp && \ | |
05a13254 | 11496 | \ |
a90ef4bf JM |
11497 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
11498 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
11499 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
11500 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
11501 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
11502 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
11503 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
05a13254 NC |
11504 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \ |
11505 | TFLAGS="$(STAGEprofile_TFLAGS)" \ | |
a90ef4bf | 11506 | $(TARGET-stageprofile-gmp) |
2a4cbe27 | 11507 | |
a90ef4bf JM |
11508 | maybe-clean-stageprofile-gmp: clean-stageprofile-gmp |
11509 | clean-stageprofile: clean-stageprofile-gmp | |
11510 | clean-stageprofile-gmp: | |
11511 | @if [ $(current_stage) = stageprofile ]; then \ | |
11512 | [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \ | |
11513 | else \ | |
11514 | [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \ | |
11515 | $(MAKE) stageprofile-start; \ | |
11516 | fi; \ | |
11517 | cd $(HOST_SUBDIR)/gmp && \ | |
05a13254 | 11518 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean |
a90ef4bf | 11519 | @endif gmp-bootstrap |
2a4cbe27 | 11520 | |
a7254363 | 11521 | |
a90ef4bf JM |
11522 | .PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp |
11523 | .PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp | |
11524 | maybe-all-stagefeedback-gmp: | |
11525 | maybe-clean-stagefeedback-gmp: | |
11526 | @if gmp-bootstrap | |
11527 | maybe-all-stagefeedback-gmp: all-stagefeedback-gmp | |
11528 | all-stagefeedback: all-stagefeedback-gmp | |
11529 | TARGET-stagefeedback-gmp = $(TARGET-gmp) | |
11530 | all-stagefeedback-gmp: configure-stagefeedback-gmp | |
11531 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
c52c6897 | 11532 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 11533 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
11534 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
11535 | $(HOST_EXPORTS) \ | |
11536 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11537 | cd $(HOST_SUBDIR)/gmp && \ | |
05a13254 | 11538 | \ |
a90ef4bf JM |
11539 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
11540 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
11541 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
11542 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
11543 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
11544 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
11545 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
05a13254 NC |
11546 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \ |
11547 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ | |
a90ef4bf | 11548 | $(TARGET-stagefeedback-gmp) |
d545f33b | 11549 | |
a90ef4bf JM |
11550 | maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp |
11551 | clean-stagefeedback: clean-stagefeedback-gmp | |
11552 | clean-stagefeedback-gmp: | |
11553 | @if [ $(current_stage) = stagefeedback ]; then \ | |
11554 | [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \ | |
11555 | else \ | |
11556 | [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \ | |
11557 | $(MAKE) stagefeedback-start; \ | |
11558 | fi; \ | |
11559 | cd $(HOST_SUBDIR)/gmp && \ | |
05a13254 | 11560 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean |
a90ef4bf | 11561 | @endif gmp-bootstrap |
d545f33b | 11562 | |
4fa63067 | 11563 | |
a7254363 | 11564 | |
d545f33b PB |
11565 | |
11566 | ||
a90ef4bf JM |
11567 | .PHONY: check-gmp maybe-check-gmp |
11568 | maybe-check-gmp: | |
11569 | @if gmp | |
11570 | maybe-check-gmp: check-gmp | |
4fa63067 | 11571 | |
a90ef4bf | 11572 | check-gmp: |
0aed8855 | 11573 | @: $(MAKE); $(unstage) |
4fa63067 NN |
11574 | @r=`${PWD_COMMAND}`; export r; \ |
11575 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 11576 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 11577 | (cd $(HOST_SUBDIR)/gmp && \ |
05a13254 | 11578 | $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check) |
2a4cbe27 | 11579 | |
a90ef4bf | 11580 | @endif gmp |
2a4cbe27 | 11581 | |
a90ef4bf JM |
11582 | .PHONY: install-gmp maybe-install-gmp |
11583 | maybe-install-gmp: | |
11584 | @if gmp | |
11585 | maybe-install-gmp: install-gmp | |
2a4cbe27 | 11586 | |
a90ef4bf | 11587 | install-gmp: |
2a4cbe27 | 11588 | |
a90ef4bf | 11589 | @endif gmp |
2a4cbe27 | 11590 | |
a90ef4bf JM |
11591 | .PHONY: install-strip-gmp maybe-install-strip-gmp |
11592 | maybe-install-strip-gmp: | |
11593 | @if gmp | |
11594 | maybe-install-strip-gmp: install-strip-gmp | |
9b980aa1 | 11595 | |
a90ef4bf | 11596 | install-strip-gmp: |
9b980aa1 | 11597 | |
a90ef4bf | 11598 | @endif gmp |
9b980aa1 | 11599 | |
56a8fe78 | 11600 | # Other targets (info, dvi, pdf, etc.) |
2a4cbe27 | 11601 | |
a90ef4bf JM |
11602 | .PHONY: maybe-info-gmp info-gmp |
11603 | maybe-info-gmp: | |
11604 | @if gmp | |
11605 | maybe-info-gmp: info-gmp | |
4fa63067 | 11606 | |
a90ef4bf JM |
11607 | info-gmp: \ |
11608 | configure-gmp | |
11609 | @[ -f ./gmp/Makefile ] || exit 0; \ | |
b40e3958 L |
11610 | r=`${PWD_COMMAND}`; export r; \ |
11611 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11612 | $(HOST_EXPORTS) \ |
05a13254 | 11613 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
11614 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11615 | done; \ | |
22121df0 | 11616 | echo "Doing info in gmp"; \ |
a90ef4bf | 11617 | (cd $(HOST_SUBDIR)/gmp && \ |
2a4cbe27 NN |
11618 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11619 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11620 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11621 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 11622 | info) \ |
2a4cbe27 NN |
11623 | || exit 1 |
11624 | ||
a90ef4bf | 11625 | @endif gmp |
2a4cbe27 | 11626 | |
a90ef4bf JM |
11627 | .PHONY: maybe-dvi-gmp dvi-gmp |
11628 | maybe-dvi-gmp: | |
11629 | @if gmp | |
11630 | maybe-dvi-gmp: dvi-gmp | |
2a4cbe27 | 11631 | |
a90ef4bf JM |
11632 | dvi-gmp: \ |
11633 | configure-gmp | |
11634 | @[ -f ./gmp/Makefile ] || exit 0; \ | |
b40e3958 L |
11635 | r=`${PWD_COMMAND}`; export r; \ |
11636 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11637 | $(HOST_EXPORTS) \ |
05a13254 | 11638 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
11639 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11640 | done; \ | |
22121df0 | 11641 | echo "Doing dvi in gmp"; \ |
a90ef4bf | 11642 | (cd $(HOST_SUBDIR)/gmp && \ |
2a4cbe27 NN |
11643 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11644 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11645 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11646 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 11647 | dvi) \ |
2a4cbe27 NN |
11648 | || exit 1 |
11649 | ||
a90ef4bf | 11650 | @endif gmp |
2a4cbe27 | 11651 | |
a90ef4bf JM |
11652 | .PHONY: maybe-pdf-gmp pdf-gmp |
11653 | maybe-pdf-gmp: | |
11654 | @if gmp | |
11655 | maybe-pdf-gmp: pdf-gmp | |
56a8fe78 | 11656 | |
a90ef4bf JM |
11657 | pdf-gmp: \ |
11658 | configure-gmp | |
11659 | @[ -f ./gmp/Makefile ] || exit 0; \ | |
56a8fe78 DD |
11660 | r=`${PWD_COMMAND}`; export r; \ |
11661 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11662 | $(HOST_EXPORTS) \ | |
05a13254 | 11663 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
56a8fe78 DD |
11664 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11665 | done; \ | |
22121df0 | 11666 | echo "Doing pdf in gmp"; \ |
a90ef4bf | 11667 | (cd $(HOST_SUBDIR)/gmp && \ |
56a8fe78 DD |
11668 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11669 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11670 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11671 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
11672 | pdf) \ |
11673 | || exit 1 | |
11674 | ||
a90ef4bf | 11675 | @endif gmp |
56a8fe78 | 11676 | |
a90ef4bf JM |
11677 | .PHONY: maybe-html-gmp html-gmp |
11678 | maybe-html-gmp: | |
11679 | @if gmp | |
11680 | maybe-html-gmp: html-gmp | |
6d389afc | 11681 | |
a90ef4bf JM |
11682 | html-gmp: \ |
11683 | configure-gmp | |
11684 | @[ -f ./gmp/Makefile ] || exit 0; \ | |
6d389afc MS |
11685 | r=`${PWD_COMMAND}`; export r; \ |
11686 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 11687 | $(HOST_EXPORTS) \ |
05a13254 | 11688 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
6d389afc MS |
11689 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11690 | done; \ | |
22121df0 | 11691 | echo "Doing html in gmp"; \ |
a90ef4bf | 11692 | (cd $(HOST_SUBDIR)/gmp && \ |
6d389afc MS |
11693 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11694 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11695 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11696 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
11697 | html) \ |
11698 | || exit 1 | |
11699 | ||
a90ef4bf | 11700 | @endif gmp |
6d389afc | 11701 | |
a90ef4bf JM |
11702 | .PHONY: maybe-TAGS-gmp TAGS-gmp |
11703 | maybe-TAGS-gmp: | |
11704 | @if gmp | |
11705 | maybe-TAGS-gmp: TAGS-gmp | |
2a4cbe27 | 11706 | |
a90ef4bf JM |
11707 | TAGS-gmp: \ |
11708 | configure-gmp | |
11709 | @[ -f ./gmp/Makefile ] || exit 0; \ | |
b40e3958 L |
11710 | r=`${PWD_COMMAND}`; export r; \ |
11711 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11712 | $(HOST_EXPORTS) \ |
05a13254 | 11713 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
11714 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11715 | done; \ | |
22121df0 | 11716 | echo "Doing TAGS in gmp"; \ |
a90ef4bf | 11717 | (cd $(HOST_SUBDIR)/gmp && \ |
2a4cbe27 NN |
11718 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11719 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11720 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11721 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 11722 | TAGS) \ |
2a4cbe27 NN |
11723 | || exit 1 |
11724 | ||
a90ef4bf | 11725 | @endif gmp |
2a4cbe27 | 11726 | |
a90ef4bf JM |
11727 | .PHONY: maybe-install-info-gmp install-info-gmp |
11728 | maybe-install-info-gmp: | |
11729 | @if gmp | |
11730 | maybe-install-info-gmp: install-info-gmp | |
2a4cbe27 | 11731 | |
a90ef4bf JM |
11732 | install-info-gmp: \ |
11733 | configure-gmp \ | |
11734 | info-gmp | |
11735 | @[ -f ./gmp/Makefile ] || exit 0; \ | |
b40e3958 L |
11736 | r=`${PWD_COMMAND}`; export r; \ |
11737 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11738 | $(HOST_EXPORTS) \ |
05a13254 | 11739 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
11740 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11741 | done; \ | |
22121df0 | 11742 | echo "Doing install-info in gmp"; \ |
a90ef4bf | 11743 | (cd $(HOST_SUBDIR)/gmp && \ |
2a4cbe27 NN |
11744 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11745 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11746 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11747 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 11748 | install-info) \ |
2a4cbe27 NN |
11749 | || exit 1 |
11750 | ||
a90ef4bf | 11751 | @endif gmp |
2a4cbe27 | 11752 | |
a90ef4bf JM |
11753 | .PHONY: maybe-install-pdf-gmp install-pdf-gmp |
11754 | maybe-install-pdf-gmp: | |
11755 | @if gmp | |
11756 | maybe-install-pdf-gmp: install-pdf-gmp | |
a3ca38d2 | 11757 | |
a90ef4bf JM |
11758 | install-pdf-gmp: \ |
11759 | configure-gmp \ | |
11760 | pdf-gmp | |
11761 | @[ -f ./gmp/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
11762 | r=`${PWD_COMMAND}`; export r; \ |
11763 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11764 | $(HOST_EXPORTS) \ | |
05a13254 | 11765 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
a3ca38d2 DD |
11766 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11767 | done; \ | |
22121df0 | 11768 | echo "Doing install-pdf in gmp"; \ |
a90ef4bf | 11769 | (cd $(HOST_SUBDIR)/gmp && \ |
a3ca38d2 DD |
11770 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11771 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11772 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11773 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
11774 | install-pdf) \ |
11775 | || exit 1 | |
11776 | ||
a90ef4bf | 11777 | @endif gmp |
a3ca38d2 | 11778 | |
a90ef4bf JM |
11779 | .PHONY: maybe-install-html-gmp install-html-gmp |
11780 | maybe-install-html-gmp: | |
11781 | @if gmp | |
11782 | maybe-install-html-gmp: install-html-gmp | |
108a6f8e | 11783 | |
a90ef4bf JM |
11784 | install-html-gmp: \ |
11785 | configure-gmp \ | |
11786 | html-gmp | |
11787 | @[ -f ./gmp/Makefile ] || exit 0; \ | |
108a6f8e CD |
11788 | r=`${PWD_COMMAND}`; export r; \ |
11789 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11790 | $(HOST_EXPORTS) \ | |
05a13254 | 11791 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
108a6f8e CD |
11792 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11793 | done; \ | |
22121df0 | 11794 | echo "Doing install-html in gmp"; \ |
a90ef4bf | 11795 | (cd $(HOST_SUBDIR)/gmp && \ |
108a6f8e CD |
11796 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11797 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11798 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11799 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
11800 | install-html) \ |
11801 | || exit 1 | |
11802 | ||
a90ef4bf | 11803 | @endif gmp |
108a6f8e | 11804 | |
a90ef4bf JM |
11805 | .PHONY: maybe-installcheck-gmp installcheck-gmp |
11806 | maybe-installcheck-gmp: | |
11807 | @if gmp | |
11808 | maybe-installcheck-gmp: installcheck-gmp | |
2a4cbe27 | 11809 | |
a90ef4bf JM |
11810 | installcheck-gmp: \ |
11811 | configure-gmp | |
11812 | @[ -f ./gmp/Makefile ] || exit 0; \ | |
b40e3958 L |
11813 | r=`${PWD_COMMAND}`; export r; \ |
11814 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11815 | $(HOST_EXPORTS) \ |
05a13254 | 11816 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
11817 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11818 | done; \ | |
22121df0 | 11819 | echo "Doing installcheck in gmp"; \ |
a90ef4bf | 11820 | (cd $(HOST_SUBDIR)/gmp && \ |
2a4cbe27 NN |
11821 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11822 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11823 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11824 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 11825 | installcheck) \ |
2a4cbe27 NN |
11826 | || exit 1 |
11827 | ||
a90ef4bf | 11828 | @endif gmp |
2a4cbe27 | 11829 | |
a90ef4bf JM |
11830 | .PHONY: maybe-mostlyclean-gmp mostlyclean-gmp |
11831 | maybe-mostlyclean-gmp: | |
11832 | @if gmp | |
11833 | maybe-mostlyclean-gmp: mostlyclean-gmp | |
2a4cbe27 | 11834 | |
a90ef4bf JM |
11835 | mostlyclean-gmp: |
11836 | @[ -f ./gmp/Makefile ] || exit 0; \ | |
b40e3958 L |
11837 | r=`${PWD_COMMAND}`; export r; \ |
11838 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11839 | $(HOST_EXPORTS) \ |
05a13254 | 11840 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
11841 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11842 | done; \ | |
22121df0 | 11843 | echo "Doing mostlyclean in gmp"; \ |
a90ef4bf | 11844 | (cd $(HOST_SUBDIR)/gmp && \ |
2a4cbe27 NN |
11845 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11846 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11847 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11848 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 11849 | mostlyclean) \ |
2a4cbe27 NN |
11850 | || exit 1 |
11851 | ||
a90ef4bf | 11852 | @endif gmp |
2a4cbe27 | 11853 | |
a90ef4bf JM |
11854 | .PHONY: maybe-clean-gmp clean-gmp |
11855 | maybe-clean-gmp: | |
11856 | @if gmp | |
11857 | maybe-clean-gmp: clean-gmp | |
2a4cbe27 | 11858 | |
a90ef4bf JM |
11859 | clean-gmp: |
11860 | @[ -f ./gmp/Makefile ] || exit 0; \ | |
b40e3958 L |
11861 | r=`${PWD_COMMAND}`; export r; \ |
11862 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11863 | $(HOST_EXPORTS) \ |
05a13254 | 11864 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
11865 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11866 | done; \ | |
22121df0 | 11867 | echo "Doing clean in gmp"; \ |
a90ef4bf | 11868 | (cd $(HOST_SUBDIR)/gmp && \ |
2a4cbe27 NN |
11869 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11870 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11871 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11872 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 11873 | clean) \ |
2a4cbe27 NN |
11874 | || exit 1 |
11875 | ||
a90ef4bf | 11876 | @endif gmp |
2a4cbe27 | 11877 | |
a90ef4bf JM |
11878 | .PHONY: maybe-distclean-gmp distclean-gmp |
11879 | maybe-distclean-gmp: | |
11880 | @if gmp | |
11881 | maybe-distclean-gmp: distclean-gmp | |
2a4cbe27 | 11882 | |
a90ef4bf JM |
11883 | distclean-gmp: |
11884 | @[ -f ./gmp/Makefile ] || exit 0; \ | |
b40e3958 L |
11885 | r=`${PWD_COMMAND}`; export r; \ |
11886 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11887 | $(HOST_EXPORTS) \ |
05a13254 | 11888 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
11889 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11890 | done; \ | |
22121df0 | 11891 | echo "Doing distclean in gmp"; \ |
a90ef4bf | 11892 | (cd $(HOST_SUBDIR)/gmp && \ |
2a4cbe27 NN |
11893 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11894 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11895 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11896 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 11897 | distclean) \ |
2a4cbe27 NN |
11898 | || exit 1 |
11899 | ||
a90ef4bf | 11900 | @endif gmp |
2a4cbe27 | 11901 | |
a90ef4bf JM |
11902 | .PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp |
11903 | maybe-maintainer-clean-gmp: | |
11904 | @if gmp | |
11905 | maybe-maintainer-clean-gmp: maintainer-clean-gmp | |
2a4cbe27 | 11906 | |
a90ef4bf JM |
11907 | maintainer-clean-gmp: |
11908 | @[ -f ./gmp/Makefile ] || exit 0; \ | |
b40e3958 L |
11909 | r=`${PWD_COMMAND}`; export r; \ |
11910 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11911 | $(HOST_EXPORTS) \ |
05a13254 | 11912 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
11913 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11914 | done; \ | |
22121df0 | 11915 | echo "Doing maintainer-clean in gmp"; \ |
a90ef4bf | 11916 | (cd $(HOST_SUBDIR)/gmp && \ |
2a4cbe27 NN |
11917 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11918 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11919 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 11920 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 11921 | maintainer-clean) \ |
2a4cbe27 NN |
11922 | || exit 1 |
11923 | ||
a90ef4bf | 11924 | @endif gmp |
2a4cbe27 | 11925 | |
2a4cbe27 | 11926 | |
a7254363 | 11927 | |
a90ef4bf JM |
11928 | .PHONY: configure-mpfr maybe-configure-mpfr |
11929 | maybe-configure-mpfr: | |
4f0ef2d8 | 11930 | @if gcc-bootstrap |
a90ef4bf | 11931 | configure-mpfr: stage_current |
4f0ef2d8 | 11932 | @endif gcc-bootstrap |
a90ef4bf JM |
11933 | @if mpfr |
11934 | maybe-configure-mpfr: configure-mpfr | |
11935 | configure-mpfr: | |
11936 | @r=`${PWD_COMMAND}`; export r; \ | |
11937 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11938 | test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \ | |
22121df0 | 11939 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \ |
1f53ca9a | 11940 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
11941 | echo Configuring in $(HOST_SUBDIR)/mpfr; \ |
11942 | cd "$(HOST_SUBDIR)/mpfr" || exit 1; \ | |
4fa63067 | 11943 | case $(srcdir) in \ |
b00612cc | 11944 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 11945 | *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \ |
b00612cc | 11946 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 11947 | esac; \ |
1b6c0831 L |
11948 | module_srcdir=mpfr; \ |
11949 | $(SHELL) \ | |
11950 | $$s/$$module_srcdir/configure \ | |
11951 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 11952 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 11953 | --target=${target_alias} --disable-shared @extra_mpfr_configure_flags@ \ |
2a4cbe27 | 11954 | || exit 1 |
a90ef4bf | 11955 | @endif mpfr |
d545f33b PB |
11956 | |
11957 | ||
2a4cbe27 | 11958 | |
a90ef4bf JM |
11959 | .PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr |
11960 | maybe-configure-stage1-mpfr: | |
11961 | @if mpfr-bootstrap | |
11962 | maybe-configure-stage1-mpfr: configure-stage1-mpfr | |
11963 | configure-stage1-mpfr: | |
11964 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
11965 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr | |
4fa63067 | 11966 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 11967 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
11968 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
11969 | test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \ | |
378fce5b | 11970 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
11971 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ |
11972 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
11973 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
11974 | echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr; \ |
11975 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \ | |
a90ef4bf JM |
11976 | cd $(HOST_SUBDIR)/mpfr || exit 1; \ |
11977 | case $(srcdir) in \ | |
11978 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11979 | *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \ | |
11980 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11981 | esac; \ | |
1b6c0831 L |
11982 | module_srcdir=mpfr; \ |
11983 | $(SHELL) $$s/$$module_srcdir/configure \ | |
11984 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 11985 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
11986 | --target=${target_alias} \ |
11987 | \ | |
a90ef4bf JM |
11988 | $(STAGE1_CONFIGURE_FLAGS) \ |
11989 | --disable-shared @extra_mpfr_configure_flags@ | |
11990 | @endif mpfr-bootstrap | |
2a4cbe27 | 11991 | |
a90ef4bf JM |
11992 | .PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr |
11993 | maybe-configure-stage2-mpfr: | |
11994 | @if mpfr-bootstrap | |
11995 | maybe-configure-stage2-mpfr: configure-stage2-mpfr | |
11996 | configure-stage2-mpfr: | |
11997 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
11998 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr | |
4fa63067 | 11999 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 12000 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
12001 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
12002 | test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \ | |
378fce5b | 12003 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
12004 | $(POSTSTAGE1_HOST_EXPORTS) \ |
12005 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
12006 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
12007 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
12008 | echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr; \ |
12009 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \ | |
a90ef4bf JM |
12010 | cd $(HOST_SUBDIR)/mpfr || exit 1; \ |
12011 | case $(srcdir) in \ | |
12012 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
12013 | *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \ | |
12014 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
12015 | esac; \ | |
1b6c0831 L |
12016 | module_srcdir=mpfr; \ |
12017 | $(SHELL) $$s/$$module_srcdir/configure \ | |
12018 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 12019 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 12020 | --target=${target_alias} \ |
22121df0 | 12021 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
12022 | $(STAGE2_CONFIGURE_FLAGS) \ |
12023 | --disable-shared @extra_mpfr_configure_flags@ | |
12024 | @endif mpfr-bootstrap | |
9b980aa1 | 12025 | |
a90ef4bf JM |
12026 | .PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr |
12027 | maybe-configure-stage3-mpfr: | |
12028 | @if mpfr-bootstrap | |
12029 | maybe-configure-stage3-mpfr: configure-stage3-mpfr | |
12030 | configure-stage3-mpfr: | |
12031 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
12032 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr | |
9b980aa1 RW |
12033 | @r=`${PWD_COMMAND}`; export r; \ |
12034 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
12035 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
12036 | test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \ | |
9b980aa1 | 12037 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
12038 | $(POSTSTAGE1_HOST_EXPORTS) \ |
12039 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
12040 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
12041 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
12042 | echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr; \ |
12043 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \ | |
a90ef4bf JM |
12044 | cd $(HOST_SUBDIR)/mpfr || exit 1; \ |
12045 | case $(srcdir) in \ | |
12046 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
12047 | *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \ | |
12048 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
12049 | esac; \ | |
1b6c0831 L |
12050 | module_srcdir=mpfr; \ |
12051 | $(SHELL) $$s/$$module_srcdir/configure \ | |
12052 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 12053 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 12054 | --target=${target_alias} \ |
22121df0 | 12055 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
12056 | $(STAGE3_CONFIGURE_FLAGS) \ |
12057 | --disable-shared @extra_mpfr_configure_flags@ | |
12058 | @endif mpfr-bootstrap | |
2a4cbe27 | 12059 | |
a90ef4bf JM |
12060 | .PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr |
12061 | maybe-configure-stage4-mpfr: | |
12062 | @if mpfr-bootstrap | |
12063 | maybe-configure-stage4-mpfr: configure-stage4-mpfr | |
12064 | configure-stage4-mpfr: | |
12065 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
12066 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr | |
12067 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 12068 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
12069 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
12070 | test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \ | |
378fce5b | 12071 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
12072 | $(POSTSTAGE1_HOST_EXPORTS) \ |
12073 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
12074 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
12075 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
12076 | echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr; \ |
12077 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \ | |
a90ef4bf JM |
12078 | cd $(HOST_SUBDIR)/mpfr || exit 1; \ |
12079 | case $(srcdir) in \ | |
12080 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
12081 | *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \ | |
12082 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
12083 | esac; \ | |
1b6c0831 L |
12084 | module_srcdir=mpfr; \ |
12085 | $(SHELL) $$s/$$module_srcdir/configure \ | |
12086 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 12087 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 12088 | --target=${target_alias} \ |
22121df0 | 12089 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
12090 | $(STAGE4_CONFIGURE_FLAGS) \ |
12091 | --disable-shared @extra_mpfr_configure_flags@ | |
12092 | @endif mpfr-bootstrap | |
2a4cbe27 | 12093 | |
a90ef4bf JM |
12094 | .PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr |
12095 | maybe-configure-stageprofile-mpfr: | |
12096 | @if mpfr-bootstrap | |
12097 | maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr | |
12098 | configure-stageprofile-mpfr: | |
12099 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
12100 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr | |
12101 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 12102 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
12103 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
12104 | test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \ | |
378fce5b | 12105 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
12106 | $(POSTSTAGE1_HOST_EXPORTS) \ |
12107 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
12108 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
12109 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
12110 | echo Configuring stage profile in $(HOST_SUBDIR)/mpfr; \ |
12111 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \ | |
a90ef4bf JM |
12112 | cd $(HOST_SUBDIR)/mpfr || exit 1; \ |
12113 | case $(srcdir) in \ | |
12114 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
12115 | *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \ | |
12116 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
12117 | esac; \ | |
1b6c0831 L |
12118 | module_srcdir=mpfr; \ |
12119 | $(SHELL) $$s/$$module_srcdir/configure \ | |
12120 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 12121 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 12122 | --target=${target_alias} \ |
22121df0 | 12123 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
12124 | $(STAGEprofile_CONFIGURE_FLAGS) \ |
12125 | --disable-shared @extra_mpfr_configure_flags@ | |
12126 | @endif mpfr-bootstrap | |
56a8fe78 | 12127 | |
a90ef4bf JM |
12128 | .PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr |
12129 | maybe-configure-stagefeedback-mpfr: | |
12130 | @if mpfr-bootstrap | |
12131 | maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr | |
12132 | configure-stagefeedback-mpfr: | |
12133 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
12134 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr | |
12135 | @r=`${PWD_COMMAND}`; export r; \ | |
56a8fe78 | 12136 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
12137 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
12138 | test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \ | |
56a8fe78 | 12139 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
12140 | $(POSTSTAGE1_HOST_EXPORTS) \ |
12141 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
12142 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
12143 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
12144 | echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr; \ |
12145 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \ | |
a90ef4bf JM |
12146 | cd $(HOST_SUBDIR)/mpfr || exit 1; \ |
12147 | case $(srcdir) in \ | |
12148 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
12149 | *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \ | |
12150 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
12151 | esac; \ | |
1b6c0831 L |
12152 | module_srcdir=mpfr; \ |
12153 | $(SHELL) $$s/$$module_srcdir/configure \ | |
12154 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 12155 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 12156 | --target=${target_alias} \ |
22121df0 | 12157 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
12158 | $(STAGEfeedback_CONFIGURE_FLAGS) \ |
12159 | --disable-shared @extra_mpfr_configure_flags@ | |
12160 | @endif mpfr-bootstrap | |
56a8fe78 | 12161 | |
6d389afc | 12162 | |
6d389afc | 12163 | |
6d389afc | 12164 | |
2a4cbe27 | 12165 | |
a90ef4bf JM |
12166 | .PHONY: all-mpfr maybe-all-mpfr |
12167 | maybe-all-mpfr: | |
12168 | @if gcc-bootstrap | |
12169 | all-mpfr: stage_current | |
12170 | @endif gcc-bootstrap | |
12171 | @if mpfr | |
12172 | TARGET-mpfr=all | |
12173 | maybe-all-mpfr: all-mpfr | |
12174 | all-mpfr: configure-mpfr | |
12175 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 12176 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
12177 | $(HOST_EXPORTS) \ |
12178 | (cd $(HOST_SUBDIR)/mpfr && \ | |
ce5e165e | 12179 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \ |
a90ef4bf JM |
12180 | $(TARGET-mpfr)) |
12181 | @endif mpfr | |
2a4cbe27 NN |
12182 | |
12183 | ||
2a4cbe27 | 12184 | |
a90ef4bf JM |
12185 | .PHONY: all-stage1-mpfr maybe-all-stage1-mpfr |
12186 | .PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr | |
12187 | maybe-all-stage1-mpfr: | |
12188 | maybe-clean-stage1-mpfr: | |
12189 | @if mpfr-bootstrap | |
12190 | maybe-all-stage1-mpfr: all-stage1-mpfr | |
12191 | all-stage1: all-stage1-mpfr | |
12192 | TARGET-stage1-mpfr = $(TARGET-mpfr) | |
12193 | all-stage1-mpfr: configure-stage1-mpfr | |
12194 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
12195 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 12196 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
12197 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
12198 | $(HOST_EXPORTS) \ | |
12199 | cd $(HOST_SUBDIR)/mpfr && \ | |
05a13254 | 12200 | \ |
a90ef4bf JM |
12201 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
12202 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
12203 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
12204 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
12205 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
12206 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
12207 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 | 12208 | $(EXTRA_HOST_FLAGS) \ |
ce5e165e | 12209 | $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \ |
05a13254 | 12210 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 12211 | $(TARGET-stage1-mpfr) |
2a4cbe27 | 12212 | |
a90ef4bf JM |
12213 | maybe-clean-stage1-mpfr: clean-stage1-mpfr |
12214 | clean-stage1: clean-stage1-mpfr | |
12215 | clean-stage1-mpfr: | |
12216 | @if [ $(current_stage) = stage1 ]; then \ | |
12217 | [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \ | |
12218 | else \ | |
12219 | [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \ | |
12220 | $(MAKE) stage1-start; \ | |
12221 | fi; \ | |
12222 | cd $(HOST_SUBDIR)/mpfr && \ | |
12223 | $(MAKE) $(EXTRA_HOST_FLAGS) \ | |
ce5e165e | 12224 | $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean |
a90ef4bf | 12225 | @endif mpfr-bootstrap |
2a4cbe27 | 12226 | |
a3ca38d2 | 12227 | |
a90ef4bf JM |
12228 | .PHONY: all-stage2-mpfr maybe-all-stage2-mpfr |
12229 | .PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr | |
12230 | maybe-all-stage2-mpfr: | |
12231 | maybe-clean-stage2-mpfr: | |
12232 | @if mpfr-bootstrap | |
12233 | maybe-all-stage2-mpfr: all-stage2-mpfr | |
12234 | all-stage2: all-stage2-mpfr | |
12235 | TARGET-stage2-mpfr = $(TARGET-mpfr) | |
12236 | all-stage2-mpfr: configure-stage2-mpfr | |
12237 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
12238 | @r=`${PWD_COMMAND}`; export r; \ | |
a3ca38d2 | 12239 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 12240 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
a3ca38d2 | 12241 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
12242 | $(POSTSTAGE1_HOST_EXPORTS) \ |
12243 | cd $(HOST_SUBDIR)/mpfr && \ | |
05a13254 | 12244 | \ |
a90ef4bf JM |
12245 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
12246 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
12247 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
12248 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
12249 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
12250 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
12251 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
ce5e165e | 12252 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \ |
05a13254 | 12253 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 12254 | $(TARGET-stage2-mpfr) |
a3ca38d2 | 12255 | |
a90ef4bf JM |
12256 | maybe-clean-stage2-mpfr: clean-stage2-mpfr |
12257 | clean-stage2: clean-stage2-mpfr | |
12258 | clean-stage2-mpfr: | |
12259 | @if [ $(current_stage) = stage2 ]; then \ | |
12260 | [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \ | |
12261 | else \ | |
12262 | [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \ | |
12263 | $(MAKE) stage2-start; \ | |
12264 | fi; \ | |
12265 | cd $(HOST_SUBDIR)/mpfr && \ | |
ce5e165e | 12266 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean |
a90ef4bf | 12267 | @endif mpfr-bootstrap |
a3ca38d2 | 12268 | |
108a6f8e | 12269 | |
a90ef4bf JM |
12270 | .PHONY: all-stage3-mpfr maybe-all-stage3-mpfr |
12271 | .PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr | |
12272 | maybe-all-stage3-mpfr: | |
12273 | maybe-clean-stage3-mpfr: | |
12274 | @if mpfr-bootstrap | |
12275 | maybe-all-stage3-mpfr: all-stage3-mpfr | |
12276 | all-stage3: all-stage3-mpfr | |
12277 | TARGET-stage3-mpfr = $(TARGET-mpfr) | |
12278 | all-stage3-mpfr: configure-stage3-mpfr | |
12279 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
12280 | @r=`${PWD_COMMAND}`; export r; \ | |
108a6f8e | 12281 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 12282 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
108a6f8e | 12283 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
12284 | $(POSTSTAGE1_HOST_EXPORTS) \ |
12285 | cd $(HOST_SUBDIR)/mpfr && \ | |
05a13254 | 12286 | \ |
a90ef4bf JM |
12287 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
12288 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
12289 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
12290 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
12291 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
12292 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
12293 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
ce5e165e | 12294 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \ |
05a13254 | 12295 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 12296 | $(TARGET-stage3-mpfr) |
108a6f8e | 12297 | |
a90ef4bf JM |
12298 | maybe-clean-stage3-mpfr: clean-stage3-mpfr |
12299 | clean-stage3: clean-stage3-mpfr | |
12300 | clean-stage3-mpfr: | |
12301 | @if [ $(current_stage) = stage3 ]; then \ | |
12302 | [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \ | |
12303 | else \ | |
12304 | [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \ | |
12305 | $(MAKE) stage3-start; \ | |
12306 | fi; \ | |
12307 | cd $(HOST_SUBDIR)/mpfr && \ | |
ce5e165e | 12308 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean |
a90ef4bf | 12309 | @endif mpfr-bootstrap |
108a6f8e | 12310 | |
2a4cbe27 | 12311 | |
a90ef4bf JM |
12312 | .PHONY: all-stage4-mpfr maybe-all-stage4-mpfr |
12313 | .PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr | |
12314 | maybe-all-stage4-mpfr: | |
12315 | maybe-clean-stage4-mpfr: | |
12316 | @if mpfr-bootstrap | |
12317 | maybe-all-stage4-mpfr: all-stage4-mpfr | |
12318 | all-stage4: all-stage4-mpfr | |
12319 | TARGET-stage4-mpfr = $(TARGET-mpfr) | |
12320 | all-stage4-mpfr: configure-stage4-mpfr | |
12321 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
12322 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 12323 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 12324 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
378fce5b | 12325 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
12326 | $(POSTSTAGE1_HOST_EXPORTS) \ |
12327 | cd $(HOST_SUBDIR)/mpfr && \ | |
05a13254 | 12328 | \ |
a90ef4bf JM |
12329 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
12330 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
12331 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
12332 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
12333 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
12334 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
12335 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
ce5e165e | 12336 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \ |
05a13254 | 12337 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 12338 | $(TARGET-stage4-mpfr) |
2a4cbe27 | 12339 | |
a90ef4bf JM |
12340 | maybe-clean-stage4-mpfr: clean-stage4-mpfr |
12341 | clean-stage4: clean-stage4-mpfr | |
12342 | clean-stage4-mpfr: | |
12343 | @if [ $(current_stage) = stage4 ]; then \ | |
12344 | [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \ | |
12345 | else \ | |
12346 | [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \ | |
12347 | $(MAKE) stage4-start; \ | |
12348 | fi; \ | |
12349 | cd $(HOST_SUBDIR)/mpfr && \ | |
ce5e165e | 12350 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean |
a90ef4bf | 12351 | @endif mpfr-bootstrap |
2a4cbe27 | 12352 | |
2a4cbe27 | 12353 | |
a90ef4bf JM |
12354 | .PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr |
12355 | .PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr | |
12356 | maybe-all-stageprofile-mpfr: | |
12357 | maybe-clean-stageprofile-mpfr: | |
12358 | @if mpfr-bootstrap | |
12359 | maybe-all-stageprofile-mpfr: all-stageprofile-mpfr | |
12360 | all-stageprofile: all-stageprofile-mpfr | |
12361 | TARGET-stageprofile-mpfr = $(TARGET-mpfr) | |
12362 | all-stageprofile-mpfr: configure-stageprofile-mpfr | |
12363 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
12364 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 12365 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 12366 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
378fce5b | 12367 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
12368 | $(POSTSTAGE1_HOST_EXPORTS) \ |
12369 | cd $(HOST_SUBDIR)/mpfr && \ | |
05a13254 | 12370 | \ |
a90ef4bf JM |
12371 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
12372 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
12373 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
12374 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
12375 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
12376 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
12377 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
ce5e165e | 12378 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \ |
05a13254 | 12379 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf | 12380 | $(TARGET-stageprofile-mpfr) |
2a4cbe27 | 12381 | |
a90ef4bf JM |
12382 | maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr |
12383 | clean-stageprofile: clean-stageprofile-mpfr | |
12384 | clean-stageprofile-mpfr: | |
12385 | @if [ $(current_stage) = stageprofile ]; then \ | |
12386 | [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \ | |
12387 | else \ | |
12388 | [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \ | |
12389 | $(MAKE) stageprofile-start; \ | |
12390 | fi; \ | |
12391 | cd $(HOST_SUBDIR)/mpfr && \ | |
ce5e165e | 12392 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean |
a90ef4bf | 12393 | @endif mpfr-bootstrap |
2a4cbe27 | 12394 | |
a7254363 | 12395 | |
a90ef4bf JM |
12396 | .PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr |
12397 | .PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr | |
12398 | maybe-all-stagefeedback-mpfr: | |
12399 | maybe-clean-stagefeedback-mpfr: | |
12400 | @if mpfr-bootstrap | |
12401 | maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr | |
12402 | all-stagefeedback: all-stagefeedback-mpfr | |
12403 | TARGET-stagefeedback-mpfr = $(TARGET-mpfr) | |
12404 | all-stagefeedback-mpfr: configure-stagefeedback-mpfr | |
12405 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
c52c6897 | 12406 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 12407 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
12408 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
12409 | $(HOST_EXPORTS) \ | |
12410 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
12411 | cd $(HOST_SUBDIR)/mpfr && \ | |
05a13254 | 12412 | \ |
a90ef4bf JM |
12413 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
12414 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
12415 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
12416 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
12417 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
12418 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
12419 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
ce5e165e | 12420 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \ |
05a13254 | 12421 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf | 12422 | $(TARGET-stagefeedback-mpfr) |
d545f33b | 12423 | |
a90ef4bf JM |
12424 | maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr |
12425 | clean-stagefeedback: clean-stagefeedback-mpfr | |
12426 | clean-stagefeedback-mpfr: | |
12427 | @if [ $(current_stage) = stagefeedback ]; then \ | |
12428 | [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \ | |
12429 | else \ | |
12430 | [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \ | |
12431 | $(MAKE) stagefeedback-start; \ | |
12432 | fi; \ | |
12433 | cd $(HOST_SUBDIR)/mpfr && \ | |
ce5e165e | 12434 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean |
a90ef4bf | 12435 | @endif mpfr-bootstrap |
d545f33b | 12436 | |
2a4cbe27 | 12437 | |
a7254363 | 12438 | |
d545f33b PB |
12439 | |
12440 | ||
a90ef4bf JM |
12441 | .PHONY: check-mpfr maybe-check-mpfr |
12442 | maybe-check-mpfr: | |
12443 | @if mpfr | |
12444 | maybe-check-mpfr: check-mpfr | |
2a4cbe27 | 12445 | |
a90ef4bf | 12446 | check-mpfr: |
0aed8855 | 12447 | @: $(MAKE); $(unstage) |
4fa63067 | 12448 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 12449 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
f91ca6bc | 12450 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 12451 | (cd $(HOST_SUBDIR)/mpfr && \ |
ce5e165e | 12452 | $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check) |
2a4cbe27 | 12453 | |
a90ef4bf | 12454 | @endif mpfr |
2a4cbe27 | 12455 | |
a90ef4bf JM |
12456 | .PHONY: install-mpfr maybe-install-mpfr |
12457 | maybe-install-mpfr: | |
12458 | @if mpfr | |
12459 | maybe-install-mpfr: install-mpfr | |
2a4cbe27 | 12460 | |
a90ef4bf | 12461 | install-mpfr: |
4fa63067 | 12462 | |
a90ef4bf | 12463 | @endif mpfr |
4fa63067 | 12464 | |
a90ef4bf JM |
12465 | .PHONY: install-strip-mpfr maybe-install-strip-mpfr |
12466 | maybe-install-strip-mpfr: | |
12467 | @if mpfr | |
12468 | maybe-install-strip-mpfr: install-strip-mpfr | |
9b980aa1 | 12469 | |
a90ef4bf | 12470 | install-strip-mpfr: |
9b980aa1 | 12471 | |
a90ef4bf | 12472 | @endif mpfr |
9b980aa1 | 12473 | |
56a8fe78 | 12474 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 12475 | |
a90ef4bf JM |
12476 | .PHONY: maybe-info-mpfr info-mpfr |
12477 | maybe-info-mpfr: | |
12478 | @if mpfr | |
12479 | maybe-info-mpfr: info-mpfr | |
4fa63067 | 12480 | |
a90ef4bf JM |
12481 | info-mpfr: \ |
12482 | configure-mpfr | |
12483 | @[ -f ./mpfr/Makefile ] || exit 0; \ | |
b40e3958 L |
12484 | r=`${PWD_COMMAND}`; export r; \ |
12485 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12486 | $(HOST_EXPORTS) \ |
ce5e165e | 12487 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
12488 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12489 | done; \ | |
22121df0 | 12490 | echo "Doing info in mpfr"; \ |
a90ef4bf | 12491 | (cd $(HOST_SUBDIR)/mpfr && \ |
2a4cbe27 NN |
12492 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12493 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12494 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 12495 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 12496 | info) \ |
2a4cbe27 NN |
12497 | || exit 1 |
12498 | ||
a90ef4bf | 12499 | @endif mpfr |
2a4cbe27 | 12500 | |
a90ef4bf JM |
12501 | .PHONY: maybe-dvi-mpfr dvi-mpfr |
12502 | maybe-dvi-mpfr: | |
12503 | @if mpfr | |
12504 | maybe-dvi-mpfr: dvi-mpfr | |
2a4cbe27 | 12505 | |
a90ef4bf JM |
12506 | dvi-mpfr: \ |
12507 | configure-mpfr | |
12508 | @[ -f ./mpfr/Makefile ] || exit 0; \ | |
b40e3958 L |
12509 | r=`${PWD_COMMAND}`; export r; \ |
12510 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12511 | $(HOST_EXPORTS) \ |
ce5e165e | 12512 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
12513 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12514 | done; \ | |
22121df0 | 12515 | echo "Doing dvi in mpfr"; \ |
a90ef4bf | 12516 | (cd $(HOST_SUBDIR)/mpfr && \ |
2a4cbe27 NN |
12517 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12518 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12519 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 12520 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 12521 | dvi) \ |
2a4cbe27 NN |
12522 | || exit 1 |
12523 | ||
a90ef4bf | 12524 | @endif mpfr |
2a4cbe27 | 12525 | |
a90ef4bf JM |
12526 | .PHONY: maybe-pdf-mpfr pdf-mpfr |
12527 | maybe-pdf-mpfr: | |
12528 | @if mpfr | |
12529 | maybe-pdf-mpfr: pdf-mpfr | |
56a8fe78 | 12530 | |
a90ef4bf JM |
12531 | pdf-mpfr: \ |
12532 | configure-mpfr | |
12533 | @[ -f ./mpfr/Makefile ] || exit 0; \ | |
56a8fe78 DD |
12534 | r=`${PWD_COMMAND}`; export r; \ |
12535 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
12536 | $(HOST_EXPORTS) \ | |
ce5e165e | 12537 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
56a8fe78 DD |
12538 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12539 | done; \ | |
22121df0 | 12540 | echo "Doing pdf in mpfr"; \ |
a90ef4bf | 12541 | (cd $(HOST_SUBDIR)/mpfr && \ |
56a8fe78 DD |
12542 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12543 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12544 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 12545 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
12546 | pdf) \ |
12547 | || exit 1 | |
12548 | ||
a90ef4bf | 12549 | @endif mpfr |
56a8fe78 | 12550 | |
a90ef4bf JM |
12551 | .PHONY: maybe-html-mpfr html-mpfr |
12552 | maybe-html-mpfr: | |
12553 | @if mpfr | |
12554 | maybe-html-mpfr: html-mpfr | |
6d389afc | 12555 | |
a90ef4bf JM |
12556 | html-mpfr: \ |
12557 | configure-mpfr | |
12558 | @[ -f ./mpfr/Makefile ] || exit 0; \ | |
6d389afc MS |
12559 | r=`${PWD_COMMAND}`; export r; \ |
12560 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 12561 | $(HOST_EXPORTS) \ |
ce5e165e | 12562 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
6d389afc MS |
12563 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12564 | done; \ | |
22121df0 | 12565 | echo "Doing html in mpfr"; \ |
a90ef4bf | 12566 | (cd $(HOST_SUBDIR)/mpfr && \ |
6d389afc MS |
12567 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12568 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12569 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 12570 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
12571 | html) \ |
12572 | || exit 1 | |
12573 | ||
a90ef4bf | 12574 | @endif mpfr |
6d389afc | 12575 | |
a90ef4bf JM |
12576 | .PHONY: maybe-TAGS-mpfr TAGS-mpfr |
12577 | maybe-TAGS-mpfr: | |
12578 | @if mpfr | |
12579 | maybe-TAGS-mpfr: TAGS-mpfr | |
4fa63067 | 12580 | |
a90ef4bf JM |
12581 | TAGS-mpfr: \ |
12582 | configure-mpfr | |
12583 | @[ -f ./mpfr/Makefile ] || exit 0; \ | |
b40e3958 L |
12584 | r=`${PWD_COMMAND}`; export r; \ |
12585 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12586 | $(HOST_EXPORTS) \ |
ce5e165e | 12587 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
12588 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12589 | done; \ | |
22121df0 | 12590 | echo "Doing TAGS in mpfr"; \ |
a90ef4bf | 12591 | (cd $(HOST_SUBDIR)/mpfr && \ |
2a4cbe27 NN |
12592 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12593 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12594 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 12595 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 12596 | TAGS) \ |
2a4cbe27 NN |
12597 | || exit 1 |
12598 | ||
a90ef4bf | 12599 | @endif mpfr |
2a4cbe27 | 12600 | |
a90ef4bf JM |
12601 | .PHONY: maybe-install-info-mpfr install-info-mpfr |
12602 | maybe-install-info-mpfr: | |
12603 | @if mpfr | |
12604 | maybe-install-info-mpfr: install-info-mpfr | |
2a4cbe27 | 12605 | |
a90ef4bf JM |
12606 | install-info-mpfr: \ |
12607 | configure-mpfr \ | |
12608 | info-mpfr | |
12609 | @[ -f ./mpfr/Makefile ] || exit 0; \ | |
b40e3958 L |
12610 | r=`${PWD_COMMAND}`; export r; \ |
12611 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12612 | $(HOST_EXPORTS) \ |
ce5e165e | 12613 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
12614 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12615 | done; \ | |
22121df0 | 12616 | echo "Doing install-info in mpfr"; \ |
a90ef4bf | 12617 | (cd $(HOST_SUBDIR)/mpfr && \ |
2a4cbe27 NN |
12618 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12619 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12620 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 12621 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 12622 | install-info) \ |
2a4cbe27 NN |
12623 | || exit 1 |
12624 | ||
a90ef4bf | 12625 | @endif mpfr |
2a4cbe27 | 12626 | |
a90ef4bf JM |
12627 | .PHONY: maybe-install-pdf-mpfr install-pdf-mpfr |
12628 | maybe-install-pdf-mpfr: | |
12629 | @if mpfr | |
12630 | maybe-install-pdf-mpfr: install-pdf-mpfr | |
a3ca38d2 | 12631 | |
a90ef4bf JM |
12632 | install-pdf-mpfr: \ |
12633 | configure-mpfr \ | |
12634 | pdf-mpfr | |
12635 | @[ -f ./mpfr/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
12636 | r=`${PWD_COMMAND}`; export r; \ |
12637 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
12638 | $(HOST_EXPORTS) \ | |
ce5e165e | 12639 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
a3ca38d2 DD |
12640 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12641 | done; \ | |
22121df0 | 12642 | echo "Doing install-pdf in mpfr"; \ |
a90ef4bf | 12643 | (cd $(HOST_SUBDIR)/mpfr && \ |
a3ca38d2 DD |
12644 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12645 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12646 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 12647 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
12648 | install-pdf) \ |
12649 | || exit 1 | |
12650 | ||
a90ef4bf | 12651 | @endif mpfr |
a3ca38d2 | 12652 | |
a90ef4bf JM |
12653 | .PHONY: maybe-install-html-mpfr install-html-mpfr |
12654 | maybe-install-html-mpfr: | |
12655 | @if mpfr | |
12656 | maybe-install-html-mpfr: install-html-mpfr | |
108a6f8e | 12657 | |
a90ef4bf JM |
12658 | install-html-mpfr: \ |
12659 | configure-mpfr \ | |
12660 | html-mpfr | |
12661 | @[ -f ./mpfr/Makefile ] || exit 0; \ | |
108a6f8e CD |
12662 | r=`${PWD_COMMAND}`; export r; \ |
12663 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
12664 | $(HOST_EXPORTS) \ | |
ce5e165e | 12665 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
108a6f8e CD |
12666 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12667 | done; \ | |
22121df0 | 12668 | echo "Doing install-html in mpfr"; \ |
a90ef4bf | 12669 | (cd $(HOST_SUBDIR)/mpfr && \ |
108a6f8e CD |
12670 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12671 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12672 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 12673 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
12674 | install-html) \ |
12675 | || exit 1 | |
12676 | ||
a90ef4bf | 12677 | @endif mpfr |
108a6f8e | 12678 | |
a90ef4bf JM |
12679 | .PHONY: maybe-installcheck-mpfr installcheck-mpfr |
12680 | maybe-installcheck-mpfr: | |
12681 | @if mpfr | |
12682 | maybe-installcheck-mpfr: installcheck-mpfr | |
2a4cbe27 | 12683 | |
a90ef4bf JM |
12684 | installcheck-mpfr: \ |
12685 | configure-mpfr | |
12686 | @[ -f ./mpfr/Makefile ] || exit 0; \ | |
b40e3958 L |
12687 | r=`${PWD_COMMAND}`; export r; \ |
12688 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12689 | $(HOST_EXPORTS) \ |
ce5e165e | 12690 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
12691 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12692 | done; \ | |
22121df0 | 12693 | echo "Doing installcheck in mpfr"; \ |
a90ef4bf | 12694 | (cd $(HOST_SUBDIR)/mpfr && \ |
2a4cbe27 NN |
12695 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12696 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12697 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 12698 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 12699 | installcheck) \ |
2a4cbe27 NN |
12700 | || exit 1 |
12701 | ||
a90ef4bf | 12702 | @endif mpfr |
2a4cbe27 | 12703 | |
a90ef4bf JM |
12704 | .PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr |
12705 | maybe-mostlyclean-mpfr: | |
12706 | @if mpfr | |
12707 | maybe-mostlyclean-mpfr: mostlyclean-mpfr | |
2a4cbe27 | 12708 | |
a90ef4bf JM |
12709 | mostlyclean-mpfr: |
12710 | @[ -f ./mpfr/Makefile ] || exit 0; \ | |
b40e3958 L |
12711 | r=`${PWD_COMMAND}`; export r; \ |
12712 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12713 | $(HOST_EXPORTS) \ |
ce5e165e | 12714 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
12715 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12716 | done; \ | |
22121df0 | 12717 | echo "Doing mostlyclean in mpfr"; \ |
a90ef4bf | 12718 | (cd $(HOST_SUBDIR)/mpfr && \ |
2a4cbe27 NN |
12719 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12720 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12721 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 12722 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 12723 | mostlyclean) \ |
2a4cbe27 NN |
12724 | || exit 1 |
12725 | ||
a90ef4bf | 12726 | @endif mpfr |
2a4cbe27 | 12727 | |
a90ef4bf JM |
12728 | .PHONY: maybe-clean-mpfr clean-mpfr |
12729 | maybe-clean-mpfr: | |
12730 | @if mpfr | |
12731 | maybe-clean-mpfr: clean-mpfr | |
2a4cbe27 | 12732 | |
a90ef4bf JM |
12733 | clean-mpfr: |
12734 | @[ -f ./mpfr/Makefile ] || exit 0; \ | |
b40e3958 L |
12735 | r=`${PWD_COMMAND}`; export r; \ |
12736 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12737 | $(HOST_EXPORTS) \ |
ce5e165e | 12738 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
12739 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12740 | done; \ | |
22121df0 | 12741 | echo "Doing clean in mpfr"; \ |
a90ef4bf | 12742 | (cd $(HOST_SUBDIR)/mpfr && \ |
2a4cbe27 NN |
12743 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12744 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12745 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 12746 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 12747 | clean) \ |
2a4cbe27 NN |
12748 | || exit 1 |
12749 | ||
a90ef4bf | 12750 | @endif mpfr |
2a4cbe27 | 12751 | |
a90ef4bf JM |
12752 | .PHONY: maybe-distclean-mpfr distclean-mpfr |
12753 | maybe-distclean-mpfr: | |
12754 | @if mpfr | |
12755 | maybe-distclean-mpfr: distclean-mpfr | |
2a4cbe27 | 12756 | |
a90ef4bf JM |
12757 | distclean-mpfr: |
12758 | @[ -f ./mpfr/Makefile ] || exit 0; \ | |
b40e3958 L |
12759 | r=`${PWD_COMMAND}`; export r; \ |
12760 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12761 | $(HOST_EXPORTS) \ |
ce5e165e | 12762 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
12763 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12764 | done; \ | |
22121df0 | 12765 | echo "Doing distclean in mpfr"; \ |
a90ef4bf | 12766 | (cd $(HOST_SUBDIR)/mpfr && \ |
2a4cbe27 NN |
12767 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12768 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12769 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 12770 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 12771 | distclean) \ |
2a4cbe27 NN |
12772 | || exit 1 |
12773 | ||
a90ef4bf | 12774 | @endif mpfr |
2a4cbe27 | 12775 | |
a90ef4bf JM |
12776 | .PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr |
12777 | maybe-maintainer-clean-mpfr: | |
12778 | @if mpfr | |
12779 | maybe-maintainer-clean-mpfr: maintainer-clean-mpfr | |
2a4cbe27 | 12780 | |
a90ef4bf JM |
12781 | maintainer-clean-mpfr: |
12782 | @[ -f ./mpfr/Makefile ] || exit 0; \ | |
b40e3958 L |
12783 | r=`${PWD_COMMAND}`; export r; \ |
12784 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12785 | $(HOST_EXPORTS) \ |
ce5e165e | 12786 | for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \ |
2a4cbe27 NN |
12787 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12788 | done; \ | |
22121df0 | 12789 | echo "Doing maintainer-clean in mpfr"; \ |
a90ef4bf | 12790 | (cd $(HOST_SUBDIR)/mpfr && \ |
2a4cbe27 NN |
12791 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12792 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12793 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 12794 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 12795 | maintainer-clean) \ |
2a4cbe27 NN |
12796 | || exit 1 |
12797 | ||
a90ef4bf | 12798 | @endif mpfr |
2a4cbe27 | 12799 | |
2a4cbe27 | 12800 | |
a7254363 | 12801 | |
a90ef4bf JM |
12802 | .PHONY: configure-mpc maybe-configure-mpc |
12803 | maybe-configure-mpc: | |
4f0ef2d8 | 12804 | @if gcc-bootstrap |
a90ef4bf | 12805 | configure-mpc: stage_current |
4f0ef2d8 | 12806 | @endif gcc-bootstrap |
a90ef4bf JM |
12807 | @if mpc |
12808 | maybe-configure-mpc: configure-mpc | |
12809 | configure-mpc: | |
c52c6897 | 12810 | @r=`${PWD_COMMAND}`; export r; \ |
d3ed111c | 12811 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 12812 | test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \ |
22121df0 | 12813 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \ |
1f53ca9a | 12814 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
12815 | echo Configuring in $(HOST_SUBDIR)/mpc; \ |
12816 | cd "$(HOST_SUBDIR)/mpc" || exit 1; \ | |
d3ed111c | 12817 | case $(srcdir) in \ |
b00612cc | 12818 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 12819 | *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \ |
b00612cc | 12820 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
d3ed111c | 12821 | esac; \ |
1b6c0831 L |
12822 | module_srcdir=mpc; \ |
12823 | $(SHELL) \ | |
12824 | $$s/$$module_srcdir/configure \ | |
12825 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 12826 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 12827 | --target=${target_alias} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \ |
d3ed111c | 12828 | || exit 1 |
a90ef4bf | 12829 | @endif mpc |
d545f33b PB |
12830 | |
12831 | ||
d3ed111c | 12832 | |
a90ef4bf JM |
12833 | .PHONY: configure-stage1-mpc maybe-configure-stage1-mpc |
12834 | maybe-configure-stage1-mpc: | |
12835 | @if mpc-bootstrap | |
12836 | maybe-configure-stage1-mpc: configure-stage1-mpc | |
12837 | configure-stage1-mpc: | |
12838 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
12839 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc | |
d3ed111c GK |
12840 | @r=`${PWD_COMMAND}`; export r; \ |
12841 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
12842 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
12843 | test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \ | |
d3ed111c | 12844 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
12845 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ |
12846 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
12847 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
12848 | echo Configuring stage 1 in $(HOST_SUBDIR)/mpc; \ |
12849 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \ | |
a90ef4bf JM |
12850 | cd $(HOST_SUBDIR)/mpc || exit 1; \ |
12851 | case $(srcdir) in \ | |
12852 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
12853 | *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \ | |
12854 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
12855 | esac; \ | |
1b6c0831 L |
12856 | module_srcdir=mpc; \ |
12857 | $(SHELL) $$s/$$module_srcdir/configure \ | |
12858 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 12859 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
12860 | --target=${target_alias} \ |
12861 | \ | |
a90ef4bf JM |
12862 | $(STAGE1_CONFIGURE_FLAGS) \ |
12863 | --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ | |
12864 | @endif mpc-bootstrap | |
d3ed111c | 12865 | |
a90ef4bf JM |
12866 | .PHONY: configure-stage2-mpc maybe-configure-stage2-mpc |
12867 | maybe-configure-stage2-mpc: | |
12868 | @if mpc-bootstrap | |
12869 | maybe-configure-stage2-mpc: configure-stage2-mpc | |
12870 | configure-stage2-mpc: | |
12871 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
12872 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc | |
d3ed111c GK |
12873 | @r=`${PWD_COMMAND}`; export r; \ |
12874 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
12875 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
12876 | test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \ | |
d3ed111c | 12877 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
12878 | $(POSTSTAGE1_HOST_EXPORTS) \ |
12879 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
12880 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
12881 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
12882 | echo Configuring stage 2 in $(HOST_SUBDIR)/mpc; \ |
12883 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \ | |
a90ef4bf JM |
12884 | cd $(HOST_SUBDIR)/mpc || exit 1; \ |
12885 | case $(srcdir) in \ | |
12886 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
12887 | *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \ | |
12888 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
12889 | esac; \ | |
1b6c0831 L |
12890 | module_srcdir=mpc; \ |
12891 | $(SHELL) $$s/$$module_srcdir/configure \ | |
12892 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 12893 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 12894 | --target=${target_alias} \ |
22121df0 | 12895 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
12896 | $(STAGE2_CONFIGURE_FLAGS) \ |
12897 | --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ | |
12898 | @endif mpc-bootstrap | |
9b980aa1 | 12899 | |
a90ef4bf JM |
12900 | .PHONY: configure-stage3-mpc maybe-configure-stage3-mpc |
12901 | maybe-configure-stage3-mpc: | |
12902 | @if mpc-bootstrap | |
12903 | maybe-configure-stage3-mpc: configure-stage3-mpc | |
12904 | configure-stage3-mpc: | |
12905 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
12906 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc | |
9b980aa1 RW |
12907 | @r=`${PWD_COMMAND}`; export r; \ |
12908 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
12909 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
12910 | test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \ | |
9b980aa1 | 12911 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
12912 | $(POSTSTAGE1_HOST_EXPORTS) \ |
12913 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
12914 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
12915 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
12916 | echo Configuring stage 3 in $(HOST_SUBDIR)/mpc; \ |
12917 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \ | |
a90ef4bf JM |
12918 | cd $(HOST_SUBDIR)/mpc || exit 1; \ |
12919 | case $(srcdir) in \ | |
12920 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
12921 | *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \ | |
12922 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
12923 | esac; \ | |
1b6c0831 L |
12924 | module_srcdir=mpc; \ |
12925 | $(SHELL) $$s/$$module_srcdir/configure \ | |
12926 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 12927 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 12928 | --target=${target_alias} \ |
22121df0 | 12929 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
12930 | $(STAGE3_CONFIGURE_FLAGS) \ |
12931 | --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ | |
12932 | @endif mpc-bootstrap | |
d3ed111c | 12933 | |
a90ef4bf JM |
12934 | .PHONY: configure-stage4-mpc maybe-configure-stage4-mpc |
12935 | maybe-configure-stage4-mpc: | |
12936 | @if mpc-bootstrap | |
12937 | maybe-configure-stage4-mpc: configure-stage4-mpc | |
12938 | configure-stage4-mpc: | |
12939 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
12940 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc | |
12941 | @r=`${PWD_COMMAND}`; export r; \ | |
12942 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
12943 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
12944 | test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \ | |
12945 | $(HOST_EXPORTS) \ | |
12946 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
12947 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
12948 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
12949 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
12950 | echo Configuring stage 4 in $(HOST_SUBDIR)/mpc; \ |
12951 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \ | |
a90ef4bf JM |
12952 | cd $(HOST_SUBDIR)/mpc || exit 1; \ |
12953 | case $(srcdir) in \ | |
12954 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
12955 | *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \ | |
12956 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
12957 | esac; \ | |
1b6c0831 L |
12958 | module_srcdir=mpc; \ |
12959 | $(SHELL) $$s/$$module_srcdir/configure \ | |
12960 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 12961 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 12962 | --target=${target_alias} \ |
22121df0 | 12963 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
12964 | $(STAGE4_CONFIGURE_FLAGS) \ |
12965 | --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ | |
12966 | @endif mpc-bootstrap | |
12967 | ||
12968 | .PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc | |
12969 | maybe-configure-stageprofile-mpc: | |
12970 | @if mpc-bootstrap | |
12971 | maybe-configure-stageprofile-mpc: configure-stageprofile-mpc | |
12972 | configure-stageprofile-mpc: | |
12973 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
12974 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc | |
12975 | @r=`${PWD_COMMAND}`; export r; \ | |
12976 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
12977 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
12978 | test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \ | |
12979 | $(HOST_EXPORTS) \ | |
12980 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
12981 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
12982 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
12983 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
12984 | echo Configuring stage profile in $(HOST_SUBDIR)/mpc; \ |
12985 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \ | |
a90ef4bf JM |
12986 | cd $(HOST_SUBDIR)/mpc || exit 1; \ |
12987 | case $(srcdir) in \ | |
12988 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
12989 | *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \ | |
12990 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
12991 | esac; \ | |
1b6c0831 L |
12992 | module_srcdir=mpc; \ |
12993 | $(SHELL) $$s/$$module_srcdir/configure \ | |
12994 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 12995 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 12996 | --target=${target_alias} \ |
22121df0 | 12997 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
12998 | $(STAGEprofile_CONFIGURE_FLAGS) \ |
12999 | --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ | |
13000 | @endif mpc-bootstrap | |
13001 | ||
13002 | .PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc | |
13003 | maybe-configure-stagefeedback-mpc: | |
13004 | @if mpc-bootstrap | |
13005 | maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc | |
13006 | configure-stagefeedback-mpc: | |
13007 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
13008 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc | |
13009 | @r=`${PWD_COMMAND}`; export r; \ | |
13010 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13011 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
13012 | test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \ | |
13013 | $(HOST_EXPORTS) \ | |
13014 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
13015 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
13016 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
13017 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
13018 | echo Configuring stage feedback in $(HOST_SUBDIR)/mpc; \ |
13019 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \ | |
a90ef4bf JM |
13020 | cd $(HOST_SUBDIR)/mpc || exit 1; \ |
13021 | case $(srcdir) in \ | |
13022 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
13023 | *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \ | |
13024 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
13025 | esac; \ | |
1b6c0831 L |
13026 | module_srcdir=mpc; \ |
13027 | $(SHELL) $$s/$$module_srcdir/configure \ | |
13028 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 13029 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 13030 | --target=${target_alias} \ |
22121df0 | 13031 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
13032 | $(STAGEfeedback_CONFIGURE_FLAGS) \ |
13033 | --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ | |
13034 | @endif mpc-bootstrap | |
13035 | ||
13036 | ||
13037 | ||
13038 | ||
13039 | ||
13040 | .PHONY: all-mpc maybe-all-mpc | |
13041 | maybe-all-mpc: | |
13042 | @if gcc-bootstrap | |
13043 | all-mpc: stage_current | |
13044 | @endif gcc-bootstrap | |
13045 | @if mpc | |
13046 | TARGET-mpc=all | |
13047 | maybe-all-mpc: all-mpc | |
13048 | all-mpc: configure-mpc | |
13049 | @r=`${PWD_COMMAND}`; export r; \ | |
13050 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13051 | $(HOST_EXPORTS) \ | |
13052 | (cd $(HOST_SUBDIR)/mpc && \ | |
b3676d82 | 13053 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
13054 | $(TARGET-mpc)) |
13055 | @endif mpc | |
13056 | ||
13057 | ||
13058 | ||
13059 | .PHONY: all-stage1-mpc maybe-all-stage1-mpc | |
13060 | .PHONY: clean-stage1-mpc maybe-clean-stage1-mpc | |
13061 | maybe-all-stage1-mpc: | |
13062 | maybe-clean-stage1-mpc: | |
13063 | @if mpc-bootstrap | |
13064 | maybe-all-stage1-mpc: all-stage1-mpc | |
13065 | all-stage1: all-stage1-mpc | |
13066 | TARGET-stage1-mpc = $(TARGET-mpc) | |
13067 | all-stage1-mpc: configure-stage1-mpc | |
13068 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
13069 | @r=`${PWD_COMMAND}`; export r; \ | |
13070 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13071 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
13072 | $(HOST_EXPORTS) \ | |
13073 | cd $(HOST_SUBDIR)/mpc && \ | |
05a13254 | 13074 | \ |
a90ef4bf JM |
13075 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
13076 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
13077 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
13078 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
13079 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
13080 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
13081 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
13082 | $(EXTRA_HOST_FLAGS) \ |
13083 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 13084 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf JM |
13085 | $(TARGET-stage1-mpc) |
13086 | ||
13087 | maybe-clean-stage1-mpc: clean-stage1-mpc | |
13088 | clean-stage1: clean-stage1-mpc | |
13089 | clean-stage1-mpc: | |
13090 | @if [ $(current_stage) = stage1 ]; then \ | |
13091 | [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \ | |
13092 | else \ | |
13093 | [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \ | |
13094 | $(MAKE) stage1-start; \ | |
13095 | fi; \ | |
13096 | cd $(HOST_SUBDIR)/mpc && \ | |
13097 | $(MAKE) $(EXTRA_HOST_FLAGS) \ | |
b3676d82 | 13098 | $(STAGE1_FLAGS_TO_PASS) clean |
a90ef4bf JM |
13099 | @endif mpc-bootstrap |
13100 | ||
13101 | ||
13102 | .PHONY: all-stage2-mpc maybe-all-stage2-mpc | |
13103 | .PHONY: clean-stage2-mpc maybe-clean-stage2-mpc | |
13104 | maybe-all-stage2-mpc: | |
13105 | maybe-clean-stage2-mpc: | |
13106 | @if mpc-bootstrap | |
13107 | maybe-all-stage2-mpc: all-stage2-mpc | |
13108 | all-stage2: all-stage2-mpc | |
13109 | TARGET-stage2-mpc = $(TARGET-mpc) | |
13110 | all-stage2-mpc: configure-stage2-mpc | |
13111 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
13112 | @r=`${PWD_COMMAND}`; export r; \ | |
13113 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13114 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
13115 | $(HOST_EXPORTS) \ | |
13116 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
13117 | cd $(HOST_SUBDIR)/mpc && \ | |
05a13254 | 13118 | \ |
a90ef4bf JM |
13119 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
13120 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
13121 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
13122 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
13123 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
13124 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
13125 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
13126 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 13127 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf JM |
13128 | $(TARGET-stage2-mpc) |
13129 | ||
13130 | maybe-clean-stage2-mpc: clean-stage2-mpc | |
13131 | clean-stage2: clean-stage2-mpc | |
13132 | clean-stage2-mpc: | |
13133 | @if [ $(current_stage) = stage2 ]; then \ | |
13134 | [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \ | |
13135 | else \ | |
13136 | [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \ | |
13137 | $(MAKE) stage2-start; \ | |
13138 | fi; \ | |
13139 | cd $(HOST_SUBDIR)/mpc && \ | |
b3676d82 | 13140 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf JM |
13141 | @endif mpc-bootstrap |
13142 | ||
13143 | ||
13144 | .PHONY: all-stage3-mpc maybe-all-stage3-mpc | |
13145 | .PHONY: clean-stage3-mpc maybe-clean-stage3-mpc | |
13146 | maybe-all-stage3-mpc: | |
13147 | maybe-clean-stage3-mpc: | |
13148 | @if mpc-bootstrap | |
13149 | maybe-all-stage3-mpc: all-stage3-mpc | |
13150 | all-stage3: all-stage3-mpc | |
13151 | TARGET-stage3-mpc = $(TARGET-mpc) | |
13152 | all-stage3-mpc: configure-stage3-mpc | |
13153 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
13154 | @r=`${PWD_COMMAND}`; export r; \ | |
13155 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13156 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
13157 | $(HOST_EXPORTS) \ | |
13158 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
13159 | cd $(HOST_SUBDIR)/mpc && \ | |
05a13254 | 13160 | \ |
a90ef4bf JM |
13161 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
13162 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
13163 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
13164 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
13165 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
13166 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
13167 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
13168 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 13169 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf JM |
13170 | $(TARGET-stage3-mpc) |
13171 | ||
13172 | maybe-clean-stage3-mpc: clean-stage3-mpc | |
13173 | clean-stage3: clean-stage3-mpc | |
13174 | clean-stage3-mpc: | |
13175 | @if [ $(current_stage) = stage3 ]; then \ | |
13176 | [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \ | |
13177 | else \ | |
13178 | [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \ | |
13179 | $(MAKE) stage3-start; \ | |
13180 | fi; \ | |
13181 | cd $(HOST_SUBDIR)/mpc && \ | |
b3676d82 | 13182 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf JM |
13183 | @endif mpc-bootstrap |
13184 | ||
13185 | ||
13186 | .PHONY: all-stage4-mpc maybe-all-stage4-mpc | |
13187 | .PHONY: clean-stage4-mpc maybe-clean-stage4-mpc | |
13188 | maybe-all-stage4-mpc: | |
13189 | maybe-clean-stage4-mpc: | |
13190 | @if mpc-bootstrap | |
13191 | maybe-all-stage4-mpc: all-stage4-mpc | |
13192 | all-stage4: all-stage4-mpc | |
13193 | TARGET-stage4-mpc = $(TARGET-mpc) | |
13194 | all-stage4-mpc: configure-stage4-mpc | |
13195 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
13196 | @r=`${PWD_COMMAND}`; export r; \ | |
13197 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13198 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
13199 | $(HOST_EXPORTS) \ | |
13200 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
13201 | cd $(HOST_SUBDIR)/mpc && \ | |
05a13254 | 13202 | \ |
a90ef4bf JM |
13203 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
13204 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
13205 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
13206 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
13207 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
13208 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
13209 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
13210 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 13211 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf JM |
13212 | $(TARGET-stage4-mpc) |
13213 | ||
13214 | maybe-clean-stage4-mpc: clean-stage4-mpc | |
13215 | clean-stage4: clean-stage4-mpc | |
13216 | clean-stage4-mpc: | |
13217 | @if [ $(current_stage) = stage4 ]; then \ | |
13218 | [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \ | |
13219 | else \ | |
13220 | [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \ | |
13221 | $(MAKE) stage4-start; \ | |
13222 | fi; \ | |
13223 | cd $(HOST_SUBDIR)/mpc && \ | |
b3676d82 | 13224 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf JM |
13225 | @endif mpc-bootstrap |
13226 | ||
13227 | ||
13228 | .PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc | |
13229 | .PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc | |
13230 | maybe-all-stageprofile-mpc: | |
13231 | maybe-clean-stageprofile-mpc: | |
13232 | @if mpc-bootstrap | |
13233 | maybe-all-stageprofile-mpc: all-stageprofile-mpc | |
13234 | all-stageprofile: all-stageprofile-mpc | |
13235 | TARGET-stageprofile-mpc = $(TARGET-mpc) | |
13236 | all-stageprofile-mpc: configure-stageprofile-mpc | |
13237 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
13238 | @r=`${PWD_COMMAND}`; export r; \ | |
13239 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13240 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
13241 | $(HOST_EXPORTS) \ | |
13242 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
13243 | cd $(HOST_SUBDIR)/mpc && \ | |
05a13254 | 13244 | \ |
a90ef4bf JM |
13245 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
13246 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
13247 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
13248 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
13249 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
13250 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
13251 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
13252 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 13253 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf JM |
13254 | $(TARGET-stageprofile-mpc) |
13255 | ||
13256 | maybe-clean-stageprofile-mpc: clean-stageprofile-mpc | |
13257 | clean-stageprofile: clean-stageprofile-mpc | |
13258 | clean-stageprofile-mpc: | |
13259 | @if [ $(current_stage) = stageprofile ]; then \ | |
13260 | [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \ | |
13261 | else \ | |
13262 | [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \ | |
13263 | $(MAKE) stageprofile-start; \ | |
13264 | fi; \ | |
13265 | cd $(HOST_SUBDIR)/mpc && \ | |
b3676d82 | 13266 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf JM |
13267 | @endif mpc-bootstrap |
13268 | ||
13269 | ||
13270 | .PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc | |
13271 | .PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc | |
13272 | maybe-all-stagefeedback-mpc: | |
13273 | maybe-clean-stagefeedback-mpc: | |
13274 | @if mpc-bootstrap | |
13275 | maybe-all-stagefeedback-mpc: all-stagefeedback-mpc | |
13276 | all-stagefeedback: all-stagefeedback-mpc | |
13277 | TARGET-stagefeedback-mpc = $(TARGET-mpc) | |
13278 | all-stagefeedback-mpc: configure-stagefeedback-mpc | |
13279 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
13280 | @r=`${PWD_COMMAND}`; export r; \ | |
13281 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13282 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
13283 | $(HOST_EXPORTS) \ | |
13284 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
13285 | cd $(HOST_SUBDIR)/mpc && \ | |
05a13254 | 13286 | \ |
a90ef4bf JM |
13287 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
13288 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
13289 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
13290 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
13291 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
13292 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
13293 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
13294 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 13295 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf JM |
13296 | $(TARGET-stagefeedback-mpc) |
13297 | ||
13298 | maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc | |
13299 | clean-stagefeedback: clean-stagefeedback-mpc | |
13300 | clean-stagefeedback-mpc: | |
13301 | @if [ $(current_stage) = stagefeedback ]; then \ | |
13302 | [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \ | |
13303 | else \ | |
13304 | [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \ | |
13305 | $(MAKE) stagefeedback-start; \ | |
13306 | fi; \ | |
13307 | cd $(HOST_SUBDIR)/mpc && \ | |
b3676d82 | 13308 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf JM |
13309 | @endif mpc-bootstrap |
13310 | ||
13311 | ||
13312 | ||
13313 | ||
13314 | ||
13315 | .PHONY: check-mpc maybe-check-mpc | |
13316 | maybe-check-mpc: | |
13317 | @if mpc | |
13318 | maybe-check-mpc: check-mpc | |
13319 | ||
13320 | check-mpc: | |
13321 | @: $(MAKE); $(unstage) | |
13322 | @r=`${PWD_COMMAND}`; export r; \ | |
13323 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 13324 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 13325 | (cd $(HOST_SUBDIR)/mpc && \ |
f91ca6bc | 13326 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
a90ef4bf JM |
13327 | |
13328 | @endif mpc | |
13329 | ||
13330 | .PHONY: install-mpc maybe-install-mpc | |
13331 | maybe-install-mpc: | |
13332 | @if mpc | |
13333 | maybe-install-mpc: install-mpc | |
13334 | ||
13335 | install-mpc: | |
13336 | ||
13337 | @endif mpc | |
13338 | ||
13339 | .PHONY: install-strip-mpc maybe-install-strip-mpc | |
13340 | maybe-install-strip-mpc: | |
13341 | @if mpc | |
13342 | maybe-install-strip-mpc: install-strip-mpc | |
13343 | ||
13344 | install-strip-mpc: | |
13345 | ||
13346 | @endif mpc | |
13347 | ||
13348 | # Other targets (info, dvi, pdf, etc.) | |
13349 | ||
13350 | .PHONY: maybe-info-mpc info-mpc | |
13351 | maybe-info-mpc: | |
13352 | @if mpc | |
13353 | maybe-info-mpc: info-mpc | |
13354 | ||
13355 | info-mpc: \ | |
13356 | configure-mpc | |
13357 | @[ -f ./mpc/Makefile ] || exit 0; \ | |
13358 | r=`${PWD_COMMAND}`; export r; \ | |
a4fd3374 DD |
13359 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
13360 | $(HOST_EXPORTS) \ | |
13361 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13362 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13363 | done; \ | |
22121df0 | 13364 | echo "Doing info in mpc"; \ |
a90ef4bf | 13365 | (cd $(HOST_SUBDIR)/mpc && \ |
a4fd3374 DD |
13366 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13367 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13368 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 13369 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a4fd3374 DD |
13370 | info) \ |
13371 | || exit 1 | |
d3ed111c | 13372 | |
a90ef4bf | 13373 | @endif mpc |
d3ed111c | 13374 | |
a90ef4bf JM |
13375 | .PHONY: maybe-dvi-mpc dvi-mpc |
13376 | maybe-dvi-mpc: | |
13377 | @if mpc | |
13378 | maybe-dvi-mpc: dvi-mpc | |
d3ed111c | 13379 | |
a90ef4bf JM |
13380 | dvi-mpc: \ |
13381 | configure-mpc | |
13382 | @[ -f ./mpc/Makefile ] || exit 0; \ | |
a4fd3374 DD |
13383 | r=`${PWD_COMMAND}`; export r; \ |
13384 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13385 | $(HOST_EXPORTS) \ | |
13386 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13387 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13388 | done; \ | |
22121df0 | 13389 | echo "Doing dvi in mpc"; \ |
a90ef4bf | 13390 | (cd $(HOST_SUBDIR)/mpc && \ |
a4fd3374 DD |
13391 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13392 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13393 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 13394 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a4fd3374 DD |
13395 | dvi) \ |
13396 | || exit 1 | |
d3ed111c | 13397 | |
a90ef4bf | 13398 | @endif mpc |
d3ed111c | 13399 | |
a90ef4bf JM |
13400 | .PHONY: maybe-pdf-mpc pdf-mpc |
13401 | maybe-pdf-mpc: | |
13402 | @if mpc | |
13403 | maybe-pdf-mpc: pdf-mpc | |
56a8fe78 | 13404 | |
a90ef4bf JM |
13405 | pdf-mpc: \ |
13406 | configure-mpc | |
13407 | @[ -f ./mpc/Makefile ] || exit 0; \ | |
a4fd3374 DD |
13408 | r=`${PWD_COMMAND}`; export r; \ |
13409 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13410 | $(HOST_EXPORTS) \ | |
13411 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13412 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13413 | done; \ | |
22121df0 | 13414 | echo "Doing pdf in mpc"; \ |
a90ef4bf | 13415 | (cd $(HOST_SUBDIR)/mpc && \ |
a4fd3374 DD |
13416 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13417 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13418 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 13419 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a4fd3374 DD |
13420 | pdf) \ |
13421 | || exit 1 | |
56a8fe78 | 13422 | |
a90ef4bf | 13423 | @endif mpc |
56a8fe78 | 13424 | |
a90ef4bf JM |
13425 | .PHONY: maybe-html-mpc html-mpc |
13426 | maybe-html-mpc: | |
13427 | @if mpc | |
13428 | maybe-html-mpc: html-mpc | |
6d389afc | 13429 | |
a90ef4bf JM |
13430 | html-mpc: \ |
13431 | configure-mpc | |
13432 | @[ -f ./mpc/Makefile ] || exit 0; \ | |
6d389afc MS |
13433 | r=`${PWD_COMMAND}`; export r; \ |
13434 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
13435 | $(HOST_EXPORTS) \ |
13436 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13437 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13438 | done; \ | |
22121df0 | 13439 | echo "Doing html in mpc"; \ |
a90ef4bf | 13440 | (cd $(HOST_SUBDIR)/mpc && \ |
6d389afc MS |
13441 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13442 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13443 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 13444 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
13445 | html) \ |
13446 | || exit 1 | |
13447 | ||
a90ef4bf | 13448 | @endif mpc |
d3ed111c | 13449 | |
a90ef4bf JM |
13450 | .PHONY: maybe-TAGS-mpc TAGS-mpc |
13451 | maybe-TAGS-mpc: | |
13452 | @if mpc | |
13453 | maybe-TAGS-mpc: TAGS-mpc | |
d3ed111c | 13454 | |
a90ef4bf JM |
13455 | TAGS-mpc: \ |
13456 | configure-mpc | |
13457 | @[ -f ./mpc/Makefile ] || exit 0; \ | |
13458 | r=`${PWD_COMMAND}`; export r; \ | |
13459 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a4fd3374 DD |
13460 | $(HOST_EXPORTS) \ |
13461 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13462 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13463 | done; \ | |
22121df0 | 13464 | echo "Doing TAGS in mpc"; \ |
a90ef4bf JM |
13465 | (cd $(HOST_SUBDIR)/mpc && \ |
13466 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
13467 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13468 | "RANLIB=$${RANLIB}" \ | |
13469 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
13470 | TAGS) \ | |
13471 | || exit 1 | |
13472 | ||
13473 | @endif mpc | |
13474 | ||
13475 | .PHONY: maybe-install-info-mpc install-info-mpc | |
13476 | maybe-install-info-mpc: | |
13477 | @if mpc | |
13478 | maybe-install-info-mpc: install-info-mpc | |
13479 | ||
13480 | install-info-mpc: \ | |
13481 | configure-mpc \ | |
13482 | info-mpc | |
13483 | @[ -f ./mpc/Makefile ] || exit 0; \ | |
13484 | r=`${PWD_COMMAND}`; export r; \ | |
13485 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13486 | $(HOST_EXPORTS) \ | |
13487 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13488 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13489 | done; \ | |
22121df0 | 13490 | echo "Doing install-info in mpc"; \ |
a90ef4bf | 13491 | (cd $(HOST_SUBDIR)/mpc && \ |
a4fd3374 DD |
13492 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13493 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13494 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 13495 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a4fd3374 DD |
13496 | install-info) \ |
13497 | || exit 1 | |
d3ed111c | 13498 | |
a90ef4bf | 13499 | @endif mpc |
d3ed111c | 13500 | |
a90ef4bf JM |
13501 | .PHONY: maybe-install-pdf-mpc install-pdf-mpc |
13502 | maybe-install-pdf-mpc: | |
13503 | @if mpc | |
13504 | maybe-install-pdf-mpc: install-pdf-mpc | |
a3ca38d2 | 13505 | |
a90ef4bf JM |
13506 | install-pdf-mpc: \ |
13507 | configure-mpc \ | |
13508 | pdf-mpc | |
13509 | @[ -f ./mpc/Makefile ] || exit 0; \ | |
a4fd3374 DD |
13510 | r=`${PWD_COMMAND}`; export r; \ |
13511 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13512 | $(HOST_EXPORTS) \ | |
13513 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13514 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13515 | done; \ | |
22121df0 | 13516 | echo "Doing install-pdf in mpc"; \ |
a90ef4bf | 13517 | (cd $(HOST_SUBDIR)/mpc && \ |
a4fd3374 DD |
13518 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13519 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13520 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 13521 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a4fd3374 DD |
13522 | install-pdf) \ |
13523 | || exit 1 | |
a3ca38d2 | 13524 | |
a90ef4bf | 13525 | @endif mpc |
a3ca38d2 | 13526 | |
a90ef4bf JM |
13527 | .PHONY: maybe-install-html-mpc install-html-mpc |
13528 | maybe-install-html-mpc: | |
13529 | @if mpc | |
13530 | maybe-install-html-mpc: install-html-mpc | |
108a6f8e | 13531 | |
a90ef4bf JM |
13532 | install-html-mpc: \ |
13533 | configure-mpc \ | |
13534 | html-mpc | |
13535 | @[ -f ./mpc/Makefile ] || exit 0; \ | |
108a6f8e CD |
13536 | r=`${PWD_COMMAND}`; export r; \ |
13537 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13538 | $(HOST_EXPORTS) \ | |
13539 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13540 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13541 | done; \ | |
22121df0 | 13542 | echo "Doing install-html in mpc"; \ |
a90ef4bf | 13543 | (cd $(HOST_SUBDIR)/mpc && \ |
108a6f8e CD |
13544 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13545 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13546 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 13547 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
13548 | install-html) \ |
13549 | || exit 1 | |
13550 | ||
a90ef4bf | 13551 | @endif mpc |
108a6f8e | 13552 | |
a90ef4bf JM |
13553 | .PHONY: maybe-installcheck-mpc installcheck-mpc |
13554 | maybe-installcheck-mpc: | |
13555 | @if mpc | |
13556 | maybe-installcheck-mpc: installcheck-mpc | |
d3ed111c | 13557 | |
a90ef4bf JM |
13558 | installcheck-mpc: \ |
13559 | configure-mpc | |
13560 | @[ -f ./mpc/Makefile ] || exit 0; \ | |
a4fd3374 DD |
13561 | r=`${PWD_COMMAND}`; export r; \ |
13562 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13563 | $(HOST_EXPORTS) \ | |
13564 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13565 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13566 | done; \ | |
22121df0 | 13567 | echo "Doing installcheck in mpc"; \ |
a90ef4bf | 13568 | (cd $(HOST_SUBDIR)/mpc && \ |
a4fd3374 DD |
13569 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13570 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13571 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 13572 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a4fd3374 DD |
13573 | installcheck) \ |
13574 | || exit 1 | |
d3ed111c | 13575 | |
a90ef4bf | 13576 | @endif mpc |
d3ed111c | 13577 | |
a90ef4bf JM |
13578 | .PHONY: maybe-mostlyclean-mpc mostlyclean-mpc |
13579 | maybe-mostlyclean-mpc: | |
13580 | @if mpc | |
13581 | maybe-mostlyclean-mpc: mostlyclean-mpc | |
d3ed111c | 13582 | |
a90ef4bf JM |
13583 | mostlyclean-mpc: |
13584 | @[ -f ./mpc/Makefile ] || exit 0; \ | |
d3ed111c GK |
13585 | r=`${PWD_COMMAND}`; export r; \ |
13586 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c GK |
13587 | $(HOST_EXPORTS) \ |
13588 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13589 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13590 | done; \ | |
22121df0 | 13591 | echo "Doing mostlyclean in mpc"; \ |
a90ef4bf | 13592 | (cd $(HOST_SUBDIR)/mpc && \ |
d3ed111c GK |
13593 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13594 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13595 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 13596 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
d3ed111c GK |
13597 | mostlyclean) \ |
13598 | || exit 1 | |
13599 | ||
a90ef4bf | 13600 | @endif mpc |
d3ed111c | 13601 | |
a90ef4bf JM |
13602 | .PHONY: maybe-clean-mpc clean-mpc |
13603 | maybe-clean-mpc: | |
13604 | @if mpc | |
13605 | maybe-clean-mpc: clean-mpc | |
d3ed111c | 13606 | |
a90ef4bf JM |
13607 | clean-mpc: |
13608 | @[ -f ./mpc/Makefile ] || exit 0; \ | |
d3ed111c GK |
13609 | r=`${PWD_COMMAND}`; export r; \ |
13610 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c GK |
13611 | $(HOST_EXPORTS) \ |
13612 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13613 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13614 | done; \ | |
22121df0 | 13615 | echo "Doing clean in mpc"; \ |
a90ef4bf | 13616 | (cd $(HOST_SUBDIR)/mpc && \ |
d3ed111c GK |
13617 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13618 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13619 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 13620 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
d3ed111c GK |
13621 | clean) \ |
13622 | || exit 1 | |
13623 | ||
a90ef4bf | 13624 | @endif mpc |
d3ed111c | 13625 | |
a90ef4bf JM |
13626 | .PHONY: maybe-distclean-mpc distclean-mpc |
13627 | maybe-distclean-mpc: | |
13628 | @if mpc | |
13629 | maybe-distclean-mpc: distclean-mpc | |
d3ed111c | 13630 | |
a90ef4bf JM |
13631 | distclean-mpc: |
13632 | @[ -f ./mpc/Makefile ] || exit 0; \ | |
d3ed111c GK |
13633 | r=`${PWD_COMMAND}`; export r; \ |
13634 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c GK |
13635 | $(HOST_EXPORTS) \ |
13636 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13637 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13638 | done; \ | |
22121df0 | 13639 | echo "Doing distclean in mpc"; \ |
a90ef4bf | 13640 | (cd $(HOST_SUBDIR)/mpc && \ |
d3ed111c GK |
13641 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13642 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13643 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 13644 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
d3ed111c GK |
13645 | distclean) \ |
13646 | || exit 1 | |
13647 | ||
a90ef4bf | 13648 | @endif mpc |
d3ed111c | 13649 | |
a90ef4bf JM |
13650 | .PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc |
13651 | maybe-maintainer-clean-mpc: | |
13652 | @if mpc | |
13653 | maybe-maintainer-clean-mpc: maintainer-clean-mpc | |
d3ed111c | 13654 | |
a90ef4bf JM |
13655 | maintainer-clean-mpc: |
13656 | @[ -f ./mpc/Makefile ] || exit 0; \ | |
d3ed111c GK |
13657 | r=`${PWD_COMMAND}`; export r; \ |
13658 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c GK |
13659 | $(HOST_EXPORTS) \ |
13660 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13661 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13662 | done; \ | |
22121df0 | 13663 | echo "Doing maintainer-clean in mpc"; \ |
a90ef4bf | 13664 | (cd $(HOST_SUBDIR)/mpc && \ |
d3ed111c GK |
13665 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13666 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13667 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 13668 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
d3ed111c GK |
13669 | maintainer-clean) \ |
13670 | || exit 1 | |
13671 | ||
a90ef4bf | 13672 | @endif mpc |
d3ed111c GK |
13673 | |
13674 | ||
a7254363 | 13675 | |
7ec59b9e L |
13676 | .PHONY: configure-isl maybe-configure-isl |
13677 | maybe-configure-isl: | |
4f0ef2d8 | 13678 | @if gcc-bootstrap |
7ec59b9e | 13679 | configure-isl: stage_current |
4f0ef2d8 | 13680 | @endif gcc-bootstrap |
7ec59b9e L |
13681 | @if isl |
13682 | maybe-configure-isl: configure-isl | |
13683 | configure-isl: | |
c52c6897 | 13684 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 13685 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
7ec59b9e | 13686 | test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \ |
22121df0 | 13687 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \ |
1f53ca9a | 13688 | $(HOST_EXPORTS) \ |
7ec59b9e L |
13689 | echo Configuring in $(HOST_SUBDIR)/isl; \ |
13690 | cd "$(HOST_SUBDIR)/isl" || exit 1; \ | |
4fa63067 | 13691 | case $(srcdir) in \ |
b00612cc | 13692 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
7ec59b9e | 13693 | *) topdir=`echo $(HOST_SUBDIR)/isl/ | \ |
b00612cc | 13694 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 13695 | esac; \ |
1b6c0831 L |
13696 | module_srcdir=isl; \ |
13697 | $(SHELL) \ | |
13698 | $$s/$$module_srcdir/configure \ | |
13699 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 13700 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 13701 | --target=${target_alias} --disable-shared @extra_isl_gmp_configure_flags@ \ |
4fa63067 | 13702 | || exit 1 |
7ec59b9e | 13703 | @endif isl |
4fa63067 | 13704 | |
a7254363 PB |
13705 | |
13706 | ||
7ec59b9e L |
13707 | .PHONY: configure-stage1-isl maybe-configure-stage1-isl |
13708 | maybe-configure-stage1-isl: | |
13709 | @if isl-bootstrap | |
13710 | maybe-configure-stage1-isl: configure-stage1-isl | |
13711 | configure-stage1-isl: | |
a90ef4bf | 13712 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
7ec59b9e | 13713 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl |
a90ef4bf JM |
13714 | @r=`${PWD_COMMAND}`; export r; \ |
13715 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13716 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
7ec59b9e | 13717 | test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \ |
a90ef4bf JM |
13718 | $(HOST_EXPORTS) \ |
13719 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ | |
13720 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
13721 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
13722 | echo Configuring stage 1 in $(HOST_SUBDIR)/isl; \ |
13723 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \ | |
7ec59b9e | 13724 | cd $(HOST_SUBDIR)/isl || exit 1; \ |
a90ef4bf JM |
13725 | case $(srcdir) in \ |
13726 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
7ec59b9e | 13727 | *) topdir=`echo $(HOST_SUBDIR)/isl/ | \ |
a90ef4bf JM |
13728 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
13729 | esac; \ | |
1b6c0831 L |
13730 | module_srcdir=isl; \ |
13731 | $(SHELL) $$s/$$module_srcdir/configure \ | |
13732 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 13733 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
13734 | --target=${target_alias} \ |
13735 | \ | |
a90ef4bf | 13736 | $(STAGE1_CONFIGURE_FLAGS) \ |
7ec59b9e L |
13737 | --disable-shared @extra_isl_gmp_configure_flags@ |
13738 | @endif isl-bootstrap | |
13739 | ||
13740 | .PHONY: configure-stage2-isl maybe-configure-stage2-isl | |
13741 | maybe-configure-stage2-isl: | |
13742 | @if isl-bootstrap | |
13743 | maybe-configure-stage2-isl: configure-stage2-isl | |
13744 | configure-stage2-isl: | |
a90ef4bf | 13745 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
7ec59b9e | 13746 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl |
a90ef4bf JM |
13747 | @r=`${PWD_COMMAND}`; export r; \ |
13748 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13749 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
7ec59b9e | 13750 | test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \ |
a90ef4bf JM |
13751 | $(HOST_EXPORTS) \ |
13752 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
13753 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
13754 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
13755 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
13756 | echo Configuring stage 2 in $(HOST_SUBDIR)/isl; \ |
13757 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \ | |
7ec59b9e | 13758 | cd $(HOST_SUBDIR)/isl || exit 1; \ |
a90ef4bf JM |
13759 | case $(srcdir) in \ |
13760 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
7ec59b9e | 13761 | *) topdir=`echo $(HOST_SUBDIR)/isl/ | \ |
a90ef4bf JM |
13762 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
13763 | esac; \ | |
1b6c0831 L |
13764 | module_srcdir=isl; \ |
13765 | $(SHELL) $$s/$$module_srcdir/configure \ | |
13766 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 13767 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 13768 | --target=${target_alias} \ |
22121df0 | 13769 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 13770 | $(STAGE2_CONFIGURE_FLAGS) \ |
7ec59b9e L |
13771 | --disable-shared @extra_isl_gmp_configure_flags@ |
13772 | @endif isl-bootstrap | |
13773 | ||
13774 | .PHONY: configure-stage3-isl maybe-configure-stage3-isl | |
13775 | maybe-configure-stage3-isl: | |
13776 | @if isl-bootstrap | |
13777 | maybe-configure-stage3-isl: configure-stage3-isl | |
13778 | configure-stage3-isl: | |
a90ef4bf | 13779 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
7ec59b9e | 13780 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl |
4fa63067 NN |
13781 | @r=`${PWD_COMMAND}`; export r; \ |
13782 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 13783 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
7ec59b9e | 13784 | test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \ |
a90ef4bf JM |
13785 | $(HOST_EXPORTS) \ |
13786 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
13787 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
13788 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
13789 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
13790 | echo Configuring stage 3 in $(HOST_SUBDIR)/isl; \ |
13791 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \ | |
7ec59b9e | 13792 | cd $(HOST_SUBDIR)/isl || exit 1; \ |
a90ef4bf JM |
13793 | case $(srcdir) in \ |
13794 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
7ec59b9e | 13795 | *) topdir=`echo $(HOST_SUBDIR)/isl/ | \ |
a90ef4bf JM |
13796 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
13797 | esac; \ | |
1b6c0831 L |
13798 | module_srcdir=isl; \ |
13799 | $(SHELL) $$s/$$module_srcdir/configure \ | |
13800 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 13801 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 13802 | --target=${target_alias} \ |
22121df0 | 13803 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 13804 | $(STAGE3_CONFIGURE_FLAGS) \ |
7ec59b9e L |
13805 | --disable-shared @extra_isl_gmp_configure_flags@ |
13806 | @endif isl-bootstrap | |
13807 | ||
13808 | .PHONY: configure-stage4-isl maybe-configure-stage4-isl | |
13809 | maybe-configure-stage4-isl: | |
13810 | @if isl-bootstrap | |
13811 | maybe-configure-stage4-isl: configure-stage4-isl | |
13812 | configure-stage4-isl: | |
a90ef4bf | 13813 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
7ec59b9e | 13814 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl |
a90ef4bf JM |
13815 | @r=`${PWD_COMMAND}`; export r; \ |
13816 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13817 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
7ec59b9e | 13818 | test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \ |
a90ef4bf JM |
13819 | $(HOST_EXPORTS) \ |
13820 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
13821 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
13822 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
13823 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
13824 | echo Configuring stage 4 in $(HOST_SUBDIR)/isl; \ |
13825 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \ | |
7ec59b9e | 13826 | cd $(HOST_SUBDIR)/isl || exit 1; \ |
a90ef4bf JM |
13827 | case $(srcdir) in \ |
13828 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
7ec59b9e | 13829 | *) topdir=`echo $(HOST_SUBDIR)/isl/ | \ |
a90ef4bf JM |
13830 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
13831 | esac; \ | |
1b6c0831 L |
13832 | module_srcdir=isl; \ |
13833 | $(SHELL) $$s/$$module_srcdir/configure \ | |
13834 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 13835 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 13836 | --target=${target_alias} \ |
22121df0 | 13837 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 13838 | $(STAGE4_CONFIGURE_FLAGS) \ |
7ec59b9e L |
13839 | --disable-shared @extra_isl_gmp_configure_flags@ |
13840 | @endif isl-bootstrap | |
13841 | ||
13842 | .PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl | |
13843 | maybe-configure-stageprofile-isl: | |
13844 | @if isl-bootstrap | |
13845 | maybe-configure-stageprofile-isl: configure-stageprofile-isl | |
13846 | configure-stageprofile-isl: | |
a90ef4bf | 13847 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
7ec59b9e | 13848 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl |
a90ef4bf JM |
13849 | @r=`${PWD_COMMAND}`; export r; \ |
13850 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13851 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
7ec59b9e | 13852 | test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \ |
a90ef4bf JM |
13853 | $(HOST_EXPORTS) \ |
13854 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
13855 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
13856 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
13857 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
13858 | echo Configuring stage profile in $(HOST_SUBDIR)/isl; \ |
13859 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \ | |
7ec59b9e | 13860 | cd $(HOST_SUBDIR)/isl || exit 1; \ |
a90ef4bf JM |
13861 | case $(srcdir) in \ |
13862 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
7ec59b9e | 13863 | *) topdir=`echo $(HOST_SUBDIR)/isl/ | \ |
a90ef4bf JM |
13864 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
13865 | esac; \ | |
1b6c0831 L |
13866 | module_srcdir=isl; \ |
13867 | $(SHELL) $$s/$$module_srcdir/configure \ | |
13868 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 13869 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 13870 | --target=${target_alias} \ |
22121df0 | 13871 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 13872 | $(STAGEprofile_CONFIGURE_FLAGS) \ |
7ec59b9e L |
13873 | --disable-shared @extra_isl_gmp_configure_flags@ |
13874 | @endif isl-bootstrap | |
13875 | ||
13876 | .PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl | |
13877 | maybe-configure-stagefeedback-isl: | |
13878 | @if isl-bootstrap | |
13879 | maybe-configure-stagefeedback-isl: configure-stagefeedback-isl | |
13880 | configure-stagefeedback-isl: | |
a90ef4bf | 13881 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
7ec59b9e | 13882 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl |
a90ef4bf JM |
13883 | @r=`${PWD_COMMAND}`; export r; \ |
13884 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13885 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
7ec59b9e | 13886 | test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \ |
a90ef4bf JM |
13887 | $(HOST_EXPORTS) \ |
13888 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
13889 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
13890 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
13891 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
13892 | echo Configuring stage feedback in $(HOST_SUBDIR)/isl; \ |
13893 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \ | |
7ec59b9e | 13894 | cd $(HOST_SUBDIR)/isl || exit 1; \ |
a90ef4bf JM |
13895 | case $(srcdir) in \ |
13896 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
7ec59b9e | 13897 | *) topdir=`echo $(HOST_SUBDIR)/isl/ | \ |
a90ef4bf JM |
13898 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
13899 | esac; \ | |
1b6c0831 L |
13900 | module_srcdir=isl; \ |
13901 | $(SHELL) $$s/$$module_srcdir/configure \ | |
13902 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 13903 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 13904 | --target=${target_alias} \ |
22121df0 | 13905 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 13906 | $(STAGEfeedback_CONFIGURE_FLAGS) \ |
7ec59b9e L |
13907 | --disable-shared @extra_isl_gmp_configure_flags@ |
13908 | @endif isl-bootstrap | |
d545f33b | 13909 | |
4fa63067 | 13910 | |
4fa63067 NN |
13911 | |
13912 | ||
4fa63067 | 13913 | |
7ec59b9e L |
13914 | .PHONY: all-isl maybe-all-isl |
13915 | maybe-all-isl: | |
a90ef4bf | 13916 | @if gcc-bootstrap |
7ec59b9e | 13917 | all-isl: stage_current |
a90ef4bf | 13918 | @endif gcc-bootstrap |
7ec59b9e L |
13919 | @if isl |
13920 | TARGET-isl=all | |
13921 | maybe-all-isl: all-isl | |
13922 | all-isl: configure-isl | |
4fa63067 NN |
13923 | @r=`${PWD_COMMAND}`; export r; \ |
13924 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 13925 | $(HOST_EXPORTS) \ |
7ec59b9e | 13926 | (cd $(HOST_SUBDIR)/isl && \ |
b3676d82 | 13927 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \ |
7ec59b9e L |
13928 | $(TARGET-isl)) |
13929 | @endif isl | |
13930 | ||
13931 | ||
13932 | ||
13933 | .PHONY: all-stage1-isl maybe-all-stage1-isl | |
13934 | .PHONY: clean-stage1-isl maybe-clean-stage1-isl | |
13935 | maybe-all-stage1-isl: | |
13936 | maybe-clean-stage1-isl: | |
13937 | @if isl-bootstrap | |
13938 | maybe-all-stage1-isl: all-stage1-isl | |
13939 | all-stage1: all-stage1-isl | |
13940 | TARGET-stage1-isl = $(TARGET-isl) | |
13941 | all-stage1-isl: configure-stage1-isl | |
a90ef4bf | 13942 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
9b980aa1 RW |
13943 | @r=`${PWD_COMMAND}`; export r; \ |
13944 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
13945 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
13946 | $(HOST_EXPORTS) \ | |
7ec59b9e | 13947 | cd $(HOST_SUBDIR)/isl && \ |
05a13254 | 13948 | \ |
a90ef4bf JM |
13949 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
13950 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
13951 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
13952 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
13953 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
13954 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
13955 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
13956 | $(EXTRA_HOST_FLAGS) \ |
13957 | $(STAGE1_FLAGS_TO_PASS) V=1 \ | |
05a13254 | 13958 | TFLAGS="$(STAGE1_TFLAGS)" \ |
7ec59b9e | 13959 | $(TARGET-stage1-isl) |
9b980aa1 | 13960 | |
7ec59b9e L |
13961 | maybe-clean-stage1-isl: clean-stage1-isl |
13962 | clean-stage1: clean-stage1-isl | |
13963 | clean-stage1-isl: | |
a90ef4bf | 13964 | @if [ $(current_stage) = stage1 ]; then \ |
7ec59b9e | 13965 | [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \ |
a90ef4bf | 13966 | else \ |
7ec59b9e | 13967 | [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \ |
a90ef4bf JM |
13968 | $(MAKE) stage1-start; \ |
13969 | fi; \ | |
7ec59b9e | 13970 | cd $(HOST_SUBDIR)/isl && \ |
a90ef4bf | 13971 | $(MAKE) $(EXTRA_HOST_FLAGS) \ |
b3676d82 | 13972 | $(STAGE1_FLAGS_TO_PASS) V=1 clean |
7ec59b9e L |
13973 | @endif isl-bootstrap |
13974 | ||
13975 | ||
13976 | .PHONY: all-stage2-isl maybe-all-stage2-isl | |
13977 | .PHONY: clean-stage2-isl maybe-clean-stage2-isl | |
13978 | maybe-all-stage2-isl: | |
13979 | maybe-clean-stage2-isl: | |
13980 | @if isl-bootstrap | |
13981 | maybe-all-stage2-isl: all-stage2-isl | |
13982 | all-stage2: all-stage2-isl | |
13983 | TARGET-stage2-isl = $(TARGET-isl) | |
13984 | all-stage2-isl: configure-stage2-isl | |
a90ef4bf JM |
13985 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
13986 | @r=`${PWD_COMMAND}`; export r; \ | |
13987 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13988 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
13989 | $(HOST_EXPORTS) \ | |
13990 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
7ec59b9e | 13991 | cd $(HOST_SUBDIR)/isl && \ |
05a13254 | 13992 | \ |
a90ef4bf JM |
13993 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
13994 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
13995 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
13996 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
13997 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
13998 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
13999 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
7ec59b9e | 14000 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \ |
05a13254 | 14001 | TFLAGS="$(STAGE2_TFLAGS)" \ |
7ec59b9e | 14002 | $(TARGET-stage2-isl) |
a90ef4bf | 14003 | |
7ec59b9e L |
14004 | maybe-clean-stage2-isl: clean-stage2-isl |
14005 | clean-stage2: clean-stage2-isl | |
14006 | clean-stage2-isl: | |
a90ef4bf | 14007 | @if [ $(current_stage) = stage2 ]; then \ |
7ec59b9e | 14008 | [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \ |
a90ef4bf | 14009 | else \ |
7ec59b9e | 14010 | [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \ |
a90ef4bf JM |
14011 | $(MAKE) stage2-start; \ |
14012 | fi; \ | |
7ec59b9e | 14013 | cd $(HOST_SUBDIR)/isl && \ |
b3676d82 | 14014 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean |
7ec59b9e L |
14015 | @endif isl-bootstrap |
14016 | ||
14017 | ||
14018 | .PHONY: all-stage3-isl maybe-all-stage3-isl | |
14019 | .PHONY: clean-stage3-isl maybe-clean-stage3-isl | |
14020 | maybe-all-stage3-isl: | |
14021 | maybe-clean-stage3-isl: | |
14022 | @if isl-bootstrap | |
14023 | maybe-all-stage3-isl: all-stage3-isl | |
14024 | all-stage3: all-stage3-isl | |
14025 | TARGET-stage3-isl = $(TARGET-isl) | |
14026 | all-stage3-isl: configure-stage3-isl | |
a90ef4bf JM |
14027 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
14028 | @r=`${PWD_COMMAND}`; export r; \ | |
14029 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
14030 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
14031 | $(HOST_EXPORTS) \ | |
14032 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
7ec59b9e | 14033 | cd $(HOST_SUBDIR)/isl && \ |
05a13254 | 14034 | \ |
a90ef4bf JM |
14035 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
14036 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
14037 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
14038 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
14039 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
14040 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
14041 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
7ec59b9e | 14042 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \ |
05a13254 | 14043 | TFLAGS="$(STAGE3_TFLAGS)" \ |
7ec59b9e | 14044 | $(TARGET-stage3-isl) |
a90ef4bf | 14045 | |
7ec59b9e L |
14046 | maybe-clean-stage3-isl: clean-stage3-isl |
14047 | clean-stage3: clean-stage3-isl | |
14048 | clean-stage3-isl: | |
a90ef4bf | 14049 | @if [ $(current_stage) = stage3 ]; then \ |
7ec59b9e | 14050 | [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \ |
a90ef4bf | 14051 | else \ |
7ec59b9e | 14052 | [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \ |
a90ef4bf JM |
14053 | $(MAKE) stage3-start; \ |
14054 | fi; \ | |
7ec59b9e | 14055 | cd $(HOST_SUBDIR)/isl && \ |
b3676d82 | 14056 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean |
7ec59b9e L |
14057 | @endif isl-bootstrap |
14058 | ||
14059 | ||
14060 | .PHONY: all-stage4-isl maybe-all-stage4-isl | |
14061 | .PHONY: clean-stage4-isl maybe-clean-stage4-isl | |
14062 | maybe-all-stage4-isl: | |
14063 | maybe-clean-stage4-isl: | |
14064 | @if isl-bootstrap | |
14065 | maybe-all-stage4-isl: all-stage4-isl | |
14066 | all-stage4: all-stage4-isl | |
14067 | TARGET-stage4-isl = $(TARGET-isl) | |
14068 | all-stage4-isl: configure-stage4-isl | |
a90ef4bf JM |
14069 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
14070 | @r=`${PWD_COMMAND}`; export r; \ | |
14071 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
14072 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
14073 | $(HOST_EXPORTS) \ | |
14074 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
7ec59b9e | 14075 | cd $(HOST_SUBDIR)/isl && \ |
05a13254 | 14076 | \ |
a90ef4bf JM |
14077 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
14078 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
14079 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
14080 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
14081 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
14082 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
14083 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
7ec59b9e | 14084 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \ |
05a13254 | 14085 | TFLAGS="$(STAGE4_TFLAGS)" \ |
7ec59b9e | 14086 | $(TARGET-stage4-isl) |
a90ef4bf | 14087 | |
7ec59b9e L |
14088 | maybe-clean-stage4-isl: clean-stage4-isl |
14089 | clean-stage4: clean-stage4-isl | |
14090 | clean-stage4-isl: | |
a90ef4bf | 14091 | @if [ $(current_stage) = stage4 ]; then \ |
7ec59b9e | 14092 | [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \ |
a90ef4bf | 14093 | else \ |
7ec59b9e | 14094 | [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \ |
a90ef4bf JM |
14095 | $(MAKE) stage4-start; \ |
14096 | fi; \ | |
7ec59b9e | 14097 | cd $(HOST_SUBDIR)/isl && \ |
b3676d82 | 14098 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean |
7ec59b9e L |
14099 | @endif isl-bootstrap |
14100 | ||
14101 | ||
14102 | .PHONY: all-stageprofile-isl maybe-all-stageprofile-isl | |
14103 | .PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl | |
14104 | maybe-all-stageprofile-isl: | |
14105 | maybe-clean-stageprofile-isl: | |
14106 | @if isl-bootstrap | |
14107 | maybe-all-stageprofile-isl: all-stageprofile-isl | |
14108 | all-stageprofile: all-stageprofile-isl | |
14109 | TARGET-stageprofile-isl = $(TARGET-isl) | |
14110 | all-stageprofile-isl: configure-stageprofile-isl | |
a90ef4bf JM |
14111 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
14112 | @r=`${PWD_COMMAND}`; export r; \ | |
14113 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
14114 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
14115 | $(HOST_EXPORTS) \ | |
14116 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
7ec59b9e | 14117 | cd $(HOST_SUBDIR)/isl && \ |
05a13254 | 14118 | \ |
a90ef4bf JM |
14119 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
14120 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
14121 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
14122 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
14123 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
14124 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
14125 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
7ec59b9e | 14126 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \ |
05a13254 | 14127 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
7ec59b9e | 14128 | $(TARGET-stageprofile-isl) |
a90ef4bf | 14129 | |
7ec59b9e L |
14130 | maybe-clean-stageprofile-isl: clean-stageprofile-isl |
14131 | clean-stageprofile: clean-stageprofile-isl | |
14132 | clean-stageprofile-isl: | |
a90ef4bf | 14133 | @if [ $(current_stage) = stageprofile ]; then \ |
7ec59b9e | 14134 | [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \ |
a90ef4bf | 14135 | else \ |
7ec59b9e | 14136 | [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \ |
a90ef4bf JM |
14137 | $(MAKE) stageprofile-start; \ |
14138 | fi; \ | |
7ec59b9e | 14139 | cd $(HOST_SUBDIR)/isl && \ |
b3676d82 | 14140 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean |
7ec59b9e L |
14141 | @endif isl-bootstrap |
14142 | ||
14143 | ||
14144 | .PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl | |
14145 | .PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl | |
14146 | maybe-all-stagefeedback-isl: | |
14147 | maybe-clean-stagefeedback-isl: | |
14148 | @if isl-bootstrap | |
14149 | maybe-all-stagefeedback-isl: all-stagefeedback-isl | |
14150 | all-stagefeedback: all-stagefeedback-isl | |
14151 | TARGET-stagefeedback-isl = $(TARGET-isl) | |
14152 | all-stagefeedback-isl: configure-stagefeedback-isl | |
a90ef4bf JM |
14153 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
14154 | @r=`${PWD_COMMAND}`; export r; \ | |
14155 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
14156 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
14157 | $(HOST_EXPORTS) \ | |
14158 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
7ec59b9e | 14159 | cd $(HOST_SUBDIR)/isl && \ |
05a13254 | 14160 | \ |
a90ef4bf JM |
14161 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
14162 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
14163 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
14164 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
14165 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
14166 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
14167 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
7ec59b9e | 14168 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \ |
05a13254 | 14169 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
7ec59b9e | 14170 | $(TARGET-stagefeedback-isl) |
a90ef4bf | 14171 | |
7ec59b9e L |
14172 | maybe-clean-stagefeedback-isl: clean-stagefeedback-isl |
14173 | clean-stagefeedback: clean-stagefeedback-isl | |
14174 | clean-stagefeedback-isl: | |
a90ef4bf | 14175 | @if [ $(current_stage) = stagefeedback ]; then \ |
7ec59b9e | 14176 | [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \ |
a90ef4bf | 14177 | else \ |
7ec59b9e | 14178 | [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \ |
a90ef4bf JM |
14179 | $(MAKE) stagefeedback-start; \ |
14180 | fi; \ | |
7ec59b9e | 14181 | cd $(HOST_SUBDIR)/isl && \ |
b3676d82 | 14182 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean |
7ec59b9e | 14183 | @endif isl-bootstrap |
a90ef4bf JM |
14184 | |
14185 | ||
14186 | ||
14187 | ||
14188 | ||
7ec59b9e L |
14189 | .PHONY: check-isl maybe-check-isl |
14190 | maybe-check-isl: | |
14191 | @if isl | |
14192 | maybe-check-isl: check-isl | |
a90ef4bf | 14193 | |
7ec59b9e | 14194 | check-isl: |
0aed8855 | 14195 | @: $(MAKE); $(unstage) |
a90ef4bf JM |
14196 | @r=`${PWD_COMMAND}`; export r; \ |
14197 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 14198 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
7ec59b9e | 14199 | (cd $(HOST_SUBDIR)/isl && \ |
f91ca6bc | 14200 | $(MAKE) $(FLAGS_TO_PASS) V=1 $(EXTRA_BOOTSTRAP_FLAGS) check) |
a90ef4bf | 14201 | |
7ec59b9e | 14202 | @endif isl |
a90ef4bf | 14203 | |
7ec59b9e L |
14204 | .PHONY: install-isl maybe-install-isl |
14205 | maybe-install-isl: | |
14206 | @if isl | |
14207 | maybe-install-isl: install-isl | |
a90ef4bf | 14208 | |
7ec59b9e | 14209 | install-isl: |
a90ef4bf | 14210 | |
7ec59b9e | 14211 | @endif isl |
a90ef4bf | 14212 | |
7ec59b9e L |
14213 | .PHONY: install-strip-isl maybe-install-strip-isl |
14214 | maybe-install-strip-isl: | |
14215 | @if isl | |
14216 | maybe-install-strip-isl: install-strip-isl | |
a90ef4bf | 14217 | |
7ec59b9e | 14218 | install-strip-isl: |
a90ef4bf | 14219 | |
7ec59b9e | 14220 | @endif isl |
a90ef4bf JM |
14221 | |
14222 | # Other targets (info, dvi, pdf, etc.) | |
14223 | ||
7ec59b9e L |
14224 | .PHONY: maybe-info-isl info-isl |
14225 | maybe-info-isl: | |
14226 | @if isl | |
14227 | maybe-info-isl: info-isl | |
a90ef4bf | 14228 | |
7ec59b9e L |
14229 | info-isl: \ |
14230 | configure-isl | |
14231 | @[ -f ./isl/Makefile ] || exit 0; \ | |
b40e3958 L |
14232 | r=`${PWD_COMMAND}`; export r; \ |
14233 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14234 | $(HOST_EXPORTS) \ |
7ec59b9e | 14235 | for flag in $(EXTRA_HOST_FLAGS) V=1; do \ |
2a4cbe27 NN |
14236 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14237 | done; \ | |
22121df0 | 14238 | echo "Doing info in isl"; \ |
7ec59b9e | 14239 | (cd $(HOST_SUBDIR)/isl && \ |
2a4cbe27 NN |
14240 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14241 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14242 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 14243 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 14244 | info) \ |
2a4cbe27 NN |
14245 | || exit 1 |
14246 | ||
7ec59b9e | 14247 | @endif isl |
2a4cbe27 | 14248 | |
7ec59b9e L |
14249 | .PHONY: maybe-dvi-isl dvi-isl |
14250 | maybe-dvi-isl: | |
14251 | @if isl | |
14252 | maybe-dvi-isl: dvi-isl | |
2a4cbe27 | 14253 | |
7ec59b9e L |
14254 | dvi-isl: \ |
14255 | configure-isl | |
14256 | @[ -f ./isl/Makefile ] || exit 0; \ | |
b40e3958 L |
14257 | r=`${PWD_COMMAND}`; export r; \ |
14258 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14259 | $(HOST_EXPORTS) \ |
7ec59b9e | 14260 | for flag in $(EXTRA_HOST_FLAGS) V=1; do \ |
2a4cbe27 NN |
14261 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14262 | done; \ | |
22121df0 | 14263 | echo "Doing dvi in isl"; \ |
7ec59b9e | 14264 | (cd $(HOST_SUBDIR)/isl && \ |
2a4cbe27 NN |
14265 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14266 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14267 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 14268 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 14269 | dvi) \ |
2a4cbe27 NN |
14270 | || exit 1 |
14271 | ||
7ec59b9e | 14272 | @endif isl |
2a4cbe27 | 14273 | |
7ec59b9e L |
14274 | .PHONY: maybe-pdf-isl pdf-isl |
14275 | maybe-pdf-isl: | |
14276 | @if isl | |
14277 | maybe-pdf-isl: pdf-isl | |
56a8fe78 | 14278 | |
7ec59b9e L |
14279 | pdf-isl: \ |
14280 | configure-isl | |
14281 | @[ -f ./isl/Makefile ] || exit 0; \ | |
56a8fe78 DD |
14282 | r=`${PWD_COMMAND}`; export r; \ |
14283 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
14284 | $(HOST_EXPORTS) \ | |
7ec59b9e | 14285 | for flag in $(EXTRA_HOST_FLAGS) V=1; do \ |
56a8fe78 DD |
14286 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14287 | done; \ | |
22121df0 | 14288 | echo "Doing pdf in isl"; \ |
7ec59b9e | 14289 | (cd $(HOST_SUBDIR)/isl && \ |
56a8fe78 DD |
14290 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14291 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14292 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 14293 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
14294 | pdf) \ |
14295 | || exit 1 | |
14296 | ||
7ec59b9e | 14297 | @endif isl |
56a8fe78 | 14298 | |
7ec59b9e L |
14299 | .PHONY: maybe-html-isl html-isl |
14300 | maybe-html-isl: | |
14301 | @if isl | |
14302 | maybe-html-isl: html-isl | |
6d389afc | 14303 | |
7ec59b9e L |
14304 | html-isl: \ |
14305 | configure-isl | |
14306 | @[ -f ./isl/Makefile ] || exit 0; \ | |
6d389afc MS |
14307 | r=`${PWD_COMMAND}`; export r; \ |
14308 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 14309 | $(HOST_EXPORTS) \ |
7ec59b9e | 14310 | for flag in $(EXTRA_HOST_FLAGS) V=1; do \ |
6d389afc MS |
14311 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14312 | done; \ | |
22121df0 | 14313 | echo "Doing html in isl"; \ |
7ec59b9e | 14314 | (cd $(HOST_SUBDIR)/isl && \ |
6d389afc MS |
14315 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14316 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14317 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 14318 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
14319 | html) \ |
14320 | || exit 1 | |
14321 | ||
7ec59b9e | 14322 | @endif isl |
6d389afc | 14323 | |
7ec59b9e L |
14324 | .PHONY: maybe-TAGS-isl TAGS-isl |
14325 | maybe-TAGS-isl: | |
14326 | @if isl | |
14327 | maybe-TAGS-isl: TAGS-isl | |
2a4cbe27 | 14328 | |
7ec59b9e L |
14329 | TAGS-isl: \ |
14330 | configure-isl | |
14331 | @[ -f ./isl/Makefile ] || exit 0; \ | |
b40e3958 L |
14332 | r=`${PWD_COMMAND}`; export r; \ |
14333 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14334 | $(HOST_EXPORTS) \ |
7ec59b9e | 14335 | for flag in $(EXTRA_HOST_FLAGS) V=1; do \ |
2a4cbe27 NN |
14336 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14337 | done; \ | |
22121df0 | 14338 | echo "Doing TAGS in isl"; \ |
7ec59b9e | 14339 | (cd $(HOST_SUBDIR)/isl && \ |
2a4cbe27 NN |
14340 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14341 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14342 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 14343 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 14344 | TAGS) \ |
2a4cbe27 NN |
14345 | || exit 1 |
14346 | ||
7ec59b9e | 14347 | @endif isl |
2a4cbe27 | 14348 | |
7ec59b9e L |
14349 | .PHONY: maybe-install-info-isl install-info-isl |
14350 | maybe-install-info-isl: | |
14351 | @if isl | |
14352 | maybe-install-info-isl: install-info-isl | |
2a4cbe27 | 14353 | |
7ec59b9e L |
14354 | install-info-isl: \ |
14355 | configure-isl \ | |
14356 | info-isl | |
14357 | @[ -f ./isl/Makefile ] || exit 0; \ | |
b40e3958 L |
14358 | r=`${PWD_COMMAND}`; export r; \ |
14359 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14360 | $(HOST_EXPORTS) \ |
7ec59b9e | 14361 | for flag in $(EXTRA_HOST_FLAGS) V=1; do \ |
2a4cbe27 NN |
14362 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14363 | done; \ | |
22121df0 | 14364 | echo "Doing install-info in isl"; \ |
7ec59b9e | 14365 | (cd $(HOST_SUBDIR)/isl && \ |
2a4cbe27 NN |
14366 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14367 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14368 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 14369 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 14370 | install-info) \ |
2a4cbe27 NN |
14371 | || exit 1 |
14372 | ||
7ec59b9e | 14373 | @endif isl |
2a4cbe27 | 14374 | |
7ec59b9e L |
14375 | .PHONY: maybe-install-pdf-isl install-pdf-isl |
14376 | maybe-install-pdf-isl: | |
14377 | @if isl | |
14378 | maybe-install-pdf-isl: install-pdf-isl | |
a3ca38d2 | 14379 | |
7ec59b9e L |
14380 | install-pdf-isl: \ |
14381 | configure-isl \ | |
14382 | pdf-isl | |
14383 | @[ -f ./isl/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
14384 | r=`${PWD_COMMAND}`; export r; \ |
14385 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
14386 | $(HOST_EXPORTS) \ | |
7ec59b9e | 14387 | for flag in $(EXTRA_HOST_FLAGS) V=1; do \ |
a3ca38d2 DD |
14388 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14389 | done; \ | |
22121df0 | 14390 | echo "Doing install-pdf in isl"; \ |
7ec59b9e | 14391 | (cd $(HOST_SUBDIR)/isl && \ |
a3ca38d2 DD |
14392 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14393 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14394 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 14395 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
14396 | install-pdf) \ |
14397 | || exit 1 | |
14398 | ||
7ec59b9e | 14399 | @endif isl |
a3ca38d2 | 14400 | |
7ec59b9e L |
14401 | .PHONY: maybe-install-html-isl install-html-isl |
14402 | maybe-install-html-isl: | |
14403 | @if isl | |
14404 | maybe-install-html-isl: install-html-isl | |
108a6f8e | 14405 | |
7ec59b9e L |
14406 | install-html-isl: \ |
14407 | configure-isl \ | |
14408 | html-isl | |
14409 | @[ -f ./isl/Makefile ] || exit 0; \ | |
108a6f8e CD |
14410 | r=`${PWD_COMMAND}`; export r; \ |
14411 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
14412 | $(HOST_EXPORTS) \ | |
7ec59b9e | 14413 | for flag in $(EXTRA_HOST_FLAGS) V=1; do \ |
108a6f8e CD |
14414 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14415 | done; \ | |
22121df0 | 14416 | echo "Doing install-html in isl"; \ |
7ec59b9e | 14417 | (cd $(HOST_SUBDIR)/isl && \ |
108a6f8e CD |
14418 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14419 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14420 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 14421 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
14422 | install-html) \ |
14423 | || exit 1 | |
14424 | ||
7ec59b9e | 14425 | @endif isl |
108a6f8e | 14426 | |
7ec59b9e L |
14427 | .PHONY: maybe-installcheck-isl installcheck-isl |
14428 | maybe-installcheck-isl: | |
14429 | @if isl | |
14430 | maybe-installcheck-isl: installcheck-isl | |
2a4cbe27 | 14431 | |
7ec59b9e L |
14432 | installcheck-isl: \ |
14433 | configure-isl | |
14434 | @[ -f ./isl/Makefile ] || exit 0; \ | |
b40e3958 L |
14435 | r=`${PWD_COMMAND}`; export r; \ |
14436 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14437 | $(HOST_EXPORTS) \ |
7ec59b9e | 14438 | for flag in $(EXTRA_HOST_FLAGS) V=1; do \ |
2a4cbe27 NN |
14439 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14440 | done; \ | |
22121df0 | 14441 | echo "Doing installcheck in isl"; \ |
7ec59b9e | 14442 | (cd $(HOST_SUBDIR)/isl && \ |
2a4cbe27 NN |
14443 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14444 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14445 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 14446 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 14447 | installcheck) \ |
2a4cbe27 NN |
14448 | || exit 1 |
14449 | ||
7ec59b9e | 14450 | @endif isl |
2a4cbe27 | 14451 | |
7ec59b9e L |
14452 | .PHONY: maybe-mostlyclean-isl mostlyclean-isl |
14453 | maybe-mostlyclean-isl: | |
14454 | @if isl | |
14455 | maybe-mostlyclean-isl: mostlyclean-isl | |
2a4cbe27 | 14456 | |
7ec59b9e L |
14457 | mostlyclean-isl: |
14458 | @[ -f ./isl/Makefile ] || exit 0; \ | |
b40e3958 L |
14459 | r=`${PWD_COMMAND}`; export r; \ |
14460 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14461 | $(HOST_EXPORTS) \ |
7ec59b9e | 14462 | for flag in $(EXTRA_HOST_FLAGS) V=1; do \ |
2a4cbe27 NN |
14463 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14464 | done; \ | |
22121df0 | 14465 | echo "Doing mostlyclean in isl"; \ |
7ec59b9e | 14466 | (cd $(HOST_SUBDIR)/isl && \ |
2a4cbe27 NN |
14467 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14468 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14469 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 14470 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 14471 | mostlyclean) \ |
2a4cbe27 NN |
14472 | || exit 1 |
14473 | ||
7ec59b9e | 14474 | @endif isl |
2a4cbe27 | 14475 | |
7ec59b9e L |
14476 | .PHONY: maybe-clean-isl clean-isl |
14477 | maybe-clean-isl: | |
14478 | @if isl | |
14479 | maybe-clean-isl: clean-isl | |
2a4cbe27 | 14480 | |
7ec59b9e L |
14481 | clean-isl: |
14482 | @[ -f ./isl/Makefile ] || exit 0; \ | |
b40e3958 L |
14483 | r=`${PWD_COMMAND}`; export r; \ |
14484 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14485 | $(HOST_EXPORTS) \ |
7ec59b9e | 14486 | for flag in $(EXTRA_HOST_FLAGS) V=1; do \ |
2a4cbe27 NN |
14487 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14488 | done; \ | |
22121df0 | 14489 | echo "Doing clean in isl"; \ |
7ec59b9e | 14490 | (cd $(HOST_SUBDIR)/isl && \ |
2a4cbe27 NN |
14491 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14492 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14493 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 14494 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 14495 | clean) \ |
2a4cbe27 NN |
14496 | || exit 1 |
14497 | ||
7ec59b9e | 14498 | @endif isl |
2a4cbe27 | 14499 | |
7ec59b9e L |
14500 | .PHONY: maybe-distclean-isl distclean-isl |
14501 | maybe-distclean-isl: | |
14502 | @if isl | |
14503 | maybe-distclean-isl: distclean-isl | |
2a4cbe27 | 14504 | |
7ec59b9e L |
14505 | distclean-isl: |
14506 | @[ -f ./isl/Makefile ] || exit 0; \ | |
b40e3958 L |
14507 | r=`${PWD_COMMAND}`; export r; \ |
14508 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14509 | $(HOST_EXPORTS) \ |
7ec59b9e | 14510 | for flag in $(EXTRA_HOST_FLAGS) V=1; do \ |
2a4cbe27 NN |
14511 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14512 | done; \ | |
22121df0 | 14513 | echo "Doing distclean in isl"; \ |
7ec59b9e | 14514 | (cd $(HOST_SUBDIR)/isl && \ |
2a4cbe27 NN |
14515 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14516 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14517 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 14518 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 14519 | distclean) \ |
2a4cbe27 NN |
14520 | || exit 1 |
14521 | ||
7ec59b9e | 14522 | @endif isl |
2a4cbe27 | 14523 | |
7ec59b9e L |
14524 | .PHONY: maybe-maintainer-clean-isl maintainer-clean-isl |
14525 | maybe-maintainer-clean-isl: | |
14526 | @if isl | |
14527 | maybe-maintainer-clean-isl: maintainer-clean-isl | |
2a4cbe27 | 14528 | |
7ec59b9e L |
14529 | maintainer-clean-isl: |
14530 | @[ -f ./isl/Makefile ] || exit 0; \ | |
b40e3958 L |
14531 | r=`${PWD_COMMAND}`; export r; \ |
14532 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14533 | $(HOST_EXPORTS) \ |
7ec59b9e | 14534 | for flag in $(EXTRA_HOST_FLAGS) V=1; do \ |
2a4cbe27 NN |
14535 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14536 | done; \ | |
22121df0 | 14537 | echo "Doing maintainer-clean in isl"; \ |
7ec59b9e | 14538 | (cd $(HOST_SUBDIR)/isl && \ |
2a4cbe27 NN |
14539 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14540 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14541 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 14542 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 14543 | maintainer-clean) \ |
2a4cbe27 NN |
14544 | || exit 1 |
14545 | ||
7ec59b9e | 14546 | @endif isl |
2a4cbe27 | 14547 | |
2a4cbe27 | 14548 | |
a7254363 | 14549 | |
a90ef4bf JM |
14550 | .PHONY: configure-libelf maybe-configure-libelf |
14551 | maybe-configure-libelf: | |
c52c6897 | 14552 | @if gcc-bootstrap |
a90ef4bf | 14553 | configure-libelf: stage_current |
c52c6897 | 14554 | @endif gcc-bootstrap |
a90ef4bf JM |
14555 | @if libelf |
14556 | maybe-configure-libelf: configure-libelf | |
14557 | configure-libelf: | |
c52c6897 PB |
14558 | @r=`${PWD_COMMAND}`; export r; \ |
14559 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 14560 | test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \ |
22121df0 | 14561 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \ |
1f53ca9a | 14562 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
14563 | echo Configuring in $(HOST_SUBDIR)/libelf; \ |
14564 | cd "$(HOST_SUBDIR)/libelf" || exit 1; \ | |
4fa63067 | 14565 | case $(srcdir) in \ |
b00612cc | 14566 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 14567 | *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \ |
b00612cc | 14568 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 14569 | esac; \ |
1b6c0831 L |
14570 | module_srcdir=libelf; \ |
14571 | $(SHELL) \ | |
14572 | $$s/$$module_srcdir/configure \ | |
14573 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 14574 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 14575 | --target=${target_alias} --disable-shared \ |
4fa63067 | 14576 | || exit 1 |
a90ef4bf | 14577 | @endif libelf |
4fa63067 | 14578 | |
a7254363 PB |
14579 | |
14580 | ||
a90ef4bf JM |
14581 | .PHONY: configure-stage1-libelf maybe-configure-stage1-libelf |
14582 | maybe-configure-stage1-libelf: | |
14583 | @if libelf-bootstrap | |
14584 | maybe-configure-stage1-libelf: configure-stage1-libelf | |
14585 | configure-stage1-libelf: | |
c52c6897 | 14586 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
a90ef4bf | 14587 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf |
c52c6897 PB |
14588 | @r=`${PWD_COMMAND}`; export r; \ |
14589 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 14590 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
a90ef4bf | 14591 | test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \ |
1b05fbbd | 14592 | $(HOST_EXPORTS) \ |
8ee82aff | 14593 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
14594 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ |
14595 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
14596 | echo Configuring stage 1 in $(HOST_SUBDIR)/libelf; \ |
14597 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \ | |
a90ef4bf | 14598 | cd $(HOST_SUBDIR)/libelf || exit 1; \ |
d545f33b PB |
14599 | case $(srcdir) in \ |
14600 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 14601 | *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \ |
d545f33b PB |
14602 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
14603 | esac; \ | |
1b6c0831 L |
14604 | module_srcdir=libelf; \ |
14605 | $(SHELL) $$s/$$module_srcdir/configure \ | |
14606 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 14607 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
14608 | --target=${target_alias} \ |
14609 | \ | |
a90ef4bf JM |
14610 | $(STAGE1_CONFIGURE_FLAGS) \ |
14611 | --disable-shared | |
14612 | @endif libelf-bootstrap | |
d545f33b | 14613 | |
a90ef4bf JM |
14614 | .PHONY: configure-stage2-libelf maybe-configure-stage2-libelf |
14615 | maybe-configure-stage2-libelf: | |
14616 | @if libelf-bootstrap | |
14617 | maybe-configure-stage2-libelf: configure-stage2-libelf | |
14618 | configure-stage2-libelf: | |
c52c6897 | 14619 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
a90ef4bf | 14620 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf |
c52c6897 PB |
14621 | @r=`${PWD_COMMAND}`; export r; \ |
14622 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 14623 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
a90ef4bf | 14624 | test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \ |
d545f33b | 14625 | $(HOST_EXPORTS) \ |
1b05fbbd | 14626 | $(POSTSTAGE1_HOST_EXPORTS) \ |
8520c408 | 14627 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
14628 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ |
14629 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
14630 | echo Configuring stage 2 in $(HOST_SUBDIR)/libelf; \ |
14631 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \ | |
a90ef4bf | 14632 | cd $(HOST_SUBDIR)/libelf || exit 1; \ |
d545f33b PB |
14633 | case $(srcdir) in \ |
14634 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 14635 | *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \ |
d545f33b PB |
14636 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
14637 | esac; \ | |
1b6c0831 L |
14638 | module_srcdir=libelf; \ |
14639 | $(SHELL) $$s/$$module_srcdir/configure \ | |
14640 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 14641 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 14642 | --target=${target_alias} \ |
22121df0 | 14643 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
14644 | $(STAGE2_CONFIGURE_FLAGS) \ |
14645 | --disable-shared | |
14646 | @endif libelf-bootstrap | |
8520c408 | 14647 | |
a90ef4bf JM |
14648 | .PHONY: configure-stage3-libelf maybe-configure-stage3-libelf |
14649 | maybe-configure-stage3-libelf: | |
14650 | @if libelf-bootstrap | |
14651 | maybe-configure-stage3-libelf: configure-stage3-libelf | |
14652 | configure-stage3-libelf: | |
c52c6897 | 14653 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
a90ef4bf | 14654 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf |
c52c6897 PB |
14655 | @r=`${PWD_COMMAND}`; export r; \ |
14656 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 14657 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
a90ef4bf | 14658 | test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \ |
d545f33b | 14659 | $(HOST_EXPORTS) \ |
1b05fbbd | 14660 | $(POSTSTAGE1_HOST_EXPORTS) \ |
8520c408 | 14661 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
14662 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ |
14663 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
14664 | echo Configuring stage 3 in $(HOST_SUBDIR)/libelf; \ |
14665 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \ | |
a90ef4bf | 14666 | cd $(HOST_SUBDIR)/libelf || exit 1; \ |
d545f33b PB |
14667 | case $(srcdir) in \ |
14668 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 14669 | *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \ |
d545f33b PB |
14670 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
14671 | esac; \ | |
1b6c0831 L |
14672 | module_srcdir=libelf; \ |
14673 | $(SHELL) $$s/$$module_srcdir/configure \ | |
14674 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 14675 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 14676 | --target=${target_alias} \ |
22121df0 | 14677 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
14678 | $(STAGE3_CONFIGURE_FLAGS) \ |
14679 | --disable-shared | |
14680 | @endif libelf-bootstrap | |
8520c408 | 14681 | |
a90ef4bf JM |
14682 | .PHONY: configure-stage4-libelf maybe-configure-stage4-libelf |
14683 | maybe-configure-stage4-libelf: | |
14684 | @if libelf-bootstrap | |
14685 | maybe-configure-stage4-libelf: configure-stage4-libelf | |
14686 | configure-stage4-libelf: | |
c52c6897 | 14687 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
a90ef4bf | 14688 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf |
c52c6897 PB |
14689 | @r=`${PWD_COMMAND}`; export r; \ |
14690 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 14691 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
a90ef4bf | 14692 | test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \ |
d545f33b | 14693 | $(HOST_EXPORTS) \ |
1b05fbbd | 14694 | $(POSTSTAGE1_HOST_EXPORTS) \ |
8520c408 | 14695 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
14696 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ |
14697 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
14698 | echo Configuring stage 4 in $(HOST_SUBDIR)/libelf; \ |
14699 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \ | |
a90ef4bf | 14700 | cd $(HOST_SUBDIR)/libelf || exit 1; \ |
d545f33b PB |
14701 | case $(srcdir) in \ |
14702 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 14703 | *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \ |
d545f33b PB |
14704 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
14705 | esac; \ | |
1b6c0831 L |
14706 | module_srcdir=libelf; \ |
14707 | $(SHELL) $$s/$$module_srcdir/configure \ | |
14708 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 14709 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 14710 | --target=${target_alias} \ |
22121df0 | 14711 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
14712 | $(STAGE4_CONFIGURE_FLAGS) \ |
14713 | --disable-shared | |
14714 | @endif libelf-bootstrap | |
d545f33b | 14715 | |
a90ef4bf JM |
14716 | .PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf |
14717 | maybe-configure-stageprofile-libelf: | |
14718 | @if libelf-bootstrap | |
14719 | maybe-configure-stageprofile-libelf: configure-stageprofile-libelf | |
14720 | configure-stageprofile-libelf: | |
c52c6897 | 14721 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
a90ef4bf | 14722 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf |
c52c6897 PB |
14723 | @r=`${PWD_COMMAND}`; export r; \ |
14724 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 14725 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
a90ef4bf | 14726 | test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \ |
d545f33b | 14727 | $(HOST_EXPORTS) \ |
1b05fbbd AO |
14728 | $(POSTSTAGE1_HOST_EXPORTS) \ |
14729 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
1f53ca9a AO |
14730 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ |
14731 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
14732 | echo Configuring stage profile in $(HOST_SUBDIR)/libelf; \ |
14733 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \ | |
a90ef4bf | 14734 | cd $(HOST_SUBDIR)/libelf || exit 1; \ |
d545f33b PB |
14735 | case $(srcdir) in \ |
14736 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 14737 | *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \ |
d545f33b PB |
14738 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
14739 | esac; \ | |
1b6c0831 L |
14740 | module_srcdir=libelf; \ |
14741 | $(SHELL) $$s/$$module_srcdir/configure \ | |
14742 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 14743 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 14744 | --target=${target_alias} \ |
22121df0 | 14745 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
14746 | $(STAGEprofile_CONFIGURE_FLAGS) \ |
14747 | --disable-shared | |
14748 | @endif libelf-bootstrap | |
d545f33b | 14749 | |
a90ef4bf JM |
14750 | .PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf |
14751 | maybe-configure-stagefeedback-libelf: | |
14752 | @if libelf-bootstrap | |
14753 | maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf | |
14754 | configure-stagefeedback-libelf: | |
c52c6897 | 14755 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
a90ef4bf | 14756 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf |
c52c6897 PB |
14757 | @r=`${PWD_COMMAND}`; export r; \ |
14758 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 14759 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
a90ef4bf | 14760 | test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \ |
d545f33b | 14761 | $(HOST_EXPORTS) \ |
1b05fbbd AO |
14762 | $(POSTSTAGE1_HOST_EXPORTS) \ |
14763 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
1f53ca9a AO |
14764 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ |
14765 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
14766 | echo Configuring stage feedback in $(HOST_SUBDIR)/libelf; \ |
14767 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \ | |
a90ef4bf | 14768 | cd $(HOST_SUBDIR)/libelf || exit 1; \ |
d545f33b PB |
14769 | case $(srcdir) in \ |
14770 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 14771 | *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \ |
d545f33b PB |
14772 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
14773 | esac; \ | |
1b6c0831 L |
14774 | module_srcdir=libelf; \ |
14775 | $(SHELL) $$s/$$module_srcdir/configure \ | |
14776 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 14777 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 14778 | --target=${target_alias} \ |
22121df0 | 14779 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
14780 | $(STAGEfeedback_CONFIGURE_FLAGS) \ |
14781 | --disable-shared | |
14782 | @endif libelf-bootstrap | |
d545f33b PB |
14783 | |
14784 | ||
14785 | ||
14786 | ||
14787 | ||
a90ef4bf JM |
14788 | .PHONY: all-libelf maybe-all-libelf |
14789 | maybe-all-libelf: | |
4f0ef2d8 | 14790 | @if gcc-bootstrap |
a90ef4bf | 14791 | all-libelf: stage_current |
4f0ef2d8 | 14792 | @endif gcc-bootstrap |
a90ef4bf JM |
14793 | @if libelf |
14794 | TARGET-libelf=all | |
14795 | maybe-all-libelf: all-libelf | |
14796 | all-libelf: configure-libelf | |
c52c6897 | 14797 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 14798 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1f53ca9a | 14799 | $(HOST_EXPORTS) \ |
a90ef4bf | 14800 | (cd $(HOST_SUBDIR)/libelf && \ |
b3676d82 | 14801 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
14802 | $(TARGET-libelf)) |
14803 | @endif libelf | |
4fa63067 | 14804 | |
a7254363 | 14805 | |
d545f33b | 14806 | |
a90ef4bf JM |
14807 | .PHONY: all-stage1-libelf maybe-all-stage1-libelf |
14808 | .PHONY: clean-stage1-libelf maybe-clean-stage1-libelf | |
14809 | maybe-all-stage1-libelf: | |
14810 | maybe-clean-stage1-libelf: | |
14811 | @if libelf-bootstrap | |
14812 | maybe-all-stage1-libelf: all-stage1-libelf | |
14813 | all-stage1: all-stage1-libelf | |
14814 | TARGET-stage1-libelf = $(TARGET-libelf) | |
14815 | all-stage1-libelf: configure-stage1-libelf | |
c52c6897 | 14816 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
d545f33b PB |
14817 | @r=`${PWD_COMMAND}`; export r; \ |
14818 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 14819 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
1f53ca9a | 14820 | $(HOST_EXPORTS) \ |
a90ef4bf | 14821 | cd $(HOST_SUBDIR)/libelf && \ |
05a13254 | 14822 | \ |
7f6ef0c0 | 14823 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 14824 | CFLAGS="$(STAGE1_CFLAGS)" \ |
1f53ca9a | 14825 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ |
1b05fbbd AO |
14826 | LIBCFLAGS="$(LIBCFLAGS)" \ |
14827 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
14828 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
14829 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
14830 | $(EXTRA_HOST_FLAGS) \ |
14831 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 14832 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 14833 | $(TARGET-stage1-libelf) |
d545f33b | 14834 | |
a90ef4bf JM |
14835 | maybe-clean-stage1-libelf: clean-stage1-libelf |
14836 | clean-stage1: clean-stage1-libelf | |
14837 | clean-stage1-libelf: | |
9dbaa842 | 14838 | @if [ $(current_stage) = stage1 ]; then \ |
a90ef4bf | 14839 | [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \ |
9dbaa842 | 14840 | else \ |
a90ef4bf | 14841 | [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \ |
9dbaa842 DD |
14842 | $(MAKE) stage1-start; \ |
14843 | fi; \ | |
a90ef4bf | 14844 | cd $(HOST_SUBDIR)/libelf && \ |
7f6ef0c0 | 14845 | $(MAKE) $(EXTRA_HOST_FLAGS) \ |
b3676d82 | 14846 | $(STAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 14847 | @endif libelf-bootstrap |
d545f33b PB |
14848 | |
14849 | ||
a90ef4bf JM |
14850 | .PHONY: all-stage2-libelf maybe-all-stage2-libelf |
14851 | .PHONY: clean-stage2-libelf maybe-clean-stage2-libelf | |
14852 | maybe-all-stage2-libelf: | |
14853 | maybe-clean-stage2-libelf: | |
14854 | @if libelf-bootstrap | |
14855 | maybe-all-stage2-libelf: all-stage2-libelf | |
14856 | all-stage2: all-stage2-libelf | |
14857 | TARGET-stage2-libelf = $(TARGET-libelf) | |
14858 | all-stage2-libelf: configure-stage2-libelf | |
c52c6897 | 14859 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
d545f33b PB |
14860 | @r=`${PWD_COMMAND}`; export r; \ |
14861 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 14862 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
d545f33b | 14863 | $(HOST_EXPORTS) \ |
1f53ca9a | 14864 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 14865 | cd $(HOST_SUBDIR)/libelf && \ |
05a13254 | 14866 | \ |
7f6ef0c0 | 14867 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 14868 | CFLAGS="$(STAGE2_CFLAGS)" \ |
1f53ca9a | 14869 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ |
1b05fbbd AO |
14870 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ |
14871 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
14872 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
14873 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
a90ef4bf | 14874 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
05a13254 | 14875 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 14876 | $(TARGET-stage2-libelf) |
d545f33b | 14877 | |
a90ef4bf JM |
14878 | maybe-clean-stage2-libelf: clean-stage2-libelf |
14879 | clean-stage2: clean-stage2-libelf | |
14880 | clean-stage2-libelf: | |
9dbaa842 | 14881 | @if [ $(current_stage) = stage2 ]; then \ |
a90ef4bf | 14882 | [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \ |
9dbaa842 | 14883 | else \ |
a90ef4bf | 14884 | [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \ |
9dbaa842 DD |
14885 | $(MAKE) stage2-start; \ |
14886 | fi; \ | |
a90ef4bf | 14887 | cd $(HOST_SUBDIR)/libelf && \ |
b3676d82 | 14888 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 14889 | @endif libelf-bootstrap |
d545f33b PB |
14890 | |
14891 | ||
a90ef4bf JM |
14892 | .PHONY: all-stage3-libelf maybe-all-stage3-libelf |
14893 | .PHONY: clean-stage3-libelf maybe-clean-stage3-libelf | |
14894 | maybe-all-stage3-libelf: | |
14895 | maybe-clean-stage3-libelf: | |
14896 | @if libelf-bootstrap | |
14897 | maybe-all-stage3-libelf: all-stage3-libelf | |
14898 | all-stage3: all-stage3-libelf | |
14899 | TARGET-stage3-libelf = $(TARGET-libelf) | |
14900 | all-stage3-libelf: configure-stage3-libelf | |
c52c6897 | 14901 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
d545f33b PB |
14902 | @r=`${PWD_COMMAND}`; export r; \ |
14903 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 14904 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
d545f33b | 14905 | $(HOST_EXPORTS) \ |
1f53ca9a | 14906 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 14907 | cd $(HOST_SUBDIR)/libelf && \ |
05a13254 | 14908 | \ |
7f6ef0c0 | 14909 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 14910 | CFLAGS="$(STAGE3_CFLAGS)" \ |
1f53ca9a | 14911 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ |
1b05fbbd AO |
14912 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ |
14913 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
14914 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
14915 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
a90ef4bf | 14916 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
05a13254 | 14917 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 14918 | $(TARGET-stage3-libelf) |
d545f33b | 14919 | |
a90ef4bf JM |
14920 | maybe-clean-stage3-libelf: clean-stage3-libelf |
14921 | clean-stage3: clean-stage3-libelf | |
14922 | clean-stage3-libelf: | |
9dbaa842 | 14923 | @if [ $(current_stage) = stage3 ]; then \ |
a90ef4bf | 14924 | [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \ |
9dbaa842 | 14925 | else \ |
a90ef4bf | 14926 | [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \ |
9dbaa842 DD |
14927 | $(MAKE) stage3-start; \ |
14928 | fi; \ | |
a90ef4bf | 14929 | cd $(HOST_SUBDIR)/libelf && \ |
b3676d82 | 14930 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 14931 | @endif libelf-bootstrap |
d545f33b PB |
14932 | |
14933 | ||
a90ef4bf JM |
14934 | .PHONY: all-stage4-libelf maybe-all-stage4-libelf |
14935 | .PHONY: clean-stage4-libelf maybe-clean-stage4-libelf | |
14936 | maybe-all-stage4-libelf: | |
14937 | maybe-clean-stage4-libelf: | |
14938 | @if libelf-bootstrap | |
14939 | maybe-all-stage4-libelf: all-stage4-libelf | |
14940 | all-stage4: all-stage4-libelf | |
14941 | TARGET-stage4-libelf = $(TARGET-libelf) | |
14942 | all-stage4-libelf: configure-stage4-libelf | |
c52c6897 | 14943 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
d545f33b PB |
14944 | @r=`${PWD_COMMAND}`; export r; \ |
14945 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 14946 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
d545f33b | 14947 | $(HOST_EXPORTS) \ |
1f53ca9a | 14948 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 14949 | cd $(HOST_SUBDIR)/libelf && \ |
05a13254 | 14950 | \ |
7f6ef0c0 | 14951 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 14952 | CFLAGS="$(STAGE4_CFLAGS)" \ |
1f53ca9a | 14953 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ |
7f6ef0c0 | 14954 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ |
1b05fbbd AO |
14955 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ |
14956 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
14957 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
a90ef4bf | 14958 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
05a13254 | 14959 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 14960 | $(TARGET-stage4-libelf) |
d545f33b | 14961 | |
a90ef4bf JM |
14962 | maybe-clean-stage4-libelf: clean-stage4-libelf |
14963 | clean-stage4: clean-stage4-libelf | |
14964 | clean-stage4-libelf: | |
9dbaa842 | 14965 | @if [ $(current_stage) = stage4 ]; then \ |
a90ef4bf | 14966 | [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \ |
9dbaa842 | 14967 | else \ |
a90ef4bf | 14968 | [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \ |
9dbaa842 DD |
14969 | $(MAKE) stage4-start; \ |
14970 | fi; \ | |
a90ef4bf | 14971 | cd $(HOST_SUBDIR)/libelf && \ |
b3676d82 | 14972 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 14973 | @endif libelf-bootstrap |
d545f33b PB |
14974 | |
14975 | ||
a90ef4bf JM |
14976 | .PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf |
14977 | .PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf | |
14978 | maybe-all-stageprofile-libelf: | |
14979 | maybe-clean-stageprofile-libelf: | |
14980 | @if libelf-bootstrap | |
14981 | maybe-all-stageprofile-libelf: all-stageprofile-libelf | |
14982 | all-stageprofile: all-stageprofile-libelf | |
14983 | TARGET-stageprofile-libelf = $(TARGET-libelf) | |
14984 | all-stageprofile-libelf: configure-stageprofile-libelf | |
c52c6897 | 14985 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
d545f33b PB |
14986 | @r=`${PWD_COMMAND}`; export r; \ |
14987 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 14988 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
d545f33b | 14989 | $(HOST_EXPORTS) \ |
1f53ca9a | 14990 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 14991 | cd $(HOST_SUBDIR)/libelf && \ |
05a13254 | 14992 | \ |
7f6ef0c0 | 14993 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 14994 | CFLAGS="$(STAGEprofile_CFLAGS)" \ |
1f53ca9a | 14995 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ |
1b05fbbd AO |
14996 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ |
14997 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
14998 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
14999 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
a90ef4bf | 15000 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
05a13254 | 15001 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf | 15002 | $(TARGET-stageprofile-libelf) |
d545f33b | 15003 | |
a90ef4bf JM |
15004 | maybe-clean-stageprofile-libelf: clean-stageprofile-libelf |
15005 | clean-stageprofile: clean-stageprofile-libelf | |
15006 | clean-stageprofile-libelf: | |
9dbaa842 | 15007 | @if [ $(current_stage) = stageprofile ]; then \ |
a90ef4bf | 15008 | [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \ |
9dbaa842 | 15009 | else \ |
a90ef4bf | 15010 | [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \ |
9dbaa842 DD |
15011 | $(MAKE) stageprofile-start; \ |
15012 | fi; \ | |
a90ef4bf | 15013 | cd $(HOST_SUBDIR)/libelf && \ |
b3676d82 | 15014 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 15015 | @endif libelf-bootstrap |
d545f33b PB |
15016 | |
15017 | ||
a90ef4bf JM |
15018 | .PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf |
15019 | .PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf | |
15020 | maybe-all-stagefeedback-libelf: | |
15021 | maybe-clean-stagefeedback-libelf: | |
15022 | @if libelf-bootstrap | |
15023 | maybe-all-stagefeedback-libelf: all-stagefeedback-libelf | |
15024 | all-stagefeedback: all-stagefeedback-libelf | |
15025 | TARGET-stagefeedback-libelf = $(TARGET-libelf) | |
15026 | all-stagefeedback-libelf: configure-stagefeedback-libelf | |
c52c6897 | 15027 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
d545f33b PB |
15028 | @r=`${PWD_COMMAND}`; export r; \ |
15029 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 15030 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
d545f33b | 15031 | $(HOST_EXPORTS) \ |
1f53ca9a | 15032 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 15033 | cd $(HOST_SUBDIR)/libelf && \ |
05a13254 | 15034 | \ |
7f6ef0c0 | 15035 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 15036 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ |
1f53ca9a | 15037 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ |
1b05fbbd AO |
15038 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ |
15039 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
15040 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
15041 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
a90ef4bf | 15042 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
05a13254 | 15043 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf | 15044 | $(TARGET-stagefeedback-libelf) |
d545f33b | 15045 | |
a90ef4bf JM |
15046 | maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf |
15047 | clean-stagefeedback: clean-stagefeedback-libelf | |
15048 | clean-stagefeedback-libelf: | |
9dbaa842 | 15049 | @if [ $(current_stage) = stagefeedback ]; then \ |
a90ef4bf | 15050 | [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \ |
9dbaa842 | 15051 | else \ |
a90ef4bf | 15052 | [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \ |
9dbaa842 DD |
15053 | $(MAKE) stagefeedback-start; \ |
15054 | fi; \ | |
a90ef4bf | 15055 | cd $(HOST_SUBDIR)/libelf && \ |
b3676d82 | 15056 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 15057 | @endif libelf-bootstrap |
d545f33b PB |
15058 | |
15059 | ||
15060 | ||
15061 | ||
15062 | ||
a90ef4bf JM |
15063 | .PHONY: check-libelf maybe-check-libelf |
15064 | maybe-check-libelf: | |
15065 | @if libelf | |
15066 | maybe-check-libelf: check-libelf | |
4fa63067 | 15067 | |
a90ef4bf | 15068 | check-libelf: |
0aed8855 | 15069 | @: $(MAKE); $(unstage) |
4fa63067 NN |
15070 | @r=`${PWD_COMMAND}`; export r; \ |
15071 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 15072 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 15073 | (cd $(HOST_SUBDIR)/libelf && \ |
f91ca6bc | 15074 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
4fa63067 | 15075 | |
a90ef4bf | 15076 | @endif libelf |
4fa63067 | 15077 | |
a90ef4bf JM |
15078 | .PHONY: install-libelf maybe-install-libelf |
15079 | maybe-install-libelf: | |
15080 | @if libelf | |
15081 | maybe-install-libelf: install-libelf | |
4fa63067 | 15082 | |
a90ef4bf | 15083 | install-libelf: |
4fa63067 | 15084 | |
a90ef4bf | 15085 | @endif libelf |
4fa63067 | 15086 | |
a90ef4bf JM |
15087 | .PHONY: install-strip-libelf maybe-install-strip-libelf |
15088 | maybe-install-strip-libelf: | |
15089 | @if libelf | |
15090 | maybe-install-strip-libelf: install-strip-libelf | |
9b980aa1 | 15091 | |
a90ef4bf | 15092 | install-strip-libelf: |
9b980aa1 | 15093 | |
a90ef4bf | 15094 | @endif libelf |
9b980aa1 | 15095 | |
56a8fe78 | 15096 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 15097 | |
a90ef4bf JM |
15098 | .PHONY: maybe-info-libelf info-libelf |
15099 | maybe-info-libelf: | |
15100 | @if libelf | |
15101 | maybe-info-libelf: info-libelf | |
4fa63067 | 15102 | |
a90ef4bf JM |
15103 | info-libelf: \ |
15104 | configure-libelf | |
15105 | @[ -f ./libelf/Makefile ] || exit 0; \ | |
b40e3958 L |
15106 | r=`${PWD_COMMAND}`; export r; \ |
15107 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15108 | $(HOST_EXPORTS) \ |
a90ef4bf | 15109 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15110 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15111 | done; \ | |
22121df0 | 15112 | echo "Doing info in libelf"; \ |
a90ef4bf | 15113 | (cd $(HOST_SUBDIR)/libelf && \ |
2a4cbe27 NN |
15114 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15115 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15116 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 15117 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 15118 | info) \ |
2a4cbe27 NN |
15119 | || exit 1 |
15120 | ||
a90ef4bf | 15121 | @endif libelf |
2a4cbe27 | 15122 | |
a90ef4bf JM |
15123 | .PHONY: maybe-dvi-libelf dvi-libelf |
15124 | maybe-dvi-libelf: | |
15125 | @if libelf | |
15126 | maybe-dvi-libelf: dvi-libelf | |
2a4cbe27 | 15127 | |
a90ef4bf JM |
15128 | dvi-libelf: \ |
15129 | configure-libelf | |
15130 | @[ -f ./libelf/Makefile ] || exit 0; \ | |
b40e3958 L |
15131 | r=`${PWD_COMMAND}`; export r; \ |
15132 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15133 | $(HOST_EXPORTS) \ |
a90ef4bf | 15134 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15135 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15136 | done; \ | |
22121df0 | 15137 | echo "Doing dvi in libelf"; \ |
a90ef4bf | 15138 | (cd $(HOST_SUBDIR)/libelf && \ |
2a4cbe27 NN |
15139 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15140 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15141 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 15142 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 15143 | dvi) \ |
2a4cbe27 NN |
15144 | || exit 1 |
15145 | ||
a90ef4bf | 15146 | @endif libelf |
2a4cbe27 | 15147 | |
a90ef4bf JM |
15148 | .PHONY: maybe-pdf-libelf pdf-libelf |
15149 | maybe-pdf-libelf: | |
15150 | @if libelf | |
15151 | maybe-pdf-libelf: pdf-libelf | |
56a8fe78 | 15152 | |
a90ef4bf JM |
15153 | pdf-libelf: \ |
15154 | configure-libelf | |
15155 | @[ -f ./libelf/Makefile ] || exit 0; \ | |
56a8fe78 DD |
15156 | r=`${PWD_COMMAND}`; export r; \ |
15157 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
15158 | $(HOST_EXPORTS) \ | |
a90ef4bf | 15159 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
56a8fe78 DD |
15160 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15161 | done; \ | |
22121df0 | 15162 | echo "Doing pdf in libelf"; \ |
a90ef4bf | 15163 | (cd $(HOST_SUBDIR)/libelf && \ |
56a8fe78 DD |
15164 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15165 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15166 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 15167 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
15168 | pdf) \ |
15169 | || exit 1 | |
15170 | ||
a90ef4bf | 15171 | @endif libelf |
56a8fe78 | 15172 | |
a90ef4bf JM |
15173 | .PHONY: maybe-html-libelf html-libelf |
15174 | maybe-html-libelf: | |
15175 | @if libelf | |
15176 | maybe-html-libelf: html-libelf | |
6d389afc | 15177 | |
a90ef4bf JM |
15178 | html-libelf: \ |
15179 | configure-libelf | |
15180 | @[ -f ./libelf/Makefile ] || exit 0; \ | |
6d389afc MS |
15181 | r=`${PWD_COMMAND}`; export r; \ |
15182 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 15183 | $(HOST_EXPORTS) \ |
a90ef4bf | 15184 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
6d389afc MS |
15185 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15186 | done; \ | |
22121df0 | 15187 | echo "Doing html in libelf"; \ |
a90ef4bf | 15188 | (cd $(HOST_SUBDIR)/libelf && \ |
6d389afc MS |
15189 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15190 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15191 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 15192 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
15193 | html) \ |
15194 | || exit 1 | |
15195 | ||
a90ef4bf | 15196 | @endif libelf |
6d389afc | 15197 | |
a90ef4bf JM |
15198 | .PHONY: maybe-TAGS-libelf TAGS-libelf |
15199 | maybe-TAGS-libelf: | |
15200 | @if libelf | |
15201 | maybe-TAGS-libelf: TAGS-libelf | |
2a4cbe27 | 15202 | |
a90ef4bf JM |
15203 | TAGS-libelf: \ |
15204 | configure-libelf | |
15205 | @[ -f ./libelf/Makefile ] || exit 0; \ | |
b40e3958 L |
15206 | r=`${PWD_COMMAND}`; export r; \ |
15207 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15208 | $(HOST_EXPORTS) \ |
a90ef4bf | 15209 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15210 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15211 | done; \ | |
22121df0 | 15212 | echo "Doing TAGS in libelf"; \ |
a90ef4bf | 15213 | (cd $(HOST_SUBDIR)/libelf && \ |
2a4cbe27 NN |
15214 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15215 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15216 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 15217 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 15218 | TAGS) \ |
2a4cbe27 NN |
15219 | || exit 1 |
15220 | ||
a90ef4bf | 15221 | @endif libelf |
2a4cbe27 | 15222 | |
a90ef4bf JM |
15223 | .PHONY: maybe-install-info-libelf install-info-libelf |
15224 | maybe-install-info-libelf: | |
15225 | @if libelf | |
15226 | maybe-install-info-libelf: install-info-libelf | |
a2592b1b | 15227 | |
a90ef4bf JM |
15228 | install-info-libelf: \ |
15229 | configure-libelf \ | |
15230 | info-libelf | |
15231 | @[ -f ./libelf/Makefile ] || exit 0; \ | |
a2592b1b DD |
15232 | r=`${PWD_COMMAND}`; export r; \ |
15233 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15234 | $(HOST_EXPORTS) \ |
a90ef4bf | 15235 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
a2592b1b DD |
15236 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15237 | done; \ | |
22121df0 | 15238 | echo "Doing install-info in libelf"; \ |
a90ef4bf | 15239 | (cd $(HOST_SUBDIR)/libelf && \ |
a2592b1b DD |
15240 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15241 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15242 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 15243 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 15244 | install-info) \ |
a2592b1b DD |
15245 | || exit 1 |
15246 | ||
a90ef4bf | 15247 | @endif libelf |
a2592b1b | 15248 | |
a90ef4bf JM |
15249 | .PHONY: maybe-install-pdf-libelf install-pdf-libelf |
15250 | maybe-install-pdf-libelf: | |
15251 | @if libelf | |
15252 | maybe-install-pdf-libelf: install-pdf-libelf | |
a3ca38d2 | 15253 | |
a90ef4bf JM |
15254 | install-pdf-libelf: \ |
15255 | configure-libelf \ | |
15256 | pdf-libelf | |
15257 | @[ -f ./libelf/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
15258 | r=`${PWD_COMMAND}`; export r; \ |
15259 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
15260 | $(HOST_EXPORTS) \ | |
a90ef4bf | 15261 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
a3ca38d2 DD |
15262 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15263 | done; \ | |
22121df0 | 15264 | echo "Doing install-pdf in libelf"; \ |
a90ef4bf | 15265 | (cd $(HOST_SUBDIR)/libelf && \ |
a3ca38d2 DD |
15266 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15267 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15268 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 15269 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
15270 | install-pdf) \ |
15271 | || exit 1 | |
15272 | ||
a90ef4bf | 15273 | @endif libelf |
a3ca38d2 | 15274 | |
a90ef4bf JM |
15275 | .PHONY: maybe-install-html-libelf install-html-libelf |
15276 | maybe-install-html-libelf: | |
15277 | @if libelf | |
15278 | maybe-install-html-libelf: install-html-libelf | |
108a6f8e | 15279 | |
a90ef4bf JM |
15280 | install-html-libelf: \ |
15281 | configure-libelf \ | |
15282 | html-libelf | |
15283 | @[ -f ./libelf/Makefile ] || exit 0; \ | |
108a6f8e CD |
15284 | r=`${PWD_COMMAND}`; export r; \ |
15285 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
15286 | $(HOST_EXPORTS) \ | |
a90ef4bf | 15287 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
108a6f8e CD |
15288 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15289 | done; \ | |
22121df0 | 15290 | echo "Doing install-html in libelf"; \ |
a90ef4bf | 15291 | (cd $(HOST_SUBDIR)/libelf && \ |
108a6f8e CD |
15292 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15293 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15294 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 15295 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
15296 | install-html) \ |
15297 | || exit 1 | |
15298 | ||
a90ef4bf | 15299 | @endif libelf |
108a6f8e | 15300 | |
a90ef4bf JM |
15301 | .PHONY: maybe-installcheck-libelf installcheck-libelf |
15302 | maybe-installcheck-libelf: | |
15303 | @if libelf | |
15304 | maybe-installcheck-libelf: installcheck-libelf | |
2a4cbe27 | 15305 | |
a90ef4bf JM |
15306 | installcheck-libelf: \ |
15307 | configure-libelf | |
15308 | @[ -f ./libelf/Makefile ] || exit 0; \ | |
4fa63067 NN |
15309 | r=`${PWD_COMMAND}`; export r; \ |
15310 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15311 | $(HOST_EXPORTS) \ |
a90ef4bf | 15312 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
15313 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15314 | done; \ | |
22121df0 | 15315 | echo "Doing installcheck in libelf"; \ |
a90ef4bf | 15316 | (cd $(HOST_SUBDIR)/libelf && \ |
4fa63067 NN |
15317 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15318 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15319 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 15320 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 15321 | installcheck) \ |
4fa63067 | 15322 | || exit 1 |
2a4cbe27 | 15323 | |
a90ef4bf | 15324 | @endif libelf |
4fa63067 | 15325 | |
a90ef4bf JM |
15326 | .PHONY: maybe-mostlyclean-libelf mostlyclean-libelf |
15327 | maybe-mostlyclean-libelf: | |
15328 | @if libelf | |
15329 | maybe-mostlyclean-libelf: mostlyclean-libelf | |
4fa63067 | 15330 | |
a90ef4bf JM |
15331 | mostlyclean-libelf: |
15332 | @[ -f ./libelf/Makefile ] || exit 0; \ | |
b40e3958 L |
15333 | r=`${PWD_COMMAND}`; export r; \ |
15334 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15335 | $(HOST_EXPORTS) \ |
a90ef4bf | 15336 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15337 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15338 | done; \ | |
22121df0 | 15339 | echo "Doing mostlyclean in libelf"; \ |
a90ef4bf | 15340 | (cd $(HOST_SUBDIR)/libelf && \ |
2a4cbe27 NN |
15341 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15342 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15343 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 15344 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 15345 | mostlyclean) \ |
2a4cbe27 NN |
15346 | || exit 1 |
15347 | ||
a90ef4bf | 15348 | @endif libelf |
2a4cbe27 | 15349 | |
a90ef4bf JM |
15350 | .PHONY: maybe-clean-libelf clean-libelf |
15351 | maybe-clean-libelf: | |
15352 | @if libelf | |
15353 | maybe-clean-libelf: clean-libelf | |
2a4cbe27 | 15354 | |
a90ef4bf JM |
15355 | clean-libelf: |
15356 | @[ -f ./libelf/Makefile ] || exit 0; \ | |
b40e3958 L |
15357 | r=`${PWD_COMMAND}`; export r; \ |
15358 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15359 | $(HOST_EXPORTS) \ |
a90ef4bf | 15360 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15361 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15362 | done; \ | |
22121df0 | 15363 | echo "Doing clean in libelf"; \ |
a90ef4bf | 15364 | (cd $(HOST_SUBDIR)/libelf && \ |
2a4cbe27 NN |
15365 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15366 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15367 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 15368 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 15369 | clean) \ |
2a4cbe27 NN |
15370 | || exit 1 |
15371 | ||
a90ef4bf | 15372 | @endif libelf |
2a4cbe27 | 15373 | |
a90ef4bf JM |
15374 | .PHONY: maybe-distclean-libelf distclean-libelf |
15375 | maybe-distclean-libelf: | |
15376 | @if libelf | |
15377 | maybe-distclean-libelf: distclean-libelf | |
2a4cbe27 | 15378 | |
a90ef4bf JM |
15379 | distclean-libelf: |
15380 | @[ -f ./libelf/Makefile ] || exit 0; \ | |
b40e3958 L |
15381 | r=`${PWD_COMMAND}`; export r; \ |
15382 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15383 | $(HOST_EXPORTS) \ |
a90ef4bf | 15384 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15385 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15386 | done; \ | |
22121df0 | 15387 | echo "Doing distclean in libelf"; \ |
a90ef4bf | 15388 | (cd $(HOST_SUBDIR)/libelf && \ |
2a4cbe27 NN |
15389 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15390 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15391 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 15392 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 15393 | distclean) \ |
2a4cbe27 NN |
15394 | || exit 1 |
15395 | ||
a90ef4bf | 15396 | @endif libelf |
2a4cbe27 | 15397 | |
a90ef4bf JM |
15398 | .PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf |
15399 | maybe-maintainer-clean-libelf: | |
15400 | @if libelf | |
15401 | maybe-maintainer-clean-libelf: maintainer-clean-libelf | |
2a4cbe27 | 15402 | |
a90ef4bf JM |
15403 | maintainer-clean-libelf: |
15404 | @[ -f ./libelf/Makefile ] || exit 0; \ | |
b40e3958 L |
15405 | r=`${PWD_COMMAND}`; export r; \ |
15406 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15407 | $(HOST_EXPORTS) \ |
a90ef4bf | 15408 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15409 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15410 | done; \ | |
22121df0 | 15411 | echo "Doing maintainer-clean in libelf"; \ |
a90ef4bf | 15412 | (cd $(HOST_SUBDIR)/libelf && \ |
2a4cbe27 NN |
15413 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15414 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15415 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 15416 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 15417 | maintainer-clean) \ |
2a4cbe27 NN |
15418 | || exit 1 |
15419 | ||
a90ef4bf | 15420 | @endif libelf |
2a4cbe27 | 15421 | |
2a4cbe27 | 15422 | |
a7254363 | 15423 | |
a90ef4bf JM |
15424 | .PHONY: configure-gold maybe-configure-gold |
15425 | maybe-configure-gold: | |
4f0ef2d8 | 15426 | @if gcc-bootstrap |
a90ef4bf | 15427 | configure-gold: stage_current |
4f0ef2d8 | 15428 | @endif gcc-bootstrap |
a90ef4bf JM |
15429 | @if gold |
15430 | maybe-configure-gold: configure-gold | |
15431 | configure-gold: | |
c52c6897 | 15432 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 15433 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 15434 | test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \ |
22121df0 | 15435 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \ |
1f53ca9a | 15436 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
15437 | echo Configuring in $(HOST_SUBDIR)/gold; \ |
15438 | cd "$(HOST_SUBDIR)/gold" || exit 1; \ | |
4fa63067 | 15439 | case $(srcdir) in \ |
b00612cc | 15440 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 15441 | *) topdir=`echo $(HOST_SUBDIR)/gold/ | \ |
b00612cc | 15442 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 15443 | esac; \ |
1b6c0831 L |
15444 | module_srcdir=gold; \ |
15445 | $(SHELL) \ | |
15446 | $$s/$$module_srcdir/configure \ | |
15447 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 15448 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 15449 | --target=${target_alias} \ |
4fa63067 | 15450 | || exit 1 |
a90ef4bf | 15451 | @endif gold |
a7254363 | 15452 | |
d545f33b PB |
15453 | |
15454 | ||
a90ef4bf JM |
15455 | .PHONY: configure-stage1-gold maybe-configure-stage1-gold |
15456 | maybe-configure-stage1-gold: | |
15457 | @if gold-bootstrap | |
15458 | maybe-configure-stage1-gold: configure-stage1-gold | |
15459 | configure-stage1-gold: | |
15460 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
15461 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold | |
4fa63067 NN |
15462 | @r=`${PWD_COMMAND}`; export r; \ |
15463 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
15464 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
15465 | test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \ | |
15466 | $(HOST_EXPORTS) \ | |
15467 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ | |
15468 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
15469 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
15470 | echo Configuring stage 1 in $(HOST_SUBDIR)/gold; \ |
15471 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \ | |
a90ef4bf JM |
15472 | cd $(HOST_SUBDIR)/gold || exit 1; \ |
15473 | case $(srcdir) in \ | |
15474 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
15475 | *) topdir=`echo $(HOST_SUBDIR)/gold/ | \ | |
15476 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
15477 | esac; \ | |
1b6c0831 L |
15478 | module_srcdir=gold; \ |
15479 | $(SHELL) $$s/$$module_srcdir/configure \ | |
15480 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 15481 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
15482 | --target=${target_alias} \ |
15483 | \ | |
a90ef4bf JM |
15484 | $(STAGE1_CONFIGURE_FLAGS) |
15485 | @endif gold-bootstrap | |
4fa63067 | 15486 | |
a90ef4bf JM |
15487 | .PHONY: configure-stage2-gold maybe-configure-stage2-gold |
15488 | maybe-configure-stage2-gold: | |
15489 | @if gold-bootstrap | |
15490 | maybe-configure-stage2-gold: configure-stage2-gold | |
15491 | configure-stage2-gold: | |
15492 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
15493 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold | |
4fa63067 NN |
15494 | @r=`${PWD_COMMAND}`; export r; \ |
15495 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
15496 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
15497 | test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \ | |
378fce5b | 15498 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
15499 | $(POSTSTAGE1_HOST_EXPORTS) \ |
15500 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
15501 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
15502 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
15503 | echo Configuring stage 2 in $(HOST_SUBDIR)/gold; \ |
15504 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \ | |
a90ef4bf JM |
15505 | cd $(HOST_SUBDIR)/gold || exit 1; \ |
15506 | case $(srcdir) in \ | |
15507 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
15508 | *) topdir=`echo $(HOST_SUBDIR)/gold/ | \ | |
15509 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
15510 | esac; \ | |
1b6c0831 L |
15511 | module_srcdir=gold; \ |
15512 | $(SHELL) $$s/$$module_srcdir/configure \ | |
15513 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 15514 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 15515 | --target=${target_alias} \ |
22121df0 | 15516 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
15517 | $(STAGE2_CONFIGURE_FLAGS) |
15518 | @endif gold-bootstrap | |
4fa63067 | 15519 | |
a90ef4bf JM |
15520 | .PHONY: configure-stage3-gold maybe-configure-stage3-gold |
15521 | maybe-configure-stage3-gold: | |
15522 | @if gold-bootstrap | |
15523 | maybe-configure-stage3-gold: configure-stage3-gold | |
15524 | configure-stage3-gold: | |
15525 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
15526 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold | |
4fa63067 NN |
15527 | @r=`${PWD_COMMAND}`; export r; \ |
15528 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
15529 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
15530 | test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \ | |
378fce5b | 15531 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
15532 | $(POSTSTAGE1_HOST_EXPORTS) \ |
15533 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
15534 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
15535 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
15536 | echo Configuring stage 3 in $(HOST_SUBDIR)/gold; \ |
15537 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \ | |
a90ef4bf JM |
15538 | cd $(HOST_SUBDIR)/gold || exit 1; \ |
15539 | case $(srcdir) in \ | |
15540 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
15541 | *) topdir=`echo $(HOST_SUBDIR)/gold/ | \ | |
15542 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
15543 | esac; \ | |
1b6c0831 L |
15544 | module_srcdir=gold; \ |
15545 | $(SHELL) $$s/$$module_srcdir/configure \ | |
15546 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 15547 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 15548 | --target=${target_alias} \ |
22121df0 | 15549 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
15550 | $(STAGE3_CONFIGURE_FLAGS) |
15551 | @endif gold-bootstrap | |
9b980aa1 | 15552 | |
a90ef4bf JM |
15553 | .PHONY: configure-stage4-gold maybe-configure-stage4-gold |
15554 | maybe-configure-stage4-gold: | |
15555 | @if gold-bootstrap | |
15556 | maybe-configure-stage4-gold: configure-stage4-gold | |
15557 | configure-stage4-gold: | |
15558 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
15559 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold | |
9b980aa1 RW |
15560 | @r=`${PWD_COMMAND}`; export r; \ |
15561 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
15562 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
15563 | test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \ | |
9b980aa1 | 15564 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
15565 | $(POSTSTAGE1_HOST_EXPORTS) \ |
15566 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
15567 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
15568 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
15569 | echo Configuring stage 4 in $(HOST_SUBDIR)/gold; \ |
15570 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \ | |
a90ef4bf JM |
15571 | cd $(HOST_SUBDIR)/gold || exit 1; \ |
15572 | case $(srcdir) in \ | |
15573 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
15574 | *) topdir=`echo $(HOST_SUBDIR)/gold/ | \ | |
15575 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
15576 | esac; \ | |
1b6c0831 L |
15577 | module_srcdir=gold; \ |
15578 | $(SHELL) $$s/$$module_srcdir/configure \ | |
15579 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 15580 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 15581 | --target=${target_alias} \ |
22121df0 | 15582 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
15583 | $(STAGE4_CONFIGURE_FLAGS) |
15584 | @endif gold-bootstrap | |
4fa63067 | 15585 | |
a90ef4bf JM |
15586 | .PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold |
15587 | maybe-configure-stageprofile-gold: | |
15588 | @if gold-bootstrap | |
15589 | maybe-configure-stageprofile-gold: configure-stageprofile-gold | |
15590 | configure-stageprofile-gold: | |
15591 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
15592 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold | |
15593 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 15594 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
15595 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
15596 | test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \ | |
378fce5b | 15597 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
15598 | $(POSTSTAGE1_HOST_EXPORTS) \ |
15599 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
15600 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
15601 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
15602 | echo Configuring stage profile in $(HOST_SUBDIR)/gold; \ |
15603 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \ | |
a90ef4bf JM |
15604 | cd $(HOST_SUBDIR)/gold || exit 1; \ |
15605 | case $(srcdir) in \ | |
15606 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
15607 | *) topdir=`echo $(HOST_SUBDIR)/gold/ | \ | |
15608 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
15609 | esac; \ | |
1b6c0831 L |
15610 | module_srcdir=gold; \ |
15611 | $(SHELL) $$s/$$module_srcdir/configure \ | |
15612 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 15613 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 15614 | --target=${target_alias} \ |
22121df0 | 15615 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
15616 | $(STAGEprofile_CONFIGURE_FLAGS) |
15617 | @endif gold-bootstrap | |
2a4cbe27 | 15618 | |
a90ef4bf JM |
15619 | .PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold |
15620 | maybe-configure-stagefeedback-gold: | |
15621 | @if gold-bootstrap | |
15622 | maybe-configure-stagefeedback-gold: configure-stagefeedback-gold | |
15623 | configure-stagefeedback-gold: | |
15624 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
15625 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold | |
15626 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 15627 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
15628 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
15629 | test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \ | |
378fce5b | 15630 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
15631 | $(POSTSTAGE1_HOST_EXPORTS) \ |
15632 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
15633 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
15634 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
15635 | echo Configuring stage feedback in $(HOST_SUBDIR)/gold; \ |
15636 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \ | |
a90ef4bf JM |
15637 | cd $(HOST_SUBDIR)/gold || exit 1; \ |
15638 | case $(srcdir) in \ | |
15639 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
15640 | *) topdir=`echo $(HOST_SUBDIR)/gold/ | \ | |
15641 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
15642 | esac; \ | |
1b6c0831 L |
15643 | module_srcdir=gold; \ |
15644 | $(SHELL) $$s/$$module_srcdir/configure \ | |
15645 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 15646 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 15647 | --target=${target_alias} \ |
22121df0 | 15648 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
15649 | $(STAGEfeedback_CONFIGURE_FLAGS) |
15650 | @endif gold-bootstrap | |
2a4cbe27 | 15651 | |
56a8fe78 | 15652 | |
56a8fe78 | 15653 | |
56a8fe78 | 15654 | |
6d389afc | 15655 | |
a90ef4bf JM |
15656 | .PHONY: all-gold maybe-all-gold |
15657 | maybe-all-gold: | |
15658 | @if gcc-bootstrap | |
15659 | all-gold: stage_current | |
15660 | @endif gcc-bootstrap | |
15661 | @if gold | |
15662 | TARGET-gold=all | |
15663 | maybe-all-gold: all-gold | |
15664 | all-gold: configure-gold | |
15665 | @r=`${PWD_COMMAND}`; export r; \ | |
6d389afc | 15666 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
15667 | $(HOST_EXPORTS) \ |
15668 | (cd $(HOST_SUBDIR)/gold && \ | |
b3676d82 | 15669 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
15670 | $(TARGET-gold)) |
15671 | @endif gold | |
6d389afc | 15672 | |
6d389afc | 15673 | |
2a4cbe27 | 15674 | |
a90ef4bf JM |
15675 | .PHONY: all-stage1-gold maybe-all-stage1-gold |
15676 | .PHONY: clean-stage1-gold maybe-clean-stage1-gold | |
15677 | maybe-all-stage1-gold: | |
15678 | maybe-clean-stage1-gold: | |
15679 | @if gold-bootstrap | |
15680 | maybe-all-stage1-gold: all-stage1-gold | |
15681 | all-stage1: all-stage1-gold | |
15682 | TARGET-stage1-gold = $(TARGET-gold) | |
15683 | all-stage1-gold: configure-stage1-gold | |
15684 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
15685 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 15686 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
15687 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
15688 | $(HOST_EXPORTS) \ | |
15689 | cd $(HOST_SUBDIR)/gold && \ | |
05a13254 | 15690 | \ |
a90ef4bf JM |
15691 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
15692 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
15693 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
15694 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
15695 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
15696 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
15697 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
15698 | $(EXTRA_HOST_FLAGS) \ |
15699 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 15700 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 15701 | $(TARGET-stage1-gold) |
2a4cbe27 | 15702 | |
a90ef4bf JM |
15703 | maybe-clean-stage1-gold: clean-stage1-gold |
15704 | clean-stage1: clean-stage1-gold | |
15705 | clean-stage1-gold: | |
15706 | @if [ $(current_stage) = stage1 ]; then \ | |
15707 | [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \ | |
15708 | else \ | |
15709 | [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \ | |
15710 | $(MAKE) stage1-start; \ | |
15711 | fi; \ | |
15712 | cd $(HOST_SUBDIR)/gold && \ | |
15713 | $(MAKE) $(EXTRA_HOST_FLAGS) \ | |
b3676d82 | 15714 | $(STAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 15715 | @endif gold-bootstrap |
2a4cbe27 | 15716 | |
2a4cbe27 | 15717 | |
a90ef4bf JM |
15718 | .PHONY: all-stage2-gold maybe-all-stage2-gold |
15719 | .PHONY: clean-stage2-gold maybe-clean-stage2-gold | |
15720 | maybe-all-stage2-gold: | |
15721 | maybe-clean-stage2-gold: | |
15722 | @if gold-bootstrap | |
15723 | maybe-all-stage2-gold: all-stage2-gold | |
15724 | all-stage2: all-stage2-gold | |
15725 | TARGET-stage2-gold = $(TARGET-gold) | |
15726 | all-stage2-gold: configure-stage2-gold | |
15727 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
15728 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 15729 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 15730 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
378fce5b | 15731 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
15732 | $(POSTSTAGE1_HOST_EXPORTS) \ |
15733 | cd $(HOST_SUBDIR)/gold && \ | |
05a13254 | 15734 | \ |
a90ef4bf JM |
15735 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
15736 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
15737 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
15738 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
15739 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
15740 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
15741 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
15742 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 15743 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 15744 | $(TARGET-stage2-gold) |
2a4cbe27 | 15745 | |
a90ef4bf JM |
15746 | maybe-clean-stage2-gold: clean-stage2-gold |
15747 | clean-stage2: clean-stage2-gold | |
15748 | clean-stage2-gold: | |
15749 | @if [ $(current_stage) = stage2 ]; then \ | |
15750 | [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \ | |
15751 | else \ | |
15752 | [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \ | |
15753 | $(MAKE) stage2-start; \ | |
15754 | fi; \ | |
15755 | cd $(HOST_SUBDIR)/gold && \ | |
b3676d82 | 15756 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 15757 | @endif gold-bootstrap |
2a4cbe27 | 15758 | |
a3ca38d2 | 15759 | |
a90ef4bf JM |
15760 | .PHONY: all-stage3-gold maybe-all-stage3-gold |
15761 | .PHONY: clean-stage3-gold maybe-clean-stage3-gold | |
15762 | maybe-all-stage3-gold: | |
15763 | maybe-clean-stage3-gold: | |
15764 | @if gold-bootstrap | |
15765 | maybe-all-stage3-gold: all-stage3-gold | |
15766 | all-stage3: all-stage3-gold | |
15767 | TARGET-stage3-gold = $(TARGET-gold) | |
15768 | all-stage3-gold: configure-stage3-gold | |
15769 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
15770 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 15771 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 15772 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
378fce5b | 15773 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
15774 | $(POSTSTAGE1_HOST_EXPORTS) \ |
15775 | cd $(HOST_SUBDIR)/gold && \ | |
05a13254 | 15776 | \ |
a90ef4bf JM |
15777 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
15778 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
15779 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
15780 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
15781 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
15782 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
15783 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
15784 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 15785 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 15786 | $(TARGET-stage3-gold) |
2a4cbe27 | 15787 | |
a90ef4bf JM |
15788 | maybe-clean-stage3-gold: clean-stage3-gold |
15789 | clean-stage3: clean-stage3-gold | |
15790 | clean-stage3-gold: | |
15791 | @if [ $(current_stage) = stage3 ]; then \ | |
15792 | [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \ | |
15793 | else \ | |
15794 | [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \ | |
15795 | $(MAKE) stage3-start; \ | |
15796 | fi; \ | |
15797 | cd $(HOST_SUBDIR)/gold && \ | |
b3676d82 | 15798 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 15799 | @endif gold-bootstrap |
2a4cbe27 | 15800 | |
2a4cbe27 | 15801 | |
a90ef4bf JM |
15802 | .PHONY: all-stage4-gold maybe-all-stage4-gold |
15803 | .PHONY: clean-stage4-gold maybe-clean-stage4-gold | |
15804 | maybe-all-stage4-gold: | |
15805 | maybe-clean-stage4-gold: | |
15806 | @if gold-bootstrap | |
15807 | maybe-all-stage4-gold: all-stage4-gold | |
15808 | all-stage4: all-stage4-gold | |
15809 | TARGET-stage4-gold = $(TARGET-gold) | |
15810 | all-stage4-gold: configure-stage4-gold | |
15811 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
15812 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 15813 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 15814 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
378fce5b | 15815 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
15816 | $(POSTSTAGE1_HOST_EXPORTS) \ |
15817 | cd $(HOST_SUBDIR)/gold && \ | |
05a13254 | 15818 | \ |
a90ef4bf JM |
15819 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
15820 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
15821 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
15822 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
15823 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
15824 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
15825 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
15826 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 15827 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 15828 | $(TARGET-stage4-gold) |
2a4cbe27 | 15829 | |
a90ef4bf JM |
15830 | maybe-clean-stage4-gold: clean-stage4-gold |
15831 | clean-stage4: clean-stage4-gold | |
15832 | clean-stage4-gold: | |
15833 | @if [ $(current_stage) = stage4 ]; then \ | |
15834 | [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \ | |
15835 | else \ | |
15836 | [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \ | |
15837 | $(MAKE) stage4-start; \ | |
15838 | fi; \ | |
15839 | cd $(HOST_SUBDIR)/gold && \ | |
b3676d82 | 15840 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 15841 | @endif gold-bootstrap |
2a4cbe27 | 15842 | |
2a4cbe27 | 15843 | |
a90ef4bf JM |
15844 | .PHONY: all-stageprofile-gold maybe-all-stageprofile-gold |
15845 | .PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold | |
15846 | maybe-all-stageprofile-gold: | |
15847 | maybe-clean-stageprofile-gold: | |
15848 | @if gold-bootstrap | |
15849 | maybe-all-stageprofile-gold: all-stageprofile-gold | |
15850 | all-stageprofile: all-stageprofile-gold | |
15851 | TARGET-stageprofile-gold = $(TARGET-gold) | |
15852 | all-stageprofile-gold: configure-stageprofile-gold | |
15853 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
15854 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 15855 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 15856 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
378fce5b | 15857 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
15858 | $(POSTSTAGE1_HOST_EXPORTS) \ |
15859 | cd $(HOST_SUBDIR)/gold && \ | |
05a13254 | 15860 | \ |
a90ef4bf JM |
15861 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
15862 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
15863 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
15864 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
15865 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
15866 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
15867 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
15868 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 15869 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf | 15870 | $(TARGET-stageprofile-gold) |
2a4cbe27 | 15871 | |
a90ef4bf JM |
15872 | maybe-clean-stageprofile-gold: clean-stageprofile-gold |
15873 | clean-stageprofile: clean-stageprofile-gold | |
15874 | clean-stageprofile-gold: | |
15875 | @if [ $(current_stage) = stageprofile ]; then \ | |
15876 | [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \ | |
15877 | else \ | |
15878 | [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \ | |
15879 | $(MAKE) stageprofile-start; \ | |
15880 | fi; \ | |
15881 | cd $(HOST_SUBDIR)/gold && \ | |
b3676d82 | 15882 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 15883 | @endif gold-bootstrap |
2a4cbe27 | 15884 | |
a7254363 | 15885 | |
a90ef4bf JM |
15886 | .PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold |
15887 | .PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold | |
15888 | maybe-all-stagefeedback-gold: | |
15889 | maybe-clean-stagefeedback-gold: | |
15890 | @if gold-bootstrap | |
15891 | maybe-all-stagefeedback-gold: all-stagefeedback-gold | |
15892 | all-stagefeedback: all-stagefeedback-gold | |
15893 | TARGET-stagefeedback-gold = $(TARGET-gold) | |
15894 | all-stagefeedback-gold: configure-stagefeedback-gold | |
15895 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
c52c6897 | 15896 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 15897 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
15898 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
15899 | $(HOST_EXPORTS) \ | |
15900 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
15901 | cd $(HOST_SUBDIR)/gold && \ | |
05a13254 | 15902 | \ |
a90ef4bf JM |
15903 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
15904 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
15905 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
15906 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
15907 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
15908 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
15909 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
15910 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 15911 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf | 15912 | $(TARGET-stagefeedback-gold) |
d545f33b | 15913 | |
a90ef4bf JM |
15914 | maybe-clean-stagefeedback-gold: clean-stagefeedback-gold |
15915 | clean-stagefeedback: clean-stagefeedback-gold | |
15916 | clean-stagefeedback-gold: | |
15917 | @if [ $(current_stage) = stagefeedback ]; then \ | |
15918 | [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \ | |
15919 | else \ | |
15920 | [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \ | |
15921 | $(MAKE) stagefeedback-start; \ | |
15922 | fi; \ | |
15923 | cd $(HOST_SUBDIR)/gold && \ | |
b3676d82 | 15924 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 15925 | @endif gold-bootstrap |
d545f33b | 15926 | |
4fa63067 | 15927 | |
a7254363 | 15928 | |
d545f33b PB |
15929 | |
15930 | ||
a90ef4bf JM |
15931 | .PHONY: check-gold maybe-check-gold |
15932 | maybe-check-gold: | |
15933 | @if gold | |
15934 | maybe-check-gold: check-gold | |
4fa63067 | 15935 | |
a90ef4bf | 15936 | check-gold: |
0aed8855 | 15937 | @: $(MAKE); $(unstage) |
4fa63067 NN |
15938 | @r=`${PWD_COMMAND}`; export r; \ |
15939 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 15940 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 15941 | (cd $(HOST_SUBDIR)/gold && \ |
f91ca6bc | 15942 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
4fa63067 | 15943 | |
a90ef4bf | 15944 | @endif gold |
4fa63067 | 15945 | |
a90ef4bf JM |
15946 | .PHONY: install-gold maybe-install-gold |
15947 | maybe-install-gold: | |
15948 | @if gold | |
15949 | maybe-install-gold: install-gold | |
4fa63067 | 15950 | |
a90ef4bf | 15951 | install-gold: installdirs |
0aed8855 | 15952 | @: $(MAKE); $(unstage) |
4fa63067 NN |
15953 | @r=`${PWD_COMMAND}`; export r; \ |
15954 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15955 | $(HOST_EXPORTS) \ |
a90ef4bf | 15956 | (cd $(HOST_SUBDIR)/gold && \ |
2da12f12 | 15957 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 15958 | |
a90ef4bf | 15959 | @endif gold |
4fa63067 | 15960 | |
a90ef4bf JM |
15961 | .PHONY: install-strip-gold maybe-install-strip-gold |
15962 | maybe-install-strip-gold: | |
15963 | @if gold | |
15964 | maybe-install-strip-gold: install-strip-gold | |
9b980aa1 | 15965 | |
a90ef4bf | 15966 | install-strip-gold: installdirs |
9b980aa1 RW |
15967 | @: $(MAKE); $(unstage) |
15968 | @r=`${PWD_COMMAND}`; export r; \ | |
15969 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
15970 | $(HOST_EXPORTS) \ | |
a90ef4bf | 15971 | (cd $(HOST_SUBDIR)/gold && \ |
9b980aa1 RW |
15972 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
15973 | ||
a90ef4bf | 15974 | @endif gold |
9b980aa1 | 15975 | |
56a8fe78 | 15976 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 15977 | |
a90ef4bf JM |
15978 | .PHONY: maybe-info-gold info-gold |
15979 | maybe-info-gold: | |
15980 | @if gold | |
15981 | maybe-info-gold: info-gold | |
4fa63067 | 15982 | |
a90ef4bf JM |
15983 | info-gold: \ |
15984 | configure-gold | |
15985 | @[ -f ./gold/Makefile ] || exit 0; \ | |
b40e3958 L |
15986 | r=`${PWD_COMMAND}`; export r; \ |
15987 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15988 | $(HOST_EXPORTS) \ |
b813574b | 15989 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15990 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15991 | done; \ | |
22121df0 | 15992 | echo "Doing info in gold"; \ |
a90ef4bf | 15993 | (cd $(HOST_SUBDIR)/gold && \ |
2a4cbe27 NN |
15994 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15995 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15996 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 15997 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 15998 | info) \ |
2a4cbe27 NN |
15999 | || exit 1 |
16000 | ||
a90ef4bf | 16001 | @endif gold |
2a4cbe27 | 16002 | |
a90ef4bf JM |
16003 | .PHONY: maybe-dvi-gold dvi-gold |
16004 | maybe-dvi-gold: | |
16005 | @if gold | |
16006 | maybe-dvi-gold: dvi-gold | |
2a4cbe27 | 16007 | |
a90ef4bf JM |
16008 | dvi-gold: \ |
16009 | configure-gold | |
16010 | @[ -f ./gold/Makefile ] || exit 0; \ | |
b40e3958 L |
16011 | r=`${PWD_COMMAND}`; export r; \ |
16012 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16013 | $(HOST_EXPORTS) \ |
b813574b | 16014 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16015 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16016 | done; \ | |
22121df0 | 16017 | echo "Doing dvi in gold"; \ |
a90ef4bf | 16018 | (cd $(HOST_SUBDIR)/gold && \ |
2a4cbe27 NN |
16019 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16020 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16021 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16022 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 16023 | dvi) \ |
2a4cbe27 NN |
16024 | || exit 1 |
16025 | ||
a90ef4bf | 16026 | @endif gold |
2a4cbe27 | 16027 | |
a90ef4bf JM |
16028 | .PHONY: maybe-pdf-gold pdf-gold |
16029 | maybe-pdf-gold: | |
16030 | @if gold | |
16031 | maybe-pdf-gold: pdf-gold | |
56a8fe78 | 16032 | |
a90ef4bf JM |
16033 | pdf-gold: \ |
16034 | configure-gold | |
16035 | @[ -f ./gold/Makefile ] || exit 0; \ | |
56a8fe78 DD |
16036 | r=`${PWD_COMMAND}`; export r; \ |
16037 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16038 | $(HOST_EXPORTS) \ | |
16039 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16040 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16041 | done; \ | |
22121df0 | 16042 | echo "Doing pdf in gold"; \ |
a90ef4bf | 16043 | (cd $(HOST_SUBDIR)/gold && \ |
56a8fe78 DD |
16044 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16045 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16046 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16047 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
16048 | pdf) \ |
16049 | || exit 1 | |
16050 | ||
a90ef4bf | 16051 | @endif gold |
56a8fe78 | 16052 | |
a90ef4bf JM |
16053 | .PHONY: maybe-html-gold html-gold |
16054 | maybe-html-gold: | |
16055 | @if gold | |
16056 | maybe-html-gold: html-gold | |
6d389afc | 16057 | |
a90ef4bf JM |
16058 | html-gold: \ |
16059 | configure-gold | |
16060 | @[ -f ./gold/Makefile ] || exit 0; \ | |
6d389afc MS |
16061 | r=`${PWD_COMMAND}`; export r; \ |
16062 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
16063 | $(HOST_EXPORTS) \ |
16064 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16065 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16066 | done; \ | |
22121df0 | 16067 | echo "Doing html in gold"; \ |
a90ef4bf | 16068 | (cd $(HOST_SUBDIR)/gold && \ |
6d389afc MS |
16069 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16070 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16071 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16072 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
16073 | html) \ |
16074 | || exit 1 | |
16075 | ||
a90ef4bf | 16076 | @endif gold |
6d389afc | 16077 | |
a90ef4bf JM |
16078 | .PHONY: maybe-TAGS-gold TAGS-gold |
16079 | maybe-TAGS-gold: | |
16080 | @if gold | |
16081 | maybe-TAGS-gold: TAGS-gold | |
2a4cbe27 | 16082 | |
a90ef4bf JM |
16083 | TAGS-gold: \ |
16084 | configure-gold | |
16085 | @[ -f ./gold/Makefile ] || exit 0; \ | |
b40e3958 L |
16086 | r=`${PWD_COMMAND}`; export r; \ |
16087 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16088 | $(HOST_EXPORTS) \ |
b813574b | 16089 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16090 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16091 | done; \ | |
22121df0 | 16092 | echo "Doing TAGS in gold"; \ |
a90ef4bf | 16093 | (cd $(HOST_SUBDIR)/gold && \ |
2a4cbe27 NN |
16094 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16095 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16096 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16097 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 16098 | TAGS) \ |
2a4cbe27 NN |
16099 | || exit 1 |
16100 | ||
a90ef4bf | 16101 | @endif gold |
2a4cbe27 | 16102 | |
a90ef4bf JM |
16103 | .PHONY: maybe-install-info-gold install-info-gold |
16104 | maybe-install-info-gold: | |
16105 | @if gold | |
16106 | maybe-install-info-gold: install-info-gold | |
b813574b | 16107 | |
a90ef4bf JM |
16108 | install-info-gold: \ |
16109 | configure-gold \ | |
16110 | info-gold | |
16111 | @[ -f ./gold/Makefile ] || exit 0; \ | |
b40e3958 L |
16112 | r=`${PWD_COMMAND}`; export r; \ |
16113 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16114 | $(HOST_EXPORTS) \ |
b813574b | 16115 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16116 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16117 | done; \ | |
22121df0 | 16118 | echo "Doing install-info in gold"; \ |
a90ef4bf | 16119 | (cd $(HOST_SUBDIR)/gold && \ |
2a4cbe27 NN |
16120 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16121 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16122 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16123 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 16124 | install-info) \ |
2a4cbe27 NN |
16125 | || exit 1 |
16126 | ||
a90ef4bf | 16127 | @endif gold |
2a4cbe27 | 16128 | |
a90ef4bf JM |
16129 | .PHONY: maybe-install-pdf-gold install-pdf-gold |
16130 | maybe-install-pdf-gold: | |
16131 | @if gold | |
16132 | maybe-install-pdf-gold: install-pdf-gold | |
a3ca38d2 | 16133 | |
a90ef4bf JM |
16134 | install-pdf-gold: \ |
16135 | configure-gold \ | |
16136 | pdf-gold | |
16137 | @[ -f ./gold/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
16138 | r=`${PWD_COMMAND}`; export r; \ |
16139 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16140 | $(HOST_EXPORTS) \ | |
16141 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16142 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16143 | done; \ | |
22121df0 | 16144 | echo "Doing install-pdf in gold"; \ |
a90ef4bf | 16145 | (cd $(HOST_SUBDIR)/gold && \ |
a3ca38d2 DD |
16146 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16147 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16148 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16149 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
16150 | install-pdf) \ |
16151 | || exit 1 | |
16152 | ||
a90ef4bf | 16153 | @endif gold |
a3ca38d2 | 16154 | |
a90ef4bf JM |
16155 | .PHONY: maybe-install-html-gold install-html-gold |
16156 | maybe-install-html-gold: | |
16157 | @if gold | |
16158 | maybe-install-html-gold: install-html-gold | |
108a6f8e | 16159 | |
a90ef4bf JM |
16160 | install-html-gold: \ |
16161 | configure-gold \ | |
16162 | html-gold | |
16163 | @[ -f ./gold/Makefile ] || exit 0; \ | |
108a6f8e CD |
16164 | r=`${PWD_COMMAND}`; export r; \ |
16165 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16166 | $(HOST_EXPORTS) \ | |
16167 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16168 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16169 | done; \ | |
22121df0 | 16170 | echo "Doing install-html in gold"; \ |
a90ef4bf | 16171 | (cd $(HOST_SUBDIR)/gold && \ |
108a6f8e CD |
16172 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16173 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16174 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16175 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
16176 | install-html) \ |
16177 | || exit 1 | |
16178 | ||
a90ef4bf | 16179 | @endif gold |
108a6f8e | 16180 | |
a90ef4bf JM |
16181 | .PHONY: maybe-installcheck-gold installcheck-gold |
16182 | maybe-installcheck-gold: | |
16183 | @if gold | |
16184 | maybe-installcheck-gold: installcheck-gold | |
2a4cbe27 | 16185 | |
a90ef4bf JM |
16186 | installcheck-gold: \ |
16187 | configure-gold | |
16188 | @[ -f ./gold/Makefile ] || exit 0; \ | |
b40e3958 L |
16189 | r=`${PWD_COMMAND}`; export r; \ |
16190 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16191 | $(HOST_EXPORTS) \ |
b813574b | 16192 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16193 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16194 | done; \ | |
22121df0 | 16195 | echo "Doing installcheck in gold"; \ |
a90ef4bf | 16196 | (cd $(HOST_SUBDIR)/gold && \ |
2a4cbe27 NN |
16197 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16198 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16199 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16200 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 16201 | installcheck) \ |
2a4cbe27 NN |
16202 | || exit 1 |
16203 | ||
a90ef4bf | 16204 | @endif gold |
2a4cbe27 | 16205 | |
a90ef4bf JM |
16206 | .PHONY: maybe-mostlyclean-gold mostlyclean-gold |
16207 | maybe-mostlyclean-gold: | |
16208 | @if gold | |
16209 | maybe-mostlyclean-gold: mostlyclean-gold | |
2a4cbe27 | 16210 | |
a90ef4bf JM |
16211 | mostlyclean-gold: |
16212 | @[ -f ./gold/Makefile ] || exit 0; \ | |
b40e3958 L |
16213 | r=`${PWD_COMMAND}`; export r; \ |
16214 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16215 | $(HOST_EXPORTS) \ |
b813574b | 16216 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16217 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16218 | done; \ | |
22121df0 | 16219 | echo "Doing mostlyclean in gold"; \ |
a90ef4bf | 16220 | (cd $(HOST_SUBDIR)/gold && \ |
2a4cbe27 NN |
16221 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16222 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16223 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16224 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 16225 | mostlyclean) \ |
2a4cbe27 NN |
16226 | || exit 1 |
16227 | ||
a90ef4bf | 16228 | @endif gold |
2a4cbe27 | 16229 | |
a90ef4bf JM |
16230 | .PHONY: maybe-clean-gold clean-gold |
16231 | maybe-clean-gold: | |
16232 | @if gold | |
16233 | maybe-clean-gold: clean-gold | |
2a4cbe27 | 16234 | |
a90ef4bf JM |
16235 | clean-gold: |
16236 | @[ -f ./gold/Makefile ] || exit 0; \ | |
b40e3958 L |
16237 | r=`${PWD_COMMAND}`; export r; \ |
16238 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16239 | $(HOST_EXPORTS) \ |
b813574b | 16240 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16241 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16242 | done; \ | |
22121df0 | 16243 | echo "Doing clean in gold"; \ |
a90ef4bf | 16244 | (cd $(HOST_SUBDIR)/gold && \ |
2a4cbe27 NN |
16245 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16246 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16247 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16248 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 16249 | clean) \ |
2a4cbe27 NN |
16250 | || exit 1 |
16251 | ||
a90ef4bf | 16252 | @endif gold |
2a4cbe27 | 16253 | |
a90ef4bf JM |
16254 | .PHONY: maybe-distclean-gold distclean-gold |
16255 | maybe-distclean-gold: | |
16256 | @if gold | |
16257 | maybe-distclean-gold: distclean-gold | |
2a4cbe27 | 16258 | |
a90ef4bf JM |
16259 | distclean-gold: |
16260 | @[ -f ./gold/Makefile ] || exit 0; \ | |
b40e3958 L |
16261 | r=`${PWD_COMMAND}`; export r; \ |
16262 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16263 | $(HOST_EXPORTS) \ |
b813574b | 16264 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16265 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16266 | done; \ | |
22121df0 | 16267 | echo "Doing distclean in gold"; \ |
a90ef4bf | 16268 | (cd $(HOST_SUBDIR)/gold && \ |
2a4cbe27 NN |
16269 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16270 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16271 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16272 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 16273 | distclean) \ |
2a4cbe27 NN |
16274 | || exit 1 |
16275 | ||
a90ef4bf | 16276 | @endif gold |
2a4cbe27 | 16277 | |
a90ef4bf JM |
16278 | .PHONY: maybe-maintainer-clean-gold maintainer-clean-gold |
16279 | maybe-maintainer-clean-gold: | |
16280 | @if gold | |
16281 | maybe-maintainer-clean-gold: maintainer-clean-gold | |
2a4cbe27 | 16282 | |
a90ef4bf JM |
16283 | maintainer-clean-gold: |
16284 | @[ -f ./gold/Makefile ] || exit 0; \ | |
b40e3958 L |
16285 | r=`${PWD_COMMAND}`; export r; \ |
16286 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16287 | $(HOST_EXPORTS) \ |
b813574b | 16288 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16289 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16290 | done; \ | |
22121df0 | 16291 | echo "Doing maintainer-clean in gold"; \ |
a90ef4bf | 16292 | (cd $(HOST_SUBDIR)/gold && \ |
2a4cbe27 NN |
16293 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16294 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16295 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16296 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 16297 | maintainer-clean) \ |
4fa63067 NN |
16298 | || exit 1 |
16299 | ||
a90ef4bf | 16300 | @endif gold |
4fa63067 NN |
16301 | |
16302 | ||
a7254363 | 16303 | |
a90ef4bf JM |
16304 | .PHONY: configure-gprof maybe-configure-gprof |
16305 | maybe-configure-gprof: | |
4b900473 | 16306 | @if gcc-bootstrap |
a90ef4bf | 16307 | configure-gprof: stage_current |
4b900473 | 16308 | @endif gcc-bootstrap |
a90ef4bf JM |
16309 | @if gprof |
16310 | maybe-configure-gprof: configure-gprof | |
16311 | configure-gprof: | |
16312 | @: $(MAKE); $(unstage) | |
4b900473 PB |
16313 | @r=`${PWD_COMMAND}`; export r; \ |
16314 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 16315 | test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \ |
22121df0 | 16316 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof; \ |
1f53ca9a | 16317 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
16318 | echo Configuring in $(HOST_SUBDIR)/gprof; \ |
16319 | cd "$(HOST_SUBDIR)/gprof" || exit 1; \ | |
4b900473 PB |
16320 | case $(srcdir) in \ |
16321 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 16322 | *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \ |
4b900473 PB |
16323 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
16324 | esac; \ | |
1b6c0831 L |
16325 | module_srcdir=gprof; \ |
16326 | $(SHELL) \ | |
16327 | $$s/$$module_srcdir/configure \ | |
16328 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 16329 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 16330 | --target=${target_alias} \ |
4b900473 | 16331 | || exit 1 |
a90ef4bf | 16332 | @endif gprof |
4b900473 PB |
16333 | |
16334 | ||
16335 | ||
4b900473 | 16336 | |
a90ef4bf JM |
16337 | |
16338 | .PHONY: all-gprof maybe-all-gprof | |
16339 | maybe-all-gprof: | |
16340 | @if gcc-bootstrap | |
16341 | all-gprof: stage_current | |
16342 | @endif gcc-bootstrap | |
16343 | @if gprof | |
16344 | TARGET-gprof=all | |
16345 | maybe-all-gprof: all-gprof | |
16346 | all-gprof: configure-gprof | |
16347 | @: $(MAKE); $(unstage) | |
4b900473 PB |
16348 | @r=`${PWD_COMMAND}`; export r; \ |
16349 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 16350 | $(HOST_EXPORTS) \ |
a90ef4bf | 16351 | (cd $(HOST_SUBDIR)/gprof && \ |
b3676d82 | 16352 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
16353 | $(TARGET-gprof)) |
16354 | @endif gprof | |
4b900473 PB |
16355 | |
16356 | ||
4b900473 | 16357 | |
4b900473 | 16358 | |
a90ef4bf JM |
16359 | .PHONY: check-gprof maybe-check-gprof |
16360 | maybe-check-gprof: | |
16361 | @if gprof | |
16362 | maybe-check-gprof: check-gprof | |
4b900473 | 16363 | |
a90ef4bf JM |
16364 | check-gprof: |
16365 | @: $(MAKE); $(unstage) | |
4b900473 PB |
16366 | @r=`${PWD_COMMAND}`; export r; \ |
16367 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 16368 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
16369 | (cd $(HOST_SUBDIR)/gprof && \ |
16370 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4b900473 | 16371 | |
a90ef4bf | 16372 | @endif gprof |
4b900473 | 16373 | |
a90ef4bf JM |
16374 | .PHONY: install-gprof maybe-install-gprof |
16375 | maybe-install-gprof: | |
16376 | @if gprof | |
16377 | maybe-install-gprof: install-gprof | |
4b900473 | 16378 | |
a90ef4bf JM |
16379 | install-gprof: installdirs |
16380 | @: $(MAKE); $(unstage) | |
4b900473 PB |
16381 | @r=`${PWD_COMMAND}`; export r; \ |
16382 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16383 | $(HOST_EXPORTS) \ | |
a90ef4bf JM |
16384 | (cd $(HOST_SUBDIR)/gprof && \ |
16385 | $(MAKE) $(FLAGS_TO_PASS) install) | |
4b900473 | 16386 | |
a90ef4bf | 16387 | @endif gprof |
4b900473 | 16388 | |
a90ef4bf JM |
16389 | .PHONY: install-strip-gprof maybe-install-strip-gprof |
16390 | maybe-install-strip-gprof: | |
16391 | @if gprof | |
16392 | maybe-install-strip-gprof: install-strip-gprof | |
4b900473 | 16393 | |
a90ef4bf | 16394 | install-strip-gprof: installdirs |
4b900473 PB |
16395 | @: $(MAKE); $(unstage) |
16396 | @r=`${PWD_COMMAND}`; export r; \ | |
16397 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16398 | $(HOST_EXPORTS) \ | |
a90ef4bf JM |
16399 | (cd $(HOST_SUBDIR)/gprof && \ |
16400 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
9b980aa1 | 16401 | |
a90ef4bf | 16402 | @endif gprof |
9b980aa1 | 16403 | |
4b900473 PB |
16404 | # Other targets (info, dvi, pdf, etc.) |
16405 | ||
a90ef4bf JM |
16406 | .PHONY: maybe-info-gprof info-gprof |
16407 | maybe-info-gprof: | |
16408 | @if gprof | |
16409 | maybe-info-gprof: info-gprof | |
4b900473 | 16410 | |
a90ef4bf JM |
16411 | info-gprof: \ |
16412 | configure-gprof | |
16413 | @: $(MAKE); $(unstage) | |
16414 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
4b900473 PB |
16415 | r=`${PWD_COMMAND}`; export r; \ |
16416 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16417 | $(HOST_EXPORTS) \ | |
16418 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16419 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16420 | done; \ | |
22121df0 | 16421 | echo "Doing info in gprof"; \ |
a90ef4bf | 16422 | (cd $(HOST_SUBDIR)/gprof && \ |
4b900473 PB |
16423 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16424 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16425 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16426 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
16427 | info) \ |
16428 | || exit 1 | |
16429 | ||
a90ef4bf | 16430 | @endif gprof |
4b900473 | 16431 | |
a90ef4bf JM |
16432 | .PHONY: maybe-dvi-gprof dvi-gprof |
16433 | maybe-dvi-gprof: | |
16434 | @if gprof | |
16435 | maybe-dvi-gprof: dvi-gprof | |
4b900473 | 16436 | |
a90ef4bf JM |
16437 | dvi-gprof: \ |
16438 | configure-gprof | |
16439 | @: $(MAKE); $(unstage) | |
16440 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
16441 | r=`${PWD_COMMAND}`; export r; \ | |
16442 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16443 | $(HOST_EXPORTS) \ | |
4b900473 PB |
16444 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
16445 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16446 | done; \ | |
22121df0 | 16447 | echo "Doing dvi in gprof"; \ |
a90ef4bf | 16448 | (cd $(HOST_SUBDIR)/gprof && \ |
4b900473 PB |
16449 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16450 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16451 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16452 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
16453 | dvi) \ |
16454 | || exit 1 | |
16455 | ||
a90ef4bf | 16456 | @endif gprof |
4b900473 | 16457 | |
a90ef4bf JM |
16458 | .PHONY: maybe-pdf-gprof pdf-gprof |
16459 | maybe-pdf-gprof: | |
16460 | @if gprof | |
16461 | maybe-pdf-gprof: pdf-gprof | |
4b900473 | 16462 | |
a90ef4bf JM |
16463 | pdf-gprof: \ |
16464 | configure-gprof | |
16465 | @: $(MAKE); $(unstage) | |
16466 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
4b900473 PB |
16467 | r=`${PWD_COMMAND}`; export r; \ |
16468 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16469 | $(HOST_EXPORTS) \ | |
16470 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16471 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16472 | done; \ | |
22121df0 | 16473 | echo "Doing pdf in gprof"; \ |
a90ef4bf | 16474 | (cd $(HOST_SUBDIR)/gprof && \ |
4b900473 PB |
16475 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16476 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16477 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16478 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
16479 | pdf) \ |
16480 | || exit 1 | |
16481 | ||
a90ef4bf | 16482 | @endif gprof |
4b900473 | 16483 | |
a90ef4bf JM |
16484 | .PHONY: maybe-html-gprof html-gprof |
16485 | maybe-html-gprof: | |
16486 | @if gprof | |
16487 | maybe-html-gprof: html-gprof | |
4b900473 | 16488 | |
a90ef4bf JM |
16489 | html-gprof: \ |
16490 | configure-gprof | |
16491 | @: $(MAKE); $(unstage) | |
16492 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
4b900473 PB |
16493 | r=`${PWD_COMMAND}`; export r; \ |
16494 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16495 | $(HOST_EXPORTS) \ | |
16496 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16497 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16498 | done; \ | |
22121df0 | 16499 | echo "Doing html in gprof"; \ |
a90ef4bf | 16500 | (cd $(HOST_SUBDIR)/gprof && \ |
4b900473 PB |
16501 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16502 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16503 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16504 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
16505 | html) \ |
16506 | || exit 1 | |
16507 | ||
a90ef4bf | 16508 | @endif gprof |
4b900473 | 16509 | |
a90ef4bf JM |
16510 | .PHONY: maybe-TAGS-gprof TAGS-gprof |
16511 | maybe-TAGS-gprof: | |
16512 | @if gprof | |
16513 | maybe-TAGS-gprof: TAGS-gprof | |
4b900473 | 16514 | |
a90ef4bf JM |
16515 | TAGS-gprof: \ |
16516 | configure-gprof | |
16517 | @: $(MAKE); $(unstage) | |
16518 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
4b900473 PB |
16519 | r=`${PWD_COMMAND}`; export r; \ |
16520 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16521 | $(HOST_EXPORTS) \ | |
16522 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16523 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16524 | done; \ | |
22121df0 | 16525 | echo "Doing TAGS in gprof"; \ |
a90ef4bf | 16526 | (cd $(HOST_SUBDIR)/gprof && \ |
4b900473 PB |
16527 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16528 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16529 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16530 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
16531 | TAGS) \ |
16532 | || exit 1 | |
16533 | ||
a90ef4bf | 16534 | @endif gprof |
4b900473 | 16535 | |
a90ef4bf JM |
16536 | .PHONY: maybe-install-info-gprof install-info-gprof |
16537 | maybe-install-info-gprof: | |
16538 | @if gprof | |
16539 | maybe-install-info-gprof: install-info-gprof | |
4b900473 | 16540 | |
a90ef4bf JM |
16541 | install-info-gprof: \ |
16542 | configure-gprof \ | |
16543 | info-gprof | |
16544 | @: $(MAKE); $(unstage) | |
16545 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
4b900473 PB |
16546 | r=`${PWD_COMMAND}`; export r; \ |
16547 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16548 | $(HOST_EXPORTS) \ | |
16549 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16550 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16551 | done; \ | |
22121df0 | 16552 | echo "Doing install-info in gprof"; \ |
a90ef4bf | 16553 | (cd $(HOST_SUBDIR)/gprof && \ |
4b900473 PB |
16554 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16555 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16556 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16557 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
16558 | install-info) \ |
16559 | || exit 1 | |
16560 | ||
a90ef4bf | 16561 | @endif gprof |
4b900473 | 16562 | |
a90ef4bf JM |
16563 | .PHONY: maybe-install-pdf-gprof install-pdf-gprof |
16564 | maybe-install-pdf-gprof: | |
16565 | @if gprof | |
16566 | maybe-install-pdf-gprof: install-pdf-gprof | |
a3ca38d2 | 16567 | |
a90ef4bf JM |
16568 | install-pdf-gprof: \ |
16569 | configure-gprof \ | |
16570 | pdf-gprof | |
16571 | @: $(MAKE); $(unstage) | |
16572 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
16573 | r=`${PWD_COMMAND}`; export r; \ |
16574 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16575 | $(HOST_EXPORTS) \ | |
16576 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16577 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16578 | done; \ | |
22121df0 | 16579 | echo "Doing install-pdf in gprof"; \ |
a90ef4bf | 16580 | (cd $(HOST_SUBDIR)/gprof && \ |
a3ca38d2 DD |
16581 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16582 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16583 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16584 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
16585 | install-pdf) \ |
16586 | || exit 1 | |
16587 | ||
a90ef4bf | 16588 | @endif gprof |
a3ca38d2 | 16589 | |
a90ef4bf JM |
16590 | .PHONY: maybe-install-html-gprof install-html-gprof |
16591 | maybe-install-html-gprof: | |
16592 | @if gprof | |
16593 | maybe-install-html-gprof: install-html-gprof | |
4b900473 | 16594 | |
a90ef4bf JM |
16595 | install-html-gprof: \ |
16596 | configure-gprof \ | |
16597 | html-gprof | |
16598 | @: $(MAKE); $(unstage) | |
16599 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
4b900473 PB |
16600 | r=`${PWD_COMMAND}`; export r; \ |
16601 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16602 | $(HOST_EXPORTS) \ | |
16603 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16604 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16605 | done; \ | |
22121df0 | 16606 | echo "Doing install-html in gprof"; \ |
a90ef4bf | 16607 | (cd $(HOST_SUBDIR)/gprof && \ |
4b900473 PB |
16608 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16609 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16610 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 16611 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
16612 | install-html) \ |
16613 | || exit 1 | |
16614 | ||
a90ef4bf | 16615 | @endif gprof |
4b900473 | 16616 | |
a90ef4bf JM |
16617 | .PHONY: maybe-installcheck-gprof installcheck-gprof |
16618 | maybe-installcheck-gprof: | |
16619 | @if gprof | |
16620 | maybe-installcheck-gprof: installcheck-gprof | |
4b900473 | 16621 | |
a90ef4bf JM |
16622 | installcheck-gprof: \ |
16623 | configure-gprof | |
16624 | @: $(MAKE); $(unstage) | |
16625 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
e28c595f JM |
16626 | r=`${PWD_COMMAND}`; export r; \ |
16627 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16628 | $(HOST_EXPORTS) \ | |
16629 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16630 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16631 | done; \ | |
22121df0 | 16632 | echo "Doing installcheck in gprof"; \ |
a90ef4bf | 16633 | (cd $(HOST_SUBDIR)/gprof && \ |
e28c595f JM |
16634 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16635 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16636 | "RANLIB=$${RANLIB}" \ | |
16637 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
16638 | installcheck) \ | |
16639 | || exit 1 | |
16640 | ||
a90ef4bf | 16641 | @endif gprof |
e28c595f | 16642 | |
a90ef4bf JM |
16643 | .PHONY: maybe-mostlyclean-gprof mostlyclean-gprof |
16644 | maybe-mostlyclean-gprof: | |
16645 | @if gprof | |
16646 | maybe-mostlyclean-gprof: mostlyclean-gprof | |
e28c595f | 16647 | |
a90ef4bf JM |
16648 | mostlyclean-gprof: |
16649 | @: $(MAKE); $(unstage) | |
16650 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
e28c595f JM |
16651 | r=`${PWD_COMMAND}`; export r; \ |
16652 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16653 | $(HOST_EXPORTS) \ | |
16654 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16655 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16656 | done; \ | |
22121df0 | 16657 | echo "Doing mostlyclean in gprof"; \ |
a90ef4bf | 16658 | (cd $(HOST_SUBDIR)/gprof && \ |
e28c595f JM |
16659 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16660 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16661 | "RANLIB=$${RANLIB}" \ | |
16662 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
16663 | mostlyclean) \ | |
16664 | || exit 1 | |
16665 | ||
a90ef4bf | 16666 | @endif gprof |
e28c595f | 16667 | |
a90ef4bf JM |
16668 | .PHONY: maybe-clean-gprof clean-gprof |
16669 | maybe-clean-gprof: | |
16670 | @if gprof | |
16671 | maybe-clean-gprof: clean-gprof | |
e28c595f | 16672 | |
a90ef4bf JM |
16673 | clean-gprof: |
16674 | @: $(MAKE); $(unstage) | |
16675 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
e28c595f JM |
16676 | r=`${PWD_COMMAND}`; export r; \ |
16677 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16678 | $(HOST_EXPORTS) \ | |
16679 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16680 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16681 | done; \ | |
22121df0 | 16682 | echo "Doing clean in gprof"; \ |
a90ef4bf | 16683 | (cd $(HOST_SUBDIR)/gprof && \ |
e28c595f JM |
16684 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16685 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16686 | "RANLIB=$${RANLIB}" \ | |
16687 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
16688 | clean) \ | |
16689 | || exit 1 | |
16690 | ||
a90ef4bf | 16691 | @endif gprof |
e28c595f | 16692 | |
a90ef4bf JM |
16693 | .PHONY: maybe-distclean-gprof distclean-gprof |
16694 | maybe-distclean-gprof: | |
16695 | @if gprof | |
16696 | maybe-distclean-gprof: distclean-gprof | |
e28c595f | 16697 | |
a90ef4bf JM |
16698 | distclean-gprof: |
16699 | @: $(MAKE); $(unstage) | |
16700 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
e28c595f JM |
16701 | r=`${PWD_COMMAND}`; export r; \ |
16702 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16703 | $(HOST_EXPORTS) \ | |
16704 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16705 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16706 | done; \ | |
22121df0 | 16707 | echo "Doing distclean in gprof"; \ |
a90ef4bf | 16708 | (cd $(HOST_SUBDIR)/gprof && \ |
e28c595f JM |
16709 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16710 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16711 | "RANLIB=$${RANLIB}" \ | |
16712 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
16713 | distclean) \ | |
16714 | || exit 1 | |
16715 | ||
a90ef4bf | 16716 | @endif gprof |
e28c595f | 16717 | |
a90ef4bf JM |
16718 | .PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof |
16719 | maybe-maintainer-clean-gprof: | |
16720 | @if gprof | |
16721 | maybe-maintainer-clean-gprof: maintainer-clean-gprof | |
e28c595f | 16722 | |
a90ef4bf JM |
16723 | maintainer-clean-gprof: |
16724 | @: $(MAKE); $(unstage) | |
16725 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
e28c595f JM |
16726 | r=`${PWD_COMMAND}`; export r; \ |
16727 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16728 | $(HOST_EXPORTS) \ | |
16729 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16730 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16731 | done; \ | |
22121df0 | 16732 | echo "Doing maintainer-clean in gprof"; \ |
a90ef4bf | 16733 | (cd $(HOST_SUBDIR)/gprof && \ |
e28c595f JM |
16734 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16735 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16736 | "RANLIB=$${RANLIB}" \ | |
16737 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
16738 | maintainer-clean) \ | |
16739 | || exit 1 | |
16740 | ||
a90ef4bf | 16741 | @endif gprof |
e28c595f JM |
16742 | |
16743 | ||
16744 | ||
a90ef4bf JM |
16745 | .PHONY: configure-intl maybe-configure-intl |
16746 | maybe-configure-intl: | |
e28c595f | 16747 | @if gcc-bootstrap |
a90ef4bf | 16748 | configure-intl: stage_current |
e28c595f | 16749 | @endif gcc-bootstrap |
a90ef4bf JM |
16750 | @if intl |
16751 | maybe-configure-intl: configure-intl | |
16752 | configure-intl: | |
e28c595f JM |
16753 | @r=`${PWD_COMMAND}`; export r; \ |
16754 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 16755 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
22121df0 | 16756 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \ |
1f53ca9a | 16757 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
16758 | echo Configuring in $(HOST_SUBDIR)/intl; \ |
16759 | cd "$(HOST_SUBDIR)/intl" || exit 1; \ | |
e28c595f JM |
16760 | case $(srcdir) in \ |
16761 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 16762 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ |
e28c595f JM |
16763 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
16764 | esac; \ | |
1b6c0831 L |
16765 | module_srcdir=intl; \ |
16766 | $(SHELL) \ | |
16767 | $$s/$$module_srcdir/configure \ | |
16768 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 16769 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 16770 | --target=${target_alias} \ |
e28c595f | 16771 | || exit 1 |
a90ef4bf | 16772 | @endif intl |
e28c595f JM |
16773 | |
16774 | ||
16775 | ||
a90ef4bf JM |
16776 | .PHONY: configure-stage1-intl maybe-configure-stage1-intl |
16777 | maybe-configure-stage1-intl: | |
16778 | @if intl-bootstrap | |
16779 | maybe-configure-stage1-intl: configure-stage1-intl | |
16780 | configure-stage1-intl: | |
e28c595f | 16781 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
a90ef4bf | 16782 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl |
e28c595f JM |
16783 | @r=`${PWD_COMMAND}`; export r; \ |
16784 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 16785 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
a90ef4bf | 16786 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
1b05fbbd | 16787 | $(HOST_EXPORTS) \ |
e28c595f | 16788 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
16789 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ |
16790 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
16791 | echo Configuring stage 1 in $(HOST_SUBDIR)/intl; \ |
16792 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \ | |
a90ef4bf | 16793 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
e28c595f JM |
16794 | case $(srcdir) in \ |
16795 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 16796 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ |
e28c595f JM |
16797 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
16798 | esac; \ | |
1b6c0831 L |
16799 | module_srcdir=intl; \ |
16800 | $(SHELL) $$s/$$module_srcdir/configure \ | |
16801 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 16802 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
16803 | --target=${target_alias} \ |
16804 | \ | |
a90ef4bf JM |
16805 | $(STAGE1_CONFIGURE_FLAGS) |
16806 | @endif intl-bootstrap | |
e28c595f | 16807 | |
a90ef4bf JM |
16808 | .PHONY: configure-stage2-intl maybe-configure-stage2-intl |
16809 | maybe-configure-stage2-intl: | |
16810 | @if intl-bootstrap | |
16811 | maybe-configure-stage2-intl: configure-stage2-intl | |
16812 | configure-stage2-intl: | |
e28c595f | 16813 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
a90ef4bf | 16814 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl |
e28c595f JM |
16815 | @r=`${PWD_COMMAND}`; export r; \ |
16816 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 16817 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
a90ef4bf | 16818 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
e28c595f | 16819 | $(HOST_EXPORTS) \ |
1b05fbbd | 16820 | $(POSTSTAGE1_HOST_EXPORTS) \ |
e28c595f | 16821 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
16822 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ |
16823 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
16824 | echo Configuring stage 2 in $(HOST_SUBDIR)/intl; \ |
16825 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \ | |
a90ef4bf | 16826 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
e28c595f JM |
16827 | case $(srcdir) in \ |
16828 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 16829 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ |
e28c595f JM |
16830 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
16831 | esac; \ | |
1b6c0831 L |
16832 | module_srcdir=intl; \ |
16833 | $(SHELL) $$s/$$module_srcdir/configure \ | |
16834 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 16835 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 16836 | --target=${target_alias} \ |
22121df0 | 16837 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
16838 | $(STAGE2_CONFIGURE_FLAGS) |
16839 | @endif intl-bootstrap | |
e28c595f | 16840 | |
a90ef4bf JM |
16841 | .PHONY: configure-stage3-intl maybe-configure-stage3-intl |
16842 | maybe-configure-stage3-intl: | |
16843 | @if intl-bootstrap | |
16844 | maybe-configure-stage3-intl: configure-stage3-intl | |
16845 | configure-stage3-intl: | |
e28c595f | 16846 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
a90ef4bf | 16847 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl |
e28c595f JM |
16848 | @r=`${PWD_COMMAND}`; export r; \ |
16849 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 16850 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
a90ef4bf | 16851 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
e28c595f | 16852 | $(HOST_EXPORTS) \ |
1b05fbbd | 16853 | $(POSTSTAGE1_HOST_EXPORTS) \ |
e28c595f | 16854 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
16855 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ |
16856 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
16857 | echo Configuring stage 3 in $(HOST_SUBDIR)/intl; \ |
16858 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \ | |
a90ef4bf | 16859 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
e28c595f JM |
16860 | case $(srcdir) in \ |
16861 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 16862 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ |
e28c595f JM |
16863 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
16864 | esac; \ | |
1b6c0831 L |
16865 | module_srcdir=intl; \ |
16866 | $(SHELL) $$s/$$module_srcdir/configure \ | |
16867 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 16868 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 16869 | --target=${target_alias} \ |
22121df0 | 16870 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
16871 | $(STAGE3_CONFIGURE_FLAGS) |
16872 | @endif intl-bootstrap | |
e28c595f | 16873 | |
a90ef4bf JM |
16874 | .PHONY: configure-stage4-intl maybe-configure-stage4-intl |
16875 | maybe-configure-stage4-intl: | |
16876 | @if intl-bootstrap | |
16877 | maybe-configure-stage4-intl: configure-stage4-intl | |
16878 | configure-stage4-intl: | |
e28c595f | 16879 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
a90ef4bf | 16880 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl |
e28c595f JM |
16881 | @r=`${PWD_COMMAND}`; export r; \ |
16882 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 16883 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
a90ef4bf | 16884 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
e28c595f | 16885 | $(HOST_EXPORTS) \ |
1b05fbbd | 16886 | $(POSTSTAGE1_HOST_EXPORTS) \ |
e28c595f | 16887 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
16888 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ |
16889 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
16890 | echo Configuring stage 4 in $(HOST_SUBDIR)/intl; \ |
16891 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \ | |
a90ef4bf | 16892 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
e28c595f JM |
16893 | case $(srcdir) in \ |
16894 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 16895 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ |
e28c595f JM |
16896 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
16897 | esac; \ | |
1b6c0831 L |
16898 | module_srcdir=intl; \ |
16899 | $(SHELL) $$s/$$module_srcdir/configure \ | |
16900 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 16901 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 16902 | --target=${target_alias} \ |
22121df0 | 16903 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
16904 | $(STAGE4_CONFIGURE_FLAGS) |
16905 | @endif intl-bootstrap | |
e28c595f | 16906 | |
a90ef4bf JM |
16907 | .PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl |
16908 | maybe-configure-stageprofile-intl: | |
16909 | @if intl-bootstrap | |
16910 | maybe-configure-stageprofile-intl: configure-stageprofile-intl | |
16911 | configure-stageprofile-intl: | |
e28c595f | 16912 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
a90ef4bf | 16913 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl |
e28c595f JM |
16914 | @r=`${PWD_COMMAND}`; export r; \ |
16915 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 16916 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
a90ef4bf | 16917 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
e28c595f | 16918 | $(HOST_EXPORTS) \ |
1b05fbbd AO |
16919 | $(POSTSTAGE1_HOST_EXPORTS) \ |
16920 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
1f53ca9a AO |
16921 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ |
16922 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
16923 | echo Configuring stage profile in $(HOST_SUBDIR)/intl; \ |
16924 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \ | |
a90ef4bf | 16925 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
e28c595f JM |
16926 | case $(srcdir) in \ |
16927 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 16928 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ |
e28c595f JM |
16929 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
16930 | esac; \ | |
1b6c0831 L |
16931 | module_srcdir=intl; \ |
16932 | $(SHELL) $$s/$$module_srcdir/configure \ | |
16933 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 16934 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 16935 | --target=${target_alias} \ |
22121df0 | 16936 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
16937 | $(STAGEprofile_CONFIGURE_FLAGS) |
16938 | @endif intl-bootstrap | |
e28c595f | 16939 | |
a90ef4bf JM |
16940 | .PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl |
16941 | maybe-configure-stagefeedback-intl: | |
16942 | @if intl-bootstrap | |
16943 | maybe-configure-stagefeedback-intl: configure-stagefeedback-intl | |
16944 | configure-stagefeedback-intl: | |
e28c595f | 16945 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
a90ef4bf | 16946 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl |
e28c595f JM |
16947 | @r=`${PWD_COMMAND}`; export r; \ |
16948 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 16949 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
a90ef4bf | 16950 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
e28c595f | 16951 | $(HOST_EXPORTS) \ |
1b05fbbd AO |
16952 | $(POSTSTAGE1_HOST_EXPORTS) \ |
16953 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
1f53ca9a AO |
16954 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ |
16955 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
16956 | echo Configuring stage feedback in $(HOST_SUBDIR)/intl; \ |
16957 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \ | |
a90ef4bf | 16958 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
e28c595f JM |
16959 | case $(srcdir) in \ |
16960 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 16961 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ |
e28c595f JM |
16962 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
16963 | esac; \ | |
1b6c0831 L |
16964 | module_srcdir=intl; \ |
16965 | $(SHELL) $$s/$$module_srcdir/configure \ | |
16966 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 16967 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 16968 | --target=${target_alias} \ |
22121df0 | 16969 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
16970 | $(STAGEfeedback_CONFIGURE_FLAGS) |
16971 | @endif intl-bootstrap | |
e28c595f JM |
16972 | |
16973 | ||
16974 | ||
16975 | ||
16976 | ||
a90ef4bf JM |
16977 | .PHONY: all-intl maybe-all-intl |
16978 | maybe-all-intl: | |
e28c595f | 16979 | @if gcc-bootstrap |
a90ef4bf | 16980 | all-intl: stage_current |
e28c595f | 16981 | @endif gcc-bootstrap |
a90ef4bf JM |
16982 | @if intl |
16983 | TARGET-intl=all | |
16984 | maybe-all-intl: all-intl | |
16985 | all-intl: configure-intl | |
e28c595f JM |
16986 | @r=`${PWD_COMMAND}`; export r; \ |
16987 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 16988 | $(HOST_EXPORTS) \ |
a90ef4bf | 16989 | (cd $(HOST_SUBDIR)/intl && \ |
b3676d82 | 16990 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
16991 | $(TARGET-intl)) |
16992 | @endif intl | |
e28c595f JM |
16993 | |
16994 | ||
16995 | ||
a90ef4bf JM |
16996 | .PHONY: all-stage1-intl maybe-all-stage1-intl |
16997 | .PHONY: clean-stage1-intl maybe-clean-stage1-intl | |
16998 | maybe-all-stage1-intl: | |
16999 | maybe-clean-stage1-intl: | |
17000 | @if intl-bootstrap | |
17001 | maybe-all-stage1-intl: all-stage1-intl | |
17002 | all-stage1: all-stage1-intl | |
17003 | TARGET-stage1-intl = $(TARGET-intl) | |
17004 | all-stage1-intl: configure-stage1-intl | |
e28c595f JM |
17005 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
17006 | @r=`${PWD_COMMAND}`; export r; \ | |
17007 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 17008 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
1f53ca9a | 17009 | $(HOST_EXPORTS) \ |
a90ef4bf | 17010 | cd $(HOST_SUBDIR)/intl && \ |
05a13254 | 17011 | \ |
e28c595f | 17012 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 17013 | CFLAGS="$(STAGE1_CFLAGS)" \ |
1f53ca9a | 17014 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ |
1b05fbbd AO |
17015 | LIBCFLAGS="$(LIBCFLAGS)" \ |
17016 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
17017 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
17018 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
17019 | $(EXTRA_HOST_FLAGS) \ |
17020 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 17021 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 17022 | $(TARGET-stage1-intl) |
e28c595f | 17023 | |
a90ef4bf JM |
17024 | maybe-clean-stage1-intl: clean-stage1-intl |
17025 | clean-stage1: clean-stage1-intl | |
17026 | clean-stage1-intl: | |
e28c595f | 17027 | @if [ $(current_stage) = stage1 ]; then \ |
a90ef4bf | 17028 | [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \ |
e28c595f | 17029 | else \ |
a90ef4bf | 17030 | [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \ |
e28c595f JM |
17031 | $(MAKE) stage1-start; \ |
17032 | fi; \ | |
a90ef4bf | 17033 | cd $(HOST_SUBDIR)/intl && \ |
e28c595f | 17034 | $(MAKE) $(EXTRA_HOST_FLAGS) \ |
b3676d82 | 17035 | $(STAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 17036 | @endif intl-bootstrap |
e28c595f JM |
17037 | |
17038 | ||
a90ef4bf JM |
17039 | .PHONY: all-stage2-intl maybe-all-stage2-intl |
17040 | .PHONY: clean-stage2-intl maybe-clean-stage2-intl | |
17041 | maybe-all-stage2-intl: | |
17042 | maybe-clean-stage2-intl: | |
17043 | @if intl-bootstrap | |
17044 | maybe-all-stage2-intl: all-stage2-intl | |
17045 | all-stage2: all-stage2-intl | |
17046 | TARGET-stage2-intl = $(TARGET-intl) | |
17047 | all-stage2-intl: configure-stage2-intl | |
e28c595f JM |
17048 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
17049 | @r=`${PWD_COMMAND}`; export r; \ | |
17050 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 17051 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
e28c595f | 17052 | $(HOST_EXPORTS) \ |
1f53ca9a | 17053 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 17054 | cd $(HOST_SUBDIR)/intl && \ |
05a13254 | 17055 | \ |
e28c595f | 17056 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 17057 | CFLAGS="$(STAGE2_CFLAGS)" \ |
1f53ca9a | 17058 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ |
1b05fbbd AO |
17059 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ |
17060 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
17061 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
17062 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
17063 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 17064 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 17065 | $(TARGET-stage2-intl) |
e28c595f | 17066 | |
a90ef4bf JM |
17067 | maybe-clean-stage2-intl: clean-stage2-intl |
17068 | clean-stage2: clean-stage2-intl | |
17069 | clean-stage2-intl: | |
e28c595f | 17070 | @if [ $(current_stage) = stage2 ]; then \ |
a90ef4bf | 17071 | [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \ |
e28c595f | 17072 | else \ |
a90ef4bf | 17073 | [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \ |
e28c595f JM |
17074 | $(MAKE) stage2-start; \ |
17075 | fi; \ | |
a90ef4bf | 17076 | cd $(HOST_SUBDIR)/intl && \ |
b3676d82 | 17077 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 17078 | @endif intl-bootstrap |
e28c595f JM |
17079 | |
17080 | ||
a90ef4bf JM |
17081 | .PHONY: all-stage3-intl maybe-all-stage3-intl |
17082 | .PHONY: clean-stage3-intl maybe-clean-stage3-intl | |
17083 | maybe-all-stage3-intl: | |
17084 | maybe-clean-stage3-intl: | |
17085 | @if intl-bootstrap | |
17086 | maybe-all-stage3-intl: all-stage3-intl | |
17087 | all-stage3: all-stage3-intl | |
17088 | TARGET-stage3-intl = $(TARGET-intl) | |
17089 | all-stage3-intl: configure-stage3-intl | |
e28c595f JM |
17090 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
17091 | @r=`${PWD_COMMAND}`; export r; \ | |
17092 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 17093 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
e28c595f | 17094 | $(HOST_EXPORTS) \ |
1f53ca9a | 17095 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 17096 | cd $(HOST_SUBDIR)/intl && \ |
05a13254 | 17097 | \ |
e28c595f | 17098 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 17099 | CFLAGS="$(STAGE3_CFLAGS)" \ |
1f53ca9a | 17100 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ |
1b05fbbd AO |
17101 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ |
17102 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
17103 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
17104 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
17105 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 17106 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 17107 | $(TARGET-stage3-intl) |
e28c595f | 17108 | |
a90ef4bf JM |
17109 | maybe-clean-stage3-intl: clean-stage3-intl |
17110 | clean-stage3: clean-stage3-intl | |
17111 | clean-stage3-intl: | |
e28c595f | 17112 | @if [ $(current_stage) = stage3 ]; then \ |
a90ef4bf | 17113 | [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \ |
e28c595f | 17114 | else \ |
a90ef4bf | 17115 | [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \ |
e28c595f JM |
17116 | $(MAKE) stage3-start; \ |
17117 | fi; \ | |
a90ef4bf | 17118 | cd $(HOST_SUBDIR)/intl && \ |
b3676d82 | 17119 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 17120 | @endif intl-bootstrap |
e28c595f JM |
17121 | |
17122 | ||
a90ef4bf JM |
17123 | .PHONY: all-stage4-intl maybe-all-stage4-intl |
17124 | .PHONY: clean-stage4-intl maybe-clean-stage4-intl | |
17125 | maybe-all-stage4-intl: | |
17126 | maybe-clean-stage4-intl: | |
17127 | @if intl-bootstrap | |
17128 | maybe-all-stage4-intl: all-stage4-intl | |
17129 | all-stage4: all-stage4-intl | |
17130 | TARGET-stage4-intl = $(TARGET-intl) | |
17131 | all-stage4-intl: configure-stage4-intl | |
e28c595f JM |
17132 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
17133 | @r=`${PWD_COMMAND}`; export r; \ | |
17134 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 17135 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
e28c595f | 17136 | $(HOST_EXPORTS) \ |
1f53ca9a | 17137 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 17138 | cd $(HOST_SUBDIR)/intl && \ |
05a13254 | 17139 | \ |
e28c595f | 17140 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 17141 | CFLAGS="$(STAGE4_CFLAGS)" \ |
1f53ca9a | 17142 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ |
e28c595f | 17143 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ |
1b05fbbd AO |
17144 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ |
17145 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
17146 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
17147 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 17148 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 17149 | $(TARGET-stage4-intl) |
e28c595f | 17150 | |
a90ef4bf JM |
17151 | maybe-clean-stage4-intl: clean-stage4-intl |
17152 | clean-stage4: clean-stage4-intl | |
17153 | clean-stage4-intl: | |
e28c595f | 17154 | @if [ $(current_stage) = stage4 ]; then \ |
a90ef4bf | 17155 | [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \ |
e28c595f | 17156 | else \ |
a90ef4bf | 17157 | [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \ |
e28c595f JM |
17158 | $(MAKE) stage4-start; \ |
17159 | fi; \ | |
a90ef4bf | 17160 | cd $(HOST_SUBDIR)/intl && \ |
b3676d82 | 17161 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 17162 | @endif intl-bootstrap |
e28c595f JM |
17163 | |
17164 | ||
a90ef4bf JM |
17165 | .PHONY: all-stageprofile-intl maybe-all-stageprofile-intl |
17166 | .PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl | |
17167 | maybe-all-stageprofile-intl: | |
17168 | maybe-clean-stageprofile-intl: | |
17169 | @if intl-bootstrap | |
17170 | maybe-all-stageprofile-intl: all-stageprofile-intl | |
17171 | all-stageprofile: all-stageprofile-intl | |
17172 | TARGET-stageprofile-intl = $(TARGET-intl) | |
17173 | all-stageprofile-intl: configure-stageprofile-intl | |
e28c595f JM |
17174 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
17175 | @r=`${PWD_COMMAND}`; export r; \ | |
17176 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 17177 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
e28c595f | 17178 | $(HOST_EXPORTS) \ |
1f53ca9a | 17179 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 17180 | cd $(HOST_SUBDIR)/intl && \ |
05a13254 | 17181 | \ |
e28c595f | 17182 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 17183 | CFLAGS="$(STAGEprofile_CFLAGS)" \ |
1f53ca9a | 17184 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ |
1b05fbbd AO |
17185 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ |
17186 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
17187 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
17188 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
17189 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 17190 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf | 17191 | $(TARGET-stageprofile-intl) |
e28c595f | 17192 | |
a90ef4bf JM |
17193 | maybe-clean-stageprofile-intl: clean-stageprofile-intl |
17194 | clean-stageprofile: clean-stageprofile-intl | |
17195 | clean-stageprofile-intl: | |
e28c595f | 17196 | @if [ $(current_stage) = stageprofile ]; then \ |
a90ef4bf | 17197 | [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \ |
e28c595f | 17198 | else \ |
a90ef4bf | 17199 | [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \ |
e28c595f JM |
17200 | $(MAKE) stageprofile-start; \ |
17201 | fi; \ | |
a90ef4bf | 17202 | cd $(HOST_SUBDIR)/intl && \ |
b3676d82 | 17203 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 17204 | @endif intl-bootstrap |
e28c595f JM |
17205 | |
17206 | ||
a90ef4bf JM |
17207 | .PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl |
17208 | .PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl | |
17209 | maybe-all-stagefeedback-intl: | |
17210 | maybe-clean-stagefeedback-intl: | |
17211 | @if intl-bootstrap | |
17212 | maybe-all-stagefeedback-intl: all-stagefeedback-intl | |
17213 | all-stagefeedback: all-stagefeedback-intl | |
17214 | TARGET-stagefeedback-intl = $(TARGET-intl) | |
17215 | all-stagefeedback-intl: configure-stagefeedback-intl | |
e28c595f JM |
17216 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
17217 | @r=`${PWD_COMMAND}`; export r; \ | |
17218 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 17219 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
e28c595f | 17220 | $(HOST_EXPORTS) \ |
1f53ca9a | 17221 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 17222 | cd $(HOST_SUBDIR)/intl && \ |
05a13254 | 17223 | \ |
e28c595f | 17224 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 17225 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ |
1f53ca9a | 17226 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ |
1b05fbbd AO |
17227 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ |
17228 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
17229 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
17230 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
17231 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 17232 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf | 17233 | $(TARGET-stagefeedback-intl) |
e28c595f | 17234 | |
a90ef4bf JM |
17235 | maybe-clean-stagefeedback-intl: clean-stagefeedback-intl |
17236 | clean-stagefeedback: clean-stagefeedback-intl | |
17237 | clean-stagefeedback-intl: | |
e28c595f | 17238 | @if [ $(current_stage) = stagefeedback ]; then \ |
a90ef4bf | 17239 | [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \ |
e28c595f | 17240 | else \ |
a90ef4bf | 17241 | [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \ |
e28c595f JM |
17242 | $(MAKE) stagefeedback-start; \ |
17243 | fi; \ | |
a90ef4bf | 17244 | cd $(HOST_SUBDIR)/intl && \ |
b3676d82 | 17245 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 17246 | @endif intl-bootstrap |
e28c595f JM |
17247 | |
17248 | ||
17249 | ||
17250 | ||
17251 | ||
a90ef4bf JM |
17252 | .PHONY: check-intl maybe-check-intl |
17253 | maybe-check-intl: | |
17254 | @if intl | |
17255 | maybe-check-intl: check-intl | |
e28c595f | 17256 | |
a90ef4bf | 17257 | check-intl: |
e28c595f JM |
17258 | @: $(MAKE); $(unstage) |
17259 | @r=`${PWD_COMMAND}`; export r; \ | |
17260 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 17261 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 17262 | (cd $(HOST_SUBDIR)/intl && \ |
f91ca6bc | 17263 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
e28c595f | 17264 | |
a90ef4bf | 17265 | @endif intl |
e28c595f | 17266 | |
a90ef4bf JM |
17267 | .PHONY: install-intl maybe-install-intl |
17268 | maybe-install-intl: | |
17269 | @if intl | |
17270 | maybe-install-intl: install-intl | |
e28c595f | 17271 | |
a90ef4bf JM |
17272 | install-intl: installdirs |
17273 | @: $(MAKE); $(unstage) | |
17274 | @r=`${PWD_COMMAND}`; export r; \ | |
17275 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17276 | $(HOST_EXPORTS) \ | |
17277 | (cd $(HOST_SUBDIR)/intl && \ | |
17278 | $(MAKE) $(FLAGS_TO_PASS) install) | |
e28c595f | 17279 | |
a90ef4bf | 17280 | @endif intl |
e28c595f | 17281 | |
a90ef4bf JM |
17282 | .PHONY: install-strip-intl maybe-install-strip-intl |
17283 | maybe-install-strip-intl: | |
17284 | @if intl | |
17285 | maybe-install-strip-intl: install-strip-intl | |
9b980aa1 | 17286 | |
a90ef4bf JM |
17287 | install-strip-intl: installdirs |
17288 | @: $(MAKE); $(unstage) | |
17289 | @r=`${PWD_COMMAND}`; export r; \ | |
17290 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17291 | $(HOST_EXPORTS) \ | |
17292 | (cd $(HOST_SUBDIR)/intl && \ | |
17293 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
9b980aa1 | 17294 | |
a90ef4bf | 17295 | @endif intl |
9b980aa1 | 17296 | |
e28c595f JM |
17297 | # Other targets (info, dvi, pdf, etc.) |
17298 | ||
a90ef4bf JM |
17299 | .PHONY: maybe-info-intl info-intl |
17300 | maybe-info-intl: | |
17301 | @if intl | |
17302 | maybe-info-intl: info-intl | |
e28c595f | 17303 | |
a90ef4bf JM |
17304 | info-intl: \ |
17305 | configure-intl | |
17306 | @[ -f ./intl/Makefile ] || exit 0; \ | |
e28c595f JM |
17307 | r=`${PWD_COMMAND}`; export r; \ |
17308 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17309 | $(HOST_EXPORTS) \ | |
17310 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17311 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17312 | done; \ | |
22121df0 | 17313 | echo "Doing info in intl"; \ |
a90ef4bf | 17314 | (cd $(HOST_SUBDIR)/intl && \ |
e28c595f JM |
17315 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17316 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17317 | "RANLIB=$${RANLIB}" \ | |
17318 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17319 | info) \ | |
17320 | || exit 1 | |
17321 | ||
a90ef4bf | 17322 | @endif intl |
e28c595f | 17323 | |
a90ef4bf JM |
17324 | .PHONY: maybe-dvi-intl dvi-intl |
17325 | maybe-dvi-intl: | |
17326 | @if intl | |
17327 | maybe-dvi-intl: dvi-intl | |
e28c595f | 17328 | |
a90ef4bf JM |
17329 | dvi-intl: \ |
17330 | configure-intl | |
17331 | @[ -f ./intl/Makefile ] || exit 0; \ | |
e28c595f JM |
17332 | r=`${PWD_COMMAND}`; export r; \ |
17333 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17334 | $(HOST_EXPORTS) \ | |
17335 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17336 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17337 | done; \ | |
22121df0 | 17338 | echo "Doing dvi in intl"; \ |
a90ef4bf | 17339 | (cd $(HOST_SUBDIR)/intl && \ |
e28c595f JM |
17340 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17341 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17342 | "RANLIB=$${RANLIB}" \ | |
17343 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17344 | dvi) \ | |
17345 | || exit 1 | |
17346 | ||
a90ef4bf | 17347 | @endif intl |
e28c595f | 17348 | |
a90ef4bf JM |
17349 | .PHONY: maybe-pdf-intl pdf-intl |
17350 | maybe-pdf-intl: | |
17351 | @if intl | |
17352 | maybe-pdf-intl: pdf-intl | |
e28c595f | 17353 | |
a90ef4bf JM |
17354 | pdf-intl: \ |
17355 | configure-intl | |
17356 | @[ -f ./intl/Makefile ] || exit 0; \ | |
e28c595f JM |
17357 | r=`${PWD_COMMAND}`; export r; \ |
17358 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17359 | $(HOST_EXPORTS) \ | |
17360 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17361 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17362 | done; \ | |
22121df0 | 17363 | echo "Doing pdf in intl"; \ |
a90ef4bf | 17364 | (cd $(HOST_SUBDIR)/intl && \ |
e28c595f JM |
17365 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17366 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17367 | "RANLIB=$${RANLIB}" \ | |
17368 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17369 | pdf) \ | |
17370 | || exit 1 | |
17371 | ||
a90ef4bf | 17372 | @endif intl |
e28c595f | 17373 | |
a90ef4bf JM |
17374 | .PHONY: maybe-html-intl html-intl |
17375 | maybe-html-intl: | |
17376 | @if intl | |
17377 | maybe-html-intl: html-intl | |
e28c595f | 17378 | |
a90ef4bf JM |
17379 | html-intl: \ |
17380 | configure-intl | |
17381 | @[ -f ./intl/Makefile ] || exit 0; \ | |
e28c595f JM |
17382 | r=`${PWD_COMMAND}`; export r; \ |
17383 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17384 | $(HOST_EXPORTS) \ | |
17385 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17386 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17387 | done; \ | |
22121df0 | 17388 | echo "Doing html in intl"; \ |
a90ef4bf | 17389 | (cd $(HOST_SUBDIR)/intl && \ |
e28c595f JM |
17390 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17391 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17392 | "RANLIB=$${RANLIB}" \ | |
17393 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17394 | html) \ | |
17395 | || exit 1 | |
17396 | ||
a90ef4bf | 17397 | @endif intl |
e28c595f | 17398 | |
a90ef4bf JM |
17399 | .PHONY: maybe-TAGS-intl TAGS-intl |
17400 | maybe-TAGS-intl: | |
17401 | @if intl | |
17402 | maybe-TAGS-intl: TAGS-intl | |
e28c595f | 17403 | |
a90ef4bf JM |
17404 | TAGS-intl: \ |
17405 | configure-intl | |
17406 | @[ -f ./intl/Makefile ] || exit 0; \ | |
e28c595f JM |
17407 | r=`${PWD_COMMAND}`; export r; \ |
17408 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17409 | $(HOST_EXPORTS) \ | |
17410 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17411 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17412 | done; \ | |
22121df0 | 17413 | echo "Doing TAGS in intl"; \ |
a90ef4bf | 17414 | (cd $(HOST_SUBDIR)/intl && \ |
e28c595f JM |
17415 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17416 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17417 | "RANLIB=$${RANLIB}" \ | |
17418 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17419 | TAGS) \ | |
17420 | || exit 1 | |
17421 | ||
a90ef4bf | 17422 | @endif intl |
e28c595f | 17423 | |
a90ef4bf JM |
17424 | .PHONY: maybe-install-info-intl install-info-intl |
17425 | maybe-install-info-intl: | |
17426 | @if intl | |
17427 | maybe-install-info-intl: install-info-intl | |
e28c595f | 17428 | |
a90ef4bf JM |
17429 | install-info-intl: \ |
17430 | configure-intl \ | |
17431 | info-intl | |
17432 | @[ -f ./intl/Makefile ] || exit 0; \ | |
e28c595f JM |
17433 | r=`${PWD_COMMAND}`; export r; \ |
17434 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17435 | $(HOST_EXPORTS) \ | |
17436 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17437 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17438 | done; \ | |
22121df0 | 17439 | echo "Doing install-info in intl"; \ |
a90ef4bf | 17440 | (cd $(HOST_SUBDIR)/intl && \ |
e28c595f JM |
17441 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17442 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17443 | "RANLIB=$${RANLIB}" \ | |
17444 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17445 | install-info) \ | |
17446 | || exit 1 | |
17447 | ||
a90ef4bf | 17448 | @endif intl |
e28c595f | 17449 | |
a90ef4bf JM |
17450 | .PHONY: maybe-install-pdf-intl install-pdf-intl |
17451 | maybe-install-pdf-intl: | |
17452 | @if intl | |
17453 | maybe-install-pdf-intl: install-pdf-intl | |
e28c595f | 17454 | |
a90ef4bf JM |
17455 | install-pdf-intl: \ |
17456 | configure-intl \ | |
17457 | pdf-intl | |
17458 | @[ -f ./intl/Makefile ] || exit 0; \ | |
e28c595f JM |
17459 | r=`${PWD_COMMAND}`; export r; \ |
17460 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17461 | $(HOST_EXPORTS) \ | |
17462 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17463 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17464 | done; \ | |
22121df0 | 17465 | echo "Doing install-pdf in intl"; \ |
a90ef4bf | 17466 | (cd $(HOST_SUBDIR)/intl && \ |
e28c595f JM |
17467 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17468 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17469 | "RANLIB=$${RANLIB}" \ | |
17470 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17471 | install-pdf) \ | |
17472 | || exit 1 | |
17473 | ||
a90ef4bf | 17474 | @endif intl |
e28c595f | 17475 | |
a90ef4bf JM |
17476 | .PHONY: maybe-install-html-intl install-html-intl |
17477 | maybe-install-html-intl: | |
17478 | @if intl | |
17479 | maybe-install-html-intl: install-html-intl | |
e28c595f | 17480 | |
a90ef4bf JM |
17481 | install-html-intl: \ |
17482 | configure-intl \ | |
17483 | html-intl | |
17484 | @[ -f ./intl/Makefile ] || exit 0; \ | |
e28c595f JM |
17485 | r=`${PWD_COMMAND}`; export r; \ |
17486 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17487 | $(HOST_EXPORTS) \ | |
17488 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17489 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17490 | done; \ | |
22121df0 | 17491 | echo "Doing install-html in intl"; \ |
a90ef4bf | 17492 | (cd $(HOST_SUBDIR)/intl && \ |
e28c595f JM |
17493 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17494 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17495 | "RANLIB=$${RANLIB}" \ | |
17496 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17497 | install-html) \ | |
17498 | || exit 1 | |
17499 | ||
a90ef4bf | 17500 | @endif intl |
e28c595f | 17501 | |
a90ef4bf JM |
17502 | .PHONY: maybe-installcheck-intl installcheck-intl |
17503 | maybe-installcheck-intl: | |
17504 | @if intl | |
17505 | maybe-installcheck-intl: installcheck-intl | |
e28c595f | 17506 | |
a90ef4bf JM |
17507 | installcheck-intl: \ |
17508 | configure-intl | |
17509 | @[ -f ./intl/Makefile ] || exit 0; \ | |
e28c595f JM |
17510 | r=`${PWD_COMMAND}`; export r; \ |
17511 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17512 | $(HOST_EXPORTS) \ | |
17513 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17514 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17515 | done; \ | |
22121df0 | 17516 | echo "Doing installcheck in intl"; \ |
a90ef4bf | 17517 | (cd $(HOST_SUBDIR)/intl && \ |
e28c595f JM |
17518 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17519 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17520 | "RANLIB=$${RANLIB}" \ | |
17521 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17522 | installcheck) \ | |
17523 | || exit 1 | |
17524 | ||
a90ef4bf | 17525 | @endif intl |
e28c595f | 17526 | |
a90ef4bf JM |
17527 | .PHONY: maybe-mostlyclean-intl mostlyclean-intl |
17528 | maybe-mostlyclean-intl: | |
17529 | @if intl | |
17530 | maybe-mostlyclean-intl: mostlyclean-intl | |
e28c595f | 17531 | |
a90ef4bf JM |
17532 | mostlyclean-intl: |
17533 | @[ -f ./intl/Makefile ] || exit 0; \ | |
e28c595f JM |
17534 | r=`${PWD_COMMAND}`; export r; \ |
17535 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17536 | $(HOST_EXPORTS) \ | |
17537 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17538 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17539 | done; \ | |
22121df0 | 17540 | echo "Doing mostlyclean in intl"; \ |
a90ef4bf | 17541 | (cd $(HOST_SUBDIR)/intl && \ |
e28c595f JM |
17542 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17543 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17544 | "RANLIB=$${RANLIB}" \ | |
17545 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17546 | mostlyclean) \ | |
17547 | || exit 1 | |
17548 | ||
a90ef4bf | 17549 | @endif intl |
e28c595f | 17550 | |
a90ef4bf JM |
17551 | .PHONY: maybe-clean-intl clean-intl |
17552 | maybe-clean-intl: | |
17553 | @if intl | |
17554 | maybe-clean-intl: clean-intl | |
e28c595f | 17555 | |
a90ef4bf JM |
17556 | clean-intl: |
17557 | @[ -f ./intl/Makefile ] || exit 0; \ | |
e28c595f JM |
17558 | r=`${PWD_COMMAND}`; export r; \ |
17559 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17560 | $(HOST_EXPORTS) \ | |
17561 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17562 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17563 | done; \ | |
22121df0 | 17564 | echo "Doing clean in intl"; \ |
a90ef4bf | 17565 | (cd $(HOST_SUBDIR)/intl && \ |
e28c595f JM |
17566 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17567 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17568 | "RANLIB=$${RANLIB}" \ | |
17569 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17570 | clean) \ | |
17571 | || exit 1 | |
17572 | ||
a90ef4bf | 17573 | @endif intl |
e28c595f | 17574 | |
a90ef4bf JM |
17575 | .PHONY: maybe-distclean-intl distclean-intl |
17576 | maybe-distclean-intl: | |
17577 | @if intl | |
17578 | maybe-distclean-intl: distclean-intl | |
e28c595f | 17579 | |
a90ef4bf JM |
17580 | distclean-intl: |
17581 | @[ -f ./intl/Makefile ] || exit 0; \ | |
e28c595f JM |
17582 | r=`${PWD_COMMAND}`; export r; \ |
17583 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17584 | $(HOST_EXPORTS) \ | |
17585 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17586 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17587 | done; \ | |
22121df0 | 17588 | echo "Doing distclean in intl"; \ |
a90ef4bf | 17589 | (cd $(HOST_SUBDIR)/intl && \ |
e28c595f JM |
17590 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17591 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17592 | "RANLIB=$${RANLIB}" \ | |
17593 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17594 | distclean) \ | |
17595 | || exit 1 | |
17596 | ||
a90ef4bf | 17597 | @endif intl |
e28c595f | 17598 | |
a90ef4bf JM |
17599 | .PHONY: maybe-maintainer-clean-intl maintainer-clean-intl |
17600 | maybe-maintainer-clean-intl: | |
17601 | @if intl | |
17602 | maybe-maintainer-clean-intl: maintainer-clean-intl | |
e28c595f | 17603 | |
a90ef4bf JM |
17604 | maintainer-clean-intl: |
17605 | @[ -f ./intl/Makefile ] || exit 0; \ | |
e28c595f JM |
17606 | r=`${PWD_COMMAND}`; export r; \ |
17607 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17608 | $(HOST_EXPORTS) \ | |
17609 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17610 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17611 | done; \ | |
22121df0 | 17612 | echo "Doing maintainer-clean in intl"; \ |
a90ef4bf | 17613 | (cd $(HOST_SUBDIR)/intl && \ |
e28c595f JM |
17614 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17615 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17616 | "RANLIB=$${RANLIB}" \ | |
17617 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17618 | maintainer-clean) \ | |
17619 | || exit 1 | |
17620 | ||
a90ef4bf | 17621 | @endif intl |
e28c595f JM |
17622 | |
17623 | ||
17624 | ||
a90ef4bf JM |
17625 | .PHONY: configure-tcl maybe-configure-tcl |
17626 | maybe-configure-tcl: | |
e8a5fa9c | 17627 | @if gcc-bootstrap |
a90ef4bf | 17628 | configure-tcl: stage_current |
e8a5fa9c | 17629 | @endif gcc-bootstrap |
a90ef4bf JM |
17630 | @if tcl |
17631 | maybe-configure-tcl: configure-tcl | |
17632 | configure-tcl: | |
17633 | @: $(MAKE); $(unstage) | |
e8a5fa9c RW |
17634 | @r=`${PWD_COMMAND}`; export r; \ |
17635 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 17636 | test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \ |
22121df0 | 17637 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl; \ |
1f53ca9a | 17638 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
17639 | echo Configuring in $(HOST_SUBDIR)/tcl; \ |
17640 | cd "$(HOST_SUBDIR)/tcl" || exit 1; \ | |
e8a5fa9c RW |
17641 | case $(srcdir) in \ |
17642 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 17643 | *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \ |
e8a5fa9c RW |
17644 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
17645 | esac; \ | |
1b6c0831 L |
17646 | module_srcdir=tcl; \ |
17647 | $(SHELL) \ | |
17648 | $$s/$$module_srcdir/configure \ | |
17649 | --srcdir=$${topdir}/$$module_srcdir \ | |
e8a5fa9c | 17650 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 17651 | --target=${target_alias} \ |
e8a5fa9c | 17652 | || exit 1 |
a90ef4bf | 17653 | @endif tcl |
e8a5fa9c RW |
17654 | |
17655 | ||
17656 | ||
e8a5fa9c | 17657 | |
e8a5fa9c | 17658 | |
a90ef4bf JM |
17659 | .PHONY: all-tcl maybe-all-tcl |
17660 | maybe-all-tcl: | |
17661 | @if gcc-bootstrap | |
17662 | all-tcl: stage_current | |
17663 | @endif gcc-bootstrap | |
17664 | @if tcl | |
17665 | TARGET-tcl=all | |
17666 | maybe-all-tcl: all-tcl | |
17667 | all-tcl: configure-tcl | |
17668 | @: $(MAKE); $(unstage) | |
e8a5fa9c RW |
17669 | @r=`${PWD_COMMAND}`; export r; \ |
17670 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
17671 | $(HOST_EXPORTS) \ |
17672 | (cd $(HOST_SUBDIR)/tcl && \ | |
b3676d82 | 17673 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
17674 | $(TARGET-tcl)) |
17675 | @endif tcl | |
e8a5fa9c | 17676 | |
a90ef4bf JM |
17677 | |
17678 | ||
17679 | ||
17680 | .PHONY: check-tcl maybe-check-tcl | |
17681 | maybe-check-tcl: | |
17682 | @if tcl | |
17683 | maybe-check-tcl: check-tcl | |
17684 | ||
17685 | check-tcl: | |
17686 | @: $(MAKE); $(unstage) | |
e8a5fa9c RW |
17687 | @r=`${PWD_COMMAND}`; export r; \ |
17688 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 17689 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
17690 | (cd $(HOST_SUBDIR)/tcl && \ |
17691 | $(MAKE) $(FLAGS_TO_PASS) check) | |
e8a5fa9c | 17692 | |
a90ef4bf JM |
17693 | @endif tcl |
17694 | ||
17695 | .PHONY: install-tcl maybe-install-tcl | |
17696 | maybe-install-tcl: | |
17697 | @if tcl | |
17698 | maybe-install-tcl: install-tcl | |
17699 | ||
17700 | install-tcl: installdirs | |
17701 | @: $(MAKE); $(unstage) | |
e8a5fa9c RW |
17702 | @r=`${PWD_COMMAND}`; export r; \ |
17703 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
e8a5fa9c | 17704 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
17705 | (cd $(HOST_SUBDIR)/tcl && \ |
17706 | $(MAKE) $(FLAGS_TO_PASS) install) | |
e8a5fa9c | 17707 | |
a90ef4bf JM |
17708 | @endif tcl |
17709 | ||
17710 | .PHONY: install-strip-tcl maybe-install-strip-tcl | |
17711 | maybe-install-strip-tcl: | |
17712 | @if tcl | |
17713 | maybe-install-strip-tcl: install-strip-tcl | |
17714 | ||
17715 | install-strip-tcl: installdirs | |
17716 | @: $(MAKE); $(unstage) | |
e8a5fa9c RW |
17717 | @r=`${PWD_COMMAND}`; export r; \ |
17718 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
e8a5fa9c | 17719 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
17720 | (cd $(HOST_SUBDIR)/tcl && \ |
17721 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
e8a5fa9c | 17722 | |
a90ef4bf | 17723 | @endif tcl |
e8a5fa9c | 17724 | |
a90ef4bf | 17725 | # Other targets (info, dvi, pdf, etc.) |
e8a5fa9c | 17726 | |
a90ef4bf JM |
17727 | .PHONY: maybe-info-tcl info-tcl |
17728 | maybe-info-tcl: | |
17729 | @if tcl | |
17730 | maybe-info-tcl: info-tcl | |
e8a5fa9c | 17731 | |
a90ef4bf JM |
17732 | info-tcl: \ |
17733 | configure-tcl | |
17734 | @: $(MAKE); $(unstage) | |
17735 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
17736 | r=`${PWD_COMMAND}`; export r; \ | |
e8a5fa9c | 17737 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
17738 | $(HOST_EXPORTS) \ |
17739 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17740 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17741 | done; \ | |
22121df0 | 17742 | echo "Doing info in tcl"; \ |
a90ef4bf JM |
17743 | (cd $(HOST_SUBDIR)/tcl && \ |
17744 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
17745 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17746 | "RANLIB=$${RANLIB}" \ | |
17747 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17748 | info) \ | |
17749 | || exit 1 | |
e8a5fa9c | 17750 | |
a90ef4bf | 17751 | @endif tcl |
e8a5fa9c | 17752 | |
a90ef4bf JM |
17753 | .PHONY: maybe-dvi-tcl dvi-tcl |
17754 | maybe-dvi-tcl: | |
17755 | @if tcl | |
17756 | maybe-dvi-tcl: dvi-tcl | |
e8a5fa9c | 17757 | |
a90ef4bf JM |
17758 | dvi-tcl: \ |
17759 | configure-tcl | |
17760 | @: $(MAKE); $(unstage) | |
17761 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
17762 | r=`${PWD_COMMAND}`; export r; \ | |
e8a5fa9c | 17763 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
17764 | $(HOST_EXPORTS) \ |
17765 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17766 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17767 | done; \ | |
22121df0 | 17768 | echo "Doing dvi in tcl"; \ |
a90ef4bf JM |
17769 | (cd $(HOST_SUBDIR)/tcl && \ |
17770 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
17771 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17772 | "RANLIB=$${RANLIB}" \ | |
17773 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17774 | dvi) \ | |
17775 | || exit 1 | |
e8a5fa9c | 17776 | |
a90ef4bf | 17777 | @endif tcl |
e8a5fa9c | 17778 | |
a90ef4bf JM |
17779 | .PHONY: maybe-pdf-tcl pdf-tcl |
17780 | maybe-pdf-tcl: | |
17781 | @if tcl | |
17782 | maybe-pdf-tcl: pdf-tcl | |
e8a5fa9c | 17783 | |
a90ef4bf JM |
17784 | pdf-tcl: \ |
17785 | configure-tcl | |
17786 | @: $(MAKE); $(unstage) | |
17787 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
17788 | r=`${PWD_COMMAND}`; export r; \ | |
e8a5fa9c | 17789 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
e8a5fa9c | 17790 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
17791 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
17792 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17793 | done; \ | |
22121df0 | 17794 | echo "Doing pdf in tcl"; \ |
a90ef4bf JM |
17795 | (cd $(HOST_SUBDIR)/tcl && \ |
17796 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
17797 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17798 | "RANLIB=$${RANLIB}" \ | |
17799 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17800 | pdf) \ | |
17801 | || exit 1 | |
e8a5fa9c | 17802 | |
a90ef4bf | 17803 | @endif tcl |
e8a5fa9c | 17804 | |
a90ef4bf JM |
17805 | .PHONY: maybe-html-tcl html-tcl |
17806 | maybe-html-tcl: | |
17807 | @if tcl | |
17808 | maybe-html-tcl: html-tcl | |
e8a5fa9c | 17809 | |
a90ef4bf JM |
17810 | html-tcl: \ |
17811 | configure-tcl | |
17812 | @: $(MAKE); $(unstage) | |
17813 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
17814 | r=`${PWD_COMMAND}`; export r; \ | |
e8a5fa9c | 17815 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
e8a5fa9c | 17816 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
17817 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
17818 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17819 | done; \ | |
22121df0 | 17820 | echo "Doing html in tcl"; \ |
a90ef4bf JM |
17821 | (cd $(HOST_SUBDIR)/tcl && \ |
17822 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
17823 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17824 | "RANLIB=$${RANLIB}" \ | |
17825 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17826 | html) \ | |
17827 | || exit 1 | |
e8a5fa9c | 17828 | |
a90ef4bf | 17829 | @endif tcl |
e8a5fa9c | 17830 | |
a90ef4bf JM |
17831 | .PHONY: maybe-TAGS-tcl TAGS-tcl |
17832 | maybe-TAGS-tcl: | |
17833 | @if tcl | |
17834 | maybe-TAGS-tcl: TAGS-tcl | |
e8a5fa9c | 17835 | |
a90ef4bf JM |
17836 | TAGS-tcl: \ |
17837 | configure-tcl | |
17838 | @: $(MAKE); $(unstage) | |
17839 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
17840 | r=`${PWD_COMMAND}`; export r; \ | |
e8a5fa9c | 17841 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
e8a5fa9c | 17842 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
17843 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
17844 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17845 | done; \ | |
22121df0 | 17846 | echo "Doing TAGS in tcl"; \ |
a90ef4bf JM |
17847 | (cd $(HOST_SUBDIR)/tcl && \ |
17848 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
17849 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17850 | "RANLIB=$${RANLIB}" \ | |
17851 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
17852 | TAGS) \ | |
17853 | || exit 1 | |
e8a5fa9c | 17854 | |
a90ef4bf | 17855 | @endif tcl |
e8a5fa9c | 17856 | |
a90ef4bf JM |
17857 | .PHONY: maybe-install-info-tcl install-info-tcl |
17858 | maybe-install-info-tcl: | |
17859 | @if tcl | |
17860 | maybe-install-info-tcl: install-info-tcl | |
e8a5fa9c | 17861 | |
a90ef4bf JM |
17862 | install-info-tcl: \ |
17863 | configure-tcl \ | |
17864 | info-tcl | |
e8a5fa9c | 17865 | @: $(MAKE); $(unstage) |
a90ef4bf | 17866 | @[ -f ./tcl/Makefile ] || exit 0; \ |
e8a5fa9c RW |
17867 | r=`${PWD_COMMAND}`; export r; \ |
17868 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17869 | $(HOST_EXPORTS) \ | |
17870 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17871 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17872 | done; \ | |
22121df0 | 17873 | echo "Doing install-info in tcl"; \ |
a90ef4bf | 17874 | (cd $(HOST_SUBDIR)/tcl && \ |
e8a5fa9c RW |
17875 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17876 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17877 | "RANLIB=$${RANLIB}" \ | |
17878 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 17879 | install-info) \ |
e8a5fa9c RW |
17880 | || exit 1 |
17881 | ||
a90ef4bf | 17882 | @endif tcl |
e8a5fa9c | 17883 | |
a90ef4bf JM |
17884 | .PHONY: maybe-install-pdf-tcl install-pdf-tcl |
17885 | maybe-install-pdf-tcl: | |
17886 | @if tcl | |
17887 | maybe-install-pdf-tcl: install-pdf-tcl | |
e8a5fa9c | 17888 | |
a90ef4bf JM |
17889 | install-pdf-tcl: \ |
17890 | configure-tcl \ | |
17891 | pdf-tcl | |
17892 | @: $(MAKE); $(unstage) | |
17893 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
e8a5fa9c RW |
17894 | r=`${PWD_COMMAND}`; export r; \ |
17895 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17896 | $(HOST_EXPORTS) \ | |
17897 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17898 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17899 | done; \ | |
22121df0 | 17900 | echo "Doing install-pdf in tcl"; \ |
a90ef4bf | 17901 | (cd $(HOST_SUBDIR)/tcl && \ |
e8a5fa9c RW |
17902 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17903 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17904 | "RANLIB=$${RANLIB}" \ | |
17905 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 17906 | install-pdf) \ |
e8a5fa9c RW |
17907 | || exit 1 |
17908 | ||
a90ef4bf | 17909 | @endif tcl |
e8a5fa9c | 17910 | |
a90ef4bf JM |
17911 | .PHONY: maybe-install-html-tcl install-html-tcl |
17912 | maybe-install-html-tcl: | |
17913 | @if tcl | |
17914 | maybe-install-html-tcl: install-html-tcl | |
e8a5fa9c | 17915 | |
a90ef4bf JM |
17916 | install-html-tcl: \ |
17917 | configure-tcl \ | |
17918 | html-tcl | |
17919 | @: $(MAKE); $(unstage) | |
17920 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
e8a5fa9c RW |
17921 | r=`${PWD_COMMAND}`; export r; \ |
17922 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17923 | $(HOST_EXPORTS) \ | |
17924 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17925 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17926 | done; \ | |
22121df0 | 17927 | echo "Doing install-html in tcl"; \ |
a90ef4bf | 17928 | (cd $(HOST_SUBDIR)/tcl && \ |
e8a5fa9c RW |
17929 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17930 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17931 | "RANLIB=$${RANLIB}" \ | |
17932 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 17933 | install-html) \ |
e8a5fa9c RW |
17934 | || exit 1 |
17935 | ||
a90ef4bf | 17936 | @endif tcl |
e8a5fa9c | 17937 | |
a90ef4bf JM |
17938 | .PHONY: maybe-installcheck-tcl installcheck-tcl |
17939 | maybe-installcheck-tcl: | |
17940 | @if tcl | |
17941 | maybe-installcheck-tcl: installcheck-tcl | |
e8a5fa9c | 17942 | |
a90ef4bf JM |
17943 | installcheck-tcl: \ |
17944 | configure-tcl | |
17945 | @: $(MAKE); $(unstage) | |
17946 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
e8a5fa9c RW |
17947 | r=`${PWD_COMMAND}`; export r; \ |
17948 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17949 | $(HOST_EXPORTS) \ | |
17950 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17951 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17952 | done; \ | |
22121df0 | 17953 | echo "Doing installcheck in tcl"; \ |
a90ef4bf | 17954 | (cd $(HOST_SUBDIR)/tcl && \ |
e8a5fa9c RW |
17955 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17956 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17957 | "RANLIB=$${RANLIB}" \ | |
17958 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 17959 | installcheck) \ |
e8a5fa9c RW |
17960 | || exit 1 |
17961 | ||
a90ef4bf | 17962 | @endif tcl |
e8a5fa9c | 17963 | |
a90ef4bf JM |
17964 | .PHONY: maybe-mostlyclean-tcl mostlyclean-tcl |
17965 | maybe-mostlyclean-tcl: | |
17966 | @if tcl | |
17967 | maybe-mostlyclean-tcl: mostlyclean-tcl | |
e8a5fa9c | 17968 | |
a90ef4bf JM |
17969 | # tcl doesn't support mostlyclean. |
17970 | mostlyclean-tcl: | |
17971 | ||
17972 | @endif tcl | |
17973 | ||
17974 | .PHONY: maybe-clean-tcl clean-tcl | |
17975 | maybe-clean-tcl: | |
17976 | @if tcl | |
17977 | maybe-clean-tcl: clean-tcl | |
17978 | ||
17979 | clean-tcl: | |
17980 | @: $(MAKE); $(unstage) | |
17981 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
e8a5fa9c RW |
17982 | r=`${PWD_COMMAND}`; export r; \ |
17983 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17984 | $(HOST_EXPORTS) \ | |
17985 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17986 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17987 | done; \ | |
22121df0 | 17988 | echo "Doing clean in tcl"; \ |
a90ef4bf | 17989 | (cd $(HOST_SUBDIR)/tcl && \ |
e8a5fa9c RW |
17990 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17991 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17992 | "RANLIB=$${RANLIB}" \ | |
17993 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 17994 | clean) \ |
e8a5fa9c RW |
17995 | || exit 1 |
17996 | ||
a90ef4bf | 17997 | @endif tcl |
e8a5fa9c | 17998 | |
a90ef4bf JM |
17999 | .PHONY: maybe-distclean-tcl distclean-tcl |
18000 | maybe-distclean-tcl: | |
18001 | @if tcl | |
18002 | maybe-distclean-tcl: distclean-tcl | |
e8a5fa9c | 18003 | |
a90ef4bf JM |
18004 | distclean-tcl: |
18005 | @: $(MAKE); $(unstage) | |
18006 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
e8a5fa9c RW |
18007 | r=`${PWD_COMMAND}`; export r; \ |
18008 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18009 | $(HOST_EXPORTS) \ | |
18010 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18011 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18012 | done; \ | |
22121df0 | 18013 | echo "Doing distclean in tcl"; \ |
a90ef4bf | 18014 | (cd $(HOST_SUBDIR)/tcl && \ |
e8a5fa9c RW |
18015 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18016 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18017 | "RANLIB=$${RANLIB}" \ | |
18018 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 18019 | distclean) \ |
e8a5fa9c RW |
18020 | || exit 1 |
18021 | ||
a90ef4bf | 18022 | @endif tcl |
e8a5fa9c | 18023 | |
a90ef4bf JM |
18024 | .PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl |
18025 | maybe-maintainer-clean-tcl: | |
18026 | @if tcl | |
18027 | maybe-maintainer-clean-tcl: maintainer-clean-tcl | |
e8a5fa9c | 18028 | |
a90ef4bf JM |
18029 | maintainer-clean-tcl: |
18030 | @: $(MAKE); $(unstage) | |
18031 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
e8a5fa9c RW |
18032 | r=`${PWD_COMMAND}`; export r; \ |
18033 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18034 | $(HOST_EXPORTS) \ | |
18035 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18036 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18037 | done; \ | |
22121df0 | 18038 | echo "Doing maintainer-clean in tcl"; \ |
a90ef4bf | 18039 | (cd $(HOST_SUBDIR)/tcl && \ |
e8a5fa9c RW |
18040 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18041 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18042 | "RANLIB=$${RANLIB}" \ | |
18043 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 18044 | maintainer-clean) \ |
e8a5fa9c RW |
18045 | || exit 1 |
18046 | ||
a90ef4bf | 18047 | @endif tcl |
e8a5fa9c | 18048 | |
e8a5fa9c | 18049 | |
a90ef4bf JM |
18050 | |
18051 | .PHONY: configure-itcl maybe-configure-itcl | |
18052 | maybe-configure-itcl: | |
18053 | @if gcc-bootstrap | |
18054 | configure-itcl: stage_current | |
18055 | @endif gcc-bootstrap | |
18056 | @if itcl | |
18057 | maybe-configure-itcl: configure-itcl | |
18058 | configure-itcl: | |
18059 | @: $(MAKE); $(unstage) | |
18060 | @r=`${PWD_COMMAND}`; export r; \ | |
18061 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18062 | test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \ | |
22121df0 | 18063 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl; \ |
a90ef4bf JM |
18064 | $(HOST_EXPORTS) \ |
18065 | echo Configuring in $(HOST_SUBDIR)/itcl; \ | |
18066 | cd "$(HOST_SUBDIR)/itcl" || exit 1; \ | |
18067 | case $(srcdir) in \ | |
18068 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
18069 | *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \ | |
18070 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
18071 | esac; \ | |
1b6c0831 L |
18072 | module_srcdir=itcl; \ |
18073 | $(SHELL) \ | |
18074 | $$s/$$module_srcdir/configure \ | |
18075 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 18076 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 18077 | --target=${target_alias} \ |
a90ef4bf JM |
18078 | || exit 1 |
18079 | @endif itcl | |
18080 | ||
18081 | ||
18082 | ||
18083 | ||
18084 | ||
18085 | .PHONY: all-itcl maybe-all-itcl | |
18086 | maybe-all-itcl: | |
18087 | @if gcc-bootstrap | |
18088 | all-itcl: stage_current | |
18089 | @endif gcc-bootstrap | |
18090 | @if itcl | |
18091 | TARGET-itcl=all | |
18092 | maybe-all-itcl: all-itcl | |
18093 | all-itcl: configure-itcl | |
18094 | @: $(MAKE); $(unstage) | |
18095 | @r=`${PWD_COMMAND}`; export r; \ | |
18096 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18097 | $(HOST_EXPORTS) \ | |
18098 | (cd $(HOST_SUBDIR)/itcl && \ | |
b3676d82 | 18099 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
18100 | $(TARGET-itcl)) |
18101 | @endif itcl | |
18102 | ||
18103 | ||
18104 | ||
18105 | ||
18106 | .PHONY: check-itcl maybe-check-itcl | |
18107 | maybe-check-itcl: | |
18108 | @if itcl | |
18109 | maybe-check-itcl: check-itcl | |
18110 | ||
18111 | check-itcl: | |
18112 | @: $(MAKE); $(unstage) | |
18113 | @r=`${PWD_COMMAND}`; export r; \ | |
18114 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 18115 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
18116 | (cd $(HOST_SUBDIR)/itcl && \ |
18117 | $(MAKE) $(FLAGS_TO_PASS) check) | |
18118 | ||
18119 | @endif itcl | |
18120 | ||
18121 | .PHONY: install-itcl maybe-install-itcl | |
18122 | maybe-install-itcl: | |
18123 | @if itcl | |
18124 | maybe-install-itcl: install-itcl | |
18125 | ||
18126 | install-itcl: installdirs | |
18127 | @: $(MAKE); $(unstage) | |
18128 | @r=`${PWD_COMMAND}`; export r; \ | |
18129 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18130 | $(HOST_EXPORTS) \ | |
18131 | (cd $(HOST_SUBDIR)/itcl && \ | |
18132 | $(MAKE) $(FLAGS_TO_PASS) install) | |
18133 | ||
18134 | @endif itcl | |
18135 | ||
18136 | .PHONY: install-strip-itcl maybe-install-strip-itcl | |
18137 | maybe-install-strip-itcl: | |
18138 | @if itcl | |
18139 | maybe-install-strip-itcl: install-strip-itcl | |
18140 | ||
18141 | install-strip-itcl: installdirs | |
18142 | @: $(MAKE); $(unstage) | |
18143 | @r=`${PWD_COMMAND}`; export r; \ | |
18144 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18145 | $(HOST_EXPORTS) \ | |
18146 | (cd $(HOST_SUBDIR)/itcl && \ | |
18147 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
18148 | ||
18149 | @endif itcl | |
18150 | ||
18151 | # Other targets (info, dvi, pdf, etc.) | |
18152 | ||
18153 | .PHONY: maybe-info-itcl info-itcl | |
18154 | maybe-info-itcl: | |
18155 | @if itcl | |
18156 | maybe-info-itcl: info-itcl | |
18157 | ||
18158 | info-itcl: \ | |
18159 | configure-itcl | |
18160 | @: $(MAKE); $(unstage) | |
18161 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
e8a5fa9c RW |
18162 | r=`${PWD_COMMAND}`; export r; \ |
18163 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18164 | $(HOST_EXPORTS) \ | |
18165 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18166 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18167 | done; \ | |
22121df0 | 18168 | echo "Doing info in itcl"; \ |
a90ef4bf | 18169 | (cd $(HOST_SUBDIR)/itcl && \ |
e8a5fa9c RW |
18170 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18171 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18172 | "RANLIB=$${RANLIB}" \ | |
18173 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 18174 | info) \ |
e8a5fa9c RW |
18175 | || exit 1 |
18176 | ||
a90ef4bf | 18177 | @endif itcl |
e8a5fa9c | 18178 | |
a90ef4bf JM |
18179 | .PHONY: maybe-dvi-itcl dvi-itcl |
18180 | maybe-dvi-itcl: | |
18181 | @if itcl | |
18182 | maybe-dvi-itcl: dvi-itcl | |
e8a5fa9c | 18183 | |
a90ef4bf JM |
18184 | dvi-itcl: \ |
18185 | configure-itcl | |
18186 | @: $(MAKE); $(unstage) | |
18187 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
e8a5fa9c RW |
18188 | r=`${PWD_COMMAND}`; export r; \ |
18189 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18190 | $(HOST_EXPORTS) \ | |
18191 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18192 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18193 | done; \ | |
22121df0 | 18194 | echo "Doing dvi in itcl"; \ |
a90ef4bf | 18195 | (cd $(HOST_SUBDIR)/itcl && \ |
e8a5fa9c RW |
18196 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18197 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18198 | "RANLIB=$${RANLIB}" \ | |
18199 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 18200 | dvi) \ |
e8a5fa9c RW |
18201 | || exit 1 |
18202 | ||
a90ef4bf | 18203 | @endif itcl |
e8a5fa9c | 18204 | |
a90ef4bf JM |
18205 | .PHONY: maybe-pdf-itcl pdf-itcl |
18206 | maybe-pdf-itcl: | |
18207 | @if itcl | |
18208 | maybe-pdf-itcl: pdf-itcl | |
e8a5fa9c | 18209 | |
a90ef4bf JM |
18210 | pdf-itcl: \ |
18211 | configure-itcl | |
18212 | @: $(MAKE); $(unstage) | |
18213 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
e8a5fa9c RW |
18214 | r=`${PWD_COMMAND}`; export r; \ |
18215 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18216 | $(HOST_EXPORTS) \ | |
18217 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18218 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18219 | done; \ | |
22121df0 | 18220 | echo "Doing pdf in itcl"; \ |
a90ef4bf | 18221 | (cd $(HOST_SUBDIR)/itcl && \ |
e8a5fa9c RW |
18222 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18223 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18224 | "RANLIB=$${RANLIB}" \ | |
18225 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 18226 | pdf) \ |
e8a5fa9c RW |
18227 | || exit 1 |
18228 | ||
a90ef4bf | 18229 | @endif itcl |
e8a5fa9c | 18230 | |
a90ef4bf JM |
18231 | .PHONY: maybe-html-itcl html-itcl |
18232 | maybe-html-itcl: | |
18233 | @if itcl | |
18234 | maybe-html-itcl: html-itcl | |
e8a5fa9c | 18235 | |
a90ef4bf JM |
18236 | html-itcl: \ |
18237 | configure-itcl | |
18238 | @: $(MAKE); $(unstage) | |
18239 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
e8a5fa9c RW |
18240 | r=`${PWD_COMMAND}`; export r; \ |
18241 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18242 | $(HOST_EXPORTS) \ | |
18243 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18244 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18245 | done; \ | |
22121df0 | 18246 | echo "Doing html in itcl"; \ |
a90ef4bf | 18247 | (cd $(HOST_SUBDIR)/itcl && \ |
e8a5fa9c RW |
18248 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18249 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18250 | "RANLIB=$${RANLIB}" \ | |
18251 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 18252 | html) \ |
e8a5fa9c RW |
18253 | || exit 1 |
18254 | ||
a90ef4bf | 18255 | @endif itcl |
e8a5fa9c | 18256 | |
a90ef4bf JM |
18257 | .PHONY: maybe-TAGS-itcl TAGS-itcl |
18258 | maybe-TAGS-itcl: | |
18259 | @if itcl | |
18260 | maybe-TAGS-itcl: TAGS-itcl | |
e8a5fa9c | 18261 | |
a90ef4bf JM |
18262 | TAGS-itcl: \ |
18263 | configure-itcl | |
18264 | @: $(MAKE); $(unstage) | |
18265 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
e8a5fa9c RW |
18266 | r=`${PWD_COMMAND}`; export r; \ |
18267 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18268 | $(HOST_EXPORTS) \ | |
18269 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18270 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18271 | done; \ | |
22121df0 | 18272 | echo "Doing TAGS in itcl"; \ |
a90ef4bf JM |
18273 | (cd $(HOST_SUBDIR)/itcl && \ |
18274 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18275 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18276 | "RANLIB=$${RANLIB}" \ | |
18277 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
18278 | TAGS) \ | |
18279 | || exit 1 | |
18280 | ||
18281 | @endif itcl | |
18282 | ||
18283 | .PHONY: maybe-install-info-itcl install-info-itcl | |
18284 | maybe-install-info-itcl: | |
18285 | @if itcl | |
18286 | maybe-install-info-itcl: install-info-itcl | |
18287 | ||
18288 | install-info-itcl: \ | |
18289 | configure-itcl \ | |
18290 | info-itcl | |
18291 | @: $(MAKE); $(unstage) | |
18292 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
18293 | r=`${PWD_COMMAND}`; export r; \ | |
18294 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18295 | $(HOST_EXPORTS) \ | |
18296 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18297 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18298 | done; \ | |
22121df0 | 18299 | echo "Doing install-info in itcl"; \ |
a90ef4bf JM |
18300 | (cd $(HOST_SUBDIR)/itcl && \ |
18301 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18302 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18303 | "RANLIB=$${RANLIB}" \ | |
18304 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
18305 | install-info) \ | |
18306 | || exit 1 | |
18307 | ||
18308 | @endif itcl | |
18309 | ||
18310 | .PHONY: maybe-install-pdf-itcl install-pdf-itcl | |
18311 | maybe-install-pdf-itcl: | |
18312 | @if itcl | |
18313 | maybe-install-pdf-itcl: install-pdf-itcl | |
18314 | ||
18315 | install-pdf-itcl: \ | |
18316 | configure-itcl \ | |
18317 | pdf-itcl | |
18318 | @: $(MAKE); $(unstage) | |
18319 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
18320 | r=`${PWD_COMMAND}`; export r; \ | |
18321 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18322 | $(HOST_EXPORTS) \ | |
18323 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18324 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18325 | done; \ | |
22121df0 | 18326 | echo "Doing install-pdf in itcl"; \ |
a90ef4bf JM |
18327 | (cd $(HOST_SUBDIR)/itcl && \ |
18328 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18329 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18330 | "RANLIB=$${RANLIB}" \ | |
18331 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
18332 | install-pdf) \ | |
18333 | || exit 1 | |
18334 | ||
18335 | @endif itcl | |
18336 | ||
18337 | .PHONY: maybe-install-html-itcl install-html-itcl | |
18338 | maybe-install-html-itcl: | |
18339 | @if itcl | |
18340 | maybe-install-html-itcl: install-html-itcl | |
18341 | ||
18342 | install-html-itcl: \ | |
18343 | configure-itcl \ | |
18344 | html-itcl | |
18345 | @: $(MAKE); $(unstage) | |
18346 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
18347 | r=`${PWD_COMMAND}`; export r; \ | |
18348 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18349 | $(HOST_EXPORTS) \ | |
18350 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18351 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18352 | done; \ | |
22121df0 | 18353 | echo "Doing install-html in itcl"; \ |
a90ef4bf JM |
18354 | (cd $(HOST_SUBDIR)/itcl && \ |
18355 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18356 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18357 | "RANLIB=$${RANLIB}" \ | |
18358 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
18359 | install-html) \ | |
18360 | || exit 1 | |
18361 | ||
18362 | @endif itcl | |
18363 | ||
18364 | .PHONY: maybe-installcheck-itcl installcheck-itcl | |
18365 | maybe-installcheck-itcl: | |
18366 | @if itcl | |
18367 | maybe-installcheck-itcl: installcheck-itcl | |
18368 | ||
18369 | installcheck-itcl: \ | |
18370 | configure-itcl | |
18371 | @: $(MAKE); $(unstage) | |
18372 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
18373 | r=`${PWD_COMMAND}`; export r; \ | |
18374 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18375 | $(HOST_EXPORTS) \ | |
18376 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18377 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18378 | done; \ | |
22121df0 | 18379 | echo "Doing installcheck in itcl"; \ |
a90ef4bf JM |
18380 | (cd $(HOST_SUBDIR)/itcl && \ |
18381 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18382 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18383 | "RANLIB=$${RANLIB}" \ | |
18384 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
18385 | installcheck) \ | |
18386 | || exit 1 | |
18387 | ||
18388 | @endif itcl | |
18389 | ||
18390 | .PHONY: maybe-mostlyclean-itcl mostlyclean-itcl | |
18391 | maybe-mostlyclean-itcl: | |
18392 | @if itcl | |
18393 | maybe-mostlyclean-itcl: mostlyclean-itcl | |
18394 | ||
18395 | mostlyclean-itcl: | |
18396 | @: $(MAKE); $(unstage) | |
18397 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
18398 | r=`${PWD_COMMAND}`; export r; \ | |
18399 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18400 | $(HOST_EXPORTS) \ | |
18401 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18402 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18403 | done; \ | |
22121df0 | 18404 | echo "Doing mostlyclean in itcl"; \ |
a90ef4bf JM |
18405 | (cd $(HOST_SUBDIR)/itcl && \ |
18406 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18407 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18408 | "RANLIB=$${RANLIB}" \ | |
18409 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
18410 | mostlyclean) \ | |
18411 | || exit 1 | |
18412 | ||
18413 | @endif itcl | |
18414 | ||
18415 | .PHONY: maybe-clean-itcl clean-itcl | |
18416 | maybe-clean-itcl: | |
18417 | @if itcl | |
18418 | maybe-clean-itcl: clean-itcl | |
18419 | ||
18420 | clean-itcl: | |
18421 | @: $(MAKE); $(unstage) | |
18422 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
18423 | r=`${PWD_COMMAND}`; export r; \ | |
18424 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18425 | $(HOST_EXPORTS) \ | |
18426 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18427 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18428 | done; \ | |
22121df0 | 18429 | echo "Doing clean in itcl"; \ |
a90ef4bf JM |
18430 | (cd $(HOST_SUBDIR)/itcl && \ |
18431 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18432 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18433 | "RANLIB=$${RANLIB}" \ | |
18434 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
18435 | clean) \ | |
18436 | || exit 1 | |
18437 | ||
18438 | @endif itcl | |
18439 | ||
18440 | .PHONY: maybe-distclean-itcl distclean-itcl | |
18441 | maybe-distclean-itcl: | |
18442 | @if itcl | |
18443 | maybe-distclean-itcl: distclean-itcl | |
18444 | ||
18445 | distclean-itcl: | |
18446 | @: $(MAKE); $(unstage) | |
18447 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
18448 | r=`${PWD_COMMAND}`; export r; \ | |
18449 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18450 | $(HOST_EXPORTS) \ | |
18451 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18452 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18453 | done; \ | |
22121df0 | 18454 | echo "Doing distclean in itcl"; \ |
a90ef4bf | 18455 | (cd $(HOST_SUBDIR)/itcl && \ |
e8a5fa9c RW |
18456 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18457 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18458 | "RANLIB=$${RANLIB}" \ | |
18459 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
18460 | distclean) \ | |
18461 | || exit 1 | |
18462 | ||
a90ef4bf | 18463 | @endif itcl |
e8a5fa9c | 18464 | |
a90ef4bf JM |
18465 | .PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl |
18466 | maybe-maintainer-clean-itcl: | |
18467 | @if itcl | |
18468 | maybe-maintainer-clean-itcl: maintainer-clean-itcl | |
e8a5fa9c | 18469 | |
a90ef4bf JM |
18470 | maintainer-clean-itcl: |
18471 | @: $(MAKE); $(unstage) | |
18472 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
e8a5fa9c RW |
18473 | r=`${PWD_COMMAND}`; export r; \ |
18474 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18475 | $(HOST_EXPORTS) \ | |
18476 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18477 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18478 | done; \ | |
22121df0 | 18479 | echo "Doing maintainer-clean in itcl"; \ |
a90ef4bf | 18480 | (cd $(HOST_SUBDIR)/itcl && \ |
e8a5fa9c RW |
18481 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18482 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18483 | "RANLIB=$${RANLIB}" \ | |
18484 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
18485 | maintainer-clean) \ | |
18486 | || exit 1 | |
18487 | ||
a90ef4bf | 18488 | @endif itcl |
e8a5fa9c RW |
18489 | |
18490 | ||
18491 | ||
a90ef4bf JM |
18492 | .PHONY: configure-ld maybe-configure-ld |
18493 | maybe-configure-ld: | |
e28c595f | 18494 | @if gcc-bootstrap |
a90ef4bf | 18495 | configure-ld: stage_current |
e28c595f | 18496 | @endif gcc-bootstrap |
a90ef4bf JM |
18497 | @if ld |
18498 | maybe-configure-ld: configure-ld | |
18499 | configure-ld: | |
e28c595f JM |
18500 | @r=`${PWD_COMMAND}`; export r; \ |
18501 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 18502 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
22121df0 | 18503 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \ |
1f53ca9a | 18504 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
18505 | echo Configuring in $(HOST_SUBDIR)/ld; \ |
18506 | cd "$(HOST_SUBDIR)/ld" || exit 1; \ | |
e28c595f JM |
18507 | case $(srcdir) in \ |
18508 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 18509 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ |
e28c595f JM |
18510 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
18511 | esac; \ | |
1b6c0831 L |
18512 | module_srcdir=ld; \ |
18513 | $(SHELL) \ | |
18514 | $$s/$$module_srcdir/configure \ | |
18515 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 18516 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 18517 | --target=${target_alias} \ |
e28c595f | 18518 | || exit 1 |
a90ef4bf | 18519 | @endif ld |
e28c595f JM |
18520 | |
18521 | ||
18522 | ||
a90ef4bf JM |
18523 | .PHONY: configure-stage1-ld maybe-configure-stage1-ld |
18524 | maybe-configure-stage1-ld: | |
18525 | @if ld-bootstrap | |
18526 | maybe-configure-stage1-ld: configure-stage1-ld | |
18527 | configure-stage1-ld: | |
e28c595f | 18528 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
a90ef4bf | 18529 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld |
e28c595f JM |
18530 | @r=`${PWD_COMMAND}`; export r; \ |
18531 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 18532 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
a90ef4bf | 18533 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
1b05fbbd | 18534 | $(HOST_EXPORTS) \ |
e28c595f | 18535 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
18536 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ |
18537 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
18538 | echo Configuring stage 1 in $(HOST_SUBDIR)/ld; \ |
18539 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \ | |
a90ef4bf | 18540 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
e28c595f JM |
18541 | case $(srcdir) in \ |
18542 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 18543 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ |
e28c595f JM |
18544 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
18545 | esac; \ | |
1b6c0831 L |
18546 | module_srcdir=ld; \ |
18547 | $(SHELL) $$s/$$module_srcdir/configure \ | |
18548 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 18549 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
18550 | --target=${target_alias} \ |
18551 | \ | |
a90ef4bf JM |
18552 | $(STAGE1_CONFIGURE_FLAGS) |
18553 | @endif ld-bootstrap | |
e28c595f | 18554 | |
a90ef4bf JM |
18555 | .PHONY: configure-stage2-ld maybe-configure-stage2-ld |
18556 | maybe-configure-stage2-ld: | |
18557 | @if ld-bootstrap | |
18558 | maybe-configure-stage2-ld: configure-stage2-ld | |
18559 | configure-stage2-ld: | |
e28c595f | 18560 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
a90ef4bf | 18561 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld |
e28c595f JM |
18562 | @r=`${PWD_COMMAND}`; export r; \ |
18563 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 18564 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
a90ef4bf | 18565 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
e28c595f | 18566 | $(HOST_EXPORTS) \ |
1b05fbbd | 18567 | $(POSTSTAGE1_HOST_EXPORTS) \ |
e28c595f | 18568 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
18569 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ |
18570 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
18571 | echo Configuring stage 2 in $(HOST_SUBDIR)/ld; \ |
18572 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \ | |
a90ef4bf | 18573 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
e28c595f JM |
18574 | case $(srcdir) in \ |
18575 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 18576 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ |
e28c595f JM |
18577 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
18578 | esac; \ | |
1b6c0831 L |
18579 | module_srcdir=ld; \ |
18580 | $(SHELL) $$s/$$module_srcdir/configure \ | |
18581 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 18582 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 18583 | --target=${target_alias} \ |
22121df0 | 18584 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
18585 | $(STAGE2_CONFIGURE_FLAGS) |
18586 | @endif ld-bootstrap | |
e28c595f | 18587 | |
a90ef4bf JM |
18588 | .PHONY: configure-stage3-ld maybe-configure-stage3-ld |
18589 | maybe-configure-stage3-ld: | |
18590 | @if ld-bootstrap | |
18591 | maybe-configure-stage3-ld: configure-stage3-ld | |
18592 | configure-stage3-ld: | |
e28c595f | 18593 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
a90ef4bf | 18594 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld |
e28c595f JM |
18595 | @r=`${PWD_COMMAND}`; export r; \ |
18596 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 18597 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
a90ef4bf | 18598 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
e28c595f | 18599 | $(HOST_EXPORTS) \ |
1b05fbbd | 18600 | $(POSTSTAGE1_HOST_EXPORTS) \ |
e28c595f | 18601 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
18602 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ |
18603 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
18604 | echo Configuring stage 3 in $(HOST_SUBDIR)/ld; \ |
18605 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \ | |
a90ef4bf | 18606 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
e28c595f JM |
18607 | case $(srcdir) in \ |
18608 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 18609 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ |
e28c595f JM |
18610 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
18611 | esac; \ | |
1b6c0831 L |
18612 | module_srcdir=ld; \ |
18613 | $(SHELL) $$s/$$module_srcdir/configure \ | |
18614 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 18615 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 18616 | --target=${target_alias} \ |
22121df0 | 18617 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
18618 | $(STAGE3_CONFIGURE_FLAGS) |
18619 | @endif ld-bootstrap | |
e28c595f | 18620 | |
a90ef4bf JM |
18621 | .PHONY: configure-stage4-ld maybe-configure-stage4-ld |
18622 | maybe-configure-stage4-ld: | |
18623 | @if ld-bootstrap | |
18624 | maybe-configure-stage4-ld: configure-stage4-ld | |
18625 | configure-stage4-ld: | |
e28c595f | 18626 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
a90ef4bf | 18627 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld |
e28c595f JM |
18628 | @r=`${PWD_COMMAND}`; export r; \ |
18629 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 18630 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
a90ef4bf | 18631 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
e28c595f | 18632 | $(HOST_EXPORTS) \ |
1b05fbbd | 18633 | $(POSTSTAGE1_HOST_EXPORTS) \ |
e28c595f | 18634 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
18635 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ |
18636 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
18637 | echo Configuring stage 4 in $(HOST_SUBDIR)/ld; \ |
18638 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \ | |
a90ef4bf | 18639 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
e28c595f JM |
18640 | case $(srcdir) in \ |
18641 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 18642 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ |
e28c595f JM |
18643 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
18644 | esac; \ | |
1b6c0831 L |
18645 | module_srcdir=ld; \ |
18646 | $(SHELL) $$s/$$module_srcdir/configure \ | |
18647 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 18648 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 18649 | --target=${target_alias} \ |
22121df0 | 18650 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
18651 | $(STAGE4_CONFIGURE_FLAGS) |
18652 | @endif ld-bootstrap | |
e28c595f | 18653 | |
a90ef4bf JM |
18654 | .PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld |
18655 | maybe-configure-stageprofile-ld: | |
18656 | @if ld-bootstrap | |
18657 | maybe-configure-stageprofile-ld: configure-stageprofile-ld | |
18658 | configure-stageprofile-ld: | |
e28c595f | 18659 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
a90ef4bf | 18660 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld |
e28c595f JM |
18661 | @r=`${PWD_COMMAND}`; export r; \ |
18662 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 18663 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
a90ef4bf | 18664 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
e28c595f | 18665 | $(HOST_EXPORTS) \ |
1b05fbbd AO |
18666 | $(POSTSTAGE1_HOST_EXPORTS) \ |
18667 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
1f53ca9a AO |
18668 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ |
18669 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
18670 | echo Configuring stage profile in $(HOST_SUBDIR)/ld; \ |
18671 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \ | |
a90ef4bf | 18672 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
e28c595f JM |
18673 | case $(srcdir) in \ |
18674 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 18675 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ |
e28c595f JM |
18676 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
18677 | esac; \ | |
1b6c0831 L |
18678 | module_srcdir=ld; \ |
18679 | $(SHELL) $$s/$$module_srcdir/configure \ | |
18680 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 18681 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 18682 | --target=${target_alias} \ |
22121df0 | 18683 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
18684 | $(STAGEprofile_CONFIGURE_FLAGS) |
18685 | @endif ld-bootstrap | |
e28c595f | 18686 | |
a90ef4bf JM |
18687 | .PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld |
18688 | maybe-configure-stagefeedback-ld: | |
18689 | @if ld-bootstrap | |
18690 | maybe-configure-stagefeedback-ld: configure-stagefeedback-ld | |
18691 | configure-stagefeedback-ld: | |
e28c595f | 18692 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
a90ef4bf | 18693 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld |
e28c595f JM |
18694 | @r=`${PWD_COMMAND}`; export r; \ |
18695 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 18696 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
a90ef4bf | 18697 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
e28c595f | 18698 | $(HOST_EXPORTS) \ |
1b05fbbd AO |
18699 | $(POSTSTAGE1_HOST_EXPORTS) \ |
18700 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
1f53ca9a AO |
18701 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ |
18702 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
18703 | echo Configuring stage feedback in $(HOST_SUBDIR)/ld; \ |
18704 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \ | |
a90ef4bf | 18705 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
e28c595f JM |
18706 | case $(srcdir) in \ |
18707 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 18708 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ |
e28c595f JM |
18709 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
18710 | esac; \ | |
1b6c0831 L |
18711 | module_srcdir=ld; \ |
18712 | $(SHELL) $$s/$$module_srcdir/configure \ | |
18713 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 18714 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 18715 | --target=${target_alias} \ |
22121df0 | 18716 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
18717 | $(STAGEfeedback_CONFIGURE_FLAGS) |
18718 | @endif ld-bootstrap | |
e28c595f JM |
18719 | |
18720 | ||
18721 | ||
18722 | ||
18723 | ||
a90ef4bf JM |
18724 | .PHONY: all-ld maybe-all-ld |
18725 | maybe-all-ld: | |
e28c595f | 18726 | @if gcc-bootstrap |
a90ef4bf | 18727 | all-ld: stage_current |
e28c595f | 18728 | @endif gcc-bootstrap |
a90ef4bf JM |
18729 | @if ld |
18730 | TARGET-ld=all | |
18731 | maybe-all-ld: all-ld | |
18732 | all-ld: configure-ld | |
e28c595f JM |
18733 | @r=`${PWD_COMMAND}`; export r; \ |
18734 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 18735 | $(HOST_EXPORTS) \ |
a90ef4bf | 18736 | (cd $(HOST_SUBDIR)/ld && \ |
b3676d82 | 18737 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
18738 | $(TARGET-ld)) |
18739 | @endif ld | |
e28c595f JM |
18740 | |
18741 | ||
18742 | ||
a90ef4bf JM |
18743 | .PHONY: all-stage1-ld maybe-all-stage1-ld |
18744 | .PHONY: clean-stage1-ld maybe-clean-stage1-ld | |
18745 | maybe-all-stage1-ld: | |
18746 | maybe-clean-stage1-ld: | |
18747 | @if ld-bootstrap | |
18748 | maybe-all-stage1-ld: all-stage1-ld | |
18749 | all-stage1: all-stage1-ld | |
18750 | TARGET-stage1-ld = $(TARGET-ld) | |
18751 | all-stage1-ld: configure-stage1-ld | |
e28c595f JM |
18752 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
18753 | @r=`${PWD_COMMAND}`; export r; \ | |
18754 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 18755 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
1f53ca9a | 18756 | $(HOST_EXPORTS) \ |
a90ef4bf | 18757 | cd $(HOST_SUBDIR)/ld && \ |
05a13254 | 18758 | \ |
e28c595f | 18759 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 18760 | CFLAGS="$(STAGE1_CFLAGS)" \ |
1f53ca9a | 18761 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ |
1b05fbbd AO |
18762 | LIBCFLAGS="$(LIBCFLAGS)" \ |
18763 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
18764 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
18765 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
18766 | $(EXTRA_HOST_FLAGS) \ |
18767 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 18768 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 18769 | $(TARGET-stage1-ld) |
e28c595f | 18770 | |
a90ef4bf JM |
18771 | maybe-clean-stage1-ld: clean-stage1-ld |
18772 | clean-stage1: clean-stage1-ld | |
18773 | clean-stage1-ld: | |
e28c595f | 18774 | @if [ $(current_stage) = stage1 ]; then \ |
a90ef4bf | 18775 | [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \ |
e28c595f | 18776 | else \ |
a90ef4bf | 18777 | [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \ |
e28c595f JM |
18778 | $(MAKE) stage1-start; \ |
18779 | fi; \ | |
a90ef4bf | 18780 | cd $(HOST_SUBDIR)/ld && \ |
e28c595f | 18781 | $(MAKE) $(EXTRA_HOST_FLAGS) \ |
b3676d82 | 18782 | $(STAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 18783 | @endif ld-bootstrap |
e28c595f JM |
18784 | |
18785 | ||
a90ef4bf JM |
18786 | .PHONY: all-stage2-ld maybe-all-stage2-ld |
18787 | .PHONY: clean-stage2-ld maybe-clean-stage2-ld | |
18788 | maybe-all-stage2-ld: | |
18789 | maybe-clean-stage2-ld: | |
18790 | @if ld-bootstrap | |
18791 | maybe-all-stage2-ld: all-stage2-ld | |
18792 | all-stage2: all-stage2-ld | |
18793 | TARGET-stage2-ld = $(TARGET-ld) | |
18794 | all-stage2-ld: configure-stage2-ld | |
e28c595f JM |
18795 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
18796 | @r=`${PWD_COMMAND}`; export r; \ | |
18797 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 18798 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
e28c595f | 18799 | $(HOST_EXPORTS) \ |
1f53ca9a | 18800 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 18801 | cd $(HOST_SUBDIR)/ld && \ |
05a13254 | 18802 | \ |
e28c595f | 18803 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 18804 | CFLAGS="$(STAGE2_CFLAGS)" \ |
1f53ca9a | 18805 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ |
1b05fbbd AO |
18806 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ |
18807 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
18808 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
18809 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
18810 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 18811 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 18812 | $(TARGET-stage2-ld) |
e28c595f | 18813 | |
a90ef4bf JM |
18814 | maybe-clean-stage2-ld: clean-stage2-ld |
18815 | clean-stage2: clean-stage2-ld | |
18816 | clean-stage2-ld: | |
e28c595f | 18817 | @if [ $(current_stage) = stage2 ]; then \ |
a90ef4bf | 18818 | [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \ |
e28c595f | 18819 | else \ |
a90ef4bf | 18820 | [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \ |
e28c595f JM |
18821 | $(MAKE) stage2-start; \ |
18822 | fi; \ | |
a90ef4bf | 18823 | cd $(HOST_SUBDIR)/ld && \ |
b3676d82 | 18824 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 18825 | @endif ld-bootstrap |
e28c595f JM |
18826 | |
18827 | ||
a90ef4bf JM |
18828 | .PHONY: all-stage3-ld maybe-all-stage3-ld |
18829 | .PHONY: clean-stage3-ld maybe-clean-stage3-ld | |
18830 | maybe-all-stage3-ld: | |
18831 | maybe-clean-stage3-ld: | |
18832 | @if ld-bootstrap | |
18833 | maybe-all-stage3-ld: all-stage3-ld | |
18834 | all-stage3: all-stage3-ld | |
18835 | TARGET-stage3-ld = $(TARGET-ld) | |
18836 | all-stage3-ld: configure-stage3-ld | |
e28c595f JM |
18837 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
18838 | @r=`${PWD_COMMAND}`; export r; \ | |
18839 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 18840 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
e28c595f | 18841 | $(HOST_EXPORTS) \ |
1f53ca9a | 18842 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 18843 | cd $(HOST_SUBDIR)/ld && \ |
05a13254 | 18844 | \ |
e28c595f | 18845 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 18846 | CFLAGS="$(STAGE3_CFLAGS)" \ |
1f53ca9a | 18847 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ |
1b05fbbd AO |
18848 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ |
18849 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
18850 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
18851 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
18852 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 18853 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 18854 | $(TARGET-stage3-ld) |
e28c595f | 18855 | |
a90ef4bf JM |
18856 | maybe-clean-stage3-ld: clean-stage3-ld |
18857 | clean-stage3: clean-stage3-ld | |
18858 | clean-stage3-ld: | |
e28c595f | 18859 | @if [ $(current_stage) = stage3 ]; then \ |
a90ef4bf | 18860 | [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \ |
e28c595f | 18861 | else \ |
a90ef4bf | 18862 | [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \ |
e28c595f JM |
18863 | $(MAKE) stage3-start; \ |
18864 | fi; \ | |
a90ef4bf | 18865 | cd $(HOST_SUBDIR)/ld && \ |
b3676d82 | 18866 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 18867 | @endif ld-bootstrap |
e28c595f JM |
18868 | |
18869 | ||
a90ef4bf JM |
18870 | .PHONY: all-stage4-ld maybe-all-stage4-ld |
18871 | .PHONY: clean-stage4-ld maybe-clean-stage4-ld | |
18872 | maybe-all-stage4-ld: | |
18873 | maybe-clean-stage4-ld: | |
18874 | @if ld-bootstrap | |
18875 | maybe-all-stage4-ld: all-stage4-ld | |
18876 | all-stage4: all-stage4-ld | |
18877 | TARGET-stage4-ld = $(TARGET-ld) | |
18878 | all-stage4-ld: configure-stage4-ld | |
e28c595f JM |
18879 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
18880 | @r=`${PWD_COMMAND}`; export r; \ | |
18881 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 18882 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
e28c595f | 18883 | $(HOST_EXPORTS) \ |
1f53ca9a | 18884 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 18885 | cd $(HOST_SUBDIR)/ld && \ |
05a13254 | 18886 | \ |
e28c595f | 18887 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 18888 | CFLAGS="$(STAGE4_CFLAGS)" \ |
1f53ca9a | 18889 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ |
e28c595f | 18890 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ |
1b05fbbd AO |
18891 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ |
18892 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
18893 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
18894 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 18895 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 18896 | $(TARGET-stage4-ld) |
e28c595f | 18897 | |
a90ef4bf JM |
18898 | maybe-clean-stage4-ld: clean-stage4-ld |
18899 | clean-stage4: clean-stage4-ld | |
18900 | clean-stage4-ld: | |
e28c595f | 18901 | @if [ $(current_stage) = stage4 ]; then \ |
a90ef4bf | 18902 | [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \ |
e28c595f | 18903 | else \ |
a90ef4bf | 18904 | [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \ |
e28c595f JM |
18905 | $(MAKE) stage4-start; \ |
18906 | fi; \ | |
a90ef4bf | 18907 | cd $(HOST_SUBDIR)/ld && \ |
b3676d82 | 18908 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 18909 | @endif ld-bootstrap |
e28c595f JM |
18910 | |
18911 | ||
a90ef4bf JM |
18912 | .PHONY: all-stageprofile-ld maybe-all-stageprofile-ld |
18913 | .PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld | |
18914 | maybe-all-stageprofile-ld: | |
18915 | maybe-clean-stageprofile-ld: | |
18916 | @if ld-bootstrap | |
18917 | maybe-all-stageprofile-ld: all-stageprofile-ld | |
18918 | all-stageprofile: all-stageprofile-ld | |
18919 | TARGET-stageprofile-ld = $(TARGET-ld) | |
18920 | all-stageprofile-ld: configure-stageprofile-ld | |
e28c595f JM |
18921 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
18922 | @r=`${PWD_COMMAND}`; export r; \ | |
18923 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 18924 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
e28c595f | 18925 | $(HOST_EXPORTS) \ |
1f53ca9a | 18926 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 18927 | cd $(HOST_SUBDIR)/ld && \ |
05a13254 | 18928 | \ |
e28c595f | 18929 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 18930 | CFLAGS="$(STAGEprofile_CFLAGS)" \ |
1f53ca9a | 18931 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ |
1b05fbbd AO |
18932 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ |
18933 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
18934 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
18935 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
18936 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 18937 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf | 18938 | $(TARGET-stageprofile-ld) |
e28c595f | 18939 | |
a90ef4bf JM |
18940 | maybe-clean-stageprofile-ld: clean-stageprofile-ld |
18941 | clean-stageprofile: clean-stageprofile-ld | |
18942 | clean-stageprofile-ld: | |
e28c595f | 18943 | @if [ $(current_stage) = stageprofile ]; then \ |
a90ef4bf | 18944 | [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \ |
e28c595f | 18945 | else \ |
a90ef4bf | 18946 | [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \ |
e28c595f JM |
18947 | $(MAKE) stageprofile-start; \ |
18948 | fi; \ | |
a90ef4bf | 18949 | cd $(HOST_SUBDIR)/ld && \ |
b3676d82 | 18950 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 18951 | @endif ld-bootstrap |
e28c595f JM |
18952 | |
18953 | ||
a90ef4bf JM |
18954 | .PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld |
18955 | .PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld | |
18956 | maybe-all-stagefeedback-ld: | |
18957 | maybe-clean-stagefeedback-ld: | |
18958 | @if ld-bootstrap | |
18959 | maybe-all-stagefeedback-ld: all-stagefeedback-ld | |
18960 | all-stagefeedback: all-stagefeedback-ld | |
18961 | TARGET-stagefeedback-ld = $(TARGET-ld) | |
18962 | all-stagefeedback-ld: configure-stagefeedback-ld | |
e28c595f JM |
18963 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
18964 | @r=`${PWD_COMMAND}`; export r; \ | |
18965 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 18966 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
e28c595f | 18967 | $(HOST_EXPORTS) \ |
1f53ca9a | 18968 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 18969 | cd $(HOST_SUBDIR)/ld && \ |
05a13254 | 18970 | \ |
e28c595f | 18971 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 18972 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ |
1f53ca9a | 18973 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ |
1b05fbbd AO |
18974 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ |
18975 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
18976 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
18977 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
18978 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 18979 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf | 18980 | $(TARGET-stagefeedback-ld) |
e28c595f | 18981 | |
a90ef4bf JM |
18982 | maybe-clean-stagefeedback-ld: clean-stagefeedback-ld |
18983 | clean-stagefeedback: clean-stagefeedback-ld | |
18984 | clean-stagefeedback-ld: | |
e28c595f | 18985 | @if [ $(current_stage) = stagefeedback ]; then \ |
a90ef4bf | 18986 | [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \ |
e28c595f | 18987 | else \ |
a90ef4bf | 18988 | [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \ |
e28c595f JM |
18989 | $(MAKE) stagefeedback-start; \ |
18990 | fi; \ | |
a90ef4bf | 18991 | cd $(HOST_SUBDIR)/ld && \ |
b3676d82 | 18992 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 18993 | @endif ld-bootstrap |
e28c595f JM |
18994 | |
18995 | ||
18996 | ||
18997 | ||
18998 | ||
a90ef4bf JM |
18999 | .PHONY: check-ld maybe-check-ld |
19000 | maybe-check-ld: | |
19001 | @if ld | |
19002 | maybe-check-ld: check-ld | |
e28c595f | 19003 | |
a90ef4bf | 19004 | check-ld: |
e28c595f JM |
19005 | @: $(MAKE); $(unstage) |
19006 | @r=`${PWD_COMMAND}`; export r; \ | |
19007 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 19008 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 19009 | (cd $(HOST_SUBDIR)/ld && \ |
f91ca6bc | 19010 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
e28c595f | 19011 | |
a90ef4bf | 19012 | @endif ld |
e28c595f | 19013 | |
a90ef4bf JM |
19014 | .PHONY: install-ld maybe-install-ld |
19015 | maybe-install-ld: | |
19016 | @if ld | |
19017 | maybe-install-ld: install-ld | |
e28c595f | 19018 | |
a90ef4bf JM |
19019 | install-ld: installdirs |
19020 | @: $(MAKE); $(unstage) | |
19021 | @r=`${PWD_COMMAND}`; export r; \ | |
19022 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19023 | $(HOST_EXPORTS) \ | |
19024 | (cd $(HOST_SUBDIR)/ld && \ | |
19025 | $(MAKE) $(FLAGS_TO_PASS) install) | |
e28c595f | 19026 | |
a90ef4bf | 19027 | @endif ld |
e28c595f | 19028 | |
a90ef4bf JM |
19029 | .PHONY: install-strip-ld maybe-install-strip-ld |
19030 | maybe-install-strip-ld: | |
19031 | @if ld | |
19032 | maybe-install-strip-ld: install-strip-ld | |
9b980aa1 | 19033 | |
a90ef4bf JM |
19034 | install-strip-ld: installdirs |
19035 | @: $(MAKE); $(unstage) | |
19036 | @r=`${PWD_COMMAND}`; export r; \ | |
19037 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19038 | $(HOST_EXPORTS) \ | |
19039 | (cd $(HOST_SUBDIR)/ld && \ | |
19040 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
9b980aa1 | 19041 | |
a90ef4bf | 19042 | @endif ld |
9b980aa1 | 19043 | |
e28c595f JM |
19044 | # Other targets (info, dvi, pdf, etc.) |
19045 | ||
a90ef4bf JM |
19046 | .PHONY: maybe-info-ld info-ld |
19047 | maybe-info-ld: | |
19048 | @if ld | |
19049 | maybe-info-ld: info-ld | |
e28c595f | 19050 | |
a90ef4bf JM |
19051 | info-ld: \ |
19052 | configure-ld | |
19053 | @[ -f ./ld/Makefile ] || exit 0; \ | |
e28c595f JM |
19054 | r=`${PWD_COMMAND}`; export r; \ |
19055 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19056 | $(HOST_EXPORTS) \ | |
19057 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19058 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19059 | done; \ | |
22121df0 | 19060 | echo "Doing info in ld"; \ |
a90ef4bf | 19061 | (cd $(HOST_SUBDIR)/ld && \ |
e28c595f JM |
19062 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19063 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19064 | "RANLIB=$${RANLIB}" \ | |
19065 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
19066 | info) \ | |
19067 | || exit 1 | |
19068 | ||
a90ef4bf | 19069 | @endif ld |
e28c595f | 19070 | |
a90ef4bf JM |
19071 | .PHONY: maybe-dvi-ld dvi-ld |
19072 | maybe-dvi-ld: | |
19073 | @if ld | |
19074 | maybe-dvi-ld: dvi-ld | |
e28c595f | 19075 | |
a90ef4bf JM |
19076 | dvi-ld: \ |
19077 | configure-ld | |
19078 | @[ -f ./ld/Makefile ] || exit 0; \ | |
e28c595f JM |
19079 | r=`${PWD_COMMAND}`; export r; \ |
19080 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19081 | $(HOST_EXPORTS) \ | |
19082 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19083 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19084 | done; \ | |
22121df0 | 19085 | echo "Doing dvi in ld"; \ |
a90ef4bf | 19086 | (cd $(HOST_SUBDIR)/ld && \ |
e28c595f JM |
19087 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19088 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19089 | "RANLIB=$${RANLIB}" \ | |
19090 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
19091 | dvi) \ | |
19092 | || exit 1 | |
19093 | ||
a90ef4bf | 19094 | @endif ld |
e28c595f | 19095 | |
a90ef4bf JM |
19096 | .PHONY: maybe-pdf-ld pdf-ld |
19097 | maybe-pdf-ld: | |
19098 | @if ld | |
19099 | maybe-pdf-ld: pdf-ld | |
e28c595f | 19100 | |
a90ef4bf JM |
19101 | pdf-ld: \ |
19102 | configure-ld | |
19103 | @[ -f ./ld/Makefile ] || exit 0; \ | |
e28c595f JM |
19104 | r=`${PWD_COMMAND}`; export r; \ |
19105 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19106 | $(HOST_EXPORTS) \ | |
19107 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19108 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19109 | done; \ | |
22121df0 | 19110 | echo "Doing pdf in ld"; \ |
a90ef4bf | 19111 | (cd $(HOST_SUBDIR)/ld && \ |
e28c595f JM |
19112 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19113 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19114 | "RANLIB=$${RANLIB}" \ | |
19115 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
19116 | pdf) \ | |
19117 | || exit 1 | |
19118 | ||
a90ef4bf | 19119 | @endif ld |
e28c595f | 19120 | |
a90ef4bf JM |
19121 | .PHONY: maybe-html-ld html-ld |
19122 | maybe-html-ld: | |
19123 | @if ld | |
19124 | maybe-html-ld: html-ld | |
e28c595f | 19125 | |
a90ef4bf JM |
19126 | html-ld: \ |
19127 | configure-ld | |
19128 | @[ -f ./ld/Makefile ] || exit 0; \ | |
e28c595f JM |
19129 | r=`${PWD_COMMAND}`; export r; \ |
19130 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19131 | $(HOST_EXPORTS) \ | |
19132 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19133 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19134 | done; \ | |
22121df0 | 19135 | echo "Doing html in ld"; \ |
a90ef4bf | 19136 | (cd $(HOST_SUBDIR)/ld && \ |
e28c595f JM |
19137 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19138 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19139 | "RANLIB=$${RANLIB}" \ | |
19140 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
19141 | html) \ | |
19142 | || exit 1 | |
19143 | ||
a90ef4bf | 19144 | @endif ld |
e28c595f | 19145 | |
a90ef4bf JM |
19146 | .PHONY: maybe-TAGS-ld TAGS-ld |
19147 | maybe-TAGS-ld: | |
19148 | @if ld | |
19149 | maybe-TAGS-ld: TAGS-ld | |
e28c595f | 19150 | |
a90ef4bf JM |
19151 | TAGS-ld: \ |
19152 | configure-ld | |
19153 | @[ -f ./ld/Makefile ] || exit 0; \ | |
e28c595f JM |
19154 | r=`${PWD_COMMAND}`; export r; \ |
19155 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19156 | $(HOST_EXPORTS) \ | |
19157 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19158 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19159 | done; \ | |
22121df0 | 19160 | echo "Doing TAGS in ld"; \ |
a90ef4bf | 19161 | (cd $(HOST_SUBDIR)/ld && \ |
e28c595f JM |
19162 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19163 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19164 | "RANLIB=$${RANLIB}" \ | |
19165 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
19166 | TAGS) \ | |
19167 | || exit 1 | |
19168 | ||
a90ef4bf | 19169 | @endif ld |
e28c595f | 19170 | |
a90ef4bf JM |
19171 | .PHONY: maybe-install-info-ld install-info-ld |
19172 | maybe-install-info-ld: | |
19173 | @if ld | |
19174 | maybe-install-info-ld: install-info-ld | |
e28c595f | 19175 | |
a90ef4bf JM |
19176 | install-info-ld: \ |
19177 | configure-ld \ | |
19178 | info-ld | |
19179 | @[ -f ./ld/Makefile ] || exit 0; \ | |
e28c595f JM |
19180 | r=`${PWD_COMMAND}`; export r; \ |
19181 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19182 | $(HOST_EXPORTS) \ | |
19183 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19184 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19185 | done; \ | |
22121df0 | 19186 | echo "Doing install-info in ld"; \ |
a90ef4bf | 19187 | (cd $(HOST_SUBDIR)/ld && \ |
e28c595f JM |
19188 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19189 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19190 | "RANLIB=$${RANLIB}" \ | |
19191 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
19192 | install-info) \ | |
19193 | || exit 1 | |
19194 | ||
a90ef4bf | 19195 | @endif ld |
e28c595f | 19196 | |
a90ef4bf JM |
19197 | .PHONY: maybe-install-pdf-ld install-pdf-ld |
19198 | maybe-install-pdf-ld: | |
19199 | @if ld | |
19200 | maybe-install-pdf-ld: install-pdf-ld | |
e28c595f | 19201 | |
a90ef4bf JM |
19202 | install-pdf-ld: \ |
19203 | configure-ld \ | |
19204 | pdf-ld | |
19205 | @[ -f ./ld/Makefile ] || exit 0; \ | |
e28c595f JM |
19206 | r=`${PWD_COMMAND}`; export r; \ |
19207 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19208 | $(HOST_EXPORTS) \ | |
19209 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19210 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19211 | done; \ | |
22121df0 | 19212 | echo "Doing install-pdf in ld"; \ |
a90ef4bf | 19213 | (cd $(HOST_SUBDIR)/ld && \ |
e28c595f JM |
19214 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19215 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19216 | "RANLIB=$${RANLIB}" \ | |
19217 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
19218 | install-pdf) \ | |
19219 | || exit 1 | |
19220 | ||
a90ef4bf | 19221 | @endif ld |
e28c595f | 19222 | |
a90ef4bf JM |
19223 | .PHONY: maybe-install-html-ld install-html-ld |
19224 | maybe-install-html-ld: | |
19225 | @if ld | |
19226 | maybe-install-html-ld: install-html-ld | |
e28c595f | 19227 | |
a90ef4bf JM |
19228 | install-html-ld: \ |
19229 | configure-ld \ | |
19230 | html-ld | |
19231 | @[ -f ./ld/Makefile ] || exit 0; \ | |
e28c595f JM |
19232 | r=`${PWD_COMMAND}`; export r; \ |
19233 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19234 | $(HOST_EXPORTS) \ | |
19235 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19236 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19237 | done; \ | |
22121df0 | 19238 | echo "Doing install-html in ld"; \ |
a90ef4bf | 19239 | (cd $(HOST_SUBDIR)/ld && \ |
e28c595f JM |
19240 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19241 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19242 | "RANLIB=$${RANLIB}" \ | |
19243 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
19244 | install-html) \ | |
19245 | || exit 1 | |
19246 | ||
a90ef4bf | 19247 | @endif ld |
e28c595f | 19248 | |
a90ef4bf JM |
19249 | .PHONY: maybe-installcheck-ld installcheck-ld |
19250 | maybe-installcheck-ld: | |
19251 | @if ld | |
19252 | maybe-installcheck-ld: installcheck-ld | |
e28c595f | 19253 | |
a90ef4bf JM |
19254 | installcheck-ld: \ |
19255 | configure-ld | |
19256 | @[ -f ./ld/Makefile ] || exit 0; \ | |
4b900473 PB |
19257 | r=`${PWD_COMMAND}`; export r; \ |
19258 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19259 | $(HOST_EXPORTS) \ | |
19260 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19261 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19262 | done; \ | |
22121df0 | 19263 | echo "Doing installcheck in ld"; \ |
a90ef4bf | 19264 | (cd $(HOST_SUBDIR)/ld && \ |
4b900473 PB |
19265 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19266 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19267 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 19268 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
19269 | installcheck) \ |
19270 | || exit 1 | |
19271 | ||
a90ef4bf | 19272 | @endif ld |
4b900473 | 19273 | |
a90ef4bf JM |
19274 | .PHONY: maybe-mostlyclean-ld mostlyclean-ld |
19275 | maybe-mostlyclean-ld: | |
19276 | @if ld | |
19277 | maybe-mostlyclean-ld: mostlyclean-ld | |
4b900473 | 19278 | |
a90ef4bf JM |
19279 | mostlyclean-ld: |
19280 | @[ -f ./ld/Makefile ] || exit 0; \ | |
4b900473 PB |
19281 | r=`${PWD_COMMAND}`; export r; \ |
19282 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19283 | $(HOST_EXPORTS) \ | |
19284 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19285 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19286 | done; \ | |
22121df0 | 19287 | echo "Doing mostlyclean in ld"; \ |
a90ef4bf | 19288 | (cd $(HOST_SUBDIR)/ld && \ |
4b900473 PB |
19289 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19290 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19291 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 19292 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
19293 | mostlyclean) \ |
19294 | || exit 1 | |
19295 | ||
a90ef4bf | 19296 | @endif ld |
4b900473 | 19297 | |
a90ef4bf JM |
19298 | .PHONY: maybe-clean-ld clean-ld |
19299 | maybe-clean-ld: | |
19300 | @if ld | |
19301 | maybe-clean-ld: clean-ld | |
4b900473 | 19302 | |
a90ef4bf JM |
19303 | clean-ld: |
19304 | @[ -f ./ld/Makefile ] || exit 0; \ | |
4b900473 PB |
19305 | r=`${PWD_COMMAND}`; export r; \ |
19306 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19307 | $(HOST_EXPORTS) \ | |
19308 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19309 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19310 | done; \ | |
22121df0 | 19311 | echo "Doing clean in ld"; \ |
a90ef4bf | 19312 | (cd $(HOST_SUBDIR)/ld && \ |
4b900473 PB |
19313 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19314 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19315 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 19316 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
19317 | clean) \ |
19318 | || exit 1 | |
19319 | ||
a90ef4bf | 19320 | @endif ld |
4b900473 | 19321 | |
a90ef4bf JM |
19322 | .PHONY: maybe-distclean-ld distclean-ld |
19323 | maybe-distclean-ld: | |
19324 | @if ld | |
19325 | maybe-distclean-ld: distclean-ld | |
4b900473 | 19326 | |
a90ef4bf JM |
19327 | distclean-ld: |
19328 | @[ -f ./ld/Makefile ] || exit 0; \ | |
4b900473 PB |
19329 | r=`${PWD_COMMAND}`; export r; \ |
19330 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19331 | $(HOST_EXPORTS) \ | |
19332 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19333 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19334 | done; \ | |
22121df0 | 19335 | echo "Doing distclean in ld"; \ |
a90ef4bf | 19336 | (cd $(HOST_SUBDIR)/ld && \ |
4b900473 PB |
19337 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19338 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19339 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 19340 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
19341 | distclean) \ |
19342 | || exit 1 | |
19343 | ||
a90ef4bf | 19344 | @endif ld |
4b900473 | 19345 | |
a90ef4bf JM |
19346 | .PHONY: maybe-maintainer-clean-ld maintainer-clean-ld |
19347 | maybe-maintainer-clean-ld: | |
19348 | @if ld | |
19349 | maybe-maintainer-clean-ld: maintainer-clean-ld | |
4b900473 | 19350 | |
a90ef4bf JM |
19351 | maintainer-clean-ld: |
19352 | @[ -f ./ld/Makefile ] || exit 0; \ | |
4b900473 PB |
19353 | r=`${PWD_COMMAND}`; export r; \ |
19354 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19355 | $(HOST_EXPORTS) \ | |
19356 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19357 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19358 | done; \ | |
22121df0 | 19359 | echo "Doing maintainer-clean in ld"; \ |
a90ef4bf | 19360 | (cd $(HOST_SUBDIR)/ld && \ |
4b900473 PB |
19361 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19362 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19363 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 19364 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
19365 | maintainer-clean) \ |
19366 | || exit 1 | |
19367 | ||
a90ef4bf | 19368 | @endif ld |
4b900473 PB |
19369 | |
19370 | ||
19371 | ||
2bf680c4 ILT |
19372 | .PHONY: configure-libbacktrace maybe-configure-libbacktrace |
19373 | maybe-configure-libbacktrace: | |
19374 | @if gcc-bootstrap | |
19375 | configure-libbacktrace: stage_current | |
19376 | @endif gcc-bootstrap | |
19377 | @if libbacktrace | |
19378 | maybe-configure-libbacktrace: configure-libbacktrace | |
19379 | configure-libbacktrace: | |
19380 | @r=`${PWD_COMMAND}`; export r; \ | |
19381 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19382 | test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \ | |
22121df0 | 19383 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \ |
2bf680c4 ILT |
19384 | $(HOST_EXPORTS) \ |
19385 | echo Configuring in $(HOST_SUBDIR)/libbacktrace; \ | |
19386 | cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \ | |
19387 | case $(srcdir) in \ | |
19388 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
19389 | *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \ | |
19390 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
19391 | esac; \ | |
1b6c0831 L |
19392 | module_srcdir=libbacktrace; \ |
19393 | $(SHELL) \ | |
19394 | $$s/$$module_srcdir/configure \ | |
19395 | --srcdir=$${topdir}/$$module_srcdir \ | |
2bf680c4 | 19396 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 19397 | --target=${target_alias} \ |
2bf680c4 ILT |
19398 | || exit 1 |
19399 | @endif libbacktrace | |
19400 | ||
19401 | ||
19402 | ||
19403 | .PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace | |
19404 | maybe-configure-stage1-libbacktrace: | |
19405 | @if libbacktrace-bootstrap | |
19406 | maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace | |
19407 | configure-stage1-libbacktrace: | |
19408 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
19409 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace | |
19410 | @r=`${PWD_COMMAND}`; export r; \ | |
19411 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19412 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
19413 | test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \ | |
19414 | $(HOST_EXPORTS) \ | |
19415 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ | |
19416 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
19417 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
19418 | echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace; \ |
19419 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \ | |
2bf680c4 ILT |
19420 | cd $(HOST_SUBDIR)/libbacktrace || exit 1; \ |
19421 | case $(srcdir) in \ | |
19422 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
19423 | *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \ | |
19424 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
19425 | esac; \ | |
1b6c0831 L |
19426 | module_srcdir=libbacktrace; \ |
19427 | $(SHELL) $$s/$$module_srcdir/configure \ | |
19428 | --srcdir=$${topdir}/$$module_srcdir \ | |
2bf680c4 | 19429 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
19430 | --target=${target_alias} \ |
19431 | \ | |
2bf680c4 ILT |
19432 | $(STAGE1_CONFIGURE_FLAGS) |
19433 | @endif libbacktrace-bootstrap | |
19434 | ||
19435 | .PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace | |
19436 | maybe-configure-stage2-libbacktrace: | |
19437 | @if libbacktrace-bootstrap | |
19438 | maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace | |
19439 | configure-stage2-libbacktrace: | |
19440 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
19441 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace | |
19442 | @r=`${PWD_COMMAND}`; export r; \ | |
19443 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19444 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
19445 | test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \ | |
19446 | $(HOST_EXPORTS) \ | |
19447 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19448 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
19449 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
19450 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
19451 | echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace; \ |
19452 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \ | |
2bf680c4 ILT |
19453 | cd $(HOST_SUBDIR)/libbacktrace || exit 1; \ |
19454 | case $(srcdir) in \ | |
19455 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
19456 | *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \ | |
19457 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
19458 | esac; \ | |
1b6c0831 L |
19459 | module_srcdir=libbacktrace; \ |
19460 | $(SHELL) $$s/$$module_srcdir/configure \ | |
19461 | --srcdir=$${topdir}/$$module_srcdir \ | |
2bf680c4 | 19462 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 19463 | --target=${target_alias} \ |
22121df0 | 19464 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
2bf680c4 ILT |
19465 | $(STAGE2_CONFIGURE_FLAGS) |
19466 | @endif libbacktrace-bootstrap | |
19467 | ||
19468 | .PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace | |
19469 | maybe-configure-stage3-libbacktrace: | |
19470 | @if libbacktrace-bootstrap | |
19471 | maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace | |
19472 | configure-stage3-libbacktrace: | |
19473 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
19474 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace | |
19475 | @r=`${PWD_COMMAND}`; export r; \ | |
19476 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19477 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
19478 | test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \ | |
19479 | $(HOST_EXPORTS) \ | |
19480 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19481 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
19482 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
19483 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
19484 | echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace; \ |
19485 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \ | |
2bf680c4 ILT |
19486 | cd $(HOST_SUBDIR)/libbacktrace || exit 1; \ |
19487 | case $(srcdir) in \ | |
19488 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
19489 | *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \ | |
19490 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
19491 | esac; \ | |
1b6c0831 L |
19492 | module_srcdir=libbacktrace; \ |
19493 | $(SHELL) $$s/$$module_srcdir/configure \ | |
19494 | --srcdir=$${topdir}/$$module_srcdir \ | |
2bf680c4 | 19495 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 19496 | --target=${target_alias} \ |
22121df0 | 19497 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
2bf680c4 ILT |
19498 | $(STAGE3_CONFIGURE_FLAGS) |
19499 | @endif libbacktrace-bootstrap | |
19500 | ||
19501 | .PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace | |
19502 | maybe-configure-stage4-libbacktrace: | |
19503 | @if libbacktrace-bootstrap | |
19504 | maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace | |
19505 | configure-stage4-libbacktrace: | |
19506 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
19507 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace | |
19508 | @r=`${PWD_COMMAND}`; export r; \ | |
19509 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19510 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
19511 | test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \ | |
19512 | $(HOST_EXPORTS) \ | |
19513 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19514 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
19515 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
19516 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
19517 | echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace; \ |
19518 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \ | |
2bf680c4 ILT |
19519 | cd $(HOST_SUBDIR)/libbacktrace || exit 1; \ |
19520 | case $(srcdir) in \ | |
19521 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
19522 | *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \ | |
19523 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
19524 | esac; \ | |
1b6c0831 L |
19525 | module_srcdir=libbacktrace; \ |
19526 | $(SHELL) $$s/$$module_srcdir/configure \ | |
19527 | --srcdir=$${topdir}/$$module_srcdir \ | |
2bf680c4 | 19528 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 19529 | --target=${target_alias} \ |
22121df0 | 19530 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
2bf680c4 ILT |
19531 | $(STAGE4_CONFIGURE_FLAGS) |
19532 | @endif libbacktrace-bootstrap | |
19533 | ||
19534 | .PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace | |
19535 | maybe-configure-stageprofile-libbacktrace: | |
19536 | @if libbacktrace-bootstrap | |
19537 | maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace | |
19538 | configure-stageprofile-libbacktrace: | |
19539 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
19540 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace | |
19541 | @r=`${PWD_COMMAND}`; export r; \ | |
19542 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19543 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
19544 | test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \ | |
19545 | $(HOST_EXPORTS) \ | |
19546 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19547 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
19548 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
19549 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
19550 | echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace; \ |
19551 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \ | |
2bf680c4 ILT |
19552 | cd $(HOST_SUBDIR)/libbacktrace || exit 1; \ |
19553 | case $(srcdir) in \ | |
19554 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
19555 | *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \ | |
19556 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
19557 | esac; \ | |
1b6c0831 L |
19558 | module_srcdir=libbacktrace; \ |
19559 | $(SHELL) $$s/$$module_srcdir/configure \ | |
19560 | --srcdir=$${topdir}/$$module_srcdir \ | |
2bf680c4 | 19561 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 19562 | --target=${target_alias} \ |
22121df0 | 19563 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
2bf680c4 ILT |
19564 | $(STAGEprofile_CONFIGURE_FLAGS) |
19565 | @endif libbacktrace-bootstrap | |
19566 | ||
19567 | .PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace | |
19568 | maybe-configure-stagefeedback-libbacktrace: | |
19569 | @if libbacktrace-bootstrap | |
19570 | maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace | |
19571 | configure-stagefeedback-libbacktrace: | |
19572 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
19573 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace | |
19574 | @r=`${PWD_COMMAND}`; export r; \ | |
19575 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19576 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
19577 | test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \ | |
19578 | $(HOST_EXPORTS) \ | |
19579 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19580 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
19581 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
19582 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
19583 | echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace; \ |
19584 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \ | |
2bf680c4 ILT |
19585 | cd $(HOST_SUBDIR)/libbacktrace || exit 1; \ |
19586 | case $(srcdir) in \ | |
19587 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
19588 | *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \ | |
19589 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
19590 | esac; \ | |
1b6c0831 L |
19591 | module_srcdir=libbacktrace; \ |
19592 | $(SHELL) $$s/$$module_srcdir/configure \ | |
19593 | --srcdir=$${topdir}/$$module_srcdir \ | |
2bf680c4 | 19594 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 19595 | --target=${target_alias} \ |
22121df0 | 19596 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
2bf680c4 ILT |
19597 | $(STAGEfeedback_CONFIGURE_FLAGS) |
19598 | @endif libbacktrace-bootstrap | |
19599 | ||
19600 | ||
19601 | ||
19602 | ||
19603 | ||
19604 | .PHONY: all-libbacktrace maybe-all-libbacktrace | |
19605 | maybe-all-libbacktrace: | |
19606 | @if gcc-bootstrap | |
19607 | all-libbacktrace: stage_current | |
19608 | @endif gcc-bootstrap | |
19609 | @if libbacktrace | |
19610 | TARGET-libbacktrace=all | |
19611 | maybe-all-libbacktrace: all-libbacktrace | |
19612 | all-libbacktrace: configure-libbacktrace | |
19613 | @r=`${PWD_COMMAND}`; export r; \ | |
19614 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19615 | $(HOST_EXPORTS) \ | |
19616 | (cd $(HOST_SUBDIR)/libbacktrace && \ | |
b3676d82 | 19617 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
2bf680c4 ILT |
19618 | $(TARGET-libbacktrace)) |
19619 | @endif libbacktrace | |
19620 | ||
19621 | ||
19622 | ||
19623 | .PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace | |
19624 | .PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace | |
19625 | maybe-all-stage1-libbacktrace: | |
19626 | maybe-clean-stage1-libbacktrace: | |
19627 | @if libbacktrace-bootstrap | |
19628 | maybe-all-stage1-libbacktrace: all-stage1-libbacktrace | |
19629 | all-stage1: all-stage1-libbacktrace | |
19630 | TARGET-stage1-libbacktrace = $(TARGET-libbacktrace) | |
19631 | all-stage1-libbacktrace: configure-stage1-libbacktrace | |
19632 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
19633 | @r=`${PWD_COMMAND}`; export r; \ | |
19634 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19635 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
19636 | $(HOST_EXPORTS) \ | |
19637 | cd $(HOST_SUBDIR)/libbacktrace && \ | |
05a13254 | 19638 | \ |
2bf680c4 ILT |
19639 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
19640 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
19641 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
19642 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
19643 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
19644 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
19645 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
19646 | $(EXTRA_HOST_FLAGS) \ |
19647 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 19648 | TFLAGS="$(STAGE1_TFLAGS)" \ |
2bf680c4 ILT |
19649 | $(TARGET-stage1-libbacktrace) |
19650 | ||
19651 | maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace | |
19652 | clean-stage1: clean-stage1-libbacktrace | |
19653 | clean-stage1-libbacktrace: | |
19654 | @if [ $(current_stage) = stage1 ]; then \ | |
19655 | [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ | |
19656 | else \ | |
19657 | [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \ | |
19658 | $(MAKE) stage1-start; \ | |
19659 | fi; \ | |
19660 | cd $(HOST_SUBDIR)/libbacktrace && \ | |
19661 | $(MAKE) $(EXTRA_HOST_FLAGS) \ | |
b3676d82 | 19662 | $(STAGE1_FLAGS_TO_PASS) clean |
2bf680c4 ILT |
19663 | @endif libbacktrace-bootstrap |
19664 | ||
19665 | ||
19666 | .PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace | |
19667 | .PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace | |
19668 | maybe-all-stage2-libbacktrace: | |
19669 | maybe-clean-stage2-libbacktrace: | |
19670 | @if libbacktrace-bootstrap | |
19671 | maybe-all-stage2-libbacktrace: all-stage2-libbacktrace | |
19672 | all-stage2: all-stage2-libbacktrace | |
19673 | TARGET-stage2-libbacktrace = $(TARGET-libbacktrace) | |
19674 | all-stage2-libbacktrace: configure-stage2-libbacktrace | |
19675 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
19676 | @r=`${PWD_COMMAND}`; export r; \ | |
19677 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19678 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
19679 | $(HOST_EXPORTS) \ | |
19680 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19681 | cd $(HOST_SUBDIR)/libbacktrace && \ | |
05a13254 | 19682 | \ |
2bf680c4 ILT |
19683 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
19684 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
19685 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
19686 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
19687 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
19688 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
19689 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
19690 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 19691 | TFLAGS="$(STAGE2_TFLAGS)" \ |
2bf680c4 ILT |
19692 | $(TARGET-stage2-libbacktrace) |
19693 | ||
19694 | maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace | |
19695 | clean-stage2: clean-stage2-libbacktrace | |
19696 | clean-stage2-libbacktrace: | |
19697 | @if [ $(current_stage) = stage2 ]; then \ | |
19698 | [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ | |
19699 | else \ | |
19700 | [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \ | |
19701 | $(MAKE) stage2-start; \ | |
19702 | fi; \ | |
19703 | cd $(HOST_SUBDIR)/libbacktrace && \ | |
b3676d82 | 19704 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
2bf680c4 ILT |
19705 | @endif libbacktrace-bootstrap |
19706 | ||
19707 | ||
19708 | .PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace | |
19709 | .PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace | |
19710 | maybe-all-stage3-libbacktrace: | |
19711 | maybe-clean-stage3-libbacktrace: | |
19712 | @if libbacktrace-bootstrap | |
19713 | maybe-all-stage3-libbacktrace: all-stage3-libbacktrace | |
19714 | all-stage3: all-stage3-libbacktrace | |
19715 | TARGET-stage3-libbacktrace = $(TARGET-libbacktrace) | |
19716 | all-stage3-libbacktrace: configure-stage3-libbacktrace | |
19717 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
19718 | @r=`${PWD_COMMAND}`; export r; \ | |
19719 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19720 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
19721 | $(HOST_EXPORTS) \ | |
19722 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19723 | cd $(HOST_SUBDIR)/libbacktrace && \ | |
05a13254 | 19724 | \ |
2bf680c4 ILT |
19725 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
19726 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
19727 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
19728 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
19729 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
19730 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
19731 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
19732 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 19733 | TFLAGS="$(STAGE3_TFLAGS)" \ |
2bf680c4 ILT |
19734 | $(TARGET-stage3-libbacktrace) |
19735 | ||
19736 | maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace | |
19737 | clean-stage3: clean-stage3-libbacktrace | |
19738 | clean-stage3-libbacktrace: | |
19739 | @if [ $(current_stage) = stage3 ]; then \ | |
19740 | [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ | |
19741 | else \ | |
19742 | [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \ | |
19743 | $(MAKE) stage3-start; \ | |
19744 | fi; \ | |
19745 | cd $(HOST_SUBDIR)/libbacktrace && \ | |
b3676d82 | 19746 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
2bf680c4 ILT |
19747 | @endif libbacktrace-bootstrap |
19748 | ||
19749 | ||
19750 | .PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace | |
19751 | .PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace | |
19752 | maybe-all-stage4-libbacktrace: | |
19753 | maybe-clean-stage4-libbacktrace: | |
19754 | @if libbacktrace-bootstrap | |
19755 | maybe-all-stage4-libbacktrace: all-stage4-libbacktrace | |
19756 | all-stage4: all-stage4-libbacktrace | |
19757 | TARGET-stage4-libbacktrace = $(TARGET-libbacktrace) | |
19758 | all-stage4-libbacktrace: configure-stage4-libbacktrace | |
19759 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
19760 | @r=`${PWD_COMMAND}`; export r; \ | |
19761 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19762 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
19763 | $(HOST_EXPORTS) \ | |
19764 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19765 | cd $(HOST_SUBDIR)/libbacktrace && \ | |
05a13254 | 19766 | \ |
2bf680c4 ILT |
19767 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
19768 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
19769 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
19770 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
19771 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
19772 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
19773 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
19774 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 19775 | TFLAGS="$(STAGE4_TFLAGS)" \ |
2bf680c4 ILT |
19776 | $(TARGET-stage4-libbacktrace) |
19777 | ||
19778 | maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace | |
19779 | clean-stage4: clean-stage4-libbacktrace | |
19780 | clean-stage4-libbacktrace: | |
19781 | @if [ $(current_stage) = stage4 ]; then \ | |
19782 | [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ | |
19783 | else \ | |
19784 | [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \ | |
19785 | $(MAKE) stage4-start; \ | |
19786 | fi; \ | |
19787 | cd $(HOST_SUBDIR)/libbacktrace && \ | |
b3676d82 | 19788 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
2bf680c4 ILT |
19789 | @endif libbacktrace-bootstrap |
19790 | ||
19791 | ||
19792 | .PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace | |
19793 | .PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace | |
19794 | maybe-all-stageprofile-libbacktrace: | |
19795 | maybe-clean-stageprofile-libbacktrace: | |
19796 | @if libbacktrace-bootstrap | |
19797 | maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace | |
19798 | all-stageprofile: all-stageprofile-libbacktrace | |
19799 | TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace) | |
19800 | all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace | |
19801 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
19802 | @r=`${PWD_COMMAND}`; export r; \ | |
19803 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19804 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
19805 | $(HOST_EXPORTS) \ | |
19806 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19807 | cd $(HOST_SUBDIR)/libbacktrace && \ | |
05a13254 | 19808 | \ |
2bf680c4 ILT |
19809 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
19810 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
19811 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
19812 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
19813 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
19814 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
19815 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
19816 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 19817 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
2bf680c4 ILT |
19818 | $(TARGET-stageprofile-libbacktrace) |
19819 | ||
19820 | maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace | |
19821 | clean-stageprofile: clean-stageprofile-libbacktrace | |
19822 | clean-stageprofile-libbacktrace: | |
19823 | @if [ $(current_stage) = stageprofile ]; then \ | |
19824 | [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ | |
19825 | else \ | |
19826 | [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \ | |
19827 | $(MAKE) stageprofile-start; \ | |
19828 | fi; \ | |
19829 | cd $(HOST_SUBDIR)/libbacktrace && \ | |
b3676d82 | 19830 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
2bf680c4 ILT |
19831 | @endif libbacktrace-bootstrap |
19832 | ||
19833 | ||
19834 | .PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace | |
19835 | .PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace | |
19836 | maybe-all-stagefeedback-libbacktrace: | |
19837 | maybe-clean-stagefeedback-libbacktrace: | |
19838 | @if libbacktrace-bootstrap | |
19839 | maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace | |
19840 | all-stagefeedback: all-stagefeedback-libbacktrace | |
19841 | TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace) | |
19842 | all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace | |
19843 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
19844 | @r=`${PWD_COMMAND}`; export r; \ | |
19845 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19846 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
19847 | $(HOST_EXPORTS) \ | |
19848 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19849 | cd $(HOST_SUBDIR)/libbacktrace && \ | |
05a13254 | 19850 | \ |
2bf680c4 ILT |
19851 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
19852 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
19853 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
19854 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
19855 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
19856 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
19857 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
19858 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 19859 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
2bf680c4 ILT |
19860 | $(TARGET-stagefeedback-libbacktrace) |
19861 | ||
19862 | maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace | |
19863 | clean-stagefeedback: clean-stagefeedback-libbacktrace | |
19864 | clean-stagefeedback-libbacktrace: | |
19865 | @if [ $(current_stage) = stagefeedback ]; then \ | |
19866 | [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ | |
19867 | else \ | |
19868 | [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \ | |
19869 | $(MAKE) stagefeedback-start; \ | |
19870 | fi; \ | |
19871 | cd $(HOST_SUBDIR)/libbacktrace && \ | |
b3676d82 | 19872 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
2bf680c4 ILT |
19873 | @endif libbacktrace-bootstrap |
19874 | ||
19875 | ||
19876 | ||
19877 | ||
19878 | ||
19879 | .PHONY: check-libbacktrace maybe-check-libbacktrace | |
19880 | maybe-check-libbacktrace: | |
19881 | @if libbacktrace | |
19882 | maybe-check-libbacktrace: check-libbacktrace | |
19883 | ||
19884 | check-libbacktrace: | |
19885 | @: $(MAKE); $(unstage) | |
19886 | @r=`${PWD_COMMAND}`; export r; \ | |
19887 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 19888 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
2bf680c4 | 19889 | (cd $(HOST_SUBDIR)/libbacktrace && \ |
f91ca6bc | 19890 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
2bf680c4 ILT |
19891 | |
19892 | @endif libbacktrace | |
19893 | ||
19894 | .PHONY: install-libbacktrace maybe-install-libbacktrace | |
19895 | maybe-install-libbacktrace: | |
19896 | @if libbacktrace | |
19897 | maybe-install-libbacktrace: install-libbacktrace | |
19898 | ||
19899 | install-libbacktrace: installdirs | |
19900 | @: $(MAKE); $(unstage) | |
19901 | @r=`${PWD_COMMAND}`; export r; \ | |
19902 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19903 | $(HOST_EXPORTS) \ | |
19904 | (cd $(HOST_SUBDIR)/libbacktrace && \ | |
19905 | $(MAKE) $(FLAGS_TO_PASS) install) | |
19906 | ||
19907 | @endif libbacktrace | |
19908 | ||
19909 | .PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace | |
19910 | maybe-install-strip-libbacktrace: | |
19911 | @if libbacktrace | |
19912 | maybe-install-strip-libbacktrace: install-strip-libbacktrace | |
19913 | ||
19914 | install-strip-libbacktrace: installdirs | |
19915 | @: $(MAKE); $(unstage) | |
19916 | @r=`${PWD_COMMAND}`; export r; \ | |
19917 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19918 | $(HOST_EXPORTS) \ | |
19919 | (cd $(HOST_SUBDIR)/libbacktrace && \ | |
19920 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
19921 | ||
19922 | @endif libbacktrace | |
19923 | ||
19924 | # Other targets (info, dvi, pdf, etc.) | |
19925 | ||
19926 | .PHONY: maybe-info-libbacktrace info-libbacktrace | |
19927 | maybe-info-libbacktrace: | |
19928 | @if libbacktrace | |
19929 | maybe-info-libbacktrace: info-libbacktrace | |
19930 | ||
19931 | info-libbacktrace: \ | |
19932 | configure-libbacktrace | |
19933 | @[ -f ./libbacktrace/Makefile ] || exit 0; \ | |
19934 | r=`${PWD_COMMAND}`; export r; \ | |
19935 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19936 | $(HOST_EXPORTS) \ | |
19937 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19938 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19939 | done; \ | |
22121df0 | 19940 | echo "Doing info in libbacktrace"; \ |
2bf680c4 ILT |
19941 | (cd $(HOST_SUBDIR)/libbacktrace && \ |
19942 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
19943 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19944 | "RANLIB=$${RANLIB}" \ | |
19945 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
19946 | info) \ | |
19947 | || exit 1 | |
19948 | ||
19949 | @endif libbacktrace | |
19950 | ||
19951 | .PHONY: maybe-dvi-libbacktrace dvi-libbacktrace | |
19952 | maybe-dvi-libbacktrace: | |
19953 | @if libbacktrace | |
19954 | maybe-dvi-libbacktrace: dvi-libbacktrace | |
19955 | ||
19956 | dvi-libbacktrace: \ | |
19957 | configure-libbacktrace | |
19958 | @[ -f ./libbacktrace/Makefile ] || exit 0; \ | |
19959 | r=`${PWD_COMMAND}`; export r; \ | |
19960 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19961 | $(HOST_EXPORTS) \ | |
19962 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19963 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19964 | done; \ | |
22121df0 | 19965 | echo "Doing dvi in libbacktrace"; \ |
2bf680c4 ILT |
19966 | (cd $(HOST_SUBDIR)/libbacktrace && \ |
19967 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
19968 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19969 | "RANLIB=$${RANLIB}" \ | |
19970 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
19971 | dvi) \ | |
19972 | || exit 1 | |
19973 | ||
19974 | @endif libbacktrace | |
19975 | ||
19976 | .PHONY: maybe-pdf-libbacktrace pdf-libbacktrace | |
19977 | maybe-pdf-libbacktrace: | |
19978 | @if libbacktrace | |
19979 | maybe-pdf-libbacktrace: pdf-libbacktrace | |
19980 | ||
19981 | pdf-libbacktrace: \ | |
19982 | configure-libbacktrace | |
19983 | @[ -f ./libbacktrace/Makefile ] || exit 0; \ | |
19984 | r=`${PWD_COMMAND}`; export r; \ | |
19985 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19986 | $(HOST_EXPORTS) \ | |
19987 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19988 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19989 | done; \ | |
22121df0 | 19990 | echo "Doing pdf in libbacktrace"; \ |
2bf680c4 ILT |
19991 | (cd $(HOST_SUBDIR)/libbacktrace && \ |
19992 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
19993 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19994 | "RANLIB=$${RANLIB}" \ | |
19995 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
19996 | pdf) \ | |
19997 | || exit 1 | |
19998 | ||
19999 | @endif libbacktrace | |
20000 | ||
20001 | .PHONY: maybe-html-libbacktrace html-libbacktrace | |
20002 | maybe-html-libbacktrace: | |
20003 | @if libbacktrace | |
20004 | maybe-html-libbacktrace: html-libbacktrace | |
20005 | ||
20006 | html-libbacktrace: \ | |
20007 | configure-libbacktrace | |
20008 | @[ -f ./libbacktrace/Makefile ] || exit 0; \ | |
20009 | r=`${PWD_COMMAND}`; export r; \ | |
20010 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20011 | $(HOST_EXPORTS) \ | |
20012 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20013 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20014 | done; \ | |
22121df0 | 20015 | echo "Doing html in libbacktrace"; \ |
2bf680c4 ILT |
20016 | (cd $(HOST_SUBDIR)/libbacktrace && \ |
20017 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
20018 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20019 | "RANLIB=$${RANLIB}" \ | |
20020 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
20021 | html) \ | |
20022 | || exit 1 | |
20023 | ||
20024 | @endif libbacktrace | |
20025 | ||
20026 | .PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace | |
20027 | maybe-TAGS-libbacktrace: | |
20028 | @if libbacktrace | |
20029 | maybe-TAGS-libbacktrace: TAGS-libbacktrace | |
20030 | ||
20031 | TAGS-libbacktrace: \ | |
20032 | configure-libbacktrace | |
20033 | @[ -f ./libbacktrace/Makefile ] || exit 0; \ | |
20034 | r=`${PWD_COMMAND}`; export r; \ | |
20035 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20036 | $(HOST_EXPORTS) \ | |
20037 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20038 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20039 | done; \ | |
22121df0 | 20040 | echo "Doing TAGS in libbacktrace"; \ |
2bf680c4 ILT |
20041 | (cd $(HOST_SUBDIR)/libbacktrace && \ |
20042 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
20043 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20044 | "RANLIB=$${RANLIB}" \ | |
20045 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
20046 | TAGS) \ | |
20047 | || exit 1 | |
20048 | ||
20049 | @endif libbacktrace | |
20050 | ||
20051 | .PHONY: maybe-install-info-libbacktrace install-info-libbacktrace | |
20052 | maybe-install-info-libbacktrace: | |
20053 | @if libbacktrace | |
20054 | maybe-install-info-libbacktrace: install-info-libbacktrace | |
20055 | ||
20056 | install-info-libbacktrace: \ | |
20057 | configure-libbacktrace \ | |
20058 | info-libbacktrace | |
20059 | @[ -f ./libbacktrace/Makefile ] || exit 0; \ | |
20060 | r=`${PWD_COMMAND}`; export r; \ | |
20061 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20062 | $(HOST_EXPORTS) \ | |
20063 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20064 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20065 | done; \ | |
22121df0 | 20066 | echo "Doing install-info in libbacktrace"; \ |
2bf680c4 ILT |
20067 | (cd $(HOST_SUBDIR)/libbacktrace && \ |
20068 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
20069 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20070 | "RANLIB=$${RANLIB}" \ | |
20071 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
20072 | install-info) \ | |
20073 | || exit 1 | |
20074 | ||
20075 | @endif libbacktrace | |
20076 | ||
20077 | .PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace | |
20078 | maybe-install-pdf-libbacktrace: | |
20079 | @if libbacktrace | |
20080 | maybe-install-pdf-libbacktrace: install-pdf-libbacktrace | |
20081 | ||
20082 | install-pdf-libbacktrace: \ | |
20083 | configure-libbacktrace \ | |
20084 | pdf-libbacktrace | |
20085 | @[ -f ./libbacktrace/Makefile ] || exit 0; \ | |
20086 | r=`${PWD_COMMAND}`; export r; \ | |
20087 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20088 | $(HOST_EXPORTS) \ | |
20089 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20090 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20091 | done; \ | |
22121df0 | 20092 | echo "Doing install-pdf in libbacktrace"; \ |
2bf680c4 ILT |
20093 | (cd $(HOST_SUBDIR)/libbacktrace && \ |
20094 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
20095 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20096 | "RANLIB=$${RANLIB}" \ | |
20097 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
20098 | install-pdf) \ | |
20099 | || exit 1 | |
20100 | ||
20101 | @endif libbacktrace | |
20102 | ||
20103 | .PHONY: maybe-install-html-libbacktrace install-html-libbacktrace | |
20104 | maybe-install-html-libbacktrace: | |
20105 | @if libbacktrace | |
20106 | maybe-install-html-libbacktrace: install-html-libbacktrace | |
20107 | ||
20108 | install-html-libbacktrace: \ | |
20109 | configure-libbacktrace \ | |
20110 | html-libbacktrace | |
20111 | @[ -f ./libbacktrace/Makefile ] || exit 0; \ | |
20112 | r=`${PWD_COMMAND}`; export r; \ | |
20113 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20114 | $(HOST_EXPORTS) \ | |
20115 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20116 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20117 | done; \ | |
22121df0 | 20118 | echo "Doing install-html in libbacktrace"; \ |
2bf680c4 ILT |
20119 | (cd $(HOST_SUBDIR)/libbacktrace && \ |
20120 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
20121 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20122 | "RANLIB=$${RANLIB}" \ | |
20123 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
20124 | install-html) \ | |
20125 | || exit 1 | |
20126 | ||
20127 | @endif libbacktrace | |
20128 | ||
20129 | .PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace | |
20130 | maybe-installcheck-libbacktrace: | |
20131 | @if libbacktrace | |
20132 | maybe-installcheck-libbacktrace: installcheck-libbacktrace | |
20133 | ||
20134 | installcheck-libbacktrace: \ | |
20135 | configure-libbacktrace | |
20136 | @[ -f ./libbacktrace/Makefile ] || exit 0; \ | |
20137 | r=`${PWD_COMMAND}`; export r; \ | |
20138 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20139 | $(HOST_EXPORTS) \ | |
20140 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20141 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20142 | done; \ | |
22121df0 | 20143 | echo "Doing installcheck in libbacktrace"; \ |
2bf680c4 ILT |
20144 | (cd $(HOST_SUBDIR)/libbacktrace && \ |
20145 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
20146 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20147 | "RANLIB=$${RANLIB}" \ | |
20148 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
20149 | installcheck) \ | |
20150 | || exit 1 | |
20151 | ||
20152 | @endif libbacktrace | |
20153 | ||
20154 | .PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace | |
20155 | maybe-mostlyclean-libbacktrace: | |
20156 | @if libbacktrace | |
20157 | maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace | |
20158 | ||
20159 | mostlyclean-libbacktrace: | |
20160 | @[ -f ./libbacktrace/Makefile ] || exit 0; \ | |
20161 | r=`${PWD_COMMAND}`; export r; \ | |
20162 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20163 | $(HOST_EXPORTS) \ | |
20164 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20165 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20166 | done; \ | |
22121df0 | 20167 | echo "Doing mostlyclean in libbacktrace"; \ |
2bf680c4 ILT |
20168 | (cd $(HOST_SUBDIR)/libbacktrace && \ |
20169 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
20170 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20171 | "RANLIB=$${RANLIB}" \ | |
20172 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
20173 | mostlyclean) \ | |
20174 | || exit 1 | |
20175 | ||
20176 | @endif libbacktrace | |
20177 | ||
20178 | .PHONY: maybe-clean-libbacktrace clean-libbacktrace | |
20179 | maybe-clean-libbacktrace: | |
20180 | @if libbacktrace | |
20181 | maybe-clean-libbacktrace: clean-libbacktrace | |
20182 | ||
20183 | clean-libbacktrace: | |
20184 | @[ -f ./libbacktrace/Makefile ] || exit 0; \ | |
20185 | r=`${PWD_COMMAND}`; export r; \ | |
20186 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20187 | $(HOST_EXPORTS) \ | |
20188 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20189 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20190 | done; \ | |
22121df0 | 20191 | echo "Doing clean in libbacktrace"; \ |
2bf680c4 ILT |
20192 | (cd $(HOST_SUBDIR)/libbacktrace && \ |
20193 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
20194 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20195 | "RANLIB=$${RANLIB}" \ | |
20196 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
20197 | clean) \ | |
20198 | || exit 1 | |
20199 | ||
20200 | @endif libbacktrace | |
20201 | ||
20202 | .PHONY: maybe-distclean-libbacktrace distclean-libbacktrace | |
20203 | maybe-distclean-libbacktrace: | |
20204 | @if libbacktrace | |
20205 | maybe-distclean-libbacktrace: distclean-libbacktrace | |
20206 | ||
20207 | distclean-libbacktrace: | |
20208 | @[ -f ./libbacktrace/Makefile ] || exit 0; \ | |
20209 | r=`${PWD_COMMAND}`; export r; \ | |
20210 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20211 | $(HOST_EXPORTS) \ | |
20212 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20213 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20214 | done; \ | |
22121df0 | 20215 | echo "Doing distclean in libbacktrace"; \ |
2bf680c4 ILT |
20216 | (cd $(HOST_SUBDIR)/libbacktrace && \ |
20217 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
20218 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20219 | "RANLIB=$${RANLIB}" \ | |
20220 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
20221 | distclean) \ | |
20222 | || exit 1 | |
20223 | ||
20224 | @endif libbacktrace | |
20225 | ||
20226 | .PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace | |
20227 | maybe-maintainer-clean-libbacktrace: | |
20228 | @if libbacktrace | |
20229 | maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace | |
20230 | ||
20231 | maintainer-clean-libbacktrace: | |
20232 | @[ -f ./libbacktrace/Makefile ] || exit 0; \ | |
20233 | r=`${PWD_COMMAND}`; export r; \ | |
20234 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20235 | $(HOST_EXPORTS) \ | |
20236 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20237 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20238 | done; \ | |
22121df0 | 20239 | echo "Doing maintainer-clean in libbacktrace"; \ |
2bf680c4 ILT |
20240 | (cd $(HOST_SUBDIR)/libbacktrace && \ |
20241 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
20242 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20243 | "RANLIB=$${RANLIB}" \ | |
20244 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
20245 | maintainer-clean) \ | |
20246 | || exit 1 | |
20247 | ||
20248 | @endif libbacktrace | |
20249 | ||
20250 | ||
20251 | ||
a90ef4bf JM |
20252 | .PHONY: configure-libcpp maybe-configure-libcpp |
20253 | maybe-configure-libcpp: | |
4b900473 | 20254 | @if gcc-bootstrap |
a90ef4bf | 20255 | configure-libcpp: stage_current |
4b900473 | 20256 | @endif gcc-bootstrap |
a90ef4bf JM |
20257 | @if libcpp |
20258 | maybe-configure-libcpp: configure-libcpp | |
20259 | configure-libcpp: | |
4b900473 PB |
20260 | @r=`${PWD_COMMAND}`; export r; \ |
20261 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 20262 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
22121df0 | 20263 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \ |
a90ef4bf JM |
20264 | $(HOST_EXPORTS) \ |
20265 | echo Configuring in $(HOST_SUBDIR)/libcpp; \ | |
20266 | cd "$(HOST_SUBDIR)/libcpp" || exit 1; \ | |
4b900473 PB |
20267 | case $(srcdir) in \ |
20268 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 20269 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ |
4b900473 PB |
20270 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
20271 | esac; \ | |
1b6c0831 L |
20272 | module_srcdir=libcpp; \ |
20273 | $(SHELL) \ | |
20274 | $$s/$$module_srcdir/configure \ | |
20275 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 20276 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 20277 | --target=${target_alias} \ |
4b900473 | 20278 | || exit 1 |
a90ef4bf | 20279 | @endif libcpp |
4b900473 PB |
20280 | |
20281 | ||
20282 | ||
a90ef4bf JM |
20283 | .PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp |
20284 | maybe-configure-stage1-libcpp: | |
20285 | @if libcpp-bootstrap | |
20286 | maybe-configure-stage1-libcpp: configure-stage1-libcpp | |
20287 | configure-stage1-libcpp: | |
4b900473 | 20288 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
a90ef4bf | 20289 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp |
4b900473 PB |
20290 | @r=`${PWD_COMMAND}`; export r; \ |
20291 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 20292 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
a90ef4bf | 20293 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
1b05fbbd | 20294 | $(HOST_EXPORTS) \ |
8ee82aff | 20295 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ |
1f53ca9a | 20296 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ |
a90ef4bf | 20297 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ |
22121df0 L |
20298 | echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp; \ |
20299 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \ | |
a90ef4bf | 20300 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
4b900473 PB |
20301 | case $(srcdir) in \ |
20302 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 20303 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ |
4b900473 PB |
20304 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
20305 | esac; \ | |
1b6c0831 L |
20306 | module_srcdir=libcpp; \ |
20307 | $(SHELL) $$s/$$module_srcdir/configure \ | |
20308 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 20309 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
20310 | --target=${target_alias} \ |
20311 | \ | |
a90ef4bf JM |
20312 | $(STAGE1_CONFIGURE_FLAGS) |
20313 | @endif libcpp-bootstrap | |
e28c595f | 20314 | |
a90ef4bf JM |
20315 | .PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp |
20316 | maybe-configure-stage2-libcpp: | |
20317 | @if libcpp-bootstrap | |
20318 | maybe-configure-stage2-libcpp: configure-stage2-libcpp | |
20319 | configure-stage2-libcpp: | |
4b900473 | 20320 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
a90ef4bf | 20321 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp |
4b900473 PB |
20322 | @r=`${PWD_COMMAND}`; export r; \ |
20323 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 20324 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
a90ef4bf | 20325 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
4b900473 | 20326 | $(HOST_EXPORTS) \ |
1b05fbbd | 20327 | $(POSTSTAGE1_HOST_EXPORTS) \ |
8520c408 | 20328 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ |
1f53ca9a | 20329 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ |
a90ef4bf | 20330 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ |
22121df0 L |
20331 | echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp; \ |
20332 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \ | |
a90ef4bf | 20333 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
4b900473 PB |
20334 | case $(srcdir) in \ |
20335 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 20336 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ |
4b900473 PB |
20337 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
20338 | esac; \ | |
1b6c0831 L |
20339 | module_srcdir=libcpp; \ |
20340 | $(SHELL) $$s/$$module_srcdir/configure \ | |
20341 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 20342 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 20343 | --target=${target_alias} \ |
22121df0 | 20344 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
20345 | $(STAGE2_CONFIGURE_FLAGS) |
20346 | @endif libcpp-bootstrap | |
e28c595f | 20347 | |
a90ef4bf JM |
20348 | .PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp |
20349 | maybe-configure-stage3-libcpp: | |
20350 | @if libcpp-bootstrap | |
20351 | maybe-configure-stage3-libcpp: configure-stage3-libcpp | |
20352 | configure-stage3-libcpp: | |
4b900473 | 20353 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
a90ef4bf | 20354 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp |
4b900473 PB |
20355 | @r=`${PWD_COMMAND}`; export r; \ |
20356 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 20357 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
a90ef4bf | 20358 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
4b900473 | 20359 | $(HOST_EXPORTS) \ |
1b05fbbd | 20360 | $(POSTSTAGE1_HOST_EXPORTS) \ |
8520c408 | 20361 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ |
1f53ca9a | 20362 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ |
a90ef4bf | 20363 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ |
22121df0 L |
20364 | echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp; \ |
20365 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \ | |
a90ef4bf | 20366 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
4b900473 PB |
20367 | case $(srcdir) in \ |
20368 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 20369 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ |
4b900473 PB |
20370 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
20371 | esac; \ | |
1b6c0831 L |
20372 | module_srcdir=libcpp; \ |
20373 | $(SHELL) $$s/$$module_srcdir/configure \ | |
20374 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 20375 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 20376 | --target=${target_alias} \ |
22121df0 | 20377 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
20378 | $(STAGE3_CONFIGURE_FLAGS) |
20379 | @endif libcpp-bootstrap | |
e28c595f | 20380 | |
a90ef4bf JM |
20381 | .PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp |
20382 | maybe-configure-stage4-libcpp: | |
20383 | @if libcpp-bootstrap | |
20384 | maybe-configure-stage4-libcpp: configure-stage4-libcpp | |
20385 | configure-stage4-libcpp: | |
4b900473 | 20386 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
a90ef4bf | 20387 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp |
4b900473 PB |
20388 | @r=`${PWD_COMMAND}`; export r; \ |
20389 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 20390 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
a90ef4bf | 20391 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
4b900473 | 20392 | $(HOST_EXPORTS) \ |
1b05fbbd | 20393 | $(POSTSTAGE1_HOST_EXPORTS) \ |
8520c408 | 20394 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ |
1f53ca9a | 20395 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ |
a90ef4bf | 20396 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ |
22121df0 L |
20397 | echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp; \ |
20398 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \ | |
a90ef4bf | 20399 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
4b900473 PB |
20400 | case $(srcdir) in \ |
20401 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 20402 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ |
4b900473 PB |
20403 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
20404 | esac; \ | |
1b6c0831 L |
20405 | module_srcdir=libcpp; \ |
20406 | $(SHELL) $$s/$$module_srcdir/configure \ | |
20407 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 20408 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 20409 | --target=${target_alias} \ |
22121df0 | 20410 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
20411 | $(STAGE4_CONFIGURE_FLAGS) |
20412 | @endif libcpp-bootstrap | |
e28c595f | 20413 | |
a90ef4bf JM |
20414 | .PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp |
20415 | maybe-configure-stageprofile-libcpp: | |
20416 | @if libcpp-bootstrap | |
20417 | maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp | |
20418 | configure-stageprofile-libcpp: | |
4b900473 | 20419 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
a90ef4bf | 20420 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp |
4b900473 PB |
20421 | @r=`${PWD_COMMAND}`; export r; \ |
20422 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 20423 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
a90ef4bf | 20424 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
4b900473 | 20425 | $(HOST_EXPORTS) \ |
1b05fbbd AO |
20426 | $(POSTSTAGE1_HOST_EXPORTS) \ |
20427 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
1f53ca9a | 20428 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ |
a90ef4bf | 20429 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ |
22121df0 L |
20430 | echo Configuring stage profile in $(HOST_SUBDIR)/libcpp; \ |
20431 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \ | |
a90ef4bf | 20432 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
4b900473 PB |
20433 | case $(srcdir) in \ |
20434 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 20435 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ |
4b900473 PB |
20436 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
20437 | esac; \ | |
1b6c0831 L |
20438 | module_srcdir=libcpp; \ |
20439 | $(SHELL) $$s/$$module_srcdir/configure \ | |
20440 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 20441 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 20442 | --target=${target_alias} \ |
22121df0 | 20443 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
20444 | $(STAGEprofile_CONFIGURE_FLAGS) |
20445 | @endif libcpp-bootstrap | |
e28c595f | 20446 | |
a90ef4bf JM |
20447 | .PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp |
20448 | maybe-configure-stagefeedback-libcpp: | |
20449 | @if libcpp-bootstrap | |
20450 | maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp | |
20451 | configure-stagefeedback-libcpp: | |
4b900473 | 20452 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
a90ef4bf | 20453 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp |
4b900473 PB |
20454 | @r=`${PWD_COMMAND}`; export r; \ |
20455 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 20456 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
a90ef4bf | 20457 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
4b900473 | 20458 | $(HOST_EXPORTS) \ |
1b05fbbd AO |
20459 | $(POSTSTAGE1_HOST_EXPORTS) \ |
20460 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
1f53ca9a | 20461 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ |
a90ef4bf | 20462 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ |
22121df0 L |
20463 | echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp; \ |
20464 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \ | |
a90ef4bf | 20465 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
4b900473 PB |
20466 | case $(srcdir) in \ |
20467 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 20468 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ |
4b900473 PB |
20469 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
20470 | esac; \ | |
1b6c0831 L |
20471 | module_srcdir=libcpp; \ |
20472 | $(SHELL) $$s/$$module_srcdir/configure \ | |
20473 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 20474 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 20475 | --target=${target_alias} \ |
22121df0 | 20476 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
20477 | $(STAGEfeedback_CONFIGURE_FLAGS) |
20478 | @endif libcpp-bootstrap | |
4b900473 PB |
20479 | |
20480 | ||
20481 | ||
20482 | ||
20483 | ||
a90ef4bf JM |
20484 | .PHONY: all-libcpp maybe-all-libcpp |
20485 | maybe-all-libcpp: | |
4b900473 | 20486 | @if gcc-bootstrap |
a90ef4bf | 20487 | all-libcpp: stage_current |
4b900473 | 20488 | @endif gcc-bootstrap |
a90ef4bf JM |
20489 | @if libcpp |
20490 | TARGET-libcpp=all | |
20491 | maybe-all-libcpp: all-libcpp | |
20492 | all-libcpp: configure-libcpp | |
4b900473 PB |
20493 | @r=`${PWD_COMMAND}`; export r; \ |
20494 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
20495 | $(HOST_EXPORTS) \ |
20496 | (cd $(HOST_SUBDIR)/libcpp && \ | |
b3676d82 | 20497 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
20498 | $(TARGET-libcpp)) |
20499 | @endif libcpp | |
4b900473 PB |
20500 | |
20501 | ||
20502 | ||
a90ef4bf JM |
20503 | .PHONY: all-stage1-libcpp maybe-all-stage1-libcpp |
20504 | .PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp | |
20505 | maybe-all-stage1-libcpp: | |
20506 | maybe-clean-stage1-libcpp: | |
20507 | @if libcpp-bootstrap | |
20508 | maybe-all-stage1-libcpp: all-stage1-libcpp | |
20509 | all-stage1: all-stage1-libcpp | |
20510 | TARGET-stage1-libcpp = $(TARGET-libcpp) | |
20511 | all-stage1-libcpp: configure-stage1-libcpp | |
4b900473 PB |
20512 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
20513 | @r=`${PWD_COMMAND}`; export r; \ | |
20514 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 20515 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
a90ef4bf JM |
20516 | $(HOST_EXPORTS) \ |
20517 | cd $(HOST_SUBDIR)/libcpp && \ | |
05a13254 | 20518 | \ |
7f6ef0c0 | 20519 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 20520 | CFLAGS="$(STAGE1_CFLAGS)" \ |
1f53ca9a | 20521 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ |
1b05fbbd AO |
20522 | LIBCFLAGS="$(LIBCFLAGS)" \ |
20523 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
20524 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
20525 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
20526 | $(EXTRA_HOST_FLAGS) \ |
20527 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 20528 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 20529 | $(TARGET-stage1-libcpp) |
4b900473 | 20530 | |
a90ef4bf JM |
20531 | maybe-clean-stage1-libcpp: clean-stage1-libcpp |
20532 | clean-stage1: clean-stage1-libcpp | |
20533 | clean-stage1-libcpp: | |
4b900473 | 20534 | @if [ $(current_stage) = stage1 ]; then \ |
a90ef4bf | 20535 | [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \ |
4b900473 | 20536 | else \ |
a90ef4bf | 20537 | [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \ |
4b900473 PB |
20538 | $(MAKE) stage1-start; \ |
20539 | fi; \ | |
a90ef4bf | 20540 | cd $(HOST_SUBDIR)/libcpp && \ |
7f6ef0c0 | 20541 | $(MAKE) $(EXTRA_HOST_FLAGS) \ |
b3676d82 | 20542 | $(STAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 20543 | @endif libcpp-bootstrap |
e28c595f JM |
20544 | |
20545 | ||
a90ef4bf JM |
20546 | .PHONY: all-stage2-libcpp maybe-all-stage2-libcpp |
20547 | .PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp | |
20548 | maybe-all-stage2-libcpp: | |
20549 | maybe-clean-stage2-libcpp: | |
20550 | @if libcpp-bootstrap | |
20551 | maybe-all-stage2-libcpp: all-stage2-libcpp | |
20552 | all-stage2: all-stage2-libcpp | |
20553 | TARGET-stage2-libcpp = $(TARGET-libcpp) | |
20554 | all-stage2-libcpp: configure-stage2-libcpp | |
4b900473 PB |
20555 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
20556 | @r=`${PWD_COMMAND}`; export r; \ | |
20557 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 20558 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
4b900473 | 20559 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
20560 | $(POSTSTAGE1_HOST_EXPORTS) \ |
20561 | cd $(HOST_SUBDIR)/libcpp && \ | |
05a13254 | 20562 | \ |
7f6ef0c0 | 20563 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 20564 | CFLAGS="$(STAGE2_CFLAGS)" \ |
1f53ca9a | 20565 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ |
1b05fbbd AO |
20566 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ |
20567 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
20568 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
20569 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
a90ef4bf | 20570 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
05a13254 | 20571 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 20572 | $(TARGET-stage2-libcpp) |
4b900473 | 20573 | |
a90ef4bf JM |
20574 | maybe-clean-stage2-libcpp: clean-stage2-libcpp |
20575 | clean-stage2: clean-stage2-libcpp | |
20576 | clean-stage2-libcpp: | |
4b900473 | 20577 | @if [ $(current_stage) = stage2 ]; then \ |
a90ef4bf | 20578 | [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \ |
4b900473 | 20579 | else \ |
a90ef4bf | 20580 | [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \ |
4b900473 PB |
20581 | $(MAKE) stage2-start; \ |
20582 | fi; \ | |
a90ef4bf | 20583 | cd $(HOST_SUBDIR)/libcpp && \ |
b3676d82 | 20584 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 20585 | @endif libcpp-bootstrap |
e28c595f JM |
20586 | |
20587 | ||
a90ef4bf JM |
20588 | .PHONY: all-stage3-libcpp maybe-all-stage3-libcpp |
20589 | .PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp | |
20590 | maybe-all-stage3-libcpp: | |
20591 | maybe-clean-stage3-libcpp: | |
20592 | @if libcpp-bootstrap | |
20593 | maybe-all-stage3-libcpp: all-stage3-libcpp | |
20594 | all-stage3: all-stage3-libcpp | |
20595 | TARGET-stage3-libcpp = $(TARGET-libcpp) | |
20596 | all-stage3-libcpp: configure-stage3-libcpp | |
4b900473 PB |
20597 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
20598 | @r=`${PWD_COMMAND}`; export r; \ | |
20599 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 20600 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
4b900473 | 20601 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
20602 | $(POSTSTAGE1_HOST_EXPORTS) \ |
20603 | cd $(HOST_SUBDIR)/libcpp && \ | |
05a13254 | 20604 | \ |
7f6ef0c0 | 20605 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 20606 | CFLAGS="$(STAGE3_CFLAGS)" \ |
1f53ca9a | 20607 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ |
1b05fbbd AO |
20608 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ |
20609 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
20610 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
20611 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
a90ef4bf | 20612 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
05a13254 | 20613 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 20614 | $(TARGET-stage3-libcpp) |
4b900473 | 20615 | |
a90ef4bf JM |
20616 | maybe-clean-stage3-libcpp: clean-stage3-libcpp |
20617 | clean-stage3: clean-stage3-libcpp | |
20618 | clean-stage3-libcpp: | |
4b900473 | 20619 | @if [ $(current_stage) = stage3 ]; then \ |
a90ef4bf | 20620 | [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \ |
4b900473 | 20621 | else \ |
a90ef4bf | 20622 | [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \ |
4b900473 PB |
20623 | $(MAKE) stage3-start; \ |
20624 | fi; \ | |
a90ef4bf | 20625 | cd $(HOST_SUBDIR)/libcpp && \ |
b3676d82 | 20626 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 20627 | @endif libcpp-bootstrap |
e28c595f JM |
20628 | |
20629 | ||
a90ef4bf JM |
20630 | .PHONY: all-stage4-libcpp maybe-all-stage4-libcpp |
20631 | .PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp | |
20632 | maybe-all-stage4-libcpp: | |
20633 | maybe-clean-stage4-libcpp: | |
20634 | @if libcpp-bootstrap | |
20635 | maybe-all-stage4-libcpp: all-stage4-libcpp | |
20636 | all-stage4: all-stage4-libcpp | |
20637 | TARGET-stage4-libcpp = $(TARGET-libcpp) | |
20638 | all-stage4-libcpp: configure-stage4-libcpp | |
4b900473 PB |
20639 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
20640 | @r=`${PWD_COMMAND}`; export r; \ | |
20641 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 20642 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
4b900473 | 20643 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
20644 | $(POSTSTAGE1_HOST_EXPORTS) \ |
20645 | cd $(HOST_SUBDIR)/libcpp && \ | |
05a13254 | 20646 | \ |
7f6ef0c0 | 20647 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 20648 | CFLAGS="$(STAGE4_CFLAGS)" \ |
1f53ca9a | 20649 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ |
7f6ef0c0 | 20650 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ |
1b05fbbd AO |
20651 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ |
20652 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
20653 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
a90ef4bf | 20654 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
05a13254 | 20655 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 20656 | $(TARGET-stage4-libcpp) |
4b900473 | 20657 | |
a90ef4bf JM |
20658 | maybe-clean-stage4-libcpp: clean-stage4-libcpp |
20659 | clean-stage4: clean-stage4-libcpp | |
20660 | clean-stage4-libcpp: | |
4b900473 | 20661 | @if [ $(current_stage) = stage4 ]; then \ |
a90ef4bf | 20662 | [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \ |
4b900473 | 20663 | else \ |
a90ef4bf | 20664 | [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \ |
4b900473 PB |
20665 | $(MAKE) stage4-start; \ |
20666 | fi; \ | |
a90ef4bf | 20667 | cd $(HOST_SUBDIR)/libcpp && \ |
b3676d82 | 20668 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 20669 | @endif libcpp-bootstrap |
e28c595f JM |
20670 | |
20671 | ||
a90ef4bf JM |
20672 | .PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp |
20673 | .PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp | |
20674 | maybe-all-stageprofile-libcpp: | |
20675 | maybe-clean-stageprofile-libcpp: | |
20676 | @if libcpp-bootstrap | |
20677 | maybe-all-stageprofile-libcpp: all-stageprofile-libcpp | |
20678 | all-stageprofile: all-stageprofile-libcpp | |
20679 | TARGET-stageprofile-libcpp = $(TARGET-libcpp) | |
20680 | all-stageprofile-libcpp: configure-stageprofile-libcpp | |
4b900473 PB |
20681 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
20682 | @r=`${PWD_COMMAND}`; export r; \ | |
20683 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 20684 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
4b900473 | 20685 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
20686 | $(POSTSTAGE1_HOST_EXPORTS) \ |
20687 | cd $(HOST_SUBDIR)/libcpp && \ | |
05a13254 | 20688 | \ |
7f6ef0c0 | 20689 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 20690 | CFLAGS="$(STAGEprofile_CFLAGS)" \ |
1f53ca9a | 20691 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ |
1b05fbbd AO |
20692 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ |
20693 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
20694 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
20695 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
a90ef4bf | 20696 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
05a13254 | 20697 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf | 20698 | $(TARGET-stageprofile-libcpp) |
4b900473 | 20699 | |
a90ef4bf JM |
20700 | maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp |
20701 | clean-stageprofile: clean-stageprofile-libcpp | |
20702 | clean-stageprofile-libcpp: | |
4b900473 | 20703 | @if [ $(current_stage) = stageprofile ]; then \ |
a90ef4bf | 20704 | [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \ |
4b900473 | 20705 | else \ |
a90ef4bf | 20706 | [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \ |
4b900473 PB |
20707 | $(MAKE) stageprofile-start; \ |
20708 | fi; \ | |
a90ef4bf | 20709 | cd $(HOST_SUBDIR)/libcpp && \ |
b3676d82 | 20710 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 20711 | @endif libcpp-bootstrap |
e28c595f JM |
20712 | |
20713 | ||
a90ef4bf JM |
20714 | .PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp |
20715 | .PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp | |
20716 | maybe-all-stagefeedback-libcpp: | |
20717 | maybe-clean-stagefeedback-libcpp: | |
20718 | @if libcpp-bootstrap | |
20719 | maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp | |
20720 | all-stagefeedback: all-stagefeedback-libcpp | |
20721 | TARGET-stagefeedback-libcpp = $(TARGET-libcpp) | |
20722 | all-stagefeedback-libcpp: configure-stagefeedback-libcpp | |
4b900473 PB |
20723 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
20724 | @r=`${PWD_COMMAND}`; export r; \ | |
20725 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 20726 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
4b900473 | 20727 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
20728 | $(POSTSTAGE1_HOST_EXPORTS) \ |
20729 | cd $(HOST_SUBDIR)/libcpp && \ | |
05a13254 | 20730 | \ |
7f6ef0c0 | 20731 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 20732 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ |
1f53ca9a | 20733 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ |
1b05fbbd AO |
20734 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ |
20735 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
20736 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
20737 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
a90ef4bf | 20738 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
05a13254 | 20739 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf | 20740 | $(TARGET-stagefeedback-libcpp) |
4b900473 | 20741 | |
a90ef4bf JM |
20742 | maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp |
20743 | clean-stagefeedback: clean-stagefeedback-libcpp | |
20744 | clean-stagefeedback-libcpp: | |
4b900473 | 20745 | @if [ $(current_stage) = stagefeedback ]; then \ |
a90ef4bf | 20746 | [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \ |
4b900473 | 20747 | else \ |
a90ef4bf | 20748 | [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \ |
4b900473 PB |
20749 | $(MAKE) stagefeedback-start; \ |
20750 | fi; \ | |
a90ef4bf | 20751 | cd $(HOST_SUBDIR)/libcpp && \ |
b3676d82 | 20752 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 20753 | @endif libcpp-bootstrap |
4b900473 PB |
20754 | |
20755 | ||
20756 | ||
20757 | ||
20758 | ||
a90ef4bf JM |
20759 | .PHONY: check-libcpp maybe-check-libcpp |
20760 | maybe-check-libcpp: | |
20761 | @if libcpp | |
20762 | maybe-check-libcpp: check-libcpp | |
4b900473 | 20763 | |
a90ef4bf | 20764 | check-libcpp: |
4b900473 PB |
20765 | @: $(MAKE); $(unstage) |
20766 | @r=`${PWD_COMMAND}`; export r; \ | |
20767 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 20768 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 20769 | (cd $(HOST_SUBDIR)/libcpp && \ |
f91ca6bc | 20770 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
4b900473 | 20771 | |
a90ef4bf | 20772 | @endif libcpp |
4b900473 | 20773 | |
a90ef4bf JM |
20774 | .PHONY: install-libcpp maybe-install-libcpp |
20775 | maybe-install-libcpp: | |
20776 | @if libcpp | |
20777 | maybe-install-libcpp: install-libcpp | |
4b900473 | 20778 | |
a90ef4bf JM |
20779 | install-libcpp: installdirs |
20780 | @: $(MAKE); $(unstage) | |
20781 | @r=`${PWD_COMMAND}`; export r; \ | |
20782 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20783 | $(HOST_EXPORTS) \ | |
20784 | (cd $(HOST_SUBDIR)/libcpp && \ | |
20785 | $(MAKE) $(FLAGS_TO_PASS) install) | |
4b900473 | 20786 | |
a90ef4bf | 20787 | @endif libcpp |
4b900473 | 20788 | |
a90ef4bf JM |
20789 | .PHONY: install-strip-libcpp maybe-install-strip-libcpp |
20790 | maybe-install-strip-libcpp: | |
20791 | @if libcpp | |
20792 | maybe-install-strip-libcpp: install-strip-libcpp | |
9b980aa1 | 20793 | |
a90ef4bf JM |
20794 | install-strip-libcpp: installdirs |
20795 | @: $(MAKE); $(unstage) | |
20796 | @r=`${PWD_COMMAND}`; export r; \ | |
20797 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20798 | $(HOST_EXPORTS) \ | |
20799 | (cd $(HOST_SUBDIR)/libcpp && \ | |
20800 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
9b980aa1 | 20801 | |
a90ef4bf | 20802 | @endif libcpp |
9b980aa1 | 20803 | |
4b900473 PB |
20804 | # Other targets (info, dvi, pdf, etc.) |
20805 | ||
a90ef4bf JM |
20806 | .PHONY: maybe-info-libcpp info-libcpp |
20807 | maybe-info-libcpp: | |
20808 | @if libcpp | |
20809 | maybe-info-libcpp: info-libcpp | |
4b900473 | 20810 | |
a90ef4bf JM |
20811 | info-libcpp: \ |
20812 | configure-libcpp | |
20813 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
20814 | r=`${PWD_COMMAND}`; export r; \ | |
4b900473 PB |
20815 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
20816 | $(HOST_EXPORTS) \ | |
a90ef4bf | 20817 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b900473 PB |
20818 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20819 | done; \ | |
22121df0 | 20820 | echo "Doing info in libcpp"; \ |
a90ef4bf | 20821 | (cd $(HOST_SUBDIR)/libcpp && \ |
4b900473 PB |
20822 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20823 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20824 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 20825 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
20826 | info) \ |
20827 | || exit 1 | |
20828 | ||
a90ef4bf | 20829 | @endif libcpp |
4b900473 | 20830 | |
a90ef4bf JM |
20831 | .PHONY: maybe-dvi-libcpp dvi-libcpp |
20832 | maybe-dvi-libcpp: | |
20833 | @if libcpp | |
20834 | maybe-dvi-libcpp: dvi-libcpp | |
4b900473 | 20835 | |
a90ef4bf JM |
20836 | dvi-libcpp: \ |
20837 | configure-libcpp | |
20838 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
4b900473 PB |
20839 | r=`${PWD_COMMAND}`; export r; \ |
20840 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20841 | $(HOST_EXPORTS) \ | |
a90ef4bf | 20842 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b900473 PB |
20843 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20844 | done; \ | |
22121df0 | 20845 | echo "Doing dvi in libcpp"; \ |
a90ef4bf | 20846 | (cd $(HOST_SUBDIR)/libcpp && \ |
4b900473 PB |
20847 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20848 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20849 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 20850 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
20851 | dvi) \ |
20852 | || exit 1 | |
20853 | ||
a90ef4bf | 20854 | @endif libcpp |
4b900473 | 20855 | |
a90ef4bf JM |
20856 | .PHONY: maybe-pdf-libcpp pdf-libcpp |
20857 | maybe-pdf-libcpp: | |
20858 | @if libcpp | |
20859 | maybe-pdf-libcpp: pdf-libcpp | |
4b900473 | 20860 | |
a90ef4bf JM |
20861 | pdf-libcpp: \ |
20862 | configure-libcpp | |
20863 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
4b900473 PB |
20864 | r=`${PWD_COMMAND}`; export r; \ |
20865 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20866 | $(HOST_EXPORTS) \ | |
a90ef4bf | 20867 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b900473 PB |
20868 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20869 | done; \ | |
22121df0 | 20870 | echo "Doing pdf in libcpp"; \ |
a90ef4bf | 20871 | (cd $(HOST_SUBDIR)/libcpp && \ |
4b900473 PB |
20872 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20873 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20874 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 20875 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
20876 | pdf) \ |
20877 | || exit 1 | |
20878 | ||
a90ef4bf | 20879 | @endif libcpp |
4b900473 | 20880 | |
a90ef4bf JM |
20881 | .PHONY: maybe-html-libcpp html-libcpp |
20882 | maybe-html-libcpp: | |
20883 | @if libcpp | |
20884 | maybe-html-libcpp: html-libcpp | |
4b900473 | 20885 | |
a90ef4bf JM |
20886 | html-libcpp: \ |
20887 | configure-libcpp | |
20888 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
4b900473 PB |
20889 | r=`${PWD_COMMAND}`; export r; \ |
20890 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20891 | $(HOST_EXPORTS) \ | |
a90ef4bf | 20892 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b900473 PB |
20893 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20894 | done; \ | |
22121df0 | 20895 | echo "Doing html in libcpp"; \ |
a90ef4bf | 20896 | (cd $(HOST_SUBDIR)/libcpp && \ |
4b900473 PB |
20897 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20898 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20899 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 20900 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
20901 | html) \ |
20902 | || exit 1 | |
20903 | ||
a90ef4bf | 20904 | @endif libcpp |
4b900473 | 20905 | |
a90ef4bf JM |
20906 | .PHONY: maybe-TAGS-libcpp TAGS-libcpp |
20907 | maybe-TAGS-libcpp: | |
20908 | @if libcpp | |
20909 | maybe-TAGS-libcpp: TAGS-libcpp | |
4b900473 | 20910 | |
a90ef4bf JM |
20911 | TAGS-libcpp: \ |
20912 | configure-libcpp | |
20913 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
4b900473 PB |
20914 | r=`${PWD_COMMAND}`; export r; \ |
20915 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20916 | $(HOST_EXPORTS) \ | |
a90ef4bf | 20917 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b900473 PB |
20918 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20919 | done; \ | |
22121df0 | 20920 | echo "Doing TAGS in libcpp"; \ |
a90ef4bf | 20921 | (cd $(HOST_SUBDIR)/libcpp && \ |
4b900473 PB |
20922 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20923 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20924 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 20925 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
20926 | TAGS) \ |
20927 | || exit 1 | |
20928 | ||
a90ef4bf | 20929 | @endif libcpp |
4b900473 | 20930 | |
a90ef4bf JM |
20931 | .PHONY: maybe-install-info-libcpp install-info-libcpp |
20932 | maybe-install-info-libcpp: | |
20933 | @if libcpp | |
20934 | maybe-install-info-libcpp: install-info-libcpp | |
4b900473 | 20935 | |
a90ef4bf JM |
20936 | install-info-libcpp: \ |
20937 | configure-libcpp \ | |
20938 | info-libcpp | |
20939 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
4b900473 PB |
20940 | r=`${PWD_COMMAND}`; export r; \ |
20941 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20942 | $(HOST_EXPORTS) \ | |
a90ef4bf | 20943 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b900473 PB |
20944 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20945 | done; \ | |
22121df0 | 20946 | echo "Doing install-info in libcpp"; \ |
a90ef4bf | 20947 | (cd $(HOST_SUBDIR)/libcpp && \ |
4b900473 PB |
20948 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20949 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20950 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 20951 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
20952 | install-info) \ |
20953 | || exit 1 | |
20954 | ||
a90ef4bf | 20955 | @endif libcpp |
4b900473 | 20956 | |
a90ef4bf JM |
20957 | .PHONY: maybe-install-pdf-libcpp install-pdf-libcpp |
20958 | maybe-install-pdf-libcpp: | |
20959 | @if libcpp | |
20960 | maybe-install-pdf-libcpp: install-pdf-libcpp | |
a3ca38d2 | 20961 | |
a90ef4bf JM |
20962 | install-pdf-libcpp: \ |
20963 | configure-libcpp \ | |
20964 | pdf-libcpp | |
20965 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
20966 | r=`${PWD_COMMAND}`; export r; \ |
20967 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20968 | $(HOST_EXPORTS) \ | |
a90ef4bf | 20969 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
a3ca38d2 DD |
20970 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20971 | done; \ | |
22121df0 | 20972 | echo "Doing install-pdf in libcpp"; \ |
a90ef4bf | 20973 | (cd $(HOST_SUBDIR)/libcpp && \ |
a3ca38d2 DD |
20974 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20975 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20976 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 20977 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
20978 | install-pdf) \ |
20979 | || exit 1 | |
20980 | ||
a90ef4bf | 20981 | @endif libcpp |
a3ca38d2 | 20982 | |
a90ef4bf JM |
20983 | .PHONY: maybe-install-html-libcpp install-html-libcpp |
20984 | maybe-install-html-libcpp: | |
20985 | @if libcpp | |
20986 | maybe-install-html-libcpp: install-html-libcpp | |
4b900473 | 20987 | |
a90ef4bf JM |
20988 | install-html-libcpp: \ |
20989 | configure-libcpp \ | |
20990 | html-libcpp | |
20991 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
4b900473 PB |
20992 | r=`${PWD_COMMAND}`; export r; \ |
20993 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20994 | $(HOST_EXPORTS) \ | |
a90ef4bf | 20995 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b900473 PB |
20996 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20997 | done; \ | |
22121df0 | 20998 | echo "Doing install-html in libcpp"; \ |
a90ef4bf | 20999 | (cd $(HOST_SUBDIR)/libcpp && \ |
4b900473 PB |
21000 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21001 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21002 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 21003 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
21004 | install-html) \ |
21005 | || exit 1 | |
21006 | ||
a90ef4bf | 21007 | @endif libcpp |
4b900473 | 21008 | |
a90ef4bf JM |
21009 | .PHONY: maybe-installcheck-libcpp installcheck-libcpp |
21010 | maybe-installcheck-libcpp: | |
21011 | @if libcpp | |
21012 | maybe-installcheck-libcpp: installcheck-libcpp | |
4b900473 | 21013 | |
a90ef4bf JM |
21014 | installcheck-libcpp: \ |
21015 | configure-libcpp | |
21016 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
4b900473 PB |
21017 | r=`${PWD_COMMAND}`; export r; \ |
21018 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21019 | $(HOST_EXPORTS) \ | |
a90ef4bf | 21020 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b900473 PB |
21021 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21022 | done; \ | |
22121df0 | 21023 | echo "Doing installcheck in libcpp"; \ |
a90ef4bf | 21024 | (cd $(HOST_SUBDIR)/libcpp && \ |
4b900473 PB |
21025 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21026 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21027 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 21028 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
21029 | installcheck) \ |
21030 | || exit 1 | |
21031 | ||
a90ef4bf | 21032 | @endif libcpp |
4b900473 | 21033 | |
a90ef4bf JM |
21034 | .PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp |
21035 | maybe-mostlyclean-libcpp: | |
21036 | @if libcpp | |
21037 | maybe-mostlyclean-libcpp: mostlyclean-libcpp | |
4b900473 | 21038 | |
a90ef4bf JM |
21039 | mostlyclean-libcpp: |
21040 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
4b900473 PB |
21041 | r=`${PWD_COMMAND}`; export r; \ |
21042 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21043 | $(HOST_EXPORTS) \ | |
a90ef4bf | 21044 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b900473 PB |
21045 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21046 | done; \ | |
22121df0 | 21047 | echo "Doing mostlyclean in libcpp"; \ |
a90ef4bf | 21048 | (cd $(HOST_SUBDIR)/libcpp && \ |
4b900473 PB |
21049 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21050 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21051 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 21052 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
21053 | mostlyclean) \ |
21054 | || exit 1 | |
21055 | ||
a90ef4bf | 21056 | @endif libcpp |
4b900473 | 21057 | |
a90ef4bf JM |
21058 | .PHONY: maybe-clean-libcpp clean-libcpp |
21059 | maybe-clean-libcpp: | |
21060 | @if libcpp | |
21061 | maybe-clean-libcpp: clean-libcpp | |
4b900473 | 21062 | |
a90ef4bf JM |
21063 | clean-libcpp: |
21064 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
4b900473 PB |
21065 | r=`${PWD_COMMAND}`; export r; \ |
21066 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21067 | $(HOST_EXPORTS) \ | |
a90ef4bf | 21068 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b900473 PB |
21069 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21070 | done; \ | |
22121df0 | 21071 | echo "Doing clean in libcpp"; \ |
a90ef4bf | 21072 | (cd $(HOST_SUBDIR)/libcpp && \ |
4b900473 PB |
21073 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21074 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21075 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 21076 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
21077 | clean) \ |
21078 | || exit 1 | |
21079 | ||
a90ef4bf | 21080 | @endif libcpp |
4b900473 | 21081 | |
a90ef4bf JM |
21082 | .PHONY: maybe-distclean-libcpp distclean-libcpp |
21083 | maybe-distclean-libcpp: | |
21084 | @if libcpp | |
21085 | maybe-distclean-libcpp: distclean-libcpp | |
4b900473 | 21086 | |
a90ef4bf JM |
21087 | distclean-libcpp: |
21088 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
4b900473 PB |
21089 | r=`${PWD_COMMAND}`; export r; \ |
21090 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21091 | $(HOST_EXPORTS) \ | |
a90ef4bf | 21092 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b900473 PB |
21093 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21094 | done; \ | |
22121df0 | 21095 | echo "Doing distclean in libcpp"; \ |
a90ef4bf | 21096 | (cd $(HOST_SUBDIR)/libcpp && \ |
4b900473 PB |
21097 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21098 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21099 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 21100 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
21101 | distclean) \ |
21102 | || exit 1 | |
21103 | ||
a90ef4bf | 21104 | @endif libcpp |
4b900473 | 21105 | |
a90ef4bf JM |
21106 | .PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp |
21107 | maybe-maintainer-clean-libcpp: | |
21108 | @if libcpp | |
21109 | maybe-maintainer-clean-libcpp: maintainer-clean-libcpp | |
4b900473 | 21110 | |
a90ef4bf JM |
21111 | maintainer-clean-libcpp: |
21112 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
4b900473 PB |
21113 | r=`${PWD_COMMAND}`; export r; \ |
21114 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21115 | $(HOST_EXPORTS) \ | |
a90ef4bf | 21116 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b900473 PB |
21117 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21118 | done; \ | |
22121df0 | 21119 | echo "Doing maintainer-clean in libcpp"; \ |
a90ef4bf | 21120 | (cd $(HOST_SUBDIR)/libcpp && \ |
4b900473 PB |
21121 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21122 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21123 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 21124 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
4b900473 PB |
21125 | maintainer-clean) \ |
21126 | || exit 1 | |
21127 | ||
a90ef4bf | 21128 | @endif libcpp |
4b900473 PB |
21129 | |
21130 | ||
21131 | ||
a90ef4bf JM |
21132 | .PHONY: configure-libdecnumber maybe-configure-libdecnumber |
21133 | maybe-configure-libdecnumber: | |
1f53ca9a | 21134 | @if gcc-bootstrap |
a90ef4bf | 21135 | configure-libdecnumber: stage_current |
1f53ca9a | 21136 | @endif gcc-bootstrap |
a90ef4bf JM |
21137 | @if libdecnumber |
21138 | maybe-configure-libdecnumber: configure-libdecnumber | |
21139 | configure-libdecnumber: | |
1f53ca9a AO |
21140 | @r=`${PWD_COMMAND}`; export r; \ |
21141 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 21142 | test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \ |
22121df0 | 21143 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \ |
1f53ca9a | 21144 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
21145 | echo Configuring in $(HOST_SUBDIR)/libdecnumber; \ |
21146 | cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \ | |
1f53ca9a AO |
21147 | case $(srcdir) in \ |
21148 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 21149 | *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \ |
1f53ca9a AO |
21150 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
21151 | esac; \ | |
1b6c0831 L |
21152 | module_srcdir=libdecnumber; \ |
21153 | $(SHELL) \ | |
21154 | $$s/$$module_srcdir/configure \ | |
21155 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 21156 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 21157 | --target=${target_alias} \ |
1f53ca9a | 21158 | || exit 1 |
a90ef4bf | 21159 | @endif libdecnumber |
1f53ca9a AO |
21160 | |
21161 | ||
21162 | ||
a90ef4bf JM |
21163 | .PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber |
21164 | maybe-configure-stage1-libdecnumber: | |
21165 | @if libdecnumber-bootstrap | |
21166 | maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber | |
21167 | configure-stage1-libdecnumber: | |
1f53ca9a | 21168 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
a90ef4bf | 21169 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber |
1f53ca9a AO |
21170 | @r=`${PWD_COMMAND}`; export r; \ |
21171 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21172 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
a90ef4bf | 21173 | test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \ |
1f53ca9a AO |
21174 | $(HOST_EXPORTS) \ |
21175 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ | |
21176 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
21177 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
21178 | echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber; \ |
21179 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \ | |
a90ef4bf | 21180 | cd $(HOST_SUBDIR)/libdecnumber || exit 1; \ |
1f53ca9a AO |
21181 | case $(srcdir) in \ |
21182 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 21183 | *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \ |
1f53ca9a AO |
21184 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
21185 | esac; \ | |
1b6c0831 L |
21186 | module_srcdir=libdecnumber; \ |
21187 | $(SHELL) $$s/$$module_srcdir/configure \ | |
21188 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 21189 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
21190 | --target=${target_alias} \ |
21191 | \ | |
a90ef4bf JM |
21192 | $(STAGE1_CONFIGURE_FLAGS) |
21193 | @endif libdecnumber-bootstrap | |
1f53ca9a | 21194 | |
a90ef4bf JM |
21195 | .PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber |
21196 | maybe-configure-stage2-libdecnumber: | |
21197 | @if libdecnumber-bootstrap | |
21198 | maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber | |
21199 | configure-stage2-libdecnumber: | |
1f53ca9a | 21200 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
a90ef4bf | 21201 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber |
1f53ca9a AO |
21202 | @r=`${PWD_COMMAND}`; export r; \ |
21203 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21204 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
a90ef4bf | 21205 | test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \ |
1f53ca9a AO |
21206 | $(HOST_EXPORTS) \ |
21207 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
21208 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
21209 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
21210 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
21211 | echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber; \ |
21212 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \ | |
a90ef4bf | 21213 | cd $(HOST_SUBDIR)/libdecnumber || exit 1; \ |
1f53ca9a AO |
21214 | case $(srcdir) in \ |
21215 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 21216 | *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \ |
1f53ca9a AO |
21217 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
21218 | esac; \ | |
1b6c0831 L |
21219 | module_srcdir=libdecnumber; \ |
21220 | $(SHELL) $$s/$$module_srcdir/configure \ | |
21221 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 21222 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 21223 | --target=${target_alias} \ |
22121df0 | 21224 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
21225 | $(STAGE2_CONFIGURE_FLAGS) |
21226 | @endif libdecnumber-bootstrap | |
1f53ca9a | 21227 | |
a90ef4bf JM |
21228 | .PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber |
21229 | maybe-configure-stage3-libdecnumber: | |
21230 | @if libdecnumber-bootstrap | |
21231 | maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber | |
21232 | configure-stage3-libdecnumber: | |
1f53ca9a | 21233 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
a90ef4bf | 21234 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber |
1f53ca9a AO |
21235 | @r=`${PWD_COMMAND}`; export r; \ |
21236 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21237 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
a90ef4bf | 21238 | test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \ |
1f53ca9a AO |
21239 | $(HOST_EXPORTS) \ |
21240 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
21241 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
21242 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
21243 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
21244 | echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber; \ |
21245 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \ | |
a90ef4bf | 21246 | cd $(HOST_SUBDIR)/libdecnumber || exit 1; \ |
1f53ca9a AO |
21247 | case $(srcdir) in \ |
21248 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 21249 | *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \ |
1f53ca9a AO |
21250 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
21251 | esac; \ | |
1b6c0831 L |
21252 | module_srcdir=libdecnumber; \ |
21253 | $(SHELL) $$s/$$module_srcdir/configure \ | |
21254 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 21255 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 21256 | --target=${target_alias} \ |
22121df0 | 21257 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
21258 | $(STAGE3_CONFIGURE_FLAGS) |
21259 | @endif libdecnumber-bootstrap | |
1f53ca9a | 21260 | |
a90ef4bf JM |
21261 | .PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber |
21262 | maybe-configure-stage4-libdecnumber: | |
21263 | @if libdecnumber-bootstrap | |
21264 | maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber | |
21265 | configure-stage4-libdecnumber: | |
1f53ca9a | 21266 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
a90ef4bf | 21267 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber |
1f53ca9a AO |
21268 | @r=`${PWD_COMMAND}`; export r; \ |
21269 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21270 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
a90ef4bf | 21271 | test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \ |
1f53ca9a AO |
21272 | $(HOST_EXPORTS) \ |
21273 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
21274 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
21275 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
21276 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
21277 | echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber; \ |
21278 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \ | |
a90ef4bf | 21279 | cd $(HOST_SUBDIR)/libdecnumber || exit 1; \ |
1f53ca9a AO |
21280 | case $(srcdir) in \ |
21281 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 21282 | *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \ |
1f53ca9a AO |
21283 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
21284 | esac; \ | |
1b6c0831 L |
21285 | module_srcdir=libdecnumber; \ |
21286 | $(SHELL) $$s/$$module_srcdir/configure \ | |
21287 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 21288 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 21289 | --target=${target_alias} \ |
22121df0 | 21290 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
21291 | $(STAGE4_CONFIGURE_FLAGS) |
21292 | @endif libdecnumber-bootstrap | |
1f53ca9a | 21293 | |
a90ef4bf JM |
21294 | .PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber |
21295 | maybe-configure-stageprofile-libdecnumber: | |
21296 | @if libdecnumber-bootstrap | |
21297 | maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber | |
21298 | configure-stageprofile-libdecnumber: | |
1f53ca9a | 21299 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
a90ef4bf | 21300 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber |
1f53ca9a AO |
21301 | @r=`${PWD_COMMAND}`; export r; \ |
21302 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21303 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
a90ef4bf | 21304 | test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \ |
1f53ca9a AO |
21305 | $(HOST_EXPORTS) \ |
21306 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
21307 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
21308 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
21309 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
21310 | echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber; \ |
21311 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \ | |
a90ef4bf | 21312 | cd $(HOST_SUBDIR)/libdecnumber || exit 1; \ |
1f53ca9a AO |
21313 | case $(srcdir) in \ |
21314 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 21315 | *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \ |
1f53ca9a AO |
21316 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
21317 | esac; \ | |
1b6c0831 L |
21318 | module_srcdir=libdecnumber; \ |
21319 | $(SHELL) $$s/$$module_srcdir/configure \ | |
21320 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 21321 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 21322 | --target=${target_alias} \ |
22121df0 | 21323 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
21324 | $(STAGEprofile_CONFIGURE_FLAGS) |
21325 | @endif libdecnumber-bootstrap | |
1f53ca9a | 21326 | |
a90ef4bf JM |
21327 | .PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber |
21328 | maybe-configure-stagefeedback-libdecnumber: | |
21329 | @if libdecnumber-bootstrap | |
21330 | maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber | |
21331 | configure-stagefeedback-libdecnumber: | |
1f53ca9a | 21332 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
a90ef4bf | 21333 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber |
1f53ca9a AO |
21334 | @r=`${PWD_COMMAND}`; export r; \ |
21335 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21336 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
a90ef4bf | 21337 | test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \ |
1f53ca9a AO |
21338 | $(HOST_EXPORTS) \ |
21339 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
21340 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
21341 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
21342 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
21343 | echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber; \ |
21344 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \ | |
a90ef4bf | 21345 | cd $(HOST_SUBDIR)/libdecnumber || exit 1; \ |
1f53ca9a AO |
21346 | case $(srcdir) in \ |
21347 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 21348 | *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \ |
1f53ca9a AO |
21349 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
21350 | esac; \ | |
1b6c0831 L |
21351 | module_srcdir=libdecnumber; \ |
21352 | $(SHELL) $$s/$$module_srcdir/configure \ | |
21353 | --srcdir=$${topdir}/$$module_srcdir \ | |
1f53ca9a | 21354 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 21355 | --target=${target_alias} \ |
22121df0 | 21356 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
21357 | $(STAGEfeedback_CONFIGURE_FLAGS) |
21358 | @endif libdecnumber-bootstrap | |
1f53ca9a AO |
21359 | |
21360 | ||
21361 | ||
21362 | ||
21363 | ||
a90ef4bf JM |
21364 | .PHONY: all-libdecnumber maybe-all-libdecnumber |
21365 | maybe-all-libdecnumber: | |
1f53ca9a | 21366 | @if gcc-bootstrap |
a90ef4bf | 21367 | all-libdecnumber: stage_current |
1f53ca9a | 21368 | @endif gcc-bootstrap |
a90ef4bf JM |
21369 | @if libdecnumber |
21370 | TARGET-libdecnumber=all | |
21371 | maybe-all-libdecnumber: all-libdecnumber | |
21372 | all-libdecnumber: configure-libdecnumber | |
1f53ca9a AO |
21373 | @r=`${PWD_COMMAND}`; export r; \ |
21374 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21375 | $(HOST_EXPORTS) \ | |
a90ef4bf | 21376 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
b3676d82 | 21377 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
21378 | $(TARGET-libdecnumber)) |
21379 | @endif libdecnumber | |
1f53ca9a AO |
21380 | |
21381 | ||
21382 | ||
a90ef4bf JM |
21383 | .PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber |
21384 | .PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber | |
21385 | maybe-all-stage1-libdecnumber: | |
21386 | maybe-clean-stage1-libdecnumber: | |
21387 | @if libdecnumber-bootstrap | |
21388 | maybe-all-stage1-libdecnumber: all-stage1-libdecnumber | |
21389 | all-stage1: all-stage1-libdecnumber | |
21390 | TARGET-stage1-libdecnumber = $(TARGET-libdecnumber) | |
21391 | all-stage1-libdecnumber: configure-stage1-libdecnumber | |
1f53ca9a AO |
21392 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
21393 | @r=`${PWD_COMMAND}`; export r; \ | |
21394 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21395 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
21396 | $(HOST_EXPORTS) \ | |
a90ef4bf | 21397 | cd $(HOST_SUBDIR)/libdecnumber && \ |
05a13254 | 21398 | \ |
1f53ca9a AO |
21399 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
21400 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
21401 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
21402 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
21403 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
21404 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
21405 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
21406 | $(EXTRA_HOST_FLAGS) \ |
21407 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 21408 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 21409 | $(TARGET-stage1-libdecnumber) |
1f53ca9a | 21410 | |
a90ef4bf JM |
21411 | maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber |
21412 | clean-stage1: clean-stage1-libdecnumber | |
21413 | clean-stage1-libdecnumber: | |
1f53ca9a | 21414 | @if [ $(current_stage) = stage1 ]; then \ |
a90ef4bf | 21415 | [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \ |
1f53ca9a | 21416 | else \ |
a90ef4bf | 21417 | [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \ |
1f53ca9a AO |
21418 | $(MAKE) stage1-start; \ |
21419 | fi; \ | |
a90ef4bf | 21420 | cd $(HOST_SUBDIR)/libdecnumber && \ |
1f53ca9a | 21421 | $(MAKE) $(EXTRA_HOST_FLAGS) \ |
b3676d82 | 21422 | $(STAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 21423 | @endif libdecnumber-bootstrap |
1f53ca9a AO |
21424 | |
21425 | ||
a90ef4bf JM |
21426 | .PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber |
21427 | .PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber | |
21428 | maybe-all-stage2-libdecnumber: | |
21429 | maybe-clean-stage2-libdecnumber: | |
21430 | @if libdecnumber-bootstrap | |
21431 | maybe-all-stage2-libdecnumber: all-stage2-libdecnumber | |
21432 | all-stage2: all-stage2-libdecnumber | |
21433 | TARGET-stage2-libdecnumber = $(TARGET-libdecnumber) | |
21434 | all-stage2-libdecnumber: configure-stage2-libdecnumber | |
1f53ca9a AO |
21435 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
21436 | @r=`${PWD_COMMAND}`; export r; \ | |
21437 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21438 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
21439 | $(HOST_EXPORTS) \ | |
21440 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
a90ef4bf | 21441 | cd $(HOST_SUBDIR)/libdecnumber && \ |
05a13254 | 21442 | \ |
1f53ca9a AO |
21443 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
21444 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
21445 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
21446 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
21447 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
21448 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
21449 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
21450 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 21451 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 21452 | $(TARGET-stage2-libdecnumber) |
1f53ca9a | 21453 | |
a90ef4bf JM |
21454 | maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber |
21455 | clean-stage2: clean-stage2-libdecnumber | |
21456 | clean-stage2-libdecnumber: | |
1f53ca9a | 21457 | @if [ $(current_stage) = stage2 ]; then \ |
a90ef4bf | 21458 | [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \ |
1f53ca9a | 21459 | else \ |
a90ef4bf | 21460 | [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \ |
1f53ca9a AO |
21461 | $(MAKE) stage2-start; \ |
21462 | fi; \ | |
a90ef4bf | 21463 | cd $(HOST_SUBDIR)/libdecnumber && \ |
b3676d82 | 21464 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 21465 | @endif libdecnumber-bootstrap |
1f53ca9a AO |
21466 | |
21467 | ||
a90ef4bf JM |
21468 | .PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber |
21469 | .PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber | |
21470 | maybe-all-stage3-libdecnumber: | |
21471 | maybe-clean-stage3-libdecnumber: | |
21472 | @if libdecnumber-bootstrap | |
21473 | maybe-all-stage3-libdecnumber: all-stage3-libdecnumber | |
21474 | all-stage3: all-stage3-libdecnumber | |
21475 | TARGET-stage3-libdecnumber = $(TARGET-libdecnumber) | |
21476 | all-stage3-libdecnumber: configure-stage3-libdecnumber | |
1f53ca9a AO |
21477 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
21478 | @r=`${PWD_COMMAND}`; export r; \ | |
21479 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21480 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
21481 | $(HOST_EXPORTS) \ | |
21482 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
a90ef4bf | 21483 | cd $(HOST_SUBDIR)/libdecnumber && \ |
05a13254 | 21484 | \ |
1f53ca9a AO |
21485 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
21486 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
21487 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
21488 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
21489 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
21490 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
21491 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
21492 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 21493 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 21494 | $(TARGET-stage3-libdecnumber) |
1f53ca9a | 21495 | |
a90ef4bf JM |
21496 | maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber |
21497 | clean-stage3: clean-stage3-libdecnumber | |
21498 | clean-stage3-libdecnumber: | |
1f53ca9a | 21499 | @if [ $(current_stage) = stage3 ]; then \ |
a90ef4bf | 21500 | [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \ |
1f53ca9a | 21501 | else \ |
a90ef4bf | 21502 | [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \ |
1f53ca9a AO |
21503 | $(MAKE) stage3-start; \ |
21504 | fi; \ | |
a90ef4bf | 21505 | cd $(HOST_SUBDIR)/libdecnumber && \ |
b3676d82 | 21506 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 21507 | @endif libdecnumber-bootstrap |
1f53ca9a AO |
21508 | |
21509 | ||
a90ef4bf JM |
21510 | .PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber |
21511 | .PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber | |
21512 | maybe-all-stage4-libdecnumber: | |
21513 | maybe-clean-stage4-libdecnumber: | |
21514 | @if libdecnumber-bootstrap | |
21515 | maybe-all-stage4-libdecnumber: all-stage4-libdecnumber | |
21516 | all-stage4: all-stage4-libdecnumber | |
21517 | TARGET-stage4-libdecnumber = $(TARGET-libdecnumber) | |
21518 | all-stage4-libdecnumber: configure-stage4-libdecnumber | |
1f53ca9a AO |
21519 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
21520 | @r=`${PWD_COMMAND}`; export r; \ | |
21521 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21522 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
21523 | $(HOST_EXPORTS) \ | |
21524 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
a90ef4bf | 21525 | cd $(HOST_SUBDIR)/libdecnumber && \ |
05a13254 | 21526 | \ |
1f53ca9a AO |
21527 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
21528 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
21529 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
21530 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
21531 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
21532 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
21533 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
21534 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 21535 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 21536 | $(TARGET-stage4-libdecnumber) |
1f53ca9a | 21537 | |
a90ef4bf JM |
21538 | maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber |
21539 | clean-stage4: clean-stage4-libdecnumber | |
21540 | clean-stage4-libdecnumber: | |
1f53ca9a | 21541 | @if [ $(current_stage) = stage4 ]; then \ |
a90ef4bf | 21542 | [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \ |
1f53ca9a | 21543 | else \ |
a90ef4bf | 21544 | [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \ |
1f53ca9a AO |
21545 | $(MAKE) stage4-start; \ |
21546 | fi; \ | |
a90ef4bf | 21547 | cd $(HOST_SUBDIR)/libdecnumber && \ |
b3676d82 | 21548 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 21549 | @endif libdecnumber-bootstrap |
1f53ca9a AO |
21550 | |
21551 | ||
a90ef4bf JM |
21552 | .PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber |
21553 | .PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber | |
21554 | maybe-all-stageprofile-libdecnumber: | |
21555 | maybe-clean-stageprofile-libdecnumber: | |
21556 | @if libdecnumber-bootstrap | |
21557 | maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber | |
21558 | all-stageprofile: all-stageprofile-libdecnumber | |
21559 | TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber) | |
21560 | all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber | |
1f53ca9a AO |
21561 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
21562 | @r=`${PWD_COMMAND}`; export r; \ | |
21563 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21564 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
21565 | $(HOST_EXPORTS) \ | |
21566 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
a90ef4bf | 21567 | cd $(HOST_SUBDIR)/libdecnumber && \ |
05a13254 | 21568 | \ |
1f53ca9a AO |
21569 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
21570 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
21571 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
21572 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
21573 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
21574 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
21575 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
21576 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 21577 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf | 21578 | $(TARGET-stageprofile-libdecnumber) |
1f53ca9a | 21579 | |
a90ef4bf JM |
21580 | maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber |
21581 | clean-stageprofile: clean-stageprofile-libdecnumber | |
21582 | clean-stageprofile-libdecnumber: | |
1f53ca9a | 21583 | @if [ $(current_stage) = stageprofile ]; then \ |
a90ef4bf | 21584 | [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \ |
1f53ca9a | 21585 | else \ |
a90ef4bf | 21586 | [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \ |
1f53ca9a AO |
21587 | $(MAKE) stageprofile-start; \ |
21588 | fi; \ | |
a90ef4bf | 21589 | cd $(HOST_SUBDIR)/libdecnumber && \ |
b3676d82 | 21590 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 21591 | @endif libdecnumber-bootstrap |
1f53ca9a AO |
21592 | |
21593 | ||
a90ef4bf JM |
21594 | .PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber |
21595 | .PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber | |
21596 | maybe-all-stagefeedback-libdecnumber: | |
21597 | maybe-clean-stagefeedback-libdecnumber: | |
21598 | @if libdecnumber-bootstrap | |
21599 | maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber | |
21600 | all-stagefeedback: all-stagefeedback-libdecnumber | |
21601 | TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber) | |
21602 | all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber | |
1f53ca9a AO |
21603 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
21604 | @r=`${PWD_COMMAND}`; export r; \ | |
21605 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21606 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
21607 | $(HOST_EXPORTS) \ | |
21608 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
a90ef4bf | 21609 | cd $(HOST_SUBDIR)/libdecnumber && \ |
05a13254 | 21610 | \ |
1f53ca9a AO |
21611 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
21612 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
21613 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
21614 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
21615 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
21616 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
21617 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
21618 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 21619 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf | 21620 | $(TARGET-stagefeedback-libdecnumber) |
1f53ca9a | 21621 | |
a90ef4bf JM |
21622 | maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber |
21623 | clean-stagefeedback: clean-stagefeedback-libdecnumber | |
21624 | clean-stagefeedback-libdecnumber: | |
1f53ca9a | 21625 | @if [ $(current_stage) = stagefeedback ]; then \ |
a90ef4bf | 21626 | [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \ |
1f53ca9a | 21627 | else \ |
a90ef4bf | 21628 | [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \ |
1f53ca9a AO |
21629 | $(MAKE) stagefeedback-start; \ |
21630 | fi; \ | |
a90ef4bf | 21631 | cd $(HOST_SUBDIR)/libdecnumber && \ |
b3676d82 | 21632 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 21633 | @endif libdecnumber-bootstrap |
1f53ca9a AO |
21634 | |
21635 | ||
21636 | ||
21637 | ||
21638 | ||
a90ef4bf JM |
21639 | .PHONY: check-libdecnumber maybe-check-libdecnumber |
21640 | maybe-check-libdecnumber: | |
21641 | @if libdecnumber | |
21642 | maybe-check-libdecnumber: check-libdecnumber | |
1f53ca9a | 21643 | |
a90ef4bf | 21644 | check-libdecnumber: |
1f53ca9a AO |
21645 | @: $(MAKE); $(unstage) |
21646 | @r=`${PWD_COMMAND}`; export r; \ | |
21647 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 21648 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 21649 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
f91ca6bc | 21650 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
1f53ca9a | 21651 | |
a90ef4bf | 21652 | @endif libdecnumber |
1f53ca9a | 21653 | |
a90ef4bf JM |
21654 | .PHONY: install-libdecnumber maybe-install-libdecnumber |
21655 | maybe-install-libdecnumber: | |
21656 | @if libdecnumber | |
21657 | maybe-install-libdecnumber: install-libdecnumber | |
1f53ca9a | 21658 | |
a90ef4bf JM |
21659 | install-libdecnumber: installdirs |
21660 | @: $(MAKE); $(unstage) | |
21661 | @r=`${PWD_COMMAND}`; export r; \ | |
21662 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21663 | $(HOST_EXPORTS) \ | |
21664 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
21665 | $(MAKE) $(FLAGS_TO_PASS) install) | |
1f53ca9a | 21666 | |
a90ef4bf | 21667 | @endif libdecnumber |
1f53ca9a | 21668 | |
a90ef4bf JM |
21669 | .PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber |
21670 | maybe-install-strip-libdecnumber: | |
21671 | @if libdecnumber | |
21672 | maybe-install-strip-libdecnumber: install-strip-libdecnumber | |
9b980aa1 | 21673 | |
a90ef4bf JM |
21674 | install-strip-libdecnumber: installdirs |
21675 | @: $(MAKE); $(unstage) | |
21676 | @r=`${PWD_COMMAND}`; export r; \ | |
21677 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21678 | $(HOST_EXPORTS) \ | |
21679 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
21680 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
9b980aa1 | 21681 | |
a90ef4bf | 21682 | @endif libdecnumber |
9b980aa1 | 21683 | |
1f53ca9a AO |
21684 | # Other targets (info, dvi, pdf, etc.) |
21685 | ||
a90ef4bf JM |
21686 | .PHONY: maybe-info-libdecnumber info-libdecnumber |
21687 | maybe-info-libdecnumber: | |
21688 | @if libdecnumber | |
21689 | maybe-info-libdecnumber: info-libdecnumber | |
1f53ca9a | 21690 | |
a90ef4bf JM |
21691 | info-libdecnumber: \ |
21692 | configure-libdecnumber | |
21693 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
1f53ca9a AO |
21694 | r=`${PWD_COMMAND}`; export r; \ |
21695 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21696 | $(HOST_EXPORTS) \ | |
21697 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21698 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21699 | done; \ | |
22121df0 | 21700 | echo "Doing info in libdecnumber"; \ |
a90ef4bf | 21701 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
1f53ca9a AO |
21702 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21703 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21704 | "RANLIB=$${RANLIB}" \ | |
21705 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
21706 | info) \ | |
21707 | || exit 1 | |
21708 | ||
a90ef4bf | 21709 | @endif libdecnumber |
1f53ca9a | 21710 | |
a90ef4bf JM |
21711 | .PHONY: maybe-dvi-libdecnumber dvi-libdecnumber |
21712 | maybe-dvi-libdecnumber: | |
21713 | @if libdecnumber | |
21714 | maybe-dvi-libdecnumber: dvi-libdecnumber | |
1f53ca9a | 21715 | |
a90ef4bf JM |
21716 | dvi-libdecnumber: \ |
21717 | configure-libdecnumber | |
21718 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
1f53ca9a AO |
21719 | r=`${PWD_COMMAND}`; export r; \ |
21720 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21721 | $(HOST_EXPORTS) \ | |
21722 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21723 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21724 | done; \ | |
22121df0 | 21725 | echo "Doing dvi in libdecnumber"; \ |
a90ef4bf | 21726 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
1f53ca9a AO |
21727 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21728 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21729 | "RANLIB=$${RANLIB}" \ | |
21730 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
21731 | dvi) \ | |
21732 | || exit 1 | |
21733 | ||
a90ef4bf | 21734 | @endif libdecnumber |
1f53ca9a | 21735 | |
a90ef4bf JM |
21736 | .PHONY: maybe-pdf-libdecnumber pdf-libdecnumber |
21737 | maybe-pdf-libdecnumber: | |
21738 | @if libdecnumber | |
21739 | maybe-pdf-libdecnumber: pdf-libdecnumber | |
1f53ca9a | 21740 | |
a90ef4bf JM |
21741 | pdf-libdecnumber: \ |
21742 | configure-libdecnumber | |
21743 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
1f53ca9a AO |
21744 | r=`${PWD_COMMAND}`; export r; \ |
21745 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21746 | $(HOST_EXPORTS) \ | |
21747 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21748 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21749 | done; \ | |
22121df0 | 21750 | echo "Doing pdf in libdecnumber"; \ |
a90ef4bf | 21751 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
1f53ca9a AO |
21752 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21753 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21754 | "RANLIB=$${RANLIB}" \ | |
21755 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
21756 | pdf) \ | |
21757 | || exit 1 | |
21758 | ||
a90ef4bf | 21759 | @endif libdecnumber |
1f53ca9a | 21760 | |
a90ef4bf JM |
21761 | .PHONY: maybe-html-libdecnumber html-libdecnumber |
21762 | maybe-html-libdecnumber: | |
21763 | @if libdecnumber | |
21764 | maybe-html-libdecnumber: html-libdecnumber | |
1f53ca9a | 21765 | |
a90ef4bf JM |
21766 | html-libdecnumber: \ |
21767 | configure-libdecnumber | |
21768 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
1f53ca9a AO |
21769 | r=`${PWD_COMMAND}`; export r; \ |
21770 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21771 | $(HOST_EXPORTS) \ | |
21772 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21773 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21774 | done; \ | |
22121df0 | 21775 | echo "Doing html in libdecnumber"; \ |
a90ef4bf | 21776 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
1f53ca9a AO |
21777 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21778 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21779 | "RANLIB=$${RANLIB}" \ | |
21780 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
21781 | html) \ | |
21782 | || exit 1 | |
21783 | ||
a90ef4bf | 21784 | @endif libdecnumber |
1f53ca9a | 21785 | |
a90ef4bf JM |
21786 | .PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber |
21787 | maybe-TAGS-libdecnumber: | |
21788 | @if libdecnumber | |
21789 | maybe-TAGS-libdecnumber: TAGS-libdecnumber | |
1f53ca9a | 21790 | |
a90ef4bf JM |
21791 | TAGS-libdecnumber: \ |
21792 | configure-libdecnumber | |
21793 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
1f53ca9a AO |
21794 | r=`${PWD_COMMAND}`; export r; \ |
21795 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21796 | $(HOST_EXPORTS) \ | |
21797 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21798 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21799 | done; \ | |
22121df0 | 21800 | echo "Doing TAGS in libdecnumber"; \ |
a90ef4bf | 21801 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
1f53ca9a AO |
21802 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21803 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21804 | "RANLIB=$${RANLIB}" \ | |
21805 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
21806 | TAGS) \ | |
21807 | || exit 1 | |
21808 | ||
a90ef4bf | 21809 | @endif libdecnumber |
1f53ca9a | 21810 | |
a90ef4bf JM |
21811 | .PHONY: maybe-install-info-libdecnumber install-info-libdecnumber |
21812 | maybe-install-info-libdecnumber: | |
21813 | @if libdecnumber | |
21814 | maybe-install-info-libdecnumber: install-info-libdecnumber | |
1f53ca9a | 21815 | |
a90ef4bf JM |
21816 | install-info-libdecnumber: \ |
21817 | configure-libdecnumber \ | |
21818 | info-libdecnumber | |
21819 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
1f53ca9a AO |
21820 | r=`${PWD_COMMAND}`; export r; \ |
21821 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21822 | $(HOST_EXPORTS) \ | |
21823 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21824 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21825 | done; \ | |
22121df0 | 21826 | echo "Doing install-info in libdecnumber"; \ |
a90ef4bf | 21827 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
1f53ca9a AO |
21828 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21829 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21830 | "RANLIB=$${RANLIB}" \ | |
21831 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
21832 | install-info) \ | |
21833 | || exit 1 | |
21834 | ||
a90ef4bf | 21835 | @endif libdecnumber |
1f53ca9a | 21836 | |
a90ef4bf JM |
21837 | .PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber |
21838 | maybe-install-pdf-libdecnumber: | |
21839 | @if libdecnumber | |
21840 | maybe-install-pdf-libdecnumber: install-pdf-libdecnumber | |
1f53ca9a | 21841 | |
a90ef4bf JM |
21842 | install-pdf-libdecnumber: \ |
21843 | configure-libdecnumber \ | |
21844 | pdf-libdecnumber | |
21845 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
1f53ca9a AO |
21846 | r=`${PWD_COMMAND}`; export r; \ |
21847 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21848 | $(HOST_EXPORTS) \ | |
21849 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21850 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21851 | done; \ | |
22121df0 | 21852 | echo "Doing install-pdf in libdecnumber"; \ |
a90ef4bf | 21853 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
1f53ca9a AO |
21854 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21855 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21856 | "RANLIB=$${RANLIB}" \ | |
21857 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
21858 | install-pdf) \ | |
21859 | || exit 1 | |
21860 | ||
a90ef4bf | 21861 | @endif libdecnumber |
1f53ca9a | 21862 | |
a90ef4bf JM |
21863 | .PHONY: maybe-install-html-libdecnumber install-html-libdecnumber |
21864 | maybe-install-html-libdecnumber: | |
21865 | @if libdecnumber | |
21866 | maybe-install-html-libdecnumber: install-html-libdecnumber | |
1f53ca9a | 21867 | |
a90ef4bf JM |
21868 | install-html-libdecnumber: \ |
21869 | configure-libdecnumber \ | |
21870 | html-libdecnumber | |
21871 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
1f53ca9a AO |
21872 | r=`${PWD_COMMAND}`; export r; \ |
21873 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21874 | $(HOST_EXPORTS) \ | |
21875 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21876 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21877 | done; \ | |
22121df0 | 21878 | echo "Doing install-html in libdecnumber"; \ |
a90ef4bf | 21879 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
1f53ca9a AO |
21880 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21881 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21882 | "RANLIB=$${RANLIB}" \ | |
21883 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
21884 | install-html) \ | |
21885 | || exit 1 | |
21886 | ||
a90ef4bf | 21887 | @endif libdecnumber |
1f53ca9a | 21888 | |
a90ef4bf JM |
21889 | .PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber |
21890 | maybe-installcheck-libdecnumber: | |
21891 | @if libdecnumber | |
21892 | maybe-installcheck-libdecnumber: installcheck-libdecnumber | |
1f53ca9a | 21893 | |
a90ef4bf JM |
21894 | installcheck-libdecnumber: \ |
21895 | configure-libdecnumber | |
21896 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
1f53ca9a AO |
21897 | r=`${PWD_COMMAND}`; export r; \ |
21898 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21899 | $(HOST_EXPORTS) \ | |
21900 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21901 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21902 | done; \ | |
22121df0 | 21903 | echo "Doing installcheck in libdecnumber"; \ |
a90ef4bf | 21904 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
1f53ca9a AO |
21905 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21906 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21907 | "RANLIB=$${RANLIB}" \ | |
21908 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
21909 | installcheck) \ | |
21910 | || exit 1 | |
21911 | ||
a90ef4bf | 21912 | @endif libdecnumber |
1f53ca9a | 21913 | |
a90ef4bf JM |
21914 | .PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber |
21915 | maybe-mostlyclean-libdecnumber: | |
21916 | @if libdecnumber | |
21917 | maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber | |
1f53ca9a | 21918 | |
a90ef4bf JM |
21919 | mostlyclean-libdecnumber: |
21920 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
1f53ca9a AO |
21921 | r=`${PWD_COMMAND}`; export r; \ |
21922 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21923 | $(HOST_EXPORTS) \ | |
21924 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21925 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21926 | done; \ | |
22121df0 | 21927 | echo "Doing mostlyclean in libdecnumber"; \ |
a90ef4bf | 21928 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
1f53ca9a AO |
21929 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21930 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21931 | "RANLIB=$${RANLIB}" \ | |
21932 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
21933 | mostlyclean) \ | |
21934 | || exit 1 | |
21935 | ||
a90ef4bf | 21936 | @endif libdecnumber |
1f53ca9a | 21937 | |
a90ef4bf JM |
21938 | .PHONY: maybe-clean-libdecnumber clean-libdecnumber |
21939 | maybe-clean-libdecnumber: | |
21940 | @if libdecnumber | |
21941 | maybe-clean-libdecnumber: clean-libdecnumber | |
1f53ca9a | 21942 | |
a90ef4bf JM |
21943 | clean-libdecnumber: |
21944 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
1f53ca9a AO |
21945 | r=`${PWD_COMMAND}`; export r; \ |
21946 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21947 | $(HOST_EXPORTS) \ | |
21948 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21949 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21950 | done; \ | |
22121df0 | 21951 | echo "Doing clean in libdecnumber"; \ |
a90ef4bf | 21952 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
1f53ca9a AO |
21953 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21954 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21955 | "RANLIB=$${RANLIB}" \ | |
21956 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
21957 | clean) \ | |
21958 | || exit 1 | |
21959 | ||
a90ef4bf | 21960 | @endif libdecnumber |
1f53ca9a | 21961 | |
a90ef4bf JM |
21962 | .PHONY: maybe-distclean-libdecnumber distclean-libdecnumber |
21963 | maybe-distclean-libdecnumber: | |
21964 | @if libdecnumber | |
21965 | maybe-distclean-libdecnumber: distclean-libdecnumber | |
1f53ca9a | 21966 | |
a90ef4bf JM |
21967 | distclean-libdecnumber: |
21968 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
1f53ca9a AO |
21969 | r=`${PWD_COMMAND}`; export r; \ |
21970 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21971 | $(HOST_EXPORTS) \ | |
21972 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21973 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21974 | done; \ | |
22121df0 | 21975 | echo "Doing distclean in libdecnumber"; \ |
a90ef4bf | 21976 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
1f53ca9a AO |
21977 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21978 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21979 | "RANLIB=$${RANLIB}" \ | |
21980 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
21981 | distclean) \ | |
21982 | || exit 1 | |
21983 | ||
a90ef4bf | 21984 | @endif libdecnumber |
1f53ca9a | 21985 | |
a90ef4bf JM |
21986 | .PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber |
21987 | maybe-maintainer-clean-libdecnumber: | |
21988 | @if libdecnumber | |
21989 | maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber | |
1f53ca9a | 21990 | |
a90ef4bf JM |
21991 | maintainer-clean-libdecnumber: |
21992 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
1f53ca9a AO |
21993 | r=`${PWD_COMMAND}`; export r; \ |
21994 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21995 | $(HOST_EXPORTS) \ | |
21996 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21997 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21998 | done; \ | |
22121df0 | 21999 | echo "Doing maintainer-clean in libdecnumber"; \ |
a90ef4bf | 22000 | (cd $(HOST_SUBDIR)/libdecnumber && \ |
1f53ca9a AO |
22001 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22002 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22003 | "RANLIB=$${RANLIB}" \ | |
22004 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
22005 | maintainer-clean) \ | |
22006 | || exit 1 | |
22007 | ||
a90ef4bf | 22008 | @endif libdecnumber |
1f53ca9a AO |
22009 | |
22010 | ||
22011 | ||
a90ef4bf JM |
22012 | .PHONY: configure-libgui maybe-configure-libgui |
22013 | maybe-configure-libgui: | |
4f0ef2d8 | 22014 | @if gcc-bootstrap |
a90ef4bf | 22015 | configure-libgui: stage_current |
4f0ef2d8 | 22016 | @endif gcc-bootstrap |
a90ef4bf JM |
22017 | @if libgui |
22018 | maybe-configure-libgui: configure-libgui | |
22019 | configure-libgui: | |
0aed8855 | 22020 | @: $(MAKE); $(unstage) |
c52c6897 | 22021 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 22022 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 22023 | test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \ |
22121df0 | 22024 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui; \ |
1f53ca9a | 22025 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
22026 | echo Configuring in $(HOST_SUBDIR)/libgui; \ |
22027 | cd "$(HOST_SUBDIR)/libgui" || exit 1; \ | |
4fa63067 | 22028 | case $(srcdir) in \ |
b00612cc | 22029 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 22030 | *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \ |
b00612cc | 22031 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 22032 | esac; \ |
1b6c0831 L |
22033 | module_srcdir=libgui; \ |
22034 | $(SHELL) \ | |
22035 | $$s/$$module_srcdir/configure \ | |
22036 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 22037 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 22038 | --target=${target_alias} \ |
2a4cbe27 | 22039 | || exit 1 |
a90ef4bf | 22040 | @endif libgui |
2a4cbe27 | 22041 | |
a7254363 PB |
22042 | |
22043 | ||
d545f33b PB |
22044 | |
22045 | ||
a90ef4bf JM |
22046 | .PHONY: all-libgui maybe-all-libgui |
22047 | maybe-all-libgui: | |
4f0ef2d8 | 22048 | @if gcc-bootstrap |
a90ef4bf | 22049 | all-libgui: stage_current |
4f0ef2d8 | 22050 | @endif gcc-bootstrap |
a90ef4bf JM |
22051 | @if libgui |
22052 | TARGET-libgui=all | |
22053 | maybe-all-libgui: all-libgui | |
22054 | all-libgui: configure-libgui | |
0aed8855 | 22055 | @: $(MAKE); $(unstage) |
4fa63067 NN |
22056 | @r=`${PWD_COMMAND}`; export r; \ |
22057 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 22058 | $(HOST_EXPORTS) \ |
a90ef4bf | 22059 | (cd $(HOST_SUBDIR)/libgui && \ |
b3676d82 | 22060 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
22061 | $(TARGET-libgui)) |
22062 | @endif libgui | |
2a4cbe27 | 22063 | |
a7254363 | 22064 | |
d545f33b PB |
22065 | |
22066 | ||
a90ef4bf JM |
22067 | .PHONY: check-libgui maybe-check-libgui |
22068 | maybe-check-libgui: | |
22069 | @if libgui | |
22070 | maybe-check-libgui: check-libgui | |
2a4cbe27 | 22071 | |
a90ef4bf | 22072 | check-libgui: |
0aed8855 | 22073 | @: $(MAKE); $(unstage) |
4fa63067 | 22074 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 22075 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
f91ca6bc | 22076 | $(HOST_EXPORTS) \ |
a90ef4bf | 22077 | (cd $(HOST_SUBDIR)/libgui && \ |
b00612cc | 22078 | $(MAKE) $(FLAGS_TO_PASS) check) |
2a4cbe27 | 22079 | |
a90ef4bf | 22080 | @endif libgui |
2a4cbe27 | 22081 | |
a90ef4bf JM |
22082 | .PHONY: install-libgui maybe-install-libgui |
22083 | maybe-install-libgui: | |
22084 | @if libgui | |
22085 | maybe-install-libgui: install-libgui | |
2a4cbe27 | 22086 | |
a90ef4bf | 22087 | install-libgui: installdirs |
0aed8855 | 22088 | @: $(MAKE); $(unstage) |
4fa63067 | 22089 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 22090 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 22091 | $(HOST_EXPORTS) \ |
a90ef4bf | 22092 | (cd $(HOST_SUBDIR)/libgui && \ |
2da12f12 | 22093 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 22094 | |
a90ef4bf | 22095 | @endif libgui |
2a4cbe27 | 22096 | |
a90ef4bf JM |
22097 | .PHONY: install-strip-libgui maybe-install-strip-libgui |
22098 | maybe-install-strip-libgui: | |
22099 | @if libgui | |
22100 | maybe-install-strip-libgui: install-strip-libgui | |
9b980aa1 | 22101 | |
a90ef4bf | 22102 | install-strip-libgui: installdirs |
9b980aa1 RW |
22103 | @: $(MAKE); $(unstage) |
22104 | @r=`${PWD_COMMAND}`; export r; \ | |
22105 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
22106 | $(HOST_EXPORTS) \ | |
a90ef4bf | 22107 | (cd $(HOST_SUBDIR)/libgui && \ |
9b980aa1 RW |
22108 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
22109 | ||
a90ef4bf | 22110 | @endif libgui |
9b980aa1 | 22111 | |
56a8fe78 | 22112 | # Other targets (info, dvi, pdf, etc.) |
2a4cbe27 | 22113 | |
a90ef4bf JM |
22114 | .PHONY: maybe-info-libgui info-libgui |
22115 | maybe-info-libgui: | |
22116 | @if libgui | |
22117 | maybe-info-libgui: info-libgui | |
4fa63067 | 22118 | |
a90ef4bf JM |
22119 | info-libgui: \ |
22120 | configure-libgui | |
0aed8855 | 22121 | @: $(MAKE); $(unstage) |
a90ef4bf | 22122 | @[ -f ./libgui/Makefile ] || exit 0; \ |
b40e3958 L |
22123 | r=`${PWD_COMMAND}`; export r; \ |
22124 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22125 | $(HOST_EXPORTS) \ |
b813574b | 22126 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
22127 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22128 | done; \ | |
22121df0 | 22129 | echo "Doing info in libgui"; \ |
a90ef4bf | 22130 | (cd $(HOST_SUBDIR)/libgui && \ |
2a4cbe27 NN |
22131 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22132 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22133 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 22134 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 22135 | info) \ |
2a4cbe27 NN |
22136 | || exit 1 |
22137 | ||
a90ef4bf | 22138 | @endif libgui |
2a4cbe27 | 22139 | |
a90ef4bf JM |
22140 | .PHONY: maybe-dvi-libgui dvi-libgui |
22141 | maybe-dvi-libgui: | |
22142 | @if libgui | |
22143 | maybe-dvi-libgui: dvi-libgui | |
2a4cbe27 | 22144 | |
a90ef4bf JM |
22145 | dvi-libgui: \ |
22146 | configure-libgui | |
0aed8855 | 22147 | @: $(MAKE); $(unstage) |
a90ef4bf | 22148 | @[ -f ./libgui/Makefile ] || exit 0; \ |
b40e3958 L |
22149 | r=`${PWD_COMMAND}`; export r; \ |
22150 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22151 | $(HOST_EXPORTS) \ |
b813574b | 22152 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
22153 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22154 | done; \ | |
22121df0 | 22155 | echo "Doing dvi in libgui"; \ |
a90ef4bf | 22156 | (cd $(HOST_SUBDIR)/libgui && \ |
2a4cbe27 NN |
22157 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22158 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22159 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 22160 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 22161 | dvi) \ |
2a4cbe27 NN |
22162 | || exit 1 |
22163 | ||
a90ef4bf | 22164 | @endif libgui |
2a4cbe27 | 22165 | |
a90ef4bf JM |
22166 | .PHONY: maybe-pdf-libgui pdf-libgui |
22167 | maybe-pdf-libgui: | |
22168 | @if libgui | |
22169 | maybe-pdf-libgui: pdf-libgui | |
56a8fe78 | 22170 | |
a90ef4bf JM |
22171 | pdf-libgui: \ |
22172 | configure-libgui | |
56a8fe78 | 22173 | @: $(MAKE); $(unstage) |
a90ef4bf | 22174 | @[ -f ./libgui/Makefile ] || exit 0; \ |
56a8fe78 DD |
22175 | r=`${PWD_COMMAND}`; export r; \ |
22176 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
22177 | $(HOST_EXPORTS) \ | |
22178 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
22179 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
22180 | done; \ | |
22121df0 | 22181 | echo "Doing pdf in libgui"; \ |
a90ef4bf | 22182 | (cd $(HOST_SUBDIR)/libgui && \ |
56a8fe78 DD |
22183 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22184 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22185 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 22186 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
22187 | pdf) \ |
22188 | || exit 1 | |
22189 | ||
a90ef4bf | 22190 | @endif libgui |
56a8fe78 | 22191 | |
a90ef4bf JM |
22192 | .PHONY: maybe-html-libgui html-libgui |
22193 | maybe-html-libgui: | |
22194 | @if libgui | |
22195 | maybe-html-libgui: html-libgui | |
6d389afc | 22196 | |
a90ef4bf JM |
22197 | html-libgui: \ |
22198 | configure-libgui | |
0aed8855 | 22199 | @: $(MAKE); $(unstage) |
a90ef4bf | 22200 | @[ -f ./libgui/Makefile ] || exit 0; \ |
6d389afc MS |
22201 | r=`${PWD_COMMAND}`; export r; \ |
22202 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
22203 | $(HOST_EXPORTS) \ |
22204 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
22205 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
22206 | done; \ | |
22121df0 | 22207 | echo "Doing html in libgui"; \ |
a90ef4bf | 22208 | (cd $(HOST_SUBDIR)/libgui && \ |
6d389afc MS |
22209 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22210 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22211 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 22212 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
22213 | html) \ |
22214 | || exit 1 | |
22215 | ||
a90ef4bf | 22216 | @endif libgui |
6d389afc | 22217 | |
a90ef4bf JM |
22218 | .PHONY: maybe-TAGS-libgui TAGS-libgui |
22219 | maybe-TAGS-libgui: | |
22220 | @if libgui | |
22221 | maybe-TAGS-libgui: TAGS-libgui | |
2a4cbe27 | 22222 | |
a90ef4bf JM |
22223 | TAGS-libgui: \ |
22224 | configure-libgui | |
0aed8855 | 22225 | @: $(MAKE); $(unstage) |
a90ef4bf | 22226 | @[ -f ./libgui/Makefile ] || exit 0; \ |
b40e3958 L |
22227 | r=`${PWD_COMMAND}`; export r; \ |
22228 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22229 | $(HOST_EXPORTS) \ |
b813574b | 22230 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
22231 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22232 | done; \ | |
22121df0 | 22233 | echo "Doing TAGS in libgui"; \ |
a90ef4bf | 22234 | (cd $(HOST_SUBDIR)/libgui && \ |
2a4cbe27 NN |
22235 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22236 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22237 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 22238 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 22239 | TAGS) \ |
2a4cbe27 NN |
22240 | || exit 1 |
22241 | ||
a90ef4bf | 22242 | @endif libgui |
2a4cbe27 | 22243 | |
a90ef4bf JM |
22244 | .PHONY: maybe-install-info-libgui install-info-libgui |
22245 | maybe-install-info-libgui: | |
22246 | @if libgui | |
22247 | maybe-install-info-libgui: install-info-libgui | |
2a4cbe27 | 22248 | |
a90ef4bf JM |
22249 | install-info-libgui: \ |
22250 | configure-libgui \ | |
22251 | info-libgui | |
0aed8855 | 22252 | @: $(MAKE); $(unstage) |
a90ef4bf | 22253 | @[ -f ./libgui/Makefile ] || exit 0; \ |
b40e3958 L |
22254 | r=`${PWD_COMMAND}`; export r; \ |
22255 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22256 | $(HOST_EXPORTS) \ |
b813574b | 22257 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
22258 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22259 | done; \ | |
22121df0 | 22260 | echo "Doing install-info in libgui"; \ |
a90ef4bf | 22261 | (cd $(HOST_SUBDIR)/libgui && \ |
2a4cbe27 NN |
22262 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22263 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22264 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 22265 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 22266 | install-info) \ |
2a4cbe27 NN |
22267 | || exit 1 |
22268 | ||
a90ef4bf | 22269 | @endif libgui |
2a4cbe27 | 22270 | |
a90ef4bf JM |
22271 | .PHONY: maybe-install-pdf-libgui install-pdf-libgui |
22272 | maybe-install-pdf-libgui: | |
22273 | @if libgui | |
22274 | maybe-install-pdf-libgui: install-pdf-libgui | |
a3ca38d2 | 22275 | |
a90ef4bf JM |
22276 | install-pdf-libgui: \ |
22277 | configure-libgui \ | |
22278 | pdf-libgui | |
a3ca38d2 | 22279 | @: $(MAKE); $(unstage) |
a90ef4bf | 22280 | @[ -f ./libgui/Makefile ] || exit 0; \ |
a3ca38d2 DD |
22281 | r=`${PWD_COMMAND}`; export r; \ |
22282 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
22283 | $(HOST_EXPORTS) \ | |
22284 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
22285 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
22286 | done; \ | |
22121df0 | 22287 | echo "Doing install-pdf in libgui"; \ |
a90ef4bf | 22288 | (cd $(HOST_SUBDIR)/libgui && \ |
a3ca38d2 DD |
22289 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22290 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22291 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 22292 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
22293 | install-pdf) \ |
22294 | || exit 1 | |
22295 | ||
a90ef4bf | 22296 | @endif libgui |
a3ca38d2 | 22297 | |
a90ef4bf JM |
22298 | .PHONY: maybe-install-html-libgui install-html-libgui |
22299 | maybe-install-html-libgui: | |
22300 | @if libgui | |
22301 | maybe-install-html-libgui: install-html-libgui | |
108a6f8e | 22302 | |
a90ef4bf JM |
22303 | install-html-libgui: \ |
22304 | configure-libgui \ | |
22305 | html-libgui | |
108a6f8e | 22306 | @: $(MAKE); $(unstage) |
a90ef4bf | 22307 | @[ -f ./libgui/Makefile ] || exit 0; \ |
108a6f8e CD |
22308 | r=`${PWD_COMMAND}`; export r; \ |
22309 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
22310 | $(HOST_EXPORTS) \ | |
22311 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
22312 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
22313 | done; \ | |
22121df0 | 22314 | echo "Doing install-html in libgui"; \ |
a90ef4bf | 22315 | (cd $(HOST_SUBDIR)/libgui && \ |
108a6f8e CD |
22316 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22317 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22318 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 22319 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
22320 | install-html) \ |
22321 | || exit 1 | |
22322 | ||
a90ef4bf | 22323 | @endif libgui |
108a6f8e | 22324 | |
a90ef4bf JM |
22325 | .PHONY: maybe-installcheck-libgui installcheck-libgui |
22326 | maybe-installcheck-libgui: | |
22327 | @if libgui | |
22328 | maybe-installcheck-libgui: installcheck-libgui | |
2a4cbe27 | 22329 | |
a90ef4bf JM |
22330 | installcheck-libgui: \ |
22331 | configure-libgui | |
0aed8855 | 22332 | @: $(MAKE); $(unstage) |
a90ef4bf | 22333 | @[ -f ./libgui/Makefile ] || exit 0; \ |
b40e3958 L |
22334 | r=`${PWD_COMMAND}`; export r; \ |
22335 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22336 | $(HOST_EXPORTS) \ |
b813574b | 22337 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
22338 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22339 | done; \ | |
22121df0 | 22340 | echo "Doing installcheck in libgui"; \ |
a90ef4bf | 22341 | (cd $(HOST_SUBDIR)/libgui && \ |
2a4cbe27 NN |
22342 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22343 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22344 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 22345 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 22346 | installcheck) \ |
2a4cbe27 NN |
22347 | || exit 1 |
22348 | ||
a90ef4bf | 22349 | @endif libgui |
2a4cbe27 | 22350 | |
a90ef4bf JM |
22351 | .PHONY: maybe-mostlyclean-libgui mostlyclean-libgui |
22352 | maybe-mostlyclean-libgui: | |
22353 | @if libgui | |
22354 | maybe-mostlyclean-libgui: mostlyclean-libgui | |
2a4cbe27 | 22355 | |
a90ef4bf | 22356 | mostlyclean-libgui: |
0aed8855 | 22357 | @: $(MAKE); $(unstage) |
a90ef4bf | 22358 | @[ -f ./libgui/Makefile ] || exit 0; \ |
b40e3958 L |
22359 | r=`${PWD_COMMAND}`; export r; \ |
22360 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22361 | $(HOST_EXPORTS) \ |
b813574b | 22362 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
22363 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22364 | done; \ | |
22121df0 | 22365 | echo "Doing mostlyclean in libgui"; \ |
a90ef4bf | 22366 | (cd $(HOST_SUBDIR)/libgui && \ |
2a4cbe27 NN |
22367 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22368 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22369 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 22370 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 22371 | mostlyclean) \ |
2a4cbe27 NN |
22372 | || exit 1 |
22373 | ||
a90ef4bf | 22374 | @endif libgui |
2a4cbe27 | 22375 | |
a90ef4bf JM |
22376 | .PHONY: maybe-clean-libgui clean-libgui |
22377 | maybe-clean-libgui: | |
22378 | @if libgui | |
22379 | maybe-clean-libgui: clean-libgui | |
2a4cbe27 | 22380 | |
a90ef4bf | 22381 | clean-libgui: |
0aed8855 | 22382 | @: $(MAKE); $(unstage) |
a90ef4bf | 22383 | @[ -f ./libgui/Makefile ] || exit 0; \ |
b40e3958 L |
22384 | r=`${PWD_COMMAND}`; export r; \ |
22385 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22386 | $(HOST_EXPORTS) \ |
b813574b | 22387 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
22388 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22389 | done; \ | |
22121df0 | 22390 | echo "Doing clean in libgui"; \ |
a90ef4bf | 22391 | (cd $(HOST_SUBDIR)/libgui && \ |
2a4cbe27 NN |
22392 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22393 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22394 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 22395 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 22396 | clean) \ |
2a4cbe27 NN |
22397 | || exit 1 |
22398 | ||
a90ef4bf | 22399 | @endif libgui |
2a4cbe27 | 22400 | |
a90ef4bf JM |
22401 | .PHONY: maybe-distclean-libgui distclean-libgui |
22402 | maybe-distclean-libgui: | |
22403 | @if libgui | |
22404 | maybe-distclean-libgui: distclean-libgui | |
2a4cbe27 | 22405 | |
a90ef4bf | 22406 | distclean-libgui: |
0aed8855 | 22407 | @: $(MAKE); $(unstage) |
a90ef4bf | 22408 | @[ -f ./libgui/Makefile ] || exit 0; \ |
b40e3958 L |
22409 | r=`${PWD_COMMAND}`; export r; \ |
22410 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22411 | $(HOST_EXPORTS) \ |
b813574b | 22412 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
22413 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22414 | done; \ | |
22121df0 | 22415 | echo "Doing distclean in libgui"; \ |
a90ef4bf | 22416 | (cd $(HOST_SUBDIR)/libgui && \ |
2a4cbe27 NN |
22417 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22418 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22419 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 22420 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 22421 | distclean) \ |
2a4cbe27 NN |
22422 | || exit 1 |
22423 | ||
a90ef4bf | 22424 | @endif libgui |
2a4cbe27 | 22425 | |
a90ef4bf JM |
22426 | .PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui |
22427 | maybe-maintainer-clean-libgui: | |
22428 | @if libgui | |
22429 | maybe-maintainer-clean-libgui: maintainer-clean-libgui | |
2a4cbe27 | 22430 | |
a90ef4bf | 22431 | maintainer-clean-libgui: |
0aed8855 | 22432 | @: $(MAKE); $(unstage) |
a90ef4bf | 22433 | @[ -f ./libgui/Makefile ] || exit 0; \ |
b40e3958 L |
22434 | r=`${PWD_COMMAND}`; export r; \ |
22435 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22436 | $(HOST_EXPORTS) \ |
b813574b | 22437 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
22438 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22439 | done; \ | |
22121df0 | 22440 | echo "Doing maintainer-clean in libgui"; \ |
a90ef4bf | 22441 | (cd $(HOST_SUBDIR)/libgui && \ |
2a4cbe27 NN |
22442 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22443 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22444 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 22445 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 22446 | maintainer-clean) \ |
2a4cbe27 NN |
22447 | || exit 1 |
22448 | ||
a90ef4bf | 22449 | @endif libgui |
2a4cbe27 | 22450 | |
2a4cbe27 | 22451 | |
a7254363 | 22452 | |
a90ef4bf JM |
22453 | .PHONY: configure-libiberty maybe-configure-libiberty |
22454 | maybe-configure-libiberty: | |
93f9b408 | 22455 | @if gcc-bootstrap |
a90ef4bf | 22456 | configure-libiberty: stage_current |
93f9b408 | 22457 | @endif gcc-bootstrap |
a90ef4bf JM |
22458 | @if libiberty |
22459 | maybe-configure-libiberty: configure-libiberty | |
22460 | configure-libiberty: | |
93f9b408 ILT |
22461 | @r=`${PWD_COMMAND}`; export r; \ |
22462 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 22463 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
22121df0 | 22464 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \ |
1f53ca9a | 22465 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
22466 | echo Configuring in $(HOST_SUBDIR)/libiberty; \ |
22467 | cd "$(HOST_SUBDIR)/libiberty" || exit 1; \ | |
93f9b408 ILT |
22468 | case $(srcdir) in \ |
22469 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 22470 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ |
93f9b408 ILT |
22471 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
22472 | esac; \ | |
1b6c0831 L |
22473 | module_srcdir=libiberty; \ |
22474 | $(SHELL) \ | |
22475 | $$s/$$module_srcdir/configure \ | |
22476 | --srcdir=$${topdir}/$$module_srcdir \ | |
93f9b408 | 22477 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 22478 | --target=${target_alias} @extra_host_libiberty_configure_flags@ \ |
93f9b408 | 22479 | || exit 1 |
a90ef4bf | 22480 | @endif libiberty |
93f9b408 ILT |
22481 | |
22482 | ||
22483 | ||
a90ef4bf JM |
22484 | .PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty |
22485 | maybe-configure-stage1-libiberty: | |
22486 | @if libiberty-bootstrap | |
22487 | maybe-configure-stage1-libiberty: configure-stage1-libiberty | |
22488 | configure-stage1-libiberty: | |
93f9b408 | 22489 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
a90ef4bf | 22490 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty |
93f9b408 ILT |
22491 | @r=`${PWD_COMMAND}`; export r; \ |
22492 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 22493 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
a90ef4bf | 22494 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
1b05fbbd | 22495 | $(HOST_EXPORTS) \ |
93f9b408 | 22496 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
22497 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ |
22498 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
22499 | echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty; \ |
22500 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \ | |
a90ef4bf | 22501 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
93f9b408 ILT |
22502 | case $(srcdir) in \ |
22503 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 22504 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ |
93f9b408 ILT |
22505 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
22506 | esac; \ | |
1b6c0831 L |
22507 | module_srcdir=libiberty; \ |
22508 | $(SHELL) $$s/$$module_srcdir/configure \ | |
22509 | --srcdir=$${topdir}/$$module_srcdir \ | |
93f9b408 | 22510 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
22511 | --target=${target_alias} \ |
22512 | \ | |
a90ef4bf JM |
22513 | $(STAGE1_CONFIGURE_FLAGS) \ |
22514 | @extra_host_libiberty_configure_flags@ | |
22515 | @endif libiberty-bootstrap | |
93f9b408 | 22516 | |
a90ef4bf JM |
22517 | .PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty |
22518 | maybe-configure-stage2-libiberty: | |
22519 | @if libiberty-bootstrap | |
22520 | maybe-configure-stage2-libiberty: configure-stage2-libiberty | |
22521 | configure-stage2-libiberty: | |
93f9b408 | 22522 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
a90ef4bf | 22523 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty |
93f9b408 ILT |
22524 | @r=`${PWD_COMMAND}`; export r; \ |
22525 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 22526 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
a90ef4bf | 22527 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
93f9b408 | 22528 | $(HOST_EXPORTS) \ |
1b05fbbd | 22529 | $(POSTSTAGE1_HOST_EXPORTS) \ |
93f9b408 | 22530 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
22531 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ |
22532 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
22533 | echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty; \ |
22534 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \ | |
a90ef4bf | 22535 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
93f9b408 ILT |
22536 | case $(srcdir) in \ |
22537 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 22538 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ |
93f9b408 ILT |
22539 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
22540 | esac; \ | |
1b6c0831 L |
22541 | module_srcdir=libiberty; \ |
22542 | $(SHELL) $$s/$$module_srcdir/configure \ | |
22543 | --srcdir=$${topdir}/$$module_srcdir \ | |
93f9b408 | 22544 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 22545 | --target=${target_alias} \ |
22121df0 | 22546 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
22547 | $(STAGE2_CONFIGURE_FLAGS) \ |
22548 | @extra_host_libiberty_configure_flags@ | |
22549 | @endif libiberty-bootstrap | |
93f9b408 | 22550 | |
a90ef4bf JM |
22551 | .PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty |
22552 | maybe-configure-stage3-libiberty: | |
22553 | @if libiberty-bootstrap | |
22554 | maybe-configure-stage3-libiberty: configure-stage3-libiberty | |
22555 | configure-stage3-libiberty: | |
93f9b408 | 22556 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
a90ef4bf | 22557 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty |
93f9b408 ILT |
22558 | @r=`${PWD_COMMAND}`; export r; \ |
22559 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 22560 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
a90ef4bf | 22561 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
93f9b408 | 22562 | $(HOST_EXPORTS) \ |
1b05fbbd | 22563 | $(POSTSTAGE1_HOST_EXPORTS) \ |
93f9b408 | 22564 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
22565 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ |
22566 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
22567 | echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty; \ |
22568 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \ | |
a90ef4bf | 22569 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
93f9b408 ILT |
22570 | case $(srcdir) in \ |
22571 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 22572 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ |
93f9b408 ILT |
22573 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
22574 | esac; \ | |
1b6c0831 L |
22575 | module_srcdir=libiberty; \ |
22576 | $(SHELL) $$s/$$module_srcdir/configure \ | |
22577 | --srcdir=$${topdir}/$$module_srcdir \ | |
93f9b408 | 22578 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 22579 | --target=${target_alias} \ |
22121df0 | 22580 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
22581 | $(STAGE3_CONFIGURE_FLAGS) \ |
22582 | @extra_host_libiberty_configure_flags@ | |
22583 | @endif libiberty-bootstrap | |
93f9b408 | 22584 | |
a90ef4bf JM |
22585 | .PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty |
22586 | maybe-configure-stage4-libiberty: | |
22587 | @if libiberty-bootstrap | |
22588 | maybe-configure-stage4-libiberty: configure-stage4-libiberty | |
22589 | configure-stage4-libiberty: | |
93f9b408 | 22590 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
a90ef4bf | 22591 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty |
93f9b408 ILT |
22592 | @r=`${PWD_COMMAND}`; export r; \ |
22593 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 22594 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
a90ef4bf | 22595 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
93f9b408 | 22596 | $(HOST_EXPORTS) \ |
1b05fbbd | 22597 | $(POSTSTAGE1_HOST_EXPORTS) \ |
93f9b408 | 22598 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
22599 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ |
22600 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
22601 | echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty; \ |
22602 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \ | |
a90ef4bf | 22603 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
93f9b408 ILT |
22604 | case $(srcdir) in \ |
22605 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 22606 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ |
93f9b408 ILT |
22607 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
22608 | esac; \ | |
1b6c0831 L |
22609 | module_srcdir=libiberty; \ |
22610 | $(SHELL) $$s/$$module_srcdir/configure \ | |
22611 | --srcdir=$${topdir}/$$module_srcdir \ | |
93f9b408 | 22612 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 22613 | --target=${target_alias} \ |
22121df0 | 22614 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
22615 | $(STAGE4_CONFIGURE_FLAGS) \ |
22616 | @extra_host_libiberty_configure_flags@ | |
22617 | @endif libiberty-bootstrap | |
93f9b408 | 22618 | |
a90ef4bf JM |
22619 | .PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty |
22620 | maybe-configure-stageprofile-libiberty: | |
22621 | @if libiberty-bootstrap | |
22622 | maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty | |
22623 | configure-stageprofile-libiberty: | |
93f9b408 | 22624 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
a90ef4bf | 22625 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty |
93f9b408 ILT |
22626 | @r=`${PWD_COMMAND}`; export r; \ |
22627 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 22628 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
a90ef4bf | 22629 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
93f9b408 | 22630 | $(HOST_EXPORTS) \ |
1b05fbbd AO |
22631 | $(POSTSTAGE1_HOST_EXPORTS) \ |
22632 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
1f53ca9a AO |
22633 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ |
22634 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
22635 | echo Configuring stage profile in $(HOST_SUBDIR)/libiberty; \ |
22636 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \ | |
a90ef4bf | 22637 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
93f9b408 ILT |
22638 | case $(srcdir) in \ |
22639 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 22640 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ |
93f9b408 ILT |
22641 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
22642 | esac; \ | |
1b6c0831 L |
22643 | module_srcdir=libiberty; \ |
22644 | $(SHELL) $$s/$$module_srcdir/configure \ | |
22645 | --srcdir=$${topdir}/$$module_srcdir \ | |
93f9b408 | 22646 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 22647 | --target=${target_alias} \ |
22121df0 | 22648 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
22649 | $(STAGEprofile_CONFIGURE_FLAGS) \ |
22650 | @extra_host_libiberty_configure_flags@ | |
22651 | @endif libiberty-bootstrap | |
93f9b408 | 22652 | |
a90ef4bf JM |
22653 | .PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty |
22654 | maybe-configure-stagefeedback-libiberty: | |
22655 | @if libiberty-bootstrap | |
22656 | maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty | |
22657 | configure-stagefeedback-libiberty: | |
93f9b408 | 22658 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
a90ef4bf | 22659 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty |
93f9b408 ILT |
22660 | @r=`${PWD_COMMAND}`; export r; \ |
22661 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 22662 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
a90ef4bf | 22663 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
93f9b408 | 22664 | $(HOST_EXPORTS) \ |
1b05fbbd AO |
22665 | $(POSTSTAGE1_HOST_EXPORTS) \ |
22666 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
1f53ca9a AO |
22667 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ |
22668 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
22669 | echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty; \ |
22670 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \ | |
a90ef4bf | 22671 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
93f9b408 ILT |
22672 | case $(srcdir) in \ |
22673 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 22674 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ |
93f9b408 ILT |
22675 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
22676 | esac; \ | |
1b6c0831 L |
22677 | module_srcdir=libiberty; \ |
22678 | $(SHELL) $$s/$$module_srcdir/configure \ | |
22679 | --srcdir=$${topdir}/$$module_srcdir \ | |
93f9b408 | 22680 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 22681 | --target=${target_alias} \ |
22121df0 | 22682 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
22683 | $(STAGEfeedback_CONFIGURE_FLAGS) \ |
22684 | @extra_host_libiberty_configure_flags@ | |
22685 | @endif libiberty-bootstrap | |
93f9b408 ILT |
22686 | |
22687 | ||
22688 | ||
22689 | ||
22690 | ||
a90ef4bf JM |
22691 | .PHONY: all-libiberty maybe-all-libiberty |
22692 | maybe-all-libiberty: | |
93f9b408 | 22693 | @if gcc-bootstrap |
a90ef4bf | 22694 | all-libiberty: stage_current |
93f9b408 | 22695 | @endif gcc-bootstrap |
a90ef4bf JM |
22696 | @if libiberty |
22697 | TARGET-libiberty=all | |
22698 | maybe-all-libiberty: all-libiberty | |
22699 | all-libiberty: configure-libiberty | |
93f9b408 ILT |
22700 | @r=`${PWD_COMMAND}`; export r; \ |
22701 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 22702 | $(HOST_EXPORTS) \ |
a90ef4bf | 22703 | (cd $(HOST_SUBDIR)/libiberty && \ |
b3676d82 | 22704 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
22705 | $(TARGET-libiberty)) |
22706 | @endif libiberty | |
93f9b408 ILT |
22707 | |
22708 | ||
22709 | ||
a90ef4bf JM |
22710 | .PHONY: all-stage1-libiberty maybe-all-stage1-libiberty |
22711 | .PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty | |
22712 | maybe-all-stage1-libiberty: | |
22713 | maybe-clean-stage1-libiberty: | |
22714 | @if libiberty-bootstrap | |
22715 | maybe-all-stage1-libiberty: all-stage1-libiberty | |
22716 | all-stage1: all-stage1-libiberty | |
22717 | TARGET-stage1-libiberty = $(TARGET-libiberty) | |
22718 | all-stage1-libiberty: configure-stage1-libiberty | |
93f9b408 ILT |
22719 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
22720 | @r=`${PWD_COMMAND}`; export r; \ | |
22721 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 22722 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
1f53ca9a | 22723 | $(HOST_EXPORTS) \ |
a90ef4bf | 22724 | cd $(HOST_SUBDIR)/libiberty && \ |
05a13254 | 22725 | \ |
93f9b408 | 22726 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 22727 | CFLAGS="$(STAGE1_CFLAGS)" \ |
1f53ca9a | 22728 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ |
1b05fbbd AO |
22729 | LIBCFLAGS="$(LIBCFLAGS)" \ |
22730 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
22731 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
22732 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
22733 | $(EXTRA_HOST_FLAGS) \ |
22734 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 22735 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 22736 | $(TARGET-stage1-libiberty) |
93f9b408 | 22737 | |
a90ef4bf JM |
22738 | maybe-clean-stage1-libiberty: clean-stage1-libiberty |
22739 | clean-stage1: clean-stage1-libiberty | |
22740 | clean-stage1-libiberty: | |
93f9b408 | 22741 | @if [ $(current_stage) = stage1 ]; then \ |
a90ef4bf | 22742 | [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \ |
93f9b408 | 22743 | else \ |
a90ef4bf | 22744 | [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \ |
93f9b408 ILT |
22745 | $(MAKE) stage1-start; \ |
22746 | fi; \ | |
a90ef4bf | 22747 | cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 | 22748 | $(MAKE) $(EXTRA_HOST_FLAGS) \ |
b3676d82 | 22749 | $(STAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 22750 | @endif libiberty-bootstrap |
93f9b408 ILT |
22751 | |
22752 | ||
a90ef4bf JM |
22753 | .PHONY: all-stage2-libiberty maybe-all-stage2-libiberty |
22754 | .PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty | |
22755 | maybe-all-stage2-libiberty: | |
22756 | maybe-clean-stage2-libiberty: | |
22757 | @if libiberty-bootstrap | |
22758 | maybe-all-stage2-libiberty: all-stage2-libiberty | |
22759 | all-stage2: all-stage2-libiberty | |
22760 | TARGET-stage2-libiberty = $(TARGET-libiberty) | |
22761 | all-stage2-libiberty: configure-stage2-libiberty | |
93f9b408 ILT |
22762 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
22763 | @r=`${PWD_COMMAND}`; export r; \ | |
22764 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 22765 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
93f9b408 | 22766 | $(HOST_EXPORTS) \ |
1f53ca9a | 22767 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 22768 | cd $(HOST_SUBDIR)/libiberty && \ |
05a13254 | 22769 | \ |
93f9b408 | 22770 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 22771 | CFLAGS="$(STAGE2_CFLAGS)" \ |
1f53ca9a | 22772 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ |
1b05fbbd AO |
22773 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ |
22774 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
22775 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
22776 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
22777 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 22778 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 22779 | $(TARGET-stage2-libiberty) |
93f9b408 | 22780 | |
a90ef4bf JM |
22781 | maybe-clean-stage2-libiberty: clean-stage2-libiberty |
22782 | clean-stage2: clean-stage2-libiberty | |
22783 | clean-stage2-libiberty: | |
93f9b408 | 22784 | @if [ $(current_stage) = stage2 ]; then \ |
a90ef4bf | 22785 | [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \ |
93f9b408 | 22786 | else \ |
a90ef4bf | 22787 | [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \ |
93f9b408 ILT |
22788 | $(MAKE) stage2-start; \ |
22789 | fi; \ | |
a90ef4bf | 22790 | cd $(HOST_SUBDIR)/libiberty && \ |
b3676d82 | 22791 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 22792 | @endif libiberty-bootstrap |
93f9b408 ILT |
22793 | |
22794 | ||
a90ef4bf JM |
22795 | .PHONY: all-stage3-libiberty maybe-all-stage3-libiberty |
22796 | .PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty | |
22797 | maybe-all-stage3-libiberty: | |
22798 | maybe-clean-stage3-libiberty: | |
22799 | @if libiberty-bootstrap | |
22800 | maybe-all-stage3-libiberty: all-stage3-libiberty | |
22801 | all-stage3: all-stage3-libiberty | |
22802 | TARGET-stage3-libiberty = $(TARGET-libiberty) | |
22803 | all-stage3-libiberty: configure-stage3-libiberty | |
93f9b408 ILT |
22804 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
22805 | @r=`${PWD_COMMAND}`; export r; \ | |
22806 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 22807 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
93f9b408 | 22808 | $(HOST_EXPORTS) \ |
1f53ca9a | 22809 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 22810 | cd $(HOST_SUBDIR)/libiberty && \ |
05a13254 | 22811 | \ |
93f9b408 | 22812 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 22813 | CFLAGS="$(STAGE3_CFLAGS)" \ |
1f53ca9a | 22814 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ |
1b05fbbd AO |
22815 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ |
22816 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
22817 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
22818 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
22819 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 22820 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 22821 | $(TARGET-stage3-libiberty) |
93f9b408 | 22822 | |
a90ef4bf JM |
22823 | maybe-clean-stage3-libiberty: clean-stage3-libiberty |
22824 | clean-stage3: clean-stage3-libiberty | |
22825 | clean-stage3-libiberty: | |
93f9b408 | 22826 | @if [ $(current_stage) = stage3 ]; then \ |
a90ef4bf | 22827 | [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \ |
93f9b408 | 22828 | else \ |
a90ef4bf | 22829 | [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \ |
93f9b408 ILT |
22830 | $(MAKE) stage3-start; \ |
22831 | fi; \ | |
a90ef4bf | 22832 | cd $(HOST_SUBDIR)/libiberty && \ |
b3676d82 | 22833 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 22834 | @endif libiberty-bootstrap |
93f9b408 ILT |
22835 | |
22836 | ||
a90ef4bf JM |
22837 | .PHONY: all-stage4-libiberty maybe-all-stage4-libiberty |
22838 | .PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty | |
22839 | maybe-all-stage4-libiberty: | |
22840 | maybe-clean-stage4-libiberty: | |
22841 | @if libiberty-bootstrap | |
22842 | maybe-all-stage4-libiberty: all-stage4-libiberty | |
22843 | all-stage4: all-stage4-libiberty | |
22844 | TARGET-stage4-libiberty = $(TARGET-libiberty) | |
22845 | all-stage4-libiberty: configure-stage4-libiberty | |
93f9b408 ILT |
22846 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
22847 | @r=`${PWD_COMMAND}`; export r; \ | |
22848 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 22849 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
93f9b408 | 22850 | $(HOST_EXPORTS) \ |
1f53ca9a | 22851 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 22852 | cd $(HOST_SUBDIR)/libiberty && \ |
05a13254 | 22853 | \ |
93f9b408 | 22854 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 22855 | CFLAGS="$(STAGE4_CFLAGS)" \ |
1f53ca9a | 22856 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ |
93f9b408 | 22857 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ |
1b05fbbd AO |
22858 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ |
22859 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
22860 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
22861 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 22862 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 22863 | $(TARGET-stage4-libiberty) |
93f9b408 | 22864 | |
a90ef4bf JM |
22865 | maybe-clean-stage4-libiberty: clean-stage4-libiberty |
22866 | clean-stage4: clean-stage4-libiberty | |
22867 | clean-stage4-libiberty: | |
93f9b408 | 22868 | @if [ $(current_stage) = stage4 ]; then \ |
a90ef4bf | 22869 | [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \ |
93f9b408 | 22870 | else \ |
a90ef4bf | 22871 | [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \ |
93f9b408 ILT |
22872 | $(MAKE) stage4-start; \ |
22873 | fi; \ | |
a90ef4bf | 22874 | cd $(HOST_SUBDIR)/libiberty && \ |
b3676d82 | 22875 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 22876 | @endif libiberty-bootstrap |
93f9b408 ILT |
22877 | |
22878 | ||
a90ef4bf JM |
22879 | .PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty |
22880 | .PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty | |
22881 | maybe-all-stageprofile-libiberty: | |
22882 | maybe-clean-stageprofile-libiberty: | |
22883 | @if libiberty-bootstrap | |
22884 | maybe-all-stageprofile-libiberty: all-stageprofile-libiberty | |
22885 | all-stageprofile: all-stageprofile-libiberty | |
22886 | TARGET-stageprofile-libiberty = $(TARGET-libiberty) | |
22887 | all-stageprofile-libiberty: configure-stageprofile-libiberty | |
93f9b408 ILT |
22888 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
22889 | @r=`${PWD_COMMAND}`; export r; \ | |
22890 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 22891 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
93f9b408 | 22892 | $(HOST_EXPORTS) \ |
1f53ca9a | 22893 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 22894 | cd $(HOST_SUBDIR)/libiberty && \ |
05a13254 | 22895 | \ |
93f9b408 | 22896 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 22897 | CFLAGS="$(STAGEprofile_CFLAGS)" \ |
1f53ca9a | 22898 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ |
1b05fbbd AO |
22899 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ |
22900 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
22901 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
22902 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
22903 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 22904 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf | 22905 | $(TARGET-stageprofile-libiberty) |
93f9b408 | 22906 | |
a90ef4bf JM |
22907 | maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty |
22908 | clean-stageprofile: clean-stageprofile-libiberty | |
22909 | clean-stageprofile-libiberty: | |
93f9b408 | 22910 | @if [ $(current_stage) = stageprofile ]; then \ |
a90ef4bf | 22911 | [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \ |
93f9b408 | 22912 | else \ |
a90ef4bf | 22913 | [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \ |
93f9b408 ILT |
22914 | $(MAKE) stageprofile-start; \ |
22915 | fi; \ | |
a90ef4bf | 22916 | cd $(HOST_SUBDIR)/libiberty && \ |
b3676d82 | 22917 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 22918 | @endif libiberty-bootstrap |
93f9b408 ILT |
22919 | |
22920 | ||
a90ef4bf JM |
22921 | .PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty |
22922 | .PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty | |
22923 | maybe-all-stagefeedback-libiberty: | |
22924 | maybe-clean-stagefeedback-libiberty: | |
22925 | @if libiberty-bootstrap | |
22926 | maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty | |
22927 | all-stagefeedback: all-stagefeedback-libiberty | |
22928 | TARGET-stagefeedback-libiberty = $(TARGET-libiberty) | |
22929 | all-stagefeedback-libiberty: configure-stagefeedback-libiberty | |
93f9b408 ILT |
22930 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
22931 | @r=`${PWD_COMMAND}`; export r; \ | |
22932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 22933 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
93f9b408 | 22934 | $(HOST_EXPORTS) \ |
1f53ca9a | 22935 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 22936 | cd $(HOST_SUBDIR)/libiberty && \ |
05a13254 | 22937 | \ |
93f9b408 | 22938 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 22939 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ |
1f53ca9a | 22940 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ |
1b05fbbd AO |
22941 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ |
22942 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
22943 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
22944 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
22945 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 22946 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf | 22947 | $(TARGET-stagefeedback-libiberty) |
93f9b408 | 22948 | |
a90ef4bf JM |
22949 | maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty |
22950 | clean-stagefeedback: clean-stagefeedback-libiberty | |
22951 | clean-stagefeedback-libiberty: | |
93f9b408 | 22952 | @if [ $(current_stage) = stagefeedback ]; then \ |
a90ef4bf | 22953 | [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \ |
93f9b408 | 22954 | else \ |
a90ef4bf | 22955 | [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \ |
93f9b408 ILT |
22956 | $(MAKE) stagefeedback-start; \ |
22957 | fi; \ | |
a90ef4bf | 22958 | cd $(HOST_SUBDIR)/libiberty && \ |
b3676d82 | 22959 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 22960 | @endif libiberty-bootstrap |
93f9b408 ILT |
22961 | |
22962 | ||
22963 | ||
22964 | ||
22965 | ||
a90ef4bf JM |
22966 | .PHONY: check-libiberty maybe-check-libiberty |
22967 | maybe-check-libiberty: | |
22968 | @if libiberty | |
22969 | maybe-check-libiberty: check-libiberty | |
93f9b408 | 22970 | |
a90ef4bf | 22971 | check-libiberty: |
93f9b408 ILT |
22972 | @: $(MAKE); $(unstage) |
22973 | @r=`${PWD_COMMAND}`; export r; \ | |
22974 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 22975 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 22976 | (cd $(HOST_SUBDIR)/libiberty && \ |
f91ca6bc | 22977 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
93f9b408 | 22978 | |
a90ef4bf | 22979 | @endif libiberty |
93f9b408 | 22980 | |
a90ef4bf JM |
22981 | .PHONY: install-libiberty maybe-install-libiberty |
22982 | maybe-install-libiberty: | |
22983 | @if libiberty | |
22984 | maybe-install-libiberty: install-libiberty | |
93f9b408 | 22985 | |
a90ef4bf | 22986 | install-libiberty: installdirs |
93f9b408 ILT |
22987 | @: $(MAKE); $(unstage) |
22988 | @r=`${PWD_COMMAND}`; export r; \ | |
22989 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
22990 | $(HOST_EXPORTS) \ | |
a90ef4bf | 22991 | (cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 ILT |
22992 | $(MAKE) $(FLAGS_TO_PASS) install) |
22993 | ||
a90ef4bf | 22994 | @endif libiberty |
93f9b408 | 22995 | |
a90ef4bf JM |
22996 | .PHONY: install-strip-libiberty maybe-install-strip-libiberty |
22997 | maybe-install-strip-libiberty: | |
22998 | @if libiberty | |
22999 | maybe-install-strip-libiberty: install-strip-libiberty | |
9b980aa1 | 23000 | |
a90ef4bf | 23001 | install-strip-libiberty: installdirs |
9b980aa1 RW |
23002 | @: $(MAKE); $(unstage) |
23003 | @r=`${PWD_COMMAND}`; export r; \ | |
23004 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23005 | $(HOST_EXPORTS) \ | |
a90ef4bf | 23006 | (cd $(HOST_SUBDIR)/libiberty && \ |
9b980aa1 RW |
23007 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
23008 | ||
a90ef4bf | 23009 | @endif libiberty |
9b980aa1 | 23010 | |
93f9b408 ILT |
23011 | # Other targets (info, dvi, pdf, etc.) |
23012 | ||
a90ef4bf JM |
23013 | .PHONY: maybe-info-libiberty info-libiberty |
23014 | maybe-info-libiberty: | |
23015 | @if libiberty | |
23016 | maybe-info-libiberty: info-libiberty | |
93f9b408 | 23017 | |
a90ef4bf JM |
23018 | info-libiberty: \ |
23019 | configure-libiberty | |
23020 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
93f9b408 ILT |
23021 | r=`${PWD_COMMAND}`; export r; \ |
23022 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23023 | $(HOST_EXPORTS) \ | |
23024 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23025 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23026 | done; \ | |
22121df0 | 23027 | echo "Doing info in libiberty"; \ |
a90ef4bf | 23028 | (cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 ILT |
23029 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23030 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23031 | "RANLIB=$${RANLIB}" \ | |
23032 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23033 | info) \ | |
23034 | || exit 1 | |
23035 | ||
a90ef4bf | 23036 | @endif libiberty |
93f9b408 | 23037 | |
a90ef4bf JM |
23038 | .PHONY: maybe-dvi-libiberty dvi-libiberty |
23039 | maybe-dvi-libiberty: | |
23040 | @if libiberty | |
23041 | maybe-dvi-libiberty: dvi-libiberty | |
93f9b408 | 23042 | |
a90ef4bf JM |
23043 | dvi-libiberty: \ |
23044 | configure-libiberty | |
23045 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
93f9b408 ILT |
23046 | r=`${PWD_COMMAND}`; export r; \ |
23047 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23048 | $(HOST_EXPORTS) \ | |
23049 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23050 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23051 | done; \ | |
22121df0 | 23052 | echo "Doing dvi in libiberty"; \ |
a90ef4bf | 23053 | (cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 ILT |
23054 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23055 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23056 | "RANLIB=$${RANLIB}" \ | |
23057 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23058 | dvi) \ | |
23059 | || exit 1 | |
23060 | ||
a90ef4bf | 23061 | @endif libiberty |
93f9b408 | 23062 | |
a90ef4bf JM |
23063 | .PHONY: maybe-pdf-libiberty pdf-libiberty |
23064 | maybe-pdf-libiberty: | |
23065 | @if libiberty | |
23066 | maybe-pdf-libiberty: pdf-libiberty | |
93f9b408 | 23067 | |
a90ef4bf JM |
23068 | pdf-libiberty: \ |
23069 | configure-libiberty | |
23070 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
93f9b408 ILT |
23071 | r=`${PWD_COMMAND}`; export r; \ |
23072 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23073 | $(HOST_EXPORTS) \ | |
23074 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23075 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23076 | done; \ | |
22121df0 | 23077 | echo "Doing pdf in libiberty"; \ |
a90ef4bf | 23078 | (cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 ILT |
23079 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23080 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23081 | "RANLIB=$${RANLIB}" \ | |
23082 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23083 | pdf) \ | |
23084 | || exit 1 | |
23085 | ||
a90ef4bf | 23086 | @endif libiberty |
93f9b408 | 23087 | |
a90ef4bf JM |
23088 | .PHONY: maybe-html-libiberty html-libiberty |
23089 | maybe-html-libiberty: | |
23090 | @if libiberty | |
23091 | maybe-html-libiberty: html-libiberty | |
93f9b408 | 23092 | |
a90ef4bf JM |
23093 | html-libiberty: \ |
23094 | configure-libiberty | |
23095 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
93f9b408 ILT |
23096 | r=`${PWD_COMMAND}`; export r; \ |
23097 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23098 | $(HOST_EXPORTS) \ | |
23099 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23100 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23101 | done; \ | |
22121df0 | 23102 | echo "Doing html in libiberty"; \ |
a90ef4bf | 23103 | (cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 ILT |
23104 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23105 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23106 | "RANLIB=$${RANLIB}" \ | |
23107 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23108 | html) \ | |
23109 | || exit 1 | |
23110 | ||
a90ef4bf | 23111 | @endif libiberty |
93f9b408 | 23112 | |
a90ef4bf JM |
23113 | .PHONY: maybe-TAGS-libiberty TAGS-libiberty |
23114 | maybe-TAGS-libiberty: | |
23115 | @if libiberty | |
23116 | maybe-TAGS-libiberty: TAGS-libiberty | |
93f9b408 | 23117 | |
a90ef4bf JM |
23118 | TAGS-libiberty: \ |
23119 | configure-libiberty | |
23120 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
93f9b408 ILT |
23121 | r=`${PWD_COMMAND}`; export r; \ |
23122 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23123 | $(HOST_EXPORTS) \ | |
23124 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23125 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23126 | done; \ | |
22121df0 | 23127 | echo "Doing TAGS in libiberty"; \ |
a90ef4bf | 23128 | (cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 ILT |
23129 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23130 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23131 | "RANLIB=$${RANLIB}" \ | |
23132 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23133 | TAGS) \ | |
23134 | || exit 1 | |
23135 | ||
a90ef4bf | 23136 | @endif libiberty |
93f9b408 | 23137 | |
a90ef4bf JM |
23138 | .PHONY: maybe-install-info-libiberty install-info-libiberty |
23139 | maybe-install-info-libiberty: | |
23140 | @if libiberty | |
23141 | maybe-install-info-libiberty: install-info-libiberty | |
93f9b408 | 23142 | |
a90ef4bf JM |
23143 | install-info-libiberty: \ |
23144 | configure-libiberty \ | |
23145 | info-libiberty | |
23146 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
93f9b408 ILT |
23147 | r=`${PWD_COMMAND}`; export r; \ |
23148 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23149 | $(HOST_EXPORTS) \ | |
23150 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23151 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23152 | done; \ | |
22121df0 | 23153 | echo "Doing install-info in libiberty"; \ |
a90ef4bf | 23154 | (cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 ILT |
23155 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23156 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23157 | "RANLIB=$${RANLIB}" \ | |
23158 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23159 | install-info) \ | |
23160 | || exit 1 | |
23161 | ||
a90ef4bf | 23162 | @endif libiberty |
93f9b408 | 23163 | |
a90ef4bf JM |
23164 | .PHONY: maybe-install-pdf-libiberty install-pdf-libiberty |
23165 | maybe-install-pdf-libiberty: | |
23166 | @if libiberty | |
23167 | maybe-install-pdf-libiberty: install-pdf-libiberty | |
93f9b408 | 23168 | |
a90ef4bf JM |
23169 | install-pdf-libiberty: \ |
23170 | configure-libiberty \ | |
23171 | pdf-libiberty | |
23172 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
93f9b408 ILT |
23173 | r=`${PWD_COMMAND}`; export r; \ |
23174 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23175 | $(HOST_EXPORTS) \ | |
23176 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23177 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23178 | done; \ | |
22121df0 | 23179 | echo "Doing install-pdf in libiberty"; \ |
a90ef4bf | 23180 | (cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 ILT |
23181 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23182 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23183 | "RANLIB=$${RANLIB}" \ | |
23184 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23185 | install-pdf) \ | |
23186 | || exit 1 | |
23187 | ||
a90ef4bf | 23188 | @endif libiberty |
93f9b408 | 23189 | |
a90ef4bf JM |
23190 | .PHONY: maybe-install-html-libiberty install-html-libiberty |
23191 | maybe-install-html-libiberty: | |
23192 | @if libiberty | |
23193 | maybe-install-html-libiberty: install-html-libiberty | |
93f9b408 | 23194 | |
a90ef4bf JM |
23195 | install-html-libiberty: \ |
23196 | configure-libiberty \ | |
23197 | html-libiberty | |
23198 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
93f9b408 ILT |
23199 | r=`${PWD_COMMAND}`; export r; \ |
23200 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23201 | $(HOST_EXPORTS) \ | |
23202 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23203 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23204 | done; \ | |
22121df0 | 23205 | echo "Doing install-html in libiberty"; \ |
a90ef4bf | 23206 | (cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 ILT |
23207 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23208 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23209 | "RANLIB=$${RANLIB}" \ | |
23210 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23211 | install-html) \ | |
23212 | || exit 1 | |
23213 | ||
a90ef4bf | 23214 | @endif libiberty |
93f9b408 | 23215 | |
a90ef4bf JM |
23216 | .PHONY: maybe-installcheck-libiberty installcheck-libiberty |
23217 | maybe-installcheck-libiberty: | |
23218 | @if libiberty | |
23219 | maybe-installcheck-libiberty: installcheck-libiberty | |
93f9b408 | 23220 | |
a90ef4bf JM |
23221 | installcheck-libiberty: \ |
23222 | configure-libiberty | |
23223 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
93f9b408 ILT |
23224 | r=`${PWD_COMMAND}`; export r; \ |
23225 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23226 | $(HOST_EXPORTS) \ | |
23227 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23228 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23229 | done; \ | |
22121df0 | 23230 | echo "Doing installcheck in libiberty"; \ |
a90ef4bf | 23231 | (cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 ILT |
23232 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23233 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23234 | "RANLIB=$${RANLIB}" \ | |
23235 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23236 | installcheck) \ | |
23237 | || exit 1 | |
23238 | ||
a90ef4bf | 23239 | @endif libiberty |
93f9b408 | 23240 | |
a90ef4bf JM |
23241 | .PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty |
23242 | maybe-mostlyclean-libiberty: | |
23243 | @if libiberty | |
23244 | maybe-mostlyclean-libiberty: mostlyclean-libiberty | |
93f9b408 | 23245 | |
a90ef4bf JM |
23246 | mostlyclean-libiberty: |
23247 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
93f9b408 ILT |
23248 | r=`${PWD_COMMAND}`; export r; \ |
23249 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23250 | $(HOST_EXPORTS) \ | |
23251 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23252 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23253 | done; \ | |
22121df0 | 23254 | echo "Doing mostlyclean in libiberty"; \ |
a90ef4bf | 23255 | (cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 ILT |
23256 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23257 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23258 | "RANLIB=$${RANLIB}" \ | |
23259 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23260 | mostlyclean) \ | |
23261 | || exit 1 | |
23262 | ||
a90ef4bf | 23263 | @endif libiberty |
93f9b408 | 23264 | |
a90ef4bf JM |
23265 | .PHONY: maybe-clean-libiberty clean-libiberty |
23266 | maybe-clean-libiberty: | |
23267 | @if libiberty | |
23268 | maybe-clean-libiberty: clean-libiberty | |
93f9b408 | 23269 | |
a90ef4bf JM |
23270 | clean-libiberty: |
23271 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
93f9b408 ILT |
23272 | r=`${PWD_COMMAND}`; export r; \ |
23273 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23274 | $(HOST_EXPORTS) \ | |
23275 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23276 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23277 | done; \ | |
22121df0 | 23278 | echo "Doing clean in libiberty"; \ |
a90ef4bf | 23279 | (cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 ILT |
23280 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23281 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23282 | "RANLIB=$${RANLIB}" \ | |
23283 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23284 | clean) \ | |
23285 | || exit 1 | |
23286 | ||
a90ef4bf | 23287 | @endif libiberty |
93f9b408 | 23288 | |
a90ef4bf JM |
23289 | .PHONY: maybe-distclean-libiberty distclean-libiberty |
23290 | maybe-distclean-libiberty: | |
23291 | @if libiberty | |
23292 | maybe-distclean-libiberty: distclean-libiberty | |
93f9b408 | 23293 | |
a90ef4bf JM |
23294 | distclean-libiberty: |
23295 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
93f9b408 ILT |
23296 | r=`${PWD_COMMAND}`; export r; \ |
23297 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23298 | $(HOST_EXPORTS) \ | |
23299 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23300 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23301 | done; \ | |
22121df0 | 23302 | echo "Doing distclean in libiberty"; \ |
a90ef4bf | 23303 | (cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 ILT |
23304 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23305 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23306 | "RANLIB=$${RANLIB}" \ | |
23307 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23308 | distclean) \ | |
23309 | || exit 1 | |
23310 | ||
a90ef4bf | 23311 | @endif libiberty |
93f9b408 | 23312 | |
a90ef4bf JM |
23313 | .PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty |
23314 | maybe-maintainer-clean-libiberty: | |
23315 | @if libiberty | |
23316 | maybe-maintainer-clean-libiberty: maintainer-clean-libiberty | |
93f9b408 | 23317 | |
a90ef4bf JM |
23318 | maintainer-clean-libiberty: |
23319 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
93f9b408 ILT |
23320 | r=`${PWD_COMMAND}`; export r; \ |
23321 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23322 | $(HOST_EXPORTS) \ | |
23323 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23324 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23325 | done; \ | |
22121df0 | 23326 | echo "Doing maintainer-clean in libiberty"; \ |
a90ef4bf | 23327 | (cd $(HOST_SUBDIR)/libiberty && \ |
93f9b408 ILT |
23328 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23329 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23330 | "RANLIB=$${RANLIB}" \ | |
23331 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23332 | maintainer-clean) \ | |
23333 | || exit 1 | |
23334 | ||
a90ef4bf | 23335 | @endif libiberty |
93f9b408 ILT |
23336 | |
23337 | ||
23338 | ||
1b6c0831 L |
23339 | .PHONY: configure-libiberty-linker-plugin maybe-configure-libiberty-linker-plugin |
23340 | maybe-configure-libiberty-linker-plugin: | |
23341 | @if gcc-bootstrap | |
23342 | configure-libiberty-linker-plugin: stage_current | |
23343 | @endif gcc-bootstrap | |
23344 | @if libiberty-linker-plugin | |
23345 | maybe-configure-libiberty-linker-plugin: configure-libiberty-linker-plugin | |
23346 | configure-libiberty-linker-plugin: | |
23347 | @r=`${PWD_COMMAND}`; export r; \ | |
23348 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23349 | test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \ | |
22121df0 | 23350 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \ |
1b6c0831 L |
23351 | $(HOST_EXPORTS) \ |
23352 | echo Configuring in $(HOST_SUBDIR)/libiberty-linker-plugin; \ | |
23353 | cd "$(HOST_SUBDIR)/libiberty-linker-plugin" || exit 1; \ | |
23354 | case $(srcdir) in \ | |
23355 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
23356 | *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \ | |
23357 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
23358 | esac; \ | |
23359 | module_srcdir=libiberty; \ | |
23360 | $(SHELL) \ | |
23361 | $$s/$$module_srcdir/configure \ | |
23362 | --srcdir=$${topdir}/$$module_srcdir \ | |
23363 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
23364 | --target=${target_alias} @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \ | |
23365 | || exit 1 | |
23366 | @endif libiberty-linker-plugin | |
23367 | ||
23368 | ||
23369 | ||
23370 | .PHONY: configure-stage1-libiberty-linker-plugin maybe-configure-stage1-libiberty-linker-plugin | |
23371 | maybe-configure-stage1-libiberty-linker-plugin: | |
23372 | @if libiberty-linker-plugin-bootstrap | |
23373 | maybe-configure-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin | |
23374 | configure-stage1-libiberty-linker-plugin: | |
23375 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
23376 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin | |
23377 | @r=`${PWD_COMMAND}`; export r; \ | |
23378 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23379 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
23380 | test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \ | |
23381 | $(HOST_EXPORTS) \ | |
23382 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ | |
23383 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
23384 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
23385 | echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty-linker-plugin; \ |
23386 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \ | |
1b6c0831 L |
23387 | cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \ |
23388 | case $(srcdir) in \ | |
23389 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
23390 | *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \ | |
23391 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
23392 | esac; \ | |
23393 | module_srcdir=libiberty; \ | |
23394 | $(SHELL) $$s/$$module_srcdir/configure \ | |
23395 | --srcdir=$${topdir}/$$module_srcdir \ | |
23396 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
23397 | --target=${target_alias} \ | |
23398 | \ | |
23399 | $(STAGE1_CONFIGURE_FLAGS) \ | |
23400 | @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ | |
23401 | @endif libiberty-linker-plugin-bootstrap | |
23402 | ||
23403 | .PHONY: configure-stage2-libiberty-linker-plugin maybe-configure-stage2-libiberty-linker-plugin | |
23404 | maybe-configure-stage2-libiberty-linker-plugin: | |
23405 | @if libiberty-linker-plugin-bootstrap | |
23406 | maybe-configure-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin | |
23407 | configure-stage2-libiberty-linker-plugin: | |
23408 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
23409 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin | |
23410 | @r=`${PWD_COMMAND}`; export r; \ | |
23411 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23412 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
23413 | test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \ | |
23414 | $(HOST_EXPORTS) \ | |
23415 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
23416 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
23417 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
23418 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
23419 | echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty-linker-plugin; \ |
23420 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \ | |
1b6c0831 L |
23421 | cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \ |
23422 | case $(srcdir) in \ | |
23423 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
23424 | *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \ | |
23425 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
23426 | esac; \ | |
23427 | module_srcdir=libiberty; \ | |
23428 | $(SHELL) $$s/$$module_srcdir/configure \ | |
23429 | --srcdir=$${topdir}/$$module_srcdir \ | |
23430 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
23431 | --target=${target_alias} \ | |
22121df0 | 23432 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
23433 | $(STAGE2_CONFIGURE_FLAGS) \ |
23434 | @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ | |
23435 | @endif libiberty-linker-plugin-bootstrap | |
23436 | ||
23437 | .PHONY: configure-stage3-libiberty-linker-plugin maybe-configure-stage3-libiberty-linker-plugin | |
23438 | maybe-configure-stage3-libiberty-linker-plugin: | |
23439 | @if libiberty-linker-plugin-bootstrap | |
23440 | maybe-configure-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin | |
23441 | configure-stage3-libiberty-linker-plugin: | |
23442 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
23443 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin | |
23444 | @r=`${PWD_COMMAND}`; export r; \ | |
23445 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23446 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
23447 | test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \ | |
23448 | $(HOST_EXPORTS) \ | |
23449 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
23450 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
23451 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
23452 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
23453 | echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty-linker-plugin; \ |
23454 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \ | |
1b6c0831 L |
23455 | cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \ |
23456 | case $(srcdir) in \ | |
23457 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
23458 | *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \ | |
23459 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
23460 | esac; \ | |
23461 | module_srcdir=libiberty; \ | |
23462 | $(SHELL) $$s/$$module_srcdir/configure \ | |
23463 | --srcdir=$${topdir}/$$module_srcdir \ | |
23464 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
23465 | --target=${target_alias} \ | |
22121df0 | 23466 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
23467 | $(STAGE3_CONFIGURE_FLAGS) \ |
23468 | @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ | |
23469 | @endif libiberty-linker-plugin-bootstrap | |
23470 | ||
23471 | .PHONY: configure-stage4-libiberty-linker-plugin maybe-configure-stage4-libiberty-linker-plugin | |
23472 | maybe-configure-stage4-libiberty-linker-plugin: | |
23473 | @if libiberty-linker-plugin-bootstrap | |
23474 | maybe-configure-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin | |
23475 | configure-stage4-libiberty-linker-plugin: | |
23476 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
23477 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin | |
23478 | @r=`${PWD_COMMAND}`; export r; \ | |
23479 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23480 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
23481 | test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \ | |
23482 | $(HOST_EXPORTS) \ | |
23483 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
23484 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
23485 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
23486 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
23487 | echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty-linker-plugin; \ |
23488 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \ | |
1b6c0831 L |
23489 | cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \ |
23490 | case $(srcdir) in \ | |
23491 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
23492 | *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \ | |
23493 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
23494 | esac; \ | |
23495 | module_srcdir=libiberty; \ | |
23496 | $(SHELL) $$s/$$module_srcdir/configure \ | |
23497 | --srcdir=$${topdir}/$$module_srcdir \ | |
23498 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
23499 | --target=${target_alias} \ | |
22121df0 | 23500 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
23501 | $(STAGE4_CONFIGURE_FLAGS) \ |
23502 | @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ | |
23503 | @endif libiberty-linker-plugin-bootstrap | |
23504 | ||
23505 | .PHONY: configure-stageprofile-libiberty-linker-plugin maybe-configure-stageprofile-libiberty-linker-plugin | |
23506 | maybe-configure-stageprofile-libiberty-linker-plugin: | |
23507 | @if libiberty-linker-plugin-bootstrap | |
23508 | maybe-configure-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin | |
23509 | configure-stageprofile-libiberty-linker-plugin: | |
23510 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
23511 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin | |
23512 | @r=`${PWD_COMMAND}`; export r; \ | |
23513 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23514 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
23515 | test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \ | |
23516 | $(HOST_EXPORTS) \ | |
23517 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
23518 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
23519 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
23520 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
23521 | echo Configuring stage profile in $(HOST_SUBDIR)/libiberty-linker-plugin; \ |
23522 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \ | |
1b6c0831 L |
23523 | cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \ |
23524 | case $(srcdir) in \ | |
23525 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
23526 | *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \ | |
23527 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
23528 | esac; \ | |
23529 | module_srcdir=libiberty; \ | |
23530 | $(SHELL) $$s/$$module_srcdir/configure \ | |
23531 | --srcdir=$${topdir}/$$module_srcdir \ | |
23532 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
23533 | --target=${target_alias} \ | |
22121df0 | 23534 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
23535 | $(STAGEprofile_CONFIGURE_FLAGS) \ |
23536 | @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ | |
23537 | @endif libiberty-linker-plugin-bootstrap | |
23538 | ||
23539 | .PHONY: configure-stagefeedback-libiberty-linker-plugin maybe-configure-stagefeedback-libiberty-linker-plugin | |
23540 | maybe-configure-stagefeedback-libiberty-linker-plugin: | |
23541 | @if libiberty-linker-plugin-bootstrap | |
23542 | maybe-configure-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin | |
23543 | configure-stagefeedback-libiberty-linker-plugin: | |
23544 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
23545 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin | |
23546 | @r=`${PWD_COMMAND}`; export r; \ | |
23547 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23548 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
23549 | test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \ | |
23550 | $(HOST_EXPORTS) \ | |
23551 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
23552 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
23553 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
23554 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
23555 | echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty-linker-plugin; \ |
23556 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \ | |
1b6c0831 L |
23557 | cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \ |
23558 | case $(srcdir) in \ | |
23559 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
23560 | *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \ | |
23561 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
23562 | esac; \ | |
23563 | module_srcdir=libiberty; \ | |
23564 | $(SHELL) $$s/$$module_srcdir/configure \ | |
23565 | --srcdir=$${topdir}/$$module_srcdir \ | |
23566 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
23567 | --target=${target_alias} \ | |
22121df0 | 23568 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
23569 | $(STAGEfeedback_CONFIGURE_FLAGS) \ |
23570 | @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ | |
23571 | @endif libiberty-linker-plugin-bootstrap | |
23572 | ||
23573 | ||
23574 | ||
23575 | ||
23576 | ||
23577 | .PHONY: all-libiberty-linker-plugin maybe-all-libiberty-linker-plugin | |
23578 | maybe-all-libiberty-linker-plugin: | |
23579 | @if gcc-bootstrap | |
23580 | all-libiberty-linker-plugin: stage_current | |
23581 | @endif gcc-bootstrap | |
23582 | @if libiberty-linker-plugin | |
23583 | TARGET-libiberty-linker-plugin=all | |
23584 | maybe-all-libiberty-linker-plugin: all-libiberty-linker-plugin | |
23585 | all-libiberty-linker-plugin: configure-libiberty-linker-plugin | |
23586 | @r=`${PWD_COMMAND}`; export r; \ | |
23587 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23588 | $(HOST_EXPORTS) \ | |
23589 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
23590 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \ | |
23591 | $(TARGET-libiberty-linker-plugin)) | |
23592 | @endif libiberty-linker-plugin | |
23593 | ||
23594 | ||
23595 | ||
23596 | .PHONY: all-stage1-libiberty-linker-plugin maybe-all-stage1-libiberty-linker-plugin | |
23597 | .PHONY: clean-stage1-libiberty-linker-plugin maybe-clean-stage1-libiberty-linker-plugin | |
23598 | maybe-all-stage1-libiberty-linker-plugin: | |
23599 | maybe-clean-stage1-libiberty-linker-plugin: | |
23600 | @if libiberty-linker-plugin-bootstrap | |
23601 | maybe-all-stage1-libiberty-linker-plugin: all-stage1-libiberty-linker-plugin | |
23602 | all-stage1: all-stage1-libiberty-linker-plugin | |
23603 | TARGET-stage1-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin) | |
23604 | all-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin | |
23605 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
23606 | @r=`${PWD_COMMAND}`; export r; \ | |
23607 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23608 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
23609 | $(HOST_EXPORTS) \ | |
23610 | cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
05a13254 | 23611 | \ |
1b6c0831 L |
23612 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
23613 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
23614 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
23615 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
23616 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
23617 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
23618 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
23619 | $(EXTRA_HOST_FLAGS) \ | |
23620 | $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \ | |
05a13254 | 23621 | TFLAGS="$(STAGE1_TFLAGS)" \ |
1b6c0831 L |
23622 | $(TARGET-stage1-libiberty-linker-plugin) |
23623 | ||
23624 | maybe-clean-stage1-libiberty-linker-plugin: clean-stage1-libiberty-linker-plugin | |
23625 | clean-stage1: clean-stage1-libiberty-linker-plugin | |
23626 | clean-stage1-libiberty-linker-plugin: | |
23627 | @if [ $(current_stage) = stage1 ]; then \ | |
23628 | [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23629 | else \ | |
23630 | [ -f $(HOST_SUBDIR)/stage1-libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23631 | $(MAKE) stage1-start; \ | |
23632 | fi; \ | |
23633 | cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
23634 | $(MAKE) $(EXTRA_HOST_FLAGS) \ | |
23635 | $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean | |
23636 | @endif libiberty-linker-plugin-bootstrap | |
23637 | ||
23638 | ||
23639 | .PHONY: all-stage2-libiberty-linker-plugin maybe-all-stage2-libiberty-linker-plugin | |
23640 | .PHONY: clean-stage2-libiberty-linker-plugin maybe-clean-stage2-libiberty-linker-plugin | |
23641 | maybe-all-stage2-libiberty-linker-plugin: | |
23642 | maybe-clean-stage2-libiberty-linker-plugin: | |
23643 | @if libiberty-linker-plugin-bootstrap | |
23644 | maybe-all-stage2-libiberty-linker-plugin: all-stage2-libiberty-linker-plugin | |
23645 | all-stage2: all-stage2-libiberty-linker-plugin | |
23646 | TARGET-stage2-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin) | |
23647 | all-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin | |
23648 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
23649 | @r=`${PWD_COMMAND}`; export r; \ | |
23650 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23651 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
23652 | $(HOST_EXPORTS) \ | |
23653 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
23654 | cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
05a13254 | 23655 | \ |
1b6c0831 L |
23656 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
23657 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
23658 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
23659 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
23660 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
23661 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
23662 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
23663 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \ | |
05a13254 | 23664 | TFLAGS="$(STAGE2_TFLAGS)" \ |
1b6c0831 L |
23665 | $(TARGET-stage2-libiberty-linker-plugin) |
23666 | ||
23667 | maybe-clean-stage2-libiberty-linker-plugin: clean-stage2-libiberty-linker-plugin | |
23668 | clean-stage2: clean-stage2-libiberty-linker-plugin | |
23669 | clean-stage2-libiberty-linker-plugin: | |
23670 | @if [ $(current_stage) = stage2 ]; then \ | |
23671 | [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23672 | else \ | |
23673 | [ -f $(HOST_SUBDIR)/stage2-libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23674 | $(MAKE) stage2-start; \ | |
23675 | fi; \ | |
23676 | cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
23677 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean | |
23678 | @endif libiberty-linker-plugin-bootstrap | |
23679 | ||
23680 | ||
23681 | .PHONY: all-stage3-libiberty-linker-plugin maybe-all-stage3-libiberty-linker-plugin | |
23682 | .PHONY: clean-stage3-libiberty-linker-plugin maybe-clean-stage3-libiberty-linker-plugin | |
23683 | maybe-all-stage3-libiberty-linker-plugin: | |
23684 | maybe-clean-stage3-libiberty-linker-plugin: | |
23685 | @if libiberty-linker-plugin-bootstrap | |
23686 | maybe-all-stage3-libiberty-linker-plugin: all-stage3-libiberty-linker-plugin | |
23687 | all-stage3: all-stage3-libiberty-linker-plugin | |
23688 | TARGET-stage3-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin) | |
23689 | all-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin | |
23690 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
23691 | @r=`${PWD_COMMAND}`; export r; \ | |
23692 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23693 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
23694 | $(HOST_EXPORTS) \ | |
23695 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
23696 | cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
05a13254 | 23697 | \ |
1b6c0831 L |
23698 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
23699 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
23700 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
23701 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
23702 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
23703 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
23704 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
23705 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \ | |
05a13254 | 23706 | TFLAGS="$(STAGE3_TFLAGS)" \ |
1b6c0831 L |
23707 | $(TARGET-stage3-libiberty-linker-plugin) |
23708 | ||
23709 | maybe-clean-stage3-libiberty-linker-plugin: clean-stage3-libiberty-linker-plugin | |
23710 | clean-stage3: clean-stage3-libiberty-linker-plugin | |
23711 | clean-stage3-libiberty-linker-plugin: | |
23712 | @if [ $(current_stage) = stage3 ]; then \ | |
23713 | [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23714 | else \ | |
23715 | [ -f $(HOST_SUBDIR)/stage3-libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23716 | $(MAKE) stage3-start; \ | |
23717 | fi; \ | |
23718 | cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
23719 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean | |
23720 | @endif libiberty-linker-plugin-bootstrap | |
23721 | ||
23722 | ||
23723 | .PHONY: all-stage4-libiberty-linker-plugin maybe-all-stage4-libiberty-linker-plugin | |
23724 | .PHONY: clean-stage4-libiberty-linker-plugin maybe-clean-stage4-libiberty-linker-plugin | |
23725 | maybe-all-stage4-libiberty-linker-plugin: | |
23726 | maybe-clean-stage4-libiberty-linker-plugin: | |
23727 | @if libiberty-linker-plugin-bootstrap | |
23728 | maybe-all-stage4-libiberty-linker-plugin: all-stage4-libiberty-linker-plugin | |
23729 | all-stage4: all-stage4-libiberty-linker-plugin | |
23730 | TARGET-stage4-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin) | |
23731 | all-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin | |
23732 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
23733 | @r=`${PWD_COMMAND}`; export r; \ | |
23734 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23735 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
23736 | $(HOST_EXPORTS) \ | |
23737 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
23738 | cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
05a13254 | 23739 | \ |
1b6c0831 L |
23740 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
23741 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
23742 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
23743 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
23744 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
23745 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
23746 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
23747 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \ | |
05a13254 | 23748 | TFLAGS="$(STAGE4_TFLAGS)" \ |
1b6c0831 L |
23749 | $(TARGET-stage4-libiberty-linker-plugin) |
23750 | ||
23751 | maybe-clean-stage4-libiberty-linker-plugin: clean-stage4-libiberty-linker-plugin | |
23752 | clean-stage4: clean-stage4-libiberty-linker-plugin | |
23753 | clean-stage4-libiberty-linker-plugin: | |
23754 | @if [ $(current_stage) = stage4 ]; then \ | |
23755 | [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23756 | else \ | |
23757 | [ -f $(HOST_SUBDIR)/stage4-libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23758 | $(MAKE) stage4-start; \ | |
23759 | fi; \ | |
23760 | cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
23761 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean | |
23762 | @endif libiberty-linker-plugin-bootstrap | |
23763 | ||
23764 | ||
23765 | .PHONY: all-stageprofile-libiberty-linker-plugin maybe-all-stageprofile-libiberty-linker-plugin | |
23766 | .PHONY: clean-stageprofile-libiberty-linker-plugin maybe-clean-stageprofile-libiberty-linker-plugin | |
23767 | maybe-all-stageprofile-libiberty-linker-plugin: | |
23768 | maybe-clean-stageprofile-libiberty-linker-plugin: | |
23769 | @if libiberty-linker-plugin-bootstrap | |
23770 | maybe-all-stageprofile-libiberty-linker-plugin: all-stageprofile-libiberty-linker-plugin | |
23771 | all-stageprofile: all-stageprofile-libiberty-linker-plugin | |
23772 | TARGET-stageprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin) | |
23773 | all-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin | |
23774 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
23775 | @r=`${PWD_COMMAND}`; export r; \ | |
23776 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23777 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
23778 | $(HOST_EXPORTS) \ | |
23779 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
23780 | cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
05a13254 | 23781 | \ |
1b6c0831 L |
23782 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
23783 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
23784 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
23785 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
23786 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
23787 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
23788 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
23789 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \ | |
05a13254 | 23790 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
1b6c0831 L |
23791 | $(TARGET-stageprofile-libiberty-linker-plugin) |
23792 | ||
23793 | maybe-clean-stageprofile-libiberty-linker-plugin: clean-stageprofile-libiberty-linker-plugin | |
23794 | clean-stageprofile: clean-stageprofile-libiberty-linker-plugin | |
23795 | clean-stageprofile-libiberty-linker-plugin: | |
23796 | @if [ $(current_stage) = stageprofile ]; then \ | |
23797 | [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23798 | else \ | |
23799 | [ -f $(HOST_SUBDIR)/stageprofile-libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23800 | $(MAKE) stageprofile-start; \ | |
23801 | fi; \ | |
23802 | cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
23803 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean | |
23804 | @endif libiberty-linker-plugin-bootstrap | |
23805 | ||
23806 | ||
23807 | .PHONY: all-stagefeedback-libiberty-linker-plugin maybe-all-stagefeedback-libiberty-linker-plugin | |
23808 | .PHONY: clean-stagefeedback-libiberty-linker-plugin maybe-clean-stagefeedback-libiberty-linker-plugin | |
23809 | maybe-all-stagefeedback-libiberty-linker-plugin: | |
23810 | maybe-clean-stagefeedback-libiberty-linker-plugin: | |
23811 | @if libiberty-linker-plugin-bootstrap | |
23812 | maybe-all-stagefeedback-libiberty-linker-plugin: all-stagefeedback-libiberty-linker-plugin | |
23813 | all-stagefeedback: all-stagefeedback-libiberty-linker-plugin | |
23814 | TARGET-stagefeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin) | |
23815 | all-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin | |
23816 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
23817 | @r=`${PWD_COMMAND}`; export r; \ | |
23818 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23819 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
23820 | $(HOST_EXPORTS) \ | |
23821 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
23822 | cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
05a13254 | 23823 | \ |
1b6c0831 L |
23824 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
23825 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
23826 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
23827 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
23828 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
23829 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
23830 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
23831 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \ | |
05a13254 | 23832 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
1b6c0831 L |
23833 | $(TARGET-stagefeedback-libiberty-linker-plugin) |
23834 | ||
23835 | maybe-clean-stagefeedback-libiberty-linker-plugin: clean-stagefeedback-libiberty-linker-plugin | |
23836 | clean-stagefeedback: clean-stagefeedback-libiberty-linker-plugin | |
23837 | clean-stagefeedback-libiberty-linker-plugin: | |
23838 | @if [ $(current_stage) = stagefeedback ]; then \ | |
23839 | [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23840 | else \ | |
23841 | [ -f $(HOST_SUBDIR)/stagefeedback-libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23842 | $(MAKE) stagefeedback-start; \ | |
23843 | fi; \ | |
23844 | cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
23845 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean | |
23846 | @endif libiberty-linker-plugin-bootstrap | |
23847 | ||
23848 | ||
23849 | ||
23850 | ||
23851 | ||
23852 | .PHONY: check-libiberty-linker-plugin maybe-check-libiberty-linker-plugin | |
23853 | maybe-check-libiberty-linker-plugin: | |
23854 | @if libiberty-linker-plugin | |
23855 | maybe-check-libiberty-linker-plugin: check-libiberty-linker-plugin | |
23856 | ||
23857 | check-libiberty-linker-plugin: | |
23858 | @: $(MAKE); $(unstage) | |
23859 | @r=`${PWD_COMMAND}`; export r; \ | |
23860 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 23861 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
1b6c0831 | 23862 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ |
f91ca6bc | 23863 | $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check) |
1b6c0831 L |
23864 | |
23865 | @endif libiberty-linker-plugin | |
23866 | ||
23867 | .PHONY: install-libiberty-linker-plugin maybe-install-libiberty-linker-plugin | |
23868 | maybe-install-libiberty-linker-plugin: | |
23869 | @if libiberty-linker-plugin | |
23870 | maybe-install-libiberty-linker-plugin: install-libiberty-linker-plugin | |
23871 | ||
23872 | install-libiberty-linker-plugin: installdirs | |
23873 | @: $(MAKE); $(unstage) | |
23874 | @r=`${PWD_COMMAND}`; export r; \ | |
23875 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23876 | $(HOST_EXPORTS) \ | |
23877 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
23878 | $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install) | |
23879 | ||
23880 | @endif libiberty-linker-plugin | |
23881 | ||
23882 | .PHONY: install-strip-libiberty-linker-plugin maybe-install-strip-libiberty-linker-plugin | |
23883 | maybe-install-strip-libiberty-linker-plugin: | |
23884 | @if libiberty-linker-plugin | |
23885 | maybe-install-strip-libiberty-linker-plugin: install-strip-libiberty-linker-plugin | |
23886 | ||
23887 | install-strip-libiberty-linker-plugin: installdirs | |
23888 | @: $(MAKE); $(unstage) | |
23889 | @r=`${PWD_COMMAND}`; export r; \ | |
23890 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23891 | $(HOST_EXPORTS) \ | |
23892 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ | |
23893 | $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip) | |
23894 | ||
23895 | @endif libiberty-linker-plugin | |
23896 | ||
23897 | # Other targets (info, dvi, pdf, etc.) | |
23898 | ||
23899 | .PHONY: maybe-info-libiberty-linker-plugin info-libiberty-linker-plugin | |
23900 | maybe-info-libiberty-linker-plugin: | |
23901 | @if libiberty-linker-plugin | |
23902 | maybe-info-libiberty-linker-plugin: info-libiberty-linker-plugin | |
23903 | ||
23904 | info-libiberty-linker-plugin: \ | |
23905 | configure-libiberty-linker-plugin | |
23906 | @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23907 | r=`${PWD_COMMAND}`; export r; \ | |
23908 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23909 | $(HOST_EXPORTS) \ | |
23910 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ | |
23911 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23912 | done; \ | |
22121df0 | 23913 | echo "Doing info in libiberty-linker-plugin"; \ |
1b6c0831 L |
23914 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ |
23915 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23916 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23917 | "RANLIB=$${RANLIB}" \ | |
23918 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23919 | info) \ | |
23920 | || exit 1 | |
23921 | ||
23922 | @endif libiberty-linker-plugin | |
23923 | ||
23924 | .PHONY: maybe-dvi-libiberty-linker-plugin dvi-libiberty-linker-plugin | |
23925 | maybe-dvi-libiberty-linker-plugin: | |
23926 | @if libiberty-linker-plugin | |
23927 | maybe-dvi-libiberty-linker-plugin: dvi-libiberty-linker-plugin | |
23928 | ||
23929 | dvi-libiberty-linker-plugin: \ | |
23930 | configure-libiberty-linker-plugin | |
23931 | @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23932 | r=`${PWD_COMMAND}`; export r; \ | |
23933 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23934 | $(HOST_EXPORTS) \ | |
23935 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ | |
23936 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23937 | done; \ | |
22121df0 | 23938 | echo "Doing dvi in libiberty-linker-plugin"; \ |
1b6c0831 L |
23939 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ |
23940 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23941 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23942 | "RANLIB=$${RANLIB}" \ | |
23943 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23944 | dvi) \ | |
23945 | || exit 1 | |
23946 | ||
23947 | @endif libiberty-linker-plugin | |
23948 | ||
23949 | .PHONY: maybe-pdf-libiberty-linker-plugin pdf-libiberty-linker-plugin | |
23950 | maybe-pdf-libiberty-linker-plugin: | |
23951 | @if libiberty-linker-plugin | |
23952 | maybe-pdf-libiberty-linker-plugin: pdf-libiberty-linker-plugin | |
23953 | ||
23954 | pdf-libiberty-linker-plugin: \ | |
23955 | configure-libiberty-linker-plugin | |
23956 | @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23957 | r=`${PWD_COMMAND}`; export r; \ | |
23958 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23959 | $(HOST_EXPORTS) \ | |
23960 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ | |
23961 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23962 | done; \ | |
22121df0 | 23963 | echo "Doing pdf in libiberty-linker-plugin"; \ |
1b6c0831 L |
23964 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ |
23965 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23966 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23967 | "RANLIB=$${RANLIB}" \ | |
23968 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23969 | pdf) \ | |
23970 | || exit 1 | |
23971 | ||
23972 | @endif libiberty-linker-plugin | |
23973 | ||
23974 | .PHONY: maybe-html-libiberty-linker-plugin html-libiberty-linker-plugin | |
23975 | maybe-html-libiberty-linker-plugin: | |
23976 | @if libiberty-linker-plugin | |
23977 | maybe-html-libiberty-linker-plugin: html-libiberty-linker-plugin | |
23978 | ||
23979 | html-libiberty-linker-plugin: \ | |
23980 | configure-libiberty-linker-plugin | |
23981 | @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \ | |
23982 | r=`${PWD_COMMAND}`; export r; \ | |
23983 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23984 | $(HOST_EXPORTS) \ | |
23985 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ | |
23986 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23987 | done; \ | |
22121df0 | 23988 | echo "Doing html in libiberty-linker-plugin"; \ |
1b6c0831 L |
23989 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ |
23990 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23991 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23992 | "RANLIB=$${RANLIB}" \ | |
23993 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
23994 | html) \ | |
23995 | || exit 1 | |
23996 | ||
23997 | @endif libiberty-linker-plugin | |
23998 | ||
23999 | .PHONY: maybe-TAGS-libiberty-linker-plugin TAGS-libiberty-linker-plugin | |
24000 | maybe-TAGS-libiberty-linker-plugin: | |
24001 | @if libiberty-linker-plugin | |
24002 | maybe-TAGS-libiberty-linker-plugin: TAGS-libiberty-linker-plugin | |
24003 | ||
24004 | TAGS-libiberty-linker-plugin: \ | |
24005 | configure-libiberty-linker-plugin | |
24006 | @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \ | |
24007 | r=`${PWD_COMMAND}`; export r; \ | |
24008 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24009 | $(HOST_EXPORTS) \ | |
24010 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ | |
24011 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24012 | done; \ | |
22121df0 | 24013 | echo "Doing TAGS in libiberty-linker-plugin"; \ |
1b6c0831 L |
24014 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ |
24015 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24016 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24017 | "RANLIB=$${RANLIB}" \ | |
24018 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
24019 | TAGS) \ | |
24020 | || exit 1 | |
24021 | ||
24022 | @endif libiberty-linker-plugin | |
24023 | ||
24024 | .PHONY: maybe-install-info-libiberty-linker-plugin install-info-libiberty-linker-plugin | |
24025 | maybe-install-info-libiberty-linker-plugin: | |
24026 | @if libiberty-linker-plugin | |
24027 | maybe-install-info-libiberty-linker-plugin: install-info-libiberty-linker-plugin | |
24028 | ||
24029 | install-info-libiberty-linker-plugin: \ | |
24030 | configure-libiberty-linker-plugin \ | |
24031 | info-libiberty-linker-plugin | |
24032 | @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \ | |
24033 | r=`${PWD_COMMAND}`; export r; \ | |
24034 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24035 | $(HOST_EXPORTS) \ | |
24036 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ | |
24037 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24038 | done; \ | |
22121df0 | 24039 | echo "Doing install-info in libiberty-linker-plugin"; \ |
1b6c0831 L |
24040 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ |
24041 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24042 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24043 | "RANLIB=$${RANLIB}" \ | |
24044 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
24045 | install-info) \ | |
24046 | || exit 1 | |
24047 | ||
24048 | @endif libiberty-linker-plugin | |
24049 | ||
24050 | .PHONY: maybe-install-pdf-libiberty-linker-plugin install-pdf-libiberty-linker-plugin | |
24051 | maybe-install-pdf-libiberty-linker-plugin: | |
24052 | @if libiberty-linker-plugin | |
24053 | maybe-install-pdf-libiberty-linker-plugin: install-pdf-libiberty-linker-plugin | |
24054 | ||
24055 | install-pdf-libiberty-linker-plugin: \ | |
24056 | configure-libiberty-linker-plugin \ | |
24057 | pdf-libiberty-linker-plugin | |
24058 | @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \ | |
24059 | r=`${PWD_COMMAND}`; export r; \ | |
24060 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24061 | $(HOST_EXPORTS) \ | |
24062 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ | |
24063 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24064 | done; \ | |
22121df0 | 24065 | echo "Doing install-pdf in libiberty-linker-plugin"; \ |
1b6c0831 L |
24066 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ |
24067 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24068 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24069 | "RANLIB=$${RANLIB}" \ | |
24070 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
24071 | install-pdf) \ | |
24072 | || exit 1 | |
24073 | ||
24074 | @endif libiberty-linker-plugin | |
24075 | ||
24076 | .PHONY: maybe-install-html-libiberty-linker-plugin install-html-libiberty-linker-plugin | |
24077 | maybe-install-html-libiberty-linker-plugin: | |
24078 | @if libiberty-linker-plugin | |
24079 | maybe-install-html-libiberty-linker-plugin: install-html-libiberty-linker-plugin | |
24080 | ||
24081 | install-html-libiberty-linker-plugin: \ | |
24082 | configure-libiberty-linker-plugin \ | |
24083 | html-libiberty-linker-plugin | |
24084 | @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \ | |
24085 | r=`${PWD_COMMAND}`; export r; \ | |
24086 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24087 | $(HOST_EXPORTS) \ | |
24088 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ | |
24089 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24090 | done; \ | |
22121df0 | 24091 | echo "Doing install-html in libiberty-linker-plugin"; \ |
1b6c0831 L |
24092 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ |
24093 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24094 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24095 | "RANLIB=$${RANLIB}" \ | |
24096 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
24097 | install-html) \ | |
24098 | || exit 1 | |
24099 | ||
24100 | @endif libiberty-linker-plugin | |
24101 | ||
24102 | .PHONY: maybe-installcheck-libiberty-linker-plugin installcheck-libiberty-linker-plugin | |
24103 | maybe-installcheck-libiberty-linker-plugin: | |
24104 | @if libiberty-linker-plugin | |
24105 | maybe-installcheck-libiberty-linker-plugin: installcheck-libiberty-linker-plugin | |
24106 | ||
24107 | installcheck-libiberty-linker-plugin: \ | |
24108 | configure-libiberty-linker-plugin | |
24109 | @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \ | |
24110 | r=`${PWD_COMMAND}`; export r; \ | |
24111 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24112 | $(HOST_EXPORTS) \ | |
24113 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ | |
24114 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24115 | done; \ | |
22121df0 | 24116 | echo "Doing installcheck in libiberty-linker-plugin"; \ |
1b6c0831 L |
24117 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ |
24118 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24119 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24120 | "RANLIB=$${RANLIB}" \ | |
24121 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
24122 | installcheck) \ | |
24123 | || exit 1 | |
24124 | ||
24125 | @endif libiberty-linker-plugin | |
24126 | ||
24127 | .PHONY: maybe-mostlyclean-libiberty-linker-plugin mostlyclean-libiberty-linker-plugin | |
24128 | maybe-mostlyclean-libiberty-linker-plugin: | |
24129 | @if libiberty-linker-plugin | |
24130 | maybe-mostlyclean-libiberty-linker-plugin: mostlyclean-libiberty-linker-plugin | |
24131 | ||
24132 | mostlyclean-libiberty-linker-plugin: | |
24133 | @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \ | |
24134 | r=`${PWD_COMMAND}`; export r; \ | |
24135 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24136 | $(HOST_EXPORTS) \ | |
24137 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ | |
24138 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24139 | done; \ | |
22121df0 | 24140 | echo "Doing mostlyclean in libiberty-linker-plugin"; \ |
1b6c0831 L |
24141 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ |
24142 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24143 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24144 | "RANLIB=$${RANLIB}" \ | |
24145 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
24146 | mostlyclean) \ | |
24147 | || exit 1 | |
24148 | ||
24149 | @endif libiberty-linker-plugin | |
24150 | ||
24151 | .PHONY: maybe-clean-libiberty-linker-plugin clean-libiberty-linker-plugin | |
24152 | maybe-clean-libiberty-linker-plugin: | |
24153 | @if libiberty-linker-plugin | |
24154 | maybe-clean-libiberty-linker-plugin: clean-libiberty-linker-plugin | |
24155 | ||
24156 | clean-libiberty-linker-plugin: | |
24157 | @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \ | |
24158 | r=`${PWD_COMMAND}`; export r; \ | |
24159 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24160 | $(HOST_EXPORTS) \ | |
24161 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ | |
24162 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24163 | done; \ | |
22121df0 | 24164 | echo "Doing clean in libiberty-linker-plugin"; \ |
1b6c0831 L |
24165 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ |
24166 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24167 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24168 | "RANLIB=$${RANLIB}" \ | |
24169 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
24170 | clean) \ | |
24171 | || exit 1 | |
24172 | ||
24173 | @endif libiberty-linker-plugin | |
24174 | ||
24175 | .PHONY: maybe-distclean-libiberty-linker-plugin distclean-libiberty-linker-plugin | |
24176 | maybe-distclean-libiberty-linker-plugin: | |
24177 | @if libiberty-linker-plugin | |
24178 | maybe-distclean-libiberty-linker-plugin: distclean-libiberty-linker-plugin | |
24179 | ||
24180 | distclean-libiberty-linker-plugin: | |
24181 | @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \ | |
24182 | r=`${PWD_COMMAND}`; export r; \ | |
24183 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24184 | $(HOST_EXPORTS) \ | |
24185 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ | |
24186 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24187 | done; \ | |
22121df0 | 24188 | echo "Doing distclean in libiberty-linker-plugin"; \ |
1b6c0831 L |
24189 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ |
24190 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24191 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24192 | "RANLIB=$${RANLIB}" \ | |
24193 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
24194 | distclean) \ | |
24195 | || exit 1 | |
24196 | ||
24197 | @endif libiberty-linker-plugin | |
24198 | ||
24199 | .PHONY: maybe-maintainer-clean-libiberty-linker-plugin maintainer-clean-libiberty-linker-plugin | |
24200 | maybe-maintainer-clean-libiberty-linker-plugin: | |
24201 | @if libiberty-linker-plugin | |
24202 | maybe-maintainer-clean-libiberty-linker-plugin: maintainer-clean-libiberty-linker-plugin | |
24203 | ||
24204 | maintainer-clean-libiberty-linker-plugin: | |
24205 | @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \ | |
24206 | r=`${PWD_COMMAND}`; export r; \ | |
24207 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24208 | $(HOST_EXPORTS) \ | |
24209 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ | |
24210 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24211 | done; \ | |
22121df0 | 24212 | echo "Doing maintainer-clean in libiberty-linker-plugin"; \ |
1b6c0831 L |
24213 | (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \ |
24214 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24215 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24216 | "RANLIB=$${RANLIB}" \ | |
24217 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
24218 | maintainer-clean) \ | |
24219 | || exit 1 | |
24220 | ||
24221 | @endif libiberty-linker-plugin | |
24222 | ||
24223 | ||
24224 | ||
a90ef4bf JM |
24225 | .PHONY: configure-libiconv maybe-configure-libiconv |
24226 | maybe-configure-libiconv: | |
4f0ef2d8 | 24227 | @if gcc-bootstrap |
a90ef4bf | 24228 | configure-libiconv: stage_current |
4f0ef2d8 | 24229 | @endif gcc-bootstrap |
a90ef4bf JM |
24230 | @if libiconv |
24231 | maybe-configure-libiconv: configure-libiconv | |
24232 | configure-libiconv: | |
c52c6897 | 24233 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 24234 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 24235 | test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \ |
22121df0 | 24236 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \ |
1f53ca9a | 24237 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
24238 | echo Configuring in $(HOST_SUBDIR)/libiconv; \ |
24239 | cd "$(HOST_SUBDIR)/libiconv" || exit 1; \ | |
4fa63067 | 24240 | case $(srcdir) in \ |
b00612cc | 24241 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 24242 | *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \ |
b00612cc | 24243 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 24244 | esac; \ |
1b6c0831 L |
24245 | module_srcdir=libiconv; \ |
24246 | $(SHELL) \ | |
24247 | $$s/$$module_srcdir/configure \ | |
24248 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 24249 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 24250 | --target=${target_alias} --disable-shared \ |
2a4cbe27 | 24251 | || exit 1 |
a90ef4bf | 24252 | @endif libiconv |
2a4cbe27 | 24253 | |
a7254363 PB |
24254 | |
24255 | ||
016a3251 DD |
24256 | .PHONY: configure-stage1-libiconv maybe-configure-stage1-libiconv |
24257 | maybe-configure-stage1-libiconv: | |
24258 | @if libiconv-bootstrap | |
24259 | maybe-configure-stage1-libiconv: configure-stage1-libiconv | |
24260 | configure-stage1-libiconv: | |
24261 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
24262 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv | |
24263 | @r=`${PWD_COMMAND}`; export r; \ | |
24264 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24265 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
24266 | test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \ | |
24267 | $(HOST_EXPORTS) \ | |
24268 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ | |
24269 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
24270 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
24271 | echo Configuring stage 1 in $(HOST_SUBDIR)/libiconv; \ | |
24272 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \ | |
24273 | cd $(HOST_SUBDIR)/libiconv || exit 1; \ | |
24274 | case $(srcdir) in \ | |
24275 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
24276 | *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \ | |
24277 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
24278 | esac; \ | |
24279 | module_srcdir=libiconv; \ | |
24280 | $(SHELL) $$s/$$module_srcdir/configure \ | |
24281 | --srcdir=$${topdir}/$$module_srcdir \ | |
24282 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
24283 | --target=${target_alias} \ | |
24284 | \ | |
24285 | $(STAGE1_CONFIGURE_FLAGS) \ | |
24286 | --disable-shared | |
24287 | @endif libiconv-bootstrap | |
24288 | ||
24289 | .PHONY: configure-stage2-libiconv maybe-configure-stage2-libiconv | |
24290 | maybe-configure-stage2-libiconv: | |
24291 | @if libiconv-bootstrap | |
24292 | maybe-configure-stage2-libiconv: configure-stage2-libiconv | |
24293 | configure-stage2-libiconv: | |
24294 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
24295 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv | |
24296 | @r=`${PWD_COMMAND}`; export r; \ | |
24297 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24298 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
24299 | test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \ | |
24300 | $(HOST_EXPORTS) \ | |
24301 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
24302 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
24303 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
24304 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
24305 | echo Configuring stage 2 in $(HOST_SUBDIR)/libiconv; \ | |
24306 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \ | |
24307 | cd $(HOST_SUBDIR)/libiconv || exit 1; \ | |
24308 | case $(srcdir) in \ | |
24309 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
24310 | *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \ | |
24311 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
24312 | esac; \ | |
24313 | module_srcdir=libiconv; \ | |
24314 | $(SHELL) $$s/$$module_srcdir/configure \ | |
24315 | --srcdir=$${topdir}/$$module_srcdir \ | |
24316 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
24317 | --target=${target_alias} \ | |
24318 | --with-build-libsubdir=$(HOST_SUBDIR) \ | |
24319 | $(STAGE2_CONFIGURE_FLAGS) \ | |
24320 | --disable-shared | |
24321 | @endif libiconv-bootstrap | |
24322 | ||
24323 | .PHONY: configure-stage3-libiconv maybe-configure-stage3-libiconv | |
24324 | maybe-configure-stage3-libiconv: | |
24325 | @if libiconv-bootstrap | |
24326 | maybe-configure-stage3-libiconv: configure-stage3-libiconv | |
24327 | configure-stage3-libiconv: | |
24328 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
24329 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv | |
24330 | @r=`${PWD_COMMAND}`; export r; \ | |
24331 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24332 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
24333 | test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \ | |
24334 | $(HOST_EXPORTS) \ | |
24335 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
24336 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
24337 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
24338 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
24339 | echo Configuring stage 3 in $(HOST_SUBDIR)/libiconv; \ | |
24340 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \ | |
24341 | cd $(HOST_SUBDIR)/libiconv || exit 1; \ | |
24342 | case $(srcdir) in \ | |
24343 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
24344 | *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \ | |
24345 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
24346 | esac; \ | |
24347 | module_srcdir=libiconv; \ | |
24348 | $(SHELL) $$s/$$module_srcdir/configure \ | |
24349 | --srcdir=$${topdir}/$$module_srcdir \ | |
24350 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
24351 | --target=${target_alias} \ | |
24352 | --with-build-libsubdir=$(HOST_SUBDIR) \ | |
24353 | $(STAGE3_CONFIGURE_FLAGS) \ | |
24354 | --disable-shared | |
24355 | @endif libiconv-bootstrap | |
24356 | ||
24357 | .PHONY: configure-stage4-libiconv maybe-configure-stage4-libiconv | |
24358 | maybe-configure-stage4-libiconv: | |
24359 | @if libiconv-bootstrap | |
24360 | maybe-configure-stage4-libiconv: configure-stage4-libiconv | |
24361 | configure-stage4-libiconv: | |
24362 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
24363 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv | |
24364 | @r=`${PWD_COMMAND}`; export r; \ | |
24365 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24366 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
24367 | test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \ | |
24368 | $(HOST_EXPORTS) \ | |
24369 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
24370 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
24371 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
24372 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
24373 | echo Configuring stage 4 in $(HOST_SUBDIR)/libiconv; \ | |
24374 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \ | |
24375 | cd $(HOST_SUBDIR)/libiconv || exit 1; \ | |
24376 | case $(srcdir) in \ | |
24377 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
24378 | *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \ | |
24379 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
24380 | esac; \ | |
24381 | module_srcdir=libiconv; \ | |
24382 | $(SHELL) $$s/$$module_srcdir/configure \ | |
24383 | --srcdir=$${topdir}/$$module_srcdir \ | |
24384 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
24385 | --target=${target_alias} \ | |
24386 | --with-build-libsubdir=$(HOST_SUBDIR) \ | |
24387 | $(STAGE4_CONFIGURE_FLAGS) \ | |
24388 | --disable-shared | |
24389 | @endif libiconv-bootstrap | |
24390 | ||
24391 | .PHONY: configure-stageprofile-libiconv maybe-configure-stageprofile-libiconv | |
24392 | maybe-configure-stageprofile-libiconv: | |
24393 | @if libiconv-bootstrap | |
24394 | maybe-configure-stageprofile-libiconv: configure-stageprofile-libiconv | |
24395 | configure-stageprofile-libiconv: | |
24396 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
24397 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv | |
24398 | @r=`${PWD_COMMAND}`; export r; \ | |
24399 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24400 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
24401 | test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \ | |
24402 | $(HOST_EXPORTS) \ | |
24403 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
24404 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
24405 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
24406 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
24407 | echo Configuring stage profile in $(HOST_SUBDIR)/libiconv; \ | |
24408 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \ | |
24409 | cd $(HOST_SUBDIR)/libiconv || exit 1; \ | |
24410 | case $(srcdir) in \ | |
24411 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
24412 | *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \ | |
24413 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
24414 | esac; \ | |
24415 | module_srcdir=libiconv; \ | |
24416 | $(SHELL) $$s/$$module_srcdir/configure \ | |
24417 | --srcdir=$${topdir}/$$module_srcdir \ | |
24418 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
24419 | --target=${target_alias} \ | |
24420 | --with-build-libsubdir=$(HOST_SUBDIR) \ | |
24421 | $(STAGEprofile_CONFIGURE_FLAGS) \ | |
24422 | --disable-shared | |
24423 | @endif libiconv-bootstrap | |
24424 | ||
24425 | .PHONY: configure-stagefeedback-libiconv maybe-configure-stagefeedback-libiconv | |
24426 | maybe-configure-stagefeedback-libiconv: | |
24427 | @if libiconv-bootstrap | |
24428 | maybe-configure-stagefeedback-libiconv: configure-stagefeedback-libiconv | |
24429 | configure-stagefeedback-libiconv: | |
24430 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
24431 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv | |
24432 | @r=`${PWD_COMMAND}`; export r; \ | |
24433 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24434 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
24435 | test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \ | |
24436 | $(HOST_EXPORTS) \ | |
24437 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
24438 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
24439 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
24440 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
24441 | echo Configuring stage feedback in $(HOST_SUBDIR)/libiconv; \ | |
24442 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \ | |
24443 | cd $(HOST_SUBDIR)/libiconv || exit 1; \ | |
24444 | case $(srcdir) in \ | |
24445 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
24446 | *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \ | |
24447 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
24448 | esac; \ | |
24449 | module_srcdir=libiconv; \ | |
24450 | $(SHELL) $$s/$$module_srcdir/configure \ | |
24451 | --srcdir=$${topdir}/$$module_srcdir \ | |
24452 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
24453 | --target=${target_alias} \ | |
24454 | --with-build-libsubdir=$(HOST_SUBDIR) \ | |
24455 | $(STAGEfeedback_CONFIGURE_FLAGS) \ | |
24456 | --disable-shared | |
24457 | @endif libiconv-bootstrap | |
24458 | ||
24459 | ||
24460 | ||
d545f33b PB |
24461 | |
24462 | ||
a90ef4bf JM |
24463 | .PHONY: all-libiconv maybe-all-libiconv |
24464 | maybe-all-libiconv: | |
4f0ef2d8 | 24465 | @if gcc-bootstrap |
a90ef4bf | 24466 | all-libiconv: stage_current |
4f0ef2d8 | 24467 | @endif gcc-bootstrap |
a90ef4bf JM |
24468 | @if libiconv |
24469 | TARGET-libiconv=all | |
24470 | maybe-all-libiconv: all-libiconv | |
24471 | all-libiconv: configure-libiconv | |
4fa63067 NN |
24472 | @r=`${PWD_COMMAND}`; export r; \ |
24473 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 24474 | $(HOST_EXPORTS) \ |
a90ef4bf | 24475 | (cd $(HOST_SUBDIR)/libiconv && \ |
b3676d82 | 24476 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
24477 | $(TARGET-libiconv)) |
24478 | @endif libiconv | |
2a4cbe27 | 24479 | |
a7254363 | 24480 | |
d545f33b | 24481 | |
016a3251 DD |
24482 | .PHONY: all-stage1-libiconv maybe-all-stage1-libiconv |
24483 | .PHONY: clean-stage1-libiconv maybe-clean-stage1-libiconv | |
24484 | maybe-all-stage1-libiconv: | |
24485 | maybe-clean-stage1-libiconv: | |
24486 | @if libiconv-bootstrap | |
24487 | maybe-all-stage1-libiconv: all-stage1-libiconv | |
24488 | all-stage1: all-stage1-libiconv | |
24489 | TARGET-stage1-libiconv = $(TARGET-libiconv) | |
24490 | all-stage1-libiconv: configure-stage1-libiconv | |
24491 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
24492 | @r=`${PWD_COMMAND}`; export r; \ | |
24493 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24494 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
24495 | $(HOST_EXPORTS) \ | |
24496 | cd $(HOST_SUBDIR)/libiconv && \ | |
05a13254 | 24497 | \ |
016a3251 DD |
24498 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
24499 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
24500 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
24501 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
24502 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
24503 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
24504 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
24505 | $(EXTRA_HOST_FLAGS) \ | |
24506 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 24507 | TFLAGS="$(STAGE1_TFLAGS)" \ |
016a3251 DD |
24508 | $(TARGET-stage1-libiconv) |
24509 | ||
24510 | maybe-clean-stage1-libiconv: clean-stage1-libiconv | |
24511 | clean-stage1: clean-stage1-libiconv | |
24512 | clean-stage1-libiconv: | |
24513 | @if [ $(current_stage) = stage1 ]; then \ | |
24514 | [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \ | |
24515 | else \ | |
24516 | [ -f $(HOST_SUBDIR)/stage1-libiconv/Makefile ] || exit 0; \ | |
24517 | $(MAKE) stage1-start; \ | |
24518 | fi; \ | |
24519 | cd $(HOST_SUBDIR)/libiconv && \ | |
24520 | $(MAKE) $(EXTRA_HOST_FLAGS) \ | |
24521 | $(STAGE1_FLAGS_TO_PASS) clean | |
24522 | @endif libiconv-bootstrap | |
24523 | ||
24524 | ||
24525 | .PHONY: all-stage2-libiconv maybe-all-stage2-libiconv | |
24526 | .PHONY: clean-stage2-libiconv maybe-clean-stage2-libiconv | |
24527 | maybe-all-stage2-libiconv: | |
24528 | maybe-clean-stage2-libiconv: | |
24529 | @if libiconv-bootstrap | |
24530 | maybe-all-stage2-libiconv: all-stage2-libiconv | |
24531 | all-stage2: all-stage2-libiconv | |
24532 | TARGET-stage2-libiconv = $(TARGET-libiconv) | |
24533 | all-stage2-libiconv: configure-stage2-libiconv | |
24534 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
24535 | @r=`${PWD_COMMAND}`; export r; \ | |
24536 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24537 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
24538 | $(HOST_EXPORTS) \ | |
24539 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
24540 | cd $(HOST_SUBDIR)/libiconv && \ | |
05a13254 | 24541 | \ |
016a3251 DD |
24542 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
24543 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
24544 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
24545 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
24546 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
24547 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
24548 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
24549 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 24550 | TFLAGS="$(STAGE2_TFLAGS)" \ |
016a3251 DD |
24551 | $(TARGET-stage2-libiconv) |
24552 | ||
24553 | maybe-clean-stage2-libiconv: clean-stage2-libiconv | |
24554 | clean-stage2: clean-stage2-libiconv | |
24555 | clean-stage2-libiconv: | |
24556 | @if [ $(current_stage) = stage2 ]; then \ | |
24557 | [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \ | |
24558 | else \ | |
24559 | [ -f $(HOST_SUBDIR)/stage2-libiconv/Makefile ] || exit 0; \ | |
24560 | $(MAKE) stage2-start; \ | |
24561 | fi; \ | |
24562 | cd $(HOST_SUBDIR)/libiconv && \ | |
24563 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean | |
24564 | @endif libiconv-bootstrap | |
24565 | ||
24566 | ||
24567 | .PHONY: all-stage3-libiconv maybe-all-stage3-libiconv | |
24568 | .PHONY: clean-stage3-libiconv maybe-clean-stage3-libiconv | |
24569 | maybe-all-stage3-libiconv: | |
24570 | maybe-clean-stage3-libiconv: | |
24571 | @if libiconv-bootstrap | |
24572 | maybe-all-stage3-libiconv: all-stage3-libiconv | |
24573 | all-stage3: all-stage3-libiconv | |
24574 | TARGET-stage3-libiconv = $(TARGET-libiconv) | |
24575 | all-stage3-libiconv: configure-stage3-libiconv | |
24576 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
24577 | @r=`${PWD_COMMAND}`; export r; \ | |
24578 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24579 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
24580 | $(HOST_EXPORTS) \ | |
24581 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
24582 | cd $(HOST_SUBDIR)/libiconv && \ | |
05a13254 | 24583 | \ |
016a3251 DD |
24584 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
24585 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
24586 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
24587 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
24588 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
24589 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
24590 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
24591 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 24592 | TFLAGS="$(STAGE3_TFLAGS)" \ |
016a3251 DD |
24593 | $(TARGET-stage3-libiconv) |
24594 | ||
24595 | maybe-clean-stage3-libiconv: clean-stage3-libiconv | |
24596 | clean-stage3: clean-stage3-libiconv | |
24597 | clean-stage3-libiconv: | |
24598 | @if [ $(current_stage) = stage3 ]; then \ | |
24599 | [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \ | |
24600 | else \ | |
24601 | [ -f $(HOST_SUBDIR)/stage3-libiconv/Makefile ] || exit 0; \ | |
24602 | $(MAKE) stage3-start; \ | |
24603 | fi; \ | |
24604 | cd $(HOST_SUBDIR)/libiconv && \ | |
24605 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean | |
24606 | @endif libiconv-bootstrap | |
24607 | ||
24608 | ||
24609 | .PHONY: all-stage4-libiconv maybe-all-stage4-libiconv | |
24610 | .PHONY: clean-stage4-libiconv maybe-clean-stage4-libiconv | |
24611 | maybe-all-stage4-libiconv: | |
24612 | maybe-clean-stage4-libiconv: | |
24613 | @if libiconv-bootstrap | |
24614 | maybe-all-stage4-libiconv: all-stage4-libiconv | |
24615 | all-stage4: all-stage4-libiconv | |
24616 | TARGET-stage4-libiconv = $(TARGET-libiconv) | |
24617 | all-stage4-libiconv: configure-stage4-libiconv | |
24618 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
24619 | @r=`${PWD_COMMAND}`; export r; \ | |
24620 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24621 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
24622 | $(HOST_EXPORTS) \ | |
24623 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
24624 | cd $(HOST_SUBDIR)/libiconv && \ | |
05a13254 | 24625 | \ |
016a3251 DD |
24626 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
24627 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
24628 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
24629 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
24630 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
24631 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
24632 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
24633 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 24634 | TFLAGS="$(STAGE4_TFLAGS)" \ |
016a3251 DD |
24635 | $(TARGET-stage4-libiconv) |
24636 | ||
24637 | maybe-clean-stage4-libiconv: clean-stage4-libiconv | |
24638 | clean-stage4: clean-stage4-libiconv | |
24639 | clean-stage4-libiconv: | |
24640 | @if [ $(current_stage) = stage4 ]; then \ | |
24641 | [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \ | |
24642 | else \ | |
24643 | [ -f $(HOST_SUBDIR)/stage4-libiconv/Makefile ] || exit 0; \ | |
24644 | $(MAKE) stage4-start; \ | |
24645 | fi; \ | |
24646 | cd $(HOST_SUBDIR)/libiconv && \ | |
24647 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean | |
24648 | @endif libiconv-bootstrap | |
24649 | ||
24650 | ||
24651 | .PHONY: all-stageprofile-libiconv maybe-all-stageprofile-libiconv | |
24652 | .PHONY: clean-stageprofile-libiconv maybe-clean-stageprofile-libiconv | |
24653 | maybe-all-stageprofile-libiconv: | |
24654 | maybe-clean-stageprofile-libiconv: | |
24655 | @if libiconv-bootstrap | |
24656 | maybe-all-stageprofile-libiconv: all-stageprofile-libiconv | |
24657 | all-stageprofile: all-stageprofile-libiconv | |
24658 | TARGET-stageprofile-libiconv = $(TARGET-libiconv) | |
24659 | all-stageprofile-libiconv: configure-stageprofile-libiconv | |
24660 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
24661 | @r=`${PWD_COMMAND}`; export r; \ | |
24662 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24663 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
24664 | $(HOST_EXPORTS) \ | |
24665 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
24666 | cd $(HOST_SUBDIR)/libiconv && \ | |
05a13254 | 24667 | \ |
016a3251 DD |
24668 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
24669 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
24670 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
24671 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
24672 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
24673 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
24674 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
24675 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 24676 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
016a3251 DD |
24677 | $(TARGET-stageprofile-libiconv) |
24678 | ||
24679 | maybe-clean-stageprofile-libiconv: clean-stageprofile-libiconv | |
24680 | clean-stageprofile: clean-stageprofile-libiconv | |
24681 | clean-stageprofile-libiconv: | |
24682 | @if [ $(current_stage) = stageprofile ]; then \ | |
24683 | [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \ | |
24684 | else \ | |
24685 | [ -f $(HOST_SUBDIR)/stageprofile-libiconv/Makefile ] || exit 0; \ | |
24686 | $(MAKE) stageprofile-start; \ | |
24687 | fi; \ | |
24688 | cd $(HOST_SUBDIR)/libiconv && \ | |
24689 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean | |
24690 | @endif libiconv-bootstrap | |
24691 | ||
24692 | ||
24693 | .PHONY: all-stagefeedback-libiconv maybe-all-stagefeedback-libiconv | |
24694 | .PHONY: clean-stagefeedback-libiconv maybe-clean-stagefeedback-libiconv | |
24695 | maybe-all-stagefeedback-libiconv: | |
24696 | maybe-clean-stagefeedback-libiconv: | |
24697 | @if libiconv-bootstrap | |
24698 | maybe-all-stagefeedback-libiconv: all-stagefeedback-libiconv | |
24699 | all-stagefeedback: all-stagefeedback-libiconv | |
24700 | TARGET-stagefeedback-libiconv = $(TARGET-libiconv) | |
24701 | all-stagefeedback-libiconv: configure-stagefeedback-libiconv | |
24702 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
24703 | @r=`${PWD_COMMAND}`; export r; \ | |
24704 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24705 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
24706 | $(HOST_EXPORTS) \ | |
24707 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
24708 | cd $(HOST_SUBDIR)/libiconv && \ | |
05a13254 | 24709 | \ |
016a3251 DD |
24710 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
24711 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
24712 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
24713 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
24714 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
24715 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
24716 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
24717 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 24718 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
016a3251 DD |
24719 | $(TARGET-stagefeedback-libiconv) |
24720 | ||
24721 | maybe-clean-stagefeedback-libiconv: clean-stagefeedback-libiconv | |
24722 | clean-stagefeedback: clean-stagefeedback-libiconv | |
24723 | clean-stagefeedback-libiconv: | |
24724 | @if [ $(current_stage) = stagefeedback ]; then \ | |
24725 | [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \ | |
24726 | else \ | |
24727 | [ -f $(HOST_SUBDIR)/stagefeedback-libiconv/Makefile ] || exit 0; \ | |
24728 | $(MAKE) stagefeedback-start; \ | |
24729 | fi; \ | |
24730 | cd $(HOST_SUBDIR)/libiconv && \ | |
24731 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean | |
24732 | @endif libiconv-bootstrap | |
24733 | ||
24734 | ||
24735 | ||
24736 | ||
d545f33b | 24737 | |
a90ef4bf JM |
24738 | .PHONY: check-libiconv maybe-check-libiconv |
24739 | maybe-check-libiconv: | |
24740 | @if libiconv | |
24741 | maybe-check-libiconv: check-libiconv | |
2a4cbe27 | 24742 | |
a90ef4bf | 24743 | check-libiconv: |
0aed8855 | 24744 | @: $(MAKE); $(unstage) |
4fa63067 | 24745 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 24746 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
016a3251 | 24747 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 24748 | (cd $(HOST_SUBDIR)/libiconv && \ |
016a3251 | 24749 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check) |
2a4cbe27 | 24750 | |
a90ef4bf | 24751 | @endif libiconv |
4fa63067 | 24752 | |
a90ef4bf JM |
24753 | .PHONY: install-libiconv maybe-install-libiconv |
24754 | maybe-install-libiconv: | |
24755 | @if libiconv | |
24756 | maybe-install-libiconv: install-libiconv | |
2a4cbe27 | 24757 | |
a90ef4bf | 24758 | install-libiconv: |
2a4cbe27 | 24759 | |
a90ef4bf | 24760 | @endif libiconv |
9b980aa1 | 24761 | |
a90ef4bf JM |
24762 | .PHONY: install-strip-libiconv maybe-install-strip-libiconv |
24763 | maybe-install-strip-libiconv: | |
24764 | @if libiconv | |
24765 | maybe-install-strip-libiconv: install-strip-libiconv | |
9b980aa1 | 24766 | |
a90ef4bf JM |
24767 | install-strip-libiconv: |
24768 | ||
24769 | @endif libiconv | |
9b980aa1 | 24770 | |
56a8fe78 | 24771 | # Other targets (info, dvi, pdf, etc.) |
2a4cbe27 | 24772 | |
a90ef4bf JM |
24773 | .PHONY: maybe-info-libiconv info-libiconv |
24774 | maybe-info-libiconv: | |
24775 | @if libiconv | |
24776 | maybe-info-libiconv: info-libiconv | |
4fa63067 | 24777 | |
016a3251 DD |
24778 | # libiconv doesn't support info. |
24779 | info-libiconv: | |
2a4cbe27 | 24780 | |
a90ef4bf | 24781 | @endif libiconv |
2a4cbe27 | 24782 | |
a90ef4bf JM |
24783 | .PHONY: maybe-dvi-libiconv dvi-libiconv |
24784 | maybe-dvi-libiconv: | |
24785 | @if libiconv | |
24786 | maybe-dvi-libiconv: dvi-libiconv | |
2a4cbe27 | 24787 | |
a90ef4bf JM |
24788 | dvi-libiconv: \ |
24789 | configure-libiconv | |
a90ef4bf | 24790 | @[ -f ./libiconv/Makefile ] || exit 0; \ |
b40e3958 L |
24791 | r=`${PWD_COMMAND}`; export r; \ |
24792 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24793 | $(HOST_EXPORTS) \ |
b813574b | 24794 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
24795 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24796 | done; \ | |
22121df0 | 24797 | echo "Doing dvi in libiconv"; \ |
a90ef4bf | 24798 | (cd $(HOST_SUBDIR)/libiconv && \ |
2a4cbe27 NN |
24799 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24800 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24801 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 24802 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 24803 | dvi) \ |
2a4cbe27 NN |
24804 | || exit 1 |
24805 | ||
a90ef4bf | 24806 | @endif libiconv |
2a4cbe27 | 24807 | |
a90ef4bf JM |
24808 | .PHONY: maybe-pdf-libiconv pdf-libiconv |
24809 | maybe-pdf-libiconv: | |
24810 | @if libiconv | |
24811 | maybe-pdf-libiconv: pdf-libiconv | |
56a8fe78 | 24812 | |
016a3251 DD |
24813 | # libiconv doesn't support pdf. |
24814 | pdf-libiconv: | |
56a8fe78 | 24815 | |
a90ef4bf | 24816 | @endif libiconv |
56a8fe78 | 24817 | |
a90ef4bf JM |
24818 | .PHONY: maybe-html-libiconv html-libiconv |
24819 | maybe-html-libiconv: | |
24820 | @if libiconv | |
24821 | maybe-html-libiconv: html-libiconv | |
6d389afc | 24822 | |
016a3251 DD |
24823 | # libiconv doesn't support html. |
24824 | html-libiconv: | |
6d389afc | 24825 | |
a90ef4bf | 24826 | @endif libiconv |
6d389afc | 24827 | |
a90ef4bf JM |
24828 | .PHONY: maybe-TAGS-libiconv TAGS-libiconv |
24829 | maybe-TAGS-libiconv: | |
24830 | @if libiconv | |
24831 | maybe-TAGS-libiconv: TAGS-libiconv | |
2a4cbe27 | 24832 | |
a90ef4bf JM |
24833 | TAGS-libiconv: \ |
24834 | configure-libiconv | |
a90ef4bf | 24835 | @[ -f ./libiconv/Makefile ] || exit 0; \ |
b40e3958 L |
24836 | r=`${PWD_COMMAND}`; export r; \ |
24837 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24838 | $(HOST_EXPORTS) \ |
b813574b | 24839 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
24840 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24841 | done; \ | |
22121df0 | 24842 | echo "Doing TAGS in libiconv"; \ |
a90ef4bf | 24843 | (cd $(HOST_SUBDIR)/libiconv && \ |
2a4cbe27 NN |
24844 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24845 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24846 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 24847 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 24848 | TAGS) \ |
2a4cbe27 NN |
24849 | || exit 1 |
24850 | ||
a90ef4bf | 24851 | @endif libiconv |
2a4cbe27 | 24852 | |
a90ef4bf JM |
24853 | .PHONY: maybe-install-info-libiconv install-info-libiconv |
24854 | maybe-install-info-libiconv: | |
24855 | @if libiconv | |
24856 | maybe-install-info-libiconv: install-info-libiconv | |
2a4cbe27 | 24857 | |
a90ef4bf JM |
24858 | # libiconv doesn't support install-info. |
24859 | install-info-libiconv: | |
2a4cbe27 | 24860 | |
a90ef4bf | 24861 | @endif libiconv |
2a4cbe27 | 24862 | |
a90ef4bf JM |
24863 | .PHONY: maybe-install-pdf-libiconv install-pdf-libiconv |
24864 | maybe-install-pdf-libiconv: | |
24865 | @if libiconv | |
24866 | maybe-install-pdf-libiconv: install-pdf-libiconv | |
a3ca38d2 | 24867 | |
a90ef4bf JM |
24868 | # libiconv doesn't support install-pdf. |
24869 | install-pdf-libiconv: | |
a3ca38d2 | 24870 | |
a90ef4bf | 24871 | @endif libiconv |
a3ca38d2 | 24872 | |
a90ef4bf JM |
24873 | .PHONY: maybe-install-html-libiconv install-html-libiconv |
24874 | maybe-install-html-libiconv: | |
24875 | @if libiconv | |
24876 | maybe-install-html-libiconv: install-html-libiconv | |
108a6f8e | 24877 | |
a90ef4bf JM |
24878 | # libiconv doesn't support install-html. |
24879 | install-html-libiconv: | |
108a6f8e | 24880 | |
a90ef4bf | 24881 | @endif libiconv |
108a6f8e | 24882 | |
a90ef4bf JM |
24883 | .PHONY: maybe-installcheck-libiconv installcheck-libiconv |
24884 | maybe-installcheck-libiconv: | |
24885 | @if libiconv | |
24886 | maybe-installcheck-libiconv: installcheck-libiconv | |
2a4cbe27 | 24887 | |
a90ef4bf JM |
24888 | installcheck-libiconv: \ |
24889 | configure-libiconv | |
a90ef4bf | 24890 | @[ -f ./libiconv/Makefile ] || exit 0; \ |
b40e3958 L |
24891 | r=`${PWD_COMMAND}`; export r; \ |
24892 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24893 | $(HOST_EXPORTS) \ |
b813574b | 24894 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
24895 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24896 | done; \ | |
22121df0 | 24897 | echo "Doing installcheck in libiconv"; \ |
a90ef4bf | 24898 | (cd $(HOST_SUBDIR)/libiconv && \ |
2a4cbe27 NN |
24899 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24900 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24901 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 24902 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 24903 | installcheck) \ |
2a4cbe27 NN |
24904 | || exit 1 |
24905 | ||
a90ef4bf | 24906 | @endif libiconv |
2a4cbe27 | 24907 | |
a90ef4bf JM |
24908 | .PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv |
24909 | maybe-mostlyclean-libiconv: | |
24910 | @if libiconv | |
24911 | maybe-mostlyclean-libiconv: mostlyclean-libiconv | |
2a4cbe27 | 24912 | |
a90ef4bf | 24913 | mostlyclean-libiconv: |
a90ef4bf | 24914 | @[ -f ./libiconv/Makefile ] || exit 0; \ |
b40e3958 L |
24915 | r=`${PWD_COMMAND}`; export r; \ |
24916 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24917 | $(HOST_EXPORTS) \ |
b813574b | 24918 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
24919 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24920 | done; \ | |
22121df0 | 24921 | echo "Doing mostlyclean in libiconv"; \ |
a90ef4bf | 24922 | (cd $(HOST_SUBDIR)/libiconv && \ |
2a4cbe27 NN |
24923 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24924 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24925 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 24926 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 24927 | mostlyclean) \ |
2a4cbe27 NN |
24928 | || exit 1 |
24929 | ||
a90ef4bf | 24930 | @endif libiconv |
2a4cbe27 | 24931 | |
a90ef4bf JM |
24932 | .PHONY: maybe-clean-libiconv clean-libiconv |
24933 | maybe-clean-libiconv: | |
24934 | @if libiconv | |
24935 | maybe-clean-libiconv: clean-libiconv | |
2a4cbe27 | 24936 | |
a90ef4bf | 24937 | clean-libiconv: |
a90ef4bf | 24938 | @[ -f ./libiconv/Makefile ] || exit 0; \ |
b40e3958 L |
24939 | r=`${PWD_COMMAND}`; export r; \ |
24940 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24941 | $(HOST_EXPORTS) \ |
b813574b | 24942 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
24943 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24944 | done; \ | |
22121df0 | 24945 | echo "Doing clean in libiconv"; \ |
a90ef4bf | 24946 | (cd $(HOST_SUBDIR)/libiconv && \ |
2a4cbe27 NN |
24947 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24948 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24949 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 24950 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 24951 | clean) \ |
2a4cbe27 NN |
24952 | || exit 1 |
24953 | ||
a90ef4bf | 24954 | @endif libiconv |
2a4cbe27 | 24955 | |
a90ef4bf JM |
24956 | .PHONY: maybe-distclean-libiconv distclean-libiconv |
24957 | maybe-distclean-libiconv: | |
24958 | @if libiconv | |
24959 | maybe-distclean-libiconv: distclean-libiconv | |
2a4cbe27 | 24960 | |
a90ef4bf | 24961 | distclean-libiconv: |
a90ef4bf | 24962 | @[ -f ./libiconv/Makefile ] || exit 0; \ |
b40e3958 L |
24963 | r=`${PWD_COMMAND}`; export r; \ |
24964 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24965 | $(HOST_EXPORTS) \ |
b813574b | 24966 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
24967 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24968 | done; \ | |
22121df0 | 24969 | echo "Doing distclean in libiconv"; \ |
a90ef4bf | 24970 | (cd $(HOST_SUBDIR)/libiconv && \ |
2a4cbe27 NN |
24971 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24972 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24973 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 24974 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 24975 | distclean) \ |
2a4cbe27 NN |
24976 | || exit 1 |
24977 | ||
a90ef4bf | 24978 | @endif libiconv |
2a4cbe27 | 24979 | |
a90ef4bf JM |
24980 | .PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv |
24981 | maybe-maintainer-clean-libiconv: | |
24982 | @if libiconv | |
24983 | maybe-maintainer-clean-libiconv: maintainer-clean-libiconv | |
2a4cbe27 | 24984 | |
a90ef4bf | 24985 | maintainer-clean-libiconv: |
a90ef4bf | 24986 | @[ -f ./libiconv/Makefile ] || exit 0; \ |
b40e3958 L |
24987 | r=`${PWD_COMMAND}`; export r; \ |
24988 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24989 | $(HOST_EXPORTS) \ |
b813574b | 24990 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
24991 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24992 | done; \ | |
22121df0 | 24993 | echo "Doing maintainer-clean in libiconv"; \ |
a90ef4bf | 24994 | (cd $(HOST_SUBDIR)/libiconv && \ |
2a4cbe27 NN |
24995 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24996 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24997 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 24998 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 24999 | maintainer-clean) \ |
2a4cbe27 NN |
25000 | || exit 1 |
25001 | ||
a90ef4bf | 25002 | @endif libiconv |
2a4cbe27 | 25003 | |
2a4cbe27 | 25004 | |
a7254363 | 25005 | |
a90ef4bf JM |
25006 | .PHONY: configure-m4 maybe-configure-m4 |
25007 | maybe-configure-m4: | |
4f0ef2d8 | 25008 | @if gcc-bootstrap |
a90ef4bf | 25009 | configure-m4: stage_current |
4f0ef2d8 | 25010 | @endif gcc-bootstrap |
a90ef4bf JM |
25011 | @if m4 |
25012 | maybe-configure-m4: configure-m4 | |
25013 | configure-m4: | |
0aed8855 | 25014 | @: $(MAKE); $(unstage) |
c52c6897 | 25015 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 25016 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 25017 | test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \ |
22121df0 | 25018 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4; \ |
1f53ca9a | 25019 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
25020 | echo Configuring in $(HOST_SUBDIR)/m4; \ |
25021 | cd "$(HOST_SUBDIR)/m4" || exit 1; \ | |
4fa63067 | 25022 | case $(srcdir) in \ |
b00612cc | 25023 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 25024 | *) topdir=`echo $(HOST_SUBDIR)/m4/ | \ |
b00612cc | 25025 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 25026 | esac; \ |
1b6c0831 L |
25027 | module_srcdir=m4; \ |
25028 | $(SHELL) \ | |
25029 | $$s/$$module_srcdir/configure \ | |
25030 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 25031 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 25032 | --target=${target_alias} \ |
2a4cbe27 | 25033 | || exit 1 |
a90ef4bf | 25034 | @endif m4 |
2a4cbe27 | 25035 | |
a7254363 PB |
25036 | |
25037 | ||
d545f33b PB |
25038 | |
25039 | ||
a90ef4bf JM |
25040 | .PHONY: all-m4 maybe-all-m4 |
25041 | maybe-all-m4: | |
4f0ef2d8 | 25042 | @if gcc-bootstrap |
a90ef4bf | 25043 | all-m4: stage_current |
4f0ef2d8 | 25044 | @endif gcc-bootstrap |
a90ef4bf JM |
25045 | @if m4 |
25046 | TARGET-m4=all | |
25047 | maybe-all-m4: all-m4 | |
25048 | all-m4: configure-m4 | |
0aed8855 | 25049 | @: $(MAKE); $(unstage) |
4fa63067 NN |
25050 | @r=`${PWD_COMMAND}`; export r; \ |
25051 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 25052 | $(HOST_EXPORTS) \ |
a90ef4bf | 25053 | (cd $(HOST_SUBDIR)/m4 && \ |
b3676d82 | 25054 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
25055 | $(TARGET-m4)) |
25056 | @endif m4 | |
2a4cbe27 | 25057 | |
a7254363 | 25058 | |
d545f33b PB |
25059 | |
25060 | ||
a90ef4bf JM |
25061 | .PHONY: check-m4 maybe-check-m4 |
25062 | maybe-check-m4: | |
25063 | @if m4 | |
25064 | maybe-check-m4: check-m4 | |
2a4cbe27 | 25065 | |
a90ef4bf | 25066 | check-m4: |
0aed8855 | 25067 | @: $(MAKE); $(unstage) |
4fa63067 | 25068 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 25069 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
f91ca6bc | 25070 | $(HOST_EXPORTS) \ |
a90ef4bf | 25071 | (cd $(HOST_SUBDIR)/m4 && \ |
b00612cc | 25072 | $(MAKE) $(FLAGS_TO_PASS) check) |
2a4cbe27 | 25073 | |
a90ef4bf | 25074 | @endif m4 |
2a4cbe27 | 25075 | |
a90ef4bf JM |
25076 | .PHONY: install-m4 maybe-install-m4 |
25077 | maybe-install-m4: | |
25078 | @if m4 | |
25079 | maybe-install-m4: install-m4 | |
2a4cbe27 | 25080 | |
a90ef4bf | 25081 | install-m4: installdirs |
0aed8855 | 25082 | @: $(MAKE); $(unstage) |
4fa63067 | 25083 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 25084 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25085 | $(HOST_EXPORTS) \ |
a90ef4bf | 25086 | (cd $(HOST_SUBDIR)/m4 && \ |
2da12f12 | 25087 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 25088 | |
a90ef4bf | 25089 | @endif m4 |
2a4cbe27 | 25090 | |
a90ef4bf JM |
25091 | .PHONY: install-strip-m4 maybe-install-strip-m4 |
25092 | maybe-install-strip-m4: | |
25093 | @if m4 | |
25094 | maybe-install-strip-m4: install-strip-m4 | |
9b980aa1 | 25095 | |
a90ef4bf | 25096 | install-strip-m4: installdirs |
9b980aa1 RW |
25097 | @: $(MAKE); $(unstage) |
25098 | @r=`${PWD_COMMAND}`; export r; \ | |
25099 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
25100 | $(HOST_EXPORTS) \ | |
a90ef4bf | 25101 | (cd $(HOST_SUBDIR)/m4 && \ |
9b980aa1 RW |
25102 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
25103 | ||
a90ef4bf | 25104 | @endif m4 |
9b980aa1 | 25105 | |
56a8fe78 | 25106 | # Other targets (info, dvi, pdf, etc.) |
2a4cbe27 | 25107 | |
a90ef4bf JM |
25108 | .PHONY: maybe-info-m4 info-m4 |
25109 | maybe-info-m4: | |
25110 | @if m4 | |
25111 | maybe-info-m4: info-m4 | |
4fa63067 | 25112 | |
a90ef4bf JM |
25113 | info-m4: \ |
25114 | configure-m4 | |
0aed8855 | 25115 | @: $(MAKE); $(unstage) |
a90ef4bf | 25116 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
25117 | r=`${PWD_COMMAND}`; export r; \ |
25118 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25119 | $(HOST_EXPORTS) \ |
b813574b | 25120 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25121 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25122 | done; \ | |
22121df0 | 25123 | echo "Doing info in m4"; \ |
a90ef4bf | 25124 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
25125 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25126 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25127 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25128 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25129 | info) \ |
2a4cbe27 NN |
25130 | || exit 1 |
25131 | ||
a90ef4bf | 25132 | @endif m4 |
2a4cbe27 | 25133 | |
a90ef4bf JM |
25134 | .PHONY: maybe-dvi-m4 dvi-m4 |
25135 | maybe-dvi-m4: | |
25136 | @if m4 | |
25137 | maybe-dvi-m4: dvi-m4 | |
2a4cbe27 | 25138 | |
a90ef4bf JM |
25139 | dvi-m4: \ |
25140 | configure-m4 | |
0aed8855 | 25141 | @: $(MAKE); $(unstage) |
a90ef4bf | 25142 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
25143 | r=`${PWD_COMMAND}`; export r; \ |
25144 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25145 | $(HOST_EXPORTS) \ |
b813574b | 25146 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25147 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25148 | done; \ | |
22121df0 | 25149 | echo "Doing dvi in m4"; \ |
a90ef4bf | 25150 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
25151 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25152 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25153 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25154 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25155 | dvi) \ |
2a4cbe27 NN |
25156 | || exit 1 |
25157 | ||
a90ef4bf | 25158 | @endif m4 |
2a4cbe27 | 25159 | |
a90ef4bf JM |
25160 | .PHONY: maybe-pdf-m4 pdf-m4 |
25161 | maybe-pdf-m4: | |
25162 | @if m4 | |
25163 | maybe-pdf-m4: pdf-m4 | |
56a8fe78 | 25164 | |
a90ef4bf JM |
25165 | pdf-m4: \ |
25166 | configure-m4 | |
56a8fe78 | 25167 | @: $(MAKE); $(unstage) |
a90ef4bf | 25168 | @[ -f ./m4/Makefile ] || exit 0; \ |
56a8fe78 DD |
25169 | r=`${PWD_COMMAND}`; export r; \ |
25170 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
25171 | $(HOST_EXPORTS) \ | |
25172 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
25173 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25174 | done; \ | |
22121df0 | 25175 | echo "Doing pdf in m4"; \ |
a90ef4bf | 25176 | (cd $(HOST_SUBDIR)/m4 && \ |
56a8fe78 DD |
25177 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25178 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25179 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25180 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
25181 | pdf) \ |
25182 | || exit 1 | |
25183 | ||
a90ef4bf | 25184 | @endif m4 |
56a8fe78 | 25185 | |
a90ef4bf JM |
25186 | .PHONY: maybe-html-m4 html-m4 |
25187 | maybe-html-m4: | |
25188 | @if m4 | |
25189 | maybe-html-m4: html-m4 | |
6d389afc | 25190 | |
a90ef4bf JM |
25191 | html-m4: \ |
25192 | configure-m4 | |
0aed8855 | 25193 | @: $(MAKE); $(unstage) |
a90ef4bf | 25194 | @[ -f ./m4/Makefile ] || exit 0; \ |
6d389afc MS |
25195 | r=`${PWD_COMMAND}`; export r; \ |
25196 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
25197 | $(HOST_EXPORTS) \ |
25198 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
25199 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25200 | done; \ | |
22121df0 | 25201 | echo "Doing html in m4"; \ |
a90ef4bf | 25202 | (cd $(HOST_SUBDIR)/m4 && \ |
6d389afc MS |
25203 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25204 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25205 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25206 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
25207 | html) \ |
25208 | || exit 1 | |
25209 | ||
a90ef4bf | 25210 | @endif m4 |
6d389afc | 25211 | |
a90ef4bf JM |
25212 | .PHONY: maybe-TAGS-m4 TAGS-m4 |
25213 | maybe-TAGS-m4: | |
25214 | @if m4 | |
25215 | maybe-TAGS-m4: TAGS-m4 | |
2a4cbe27 | 25216 | |
a90ef4bf JM |
25217 | TAGS-m4: \ |
25218 | configure-m4 | |
0aed8855 | 25219 | @: $(MAKE); $(unstage) |
a90ef4bf | 25220 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
25221 | r=`${PWD_COMMAND}`; export r; \ |
25222 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25223 | $(HOST_EXPORTS) \ |
b813574b | 25224 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25225 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25226 | done; \ | |
22121df0 | 25227 | echo "Doing TAGS in m4"; \ |
a90ef4bf | 25228 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
25229 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25230 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25231 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25232 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25233 | TAGS) \ |
2a4cbe27 NN |
25234 | || exit 1 |
25235 | ||
a90ef4bf | 25236 | @endif m4 |
2a4cbe27 | 25237 | |
a90ef4bf JM |
25238 | .PHONY: maybe-install-info-m4 install-info-m4 |
25239 | maybe-install-info-m4: | |
25240 | @if m4 | |
25241 | maybe-install-info-m4: install-info-m4 | |
2a4cbe27 | 25242 | |
a90ef4bf JM |
25243 | install-info-m4: \ |
25244 | configure-m4 \ | |
25245 | info-m4 | |
0aed8855 | 25246 | @: $(MAKE); $(unstage) |
a90ef4bf | 25247 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
25248 | r=`${PWD_COMMAND}`; export r; \ |
25249 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25250 | $(HOST_EXPORTS) \ |
b813574b | 25251 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25252 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25253 | done; \ | |
22121df0 | 25254 | echo "Doing install-info in m4"; \ |
a90ef4bf | 25255 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
25256 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25257 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25258 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25259 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25260 | install-info) \ |
2a4cbe27 NN |
25261 | || exit 1 |
25262 | ||
a90ef4bf | 25263 | @endif m4 |
2a4cbe27 | 25264 | |
a90ef4bf JM |
25265 | .PHONY: maybe-install-pdf-m4 install-pdf-m4 |
25266 | maybe-install-pdf-m4: | |
25267 | @if m4 | |
25268 | maybe-install-pdf-m4: install-pdf-m4 | |
a3ca38d2 | 25269 | |
a90ef4bf JM |
25270 | install-pdf-m4: \ |
25271 | configure-m4 \ | |
25272 | pdf-m4 | |
a3ca38d2 | 25273 | @: $(MAKE); $(unstage) |
a90ef4bf | 25274 | @[ -f ./m4/Makefile ] || exit 0; \ |
a3ca38d2 DD |
25275 | r=`${PWD_COMMAND}`; export r; \ |
25276 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
25277 | $(HOST_EXPORTS) \ | |
25278 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
25279 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25280 | done; \ | |
22121df0 | 25281 | echo "Doing install-pdf in m4"; \ |
a90ef4bf | 25282 | (cd $(HOST_SUBDIR)/m4 && \ |
a3ca38d2 DD |
25283 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25284 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25285 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25286 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
25287 | install-pdf) \ |
25288 | || exit 1 | |
25289 | ||
a90ef4bf | 25290 | @endif m4 |
a3ca38d2 | 25291 | |
a90ef4bf JM |
25292 | .PHONY: maybe-install-html-m4 install-html-m4 |
25293 | maybe-install-html-m4: | |
25294 | @if m4 | |
25295 | maybe-install-html-m4: install-html-m4 | |
108a6f8e | 25296 | |
a90ef4bf JM |
25297 | install-html-m4: \ |
25298 | configure-m4 \ | |
25299 | html-m4 | |
108a6f8e | 25300 | @: $(MAKE); $(unstage) |
a90ef4bf | 25301 | @[ -f ./m4/Makefile ] || exit 0; \ |
108a6f8e CD |
25302 | r=`${PWD_COMMAND}`; export r; \ |
25303 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
25304 | $(HOST_EXPORTS) \ | |
25305 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
25306 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25307 | done; \ | |
22121df0 | 25308 | echo "Doing install-html in m4"; \ |
a90ef4bf | 25309 | (cd $(HOST_SUBDIR)/m4 && \ |
108a6f8e CD |
25310 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25311 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25312 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25313 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
25314 | install-html) \ |
25315 | || exit 1 | |
25316 | ||
a90ef4bf | 25317 | @endif m4 |
108a6f8e | 25318 | |
a90ef4bf JM |
25319 | .PHONY: maybe-installcheck-m4 installcheck-m4 |
25320 | maybe-installcheck-m4: | |
25321 | @if m4 | |
25322 | maybe-installcheck-m4: installcheck-m4 | |
2a4cbe27 | 25323 | |
a90ef4bf JM |
25324 | installcheck-m4: \ |
25325 | configure-m4 | |
0aed8855 | 25326 | @: $(MAKE); $(unstage) |
a90ef4bf | 25327 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
25328 | r=`${PWD_COMMAND}`; export r; \ |
25329 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25330 | $(HOST_EXPORTS) \ |
b813574b | 25331 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25332 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25333 | done; \ | |
22121df0 | 25334 | echo "Doing installcheck in m4"; \ |
a90ef4bf | 25335 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
25336 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25337 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25338 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25339 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25340 | installcheck) \ |
2a4cbe27 NN |
25341 | || exit 1 |
25342 | ||
a90ef4bf | 25343 | @endif m4 |
2a4cbe27 | 25344 | |
a90ef4bf JM |
25345 | .PHONY: maybe-mostlyclean-m4 mostlyclean-m4 |
25346 | maybe-mostlyclean-m4: | |
25347 | @if m4 | |
25348 | maybe-mostlyclean-m4: mostlyclean-m4 | |
2a4cbe27 | 25349 | |
a90ef4bf | 25350 | mostlyclean-m4: |
0aed8855 | 25351 | @: $(MAKE); $(unstage) |
a90ef4bf | 25352 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
25353 | r=`${PWD_COMMAND}`; export r; \ |
25354 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25355 | $(HOST_EXPORTS) \ |
b813574b | 25356 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25357 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25358 | done; \ | |
22121df0 | 25359 | echo "Doing mostlyclean in m4"; \ |
a90ef4bf | 25360 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
25361 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25362 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25363 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25364 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25365 | mostlyclean) \ |
2a4cbe27 NN |
25366 | || exit 1 |
25367 | ||
a90ef4bf | 25368 | @endif m4 |
2a4cbe27 | 25369 | |
a90ef4bf JM |
25370 | .PHONY: maybe-clean-m4 clean-m4 |
25371 | maybe-clean-m4: | |
25372 | @if m4 | |
25373 | maybe-clean-m4: clean-m4 | |
2a4cbe27 | 25374 | |
a90ef4bf | 25375 | clean-m4: |
0aed8855 | 25376 | @: $(MAKE); $(unstage) |
a90ef4bf | 25377 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
25378 | r=`${PWD_COMMAND}`; export r; \ |
25379 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25380 | $(HOST_EXPORTS) \ |
b813574b | 25381 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25382 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25383 | done; \ | |
22121df0 | 25384 | echo "Doing clean in m4"; \ |
a90ef4bf | 25385 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
25386 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25387 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25388 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25389 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25390 | clean) \ |
2a4cbe27 NN |
25391 | || exit 1 |
25392 | ||
a90ef4bf | 25393 | @endif m4 |
2a4cbe27 | 25394 | |
a90ef4bf JM |
25395 | .PHONY: maybe-distclean-m4 distclean-m4 |
25396 | maybe-distclean-m4: | |
25397 | @if m4 | |
25398 | maybe-distclean-m4: distclean-m4 | |
2a4cbe27 | 25399 | |
a90ef4bf | 25400 | distclean-m4: |
0aed8855 | 25401 | @: $(MAKE); $(unstage) |
a90ef4bf | 25402 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
25403 | r=`${PWD_COMMAND}`; export r; \ |
25404 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25405 | $(HOST_EXPORTS) \ |
b813574b | 25406 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25407 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25408 | done; \ | |
22121df0 | 25409 | echo "Doing distclean in m4"; \ |
a90ef4bf | 25410 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
25411 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25412 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25413 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25414 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25415 | distclean) \ |
2a4cbe27 NN |
25416 | || exit 1 |
25417 | ||
a90ef4bf | 25418 | @endif m4 |
2a4cbe27 | 25419 | |
a90ef4bf JM |
25420 | .PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4 |
25421 | maybe-maintainer-clean-m4: | |
25422 | @if m4 | |
25423 | maybe-maintainer-clean-m4: maintainer-clean-m4 | |
2a4cbe27 | 25424 | |
a90ef4bf | 25425 | maintainer-clean-m4: |
0aed8855 | 25426 | @: $(MAKE); $(unstage) |
a90ef4bf | 25427 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
25428 | r=`${PWD_COMMAND}`; export r; \ |
25429 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25430 | $(HOST_EXPORTS) \ |
b813574b | 25431 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25432 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25433 | done; \ | |
22121df0 | 25434 | echo "Doing maintainer-clean in m4"; \ |
a90ef4bf | 25435 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
25436 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25437 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25438 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25439 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25440 | maintainer-clean) \ |
2a4cbe27 NN |
25441 | || exit 1 |
25442 | ||
a90ef4bf | 25443 | @endif m4 |
2a4cbe27 | 25444 | |
2a4cbe27 | 25445 | |
a7254363 | 25446 | |
a90ef4bf JM |
25447 | .PHONY: configure-readline maybe-configure-readline |
25448 | maybe-configure-readline: | |
4f0ef2d8 | 25449 | @if gcc-bootstrap |
a90ef4bf | 25450 | configure-readline: stage_current |
4f0ef2d8 | 25451 | @endif gcc-bootstrap |
a90ef4bf JM |
25452 | @if readline |
25453 | maybe-configure-readline: configure-readline | |
25454 | configure-readline: | |
0aed8855 | 25455 | @: $(MAKE); $(unstage) |
c52c6897 | 25456 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 25457 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 25458 | test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \ |
22121df0 | 25459 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline; \ |
1f53ca9a | 25460 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
25461 | echo Configuring in $(HOST_SUBDIR)/readline; \ |
25462 | cd "$(HOST_SUBDIR)/readline" || exit 1; \ | |
4fa63067 | 25463 | case $(srcdir) in \ |
b00612cc | 25464 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 25465 | *) topdir=`echo $(HOST_SUBDIR)/readline/ | \ |
b00612cc | 25466 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 25467 | esac; \ |
1b6c0831 L |
25468 | module_srcdir=readline; \ |
25469 | $(SHELL) \ | |
25470 | $$s/$$module_srcdir/configure \ | |
25471 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 25472 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 25473 | --target=${target_alias} \ |
2a4cbe27 | 25474 | || exit 1 |
a90ef4bf | 25475 | @endif readline |
2a4cbe27 | 25476 | |
a7254363 PB |
25477 | |
25478 | ||
d545f33b PB |
25479 | |
25480 | ||
a90ef4bf JM |
25481 | .PHONY: all-readline maybe-all-readline |
25482 | maybe-all-readline: | |
4f0ef2d8 | 25483 | @if gcc-bootstrap |
a90ef4bf | 25484 | all-readline: stage_current |
4f0ef2d8 | 25485 | @endif gcc-bootstrap |
a90ef4bf JM |
25486 | @if readline |
25487 | TARGET-readline=all | |
25488 | maybe-all-readline: all-readline | |
25489 | all-readline: configure-readline | |
0aed8855 | 25490 | @: $(MAKE); $(unstage) |
4fa63067 NN |
25491 | @r=`${PWD_COMMAND}`; export r; \ |
25492 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 25493 | $(HOST_EXPORTS) \ |
a90ef4bf | 25494 | (cd $(HOST_SUBDIR)/readline && \ |
b3676d82 | 25495 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
25496 | $(TARGET-readline)) |
25497 | @endif readline | |
2a4cbe27 | 25498 | |
a7254363 | 25499 | |
d545f33b PB |
25500 | |
25501 | ||
a90ef4bf JM |
25502 | .PHONY: check-readline maybe-check-readline |
25503 | maybe-check-readline: | |
25504 | @if readline | |
25505 | maybe-check-readline: check-readline | |
2a4cbe27 | 25506 | |
a90ef4bf | 25507 | check-readline: |
0aed8855 | 25508 | @: $(MAKE); $(unstage) |
4fa63067 | 25509 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 25510 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
f91ca6bc | 25511 | $(HOST_EXPORTS) \ |
a90ef4bf | 25512 | (cd $(HOST_SUBDIR)/readline && \ |
b00612cc | 25513 | $(MAKE) $(FLAGS_TO_PASS) check) |
2a4cbe27 | 25514 | |
a90ef4bf | 25515 | @endif readline |
2a4cbe27 | 25516 | |
a90ef4bf JM |
25517 | .PHONY: install-readline maybe-install-readline |
25518 | maybe-install-readline: | |
25519 | @if readline | |
25520 | maybe-install-readline: install-readline | |
2a4cbe27 | 25521 | |
a90ef4bf | 25522 | install-readline: installdirs |
0aed8855 | 25523 | @: $(MAKE); $(unstage) |
4fa63067 NN |
25524 | @r=`${PWD_COMMAND}`; export r; \ |
25525 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25526 | $(HOST_EXPORTS) \ |
a90ef4bf | 25527 | (cd $(HOST_SUBDIR)/readline && \ |
2da12f12 | 25528 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 25529 | |
a90ef4bf | 25530 | @endif readline |
9b980aa1 | 25531 | |
a90ef4bf JM |
25532 | .PHONY: install-strip-readline maybe-install-strip-readline |
25533 | maybe-install-strip-readline: | |
25534 | @if readline | |
25535 | maybe-install-strip-readline: install-strip-readline | |
25536 | ||
25537 | install-strip-readline: installdirs | |
9b980aa1 RW |
25538 | @: $(MAKE); $(unstage) |
25539 | @r=`${PWD_COMMAND}`; export r; \ | |
25540 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
25541 | $(HOST_EXPORTS) \ | |
a90ef4bf | 25542 | (cd $(HOST_SUBDIR)/readline && \ |
9b980aa1 RW |
25543 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
25544 | ||
a90ef4bf | 25545 | @endif readline |
9b980aa1 | 25546 | |
56a8fe78 | 25547 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 25548 | |
a90ef4bf JM |
25549 | .PHONY: maybe-info-readline info-readline |
25550 | maybe-info-readline: | |
25551 | @if readline | |
25552 | maybe-info-readline: info-readline | |
4fa63067 | 25553 | |
a90ef4bf JM |
25554 | info-readline: \ |
25555 | configure-readline | |
0aed8855 | 25556 | @: $(MAKE); $(unstage) |
a90ef4bf | 25557 | @[ -f ./readline/Makefile ] || exit 0; \ |
b40e3958 L |
25558 | r=`${PWD_COMMAND}`; export r; \ |
25559 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25560 | $(HOST_EXPORTS) \ |
b813574b | 25561 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25562 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25563 | done; \ | |
22121df0 | 25564 | echo "Doing info in readline"; \ |
a90ef4bf | 25565 | (cd $(HOST_SUBDIR)/readline && \ |
2a4cbe27 NN |
25566 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25567 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25568 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25569 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25570 | info) \ |
2a4cbe27 NN |
25571 | || exit 1 |
25572 | ||
a90ef4bf | 25573 | @endif readline |
2a4cbe27 | 25574 | |
a90ef4bf JM |
25575 | .PHONY: maybe-dvi-readline dvi-readline |
25576 | maybe-dvi-readline: | |
25577 | @if readline | |
25578 | maybe-dvi-readline: dvi-readline | |
2a4cbe27 | 25579 | |
a90ef4bf JM |
25580 | dvi-readline: \ |
25581 | configure-readline | |
0aed8855 | 25582 | @: $(MAKE); $(unstage) |
a90ef4bf | 25583 | @[ -f ./readline/Makefile ] || exit 0; \ |
b40e3958 L |
25584 | r=`${PWD_COMMAND}`; export r; \ |
25585 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25586 | $(HOST_EXPORTS) \ |
b813574b | 25587 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25588 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25589 | done; \ | |
22121df0 | 25590 | echo "Doing dvi in readline"; \ |
a90ef4bf | 25591 | (cd $(HOST_SUBDIR)/readline && \ |
2a4cbe27 NN |
25592 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25593 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25594 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25595 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25596 | dvi) \ |
2a4cbe27 NN |
25597 | || exit 1 |
25598 | ||
a90ef4bf | 25599 | @endif readline |
2a4cbe27 | 25600 | |
a90ef4bf JM |
25601 | .PHONY: maybe-pdf-readline pdf-readline |
25602 | maybe-pdf-readline: | |
25603 | @if readline | |
25604 | maybe-pdf-readline: pdf-readline | |
56a8fe78 | 25605 | |
a90ef4bf JM |
25606 | pdf-readline: \ |
25607 | configure-readline | |
56a8fe78 | 25608 | @: $(MAKE); $(unstage) |
a90ef4bf | 25609 | @[ -f ./readline/Makefile ] || exit 0; \ |
56a8fe78 DD |
25610 | r=`${PWD_COMMAND}`; export r; \ |
25611 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
25612 | $(HOST_EXPORTS) \ | |
25613 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
25614 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25615 | done; \ | |
22121df0 | 25616 | echo "Doing pdf in readline"; \ |
a90ef4bf | 25617 | (cd $(HOST_SUBDIR)/readline && \ |
56a8fe78 DD |
25618 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25619 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25620 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25621 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
25622 | pdf) \ |
25623 | || exit 1 | |
25624 | ||
a90ef4bf | 25625 | @endif readline |
56a8fe78 | 25626 | |
a90ef4bf JM |
25627 | .PHONY: maybe-html-readline html-readline |
25628 | maybe-html-readline: | |
25629 | @if readline | |
25630 | maybe-html-readline: html-readline | |
6d389afc | 25631 | |
a90ef4bf JM |
25632 | html-readline: \ |
25633 | configure-readline | |
0aed8855 | 25634 | @: $(MAKE); $(unstage) |
a90ef4bf | 25635 | @[ -f ./readline/Makefile ] || exit 0; \ |
6d389afc MS |
25636 | r=`${PWD_COMMAND}`; export r; \ |
25637 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
25638 | $(HOST_EXPORTS) \ |
25639 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
25640 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25641 | done; \ | |
22121df0 | 25642 | echo "Doing html in readline"; \ |
a90ef4bf | 25643 | (cd $(HOST_SUBDIR)/readline && \ |
6d389afc MS |
25644 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25645 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25646 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25647 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
25648 | html) \ |
25649 | || exit 1 | |
25650 | ||
a90ef4bf | 25651 | @endif readline |
6d389afc | 25652 | |
a90ef4bf JM |
25653 | .PHONY: maybe-TAGS-readline TAGS-readline |
25654 | maybe-TAGS-readline: | |
25655 | @if readline | |
25656 | maybe-TAGS-readline: TAGS-readline | |
2a4cbe27 | 25657 | |
a90ef4bf JM |
25658 | TAGS-readline: \ |
25659 | configure-readline | |
0aed8855 | 25660 | @: $(MAKE); $(unstage) |
a90ef4bf | 25661 | @[ -f ./readline/Makefile ] || exit 0; \ |
b40e3958 L |
25662 | r=`${PWD_COMMAND}`; export r; \ |
25663 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25664 | $(HOST_EXPORTS) \ |
b813574b | 25665 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25666 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25667 | done; \ | |
22121df0 | 25668 | echo "Doing TAGS in readline"; \ |
a90ef4bf | 25669 | (cd $(HOST_SUBDIR)/readline && \ |
2a4cbe27 NN |
25670 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25671 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25672 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25673 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25674 | TAGS) \ |
2a4cbe27 NN |
25675 | || exit 1 |
25676 | ||
a90ef4bf | 25677 | @endif readline |
2a4cbe27 | 25678 | |
a90ef4bf JM |
25679 | .PHONY: maybe-install-info-readline install-info-readline |
25680 | maybe-install-info-readline: | |
25681 | @if readline | |
25682 | maybe-install-info-readline: install-info-readline | |
2a4cbe27 | 25683 | |
a90ef4bf JM |
25684 | install-info-readline: \ |
25685 | configure-readline \ | |
25686 | info-readline | |
0aed8855 | 25687 | @: $(MAKE); $(unstage) |
a90ef4bf | 25688 | @[ -f ./readline/Makefile ] || exit 0; \ |
b40e3958 L |
25689 | r=`${PWD_COMMAND}`; export r; \ |
25690 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25691 | $(HOST_EXPORTS) \ |
b813574b | 25692 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25693 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25694 | done; \ | |
22121df0 | 25695 | echo "Doing install-info in readline"; \ |
a90ef4bf | 25696 | (cd $(HOST_SUBDIR)/readline && \ |
2a4cbe27 NN |
25697 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25698 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25699 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25700 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25701 | install-info) \ |
2a4cbe27 NN |
25702 | || exit 1 |
25703 | ||
a90ef4bf | 25704 | @endif readline |
2a4cbe27 | 25705 | |
a90ef4bf JM |
25706 | .PHONY: maybe-install-pdf-readline install-pdf-readline |
25707 | maybe-install-pdf-readline: | |
25708 | @if readline | |
25709 | maybe-install-pdf-readline: install-pdf-readline | |
a3ca38d2 | 25710 | |
a90ef4bf JM |
25711 | install-pdf-readline: \ |
25712 | configure-readline \ | |
25713 | pdf-readline | |
a3ca38d2 | 25714 | @: $(MAKE); $(unstage) |
a90ef4bf | 25715 | @[ -f ./readline/Makefile ] || exit 0; \ |
a3ca38d2 DD |
25716 | r=`${PWD_COMMAND}`; export r; \ |
25717 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
25718 | $(HOST_EXPORTS) \ | |
25719 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
25720 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25721 | done; \ | |
22121df0 | 25722 | echo "Doing install-pdf in readline"; \ |
a90ef4bf | 25723 | (cd $(HOST_SUBDIR)/readline && \ |
a3ca38d2 DD |
25724 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25725 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25726 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25727 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
25728 | install-pdf) \ |
25729 | || exit 1 | |
25730 | ||
a90ef4bf | 25731 | @endif readline |
a3ca38d2 | 25732 | |
a90ef4bf JM |
25733 | .PHONY: maybe-install-html-readline install-html-readline |
25734 | maybe-install-html-readline: | |
25735 | @if readline | |
25736 | maybe-install-html-readline: install-html-readline | |
108a6f8e | 25737 | |
a90ef4bf JM |
25738 | install-html-readline: \ |
25739 | configure-readline \ | |
25740 | html-readline | |
108a6f8e | 25741 | @: $(MAKE); $(unstage) |
a90ef4bf | 25742 | @[ -f ./readline/Makefile ] || exit 0; \ |
108a6f8e CD |
25743 | r=`${PWD_COMMAND}`; export r; \ |
25744 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
25745 | $(HOST_EXPORTS) \ | |
25746 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
25747 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25748 | done; \ | |
22121df0 | 25749 | echo "Doing install-html in readline"; \ |
a90ef4bf | 25750 | (cd $(HOST_SUBDIR)/readline && \ |
108a6f8e CD |
25751 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25752 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25753 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25754 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
25755 | install-html) \ |
25756 | || exit 1 | |
25757 | ||
a90ef4bf | 25758 | @endif readline |
108a6f8e | 25759 | |
a90ef4bf JM |
25760 | .PHONY: maybe-installcheck-readline installcheck-readline |
25761 | maybe-installcheck-readline: | |
25762 | @if readline | |
25763 | maybe-installcheck-readline: installcheck-readline | |
2a4cbe27 | 25764 | |
a90ef4bf JM |
25765 | installcheck-readline: \ |
25766 | configure-readline | |
0aed8855 | 25767 | @: $(MAKE); $(unstage) |
a90ef4bf | 25768 | @[ -f ./readline/Makefile ] || exit 0; \ |
b40e3958 L |
25769 | r=`${PWD_COMMAND}`; export r; \ |
25770 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25771 | $(HOST_EXPORTS) \ |
b813574b | 25772 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25773 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25774 | done; \ | |
22121df0 | 25775 | echo "Doing installcheck in readline"; \ |
a90ef4bf | 25776 | (cd $(HOST_SUBDIR)/readline && \ |
2a4cbe27 NN |
25777 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25778 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25779 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25780 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25781 | installcheck) \ |
2a4cbe27 NN |
25782 | || exit 1 |
25783 | ||
a90ef4bf | 25784 | @endif readline |
2a4cbe27 | 25785 | |
a90ef4bf JM |
25786 | .PHONY: maybe-mostlyclean-readline mostlyclean-readline |
25787 | maybe-mostlyclean-readline: | |
25788 | @if readline | |
25789 | maybe-mostlyclean-readline: mostlyclean-readline | |
2a4cbe27 | 25790 | |
a90ef4bf | 25791 | mostlyclean-readline: |
0aed8855 | 25792 | @: $(MAKE); $(unstage) |
a90ef4bf | 25793 | @[ -f ./readline/Makefile ] || exit 0; \ |
b40e3958 L |
25794 | r=`${PWD_COMMAND}`; export r; \ |
25795 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25796 | $(HOST_EXPORTS) \ |
b813574b | 25797 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25798 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25799 | done; \ | |
22121df0 | 25800 | echo "Doing mostlyclean in readline"; \ |
a90ef4bf | 25801 | (cd $(HOST_SUBDIR)/readline && \ |
2a4cbe27 NN |
25802 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25803 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25804 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25805 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25806 | mostlyclean) \ |
2a4cbe27 NN |
25807 | || exit 1 |
25808 | ||
a90ef4bf | 25809 | @endif readline |
2a4cbe27 | 25810 | |
a90ef4bf JM |
25811 | .PHONY: maybe-clean-readline clean-readline |
25812 | maybe-clean-readline: | |
25813 | @if readline | |
25814 | maybe-clean-readline: clean-readline | |
2a4cbe27 | 25815 | |
a90ef4bf | 25816 | clean-readline: |
0aed8855 | 25817 | @: $(MAKE); $(unstage) |
a90ef4bf | 25818 | @[ -f ./readline/Makefile ] || exit 0; \ |
b40e3958 L |
25819 | r=`${PWD_COMMAND}`; export r; \ |
25820 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25821 | $(HOST_EXPORTS) \ |
b813574b | 25822 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25823 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25824 | done; \ | |
22121df0 | 25825 | echo "Doing clean in readline"; \ |
a90ef4bf | 25826 | (cd $(HOST_SUBDIR)/readline && \ |
2a4cbe27 NN |
25827 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25828 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25829 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25830 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25831 | clean) \ |
2a4cbe27 NN |
25832 | || exit 1 |
25833 | ||
a90ef4bf | 25834 | @endif readline |
2a4cbe27 | 25835 | |
a90ef4bf JM |
25836 | .PHONY: maybe-distclean-readline distclean-readline |
25837 | maybe-distclean-readline: | |
25838 | @if readline | |
25839 | maybe-distclean-readline: distclean-readline | |
2a4cbe27 | 25840 | |
a90ef4bf | 25841 | distclean-readline: |
0aed8855 | 25842 | @: $(MAKE); $(unstage) |
a90ef4bf | 25843 | @[ -f ./readline/Makefile ] || exit 0; \ |
b40e3958 L |
25844 | r=`${PWD_COMMAND}`; export r; \ |
25845 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25846 | $(HOST_EXPORTS) \ |
b813574b | 25847 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25848 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25849 | done; \ | |
22121df0 | 25850 | echo "Doing distclean in readline"; \ |
a90ef4bf | 25851 | (cd $(HOST_SUBDIR)/readline && \ |
2a4cbe27 NN |
25852 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25853 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25854 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25855 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25856 | distclean) \ |
2a4cbe27 NN |
25857 | || exit 1 |
25858 | ||
a90ef4bf | 25859 | @endif readline |
2a4cbe27 | 25860 | |
a90ef4bf JM |
25861 | .PHONY: maybe-maintainer-clean-readline maintainer-clean-readline |
25862 | maybe-maintainer-clean-readline: | |
25863 | @if readline | |
25864 | maybe-maintainer-clean-readline: maintainer-clean-readline | |
2a4cbe27 | 25865 | |
a90ef4bf | 25866 | maintainer-clean-readline: |
0aed8855 | 25867 | @: $(MAKE); $(unstage) |
a90ef4bf | 25868 | @[ -f ./readline/Makefile ] || exit 0; \ |
b40e3958 L |
25869 | r=`${PWD_COMMAND}`; export r; \ |
25870 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25871 | $(HOST_EXPORTS) \ |
b813574b | 25872 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
25873 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25874 | done; \ | |
22121df0 | 25875 | echo "Doing maintainer-clean in readline"; \ |
a90ef4bf | 25876 | (cd $(HOST_SUBDIR)/readline && \ |
2a4cbe27 NN |
25877 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25878 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25879 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 25880 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 25881 | maintainer-clean) \ |
2a4cbe27 NN |
25882 | || exit 1 |
25883 | ||
a90ef4bf | 25884 | @endif readline |
2a4cbe27 | 25885 | |
2a4cbe27 | 25886 | |
a7254363 | 25887 | |
a90ef4bf JM |
25888 | .PHONY: configure-sid maybe-configure-sid |
25889 | maybe-configure-sid: | |
4f0ef2d8 | 25890 | @if gcc-bootstrap |
a90ef4bf | 25891 | configure-sid: stage_current |
4f0ef2d8 | 25892 | @endif gcc-bootstrap |
a90ef4bf JM |
25893 | @if sid |
25894 | maybe-configure-sid: configure-sid | |
25895 | configure-sid: | |
0aed8855 | 25896 | @: $(MAKE); $(unstage) |
c52c6897 | 25897 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 25898 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 25899 | test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \ |
22121df0 | 25900 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid; \ |
1f53ca9a | 25901 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
25902 | echo Configuring in $(HOST_SUBDIR)/sid; \ |
25903 | cd "$(HOST_SUBDIR)/sid" || exit 1; \ | |
4fa63067 | 25904 | case $(srcdir) in \ |
b00612cc | 25905 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 25906 | *) topdir=`echo $(HOST_SUBDIR)/sid/ | \ |
b00612cc | 25907 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 25908 | esac; \ |
1b6c0831 L |
25909 | module_srcdir=sid; \ |
25910 | $(SHELL) \ | |
25911 | $$s/$$module_srcdir/configure \ | |
25912 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 25913 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 25914 | --target=${target_alias} \ |
4fa63067 | 25915 | || exit 1 |
a90ef4bf | 25916 | @endif sid |
2a4cbe27 | 25917 | |
a7254363 PB |
25918 | |
25919 | ||
d545f33b PB |
25920 | |
25921 | ||
a90ef4bf JM |
25922 | .PHONY: all-sid maybe-all-sid |
25923 | maybe-all-sid: | |
4f0ef2d8 | 25924 | @if gcc-bootstrap |
a90ef4bf | 25925 | all-sid: stage_current |
4f0ef2d8 | 25926 | @endif gcc-bootstrap |
a90ef4bf JM |
25927 | @if sid |
25928 | TARGET-sid=all | |
25929 | maybe-all-sid: all-sid | |
25930 | all-sid: configure-sid | |
0aed8855 | 25931 | @: $(MAKE); $(unstage) |
4fa63067 NN |
25932 | @r=`${PWD_COMMAND}`; export r; \ |
25933 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 25934 | $(HOST_EXPORTS) \ |
a90ef4bf | 25935 | (cd $(HOST_SUBDIR)/sid && \ |
b3676d82 | 25936 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
25937 | $(TARGET-sid)) |
25938 | @endif sid | |
2a4cbe27 | 25939 | |
a7254363 | 25940 | |
d545f33b PB |
25941 | |
25942 | ||
a90ef4bf JM |
25943 | .PHONY: check-sid maybe-check-sid |
25944 | maybe-check-sid: | |
25945 | @if sid | |
25946 | maybe-check-sid: check-sid | |
2a4cbe27 | 25947 | |
a90ef4bf | 25948 | check-sid: |
0aed8855 | 25949 | @: $(MAKE); $(unstage) |
4fa63067 | 25950 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 25951 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
f91ca6bc | 25952 | $(HOST_EXPORTS) \ |
a90ef4bf | 25953 | (cd $(HOST_SUBDIR)/sid && \ |
b00612cc | 25954 | $(MAKE) $(FLAGS_TO_PASS) check) |
2a4cbe27 | 25955 | |
a90ef4bf | 25956 | @endif sid |
2a4cbe27 | 25957 | |
a90ef4bf JM |
25958 | .PHONY: install-sid maybe-install-sid |
25959 | maybe-install-sid: | |
25960 | @if sid | |
25961 | maybe-install-sid: install-sid | |
2a4cbe27 | 25962 | |
a90ef4bf | 25963 | install-sid: installdirs |
0aed8855 | 25964 | @: $(MAKE); $(unstage) |
4fa63067 | 25965 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 25966 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25967 | $(HOST_EXPORTS) \ |
a90ef4bf | 25968 | (cd $(HOST_SUBDIR)/sid && \ |
2da12f12 | 25969 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 25970 | |
a90ef4bf | 25971 | @endif sid |
2a4cbe27 | 25972 | |
a90ef4bf JM |
25973 | .PHONY: install-strip-sid maybe-install-strip-sid |
25974 | maybe-install-strip-sid: | |
25975 | @if sid | |
25976 | maybe-install-strip-sid: install-strip-sid | |
9b980aa1 | 25977 | |
a90ef4bf | 25978 | install-strip-sid: installdirs |
9b980aa1 RW |
25979 | @: $(MAKE); $(unstage) |
25980 | @r=`${PWD_COMMAND}`; export r; \ | |
25981 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
25982 | $(HOST_EXPORTS) \ | |
a90ef4bf | 25983 | (cd $(HOST_SUBDIR)/sid && \ |
9b980aa1 RW |
25984 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
25985 | ||
a90ef4bf | 25986 | @endif sid |
9b980aa1 | 25987 | |
56a8fe78 | 25988 | # Other targets (info, dvi, pdf, etc.) |
2a4cbe27 | 25989 | |
a90ef4bf JM |
25990 | .PHONY: maybe-info-sid info-sid |
25991 | maybe-info-sid: | |
25992 | @if sid | |
25993 | maybe-info-sid: info-sid | |
4fa63067 | 25994 | |
a90ef4bf JM |
25995 | info-sid: \ |
25996 | configure-sid | |
0aed8855 | 25997 | @: $(MAKE); $(unstage) |
a90ef4bf | 25998 | @[ -f ./sid/Makefile ] || exit 0; \ |
b40e3958 L |
25999 | r=`${PWD_COMMAND}`; export r; \ |
26000 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26001 | $(HOST_EXPORTS) \ |
b813574b | 26002 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26003 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26004 | done; \ | |
22121df0 | 26005 | echo "Doing info in sid"; \ |
a90ef4bf | 26006 | (cd $(HOST_SUBDIR)/sid && \ |
2a4cbe27 NN |
26007 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26008 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26009 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26010 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26011 | info) \ |
2a4cbe27 NN |
26012 | || exit 1 |
26013 | ||
a90ef4bf | 26014 | @endif sid |
2a4cbe27 | 26015 | |
a90ef4bf JM |
26016 | .PHONY: maybe-dvi-sid dvi-sid |
26017 | maybe-dvi-sid: | |
26018 | @if sid | |
26019 | maybe-dvi-sid: dvi-sid | |
2a4cbe27 | 26020 | |
a90ef4bf JM |
26021 | dvi-sid: \ |
26022 | configure-sid | |
0aed8855 | 26023 | @: $(MAKE); $(unstage) |
a90ef4bf | 26024 | @[ -f ./sid/Makefile ] || exit 0; \ |
b40e3958 L |
26025 | r=`${PWD_COMMAND}`; export r; \ |
26026 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26027 | $(HOST_EXPORTS) \ |
b813574b | 26028 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26029 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26030 | done; \ | |
22121df0 | 26031 | echo "Doing dvi in sid"; \ |
a90ef4bf | 26032 | (cd $(HOST_SUBDIR)/sid && \ |
2a4cbe27 NN |
26033 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26034 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26035 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26036 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26037 | dvi) \ |
2a4cbe27 NN |
26038 | || exit 1 |
26039 | ||
a90ef4bf | 26040 | @endif sid |
2a4cbe27 | 26041 | |
a90ef4bf JM |
26042 | .PHONY: maybe-pdf-sid pdf-sid |
26043 | maybe-pdf-sid: | |
26044 | @if sid | |
26045 | maybe-pdf-sid: pdf-sid | |
56a8fe78 | 26046 | |
a90ef4bf JM |
26047 | pdf-sid: \ |
26048 | configure-sid | |
56a8fe78 | 26049 | @: $(MAKE); $(unstage) |
a90ef4bf | 26050 | @[ -f ./sid/Makefile ] || exit 0; \ |
56a8fe78 DD |
26051 | r=`${PWD_COMMAND}`; export r; \ |
26052 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
26053 | $(HOST_EXPORTS) \ | |
26054 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26055 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26056 | done; \ | |
22121df0 | 26057 | echo "Doing pdf in sid"; \ |
a90ef4bf | 26058 | (cd $(HOST_SUBDIR)/sid && \ |
56a8fe78 DD |
26059 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26060 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26061 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26062 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
26063 | pdf) \ |
26064 | || exit 1 | |
26065 | ||
a90ef4bf | 26066 | @endif sid |
56a8fe78 | 26067 | |
a90ef4bf JM |
26068 | .PHONY: maybe-html-sid html-sid |
26069 | maybe-html-sid: | |
26070 | @if sid | |
26071 | maybe-html-sid: html-sid | |
6d389afc | 26072 | |
a90ef4bf JM |
26073 | html-sid: \ |
26074 | configure-sid | |
0aed8855 | 26075 | @: $(MAKE); $(unstage) |
a90ef4bf | 26076 | @[ -f ./sid/Makefile ] || exit 0; \ |
6d389afc MS |
26077 | r=`${PWD_COMMAND}`; export r; \ |
26078 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
26079 | $(HOST_EXPORTS) \ |
26080 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26081 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26082 | done; \ | |
22121df0 | 26083 | echo "Doing html in sid"; \ |
a90ef4bf | 26084 | (cd $(HOST_SUBDIR)/sid && \ |
6d389afc MS |
26085 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26086 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26087 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26088 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
26089 | html) \ |
26090 | || exit 1 | |
26091 | ||
a90ef4bf | 26092 | @endif sid |
6d389afc | 26093 | |
a90ef4bf JM |
26094 | .PHONY: maybe-TAGS-sid TAGS-sid |
26095 | maybe-TAGS-sid: | |
26096 | @if sid | |
26097 | maybe-TAGS-sid: TAGS-sid | |
2a4cbe27 | 26098 | |
a90ef4bf JM |
26099 | TAGS-sid: \ |
26100 | configure-sid | |
0aed8855 | 26101 | @: $(MAKE); $(unstage) |
a90ef4bf | 26102 | @[ -f ./sid/Makefile ] || exit 0; \ |
b40e3958 L |
26103 | r=`${PWD_COMMAND}`; export r; \ |
26104 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26105 | $(HOST_EXPORTS) \ |
b813574b | 26106 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26107 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26108 | done; \ | |
22121df0 | 26109 | echo "Doing TAGS in sid"; \ |
a90ef4bf | 26110 | (cd $(HOST_SUBDIR)/sid && \ |
2a4cbe27 NN |
26111 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26112 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26113 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26114 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26115 | TAGS) \ |
2a4cbe27 NN |
26116 | || exit 1 |
26117 | ||
a90ef4bf | 26118 | @endif sid |
2a4cbe27 | 26119 | |
a90ef4bf JM |
26120 | .PHONY: maybe-install-info-sid install-info-sid |
26121 | maybe-install-info-sid: | |
26122 | @if sid | |
26123 | maybe-install-info-sid: install-info-sid | |
2a4cbe27 | 26124 | |
a90ef4bf JM |
26125 | install-info-sid: \ |
26126 | configure-sid \ | |
26127 | info-sid | |
0aed8855 | 26128 | @: $(MAKE); $(unstage) |
a90ef4bf | 26129 | @[ -f ./sid/Makefile ] || exit 0; \ |
b40e3958 L |
26130 | r=`${PWD_COMMAND}`; export r; \ |
26131 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26132 | $(HOST_EXPORTS) \ |
b813574b | 26133 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26134 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26135 | done; \ | |
22121df0 | 26136 | echo "Doing install-info in sid"; \ |
a90ef4bf | 26137 | (cd $(HOST_SUBDIR)/sid && \ |
2a4cbe27 NN |
26138 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26139 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26140 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26141 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26142 | install-info) \ |
2a4cbe27 NN |
26143 | || exit 1 |
26144 | ||
a90ef4bf | 26145 | @endif sid |
2a4cbe27 | 26146 | |
a90ef4bf JM |
26147 | .PHONY: maybe-install-pdf-sid install-pdf-sid |
26148 | maybe-install-pdf-sid: | |
26149 | @if sid | |
26150 | maybe-install-pdf-sid: install-pdf-sid | |
a3ca38d2 | 26151 | |
a90ef4bf JM |
26152 | install-pdf-sid: \ |
26153 | configure-sid \ | |
26154 | pdf-sid | |
a3ca38d2 | 26155 | @: $(MAKE); $(unstage) |
a90ef4bf | 26156 | @[ -f ./sid/Makefile ] || exit 0; \ |
a3ca38d2 DD |
26157 | r=`${PWD_COMMAND}`; export r; \ |
26158 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
26159 | $(HOST_EXPORTS) \ | |
26160 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26161 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26162 | done; \ | |
22121df0 | 26163 | echo "Doing install-pdf in sid"; \ |
a90ef4bf | 26164 | (cd $(HOST_SUBDIR)/sid && \ |
a3ca38d2 DD |
26165 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26166 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26167 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26168 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
26169 | install-pdf) \ |
26170 | || exit 1 | |
26171 | ||
a90ef4bf | 26172 | @endif sid |
a3ca38d2 | 26173 | |
a90ef4bf JM |
26174 | .PHONY: maybe-install-html-sid install-html-sid |
26175 | maybe-install-html-sid: | |
26176 | @if sid | |
26177 | maybe-install-html-sid: install-html-sid | |
108a6f8e | 26178 | |
a90ef4bf JM |
26179 | install-html-sid: \ |
26180 | configure-sid \ | |
26181 | html-sid | |
108a6f8e | 26182 | @: $(MAKE); $(unstage) |
a90ef4bf | 26183 | @[ -f ./sid/Makefile ] || exit 0; \ |
108a6f8e CD |
26184 | r=`${PWD_COMMAND}`; export r; \ |
26185 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
26186 | $(HOST_EXPORTS) \ | |
26187 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26188 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26189 | done; \ | |
22121df0 | 26190 | echo "Doing install-html in sid"; \ |
a90ef4bf | 26191 | (cd $(HOST_SUBDIR)/sid && \ |
108a6f8e CD |
26192 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26193 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26194 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26195 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
26196 | install-html) \ |
26197 | || exit 1 | |
26198 | ||
a90ef4bf | 26199 | @endif sid |
108a6f8e | 26200 | |
a90ef4bf JM |
26201 | .PHONY: maybe-installcheck-sid installcheck-sid |
26202 | maybe-installcheck-sid: | |
26203 | @if sid | |
26204 | maybe-installcheck-sid: installcheck-sid | |
2a4cbe27 | 26205 | |
a90ef4bf JM |
26206 | installcheck-sid: \ |
26207 | configure-sid | |
0aed8855 | 26208 | @: $(MAKE); $(unstage) |
a90ef4bf | 26209 | @[ -f ./sid/Makefile ] || exit 0; \ |
b40e3958 L |
26210 | r=`${PWD_COMMAND}`; export r; \ |
26211 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26212 | $(HOST_EXPORTS) \ |
b813574b | 26213 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26214 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26215 | done; \ | |
22121df0 | 26216 | echo "Doing installcheck in sid"; \ |
a90ef4bf | 26217 | (cd $(HOST_SUBDIR)/sid && \ |
2a4cbe27 NN |
26218 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26219 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26220 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26221 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26222 | installcheck) \ |
2a4cbe27 NN |
26223 | || exit 1 |
26224 | ||
a90ef4bf | 26225 | @endif sid |
2a4cbe27 | 26226 | |
a90ef4bf JM |
26227 | .PHONY: maybe-mostlyclean-sid mostlyclean-sid |
26228 | maybe-mostlyclean-sid: | |
26229 | @if sid | |
26230 | maybe-mostlyclean-sid: mostlyclean-sid | |
2a4cbe27 | 26231 | |
a90ef4bf | 26232 | mostlyclean-sid: |
0aed8855 | 26233 | @: $(MAKE); $(unstage) |
a90ef4bf | 26234 | @[ -f ./sid/Makefile ] || exit 0; \ |
b40e3958 L |
26235 | r=`${PWD_COMMAND}`; export r; \ |
26236 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26237 | $(HOST_EXPORTS) \ |
b813574b | 26238 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26239 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26240 | done; \ | |
22121df0 | 26241 | echo "Doing mostlyclean in sid"; \ |
a90ef4bf | 26242 | (cd $(HOST_SUBDIR)/sid && \ |
2a4cbe27 NN |
26243 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26244 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26245 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26246 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26247 | mostlyclean) \ |
2a4cbe27 NN |
26248 | || exit 1 |
26249 | ||
a90ef4bf | 26250 | @endif sid |
2a4cbe27 | 26251 | |
a90ef4bf JM |
26252 | .PHONY: maybe-clean-sid clean-sid |
26253 | maybe-clean-sid: | |
26254 | @if sid | |
26255 | maybe-clean-sid: clean-sid | |
2a4cbe27 | 26256 | |
a90ef4bf | 26257 | clean-sid: |
0aed8855 | 26258 | @: $(MAKE); $(unstage) |
a90ef4bf | 26259 | @[ -f ./sid/Makefile ] || exit 0; \ |
b40e3958 L |
26260 | r=`${PWD_COMMAND}`; export r; \ |
26261 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26262 | $(HOST_EXPORTS) \ |
b813574b | 26263 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26264 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26265 | done; \ | |
22121df0 | 26266 | echo "Doing clean in sid"; \ |
a90ef4bf | 26267 | (cd $(HOST_SUBDIR)/sid && \ |
2a4cbe27 NN |
26268 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26269 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26270 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26271 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26272 | clean) \ |
2a4cbe27 NN |
26273 | || exit 1 |
26274 | ||
a90ef4bf | 26275 | @endif sid |
2a4cbe27 | 26276 | |
a90ef4bf JM |
26277 | .PHONY: maybe-distclean-sid distclean-sid |
26278 | maybe-distclean-sid: | |
26279 | @if sid | |
26280 | maybe-distclean-sid: distclean-sid | |
2a4cbe27 | 26281 | |
a90ef4bf | 26282 | distclean-sid: |
0aed8855 | 26283 | @: $(MAKE); $(unstage) |
a90ef4bf | 26284 | @[ -f ./sid/Makefile ] || exit 0; \ |
b40e3958 L |
26285 | r=`${PWD_COMMAND}`; export r; \ |
26286 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26287 | $(HOST_EXPORTS) \ |
b813574b | 26288 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26289 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26290 | done; \ | |
22121df0 | 26291 | echo "Doing distclean in sid"; \ |
a90ef4bf | 26292 | (cd $(HOST_SUBDIR)/sid && \ |
2a4cbe27 NN |
26293 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26294 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26295 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26296 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26297 | distclean) \ |
2a4cbe27 NN |
26298 | || exit 1 |
26299 | ||
a90ef4bf | 26300 | @endif sid |
2a4cbe27 | 26301 | |
a90ef4bf JM |
26302 | .PHONY: maybe-maintainer-clean-sid maintainer-clean-sid |
26303 | maybe-maintainer-clean-sid: | |
26304 | @if sid | |
26305 | maybe-maintainer-clean-sid: maintainer-clean-sid | |
2a4cbe27 | 26306 | |
a90ef4bf | 26307 | maintainer-clean-sid: |
0aed8855 | 26308 | @: $(MAKE); $(unstage) |
a90ef4bf | 26309 | @[ -f ./sid/Makefile ] || exit 0; \ |
b40e3958 L |
26310 | r=`${PWD_COMMAND}`; export r; \ |
26311 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26312 | $(HOST_EXPORTS) \ |
b813574b | 26313 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26314 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26315 | done; \ | |
22121df0 | 26316 | echo "Doing maintainer-clean in sid"; \ |
a90ef4bf | 26317 | (cd $(HOST_SUBDIR)/sid && \ |
2a4cbe27 NN |
26318 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26319 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26320 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26321 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26322 | maintainer-clean) \ |
2a4cbe27 NN |
26323 | || exit 1 |
26324 | ||
a90ef4bf | 26325 | @endif sid |
2a4cbe27 | 26326 | |
a2592b1b | 26327 | |
a7254363 | 26328 | |
a90ef4bf JM |
26329 | .PHONY: configure-sim maybe-configure-sim |
26330 | maybe-configure-sim: | |
4f0ef2d8 | 26331 | @if gcc-bootstrap |
a90ef4bf | 26332 | configure-sim: stage_current |
4f0ef2d8 | 26333 | @endif gcc-bootstrap |
a90ef4bf JM |
26334 | @if sim |
26335 | maybe-configure-sim: configure-sim | |
26336 | configure-sim: | |
26337 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
26338 | @r=`${PWD_COMMAND}`; export r; \ |
26339 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 26340 | test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \ |
22121df0 | 26341 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim; \ |
1f53ca9a | 26342 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
26343 | echo Configuring in $(HOST_SUBDIR)/sim; \ |
26344 | cd "$(HOST_SUBDIR)/sim" || exit 1; \ | |
4fa63067 | 26345 | case $(srcdir) in \ |
b00612cc | 26346 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 26347 | *) topdir=`echo $(HOST_SUBDIR)/sim/ | \ |
b00612cc | 26348 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 26349 | esac; \ |
1b6c0831 L |
26350 | module_srcdir=sim; \ |
26351 | $(SHELL) \ | |
26352 | $$s/$$module_srcdir/configure \ | |
26353 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 26354 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 26355 | --target=${target_alias} \ |
a2592b1b | 26356 | || exit 1 |
a90ef4bf | 26357 | @endif sim |
a2592b1b | 26358 | |
a7254363 PB |
26359 | |
26360 | ||
a90ef4bf JM |
26361 | |
26362 | ||
26363 | .PHONY: all-sim maybe-all-sim | |
26364 | maybe-all-sim: | |
26365 | @if gcc-bootstrap | |
26366 | all-sim: stage_current | |
26367 | @endif gcc-bootstrap | |
26368 | @if sim | |
26369 | TARGET-sim=all | |
26370 | maybe-all-sim: all-sim | |
26371 | all-sim: configure-sim | |
26372 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
26373 | @r=`${PWD_COMMAND}`; export r; \ |
26374 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
26375 | $(HOST_EXPORTS) \ |
26376 | (cd $(HOST_SUBDIR)/sim && \ | |
b3676d82 | 26377 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
26378 | $(TARGET-sim)) |
26379 | @endif sim | |
d545f33b | 26380 | |
a90ef4bf JM |
26381 | |
26382 | ||
26383 | ||
26384 | .PHONY: check-sim maybe-check-sim | |
26385 | maybe-check-sim: | |
26386 | @if sim | |
26387 | maybe-check-sim: check-sim | |
26388 | ||
26389 | check-sim: | |
26390 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
26391 | @r=`${PWD_COMMAND}`; export r; \ |
26392 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 26393 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
26394 | (cd $(HOST_SUBDIR)/sim && \ |
26395 | $(MAKE) $(FLAGS_TO_PASS) check) | |
8520c408 | 26396 | |
a90ef4bf JM |
26397 | @endif sim |
26398 | ||
26399 | .PHONY: install-sim maybe-install-sim | |
26400 | maybe-install-sim: | |
26401 | @if sim | |
26402 | maybe-install-sim: install-sim | |
26403 | ||
26404 | install-sim: installdirs | |
26405 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
26406 | @r=`${PWD_COMMAND}`; export r; \ |
26407 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d545f33b | 26408 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
26409 | (cd $(HOST_SUBDIR)/sim && \ |
26410 | $(MAKE) $(FLAGS_TO_PASS) install) | |
8520c408 | 26411 | |
a90ef4bf JM |
26412 | @endif sim |
26413 | ||
26414 | .PHONY: install-strip-sim maybe-install-strip-sim | |
26415 | maybe-install-strip-sim: | |
26416 | @if sim | |
26417 | maybe-install-strip-sim: install-strip-sim | |
26418 | ||
26419 | install-strip-sim: installdirs | |
26420 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
26421 | @r=`${PWD_COMMAND}`; export r; \ |
26422 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d545f33b | 26423 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
26424 | (cd $(HOST_SUBDIR)/sim && \ |
26425 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
d545f33b | 26426 | |
a90ef4bf | 26427 | @endif sim |
9b980aa1 | 26428 | |
56a8fe78 | 26429 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 26430 | |
a90ef4bf JM |
26431 | .PHONY: maybe-info-sim info-sim |
26432 | maybe-info-sim: | |
26433 | @if sim | |
26434 | maybe-info-sim: info-sim | |
4fa63067 | 26435 | |
a90ef4bf JM |
26436 | info-sim: \ |
26437 | configure-sim | |
26438 | @: $(MAKE); $(unstage) | |
26439 | @[ -f ./sim/Makefile ] || exit 0; \ | |
b40e3958 L |
26440 | r=`${PWD_COMMAND}`; export r; \ |
26441 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26442 | $(HOST_EXPORTS) \ |
b813574b | 26443 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26444 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26445 | done; \ | |
22121df0 | 26446 | echo "Doing info in sim"; \ |
a90ef4bf | 26447 | (cd $(HOST_SUBDIR)/sim && \ |
2a4cbe27 NN |
26448 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26449 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26450 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26451 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26452 | info) \ |
2a4cbe27 NN |
26453 | || exit 1 |
26454 | ||
a90ef4bf | 26455 | @endif sim |
2a4cbe27 | 26456 | |
a90ef4bf JM |
26457 | .PHONY: maybe-dvi-sim dvi-sim |
26458 | maybe-dvi-sim: | |
26459 | @if sim | |
26460 | maybe-dvi-sim: dvi-sim | |
2a4cbe27 | 26461 | |
a90ef4bf JM |
26462 | dvi-sim: \ |
26463 | configure-sim | |
26464 | @: $(MAKE); $(unstage) | |
26465 | @[ -f ./sim/Makefile ] || exit 0; \ | |
b813574b | 26466 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 26467 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 26468 | $(HOST_EXPORTS) \ |
b813574b | 26469 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26470 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26471 | done; \ | |
22121df0 | 26472 | echo "Doing dvi in sim"; \ |
a90ef4bf | 26473 | (cd $(HOST_SUBDIR)/sim && \ |
2a4cbe27 NN |
26474 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26475 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26476 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26477 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26478 | dvi) \ |
2a4cbe27 NN |
26479 | || exit 1 |
26480 | ||
a90ef4bf | 26481 | @endif sim |
2a4cbe27 | 26482 | |
a90ef4bf JM |
26483 | .PHONY: maybe-pdf-sim pdf-sim |
26484 | maybe-pdf-sim: | |
26485 | @if sim | |
26486 | maybe-pdf-sim: pdf-sim | |
56a8fe78 | 26487 | |
a90ef4bf JM |
26488 | pdf-sim: \ |
26489 | configure-sim | |
26490 | @: $(MAKE); $(unstage) | |
26491 | @[ -f ./sim/Makefile ] || exit 0; \ | |
56a8fe78 DD |
26492 | r=`${PWD_COMMAND}`; export r; \ |
26493 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
26494 | $(HOST_EXPORTS) \ | |
26495 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26496 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26497 | done; \ | |
22121df0 | 26498 | echo "Doing pdf in sim"; \ |
a90ef4bf | 26499 | (cd $(HOST_SUBDIR)/sim && \ |
56a8fe78 DD |
26500 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26501 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26502 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26503 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
26504 | pdf) \ |
26505 | || exit 1 | |
26506 | ||
a90ef4bf | 26507 | @endif sim |
56a8fe78 | 26508 | |
a90ef4bf JM |
26509 | .PHONY: maybe-html-sim html-sim |
26510 | maybe-html-sim: | |
26511 | @if sim | |
26512 | maybe-html-sim: html-sim | |
6d389afc | 26513 | |
a90ef4bf JM |
26514 | html-sim: \ |
26515 | configure-sim | |
26516 | @: $(MAKE); $(unstage) | |
26517 | @[ -f ./sim/Makefile ] || exit 0; \ | |
6d389afc MS |
26518 | r=`${PWD_COMMAND}`; export r; \ |
26519 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
26520 | $(HOST_EXPORTS) \ |
26521 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26522 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26523 | done; \ | |
22121df0 | 26524 | echo "Doing html in sim"; \ |
a90ef4bf | 26525 | (cd $(HOST_SUBDIR)/sim && \ |
6d389afc MS |
26526 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26527 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26528 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26529 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
26530 | html) \ |
26531 | || exit 1 | |
26532 | ||
a90ef4bf | 26533 | @endif sim |
6d389afc | 26534 | |
a90ef4bf JM |
26535 | .PHONY: maybe-TAGS-sim TAGS-sim |
26536 | maybe-TAGS-sim: | |
26537 | @if sim | |
26538 | maybe-TAGS-sim: TAGS-sim | |
2a4cbe27 | 26539 | |
a90ef4bf JM |
26540 | TAGS-sim: \ |
26541 | configure-sim | |
26542 | @: $(MAKE); $(unstage) | |
26543 | @[ -f ./sim/Makefile ] || exit 0; \ | |
b40e3958 L |
26544 | r=`${PWD_COMMAND}`; export r; \ |
26545 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26546 | $(HOST_EXPORTS) \ |
b813574b | 26547 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26548 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26549 | done; \ | |
22121df0 | 26550 | echo "Doing TAGS in sim"; \ |
a90ef4bf | 26551 | (cd $(HOST_SUBDIR)/sim && \ |
2a4cbe27 NN |
26552 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26553 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26554 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26555 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26556 | TAGS) \ |
2a4cbe27 NN |
26557 | || exit 1 |
26558 | ||
a90ef4bf | 26559 | @endif sim |
2a4cbe27 | 26560 | |
a90ef4bf JM |
26561 | .PHONY: maybe-install-info-sim install-info-sim |
26562 | maybe-install-info-sim: | |
26563 | @if sim | |
26564 | maybe-install-info-sim: install-info-sim | |
2a4cbe27 | 26565 | |
a90ef4bf JM |
26566 | install-info-sim: \ |
26567 | configure-sim \ | |
26568 | info-sim | |
26569 | @: $(MAKE); $(unstage) | |
26570 | @[ -f ./sim/Makefile ] || exit 0; \ | |
b40e3958 L |
26571 | r=`${PWD_COMMAND}`; export r; \ |
26572 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26573 | $(HOST_EXPORTS) \ |
b813574b | 26574 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26575 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26576 | done; \ | |
22121df0 | 26577 | echo "Doing install-info in sim"; \ |
a90ef4bf JM |
26578 | (cd $(HOST_SUBDIR)/sim && \ |
26579 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
2a4cbe27 NN |
26580 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ |
26581 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26582 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26583 | install-info) \ |
2a4cbe27 NN |
26584 | || exit 1 |
26585 | ||
a90ef4bf | 26586 | @endif sim |
2a4cbe27 | 26587 | |
a90ef4bf JM |
26588 | .PHONY: maybe-install-pdf-sim install-pdf-sim |
26589 | maybe-install-pdf-sim: | |
26590 | @if sim | |
26591 | maybe-install-pdf-sim: install-pdf-sim | |
a3ca38d2 | 26592 | |
a90ef4bf JM |
26593 | install-pdf-sim: \ |
26594 | configure-sim \ | |
26595 | pdf-sim | |
26596 | @: $(MAKE); $(unstage) | |
26597 | @[ -f ./sim/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
26598 | r=`${PWD_COMMAND}`; export r; \ |
26599 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
26600 | $(HOST_EXPORTS) \ | |
26601 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26602 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26603 | done; \ | |
22121df0 | 26604 | echo "Doing install-pdf in sim"; \ |
a90ef4bf | 26605 | (cd $(HOST_SUBDIR)/sim && \ |
a3ca38d2 DD |
26606 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26607 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26608 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26609 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
26610 | install-pdf) \ |
26611 | || exit 1 | |
26612 | ||
a90ef4bf | 26613 | @endif sim |
a3ca38d2 | 26614 | |
a90ef4bf JM |
26615 | .PHONY: maybe-install-html-sim install-html-sim |
26616 | maybe-install-html-sim: | |
26617 | @if sim | |
26618 | maybe-install-html-sim: install-html-sim | |
108a6f8e | 26619 | |
a90ef4bf JM |
26620 | install-html-sim: \ |
26621 | configure-sim \ | |
26622 | html-sim | |
26623 | @: $(MAKE); $(unstage) | |
26624 | @[ -f ./sim/Makefile ] || exit 0; \ | |
108a6f8e CD |
26625 | r=`${PWD_COMMAND}`; export r; \ |
26626 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
26627 | $(HOST_EXPORTS) \ | |
26628 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26629 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26630 | done; \ | |
22121df0 | 26631 | echo "Doing install-html in sim"; \ |
a90ef4bf | 26632 | (cd $(HOST_SUBDIR)/sim && \ |
108a6f8e CD |
26633 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26634 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26635 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26636 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
26637 | install-html) \ |
26638 | || exit 1 | |
26639 | ||
a90ef4bf | 26640 | @endif sim |
108a6f8e | 26641 | |
a90ef4bf JM |
26642 | .PHONY: maybe-installcheck-sim installcheck-sim |
26643 | maybe-installcheck-sim: | |
26644 | @if sim | |
26645 | maybe-installcheck-sim: installcheck-sim | |
2a4cbe27 | 26646 | |
a90ef4bf JM |
26647 | installcheck-sim: \ |
26648 | configure-sim | |
26649 | @: $(MAKE); $(unstage) | |
26650 | @[ -f ./sim/Makefile ] || exit 0; \ | |
b40e3958 L |
26651 | r=`${PWD_COMMAND}`; export r; \ |
26652 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26653 | $(HOST_EXPORTS) \ |
b813574b | 26654 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26655 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26656 | done; \ | |
22121df0 | 26657 | echo "Doing installcheck in sim"; \ |
a90ef4bf | 26658 | (cd $(HOST_SUBDIR)/sim && \ |
2a4cbe27 NN |
26659 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26660 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26661 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26662 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26663 | installcheck) \ |
2a4cbe27 NN |
26664 | || exit 1 |
26665 | ||
a90ef4bf | 26666 | @endif sim |
2a4cbe27 | 26667 | |
a90ef4bf JM |
26668 | .PHONY: maybe-mostlyclean-sim mostlyclean-sim |
26669 | maybe-mostlyclean-sim: | |
26670 | @if sim | |
26671 | maybe-mostlyclean-sim: mostlyclean-sim | |
2a4cbe27 | 26672 | |
a90ef4bf JM |
26673 | mostlyclean-sim: |
26674 | @: $(MAKE); $(unstage) | |
26675 | @[ -f ./sim/Makefile ] || exit 0; \ | |
b813574b PB |
26676 | r=`${PWD_COMMAND}`; export r; \ |
26677 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b PB |
26678 | $(HOST_EXPORTS) \ |
26679 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26680 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26681 | done; \ | |
22121df0 | 26682 | echo "Doing mostlyclean in sim"; \ |
a90ef4bf | 26683 | (cd $(HOST_SUBDIR)/sim && \ |
b813574b PB |
26684 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26685 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26686 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26687 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b PB |
26688 | mostlyclean) \ |
26689 | || exit 1 | |
4fa63067 | 26690 | |
a90ef4bf | 26691 | @endif sim |
4fa63067 | 26692 | |
a90ef4bf JM |
26693 | .PHONY: maybe-clean-sim clean-sim |
26694 | maybe-clean-sim: | |
26695 | @if sim | |
26696 | maybe-clean-sim: clean-sim | |
4fa63067 | 26697 | |
a90ef4bf JM |
26698 | clean-sim: |
26699 | @: $(MAKE); $(unstage) | |
26700 | @[ -f ./sim/Makefile ] || exit 0; \ | |
b40e3958 L |
26701 | r=`${PWD_COMMAND}`; export r; \ |
26702 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26703 | $(HOST_EXPORTS) \ |
b813574b | 26704 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26705 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26706 | done; \ | |
22121df0 | 26707 | echo "Doing clean in sim"; \ |
a90ef4bf | 26708 | (cd $(HOST_SUBDIR)/sim && \ |
2a4cbe27 NN |
26709 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26710 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26711 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26712 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26713 | clean) \ |
2a4cbe27 NN |
26714 | || exit 1 |
26715 | ||
a90ef4bf | 26716 | @endif sim |
2a4cbe27 | 26717 | |
a90ef4bf JM |
26718 | .PHONY: maybe-distclean-sim distclean-sim |
26719 | maybe-distclean-sim: | |
26720 | @if sim | |
26721 | maybe-distclean-sim: distclean-sim | |
2a4cbe27 | 26722 | |
a90ef4bf JM |
26723 | distclean-sim: |
26724 | @: $(MAKE); $(unstage) | |
26725 | @[ -f ./sim/Makefile ] || exit 0; \ | |
b40e3958 L |
26726 | r=`${PWD_COMMAND}`; export r; \ |
26727 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26728 | $(HOST_EXPORTS) \ |
b813574b | 26729 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26730 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26731 | done; \ | |
22121df0 | 26732 | echo "Doing distclean in sim"; \ |
a90ef4bf | 26733 | (cd $(HOST_SUBDIR)/sim && \ |
2a4cbe27 NN |
26734 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26735 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26736 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26737 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26738 | distclean) \ |
2a4cbe27 NN |
26739 | || exit 1 |
26740 | ||
a90ef4bf | 26741 | @endif sim |
2a4cbe27 | 26742 | |
a90ef4bf JM |
26743 | .PHONY: maybe-maintainer-clean-sim maintainer-clean-sim |
26744 | maybe-maintainer-clean-sim: | |
26745 | @if sim | |
26746 | maybe-maintainer-clean-sim: maintainer-clean-sim | |
2a4cbe27 | 26747 | |
a90ef4bf JM |
26748 | maintainer-clean-sim: |
26749 | @: $(MAKE); $(unstage) | |
26750 | @[ -f ./sim/Makefile ] || exit 0; \ | |
b40e3958 L |
26751 | r=`${PWD_COMMAND}`; export r; \ |
26752 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26753 | $(HOST_EXPORTS) \ |
b813574b | 26754 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26755 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26756 | done; \ | |
22121df0 | 26757 | echo "Doing maintainer-clean in sim"; \ |
a90ef4bf | 26758 | (cd $(HOST_SUBDIR)/sim && \ |
2a4cbe27 NN |
26759 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26760 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26761 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26762 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26763 | maintainer-clean) \ |
2a4cbe27 NN |
26764 | || exit 1 |
26765 | ||
a90ef4bf | 26766 | @endif sim |
2a4cbe27 | 26767 | |
2a4cbe27 | 26768 | |
a7254363 | 26769 | |
a90ef4bf JM |
26770 | .PHONY: configure-texinfo maybe-configure-texinfo |
26771 | maybe-configure-texinfo: | |
4f0ef2d8 | 26772 | @if gcc-bootstrap |
a90ef4bf | 26773 | configure-texinfo: stage_current |
4f0ef2d8 | 26774 | @endif gcc-bootstrap |
a90ef4bf JM |
26775 | @if texinfo |
26776 | maybe-configure-texinfo: configure-texinfo | |
26777 | configure-texinfo: | |
0aed8855 | 26778 | @: $(MAKE); $(unstage) |
c52c6897 | 26779 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 26780 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 26781 | test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \ |
22121df0 | 26782 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo; \ |
1f53ca9a | 26783 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
26784 | echo Configuring in $(HOST_SUBDIR)/texinfo; \ |
26785 | cd "$(HOST_SUBDIR)/texinfo" || exit 1; \ | |
4fa63067 | 26786 | case $(srcdir) in \ |
b00612cc | 26787 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 26788 | *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \ |
b00612cc | 26789 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 26790 | esac; \ |
1b6c0831 L |
26791 | module_srcdir=texinfo; \ |
26792 | $(SHELL) \ | |
26793 | $$s/$$module_srcdir/configure \ | |
26794 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 26795 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 26796 | --target=${target_alias} \ |
2a4cbe27 | 26797 | || exit 1 |
a90ef4bf | 26798 | @endif texinfo |
2a4cbe27 | 26799 | |
a7254363 PB |
26800 | |
26801 | ||
d545f33b PB |
26802 | |
26803 | ||
a90ef4bf JM |
26804 | .PHONY: all-texinfo maybe-all-texinfo |
26805 | maybe-all-texinfo: | |
4f0ef2d8 | 26806 | @if gcc-bootstrap |
a90ef4bf | 26807 | all-texinfo: stage_current |
4f0ef2d8 | 26808 | @endif gcc-bootstrap |
a90ef4bf JM |
26809 | @if texinfo |
26810 | TARGET-texinfo=all | |
26811 | maybe-all-texinfo: all-texinfo | |
26812 | all-texinfo: configure-texinfo | |
0aed8855 | 26813 | @: $(MAKE); $(unstage) |
4fa63067 NN |
26814 | @r=`${PWD_COMMAND}`; export r; \ |
26815 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 26816 | $(HOST_EXPORTS) \ |
a90ef4bf | 26817 | (cd $(HOST_SUBDIR)/texinfo && \ |
b3676d82 | 26818 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
26819 | $(TARGET-texinfo)) |
26820 | @endif texinfo | |
4fa63067 | 26821 | |
a7254363 | 26822 | |
d545f33b PB |
26823 | |
26824 | ||
a90ef4bf JM |
26825 | .PHONY: check-texinfo maybe-check-texinfo |
26826 | maybe-check-texinfo: | |
26827 | @if texinfo | |
26828 | maybe-check-texinfo: check-texinfo | |
2a4cbe27 | 26829 | |
a90ef4bf | 26830 | check-texinfo: |
0aed8855 | 26831 | @: $(MAKE); $(unstage) |
4fa63067 NN |
26832 | @r=`${PWD_COMMAND}`; export r; \ |
26833 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 26834 | $(HOST_EXPORTS) \ |
a90ef4bf | 26835 | (cd $(HOST_SUBDIR)/texinfo && \ |
b00612cc | 26836 | $(MAKE) $(FLAGS_TO_PASS) check) |
2a4cbe27 | 26837 | |
a90ef4bf | 26838 | @endif texinfo |
4fa63067 | 26839 | |
a90ef4bf JM |
26840 | .PHONY: install-texinfo maybe-install-texinfo |
26841 | maybe-install-texinfo: | |
26842 | @if texinfo | |
26843 | maybe-install-texinfo: install-texinfo | |
4fa63067 | 26844 | |
a90ef4bf | 26845 | install-texinfo: |
4fa63067 | 26846 | |
a90ef4bf | 26847 | @endif texinfo |
4fa63067 | 26848 | |
a90ef4bf JM |
26849 | .PHONY: install-strip-texinfo maybe-install-strip-texinfo |
26850 | maybe-install-strip-texinfo: | |
26851 | @if texinfo | |
26852 | maybe-install-strip-texinfo: install-strip-texinfo | |
9b980aa1 | 26853 | |
a90ef4bf | 26854 | install-strip-texinfo: |
9b980aa1 | 26855 | |
a90ef4bf | 26856 | @endif texinfo |
9b980aa1 | 26857 | |
56a8fe78 | 26858 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 26859 | |
a90ef4bf JM |
26860 | .PHONY: maybe-info-texinfo info-texinfo |
26861 | maybe-info-texinfo: | |
26862 | @if texinfo | |
26863 | maybe-info-texinfo: info-texinfo | |
4fa63067 | 26864 | |
a90ef4bf JM |
26865 | info-texinfo: \ |
26866 | configure-texinfo | |
0aed8855 | 26867 | @: $(MAKE); $(unstage) |
a90ef4bf | 26868 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
b40e3958 L |
26869 | r=`${PWD_COMMAND}`; export r; \ |
26870 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26871 | $(HOST_EXPORTS) \ |
b813574b | 26872 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26873 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26874 | done; \ | |
22121df0 | 26875 | echo "Doing info in texinfo"; \ |
a90ef4bf | 26876 | (cd $(HOST_SUBDIR)/texinfo && \ |
2a4cbe27 NN |
26877 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26878 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26879 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26880 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26881 | info) \ |
2a4cbe27 NN |
26882 | || exit 1 |
26883 | ||
a90ef4bf | 26884 | @endif texinfo |
2a4cbe27 | 26885 | |
a90ef4bf JM |
26886 | .PHONY: maybe-dvi-texinfo dvi-texinfo |
26887 | maybe-dvi-texinfo: | |
26888 | @if texinfo | |
26889 | maybe-dvi-texinfo: dvi-texinfo | |
2a4cbe27 | 26890 | |
a90ef4bf JM |
26891 | dvi-texinfo: \ |
26892 | configure-texinfo | |
0aed8855 | 26893 | @: $(MAKE); $(unstage) |
a90ef4bf | 26894 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
b40e3958 L |
26895 | r=`${PWD_COMMAND}`; export r; \ |
26896 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26897 | $(HOST_EXPORTS) \ |
b813574b | 26898 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26899 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26900 | done; \ | |
22121df0 | 26901 | echo "Doing dvi in texinfo"; \ |
a90ef4bf | 26902 | (cd $(HOST_SUBDIR)/texinfo && \ |
2a4cbe27 NN |
26903 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26904 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26905 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26906 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26907 | dvi) \ |
2a4cbe27 NN |
26908 | || exit 1 |
26909 | ||
a90ef4bf | 26910 | @endif texinfo |
2a4cbe27 | 26911 | |
a90ef4bf JM |
26912 | .PHONY: maybe-pdf-texinfo pdf-texinfo |
26913 | maybe-pdf-texinfo: | |
26914 | @if texinfo | |
26915 | maybe-pdf-texinfo: pdf-texinfo | |
56a8fe78 | 26916 | |
a90ef4bf JM |
26917 | pdf-texinfo: \ |
26918 | configure-texinfo | |
56a8fe78 | 26919 | @: $(MAKE); $(unstage) |
a90ef4bf | 26920 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
56a8fe78 DD |
26921 | r=`${PWD_COMMAND}`; export r; \ |
26922 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
26923 | $(HOST_EXPORTS) \ | |
26924 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26925 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26926 | done; \ | |
22121df0 | 26927 | echo "Doing pdf in texinfo"; \ |
a90ef4bf | 26928 | (cd $(HOST_SUBDIR)/texinfo && \ |
56a8fe78 DD |
26929 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26930 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26931 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26932 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
26933 | pdf) \ |
26934 | || exit 1 | |
26935 | ||
a90ef4bf | 26936 | @endif texinfo |
56a8fe78 | 26937 | |
a90ef4bf JM |
26938 | .PHONY: maybe-html-texinfo html-texinfo |
26939 | maybe-html-texinfo: | |
26940 | @if texinfo | |
26941 | maybe-html-texinfo: html-texinfo | |
6d389afc | 26942 | |
a90ef4bf JM |
26943 | html-texinfo: \ |
26944 | configure-texinfo | |
0aed8855 | 26945 | @: $(MAKE); $(unstage) |
a90ef4bf | 26946 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
6d389afc MS |
26947 | r=`${PWD_COMMAND}`; export r; \ |
26948 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
26949 | $(HOST_EXPORTS) \ |
26950 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26951 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26952 | done; \ | |
22121df0 | 26953 | echo "Doing html in texinfo"; \ |
a90ef4bf | 26954 | (cd $(HOST_SUBDIR)/texinfo && \ |
6d389afc MS |
26955 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26956 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26957 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26958 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
26959 | html) \ |
26960 | || exit 1 | |
26961 | ||
a90ef4bf | 26962 | @endif texinfo |
6d389afc | 26963 | |
a90ef4bf JM |
26964 | .PHONY: maybe-TAGS-texinfo TAGS-texinfo |
26965 | maybe-TAGS-texinfo: | |
26966 | @if texinfo | |
26967 | maybe-TAGS-texinfo: TAGS-texinfo | |
2a4cbe27 | 26968 | |
a90ef4bf JM |
26969 | TAGS-texinfo: \ |
26970 | configure-texinfo | |
0aed8855 | 26971 | @: $(MAKE); $(unstage) |
a90ef4bf | 26972 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
b40e3958 L |
26973 | r=`${PWD_COMMAND}`; export r; \ |
26974 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26975 | $(HOST_EXPORTS) \ |
b813574b | 26976 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
26977 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26978 | done; \ | |
22121df0 | 26979 | echo "Doing TAGS in texinfo"; \ |
a90ef4bf | 26980 | (cd $(HOST_SUBDIR)/texinfo && \ |
2a4cbe27 NN |
26981 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26982 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26983 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 26984 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 26985 | TAGS) \ |
2a4cbe27 NN |
26986 | || exit 1 |
26987 | ||
a90ef4bf | 26988 | @endif texinfo |
2a4cbe27 | 26989 | |
a90ef4bf JM |
26990 | .PHONY: maybe-install-info-texinfo install-info-texinfo |
26991 | maybe-install-info-texinfo: | |
26992 | @if texinfo | |
26993 | maybe-install-info-texinfo: install-info-texinfo | |
2a4cbe27 | 26994 | |
a90ef4bf JM |
26995 | install-info-texinfo: \ |
26996 | configure-texinfo \ | |
26997 | info-texinfo | |
0aed8855 | 26998 | @: $(MAKE); $(unstage) |
a90ef4bf | 26999 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
b40e3958 L |
27000 | r=`${PWD_COMMAND}`; export r; \ |
27001 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27002 | $(HOST_EXPORTS) \ |
b813574b | 27003 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
27004 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27005 | done; \ | |
22121df0 | 27006 | echo "Doing install-info in texinfo"; \ |
a90ef4bf | 27007 | (cd $(HOST_SUBDIR)/texinfo && \ |
2a4cbe27 NN |
27008 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27009 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27010 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27011 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 27012 | install-info) \ |
2a4cbe27 NN |
27013 | || exit 1 |
27014 | ||
a90ef4bf | 27015 | @endif texinfo |
2a4cbe27 | 27016 | |
a90ef4bf JM |
27017 | .PHONY: maybe-install-pdf-texinfo install-pdf-texinfo |
27018 | maybe-install-pdf-texinfo: | |
27019 | @if texinfo | |
27020 | maybe-install-pdf-texinfo: install-pdf-texinfo | |
a3ca38d2 | 27021 | |
a90ef4bf JM |
27022 | install-pdf-texinfo: \ |
27023 | configure-texinfo \ | |
27024 | pdf-texinfo | |
a3ca38d2 | 27025 | @: $(MAKE); $(unstage) |
a90ef4bf | 27026 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
a3ca38d2 DD |
27027 | r=`${PWD_COMMAND}`; export r; \ |
27028 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
27029 | $(HOST_EXPORTS) \ | |
27030 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
27031 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27032 | done; \ | |
22121df0 | 27033 | echo "Doing install-pdf in texinfo"; \ |
a90ef4bf | 27034 | (cd $(HOST_SUBDIR)/texinfo && \ |
a3ca38d2 DD |
27035 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27036 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27037 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27038 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
27039 | install-pdf) \ |
27040 | || exit 1 | |
27041 | ||
a90ef4bf | 27042 | @endif texinfo |
a3ca38d2 | 27043 | |
a90ef4bf JM |
27044 | .PHONY: maybe-install-html-texinfo install-html-texinfo |
27045 | maybe-install-html-texinfo: | |
27046 | @if texinfo | |
27047 | maybe-install-html-texinfo: install-html-texinfo | |
108a6f8e | 27048 | |
a90ef4bf JM |
27049 | install-html-texinfo: \ |
27050 | configure-texinfo \ | |
27051 | html-texinfo | |
108a6f8e | 27052 | @: $(MAKE); $(unstage) |
a90ef4bf | 27053 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
108a6f8e CD |
27054 | r=`${PWD_COMMAND}`; export r; \ |
27055 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
27056 | $(HOST_EXPORTS) \ | |
27057 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
27058 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27059 | done; \ | |
22121df0 | 27060 | echo "Doing install-html in texinfo"; \ |
a90ef4bf | 27061 | (cd $(HOST_SUBDIR)/texinfo && \ |
108a6f8e CD |
27062 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27063 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27064 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27065 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
27066 | install-html) \ |
27067 | || exit 1 | |
27068 | ||
a90ef4bf | 27069 | @endif texinfo |
108a6f8e | 27070 | |
a90ef4bf JM |
27071 | .PHONY: maybe-installcheck-texinfo installcheck-texinfo |
27072 | maybe-installcheck-texinfo: | |
27073 | @if texinfo | |
27074 | maybe-installcheck-texinfo: installcheck-texinfo | |
2a4cbe27 | 27075 | |
a90ef4bf JM |
27076 | installcheck-texinfo: \ |
27077 | configure-texinfo | |
0aed8855 | 27078 | @: $(MAKE); $(unstage) |
a90ef4bf | 27079 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
b40e3958 L |
27080 | r=`${PWD_COMMAND}`; export r; \ |
27081 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27082 | $(HOST_EXPORTS) \ |
b813574b | 27083 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
27084 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27085 | done; \ | |
22121df0 | 27086 | echo "Doing installcheck in texinfo"; \ |
a90ef4bf | 27087 | (cd $(HOST_SUBDIR)/texinfo && \ |
2a4cbe27 NN |
27088 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27089 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27090 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27091 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 27092 | installcheck) \ |
2a4cbe27 NN |
27093 | || exit 1 |
27094 | ||
a90ef4bf | 27095 | @endif texinfo |
2a4cbe27 | 27096 | |
a90ef4bf JM |
27097 | .PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo |
27098 | maybe-mostlyclean-texinfo: | |
27099 | @if texinfo | |
27100 | maybe-mostlyclean-texinfo: mostlyclean-texinfo | |
2a4cbe27 | 27101 | |
a90ef4bf | 27102 | mostlyclean-texinfo: |
0aed8855 | 27103 | @: $(MAKE); $(unstage) |
a90ef4bf | 27104 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
b40e3958 L |
27105 | r=`${PWD_COMMAND}`; export r; \ |
27106 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27107 | $(HOST_EXPORTS) \ |
b813574b | 27108 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
27109 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27110 | done; \ | |
22121df0 | 27111 | echo "Doing mostlyclean in texinfo"; \ |
a90ef4bf | 27112 | (cd $(HOST_SUBDIR)/texinfo && \ |
2a4cbe27 NN |
27113 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27114 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27115 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27116 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 27117 | mostlyclean) \ |
2a4cbe27 NN |
27118 | || exit 1 |
27119 | ||
a90ef4bf | 27120 | @endif texinfo |
2a4cbe27 | 27121 | |
a90ef4bf JM |
27122 | .PHONY: maybe-clean-texinfo clean-texinfo |
27123 | maybe-clean-texinfo: | |
27124 | @if texinfo | |
27125 | maybe-clean-texinfo: clean-texinfo | |
2a4cbe27 | 27126 | |
a90ef4bf | 27127 | clean-texinfo: |
0aed8855 | 27128 | @: $(MAKE); $(unstage) |
a90ef4bf | 27129 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
b40e3958 L |
27130 | r=`${PWD_COMMAND}`; export r; \ |
27131 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27132 | $(HOST_EXPORTS) \ |
b813574b | 27133 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
27134 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27135 | done; \ | |
22121df0 | 27136 | echo "Doing clean in texinfo"; \ |
a90ef4bf | 27137 | (cd $(HOST_SUBDIR)/texinfo && \ |
2a4cbe27 NN |
27138 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27139 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27140 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27141 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 27142 | clean) \ |
2a4cbe27 NN |
27143 | || exit 1 |
27144 | ||
a90ef4bf | 27145 | @endif texinfo |
2a4cbe27 | 27146 | |
a90ef4bf JM |
27147 | .PHONY: maybe-distclean-texinfo distclean-texinfo |
27148 | maybe-distclean-texinfo: | |
27149 | @if texinfo | |
27150 | maybe-distclean-texinfo: distclean-texinfo | |
2a4cbe27 | 27151 | |
a90ef4bf | 27152 | distclean-texinfo: |
0aed8855 | 27153 | @: $(MAKE); $(unstage) |
a90ef4bf | 27154 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
b40e3958 L |
27155 | r=`${PWD_COMMAND}`; export r; \ |
27156 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27157 | $(HOST_EXPORTS) \ |
b813574b | 27158 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
27159 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27160 | done; \ | |
22121df0 | 27161 | echo "Doing distclean in texinfo"; \ |
a90ef4bf | 27162 | (cd $(HOST_SUBDIR)/texinfo && \ |
2a4cbe27 NN |
27163 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27164 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27165 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27166 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 27167 | distclean) \ |
2a4cbe27 NN |
27168 | || exit 1 |
27169 | ||
a90ef4bf | 27170 | @endif texinfo |
2a4cbe27 | 27171 | |
a90ef4bf JM |
27172 | .PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo |
27173 | maybe-maintainer-clean-texinfo: | |
27174 | @if texinfo | |
27175 | maybe-maintainer-clean-texinfo: maintainer-clean-texinfo | |
a7254363 | 27176 | |
a90ef4bf | 27177 | maintainer-clean-texinfo: |
0aed8855 | 27178 | @: $(MAKE); $(unstage) |
a90ef4bf | 27179 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
b40e3958 L |
27180 | r=`${PWD_COMMAND}`; export r; \ |
27181 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27182 | $(HOST_EXPORTS) \ |
b813574b | 27183 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
27184 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27185 | done; \ | |
22121df0 | 27186 | echo "Doing maintainer-clean in texinfo"; \ |
a90ef4bf | 27187 | (cd $(HOST_SUBDIR)/texinfo && \ |
2a4cbe27 NN |
27188 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27189 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27190 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27191 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 27192 | maintainer-clean) \ |
2a4cbe27 NN |
27193 | || exit 1 |
27194 | ||
a90ef4bf | 27195 | @endif texinfo |
2a4cbe27 | 27196 | |
2a4cbe27 | 27197 | |
a7254363 | 27198 | |
a90ef4bf JM |
27199 | .PHONY: configure-zlib maybe-configure-zlib |
27200 | maybe-configure-zlib: | |
4f0ef2d8 | 27201 | @if gcc-bootstrap |
a90ef4bf | 27202 | configure-zlib: stage_current |
4f0ef2d8 | 27203 | @endif gcc-bootstrap |
a90ef4bf JM |
27204 | @if zlib |
27205 | maybe-configure-zlib: configure-zlib | |
27206 | configure-zlib: | |
c52c6897 PB |
27207 | @r=`${PWD_COMMAND}`; export r; \ |
27208 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 27209 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
22121df0 | 27210 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \ |
1f53ca9a | 27211 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
27212 | echo Configuring in $(HOST_SUBDIR)/zlib; \ |
27213 | cd "$(HOST_SUBDIR)/zlib" || exit 1; \ | |
04cf1b77 | 27214 | case $(srcdir) in \ |
b00612cc | 27215 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 27216 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ |
b00612cc | 27217 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
04cf1b77 | 27218 | esac; \ |
1b6c0831 L |
27219 | module_srcdir=zlib; \ |
27220 | $(SHELL) \ | |
27221 | $$s/$$module_srcdir/configure \ | |
27222 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 27223 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
e81d5d05 | 27224 | --target=${target_alias} @extra_host_zlib_configure_flags@ \ |
04cf1b77 | 27225 | || exit 1 |
a90ef4bf | 27226 | @endif zlib |
04cf1b77 | 27227 | |
a7254363 PB |
27228 | |
27229 | ||
a90ef4bf JM |
27230 | .PHONY: configure-stage1-zlib maybe-configure-stage1-zlib |
27231 | maybe-configure-stage1-zlib: | |
27232 | @if zlib-bootstrap | |
27233 | maybe-configure-stage1-zlib: configure-stage1-zlib | |
27234 | configure-stage1-zlib: | |
c52c6897 | 27235 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
a90ef4bf | 27236 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib |
c52c6897 PB |
27237 | @r=`${PWD_COMMAND}`; export r; \ |
27238 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 27239 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
a90ef4bf | 27240 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
1b05fbbd | 27241 | $(HOST_EXPORTS) \ |
8ee82aff | 27242 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
27243 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ |
27244 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
27245 | echo Configuring stage 1 in $(HOST_SUBDIR)/zlib; \ |
27246 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \ | |
a90ef4bf | 27247 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
d545f33b PB |
27248 | case $(srcdir) in \ |
27249 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 27250 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ |
d545f33b PB |
27251 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
27252 | esac; \ | |
1b6c0831 L |
27253 | module_srcdir=zlib; \ |
27254 | $(SHELL) $$s/$$module_srcdir/configure \ | |
27255 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 27256 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
27257 | --target=${target_alias} \ |
27258 | \ | |
e81d5d05 L |
27259 | $(STAGE1_CONFIGURE_FLAGS) \ |
27260 | @extra_host_zlib_configure_flags@ | |
a90ef4bf | 27261 | @endif zlib-bootstrap |
d545f33b | 27262 | |
a90ef4bf JM |
27263 | .PHONY: configure-stage2-zlib maybe-configure-stage2-zlib |
27264 | maybe-configure-stage2-zlib: | |
27265 | @if zlib-bootstrap | |
27266 | maybe-configure-stage2-zlib: configure-stage2-zlib | |
27267 | configure-stage2-zlib: | |
c52c6897 | 27268 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
a90ef4bf | 27269 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib |
c52c6897 PB |
27270 | @r=`${PWD_COMMAND}`; export r; \ |
27271 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 27272 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
a90ef4bf | 27273 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
d545f33b | 27274 | $(HOST_EXPORTS) \ |
1b05fbbd | 27275 | $(POSTSTAGE1_HOST_EXPORTS) \ |
8520c408 | 27276 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
27277 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ |
27278 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
27279 | echo Configuring stage 2 in $(HOST_SUBDIR)/zlib; \ |
27280 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \ | |
a90ef4bf | 27281 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
d545f33b PB |
27282 | case $(srcdir) in \ |
27283 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 27284 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ |
d545f33b PB |
27285 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
27286 | esac; \ | |
1b6c0831 L |
27287 | module_srcdir=zlib; \ |
27288 | $(SHELL) $$s/$$module_srcdir/configure \ | |
27289 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 27290 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 27291 | --target=${target_alias} \ |
22121df0 | 27292 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
e81d5d05 L |
27293 | $(STAGE2_CONFIGURE_FLAGS) \ |
27294 | @extra_host_zlib_configure_flags@ | |
a90ef4bf | 27295 | @endif zlib-bootstrap |
8520c408 | 27296 | |
a90ef4bf JM |
27297 | .PHONY: configure-stage3-zlib maybe-configure-stage3-zlib |
27298 | maybe-configure-stage3-zlib: | |
27299 | @if zlib-bootstrap | |
27300 | maybe-configure-stage3-zlib: configure-stage3-zlib | |
27301 | configure-stage3-zlib: | |
c52c6897 | 27302 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
a90ef4bf | 27303 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib |
c52c6897 PB |
27304 | @r=`${PWD_COMMAND}`; export r; \ |
27305 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 27306 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
a90ef4bf | 27307 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
d545f33b | 27308 | $(HOST_EXPORTS) \ |
1b05fbbd | 27309 | $(POSTSTAGE1_HOST_EXPORTS) \ |
8520c408 | 27310 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
27311 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ |
27312 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
27313 | echo Configuring stage 3 in $(HOST_SUBDIR)/zlib; \ |
27314 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \ | |
a90ef4bf | 27315 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
d545f33b PB |
27316 | case $(srcdir) in \ |
27317 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 27318 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ |
d545f33b PB |
27319 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
27320 | esac; \ | |
1b6c0831 L |
27321 | module_srcdir=zlib; \ |
27322 | $(SHELL) $$s/$$module_srcdir/configure \ | |
27323 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 27324 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 27325 | --target=${target_alias} \ |
22121df0 | 27326 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
e81d5d05 L |
27327 | $(STAGE3_CONFIGURE_FLAGS) \ |
27328 | @extra_host_zlib_configure_flags@ | |
a90ef4bf | 27329 | @endif zlib-bootstrap |
8520c408 | 27330 | |
a90ef4bf JM |
27331 | .PHONY: configure-stage4-zlib maybe-configure-stage4-zlib |
27332 | maybe-configure-stage4-zlib: | |
27333 | @if zlib-bootstrap | |
27334 | maybe-configure-stage4-zlib: configure-stage4-zlib | |
27335 | configure-stage4-zlib: | |
c52c6897 | 27336 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
a90ef4bf | 27337 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib |
c52c6897 PB |
27338 | @r=`${PWD_COMMAND}`; export r; \ |
27339 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 27340 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
a90ef4bf | 27341 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
d545f33b | 27342 | $(HOST_EXPORTS) \ |
1b05fbbd | 27343 | $(POSTSTAGE1_HOST_EXPORTS) \ |
8520c408 | 27344 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ |
1f53ca9a AO |
27345 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ |
27346 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
27347 | echo Configuring stage 4 in $(HOST_SUBDIR)/zlib; \ |
27348 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \ | |
a90ef4bf | 27349 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
d545f33b PB |
27350 | case $(srcdir) in \ |
27351 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 27352 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ |
d545f33b PB |
27353 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
27354 | esac; \ | |
1b6c0831 L |
27355 | module_srcdir=zlib; \ |
27356 | $(SHELL) $$s/$$module_srcdir/configure \ | |
27357 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 27358 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 27359 | --target=${target_alias} \ |
22121df0 | 27360 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
e81d5d05 L |
27361 | $(STAGE4_CONFIGURE_FLAGS) \ |
27362 | @extra_host_zlib_configure_flags@ | |
a90ef4bf | 27363 | @endif zlib-bootstrap |
d545f33b | 27364 | |
a90ef4bf JM |
27365 | .PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib |
27366 | maybe-configure-stageprofile-zlib: | |
27367 | @if zlib-bootstrap | |
27368 | maybe-configure-stageprofile-zlib: configure-stageprofile-zlib | |
27369 | configure-stageprofile-zlib: | |
c52c6897 | 27370 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
a90ef4bf | 27371 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib |
c52c6897 PB |
27372 | @r=`${PWD_COMMAND}`; export r; \ |
27373 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 27374 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
a90ef4bf | 27375 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
d545f33b | 27376 | $(HOST_EXPORTS) \ |
1b05fbbd AO |
27377 | $(POSTSTAGE1_HOST_EXPORTS) \ |
27378 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
1f53ca9a AO |
27379 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ |
27380 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
27381 | echo Configuring stage profile in $(HOST_SUBDIR)/zlib; \ |
27382 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \ | |
a90ef4bf | 27383 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
d545f33b PB |
27384 | case $(srcdir) in \ |
27385 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 27386 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ |
d545f33b PB |
27387 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
27388 | esac; \ | |
1b6c0831 L |
27389 | module_srcdir=zlib; \ |
27390 | $(SHELL) $$s/$$module_srcdir/configure \ | |
27391 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 27392 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 27393 | --target=${target_alias} \ |
22121df0 | 27394 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
e81d5d05 L |
27395 | $(STAGEprofile_CONFIGURE_FLAGS) \ |
27396 | @extra_host_zlib_configure_flags@ | |
a90ef4bf | 27397 | @endif zlib-bootstrap |
d545f33b | 27398 | |
a90ef4bf JM |
27399 | .PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib |
27400 | maybe-configure-stagefeedback-zlib: | |
27401 | @if zlib-bootstrap | |
27402 | maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib | |
27403 | configure-stagefeedback-zlib: | |
c52c6897 | 27404 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
a90ef4bf | 27405 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib |
c52c6897 PB |
27406 | @r=`${PWD_COMMAND}`; export r; \ |
27407 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 27408 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
a90ef4bf | 27409 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
d545f33b | 27410 | $(HOST_EXPORTS) \ |
1b05fbbd AO |
27411 | $(POSTSTAGE1_HOST_EXPORTS) \ |
27412 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
1f53ca9a AO |
27413 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ |
27414 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
27415 | echo Configuring stage feedback in $(HOST_SUBDIR)/zlib; \ |
27416 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \ | |
a90ef4bf | 27417 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
d545f33b PB |
27418 | case $(srcdir) in \ |
27419 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 27420 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ |
d545f33b PB |
27421 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
27422 | esac; \ | |
1b6c0831 L |
27423 | module_srcdir=zlib; \ |
27424 | $(SHELL) $$s/$$module_srcdir/configure \ | |
27425 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 27426 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 27427 | --target=${target_alias} \ |
22121df0 | 27428 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
e81d5d05 L |
27429 | $(STAGEfeedback_CONFIGURE_FLAGS) \ |
27430 | @extra_host_zlib_configure_flags@ | |
a90ef4bf | 27431 | @endif zlib-bootstrap |
d545f33b PB |
27432 | |
27433 | ||
27434 | ||
27435 | ||
27436 | ||
a90ef4bf JM |
27437 | .PHONY: all-zlib maybe-all-zlib |
27438 | maybe-all-zlib: | |
4f0ef2d8 | 27439 | @if gcc-bootstrap |
a90ef4bf | 27440 | all-zlib: stage_current |
4f0ef2d8 | 27441 | @endif gcc-bootstrap |
a90ef4bf JM |
27442 | @if zlib |
27443 | TARGET-zlib=all | |
27444 | maybe-all-zlib: all-zlib | |
27445 | all-zlib: configure-zlib | |
c52c6897 | 27446 | @r=`${PWD_COMMAND}`; export r; \ |
04cf1b77 | 27447 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1f53ca9a | 27448 | $(HOST_EXPORTS) \ |
a90ef4bf | 27449 | (cd $(HOST_SUBDIR)/zlib && \ |
b3676d82 | 27450 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
27451 | $(TARGET-zlib)) |
27452 | @endif zlib | |
04cf1b77 | 27453 | |
a7254363 | 27454 | |
d545f33b | 27455 | |
a90ef4bf JM |
27456 | .PHONY: all-stage1-zlib maybe-all-stage1-zlib |
27457 | .PHONY: clean-stage1-zlib maybe-clean-stage1-zlib | |
27458 | maybe-all-stage1-zlib: | |
27459 | maybe-clean-stage1-zlib: | |
27460 | @if zlib-bootstrap | |
27461 | maybe-all-stage1-zlib: all-stage1-zlib | |
27462 | all-stage1: all-stage1-zlib | |
27463 | TARGET-stage1-zlib = $(TARGET-zlib) | |
27464 | all-stage1-zlib: configure-stage1-zlib | |
c52c6897 | 27465 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
d545f33b PB |
27466 | @r=`${PWD_COMMAND}`; export r; \ |
27467 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 27468 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
1f53ca9a | 27469 | $(HOST_EXPORTS) \ |
a90ef4bf | 27470 | cd $(HOST_SUBDIR)/zlib && \ |
05a13254 | 27471 | \ |
7f6ef0c0 | 27472 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 27473 | CFLAGS="$(STAGE1_CFLAGS)" \ |
1f53ca9a | 27474 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ |
1b05fbbd AO |
27475 | LIBCFLAGS="$(LIBCFLAGS)" \ |
27476 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
27477 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
27478 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
27479 | $(EXTRA_HOST_FLAGS) \ |
27480 | $(STAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 27481 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 27482 | $(TARGET-stage1-zlib) |
d545f33b | 27483 | |
a90ef4bf JM |
27484 | maybe-clean-stage1-zlib: clean-stage1-zlib |
27485 | clean-stage1: clean-stage1-zlib | |
27486 | clean-stage1-zlib: | |
9dbaa842 | 27487 | @if [ $(current_stage) = stage1 ]; then \ |
a90ef4bf | 27488 | [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \ |
9dbaa842 | 27489 | else \ |
a90ef4bf | 27490 | [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \ |
9dbaa842 DD |
27491 | $(MAKE) stage1-start; \ |
27492 | fi; \ | |
a90ef4bf | 27493 | cd $(HOST_SUBDIR)/zlib && \ |
7f6ef0c0 | 27494 | $(MAKE) $(EXTRA_HOST_FLAGS) \ |
b3676d82 | 27495 | $(STAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 27496 | @endif zlib-bootstrap |
d545f33b PB |
27497 | |
27498 | ||
a90ef4bf JM |
27499 | .PHONY: all-stage2-zlib maybe-all-stage2-zlib |
27500 | .PHONY: clean-stage2-zlib maybe-clean-stage2-zlib | |
27501 | maybe-all-stage2-zlib: | |
27502 | maybe-clean-stage2-zlib: | |
27503 | @if zlib-bootstrap | |
27504 | maybe-all-stage2-zlib: all-stage2-zlib | |
27505 | all-stage2: all-stage2-zlib | |
27506 | TARGET-stage2-zlib = $(TARGET-zlib) | |
27507 | all-stage2-zlib: configure-stage2-zlib | |
c52c6897 | 27508 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
d545f33b PB |
27509 | @r=`${PWD_COMMAND}`; export r; \ |
27510 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 27511 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
d545f33b | 27512 | $(HOST_EXPORTS) \ |
1f53ca9a | 27513 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 27514 | cd $(HOST_SUBDIR)/zlib && \ |
05a13254 | 27515 | \ |
7f6ef0c0 | 27516 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 27517 | CFLAGS="$(STAGE2_CFLAGS)" \ |
1f53ca9a | 27518 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ |
1b05fbbd AO |
27519 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ |
27520 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
27521 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
27522 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
27523 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 27524 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 27525 | $(TARGET-stage2-zlib) |
d545f33b | 27526 | |
a90ef4bf JM |
27527 | maybe-clean-stage2-zlib: clean-stage2-zlib |
27528 | clean-stage2: clean-stage2-zlib | |
27529 | clean-stage2-zlib: | |
9dbaa842 | 27530 | @if [ $(current_stage) = stage2 ]; then \ |
a90ef4bf | 27531 | [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \ |
9dbaa842 | 27532 | else \ |
a90ef4bf | 27533 | [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \ |
9dbaa842 DD |
27534 | $(MAKE) stage2-start; \ |
27535 | fi; \ | |
a90ef4bf | 27536 | cd $(HOST_SUBDIR)/zlib && \ |
b3676d82 | 27537 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 27538 | @endif zlib-bootstrap |
d545f33b PB |
27539 | |
27540 | ||
a90ef4bf JM |
27541 | .PHONY: all-stage3-zlib maybe-all-stage3-zlib |
27542 | .PHONY: clean-stage3-zlib maybe-clean-stage3-zlib | |
27543 | maybe-all-stage3-zlib: | |
27544 | maybe-clean-stage3-zlib: | |
27545 | @if zlib-bootstrap | |
27546 | maybe-all-stage3-zlib: all-stage3-zlib | |
27547 | all-stage3: all-stage3-zlib | |
27548 | TARGET-stage3-zlib = $(TARGET-zlib) | |
27549 | all-stage3-zlib: configure-stage3-zlib | |
c52c6897 | 27550 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
d545f33b PB |
27551 | @r=`${PWD_COMMAND}`; export r; \ |
27552 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 27553 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
d545f33b | 27554 | $(HOST_EXPORTS) \ |
1f53ca9a | 27555 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 27556 | cd $(HOST_SUBDIR)/zlib && \ |
05a13254 | 27557 | \ |
7f6ef0c0 | 27558 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 27559 | CFLAGS="$(STAGE3_CFLAGS)" \ |
1f53ca9a | 27560 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ |
1b05fbbd AO |
27561 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ |
27562 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
27563 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
27564 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
27565 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 27566 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 27567 | $(TARGET-stage3-zlib) |
d545f33b | 27568 | |
a90ef4bf JM |
27569 | maybe-clean-stage3-zlib: clean-stage3-zlib |
27570 | clean-stage3: clean-stage3-zlib | |
27571 | clean-stage3-zlib: | |
9dbaa842 | 27572 | @if [ $(current_stage) = stage3 ]; then \ |
a90ef4bf | 27573 | [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \ |
9dbaa842 | 27574 | else \ |
a90ef4bf | 27575 | [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \ |
9dbaa842 DD |
27576 | $(MAKE) stage3-start; \ |
27577 | fi; \ | |
a90ef4bf | 27578 | cd $(HOST_SUBDIR)/zlib && \ |
b3676d82 | 27579 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 27580 | @endif zlib-bootstrap |
d545f33b PB |
27581 | |
27582 | ||
a90ef4bf JM |
27583 | .PHONY: all-stage4-zlib maybe-all-stage4-zlib |
27584 | .PHONY: clean-stage4-zlib maybe-clean-stage4-zlib | |
27585 | maybe-all-stage4-zlib: | |
27586 | maybe-clean-stage4-zlib: | |
27587 | @if zlib-bootstrap | |
27588 | maybe-all-stage4-zlib: all-stage4-zlib | |
27589 | all-stage4: all-stage4-zlib | |
27590 | TARGET-stage4-zlib = $(TARGET-zlib) | |
27591 | all-stage4-zlib: configure-stage4-zlib | |
c52c6897 | 27592 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
d545f33b PB |
27593 | @r=`${PWD_COMMAND}`; export r; \ |
27594 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 27595 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
d545f33b | 27596 | $(HOST_EXPORTS) \ |
1f53ca9a | 27597 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 27598 | cd $(HOST_SUBDIR)/zlib && \ |
05a13254 | 27599 | \ |
7f6ef0c0 | 27600 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 27601 | CFLAGS="$(STAGE4_CFLAGS)" \ |
1f53ca9a | 27602 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ |
7f6ef0c0 | 27603 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ |
1b05fbbd AO |
27604 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ |
27605 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
27606 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
27607 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 27608 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 27609 | $(TARGET-stage4-zlib) |
d545f33b | 27610 | |
a90ef4bf JM |
27611 | maybe-clean-stage4-zlib: clean-stage4-zlib |
27612 | clean-stage4: clean-stage4-zlib | |
27613 | clean-stage4-zlib: | |
9dbaa842 | 27614 | @if [ $(current_stage) = stage4 ]; then \ |
a90ef4bf | 27615 | [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \ |
9dbaa842 | 27616 | else \ |
a90ef4bf | 27617 | [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \ |
9dbaa842 DD |
27618 | $(MAKE) stage4-start; \ |
27619 | fi; \ | |
a90ef4bf | 27620 | cd $(HOST_SUBDIR)/zlib && \ |
b3676d82 | 27621 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 27622 | @endif zlib-bootstrap |
d545f33b PB |
27623 | |
27624 | ||
a90ef4bf JM |
27625 | .PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib |
27626 | .PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib | |
27627 | maybe-all-stageprofile-zlib: | |
27628 | maybe-clean-stageprofile-zlib: | |
27629 | @if zlib-bootstrap | |
27630 | maybe-all-stageprofile-zlib: all-stageprofile-zlib | |
27631 | all-stageprofile: all-stageprofile-zlib | |
27632 | TARGET-stageprofile-zlib = $(TARGET-zlib) | |
27633 | all-stageprofile-zlib: configure-stageprofile-zlib | |
c52c6897 | 27634 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
d545f33b PB |
27635 | @r=`${PWD_COMMAND}`; export r; \ |
27636 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 27637 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
d545f33b | 27638 | $(HOST_EXPORTS) \ |
1f53ca9a | 27639 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 27640 | cd $(HOST_SUBDIR)/zlib && \ |
05a13254 | 27641 | \ |
7f6ef0c0 | 27642 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 27643 | CFLAGS="$(STAGEprofile_CFLAGS)" \ |
1f53ca9a | 27644 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ |
1b05fbbd AO |
27645 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ |
27646 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
27647 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
27648 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
27649 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 27650 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf | 27651 | $(TARGET-stageprofile-zlib) |
d545f33b | 27652 | |
a90ef4bf JM |
27653 | maybe-clean-stageprofile-zlib: clean-stageprofile-zlib |
27654 | clean-stageprofile: clean-stageprofile-zlib | |
27655 | clean-stageprofile-zlib: | |
9dbaa842 | 27656 | @if [ $(current_stage) = stageprofile ]; then \ |
a90ef4bf | 27657 | [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \ |
9dbaa842 | 27658 | else \ |
a90ef4bf | 27659 | [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \ |
9dbaa842 DD |
27660 | $(MAKE) stageprofile-start; \ |
27661 | fi; \ | |
a90ef4bf | 27662 | cd $(HOST_SUBDIR)/zlib && \ |
b3676d82 | 27663 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 27664 | @endif zlib-bootstrap |
d545f33b PB |
27665 | |
27666 | ||
a90ef4bf JM |
27667 | .PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib |
27668 | .PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib | |
27669 | maybe-all-stagefeedback-zlib: | |
27670 | maybe-clean-stagefeedback-zlib: | |
27671 | @if zlib-bootstrap | |
27672 | maybe-all-stagefeedback-zlib: all-stagefeedback-zlib | |
27673 | all-stagefeedback: all-stagefeedback-zlib | |
27674 | TARGET-stagefeedback-zlib = $(TARGET-zlib) | |
27675 | all-stagefeedback-zlib: configure-stagefeedback-zlib | |
c52c6897 | 27676 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
d545f33b PB |
27677 | @r=`${PWD_COMMAND}`; export r; \ |
27678 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 27679 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
d545f33b | 27680 | $(HOST_EXPORTS) \ |
1f53ca9a | 27681 | $(POSTSTAGE1_HOST_EXPORTS) \ |
a90ef4bf | 27682 | cd $(HOST_SUBDIR)/zlib && \ |
05a13254 | 27683 | \ |
7f6ef0c0 | 27684 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
1b05fbbd | 27685 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ |
1f53ca9a | 27686 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ |
1b05fbbd AO |
27687 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ |
27688 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
27689 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
27690 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
27691 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
05a13254 | 27692 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf | 27693 | $(TARGET-stagefeedback-zlib) |
d545f33b | 27694 | |
a90ef4bf JM |
27695 | maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib |
27696 | clean-stagefeedback: clean-stagefeedback-zlib | |
27697 | clean-stagefeedback-zlib: | |
9dbaa842 | 27698 | @if [ $(current_stage) = stagefeedback ]; then \ |
a90ef4bf | 27699 | [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \ |
9dbaa842 | 27700 | else \ |
a90ef4bf | 27701 | [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \ |
9dbaa842 DD |
27702 | $(MAKE) stagefeedback-start; \ |
27703 | fi; \ | |
a90ef4bf | 27704 | cd $(HOST_SUBDIR)/zlib && \ |
b3676d82 | 27705 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean |
a90ef4bf | 27706 | @endif zlib-bootstrap |
d545f33b PB |
27707 | |
27708 | ||
27709 | ||
27710 | ||
27711 | ||
a90ef4bf JM |
27712 | .PHONY: check-zlib maybe-check-zlib |
27713 | maybe-check-zlib: | |
27714 | @if zlib | |
27715 | maybe-check-zlib: check-zlib | |
04cf1b77 | 27716 | |
a90ef4bf | 27717 | check-zlib: |
04cf1b77 | 27718 | |
a90ef4bf | 27719 | @endif zlib |
04cf1b77 | 27720 | |
a90ef4bf JM |
27721 | .PHONY: install-zlib maybe-install-zlib |
27722 | maybe-install-zlib: | |
27723 | @if zlib | |
27724 | maybe-install-zlib: install-zlib | |
04cf1b77 | 27725 | |
a90ef4bf | 27726 | install-zlib: |
04cf1b77 | 27727 | |
a90ef4bf | 27728 | @endif zlib |
04cf1b77 | 27729 | |
a90ef4bf JM |
27730 | .PHONY: install-strip-zlib maybe-install-strip-zlib |
27731 | maybe-install-strip-zlib: | |
27732 | @if zlib | |
27733 | maybe-install-strip-zlib: install-strip-zlib | |
9b980aa1 | 27734 | |
a90ef4bf | 27735 | install-strip-zlib: |
9b980aa1 | 27736 | |
a90ef4bf | 27737 | @endif zlib |
9b980aa1 | 27738 | |
56a8fe78 | 27739 | # Other targets (info, dvi, pdf, etc.) |
04cf1b77 | 27740 | |
a90ef4bf JM |
27741 | .PHONY: maybe-info-zlib info-zlib |
27742 | maybe-info-zlib: | |
27743 | @if zlib | |
27744 | maybe-info-zlib: info-zlib | |
04cf1b77 | 27745 | |
a90ef4bf JM |
27746 | info-zlib: \ |
27747 | configure-zlib | |
27748 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
04cf1b77 PB |
27749 | r=`${PWD_COMMAND}`; export r; \ |
27750 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27751 | $(HOST_EXPORTS) \ |
b813574b | 27752 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
27753 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27754 | done; \ | |
22121df0 | 27755 | echo "Doing info in zlib"; \ |
a90ef4bf | 27756 | (cd $(HOST_SUBDIR)/zlib && \ |
04cf1b77 PB |
27757 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27758 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27759 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27760 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 27761 | info) \ |
04cf1b77 PB |
27762 | || exit 1 |
27763 | ||
a90ef4bf | 27764 | @endif zlib |
04cf1b77 | 27765 | |
a90ef4bf JM |
27766 | .PHONY: maybe-dvi-zlib dvi-zlib |
27767 | maybe-dvi-zlib: | |
27768 | @if zlib | |
27769 | maybe-dvi-zlib: dvi-zlib | |
04cf1b77 | 27770 | |
a90ef4bf JM |
27771 | dvi-zlib: \ |
27772 | configure-zlib | |
27773 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
04cf1b77 PB |
27774 | r=`${PWD_COMMAND}`; export r; \ |
27775 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27776 | $(HOST_EXPORTS) \ |
b813574b | 27777 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
27778 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27779 | done; \ | |
22121df0 | 27780 | echo "Doing dvi in zlib"; \ |
a90ef4bf | 27781 | (cd $(HOST_SUBDIR)/zlib && \ |
04cf1b77 PB |
27782 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27783 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27784 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27785 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 27786 | dvi) \ |
04cf1b77 PB |
27787 | || exit 1 |
27788 | ||
a90ef4bf | 27789 | @endif zlib |
04cf1b77 | 27790 | |
a90ef4bf JM |
27791 | .PHONY: maybe-pdf-zlib pdf-zlib |
27792 | maybe-pdf-zlib: | |
27793 | @if zlib | |
27794 | maybe-pdf-zlib: pdf-zlib | |
56a8fe78 | 27795 | |
a90ef4bf JM |
27796 | pdf-zlib: \ |
27797 | configure-zlib | |
27798 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
56a8fe78 DD |
27799 | r=`${PWD_COMMAND}`; export r; \ |
27800 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
27801 | $(HOST_EXPORTS) \ | |
27802 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
27803 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27804 | done; \ | |
22121df0 | 27805 | echo "Doing pdf in zlib"; \ |
a90ef4bf | 27806 | (cd $(HOST_SUBDIR)/zlib && \ |
56a8fe78 DD |
27807 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27808 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27809 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27810 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
27811 | pdf) \ |
27812 | || exit 1 | |
27813 | ||
a90ef4bf | 27814 | @endif zlib |
56a8fe78 | 27815 | |
a90ef4bf JM |
27816 | .PHONY: maybe-html-zlib html-zlib |
27817 | maybe-html-zlib: | |
27818 | @if zlib | |
27819 | maybe-html-zlib: html-zlib | |
6d389afc | 27820 | |
a90ef4bf JM |
27821 | html-zlib: \ |
27822 | configure-zlib | |
27823 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
6d389afc MS |
27824 | r=`${PWD_COMMAND}`; export r; \ |
27825 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
27826 | $(HOST_EXPORTS) \ |
27827 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
27828 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27829 | done; \ | |
22121df0 | 27830 | echo "Doing html in zlib"; \ |
a90ef4bf | 27831 | (cd $(HOST_SUBDIR)/zlib && \ |
6d389afc MS |
27832 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27833 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27834 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27835 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
27836 | html) \ |
27837 | || exit 1 | |
27838 | ||
a90ef4bf | 27839 | @endif zlib |
6d389afc | 27840 | |
a90ef4bf JM |
27841 | .PHONY: maybe-TAGS-zlib TAGS-zlib |
27842 | maybe-TAGS-zlib: | |
27843 | @if zlib | |
27844 | maybe-TAGS-zlib: TAGS-zlib | |
04cf1b77 | 27845 | |
a90ef4bf JM |
27846 | TAGS-zlib: \ |
27847 | configure-zlib | |
27848 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
04cf1b77 PB |
27849 | r=`${PWD_COMMAND}`; export r; \ |
27850 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27851 | $(HOST_EXPORTS) \ |
b813574b | 27852 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
27853 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27854 | done; \ | |
22121df0 | 27855 | echo "Doing TAGS in zlib"; \ |
a90ef4bf | 27856 | (cd $(HOST_SUBDIR)/zlib && \ |
04cf1b77 PB |
27857 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27858 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27859 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27860 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 27861 | TAGS) \ |
04cf1b77 PB |
27862 | || exit 1 |
27863 | ||
a90ef4bf | 27864 | @endif zlib |
04cf1b77 | 27865 | |
a90ef4bf JM |
27866 | .PHONY: maybe-install-info-zlib install-info-zlib |
27867 | maybe-install-info-zlib: | |
27868 | @if zlib | |
27869 | maybe-install-info-zlib: install-info-zlib | |
04cf1b77 | 27870 | |
a90ef4bf JM |
27871 | install-info-zlib: \ |
27872 | configure-zlib \ | |
27873 | info-zlib | |
27874 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
27875 | r=`${PWD_COMMAND}`; export r; \ | |
27876 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
27877 | $(HOST_EXPORTS) \ | |
b813574b | 27878 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
27879 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27880 | done; \ | |
22121df0 | 27881 | echo "Doing install-info in zlib"; \ |
a90ef4bf | 27882 | (cd $(HOST_SUBDIR)/zlib && \ |
04cf1b77 PB |
27883 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27884 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27885 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27886 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 27887 | install-info) \ |
04cf1b77 PB |
27888 | || exit 1 |
27889 | ||
a90ef4bf | 27890 | @endif zlib |
04cf1b77 | 27891 | |
a90ef4bf JM |
27892 | .PHONY: maybe-install-pdf-zlib install-pdf-zlib |
27893 | maybe-install-pdf-zlib: | |
27894 | @if zlib | |
27895 | maybe-install-pdf-zlib: install-pdf-zlib | |
a3ca38d2 | 27896 | |
a90ef4bf JM |
27897 | install-pdf-zlib: \ |
27898 | configure-zlib \ | |
27899 | pdf-zlib | |
27900 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
27901 | r=`${PWD_COMMAND}`; export r; \ |
27902 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
27903 | $(HOST_EXPORTS) \ | |
27904 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
27905 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27906 | done; \ | |
22121df0 | 27907 | echo "Doing install-pdf in zlib"; \ |
a90ef4bf | 27908 | (cd $(HOST_SUBDIR)/zlib && \ |
a3ca38d2 DD |
27909 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27910 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27911 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27912 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
27913 | install-pdf) \ |
27914 | || exit 1 | |
27915 | ||
a90ef4bf | 27916 | @endif zlib |
a3ca38d2 | 27917 | |
a90ef4bf JM |
27918 | .PHONY: maybe-install-html-zlib install-html-zlib |
27919 | maybe-install-html-zlib: | |
27920 | @if zlib | |
27921 | maybe-install-html-zlib: install-html-zlib | |
108a6f8e | 27922 | |
a90ef4bf JM |
27923 | install-html-zlib: \ |
27924 | configure-zlib \ | |
27925 | html-zlib | |
27926 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
108a6f8e CD |
27927 | r=`${PWD_COMMAND}`; export r; \ |
27928 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
27929 | $(HOST_EXPORTS) \ | |
27930 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
27931 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27932 | done; \ | |
22121df0 | 27933 | echo "Doing install-html in zlib"; \ |
a90ef4bf | 27934 | (cd $(HOST_SUBDIR)/zlib && \ |
108a6f8e CD |
27935 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27936 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27937 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27938 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
27939 | install-html) \ |
27940 | || exit 1 | |
27941 | ||
a90ef4bf | 27942 | @endif zlib |
108a6f8e | 27943 | |
a90ef4bf JM |
27944 | .PHONY: maybe-installcheck-zlib installcheck-zlib |
27945 | maybe-installcheck-zlib: | |
27946 | @if zlib | |
27947 | maybe-installcheck-zlib: installcheck-zlib | |
04cf1b77 | 27948 | |
a90ef4bf JM |
27949 | installcheck-zlib: \ |
27950 | configure-zlib | |
27951 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
04cf1b77 PB |
27952 | r=`${PWD_COMMAND}`; export r; \ |
27953 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27954 | $(HOST_EXPORTS) \ |
b813574b | 27955 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
27956 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27957 | done; \ | |
22121df0 | 27958 | echo "Doing installcheck in zlib"; \ |
a90ef4bf | 27959 | (cd $(HOST_SUBDIR)/zlib && \ |
04cf1b77 PB |
27960 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27961 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27962 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27963 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 27964 | installcheck) \ |
04cf1b77 PB |
27965 | || exit 1 |
27966 | ||
a90ef4bf | 27967 | @endif zlib |
04cf1b77 | 27968 | |
a90ef4bf JM |
27969 | .PHONY: maybe-mostlyclean-zlib mostlyclean-zlib |
27970 | maybe-mostlyclean-zlib: | |
27971 | @if zlib | |
27972 | maybe-mostlyclean-zlib: mostlyclean-zlib | |
04cf1b77 | 27973 | |
a90ef4bf JM |
27974 | mostlyclean-zlib: |
27975 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
04cf1b77 PB |
27976 | r=`${PWD_COMMAND}`; export r; \ |
27977 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27978 | $(HOST_EXPORTS) \ |
b813574b | 27979 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
27980 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27981 | done; \ | |
22121df0 | 27982 | echo "Doing mostlyclean in zlib"; \ |
a90ef4bf | 27983 | (cd $(HOST_SUBDIR)/zlib && \ |
04cf1b77 PB |
27984 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27985 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27986 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 27987 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 27988 | mostlyclean) \ |
04cf1b77 PB |
27989 | || exit 1 |
27990 | ||
a90ef4bf | 27991 | @endif zlib |
04cf1b77 | 27992 | |
a90ef4bf JM |
27993 | .PHONY: maybe-clean-zlib clean-zlib |
27994 | maybe-clean-zlib: | |
27995 | @if zlib | |
27996 | maybe-clean-zlib: clean-zlib | |
04cf1b77 | 27997 | |
a90ef4bf JM |
27998 | clean-zlib: |
27999 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
04cf1b77 PB |
28000 | r=`${PWD_COMMAND}`; export r; \ |
28001 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28002 | $(HOST_EXPORTS) \ |
b813574b | 28003 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
28004 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28005 | done; \ | |
22121df0 | 28006 | echo "Doing clean in zlib"; \ |
a90ef4bf | 28007 | (cd $(HOST_SUBDIR)/zlib && \ |
04cf1b77 PB |
28008 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28009 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28010 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28011 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 28012 | clean) \ |
04cf1b77 PB |
28013 | || exit 1 |
28014 | ||
a90ef4bf | 28015 | @endif zlib |
04cf1b77 | 28016 | |
a90ef4bf JM |
28017 | .PHONY: maybe-distclean-zlib distclean-zlib |
28018 | maybe-distclean-zlib: | |
28019 | @if zlib | |
28020 | maybe-distclean-zlib: distclean-zlib | |
04cf1b77 | 28021 | |
a90ef4bf JM |
28022 | distclean-zlib: |
28023 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
04cf1b77 PB |
28024 | r=`${PWD_COMMAND}`; export r; \ |
28025 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28026 | $(HOST_EXPORTS) \ |
b813574b | 28027 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
28028 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28029 | done; \ | |
22121df0 | 28030 | echo "Doing distclean in zlib"; \ |
a90ef4bf | 28031 | (cd $(HOST_SUBDIR)/zlib && \ |
04cf1b77 PB |
28032 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28033 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28034 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28035 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 28036 | distclean) \ |
04cf1b77 PB |
28037 | || exit 1 |
28038 | ||
a90ef4bf | 28039 | @endif zlib |
04cf1b77 | 28040 | |
a90ef4bf JM |
28041 | .PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib |
28042 | maybe-maintainer-clean-zlib: | |
28043 | @if zlib | |
28044 | maybe-maintainer-clean-zlib: maintainer-clean-zlib | |
04cf1b77 | 28045 | |
a90ef4bf JM |
28046 | maintainer-clean-zlib: |
28047 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
04cf1b77 PB |
28048 | r=`${PWD_COMMAND}`; export r; \ |
28049 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28050 | $(HOST_EXPORTS) \ |
b813574b | 28051 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
28052 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28053 | done; \ | |
22121df0 | 28054 | echo "Doing maintainer-clean in zlib"; \ |
a90ef4bf | 28055 | (cd $(HOST_SUBDIR)/zlib && \ |
04cf1b77 PB |
28056 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28057 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28058 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28059 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 28060 | maintainer-clean) \ |
04cf1b77 PB |
28061 | || exit 1 |
28062 | ||
a90ef4bf | 28063 | @endif zlib |
04cf1b77 PB |
28064 | |
28065 | ||
a7254363 | 28066 | |
a90ef4bf JM |
28067 | .PHONY: configure-gdb maybe-configure-gdb |
28068 | maybe-configure-gdb: | |
4f0ef2d8 | 28069 | @if gcc-bootstrap |
a90ef4bf | 28070 | configure-gdb: stage_current |
4f0ef2d8 | 28071 | @endif gcc-bootstrap |
a90ef4bf JM |
28072 | @if gdb |
28073 | maybe-configure-gdb: configure-gdb | |
28074 | configure-gdb: | |
28075 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
28076 | @r=`${PWD_COMMAND}`; export r; \ |
28077 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 28078 | test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \ |
22121df0 | 28079 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb; \ |
1f53ca9a | 28080 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
28081 | echo Configuring in $(HOST_SUBDIR)/gdb; \ |
28082 | cd "$(HOST_SUBDIR)/gdb" || exit 1; \ | |
4fa63067 | 28083 | case $(srcdir) in \ |
b00612cc | 28084 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 28085 | *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \ |
b00612cc | 28086 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 28087 | esac; \ |
1b6c0831 L |
28088 | module_srcdir=gdb; \ |
28089 | $(SHELL) \ | |
28090 | $$s/$$module_srcdir/configure \ | |
28091 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 28092 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 28093 | --target=${target_alias} \ |
4fa63067 | 28094 | || exit 1 |
a90ef4bf | 28095 | @endif gdb |
4fa63067 | 28096 | |
a7254363 PB |
28097 | |
28098 | ||
d545f33b | 28099 | |
8520c408 | 28100 | |
a90ef4bf JM |
28101 | .PHONY: all-gdb maybe-all-gdb |
28102 | maybe-all-gdb: | |
28103 | @if gcc-bootstrap | |
28104 | all-gdb: stage_current | |
28105 | @endif gcc-bootstrap | |
28106 | @if gdb | |
28107 | TARGET-gdb=all | |
28108 | maybe-all-gdb: all-gdb | |
28109 | all-gdb: configure-gdb | |
28110 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
28111 | @r=`${PWD_COMMAND}`; export r; \ |
28112 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
28113 | $(HOST_EXPORTS) \ |
28114 | (cd $(HOST_SUBDIR)/gdb && \ | |
b3676d82 | 28115 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
28116 | $(TARGET-gdb)) |
28117 | @endif gdb | |
8520c408 | 28118 | |
a90ef4bf JM |
28119 | |
28120 | ||
28121 | ||
28122 | .PHONY: check-gdb maybe-check-gdb | |
28123 | maybe-check-gdb: | |
28124 | @if gdb | |
28125 | maybe-check-gdb: check-gdb | |
28126 | ||
28127 | check-gdb: | |
28128 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
28129 | @r=`${PWD_COMMAND}`; export r; \ |
28130 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 28131 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
28132 | (cd $(HOST_SUBDIR)/gdb && \ |
28133 | $(MAKE) $(FLAGS_TO_PASS) check) | |
d545f33b | 28134 | |
a90ef4bf JM |
28135 | @endif gdb |
28136 | ||
28137 | .PHONY: install-gdb maybe-install-gdb | |
28138 | maybe-install-gdb: | |
28139 | @if gdb | |
28140 | maybe-install-gdb: install-gdb | |
28141 | ||
28142 | install-gdb: installdirs | |
28143 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
28144 | @r=`${PWD_COMMAND}`; export r; \ |
28145 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d545f33b | 28146 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
28147 | (cd $(HOST_SUBDIR)/gdb && \ |
28148 | $(MAKE) $(FLAGS_TO_PASS) install) | |
d545f33b | 28149 | |
a90ef4bf JM |
28150 | @endif gdb |
28151 | ||
28152 | .PHONY: install-strip-gdb maybe-install-strip-gdb | |
28153 | maybe-install-strip-gdb: | |
28154 | @if gdb | |
28155 | maybe-install-strip-gdb: install-strip-gdb | |
28156 | ||
28157 | install-strip-gdb: installdirs | |
28158 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
28159 | @r=`${PWD_COMMAND}`; export r; \ |
28160 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d545f33b | 28161 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
28162 | (cd $(HOST_SUBDIR)/gdb && \ |
28163 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
d545f33b | 28164 | |
a90ef4bf | 28165 | @endif gdb |
d545f33b | 28166 | |
a90ef4bf | 28167 | # Other targets (info, dvi, pdf, etc.) |
d545f33b | 28168 | |
a90ef4bf JM |
28169 | .PHONY: maybe-info-gdb info-gdb |
28170 | maybe-info-gdb: | |
28171 | @if gdb | |
28172 | maybe-info-gdb: info-gdb | |
d545f33b | 28173 | |
a90ef4bf JM |
28174 | info-gdb: \ |
28175 | configure-gdb | |
28176 | @: $(MAKE); $(unstage) | |
28177 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
28178 | r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 28179 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
28180 | $(HOST_EXPORTS) \ |
28181 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28182 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28183 | done; \ | |
22121df0 | 28184 | echo "Doing info in gdb"; \ |
a90ef4bf JM |
28185 | (cd $(HOST_SUBDIR)/gdb && \ |
28186 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28187 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28188 | "RANLIB=$${RANLIB}" \ | |
28189 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
28190 | info) \ | |
28191 | || exit 1 | |
4fa63067 | 28192 | |
a90ef4bf | 28193 | @endif gdb |
a7254363 | 28194 | |
a90ef4bf JM |
28195 | .PHONY: maybe-dvi-gdb dvi-gdb |
28196 | maybe-dvi-gdb: | |
28197 | @if gdb | |
28198 | maybe-dvi-gdb: dvi-gdb | |
d545f33b | 28199 | |
a90ef4bf JM |
28200 | dvi-gdb: \ |
28201 | configure-gdb | |
28202 | @: $(MAKE); $(unstage) | |
28203 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
28204 | r=`${PWD_COMMAND}`; export r; \ | |
d545f33b | 28205 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
28206 | $(HOST_EXPORTS) \ |
28207 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28208 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28209 | done; \ | |
22121df0 | 28210 | echo "Doing dvi in gdb"; \ |
a90ef4bf JM |
28211 | (cd $(HOST_SUBDIR)/gdb && \ |
28212 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28213 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28214 | "RANLIB=$${RANLIB}" \ | |
28215 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
28216 | dvi) \ | |
28217 | || exit 1 | |
d545f33b | 28218 | |
a90ef4bf | 28219 | @endif gdb |
d545f33b | 28220 | |
a90ef4bf JM |
28221 | .PHONY: maybe-pdf-gdb pdf-gdb |
28222 | maybe-pdf-gdb: | |
28223 | @if gdb | |
28224 | maybe-pdf-gdb: pdf-gdb | |
d545f33b | 28225 | |
a90ef4bf JM |
28226 | pdf-gdb: \ |
28227 | configure-gdb | |
9b980aa1 | 28228 | @: $(MAKE); $(unstage) |
a90ef4bf | 28229 | @[ -f ./gdb/Makefile ] || exit 0; \ |
b40e3958 L |
28230 | r=`${PWD_COMMAND}`; export r; \ |
28231 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28232 | $(HOST_EXPORTS) \ |
b813574b | 28233 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
28234 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28235 | done; \ | |
22121df0 | 28236 | echo "Doing pdf in gdb"; \ |
a90ef4bf | 28237 | (cd $(HOST_SUBDIR)/gdb && \ |
2a4cbe27 NN |
28238 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28239 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28240 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28241 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 28242 | pdf) \ |
2a4cbe27 NN |
28243 | || exit 1 |
28244 | ||
a90ef4bf | 28245 | @endif gdb |
2a4cbe27 | 28246 | |
a90ef4bf JM |
28247 | .PHONY: maybe-html-gdb html-gdb |
28248 | maybe-html-gdb: | |
28249 | @if gdb | |
28250 | maybe-html-gdb: html-gdb | |
2a4cbe27 | 28251 | |
a90ef4bf JM |
28252 | html-gdb: \ |
28253 | configure-gdb | |
28254 | @: $(MAKE); $(unstage) | |
28255 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
b40e3958 L |
28256 | r=`${PWD_COMMAND}`; export r; \ |
28257 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28258 | $(HOST_EXPORTS) \ |
b813574b | 28259 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
28260 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28261 | done; \ | |
22121df0 | 28262 | echo "Doing html in gdb"; \ |
a90ef4bf | 28263 | (cd $(HOST_SUBDIR)/gdb && \ |
2a4cbe27 NN |
28264 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28265 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28266 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28267 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 28268 | html) \ |
2a4cbe27 NN |
28269 | || exit 1 |
28270 | ||
a90ef4bf | 28271 | @endif gdb |
2a4cbe27 | 28272 | |
a90ef4bf JM |
28273 | .PHONY: maybe-TAGS-gdb TAGS-gdb |
28274 | maybe-TAGS-gdb: | |
28275 | @if gdb | |
28276 | maybe-TAGS-gdb: TAGS-gdb | |
56a8fe78 | 28277 | |
a90ef4bf JM |
28278 | TAGS-gdb: \ |
28279 | configure-gdb | |
28280 | @: $(MAKE); $(unstage) | |
28281 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
56a8fe78 DD |
28282 | r=`${PWD_COMMAND}`; export r; \ |
28283 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28284 | $(HOST_EXPORTS) \ | |
28285 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28286 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28287 | done; \ | |
22121df0 | 28288 | echo "Doing TAGS in gdb"; \ |
a90ef4bf | 28289 | (cd $(HOST_SUBDIR)/gdb && \ |
56a8fe78 DD |
28290 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28291 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28292 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28293 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 28294 | TAGS) \ |
56a8fe78 DD |
28295 | || exit 1 |
28296 | ||
a90ef4bf | 28297 | @endif gdb |
56a8fe78 | 28298 | |
a90ef4bf JM |
28299 | .PHONY: maybe-install-info-gdb install-info-gdb |
28300 | maybe-install-info-gdb: | |
28301 | @if gdb | |
28302 | maybe-install-info-gdb: install-info-gdb | |
6d389afc | 28303 | |
a90ef4bf JM |
28304 | install-info-gdb: \ |
28305 | configure-gdb \ | |
28306 | info-gdb | |
28307 | @: $(MAKE); $(unstage) | |
28308 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
6d389afc MS |
28309 | r=`${PWD_COMMAND}`; export r; \ |
28310 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
28311 | $(HOST_EXPORTS) \ |
28312 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28313 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28314 | done; \ | |
22121df0 | 28315 | echo "Doing install-info in gdb"; \ |
a90ef4bf | 28316 | (cd $(HOST_SUBDIR)/gdb && \ |
6d389afc MS |
28317 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28318 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28319 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28320 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 28321 | install-info) \ |
6d389afc MS |
28322 | || exit 1 |
28323 | ||
a90ef4bf | 28324 | @endif gdb |
6d389afc | 28325 | |
a90ef4bf JM |
28326 | .PHONY: maybe-install-pdf-gdb install-pdf-gdb |
28327 | maybe-install-pdf-gdb: | |
28328 | @if gdb | |
28329 | maybe-install-pdf-gdb: install-pdf-gdb | |
2a4cbe27 | 28330 | |
a90ef4bf JM |
28331 | install-pdf-gdb: \ |
28332 | configure-gdb \ | |
28333 | pdf-gdb | |
28334 | @: $(MAKE); $(unstage) | |
28335 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
b40e3958 L |
28336 | r=`${PWD_COMMAND}`; export r; \ |
28337 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28338 | $(HOST_EXPORTS) \ |
b813574b | 28339 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
28340 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28341 | done; \ | |
22121df0 | 28342 | echo "Doing install-pdf in gdb"; \ |
a90ef4bf | 28343 | (cd $(HOST_SUBDIR)/gdb && \ |
2a4cbe27 NN |
28344 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28345 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28346 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28347 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 28348 | install-pdf) \ |
2a4cbe27 NN |
28349 | || exit 1 |
28350 | ||
a90ef4bf | 28351 | @endif gdb |
2a4cbe27 | 28352 | |
a90ef4bf JM |
28353 | .PHONY: maybe-install-html-gdb install-html-gdb |
28354 | maybe-install-html-gdb: | |
28355 | @if gdb | |
28356 | maybe-install-html-gdb: install-html-gdb | |
2a4cbe27 | 28357 | |
a90ef4bf JM |
28358 | install-html-gdb: \ |
28359 | configure-gdb \ | |
28360 | html-gdb | |
28361 | @: $(MAKE); $(unstage) | |
28362 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
b40e3958 L |
28363 | r=`${PWD_COMMAND}`; export r; \ |
28364 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28365 | $(HOST_EXPORTS) \ |
b813574b | 28366 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
28367 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28368 | done; \ | |
22121df0 | 28369 | echo "Doing install-html in gdb"; \ |
a90ef4bf | 28370 | (cd $(HOST_SUBDIR)/gdb && \ |
2a4cbe27 NN |
28371 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28372 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28373 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28374 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 28375 | install-html) \ |
2a4cbe27 NN |
28376 | || exit 1 |
28377 | ||
a90ef4bf | 28378 | @endif gdb |
2a4cbe27 | 28379 | |
a90ef4bf JM |
28380 | .PHONY: maybe-installcheck-gdb installcheck-gdb |
28381 | maybe-installcheck-gdb: | |
28382 | @if gdb | |
28383 | maybe-installcheck-gdb: installcheck-gdb | |
a3ca38d2 | 28384 | |
a90ef4bf JM |
28385 | installcheck-gdb: \ |
28386 | configure-gdb | |
28387 | @: $(MAKE); $(unstage) | |
28388 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
28389 | r=`${PWD_COMMAND}`; export r; \ |
28390 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28391 | $(HOST_EXPORTS) \ | |
28392 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28393 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28394 | done; \ | |
22121df0 | 28395 | echo "Doing installcheck in gdb"; \ |
a90ef4bf | 28396 | (cd $(HOST_SUBDIR)/gdb && \ |
a3ca38d2 DD |
28397 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28398 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28399 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28400 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 28401 | installcheck) \ |
a3ca38d2 DD |
28402 | || exit 1 |
28403 | ||
a90ef4bf | 28404 | @endif gdb |
a3ca38d2 | 28405 | |
a90ef4bf JM |
28406 | .PHONY: maybe-mostlyclean-gdb mostlyclean-gdb |
28407 | maybe-mostlyclean-gdb: | |
28408 | @if gdb | |
28409 | maybe-mostlyclean-gdb: mostlyclean-gdb | |
108a6f8e | 28410 | |
a90ef4bf JM |
28411 | mostlyclean-gdb: |
28412 | @: $(MAKE); $(unstage) | |
28413 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
108a6f8e CD |
28414 | r=`${PWD_COMMAND}`; export r; \ |
28415 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28416 | $(HOST_EXPORTS) \ | |
28417 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28418 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28419 | done; \ | |
22121df0 | 28420 | echo "Doing mostlyclean in gdb"; \ |
a90ef4bf | 28421 | (cd $(HOST_SUBDIR)/gdb && \ |
108a6f8e CD |
28422 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28423 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28424 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28425 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 28426 | mostlyclean) \ |
108a6f8e CD |
28427 | || exit 1 |
28428 | ||
a90ef4bf | 28429 | @endif gdb |
108a6f8e | 28430 | |
a90ef4bf JM |
28431 | .PHONY: maybe-clean-gdb clean-gdb |
28432 | maybe-clean-gdb: | |
28433 | @if gdb | |
28434 | maybe-clean-gdb: clean-gdb | |
2a4cbe27 | 28435 | |
a90ef4bf JM |
28436 | clean-gdb: |
28437 | @: $(MAKE); $(unstage) | |
28438 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
b40e3958 L |
28439 | r=`${PWD_COMMAND}`; export r; \ |
28440 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28441 | $(HOST_EXPORTS) \ |
b813574b | 28442 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
28443 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28444 | done; \ | |
22121df0 | 28445 | echo "Doing clean in gdb"; \ |
a90ef4bf | 28446 | (cd $(HOST_SUBDIR)/gdb && \ |
2a4cbe27 NN |
28447 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28448 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28449 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28450 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 28451 | clean) \ |
2a4cbe27 NN |
28452 | || exit 1 |
28453 | ||
a90ef4bf | 28454 | @endif gdb |
2a4cbe27 | 28455 | |
a90ef4bf JM |
28456 | .PHONY: maybe-distclean-gdb distclean-gdb |
28457 | maybe-distclean-gdb: | |
28458 | @if gdb | |
28459 | maybe-distclean-gdb: distclean-gdb | |
2a4cbe27 | 28460 | |
a90ef4bf JM |
28461 | distclean-gdb: |
28462 | @: $(MAKE); $(unstage) | |
28463 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
b40e3958 L |
28464 | r=`${PWD_COMMAND}`; export r; \ |
28465 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28466 | $(HOST_EXPORTS) \ |
b813574b | 28467 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
28468 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28469 | done; \ | |
22121df0 | 28470 | echo "Doing distclean in gdb"; \ |
a90ef4bf | 28471 | (cd $(HOST_SUBDIR)/gdb && \ |
2a4cbe27 NN |
28472 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28473 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28474 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28475 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 28476 | distclean) \ |
2a4cbe27 NN |
28477 | || exit 1 |
28478 | ||
a90ef4bf | 28479 | @endif gdb |
2a4cbe27 | 28480 | |
a90ef4bf JM |
28481 | .PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb |
28482 | maybe-maintainer-clean-gdb: | |
28483 | @if gdb | |
28484 | maybe-maintainer-clean-gdb: maintainer-clean-gdb | |
2a4cbe27 | 28485 | |
a90ef4bf JM |
28486 | maintainer-clean-gdb: |
28487 | @: $(MAKE); $(unstage) | |
28488 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
b40e3958 L |
28489 | r=`${PWD_COMMAND}`; export r; \ |
28490 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28491 | $(HOST_EXPORTS) \ |
b813574b | 28492 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
28493 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28494 | done; \ | |
22121df0 | 28495 | echo "Doing maintainer-clean in gdb"; \ |
a90ef4bf | 28496 | (cd $(HOST_SUBDIR)/gdb && \ |
2a4cbe27 NN |
28497 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28498 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28499 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28500 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 28501 | maintainer-clean) \ |
2a4cbe27 NN |
28502 | || exit 1 |
28503 | ||
a90ef4bf | 28504 | @endif gdb |
2a4cbe27 | 28505 | |
2a4cbe27 | 28506 | |
a7254363 | 28507 | |
a90ef4bf JM |
28508 | .PHONY: configure-expect maybe-configure-expect |
28509 | maybe-configure-expect: | |
4f0ef2d8 | 28510 | @if gcc-bootstrap |
a90ef4bf | 28511 | configure-expect: stage_current |
4f0ef2d8 | 28512 | @endif gcc-bootstrap |
a90ef4bf JM |
28513 | @if expect |
28514 | maybe-configure-expect: configure-expect | |
28515 | configure-expect: | |
28516 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
28517 | @r=`${PWD_COMMAND}`; export r; \ |
28518 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 28519 | test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \ |
22121df0 | 28520 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect; \ |
1f53ca9a | 28521 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
28522 | echo Configuring in $(HOST_SUBDIR)/expect; \ |
28523 | cd "$(HOST_SUBDIR)/expect" || exit 1; \ | |
be01d343 PB |
28524 | case $(srcdir) in \ |
28525 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 28526 | *) topdir=`echo $(HOST_SUBDIR)/expect/ | \ |
be01d343 PB |
28527 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
28528 | esac; \ | |
1b6c0831 L |
28529 | module_srcdir=expect; \ |
28530 | $(SHELL) \ | |
28531 | $$s/$$module_srcdir/configure \ | |
28532 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 28533 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 28534 | --target=${target_alias} \ |
be01d343 | 28535 | || exit 1 |
a90ef4bf | 28536 | @endif expect |
be01d343 PB |
28537 | |
28538 | ||
28539 | ||
be01d343 | 28540 | |
8520c408 | 28541 | |
a90ef4bf JM |
28542 | .PHONY: all-expect maybe-all-expect |
28543 | maybe-all-expect: | |
28544 | @if gcc-bootstrap | |
28545 | all-expect: stage_current | |
28546 | @endif gcc-bootstrap | |
28547 | @if expect | |
28548 | TARGET-expect=all | |
28549 | maybe-all-expect: all-expect | |
28550 | all-expect: configure-expect | |
28551 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
28552 | @r=`${PWD_COMMAND}`; export r; \ |
28553 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
28554 | $(HOST_EXPORTS) \ |
28555 | (cd $(HOST_SUBDIR)/expect && \ | |
b3676d82 | 28556 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
28557 | $(TARGET-expect)) |
28558 | @endif expect | |
8520c408 | 28559 | |
a90ef4bf JM |
28560 | |
28561 | ||
28562 | ||
28563 | .PHONY: check-expect maybe-check-expect | |
28564 | maybe-check-expect: | |
28565 | @if expect | |
28566 | maybe-check-expect: check-expect | |
28567 | ||
28568 | check-expect: | |
28569 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
28570 | @r=`${PWD_COMMAND}`; export r; \ |
28571 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 28572 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
28573 | (cd $(HOST_SUBDIR)/expect && \ |
28574 | $(MAKE) $(FLAGS_TO_PASS) check) | |
be01d343 | 28575 | |
a90ef4bf JM |
28576 | @endif expect |
28577 | ||
28578 | .PHONY: install-expect maybe-install-expect | |
28579 | maybe-install-expect: | |
28580 | @if expect | |
28581 | maybe-install-expect: install-expect | |
28582 | ||
28583 | install-expect: installdirs | |
28584 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
28585 | @r=`${PWD_COMMAND}`; export r; \ |
28586 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
be01d343 | 28587 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
28588 | (cd $(HOST_SUBDIR)/expect && \ |
28589 | $(MAKE) $(FLAGS_TO_PASS) install) | |
be01d343 | 28590 | |
a90ef4bf JM |
28591 | @endif expect |
28592 | ||
28593 | .PHONY: install-strip-expect maybe-install-strip-expect | |
28594 | maybe-install-strip-expect: | |
28595 | @if expect | |
28596 | maybe-install-strip-expect: install-strip-expect | |
28597 | ||
28598 | install-strip-expect: installdirs | |
28599 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
28600 | @r=`${PWD_COMMAND}`; export r; \ |
28601 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
be01d343 | 28602 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
28603 | (cd $(HOST_SUBDIR)/expect && \ |
28604 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
be01d343 | 28605 | |
a90ef4bf | 28606 | @endif expect |
be01d343 | 28607 | |
a90ef4bf | 28608 | # Other targets (info, dvi, pdf, etc.) |
be01d343 | 28609 | |
a90ef4bf JM |
28610 | .PHONY: maybe-info-expect info-expect |
28611 | maybe-info-expect: | |
28612 | @if expect | |
28613 | maybe-info-expect: info-expect | |
be01d343 | 28614 | |
a90ef4bf JM |
28615 | info-expect: \ |
28616 | configure-expect | |
28617 | @: $(MAKE); $(unstage) | |
28618 | @[ -f ./expect/Makefile ] || exit 0; \ | |
28619 | r=`${PWD_COMMAND}`; export r; \ | |
be01d343 | 28620 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
28621 | $(HOST_EXPORTS) \ |
28622 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28623 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28624 | done; \ | |
22121df0 | 28625 | echo "Doing info in expect"; \ |
a90ef4bf JM |
28626 | (cd $(HOST_SUBDIR)/expect && \ |
28627 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28628 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28629 | "RANLIB=$${RANLIB}" \ | |
28630 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
28631 | info) \ | |
28632 | || exit 1 | |
be01d343 | 28633 | |
a90ef4bf | 28634 | @endif expect |
be01d343 | 28635 | |
a90ef4bf JM |
28636 | .PHONY: maybe-dvi-expect dvi-expect |
28637 | maybe-dvi-expect: | |
28638 | @if expect | |
28639 | maybe-dvi-expect: dvi-expect | |
be01d343 | 28640 | |
a90ef4bf JM |
28641 | dvi-expect: \ |
28642 | configure-expect | |
28643 | @: $(MAKE); $(unstage) | |
28644 | @[ -f ./expect/Makefile ] || exit 0; \ | |
28645 | r=`${PWD_COMMAND}`; export r; \ | |
be01d343 | 28646 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
28647 | $(HOST_EXPORTS) \ |
28648 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28649 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28650 | done; \ | |
22121df0 | 28651 | echo "Doing dvi in expect"; \ |
a90ef4bf JM |
28652 | (cd $(HOST_SUBDIR)/expect && \ |
28653 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28654 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28655 | "RANLIB=$${RANLIB}" \ | |
28656 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
28657 | dvi) \ | |
28658 | || exit 1 | |
be01d343 | 28659 | |
a90ef4bf | 28660 | @endif expect |
be01d343 | 28661 | |
a90ef4bf JM |
28662 | .PHONY: maybe-pdf-expect pdf-expect |
28663 | maybe-pdf-expect: | |
28664 | @if expect | |
28665 | maybe-pdf-expect: pdf-expect | |
be01d343 | 28666 | |
a90ef4bf JM |
28667 | pdf-expect: \ |
28668 | configure-expect | |
28669 | @: $(MAKE); $(unstage) | |
28670 | @[ -f ./expect/Makefile ] || exit 0; \ | |
28671 | r=`${PWD_COMMAND}`; export r; \ | |
be01d343 PB |
28672 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
28673 | $(HOST_EXPORTS) \ | |
a90ef4bf JM |
28674 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
28675 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28676 | done; \ | |
22121df0 | 28677 | echo "Doing pdf in expect"; \ |
a90ef4bf JM |
28678 | (cd $(HOST_SUBDIR)/expect && \ |
28679 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28680 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28681 | "RANLIB=$${RANLIB}" \ | |
28682 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
28683 | pdf) \ | |
28684 | || exit 1 | |
be01d343 | 28685 | |
a90ef4bf | 28686 | @endif expect |
be01d343 | 28687 | |
a90ef4bf JM |
28688 | .PHONY: maybe-html-expect html-expect |
28689 | maybe-html-expect: | |
28690 | @if expect | |
28691 | maybe-html-expect: html-expect | |
be01d343 | 28692 | |
a90ef4bf JM |
28693 | html-expect: \ |
28694 | configure-expect | |
28695 | @: $(MAKE); $(unstage) | |
28696 | @[ -f ./expect/Makefile ] || exit 0; \ | |
28697 | r=`${PWD_COMMAND}`; export r; \ | |
be01d343 PB |
28698 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
28699 | $(HOST_EXPORTS) \ | |
a90ef4bf JM |
28700 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
28701 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28702 | done; \ | |
22121df0 | 28703 | echo "Doing html in expect"; \ |
a90ef4bf JM |
28704 | (cd $(HOST_SUBDIR)/expect && \ |
28705 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28706 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28707 | "RANLIB=$${RANLIB}" \ | |
28708 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
28709 | html) \ | |
28710 | || exit 1 | |
be01d343 | 28711 | |
a90ef4bf | 28712 | @endif expect |
be01d343 | 28713 | |
a90ef4bf JM |
28714 | .PHONY: maybe-TAGS-expect TAGS-expect |
28715 | maybe-TAGS-expect: | |
28716 | @if expect | |
28717 | maybe-TAGS-expect: TAGS-expect | |
9b980aa1 | 28718 | |
a90ef4bf JM |
28719 | TAGS-expect: \ |
28720 | configure-expect | |
9b980aa1 | 28721 | @: $(MAKE); $(unstage) |
a90ef4bf | 28722 | @[ -f ./expect/Makefile ] || exit 0; \ |
be01d343 PB |
28723 | r=`${PWD_COMMAND}`; export r; \ |
28724 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28725 | $(HOST_EXPORTS) \ | |
28726 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28727 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28728 | done; \ | |
22121df0 | 28729 | echo "Doing TAGS in expect"; \ |
a90ef4bf | 28730 | (cd $(HOST_SUBDIR)/expect && \ |
be01d343 PB |
28731 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28732 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28733 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28734 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
be01d343 PB |
28735 | TAGS) \ |
28736 | || exit 1 | |
28737 | ||
a90ef4bf | 28738 | @endif expect |
be01d343 | 28739 | |
a90ef4bf JM |
28740 | .PHONY: maybe-install-info-expect install-info-expect |
28741 | maybe-install-info-expect: | |
28742 | @if expect | |
28743 | maybe-install-info-expect: install-info-expect | |
be01d343 | 28744 | |
a90ef4bf JM |
28745 | install-info-expect: \ |
28746 | configure-expect \ | |
28747 | info-expect | |
28748 | @: $(MAKE); $(unstage) | |
28749 | @[ -f ./expect/Makefile ] || exit 0; \ | |
be01d343 PB |
28750 | r=`${PWD_COMMAND}`; export r; \ |
28751 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28752 | $(HOST_EXPORTS) \ | |
28753 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28754 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28755 | done; \ | |
22121df0 | 28756 | echo "Doing install-info in expect"; \ |
a90ef4bf | 28757 | (cd $(HOST_SUBDIR)/expect && \ |
be01d343 PB |
28758 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28759 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28760 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28761 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
be01d343 PB |
28762 | install-info) \ |
28763 | || exit 1 | |
28764 | ||
a90ef4bf | 28765 | @endif expect |
be01d343 | 28766 | |
a90ef4bf JM |
28767 | .PHONY: maybe-install-pdf-expect install-pdf-expect |
28768 | maybe-install-pdf-expect: | |
28769 | @if expect | |
28770 | maybe-install-pdf-expect: install-pdf-expect | |
a3ca38d2 | 28771 | |
a90ef4bf JM |
28772 | install-pdf-expect: \ |
28773 | configure-expect \ | |
28774 | pdf-expect | |
28775 | @: $(MAKE); $(unstage) | |
28776 | @[ -f ./expect/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
28777 | r=`${PWD_COMMAND}`; export r; \ |
28778 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28779 | $(HOST_EXPORTS) \ | |
28780 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28781 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28782 | done; \ | |
22121df0 | 28783 | echo "Doing install-pdf in expect"; \ |
a90ef4bf | 28784 | (cd $(HOST_SUBDIR)/expect && \ |
a3ca38d2 DD |
28785 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28786 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28787 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28788 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
28789 | install-pdf) \ |
28790 | || exit 1 | |
28791 | ||
a90ef4bf | 28792 | @endif expect |
a3ca38d2 | 28793 | |
a90ef4bf JM |
28794 | .PHONY: maybe-install-html-expect install-html-expect |
28795 | maybe-install-html-expect: | |
28796 | @if expect | |
28797 | maybe-install-html-expect: install-html-expect | |
108a6f8e | 28798 | |
a90ef4bf JM |
28799 | install-html-expect: \ |
28800 | configure-expect \ | |
28801 | html-expect | |
28802 | @: $(MAKE); $(unstage) | |
28803 | @[ -f ./expect/Makefile ] || exit 0; \ | |
108a6f8e CD |
28804 | r=`${PWD_COMMAND}`; export r; \ |
28805 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28806 | $(HOST_EXPORTS) \ | |
28807 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28808 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28809 | done; \ | |
22121df0 | 28810 | echo "Doing install-html in expect"; \ |
a90ef4bf | 28811 | (cd $(HOST_SUBDIR)/expect && \ |
108a6f8e CD |
28812 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28813 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28814 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28815 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
28816 | install-html) \ |
28817 | || exit 1 | |
28818 | ||
a90ef4bf | 28819 | @endif expect |
108a6f8e | 28820 | |
a90ef4bf JM |
28821 | .PHONY: maybe-installcheck-expect installcheck-expect |
28822 | maybe-installcheck-expect: | |
28823 | @if expect | |
28824 | maybe-installcheck-expect: installcheck-expect | |
be01d343 | 28825 | |
a90ef4bf JM |
28826 | installcheck-expect: \ |
28827 | configure-expect | |
28828 | @: $(MAKE); $(unstage) | |
28829 | @[ -f ./expect/Makefile ] || exit 0; \ | |
be01d343 PB |
28830 | r=`${PWD_COMMAND}`; export r; \ |
28831 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28832 | $(HOST_EXPORTS) \ | |
28833 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28834 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28835 | done; \ | |
22121df0 | 28836 | echo "Doing installcheck in expect"; \ |
a90ef4bf | 28837 | (cd $(HOST_SUBDIR)/expect && \ |
be01d343 PB |
28838 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28839 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28840 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28841 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
be01d343 PB |
28842 | installcheck) \ |
28843 | || exit 1 | |
28844 | ||
a90ef4bf | 28845 | @endif expect |
be01d343 | 28846 | |
a90ef4bf JM |
28847 | .PHONY: maybe-mostlyclean-expect mostlyclean-expect |
28848 | maybe-mostlyclean-expect: | |
28849 | @if expect | |
28850 | maybe-mostlyclean-expect: mostlyclean-expect | |
be01d343 | 28851 | |
a90ef4bf JM |
28852 | mostlyclean-expect: |
28853 | @: $(MAKE); $(unstage) | |
28854 | @[ -f ./expect/Makefile ] || exit 0; \ | |
be01d343 PB |
28855 | r=`${PWD_COMMAND}`; export r; \ |
28856 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28857 | $(HOST_EXPORTS) \ | |
28858 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28859 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28860 | done; \ | |
22121df0 | 28861 | echo "Doing mostlyclean in expect"; \ |
a90ef4bf | 28862 | (cd $(HOST_SUBDIR)/expect && \ |
be01d343 PB |
28863 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28864 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28865 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28866 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
be01d343 PB |
28867 | mostlyclean) \ |
28868 | || exit 1 | |
28869 | ||
a90ef4bf | 28870 | @endif expect |
be01d343 | 28871 | |
a90ef4bf JM |
28872 | .PHONY: maybe-clean-expect clean-expect |
28873 | maybe-clean-expect: | |
28874 | @if expect | |
28875 | maybe-clean-expect: clean-expect | |
be01d343 | 28876 | |
a90ef4bf JM |
28877 | clean-expect: |
28878 | @: $(MAKE); $(unstage) | |
28879 | @[ -f ./expect/Makefile ] || exit 0; \ | |
be01d343 PB |
28880 | r=`${PWD_COMMAND}`; export r; \ |
28881 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28882 | $(HOST_EXPORTS) \ | |
28883 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28884 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28885 | done; \ | |
22121df0 | 28886 | echo "Doing clean in expect"; \ |
a90ef4bf | 28887 | (cd $(HOST_SUBDIR)/expect && \ |
be01d343 PB |
28888 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28889 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28890 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28891 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
be01d343 PB |
28892 | clean) \ |
28893 | || exit 1 | |
28894 | ||
a90ef4bf | 28895 | @endif expect |
be01d343 | 28896 | |
a90ef4bf JM |
28897 | .PHONY: maybe-distclean-expect distclean-expect |
28898 | maybe-distclean-expect: | |
28899 | @if expect | |
28900 | maybe-distclean-expect: distclean-expect | |
be01d343 | 28901 | |
a90ef4bf JM |
28902 | distclean-expect: |
28903 | @: $(MAKE); $(unstage) | |
28904 | @[ -f ./expect/Makefile ] || exit 0; \ | |
be01d343 PB |
28905 | r=`${PWD_COMMAND}`; export r; \ |
28906 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28907 | $(HOST_EXPORTS) \ | |
28908 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28909 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28910 | done; \ | |
22121df0 | 28911 | echo "Doing distclean in expect"; \ |
a90ef4bf | 28912 | (cd $(HOST_SUBDIR)/expect && \ |
be01d343 PB |
28913 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28914 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28915 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28916 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
be01d343 PB |
28917 | distclean) \ |
28918 | || exit 1 | |
28919 | ||
a90ef4bf | 28920 | @endif expect |
be01d343 | 28921 | |
a90ef4bf JM |
28922 | .PHONY: maybe-maintainer-clean-expect maintainer-clean-expect |
28923 | maybe-maintainer-clean-expect: | |
28924 | @if expect | |
28925 | maybe-maintainer-clean-expect: maintainer-clean-expect | |
be01d343 | 28926 | |
a90ef4bf JM |
28927 | maintainer-clean-expect: |
28928 | @: $(MAKE); $(unstage) | |
28929 | @[ -f ./expect/Makefile ] || exit 0; \ | |
be01d343 PB |
28930 | r=`${PWD_COMMAND}`; export r; \ |
28931 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28932 | $(HOST_EXPORTS) \ | |
28933 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28934 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28935 | done; \ | |
22121df0 | 28936 | echo "Doing maintainer-clean in expect"; \ |
a90ef4bf | 28937 | (cd $(HOST_SUBDIR)/expect && \ |
be01d343 PB |
28938 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28939 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28940 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 28941 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
be01d343 PB |
28942 | maintainer-clean) \ |
28943 | || exit 1 | |
28944 | ||
a90ef4bf | 28945 | @endif expect |
be01d343 PB |
28946 | |
28947 | ||
28948 | ||
a90ef4bf JM |
28949 | .PHONY: configure-guile maybe-configure-guile |
28950 | maybe-configure-guile: | |
4f0ef2d8 | 28951 | @if gcc-bootstrap |
a90ef4bf | 28952 | configure-guile: stage_current |
4f0ef2d8 | 28953 | @endif gcc-bootstrap |
a90ef4bf JM |
28954 | @if guile |
28955 | maybe-configure-guile: configure-guile | |
28956 | configure-guile: | |
0aed8855 | 28957 | @: $(MAKE); $(unstage) |
c52c6897 | 28958 | @r=`${PWD_COMMAND}`; export r; \ |
4b1cb4fe | 28959 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 28960 | test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \ |
22121df0 | 28961 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile; \ |
1f53ca9a | 28962 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
28963 | echo Configuring in $(HOST_SUBDIR)/guile; \ |
28964 | cd "$(HOST_SUBDIR)/guile" || exit 1; \ | |
4b1cb4fe | 28965 | case $(srcdir) in \ |
b00612cc | 28966 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 28967 | *) topdir=`echo $(HOST_SUBDIR)/guile/ | \ |
b00612cc | 28968 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4b1cb4fe | 28969 | esac; \ |
1b6c0831 L |
28970 | module_srcdir=guile; \ |
28971 | $(SHELL) \ | |
28972 | $$s/$$module_srcdir/configure \ | |
28973 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 28974 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 28975 | --target=${target_alias} \ |
4b1cb4fe | 28976 | || exit 1 |
a90ef4bf | 28977 | @endif guile |
4b1cb4fe | 28978 | |
a7254363 PB |
28979 | |
28980 | ||
d545f33b PB |
28981 | |
28982 | ||
a90ef4bf JM |
28983 | .PHONY: all-guile maybe-all-guile |
28984 | maybe-all-guile: | |
4f0ef2d8 | 28985 | @if gcc-bootstrap |
a90ef4bf | 28986 | all-guile: stage_current |
4f0ef2d8 | 28987 | @endif gcc-bootstrap |
a90ef4bf JM |
28988 | @if guile |
28989 | TARGET-guile=all | |
28990 | maybe-all-guile: all-guile | |
28991 | all-guile: configure-guile | |
28992 | @: $(MAKE); $(unstage) | |
4b1cb4fe DD |
28993 | @r=`${PWD_COMMAND}`; export r; \ |
28994 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 28995 | $(HOST_EXPORTS) \ |
a90ef4bf | 28996 | (cd $(HOST_SUBDIR)/guile && \ |
b3676d82 | 28997 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
28998 | $(TARGET-guile)) |
28999 | @endif guile | |
4b1cb4fe | 29000 | |
a7254363 | 29001 | |
d545f33b PB |
29002 | |
29003 | ||
a90ef4bf JM |
29004 | .PHONY: check-guile maybe-check-guile |
29005 | maybe-check-guile: | |
29006 | @if guile | |
29007 | maybe-check-guile: check-guile | |
4b1cb4fe | 29008 | |
a90ef4bf | 29009 | check-guile: |
0aed8855 | 29010 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
29011 | @r=`${PWD_COMMAND}`; export r; \ |
29012 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 29013 | $(HOST_EXPORTS) \ |
a90ef4bf | 29014 | (cd $(HOST_SUBDIR)/guile && \ |
b00612cc | 29015 | $(MAKE) $(FLAGS_TO_PASS) check) |
4b1cb4fe | 29016 | |
a90ef4bf | 29017 | @endif guile |
4b1cb4fe | 29018 | |
a90ef4bf JM |
29019 | .PHONY: install-guile maybe-install-guile |
29020 | maybe-install-guile: | |
29021 | @if guile | |
29022 | maybe-install-guile: install-guile | |
4b1cb4fe | 29023 | |
a90ef4bf | 29024 | install-guile: installdirs |
0aed8855 | 29025 | @: $(MAKE); $(unstage) |
b813574b PB |
29026 | @r=`${PWD_COMMAND}`; export r; \ |
29027 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 29028 | $(HOST_EXPORTS) \ |
a90ef4bf | 29029 | (cd $(HOST_SUBDIR)/guile && \ |
2da12f12 | 29030 | $(MAKE) $(FLAGS_TO_PASS) install) |
4b1cb4fe | 29031 | |
a90ef4bf | 29032 | @endif guile |
4b1cb4fe | 29033 | |
a90ef4bf JM |
29034 | .PHONY: install-strip-guile maybe-install-strip-guile |
29035 | maybe-install-strip-guile: | |
29036 | @if guile | |
29037 | maybe-install-strip-guile: install-strip-guile | |
9b980aa1 | 29038 | |
a90ef4bf | 29039 | install-strip-guile: installdirs |
9b980aa1 RW |
29040 | @: $(MAKE); $(unstage) |
29041 | @r=`${PWD_COMMAND}`; export r; \ | |
29042 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29043 | $(HOST_EXPORTS) \ | |
a90ef4bf | 29044 | (cd $(HOST_SUBDIR)/guile && \ |
9b980aa1 RW |
29045 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
29046 | ||
a90ef4bf | 29047 | @endif guile |
9b980aa1 | 29048 | |
56a8fe78 | 29049 | # Other targets (info, dvi, pdf, etc.) |
4b1cb4fe | 29050 | |
a90ef4bf JM |
29051 | .PHONY: maybe-info-guile info-guile |
29052 | maybe-info-guile: | |
29053 | @if guile | |
29054 | maybe-info-guile: info-guile | |
4b1cb4fe | 29055 | |
a90ef4bf JM |
29056 | info-guile: \ |
29057 | configure-guile | |
0aed8855 | 29058 | @: $(MAKE); $(unstage) |
a90ef4bf | 29059 | @[ -f ./guile/Makefile ] || exit 0; \ |
4b1cb4fe DD |
29060 | r=`${PWD_COMMAND}`; export r; \ |
29061 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29062 | $(HOST_EXPORTS) \ |
b813574b | 29063 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
29064 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29065 | done; \ | |
22121df0 | 29066 | echo "Doing info in guile"; \ |
a90ef4bf | 29067 | (cd $(HOST_SUBDIR)/guile && \ |
4b1cb4fe DD |
29068 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29069 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29070 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29071 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29072 | info) \ |
4b1cb4fe DD |
29073 | || exit 1 |
29074 | ||
a90ef4bf | 29075 | @endif guile |
4b1cb4fe | 29076 | |
a90ef4bf JM |
29077 | .PHONY: maybe-dvi-guile dvi-guile |
29078 | maybe-dvi-guile: | |
29079 | @if guile | |
29080 | maybe-dvi-guile: dvi-guile | |
4b1cb4fe | 29081 | |
a90ef4bf JM |
29082 | dvi-guile: \ |
29083 | configure-guile | |
0aed8855 | 29084 | @: $(MAKE); $(unstage) |
a90ef4bf | 29085 | @[ -f ./guile/Makefile ] || exit 0; \ |
4b1cb4fe DD |
29086 | r=`${PWD_COMMAND}`; export r; \ |
29087 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29088 | $(HOST_EXPORTS) \ |
b813574b | 29089 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
29090 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29091 | done; \ | |
22121df0 | 29092 | echo "Doing dvi in guile"; \ |
a90ef4bf | 29093 | (cd $(HOST_SUBDIR)/guile && \ |
4b1cb4fe DD |
29094 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29095 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29096 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29097 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29098 | dvi) \ |
4b1cb4fe DD |
29099 | || exit 1 |
29100 | ||
a90ef4bf | 29101 | @endif guile |
4b1cb4fe | 29102 | |
a90ef4bf JM |
29103 | .PHONY: maybe-pdf-guile pdf-guile |
29104 | maybe-pdf-guile: | |
29105 | @if guile | |
29106 | maybe-pdf-guile: pdf-guile | |
56a8fe78 | 29107 | |
a90ef4bf JM |
29108 | pdf-guile: \ |
29109 | configure-guile | |
56a8fe78 | 29110 | @: $(MAKE); $(unstage) |
a90ef4bf | 29111 | @[ -f ./guile/Makefile ] || exit 0; \ |
56a8fe78 DD |
29112 | r=`${PWD_COMMAND}`; export r; \ |
29113 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29114 | $(HOST_EXPORTS) \ | |
29115 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
29116 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29117 | done; \ | |
22121df0 | 29118 | echo "Doing pdf in guile"; \ |
a90ef4bf | 29119 | (cd $(HOST_SUBDIR)/guile && \ |
56a8fe78 DD |
29120 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29121 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29122 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29123 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
29124 | pdf) \ |
29125 | || exit 1 | |
29126 | ||
a90ef4bf | 29127 | @endif guile |
56a8fe78 | 29128 | |
a90ef4bf JM |
29129 | .PHONY: maybe-html-guile html-guile |
29130 | maybe-html-guile: | |
29131 | @if guile | |
29132 | maybe-html-guile: html-guile | |
6d389afc | 29133 | |
a90ef4bf JM |
29134 | html-guile: \ |
29135 | configure-guile | |
0aed8855 | 29136 | @: $(MAKE); $(unstage) |
a90ef4bf | 29137 | @[ -f ./guile/Makefile ] || exit 0; \ |
6d389afc MS |
29138 | r=`${PWD_COMMAND}`; export r; \ |
29139 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
29140 | $(HOST_EXPORTS) \ |
29141 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
29142 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29143 | done; \ | |
22121df0 | 29144 | echo "Doing html in guile"; \ |
a90ef4bf | 29145 | (cd $(HOST_SUBDIR)/guile && \ |
6d389afc MS |
29146 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29147 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29148 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29149 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
29150 | html) \ |
29151 | || exit 1 | |
29152 | ||
a90ef4bf | 29153 | @endif guile |
6d389afc | 29154 | |
a90ef4bf JM |
29155 | .PHONY: maybe-TAGS-guile TAGS-guile |
29156 | maybe-TAGS-guile: | |
29157 | @if guile | |
29158 | maybe-TAGS-guile: TAGS-guile | |
4b1cb4fe | 29159 | |
a90ef4bf JM |
29160 | TAGS-guile: \ |
29161 | configure-guile | |
0aed8855 | 29162 | @: $(MAKE); $(unstage) |
a90ef4bf | 29163 | @[ -f ./guile/Makefile ] || exit 0; \ |
4b1cb4fe DD |
29164 | r=`${PWD_COMMAND}`; export r; \ |
29165 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29166 | $(HOST_EXPORTS) \ |
b813574b | 29167 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
29168 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29169 | done; \ | |
22121df0 | 29170 | echo "Doing TAGS in guile"; \ |
a90ef4bf | 29171 | (cd $(HOST_SUBDIR)/guile && \ |
4b1cb4fe DD |
29172 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29173 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29174 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29175 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29176 | TAGS) \ |
4b1cb4fe DD |
29177 | || exit 1 |
29178 | ||
a90ef4bf | 29179 | @endif guile |
4b1cb4fe | 29180 | |
a90ef4bf JM |
29181 | .PHONY: maybe-install-info-guile install-info-guile |
29182 | maybe-install-info-guile: | |
29183 | @if guile | |
29184 | maybe-install-info-guile: install-info-guile | |
4b1cb4fe | 29185 | |
a90ef4bf JM |
29186 | install-info-guile: \ |
29187 | configure-guile \ | |
29188 | info-guile | |
0aed8855 | 29189 | @: $(MAKE); $(unstage) |
a90ef4bf | 29190 | @[ -f ./guile/Makefile ] || exit 0; \ |
4b1cb4fe DD |
29191 | r=`${PWD_COMMAND}`; export r; \ |
29192 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29193 | $(HOST_EXPORTS) \ |
b813574b | 29194 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
29195 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29196 | done; \ | |
22121df0 | 29197 | echo "Doing install-info in guile"; \ |
a90ef4bf | 29198 | (cd $(HOST_SUBDIR)/guile && \ |
4b1cb4fe DD |
29199 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29200 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29201 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29202 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29203 | install-info) \ |
4b1cb4fe DD |
29204 | || exit 1 |
29205 | ||
a90ef4bf | 29206 | @endif guile |
4b1cb4fe | 29207 | |
a90ef4bf JM |
29208 | .PHONY: maybe-install-pdf-guile install-pdf-guile |
29209 | maybe-install-pdf-guile: | |
29210 | @if guile | |
29211 | maybe-install-pdf-guile: install-pdf-guile | |
a3ca38d2 | 29212 | |
a90ef4bf JM |
29213 | install-pdf-guile: \ |
29214 | configure-guile \ | |
29215 | pdf-guile | |
a3ca38d2 | 29216 | @: $(MAKE); $(unstage) |
a90ef4bf | 29217 | @[ -f ./guile/Makefile ] || exit 0; \ |
a3ca38d2 DD |
29218 | r=`${PWD_COMMAND}`; export r; \ |
29219 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29220 | $(HOST_EXPORTS) \ | |
29221 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
29222 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29223 | done; \ | |
22121df0 | 29224 | echo "Doing install-pdf in guile"; \ |
a90ef4bf | 29225 | (cd $(HOST_SUBDIR)/guile && \ |
a3ca38d2 DD |
29226 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29227 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29228 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29229 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
29230 | install-pdf) \ |
29231 | || exit 1 | |
29232 | ||
a90ef4bf | 29233 | @endif guile |
a3ca38d2 | 29234 | |
a90ef4bf JM |
29235 | .PHONY: maybe-install-html-guile install-html-guile |
29236 | maybe-install-html-guile: | |
29237 | @if guile | |
29238 | maybe-install-html-guile: install-html-guile | |
108a6f8e | 29239 | |
a90ef4bf JM |
29240 | install-html-guile: \ |
29241 | configure-guile \ | |
29242 | html-guile | |
108a6f8e | 29243 | @: $(MAKE); $(unstage) |
a90ef4bf | 29244 | @[ -f ./guile/Makefile ] || exit 0; \ |
108a6f8e CD |
29245 | r=`${PWD_COMMAND}`; export r; \ |
29246 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29247 | $(HOST_EXPORTS) \ | |
29248 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
29249 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29250 | done; \ | |
22121df0 | 29251 | echo "Doing install-html in guile"; \ |
a90ef4bf | 29252 | (cd $(HOST_SUBDIR)/guile && \ |
108a6f8e CD |
29253 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29254 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29255 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29256 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
29257 | install-html) \ |
29258 | || exit 1 | |
29259 | ||
a90ef4bf | 29260 | @endif guile |
108a6f8e | 29261 | |
a90ef4bf JM |
29262 | .PHONY: maybe-installcheck-guile installcheck-guile |
29263 | maybe-installcheck-guile: | |
29264 | @if guile | |
29265 | maybe-installcheck-guile: installcheck-guile | |
4b1cb4fe | 29266 | |
a90ef4bf JM |
29267 | installcheck-guile: \ |
29268 | configure-guile | |
0aed8855 | 29269 | @: $(MAKE); $(unstage) |
a90ef4bf | 29270 | @[ -f ./guile/Makefile ] || exit 0; \ |
4b1cb4fe DD |
29271 | r=`${PWD_COMMAND}`; export r; \ |
29272 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29273 | $(HOST_EXPORTS) \ |
b813574b | 29274 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
29275 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29276 | done; \ | |
22121df0 | 29277 | echo "Doing installcheck in guile"; \ |
a90ef4bf | 29278 | (cd $(HOST_SUBDIR)/guile && \ |
4b1cb4fe DD |
29279 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29280 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29281 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29282 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29283 | installcheck) \ |
4b1cb4fe DD |
29284 | || exit 1 |
29285 | ||
a90ef4bf | 29286 | @endif guile |
4b1cb4fe | 29287 | |
a90ef4bf JM |
29288 | .PHONY: maybe-mostlyclean-guile mostlyclean-guile |
29289 | maybe-mostlyclean-guile: | |
29290 | @if guile | |
29291 | maybe-mostlyclean-guile: mostlyclean-guile | |
4b1cb4fe | 29292 | |
a90ef4bf | 29293 | mostlyclean-guile: |
0aed8855 | 29294 | @: $(MAKE); $(unstage) |
a90ef4bf | 29295 | @[ -f ./guile/Makefile ] || exit 0; \ |
4b1cb4fe DD |
29296 | r=`${PWD_COMMAND}`; export r; \ |
29297 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29298 | $(HOST_EXPORTS) \ |
b813574b | 29299 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
29300 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29301 | done; \ | |
22121df0 | 29302 | echo "Doing mostlyclean in guile"; \ |
a90ef4bf | 29303 | (cd $(HOST_SUBDIR)/guile && \ |
4b1cb4fe DD |
29304 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29305 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29306 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29307 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29308 | mostlyclean) \ |
4b1cb4fe DD |
29309 | || exit 1 |
29310 | ||
a90ef4bf | 29311 | @endif guile |
4b1cb4fe | 29312 | |
a90ef4bf JM |
29313 | .PHONY: maybe-clean-guile clean-guile |
29314 | maybe-clean-guile: | |
29315 | @if guile | |
29316 | maybe-clean-guile: clean-guile | |
4b1cb4fe | 29317 | |
a90ef4bf | 29318 | clean-guile: |
0aed8855 | 29319 | @: $(MAKE); $(unstage) |
a90ef4bf | 29320 | @[ -f ./guile/Makefile ] || exit 0; \ |
4b1cb4fe DD |
29321 | r=`${PWD_COMMAND}`; export r; \ |
29322 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29323 | $(HOST_EXPORTS) \ |
b813574b | 29324 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
29325 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29326 | done; \ | |
22121df0 | 29327 | echo "Doing clean in guile"; \ |
a90ef4bf | 29328 | (cd $(HOST_SUBDIR)/guile && \ |
4b1cb4fe DD |
29329 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29330 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29331 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29332 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29333 | clean) \ |
4b1cb4fe DD |
29334 | || exit 1 |
29335 | ||
a90ef4bf | 29336 | @endif guile |
4b1cb4fe | 29337 | |
a90ef4bf JM |
29338 | .PHONY: maybe-distclean-guile distclean-guile |
29339 | maybe-distclean-guile: | |
29340 | @if guile | |
29341 | maybe-distclean-guile: distclean-guile | |
4b1cb4fe | 29342 | |
a90ef4bf | 29343 | distclean-guile: |
0aed8855 | 29344 | @: $(MAKE); $(unstage) |
a90ef4bf | 29345 | @[ -f ./guile/Makefile ] || exit 0; \ |
4b1cb4fe DD |
29346 | r=`${PWD_COMMAND}`; export r; \ |
29347 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29348 | $(HOST_EXPORTS) \ |
b813574b | 29349 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
29350 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29351 | done; \ | |
22121df0 | 29352 | echo "Doing distclean in guile"; \ |
a90ef4bf | 29353 | (cd $(HOST_SUBDIR)/guile && \ |
4b1cb4fe DD |
29354 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29355 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29356 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29357 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29358 | distclean) \ |
4b1cb4fe DD |
29359 | || exit 1 |
29360 | ||
a90ef4bf | 29361 | @endif guile |
4b1cb4fe | 29362 | |
a90ef4bf JM |
29363 | .PHONY: maybe-maintainer-clean-guile maintainer-clean-guile |
29364 | maybe-maintainer-clean-guile: | |
29365 | @if guile | |
29366 | maybe-maintainer-clean-guile: maintainer-clean-guile | |
4b1cb4fe | 29367 | |
a90ef4bf | 29368 | maintainer-clean-guile: |
0aed8855 | 29369 | @: $(MAKE); $(unstage) |
a90ef4bf | 29370 | @[ -f ./guile/Makefile ] || exit 0; \ |
4b1cb4fe DD |
29371 | r=`${PWD_COMMAND}`; export r; \ |
29372 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29373 | $(HOST_EXPORTS) \ |
b813574b | 29374 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
29375 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29376 | done; \ | |
22121df0 | 29377 | echo "Doing maintainer-clean in guile"; \ |
a90ef4bf | 29378 | (cd $(HOST_SUBDIR)/guile && \ |
4b1cb4fe DD |
29379 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29380 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29381 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29382 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29383 | maintainer-clean) \ |
4b1cb4fe DD |
29384 | || exit 1 |
29385 | ||
a90ef4bf | 29386 | @endif guile |
4b1cb4fe DD |
29387 | |
29388 | ||
a7254363 | 29389 | |
a90ef4bf JM |
29390 | .PHONY: configure-tk maybe-configure-tk |
29391 | maybe-configure-tk: | |
4f0ef2d8 | 29392 | @if gcc-bootstrap |
a90ef4bf | 29393 | configure-tk: stage_current |
4f0ef2d8 | 29394 | @endif gcc-bootstrap |
a90ef4bf JM |
29395 | @if tk |
29396 | maybe-configure-tk: configure-tk | |
29397 | configure-tk: | |
29398 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
29399 | @r=`${PWD_COMMAND}`; export r; \ |
29400 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 29401 | test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \ |
22121df0 | 29402 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk; \ |
1f53ca9a | 29403 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
29404 | echo Configuring in $(HOST_SUBDIR)/tk; \ |
29405 | cd "$(HOST_SUBDIR)/tk" || exit 1; \ | |
4fa63067 | 29406 | case $(srcdir) in \ |
b00612cc | 29407 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 29408 | *) topdir=`echo $(HOST_SUBDIR)/tk/ | \ |
b00612cc | 29409 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 29410 | esac; \ |
1b6c0831 L |
29411 | module_srcdir=tk; \ |
29412 | $(SHELL) \ | |
29413 | $$s/$$module_srcdir/configure \ | |
29414 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 29415 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 29416 | --target=${target_alias} \ |
2a4cbe27 | 29417 | || exit 1 |
a90ef4bf | 29418 | @endif tk |
2a4cbe27 | 29419 | |
a7254363 PB |
29420 | |
29421 | ||
a90ef4bf JM |
29422 | |
29423 | ||
29424 | .PHONY: all-tk maybe-all-tk | |
29425 | maybe-all-tk: | |
29426 | @if gcc-bootstrap | |
29427 | all-tk: stage_current | |
29428 | @endif gcc-bootstrap | |
29429 | @if tk | |
29430 | TARGET-tk=all | |
29431 | maybe-all-tk: all-tk | |
29432 | all-tk: configure-tk | |
29433 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
29434 | @r=`${PWD_COMMAND}`; export r; \ |
29435 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
29436 | $(HOST_EXPORTS) \ |
29437 | (cd $(HOST_SUBDIR)/tk && \ | |
b3676d82 | 29438 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
29439 | $(TARGET-tk)) |
29440 | @endif tk | |
d545f33b | 29441 | |
a90ef4bf JM |
29442 | |
29443 | ||
29444 | ||
29445 | .PHONY: check-tk maybe-check-tk | |
29446 | maybe-check-tk: | |
29447 | @if tk | |
29448 | maybe-check-tk: check-tk | |
29449 | ||
29450 | check-tk: | |
29451 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
29452 | @r=`${PWD_COMMAND}`; export r; \ |
29453 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 29454 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
29455 | (cd $(HOST_SUBDIR)/tk && \ |
29456 | $(MAKE) $(FLAGS_TO_PASS) check) | |
8520c408 | 29457 | |
a90ef4bf JM |
29458 | @endif tk |
29459 | ||
29460 | .PHONY: install-tk maybe-install-tk | |
29461 | maybe-install-tk: | |
29462 | @if tk | |
29463 | maybe-install-tk: install-tk | |
29464 | ||
29465 | install-tk: installdirs | |
29466 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
29467 | @r=`${PWD_COMMAND}`; export r; \ |
29468 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d545f33b | 29469 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
29470 | (cd $(HOST_SUBDIR)/tk && \ |
29471 | $(MAKE) $(FLAGS_TO_PASS) install) | |
8520c408 | 29472 | |
a90ef4bf JM |
29473 | @endif tk |
29474 | ||
29475 | .PHONY: install-strip-tk maybe-install-strip-tk | |
29476 | maybe-install-strip-tk: | |
29477 | @if tk | |
29478 | maybe-install-strip-tk: install-strip-tk | |
29479 | ||
29480 | install-strip-tk: installdirs | |
29481 | @: $(MAKE); $(unstage) | |
c52c6897 PB |
29482 | @r=`${PWD_COMMAND}`; export r; \ |
29483 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d545f33b | 29484 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
29485 | (cd $(HOST_SUBDIR)/tk && \ |
29486 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
d545f33b | 29487 | |
a90ef4bf | 29488 | @endif tk |
9b980aa1 | 29489 | |
56a8fe78 | 29490 | # Other targets (info, dvi, pdf, etc.) |
2a4cbe27 | 29491 | |
a90ef4bf JM |
29492 | .PHONY: maybe-info-tk info-tk |
29493 | maybe-info-tk: | |
29494 | @if tk | |
29495 | maybe-info-tk: info-tk | |
4fa63067 | 29496 | |
a90ef4bf JM |
29497 | info-tk: \ |
29498 | configure-tk | |
29499 | @: $(MAKE); $(unstage) | |
29500 | @[ -f ./tk/Makefile ] || exit 0; \ | |
b40e3958 L |
29501 | r=`${PWD_COMMAND}`; export r; \ |
29502 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29503 | $(HOST_EXPORTS) \ |
b813574b | 29504 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
29505 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29506 | done; \ | |
22121df0 | 29507 | echo "Doing info in tk"; \ |
a90ef4bf | 29508 | (cd $(HOST_SUBDIR)/tk && \ |
6d389afc MS |
29509 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29510 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29511 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29512 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
29513 | info) \ |
29514 | || exit 1 | |
29515 | ||
a90ef4bf | 29516 | @endif tk |
6d389afc | 29517 | |
a90ef4bf JM |
29518 | .PHONY: maybe-dvi-tk dvi-tk |
29519 | maybe-dvi-tk: | |
29520 | @if tk | |
29521 | maybe-dvi-tk: dvi-tk | |
6d389afc | 29522 | |
a90ef4bf JM |
29523 | dvi-tk: \ |
29524 | configure-tk | |
29525 | @: $(MAKE); $(unstage) | |
29526 | @[ -f ./tk/Makefile ] || exit 0; \ | |
6d389afc MS |
29527 | r=`${PWD_COMMAND}`; export r; \ |
29528 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
29529 | $(HOST_EXPORTS) \ |
29530 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
29531 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29532 | done; \ | |
22121df0 | 29533 | echo "Doing dvi in tk"; \ |
a90ef4bf | 29534 | (cd $(HOST_SUBDIR)/tk && \ |
2a4cbe27 NN |
29535 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29536 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29537 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29538 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc | 29539 | dvi) \ |
2a4cbe27 NN |
29540 | || exit 1 |
29541 | ||
a90ef4bf | 29542 | @endif tk |
2a4cbe27 | 29543 | |
a90ef4bf JM |
29544 | .PHONY: maybe-pdf-tk pdf-tk |
29545 | maybe-pdf-tk: | |
29546 | @if tk | |
29547 | maybe-pdf-tk: pdf-tk | |
56a8fe78 | 29548 | |
a90ef4bf JM |
29549 | pdf-tk: \ |
29550 | configure-tk | |
29551 | @: $(MAKE); $(unstage) | |
29552 | @[ -f ./tk/Makefile ] || exit 0; \ | |
56a8fe78 DD |
29553 | r=`${PWD_COMMAND}`; export r; \ |
29554 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29555 | $(HOST_EXPORTS) \ | |
29556 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
29557 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29558 | done; \ | |
22121df0 | 29559 | echo "Doing pdf in tk"; \ |
a90ef4bf | 29560 | (cd $(HOST_SUBDIR)/tk && \ |
56a8fe78 DD |
29561 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29562 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29563 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29564 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
29565 | pdf) \ |
29566 | || exit 1 | |
29567 | ||
a90ef4bf | 29568 | @endif tk |
56a8fe78 | 29569 | |
a90ef4bf JM |
29570 | .PHONY: maybe-html-tk html-tk |
29571 | maybe-html-tk: | |
29572 | @if tk | |
29573 | maybe-html-tk: html-tk | |
2a4cbe27 | 29574 | |
a90ef4bf JM |
29575 | html-tk: \ |
29576 | configure-tk | |
29577 | @: $(MAKE); $(unstage) | |
29578 | @[ -f ./tk/Makefile ] || exit 0; \ | |
b40e3958 L |
29579 | r=`${PWD_COMMAND}`; export r; \ |
29580 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29581 | $(HOST_EXPORTS) \ |
b813574b | 29582 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
29583 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29584 | done; \ | |
22121df0 | 29585 | echo "Doing html in tk"; \ |
a90ef4bf | 29586 | (cd $(HOST_SUBDIR)/tk && \ |
2a4cbe27 NN |
29587 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29588 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29589 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29590 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc | 29591 | html) \ |
2a4cbe27 NN |
29592 | || exit 1 |
29593 | ||
a90ef4bf | 29594 | @endif tk |
2a4cbe27 | 29595 | |
a90ef4bf JM |
29596 | .PHONY: maybe-TAGS-tk TAGS-tk |
29597 | maybe-TAGS-tk: | |
29598 | @if tk | |
29599 | maybe-TAGS-tk: TAGS-tk | |
2a4cbe27 | 29600 | |
a90ef4bf JM |
29601 | TAGS-tk: \ |
29602 | configure-tk | |
29603 | @: $(MAKE); $(unstage) | |
29604 | @[ -f ./tk/Makefile ] || exit 0; \ | |
b40e3958 L |
29605 | r=`${PWD_COMMAND}`; export r; \ |
29606 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29607 | $(HOST_EXPORTS) \ |
b813574b | 29608 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
29609 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29610 | done; \ | |
22121df0 | 29611 | echo "Doing TAGS in tk"; \ |
a90ef4bf | 29612 | (cd $(HOST_SUBDIR)/tk && \ |
2a4cbe27 NN |
29613 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29614 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29615 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29616 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29617 | TAGS) \ |
2a4cbe27 NN |
29618 | || exit 1 |
29619 | ||
a90ef4bf | 29620 | @endif tk |
2a4cbe27 | 29621 | |
a90ef4bf JM |
29622 | .PHONY: maybe-install-info-tk install-info-tk |
29623 | maybe-install-info-tk: | |
29624 | @if tk | |
29625 | maybe-install-info-tk: install-info-tk | |
2a4cbe27 | 29626 | |
a90ef4bf JM |
29627 | install-info-tk: \ |
29628 | configure-tk \ | |
29629 | info-tk | |
29630 | @: $(MAKE); $(unstage) | |
29631 | @[ -f ./tk/Makefile ] || exit 0; \ | |
b40e3958 L |
29632 | r=`${PWD_COMMAND}`; export r; \ |
29633 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29634 | $(HOST_EXPORTS) \ |
b813574b | 29635 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
29636 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29637 | done; \ | |
22121df0 | 29638 | echo "Doing install-info in tk"; \ |
a90ef4bf | 29639 | (cd $(HOST_SUBDIR)/tk && \ |
2a4cbe27 NN |
29640 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29641 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29642 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29643 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29644 | install-info) \ |
2a4cbe27 NN |
29645 | || exit 1 |
29646 | ||
a90ef4bf | 29647 | @endif tk |
2a4cbe27 | 29648 | |
a90ef4bf JM |
29649 | .PHONY: maybe-install-pdf-tk install-pdf-tk |
29650 | maybe-install-pdf-tk: | |
29651 | @if tk | |
29652 | maybe-install-pdf-tk: install-pdf-tk | |
a3ca38d2 | 29653 | |
a90ef4bf JM |
29654 | install-pdf-tk: \ |
29655 | configure-tk \ | |
29656 | pdf-tk | |
29657 | @: $(MAKE); $(unstage) | |
29658 | @[ -f ./tk/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
29659 | r=`${PWD_COMMAND}`; export r; \ |
29660 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29661 | $(HOST_EXPORTS) \ | |
29662 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
29663 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29664 | done; \ | |
22121df0 | 29665 | echo "Doing install-pdf in tk"; \ |
a90ef4bf | 29666 | (cd $(HOST_SUBDIR)/tk && \ |
a3ca38d2 DD |
29667 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29668 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29669 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29670 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
29671 | install-pdf) \ |
29672 | || exit 1 | |
29673 | ||
a90ef4bf | 29674 | @endif tk |
a3ca38d2 | 29675 | |
a90ef4bf JM |
29676 | .PHONY: maybe-install-html-tk install-html-tk |
29677 | maybe-install-html-tk: | |
29678 | @if tk | |
29679 | maybe-install-html-tk: install-html-tk | |
108a6f8e | 29680 | |
a90ef4bf JM |
29681 | install-html-tk: \ |
29682 | configure-tk \ | |
29683 | html-tk | |
29684 | @: $(MAKE); $(unstage) | |
29685 | @[ -f ./tk/Makefile ] || exit 0; \ | |
108a6f8e CD |
29686 | r=`${PWD_COMMAND}`; export r; \ |
29687 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29688 | $(HOST_EXPORTS) \ | |
29689 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
29690 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29691 | done; \ | |
22121df0 | 29692 | echo "Doing install-html in tk"; \ |
a90ef4bf | 29693 | (cd $(HOST_SUBDIR)/tk && \ |
108a6f8e CD |
29694 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29695 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29696 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29697 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
29698 | install-html) \ |
29699 | || exit 1 | |
29700 | ||
a90ef4bf | 29701 | @endif tk |
108a6f8e | 29702 | |
a90ef4bf JM |
29703 | .PHONY: maybe-installcheck-tk installcheck-tk |
29704 | maybe-installcheck-tk: | |
29705 | @if tk | |
29706 | maybe-installcheck-tk: installcheck-tk | |
2a4cbe27 | 29707 | |
a90ef4bf JM |
29708 | installcheck-tk: \ |
29709 | configure-tk | |
29710 | @: $(MAKE); $(unstage) | |
29711 | @[ -f ./tk/Makefile ] || exit 0; \ | |
b40e3958 L |
29712 | r=`${PWD_COMMAND}`; export r; \ |
29713 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29714 | $(HOST_EXPORTS) \ |
b813574b | 29715 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
29716 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29717 | done; \ | |
22121df0 | 29718 | echo "Doing installcheck in tk"; \ |
a90ef4bf | 29719 | (cd $(HOST_SUBDIR)/tk && \ |
2a4cbe27 NN |
29720 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29721 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29722 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29723 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29724 | installcheck) \ |
2a4cbe27 NN |
29725 | || exit 1 |
29726 | ||
a90ef4bf | 29727 | @endif tk |
2a4cbe27 | 29728 | |
a90ef4bf JM |
29729 | .PHONY: maybe-mostlyclean-tk mostlyclean-tk |
29730 | maybe-mostlyclean-tk: | |
29731 | @if tk | |
29732 | maybe-mostlyclean-tk: mostlyclean-tk | |
2a4cbe27 | 29733 | |
a90ef4bf JM |
29734 | mostlyclean-tk: |
29735 | @: $(MAKE); $(unstage) | |
29736 | @[ -f ./tk/Makefile ] || exit 0; \ | |
b40e3958 L |
29737 | r=`${PWD_COMMAND}`; export r; \ |
29738 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29739 | $(HOST_EXPORTS) \ |
b813574b | 29740 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
29741 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29742 | done; \ | |
22121df0 | 29743 | echo "Doing mostlyclean in tk"; \ |
a90ef4bf | 29744 | (cd $(HOST_SUBDIR)/tk && \ |
2a4cbe27 NN |
29745 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29746 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29747 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29748 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29749 | mostlyclean) \ |
2a4cbe27 NN |
29750 | || exit 1 |
29751 | ||
a90ef4bf | 29752 | @endif tk |
2a4cbe27 | 29753 | |
a90ef4bf JM |
29754 | .PHONY: maybe-clean-tk clean-tk |
29755 | maybe-clean-tk: | |
29756 | @if tk | |
29757 | maybe-clean-tk: clean-tk | |
2a4cbe27 | 29758 | |
a90ef4bf JM |
29759 | clean-tk: |
29760 | @: $(MAKE); $(unstage) | |
29761 | @[ -f ./tk/Makefile ] || exit 0; \ | |
b40e3958 L |
29762 | r=`${PWD_COMMAND}`; export r; \ |
29763 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29764 | $(HOST_EXPORTS) \ |
b813574b | 29765 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
29766 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29767 | done; \ | |
22121df0 | 29768 | echo "Doing clean in tk"; \ |
a90ef4bf | 29769 | (cd $(HOST_SUBDIR)/tk && \ |
2a4cbe27 NN |
29770 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29771 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29772 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29773 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29774 | clean) \ |
2a4cbe27 NN |
29775 | || exit 1 |
29776 | ||
a90ef4bf | 29777 | @endif tk |
2a4cbe27 | 29778 | |
a90ef4bf JM |
29779 | .PHONY: maybe-distclean-tk distclean-tk |
29780 | maybe-distclean-tk: | |
29781 | @if tk | |
29782 | maybe-distclean-tk: distclean-tk | |
2a4cbe27 | 29783 | |
a90ef4bf JM |
29784 | distclean-tk: |
29785 | @: $(MAKE); $(unstage) | |
29786 | @[ -f ./tk/Makefile ] || exit 0; \ | |
b40e3958 L |
29787 | r=`${PWD_COMMAND}`; export r; \ |
29788 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29789 | $(HOST_EXPORTS) \ |
b813574b | 29790 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
29791 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29792 | done; \ | |
22121df0 | 29793 | echo "Doing distclean in tk"; \ |
a90ef4bf | 29794 | (cd $(HOST_SUBDIR)/tk && \ |
2a4cbe27 NN |
29795 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29796 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29797 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29798 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29799 | distclean) \ |
2a4cbe27 NN |
29800 | || exit 1 |
29801 | ||
a90ef4bf | 29802 | @endif tk |
2a4cbe27 | 29803 | |
a90ef4bf JM |
29804 | .PHONY: maybe-maintainer-clean-tk maintainer-clean-tk |
29805 | maybe-maintainer-clean-tk: | |
29806 | @if tk | |
29807 | maybe-maintainer-clean-tk: maintainer-clean-tk | |
2a4cbe27 | 29808 | |
a90ef4bf JM |
29809 | maintainer-clean-tk: |
29810 | @: $(MAKE); $(unstage) | |
29811 | @[ -f ./tk/Makefile ] || exit 0; \ | |
b40e3958 L |
29812 | r=`${PWD_COMMAND}`; export r; \ |
29813 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29814 | $(HOST_EXPORTS) \ |
b813574b | 29815 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
29816 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29817 | done; \ | |
22121df0 | 29818 | echo "Doing maintainer-clean in tk"; \ |
a90ef4bf | 29819 | (cd $(HOST_SUBDIR)/tk && \ |
2a4cbe27 NN |
29820 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29821 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29822 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 29823 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 29824 | maintainer-clean) \ |
2a4cbe27 NN |
29825 | || exit 1 |
29826 | ||
a90ef4bf | 29827 | @endif tk |
2a4cbe27 | 29828 | |
2a4cbe27 | 29829 | |
a7254363 | 29830 | |
a90ef4bf JM |
29831 | .PHONY: configure-libtermcap maybe-configure-libtermcap |
29832 | maybe-configure-libtermcap: | |
dc448a7b | 29833 | @if gcc-bootstrap |
a90ef4bf | 29834 | configure-libtermcap: stage_current |
dc448a7b | 29835 | @endif gcc-bootstrap |
a90ef4bf JM |
29836 | @if libtermcap |
29837 | maybe-configure-libtermcap: configure-libtermcap | |
29838 | configure-libtermcap: | |
dc448a7b TT |
29839 | @: $(MAKE); $(unstage) |
29840 | @r=`${PWD_COMMAND}`; export r; \ | |
29841 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 29842 | test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \ |
22121df0 | 29843 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap; \ |
1f53ca9a | 29844 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
29845 | echo Configuring in $(HOST_SUBDIR)/libtermcap; \ |
29846 | cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \ | |
dc448a7b TT |
29847 | case $(srcdir) in \ |
29848 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 29849 | *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \ |
dc448a7b TT |
29850 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
29851 | esac; \ | |
1b6c0831 L |
29852 | module_srcdir=libtermcap; \ |
29853 | $(SHELL) \ | |
29854 | $$s/$$module_srcdir/configure \ | |
29855 | --srcdir=$${topdir}/$$module_srcdir \ | |
dc448a7b | 29856 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 29857 | --target=${target_alias} \ |
dc448a7b | 29858 | || exit 1 |
a90ef4bf | 29859 | @endif libtermcap |
dc448a7b TT |
29860 | |
29861 | ||
29862 | ||
29863 | ||
29864 | ||
a90ef4bf JM |
29865 | .PHONY: all-libtermcap maybe-all-libtermcap |
29866 | maybe-all-libtermcap: | |
dc448a7b | 29867 | @if gcc-bootstrap |
a90ef4bf | 29868 | all-libtermcap: stage_current |
dc448a7b | 29869 | @endif gcc-bootstrap |
a90ef4bf JM |
29870 | @if libtermcap |
29871 | TARGET-libtermcap=all | |
29872 | maybe-all-libtermcap: all-libtermcap | |
29873 | all-libtermcap: configure-libtermcap | |
dc448a7b TT |
29874 | @: $(MAKE); $(unstage) |
29875 | @r=`${PWD_COMMAND}`; export r; \ | |
29876 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 29877 | $(HOST_EXPORTS) \ |
a90ef4bf | 29878 | (cd $(HOST_SUBDIR)/libtermcap && \ |
b3676d82 | 29879 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
29880 | $(TARGET-libtermcap)) |
29881 | @endif libtermcap | |
dc448a7b TT |
29882 | |
29883 | ||
29884 | ||
29885 | ||
a90ef4bf JM |
29886 | .PHONY: check-libtermcap maybe-check-libtermcap |
29887 | maybe-check-libtermcap: | |
29888 | @if libtermcap | |
29889 | maybe-check-libtermcap: check-libtermcap | |
dc448a7b | 29890 | |
a90ef4bf JM |
29891 | check-libtermcap: |
29892 | ||
29893 | @endif libtermcap | |
29894 | ||
29895 | .PHONY: install-libtermcap maybe-install-libtermcap | |
29896 | maybe-install-libtermcap: | |
29897 | @if libtermcap | |
29898 | maybe-install-libtermcap: install-libtermcap | |
29899 | ||
29900 | install-libtermcap: installdirs | |
dc448a7b TT |
29901 | @: $(MAKE); $(unstage) |
29902 | @r=`${PWD_COMMAND}`; export r; \ | |
29903 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29904 | $(HOST_EXPORTS) \ | |
a90ef4bf JM |
29905 | (cd $(HOST_SUBDIR)/libtermcap && \ |
29906 | $(MAKE) $(FLAGS_TO_PASS) install) | |
dc448a7b | 29907 | |
a90ef4bf | 29908 | @endif libtermcap |
dc448a7b | 29909 | |
a90ef4bf JM |
29910 | .PHONY: install-strip-libtermcap maybe-install-strip-libtermcap |
29911 | maybe-install-strip-libtermcap: | |
29912 | @if libtermcap | |
29913 | maybe-install-strip-libtermcap: install-strip-libtermcap | |
9b980aa1 | 29914 | |
a90ef4bf JM |
29915 | install-strip-libtermcap: installdirs |
29916 | @: $(MAKE); $(unstage) | |
29917 | @r=`${PWD_COMMAND}`; export r; \ | |
29918 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29919 | $(HOST_EXPORTS) \ | |
29920 | (cd $(HOST_SUBDIR)/libtermcap && \ | |
29921 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
9b980aa1 | 29922 | |
a90ef4bf | 29923 | @endif libtermcap |
9b980aa1 | 29924 | |
dc448a7b TT |
29925 | # Other targets (info, dvi, pdf, etc.) |
29926 | ||
a90ef4bf JM |
29927 | .PHONY: maybe-info-libtermcap info-libtermcap |
29928 | maybe-info-libtermcap: | |
29929 | @if libtermcap | |
29930 | maybe-info-libtermcap: info-libtermcap | |
dc448a7b | 29931 | |
a90ef4bf JM |
29932 | info-libtermcap: \ |
29933 | configure-libtermcap | |
dc448a7b | 29934 | @: $(MAKE); $(unstage) |
a90ef4bf | 29935 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
dc448a7b TT |
29936 | r=`${PWD_COMMAND}`; export r; \ |
29937 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29938 | $(HOST_EXPORTS) \ | |
29939 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
29940 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29941 | done; \ | |
22121df0 | 29942 | echo "Doing info in libtermcap"; \ |
a90ef4bf | 29943 | (cd $(HOST_SUBDIR)/libtermcap && \ |
dc448a7b TT |
29944 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29945 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29946 | "RANLIB=$${RANLIB}" \ | |
29947 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
29948 | info) \ | |
29949 | || exit 1 | |
29950 | ||
a90ef4bf | 29951 | @endif libtermcap |
dc448a7b | 29952 | |
a90ef4bf JM |
29953 | .PHONY: maybe-dvi-libtermcap dvi-libtermcap |
29954 | maybe-dvi-libtermcap: | |
29955 | @if libtermcap | |
29956 | maybe-dvi-libtermcap: dvi-libtermcap | |
dc448a7b | 29957 | |
a90ef4bf JM |
29958 | dvi-libtermcap: \ |
29959 | configure-libtermcap | |
dc448a7b | 29960 | @: $(MAKE); $(unstage) |
a90ef4bf | 29961 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
dc448a7b TT |
29962 | r=`${PWD_COMMAND}`; export r; \ |
29963 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29964 | $(HOST_EXPORTS) \ | |
29965 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
29966 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29967 | done; \ | |
22121df0 | 29968 | echo "Doing dvi in libtermcap"; \ |
a90ef4bf | 29969 | (cd $(HOST_SUBDIR)/libtermcap && \ |
dc448a7b TT |
29970 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29971 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29972 | "RANLIB=$${RANLIB}" \ | |
29973 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
29974 | dvi) \ | |
29975 | || exit 1 | |
29976 | ||
a90ef4bf | 29977 | @endif libtermcap |
dc448a7b | 29978 | |
a90ef4bf JM |
29979 | .PHONY: maybe-pdf-libtermcap pdf-libtermcap |
29980 | maybe-pdf-libtermcap: | |
29981 | @if libtermcap | |
29982 | maybe-pdf-libtermcap: pdf-libtermcap | |
dc448a7b | 29983 | |
a90ef4bf JM |
29984 | pdf-libtermcap: \ |
29985 | configure-libtermcap | |
dc448a7b | 29986 | @: $(MAKE); $(unstage) |
a90ef4bf | 29987 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
dc448a7b TT |
29988 | r=`${PWD_COMMAND}`; export r; \ |
29989 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29990 | $(HOST_EXPORTS) \ | |
29991 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
29992 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29993 | done; \ | |
22121df0 | 29994 | echo "Doing pdf in libtermcap"; \ |
a90ef4bf | 29995 | (cd $(HOST_SUBDIR)/libtermcap && \ |
dc448a7b TT |
29996 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29997 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29998 | "RANLIB=$${RANLIB}" \ | |
29999 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
30000 | pdf) \ | |
30001 | || exit 1 | |
30002 | ||
a90ef4bf | 30003 | @endif libtermcap |
dc448a7b | 30004 | |
a90ef4bf JM |
30005 | .PHONY: maybe-html-libtermcap html-libtermcap |
30006 | maybe-html-libtermcap: | |
30007 | @if libtermcap | |
30008 | maybe-html-libtermcap: html-libtermcap | |
dc448a7b | 30009 | |
a90ef4bf JM |
30010 | html-libtermcap: \ |
30011 | configure-libtermcap | |
dc448a7b | 30012 | @: $(MAKE); $(unstage) |
a90ef4bf | 30013 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
dc448a7b TT |
30014 | r=`${PWD_COMMAND}`; export r; \ |
30015 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30016 | $(HOST_EXPORTS) \ | |
30017 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30018 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30019 | done; \ | |
22121df0 | 30020 | echo "Doing html in libtermcap"; \ |
a90ef4bf | 30021 | (cd $(HOST_SUBDIR)/libtermcap && \ |
dc448a7b TT |
30022 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30023 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30024 | "RANLIB=$${RANLIB}" \ | |
30025 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
30026 | html) \ | |
30027 | || exit 1 | |
30028 | ||
a90ef4bf | 30029 | @endif libtermcap |
dc448a7b | 30030 | |
a90ef4bf JM |
30031 | .PHONY: maybe-TAGS-libtermcap TAGS-libtermcap |
30032 | maybe-TAGS-libtermcap: | |
30033 | @if libtermcap | |
30034 | maybe-TAGS-libtermcap: TAGS-libtermcap | |
dc448a7b | 30035 | |
a90ef4bf JM |
30036 | TAGS-libtermcap: \ |
30037 | configure-libtermcap | |
dc448a7b | 30038 | @: $(MAKE); $(unstage) |
a90ef4bf | 30039 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
dc448a7b TT |
30040 | r=`${PWD_COMMAND}`; export r; \ |
30041 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30042 | $(HOST_EXPORTS) \ | |
30043 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30044 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30045 | done; \ | |
22121df0 | 30046 | echo "Doing TAGS in libtermcap"; \ |
a90ef4bf | 30047 | (cd $(HOST_SUBDIR)/libtermcap && \ |
dc448a7b TT |
30048 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30049 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30050 | "RANLIB=$${RANLIB}" \ | |
30051 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
30052 | TAGS) \ | |
30053 | || exit 1 | |
30054 | ||
a90ef4bf | 30055 | @endif libtermcap |
dc448a7b | 30056 | |
a90ef4bf JM |
30057 | .PHONY: maybe-install-info-libtermcap install-info-libtermcap |
30058 | maybe-install-info-libtermcap: | |
30059 | @if libtermcap | |
30060 | maybe-install-info-libtermcap: install-info-libtermcap | |
dc448a7b | 30061 | |
a90ef4bf JM |
30062 | install-info-libtermcap: \ |
30063 | configure-libtermcap \ | |
30064 | info-libtermcap | |
dc448a7b | 30065 | @: $(MAKE); $(unstage) |
a90ef4bf | 30066 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
dc448a7b TT |
30067 | r=`${PWD_COMMAND}`; export r; \ |
30068 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30069 | $(HOST_EXPORTS) \ | |
30070 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30071 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30072 | done; \ | |
22121df0 | 30073 | echo "Doing install-info in libtermcap"; \ |
a90ef4bf | 30074 | (cd $(HOST_SUBDIR)/libtermcap && \ |
dc448a7b TT |
30075 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30076 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30077 | "RANLIB=$${RANLIB}" \ | |
30078 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 30079 | install-info) \ |
dc448a7b TT |
30080 | || exit 1 |
30081 | ||
a90ef4bf | 30082 | @endif libtermcap |
dc448a7b | 30083 | |
a90ef4bf JM |
30084 | .PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap |
30085 | maybe-install-pdf-libtermcap: | |
30086 | @if libtermcap | |
30087 | maybe-install-pdf-libtermcap: install-pdf-libtermcap | |
dc448a7b | 30088 | |
a90ef4bf JM |
30089 | install-pdf-libtermcap: \ |
30090 | configure-libtermcap \ | |
30091 | pdf-libtermcap | |
dc448a7b | 30092 | @: $(MAKE); $(unstage) |
a90ef4bf | 30093 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
dc448a7b TT |
30094 | r=`${PWD_COMMAND}`; export r; \ |
30095 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30096 | $(HOST_EXPORTS) \ | |
30097 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30098 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30099 | done; \ | |
22121df0 | 30100 | echo "Doing install-pdf in libtermcap"; \ |
a90ef4bf | 30101 | (cd $(HOST_SUBDIR)/libtermcap && \ |
dc448a7b TT |
30102 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30103 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30104 | "RANLIB=$${RANLIB}" \ | |
30105 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 30106 | install-pdf) \ |
dc448a7b TT |
30107 | || exit 1 |
30108 | ||
a90ef4bf | 30109 | @endif libtermcap |
dc448a7b | 30110 | |
a90ef4bf JM |
30111 | .PHONY: maybe-install-html-libtermcap install-html-libtermcap |
30112 | maybe-install-html-libtermcap: | |
30113 | @if libtermcap | |
30114 | maybe-install-html-libtermcap: install-html-libtermcap | |
dc448a7b | 30115 | |
a90ef4bf JM |
30116 | install-html-libtermcap: \ |
30117 | configure-libtermcap \ | |
30118 | html-libtermcap | |
dc448a7b | 30119 | @: $(MAKE); $(unstage) |
a90ef4bf | 30120 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
dc448a7b TT |
30121 | r=`${PWD_COMMAND}`; export r; \ |
30122 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30123 | $(HOST_EXPORTS) \ | |
30124 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30125 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30126 | done; \ | |
22121df0 | 30127 | echo "Doing install-html in libtermcap"; \ |
a90ef4bf | 30128 | (cd $(HOST_SUBDIR)/libtermcap && \ |
dc448a7b TT |
30129 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30130 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30131 | "RANLIB=$${RANLIB}" \ | |
30132 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 30133 | install-html) \ |
dc448a7b TT |
30134 | || exit 1 |
30135 | ||
a90ef4bf | 30136 | @endif libtermcap |
dc448a7b | 30137 | |
a90ef4bf JM |
30138 | .PHONY: maybe-installcheck-libtermcap installcheck-libtermcap |
30139 | maybe-installcheck-libtermcap: | |
30140 | @if libtermcap | |
30141 | maybe-installcheck-libtermcap: installcheck-libtermcap | |
dc448a7b | 30142 | |
a90ef4bf JM |
30143 | installcheck-libtermcap: \ |
30144 | configure-libtermcap | |
dc448a7b | 30145 | @: $(MAKE); $(unstage) |
a90ef4bf | 30146 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
dc448a7b TT |
30147 | r=`${PWD_COMMAND}`; export r; \ |
30148 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30149 | $(HOST_EXPORTS) \ | |
30150 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30151 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30152 | done; \ | |
22121df0 | 30153 | echo "Doing installcheck in libtermcap"; \ |
a90ef4bf | 30154 | (cd $(HOST_SUBDIR)/libtermcap && \ |
dc448a7b TT |
30155 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30156 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30157 | "RANLIB=$${RANLIB}" \ | |
30158 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
a90ef4bf | 30159 | installcheck) \ |
dc448a7b TT |
30160 | || exit 1 |
30161 | ||
a90ef4bf | 30162 | @endif libtermcap |
dc448a7b | 30163 | |
a90ef4bf JM |
30164 | .PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap |
30165 | maybe-mostlyclean-libtermcap: | |
30166 | @if libtermcap | |
30167 | maybe-mostlyclean-libtermcap: mostlyclean-libtermcap | |
dc448a7b | 30168 | |
a90ef4bf JM |
30169 | # libtermcap doesn't support mostlyclean. |
30170 | mostlyclean-libtermcap: | |
dc448a7b | 30171 | |
a90ef4bf | 30172 | @endif libtermcap |
dc448a7b | 30173 | |
a90ef4bf JM |
30174 | .PHONY: maybe-clean-libtermcap clean-libtermcap |
30175 | maybe-clean-libtermcap: | |
30176 | @if libtermcap | |
30177 | maybe-clean-libtermcap: clean-libtermcap | |
dc448a7b | 30178 | |
a90ef4bf JM |
30179 | # libtermcap doesn't support clean. |
30180 | clean-libtermcap: | |
dc448a7b | 30181 | |
a90ef4bf JM |
30182 | @endif libtermcap |
30183 | ||
30184 | .PHONY: maybe-distclean-libtermcap distclean-libtermcap | |
30185 | maybe-distclean-libtermcap: | |
30186 | @if libtermcap | |
30187 | maybe-distclean-libtermcap: distclean-libtermcap | |
30188 | ||
30189 | # libtermcap doesn't support distclean. | |
30190 | distclean-libtermcap: | |
30191 | ||
30192 | @endif libtermcap | |
30193 | ||
30194 | .PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap | |
30195 | maybe-maintainer-clean-libtermcap: | |
30196 | @if libtermcap | |
30197 | maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap | |
30198 | ||
30199 | # libtermcap doesn't support maintainer-clean. | |
30200 | maintainer-clean-libtermcap: | |
30201 | ||
30202 | @endif libtermcap | |
30203 | ||
30204 | ||
30205 | ||
30206 | .PHONY: configure-utils maybe-configure-utils | |
30207 | maybe-configure-utils: | |
30208 | @if gcc-bootstrap | |
30209 | configure-utils: stage_current | |
30210 | @endif gcc-bootstrap | |
30211 | @if utils | |
30212 | maybe-configure-utils: configure-utils | |
30213 | configure-utils: | |
30214 | @: $(MAKE); $(unstage) | |
c52c6897 | 30215 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 30216 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 30217 | test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \ |
22121df0 | 30218 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils; \ |
1f53ca9a | 30219 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
30220 | echo Configuring in $(HOST_SUBDIR)/utils; \ |
30221 | cd "$(HOST_SUBDIR)/utils" || exit 1; \ | |
4fa63067 | 30222 | case $(srcdir) in \ |
b00612cc | 30223 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 30224 | *) topdir=`echo $(HOST_SUBDIR)/utils/ | \ |
b00612cc | 30225 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 30226 | esac; \ |
1b6c0831 L |
30227 | module_srcdir=utils; \ |
30228 | $(SHELL) \ | |
30229 | $$s/$$module_srcdir/configure \ | |
30230 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 30231 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 30232 | --target=${target_alias} \ |
2a4cbe27 | 30233 | || exit 1 |
a90ef4bf | 30234 | @endif utils |
2a4cbe27 | 30235 | |
a7254363 PB |
30236 | |
30237 | ||
d545f33b PB |
30238 | |
30239 | ||
a90ef4bf JM |
30240 | .PHONY: all-utils maybe-all-utils |
30241 | maybe-all-utils: | |
4f0ef2d8 | 30242 | @if gcc-bootstrap |
a90ef4bf | 30243 | all-utils: stage_current |
4f0ef2d8 | 30244 | @endif gcc-bootstrap |
a90ef4bf JM |
30245 | @if utils |
30246 | TARGET-utils=all | |
30247 | maybe-all-utils: all-utils | |
30248 | all-utils: configure-utils | |
0aed8855 | 30249 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30250 | @r=`${PWD_COMMAND}`; export r; \ |
30251 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 30252 | $(HOST_EXPORTS) \ |
a90ef4bf | 30253 | (cd $(HOST_SUBDIR)/utils && \ |
b3676d82 | 30254 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
30255 | $(TARGET-utils)) |
30256 | @endif utils | |
2a4cbe27 | 30257 | |
a7254363 | 30258 | |
d545f33b PB |
30259 | |
30260 | ||
a90ef4bf JM |
30261 | .PHONY: check-utils maybe-check-utils |
30262 | maybe-check-utils: | |
30263 | @if utils | |
30264 | maybe-check-utils: check-utils | |
2a4cbe27 | 30265 | |
a90ef4bf | 30266 | check-utils: |
2a4cbe27 | 30267 | |
a90ef4bf | 30268 | @endif utils |
2a4cbe27 | 30269 | |
a90ef4bf JM |
30270 | .PHONY: install-utils maybe-install-utils |
30271 | maybe-install-utils: | |
30272 | @if utils | |
30273 | maybe-install-utils: install-utils | |
2a4cbe27 | 30274 | |
a90ef4bf | 30275 | install-utils: installdirs |
0aed8855 | 30276 | @: $(MAKE); $(unstage) |
4fa63067 | 30277 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 30278 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 30279 | $(HOST_EXPORTS) \ |
a90ef4bf | 30280 | (cd $(HOST_SUBDIR)/utils && \ |
2da12f12 | 30281 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 30282 | |
a90ef4bf | 30283 | @endif utils |
2a4cbe27 | 30284 | |
a90ef4bf JM |
30285 | .PHONY: install-strip-utils maybe-install-strip-utils |
30286 | maybe-install-strip-utils: | |
30287 | @if utils | |
30288 | maybe-install-strip-utils: install-strip-utils | |
9b980aa1 | 30289 | |
a90ef4bf | 30290 | install-strip-utils: installdirs |
9b980aa1 RW |
30291 | @: $(MAKE); $(unstage) |
30292 | @r=`${PWD_COMMAND}`; export r; \ | |
30293 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30294 | $(HOST_EXPORTS) \ | |
a90ef4bf | 30295 | (cd $(HOST_SUBDIR)/utils && \ |
9b980aa1 RW |
30296 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
30297 | ||
a90ef4bf | 30298 | @endif utils |
9b980aa1 | 30299 | |
56a8fe78 | 30300 | # Other targets (info, dvi, pdf, etc.) |
2a4cbe27 | 30301 | |
a90ef4bf JM |
30302 | .PHONY: maybe-info-utils info-utils |
30303 | maybe-info-utils: | |
30304 | @if utils | |
30305 | maybe-info-utils: info-utils | |
4fa63067 | 30306 | |
a90ef4bf JM |
30307 | info-utils: \ |
30308 | configure-utils | |
0aed8855 | 30309 | @: $(MAKE); $(unstage) |
a90ef4bf | 30310 | @[ -f ./utils/Makefile ] || exit 0; \ |
b40e3958 L |
30311 | r=`${PWD_COMMAND}`; export r; \ |
30312 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30313 | $(HOST_EXPORTS) \ |
b813574b | 30314 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30315 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30316 | done; \ | |
22121df0 | 30317 | echo "Doing info in utils"; \ |
a90ef4bf | 30318 | (cd $(HOST_SUBDIR)/utils && \ |
2a4cbe27 NN |
30319 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30320 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30321 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30322 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 30323 | info) \ |
2a4cbe27 NN |
30324 | || exit 1 |
30325 | ||
a90ef4bf | 30326 | @endif utils |
2a4cbe27 | 30327 | |
a90ef4bf JM |
30328 | .PHONY: maybe-dvi-utils dvi-utils |
30329 | maybe-dvi-utils: | |
30330 | @if utils | |
30331 | maybe-dvi-utils: dvi-utils | |
2a4cbe27 | 30332 | |
a90ef4bf JM |
30333 | dvi-utils: \ |
30334 | configure-utils | |
0aed8855 | 30335 | @: $(MAKE); $(unstage) |
a90ef4bf | 30336 | @[ -f ./utils/Makefile ] || exit 0; \ |
b40e3958 L |
30337 | r=`${PWD_COMMAND}`; export r; \ |
30338 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30339 | $(HOST_EXPORTS) \ |
b813574b | 30340 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30341 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30342 | done; \ | |
22121df0 | 30343 | echo "Doing dvi in utils"; \ |
a90ef4bf | 30344 | (cd $(HOST_SUBDIR)/utils && \ |
2a4cbe27 NN |
30345 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30346 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30347 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30348 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 30349 | dvi) \ |
2a4cbe27 NN |
30350 | || exit 1 |
30351 | ||
a90ef4bf | 30352 | @endif utils |
2a4cbe27 | 30353 | |
a90ef4bf JM |
30354 | .PHONY: maybe-pdf-utils pdf-utils |
30355 | maybe-pdf-utils: | |
30356 | @if utils | |
30357 | maybe-pdf-utils: pdf-utils | |
56a8fe78 | 30358 | |
a90ef4bf JM |
30359 | pdf-utils: \ |
30360 | configure-utils | |
56a8fe78 | 30361 | @: $(MAKE); $(unstage) |
a90ef4bf | 30362 | @[ -f ./utils/Makefile ] || exit 0; \ |
56a8fe78 DD |
30363 | r=`${PWD_COMMAND}`; export r; \ |
30364 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30365 | $(HOST_EXPORTS) \ | |
30366 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30367 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30368 | done; \ | |
22121df0 | 30369 | echo "Doing pdf in utils"; \ |
a90ef4bf | 30370 | (cd $(HOST_SUBDIR)/utils && \ |
56a8fe78 DD |
30371 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30372 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30373 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30374 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
30375 | pdf) \ |
30376 | || exit 1 | |
30377 | ||
a90ef4bf | 30378 | @endif utils |
56a8fe78 | 30379 | |
a90ef4bf JM |
30380 | .PHONY: maybe-html-utils html-utils |
30381 | maybe-html-utils: | |
30382 | @if utils | |
30383 | maybe-html-utils: html-utils | |
6d389afc | 30384 | |
a90ef4bf JM |
30385 | html-utils: \ |
30386 | configure-utils | |
0aed8855 | 30387 | @: $(MAKE); $(unstage) |
a90ef4bf | 30388 | @[ -f ./utils/Makefile ] || exit 0; \ |
6d389afc MS |
30389 | r=`${PWD_COMMAND}`; export r; \ |
30390 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
30391 | $(HOST_EXPORTS) \ |
30392 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30393 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30394 | done; \ | |
22121df0 | 30395 | echo "Doing html in utils"; \ |
a90ef4bf | 30396 | (cd $(HOST_SUBDIR)/utils && \ |
6d389afc MS |
30397 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30398 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30399 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30400 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
30401 | html) \ |
30402 | || exit 1 | |
30403 | ||
a90ef4bf | 30404 | @endif utils |
6d389afc | 30405 | |
a90ef4bf JM |
30406 | .PHONY: maybe-TAGS-utils TAGS-utils |
30407 | maybe-TAGS-utils: | |
30408 | @if utils | |
30409 | maybe-TAGS-utils: TAGS-utils | |
2a4cbe27 | 30410 | |
a90ef4bf JM |
30411 | TAGS-utils: \ |
30412 | configure-utils | |
0aed8855 | 30413 | @: $(MAKE); $(unstage) |
a90ef4bf | 30414 | @[ -f ./utils/Makefile ] || exit 0; \ |
b40e3958 L |
30415 | r=`${PWD_COMMAND}`; export r; \ |
30416 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30417 | $(HOST_EXPORTS) \ |
b813574b | 30418 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30419 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30420 | done; \ | |
22121df0 | 30421 | echo "Doing TAGS in utils"; \ |
a90ef4bf | 30422 | (cd $(HOST_SUBDIR)/utils && \ |
2a4cbe27 NN |
30423 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30424 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30425 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30426 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 30427 | TAGS) \ |
2a4cbe27 NN |
30428 | || exit 1 |
30429 | ||
a90ef4bf | 30430 | @endif utils |
2a4cbe27 | 30431 | |
a90ef4bf JM |
30432 | .PHONY: maybe-install-info-utils install-info-utils |
30433 | maybe-install-info-utils: | |
30434 | @if utils | |
30435 | maybe-install-info-utils: install-info-utils | |
2a4cbe27 | 30436 | |
a90ef4bf JM |
30437 | install-info-utils: \ |
30438 | configure-utils \ | |
30439 | info-utils | |
0aed8855 | 30440 | @: $(MAKE); $(unstage) |
a90ef4bf | 30441 | @[ -f ./utils/Makefile ] || exit 0; \ |
b40e3958 L |
30442 | r=`${PWD_COMMAND}`; export r; \ |
30443 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30444 | $(HOST_EXPORTS) \ |
b813574b | 30445 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30446 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30447 | done; \ | |
22121df0 | 30448 | echo "Doing install-info in utils"; \ |
a90ef4bf | 30449 | (cd $(HOST_SUBDIR)/utils && \ |
2a4cbe27 NN |
30450 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30451 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30452 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30453 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 30454 | install-info) \ |
2a4cbe27 NN |
30455 | || exit 1 |
30456 | ||
a90ef4bf | 30457 | @endif utils |
2a4cbe27 | 30458 | |
a90ef4bf JM |
30459 | .PHONY: maybe-install-pdf-utils install-pdf-utils |
30460 | maybe-install-pdf-utils: | |
30461 | @if utils | |
30462 | maybe-install-pdf-utils: install-pdf-utils | |
a3ca38d2 | 30463 | |
a90ef4bf JM |
30464 | install-pdf-utils: \ |
30465 | configure-utils \ | |
30466 | pdf-utils | |
a3ca38d2 | 30467 | @: $(MAKE); $(unstage) |
a90ef4bf | 30468 | @[ -f ./utils/Makefile ] || exit 0; \ |
a3ca38d2 DD |
30469 | r=`${PWD_COMMAND}`; export r; \ |
30470 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30471 | $(HOST_EXPORTS) \ | |
30472 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30473 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30474 | done; \ | |
22121df0 | 30475 | echo "Doing install-pdf in utils"; \ |
a90ef4bf | 30476 | (cd $(HOST_SUBDIR)/utils && \ |
a3ca38d2 DD |
30477 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30478 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30479 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30480 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
30481 | install-pdf) \ |
30482 | || exit 1 | |
30483 | ||
a90ef4bf | 30484 | @endif utils |
a3ca38d2 | 30485 | |
a90ef4bf JM |
30486 | .PHONY: maybe-install-html-utils install-html-utils |
30487 | maybe-install-html-utils: | |
30488 | @if utils | |
30489 | maybe-install-html-utils: install-html-utils | |
108a6f8e | 30490 | |
a90ef4bf JM |
30491 | install-html-utils: \ |
30492 | configure-utils \ | |
30493 | html-utils | |
108a6f8e | 30494 | @: $(MAKE); $(unstage) |
a90ef4bf | 30495 | @[ -f ./utils/Makefile ] || exit 0; \ |
108a6f8e CD |
30496 | r=`${PWD_COMMAND}`; export r; \ |
30497 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30498 | $(HOST_EXPORTS) \ | |
30499 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30500 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30501 | done; \ | |
22121df0 | 30502 | echo "Doing install-html in utils"; \ |
a90ef4bf | 30503 | (cd $(HOST_SUBDIR)/utils && \ |
108a6f8e CD |
30504 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30505 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30506 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30507 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
30508 | install-html) \ |
30509 | || exit 1 | |
30510 | ||
a90ef4bf | 30511 | @endif utils |
108a6f8e | 30512 | |
a90ef4bf JM |
30513 | .PHONY: maybe-installcheck-utils installcheck-utils |
30514 | maybe-installcheck-utils: | |
30515 | @if utils | |
30516 | maybe-installcheck-utils: installcheck-utils | |
2a4cbe27 | 30517 | |
a90ef4bf JM |
30518 | installcheck-utils: \ |
30519 | configure-utils | |
0aed8855 | 30520 | @: $(MAKE); $(unstage) |
a90ef4bf | 30521 | @[ -f ./utils/Makefile ] || exit 0; \ |
b40e3958 L |
30522 | r=`${PWD_COMMAND}`; export r; \ |
30523 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30524 | $(HOST_EXPORTS) \ |
b813574b | 30525 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30526 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30527 | done; \ | |
22121df0 | 30528 | echo "Doing installcheck in utils"; \ |
a90ef4bf | 30529 | (cd $(HOST_SUBDIR)/utils && \ |
2a4cbe27 NN |
30530 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30531 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30532 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30533 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 30534 | installcheck) \ |
2a4cbe27 NN |
30535 | || exit 1 |
30536 | ||
a90ef4bf | 30537 | @endif utils |
2a4cbe27 | 30538 | |
a90ef4bf JM |
30539 | .PHONY: maybe-mostlyclean-utils mostlyclean-utils |
30540 | maybe-mostlyclean-utils: | |
30541 | @if utils | |
30542 | maybe-mostlyclean-utils: mostlyclean-utils | |
2a4cbe27 | 30543 | |
a90ef4bf | 30544 | mostlyclean-utils: |
0aed8855 | 30545 | @: $(MAKE); $(unstage) |
a90ef4bf | 30546 | @[ -f ./utils/Makefile ] || exit 0; \ |
b40e3958 L |
30547 | r=`${PWD_COMMAND}`; export r; \ |
30548 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30549 | $(HOST_EXPORTS) \ |
b813574b | 30550 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30551 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30552 | done; \ | |
22121df0 | 30553 | echo "Doing mostlyclean in utils"; \ |
a90ef4bf | 30554 | (cd $(HOST_SUBDIR)/utils && \ |
2a4cbe27 NN |
30555 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30556 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30557 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30558 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 30559 | mostlyclean) \ |
2a4cbe27 NN |
30560 | || exit 1 |
30561 | ||
a90ef4bf | 30562 | @endif utils |
2a4cbe27 | 30563 | |
a90ef4bf JM |
30564 | .PHONY: maybe-clean-utils clean-utils |
30565 | maybe-clean-utils: | |
30566 | @if utils | |
30567 | maybe-clean-utils: clean-utils | |
2a4cbe27 | 30568 | |
a90ef4bf | 30569 | clean-utils: |
0aed8855 | 30570 | @: $(MAKE); $(unstage) |
a90ef4bf | 30571 | @[ -f ./utils/Makefile ] || exit 0; \ |
b40e3958 L |
30572 | r=`${PWD_COMMAND}`; export r; \ |
30573 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30574 | $(HOST_EXPORTS) \ |
b813574b | 30575 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30576 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30577 | done; \ | |
22121df0 | 30578 | echo "Doing clean in utils"; \ |
a90ef4bf | 30579 | (cd $(HOST_SUBDIR)/utils && \ |
2a4cbe27 NN |
30580 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30581 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30582 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30583 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 30584 | clean) \ |
2a4cbe27 NN |
30585 | || exit 1 |
30586 | ||
a90ef4bf | 30587 | @endif utils |
2a4cbe27 | 30588 | |
a90ef4bf JM |
30589 | .PHONY: maybe-distclean-utils distclean-utils |
30590 | maybe-distclean-utils: | |
30591 | @if utils | |
30592 | maybe-distclean-utils: distclean-utils | |
2a4cbe27 | 30593 | |
a90ef4bf | 30594 | distclean-utils: |
0aed8855 | 30595 | @: $(MAKE); $(unstage) |
a90ef4bf | 30596 | @[ -f ./utils/Makefile ] || exit 0; \ |
b40e3958 L |
30597 | r=`${PWD_COMMAND}`; export r; \ |
30598 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30599 | $(HOST_EXPORTS) \ |
b813574b | 30600 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30601 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30602 | done; \ | |
22121df0 | 30603 | echo "Doing distclean in utils"; \ |
a90ef4bf | 30604 | (cd $(HOST_SUBDIR)/utils && \ |
2a4cbe27 NN |
30605 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30606 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30607 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30608 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 30609 | distclean) \ |
2a4cbe27 NN |
30610 | || exit 1 |
30611 | ||
a90ef4bf | 30612 | @endif utils |
2a4cbe27 | 30613 | |
a90ef4bf JM |
30614 | .PHONY: maybe-maintainer-clean-utils maintainer-clean-utils |
30615 | maybe-maintainer-clean-utils: | |
30616 | @if utils | |
30617 | maybe-maintainer-clean-utils: maintainer-clean-utils | |
2a4cbe27 | 30618 | |
a90ef4bf | 30619 | maintainer-clean-utils: |
0aed8855 | 30620 | @: $(MAKE); $(unstage) |
a90ef4bf | 30621 | @[ -f ./utils/Makefile ] || exit 0; \ |
b40e3958 L |
30622 | r=`${PWD_COMMAND}`; export r; \ |
30623 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30624 | $(HOST_EXPORTS) \ |
b813574b | 30625 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30626 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30627 | done; \ | |
22121df0 | 30628 | echo "Doing maintainer-clean in utils"; \ |
a90ef4bf | 30629 | (cd $(HOST_SUBDIR)/utils && \ |
2a4cbe27 NN |
30630 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30631 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30632 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30633 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 30634 | maintainer-clean) \ |
2a4cbe27 NN |
30635 | || exit 1 |
30636 | ||
a90ef4bf | 30637 | @endif utils |
2a4cbe27 | 30638 | |
2a4cbe27 | 30639 | |
a7254363 | 30640 | |
a90ef4bf JM |
30641 | .PHONY: configure-gnattools maybe-configure-gnattools |
30642 | maybe-configure-gnattools: | |
4f0ef2d8 | 30643 | @if gcc-bootstrap |
a90ef4bf | 30644 | configure-gnattools: stage_current |
4f0ef2d8 | 30645 | @endif gcc-bootstrap |
a90ef4bf JM |
30646 | @if gnattools |
30647 | maybe-configure-gnattools: configure-gnattools | |
30648 | configure-gnattools: | |
0aed8855 | 30649 | @: $(MAKE); $(unstage) |
c52c6897 | 30650 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 30651 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 30652 | test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \ |
22121df0 | 30653 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools; \ |
1f53ca9a | 30654 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
30655 | echo Configuring in $(HOST_SUBDIR)/gnattools; \ |
30656 | cd "$(HOST_SUBDIR)/gnattools" || exit 1; \ | |
4fa63067 | 30657 | case $(srcdir) in \ |
b00612cc | 30658 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 30659 | *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \ |
b00612cc | 30660 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 30661 | esac; \ |
1b6c0831 L |
30662 | module_srcdir=gnattools; \ |
30663 | $(SHELL) \ | |
30664 | $$s/$$module_srcdir/configure \ | |
30665 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 30666 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 30667 | --target=${target_alias} \ |
2a4cbe27 | 30668 | || exit 1 |
a90ef4bf | 30669 | @endif gnattools |
2a4cbe27 | 30670 | |
a7254363 PB |
30671 | |
30672 | ||
d545f33b PB |
30673 | |
30674 | ||
a90ef4bf JM |
30675 | .PHONY: all-gnattools maybe-all-gnattools |
30676 | maybe-all-gnattools: | |
4f0ef2d8 | 30677 | @if gcc-bootstrap |
a90ef4bf | 30678 | all-gnattools: stage_current |
4f0ef2d8 | 30679 | @endif gcc-bootstrap |
a90ef4bf JM |
30680 | @if gnattools |
30681 | TARGET-gnattools=all | |
30682 | maybe-all-gnattools: all-gnattools | |
30683 | all-gnattools: configure-gnattools | |
0aed8855 | 30684 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30685 | @r=`${PWD_COMMAND}`; export r; \ |
30686 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 30687 | $(HOST_EXPORTS) \ |
a90ef4bf | 30688 | (cd $(HOST_SUBDIR)/gnattools && \ |
b3676d82 | 30689 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ |
a90ef4bf JM |
30690 | $(TARGET-gnattools)) |
30691 | @endif gnattools | |
4fa63067 | 30692 | |
a7254363 | 30693 | |
d545f33b PB |
30694 | |
30695 | ||
a90ef4bf JM |
30696 | .PHONY: check-gnattools maybe-check-gnattools |
30697 | maybe-check-gnattools: | |
30698 | @if gnattools | |
30699 | maybe-check-gnattools: check-gnattools | |
2a4cbe27 | 30700 | |
a90ef4bf | 30701 | check-gnattools: |
0aed8855 | 30702 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30703 | @r=`${PWD_COMMAND}`; export r; \ |
30704 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 30705 | $(HOST_EXPORTS) \ |
a90ef4bf | 30706 | (cd $(HOST_SUBDIR)/gnattools && \ |
b00612cc | 30707 | $(MAKE) $(FLAGS_TO_PASS) check) |
2a4cbe27 | 30708 | |
a90ef4bf | 30709 | @endif gnattools |
4fa63067 | 30710 | |
a90ef4bf JM |
30711 | .PHONY: install-gnattools maybe-install-gnattools |
30712 | maybe-install-gnattools: | |
30713 | @if gnattools | |
30714 | maybe-install-gnattools: install-gnattools | |
4fa63067 | 30715 | |
a90ef4bf | 30716 | install-gnattools: installdirs |
0aed8855 | 30717 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30718 | @r=`${PWD_COMMAND}`; export r; \ |
30719 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30720 | $(HOST_EXPORTS) \ |
a90ef4bf | 30721 | (cd $(HOST_SUBDIR)/gnattools && \ |
2da12f12 | 30722 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 30723 | |
a90ef4bf | 30724 | @endif gnattools |
4fa63067 | 30725 | |
a90ef4bf JM |
30726 | .PHONY: install-strip-gnattools maybe-install-strip-gnattools |
30727 | maybe-install-strip-gnattools: | |
30728 | @if gnattools | |
30729 | maybe-install-strip-gnattools: install-strip-gnattools | |
9b980aa1 | 30730 | |
a90ef4bf | 30731 | install-strip-gnattools: installdirs |
9b980aa1 RW |
30732 | @: $(MAKE); $(unstage) |
30733 | @r=`${PWD_COMMAND}`; export r; \ | |
30734 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30735 | $(HOST_EXPORTS) \ | |
a90ef4bf | 30736 | (cd $(HOST_SUBDIR)/gnattools && \ |
9b980aa1 RW |
30737 | $(MAKE) $(FLAGS_TO_PASS) install-strip) |
30738 | ||
a90ef4bf | 30739 | @endif gnattools |
9b980aa1 | 30740 | |
56a8fe78 | 30741 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 30742 | |
a90ef4bf JM |
30743 | .PHONY: maybe-info-gnattools info-gnattools |
30744 | maybe-info-gnattools: | |
30745 | @if gnattools | |
30746 | maybe-info-gnattools: info-gnattools | |
4fa63067 | 30747 | |
a90ef4bf JM |
30748 | info-gnattools: \ |
30749 | configure-gnattools | |
0aed8855 | 30750 | @: $(MAKE); $(unstage) |
a90ef4bf | 30751 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
b40e3958 L |
30752 | r=`${PWD_COMMAND}`; export r; \ |
30753 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30754 | $(HOST_EXPORTS) \ |
b813574b | 30755 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30756 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30757 | done; \ | |
22121df0 | 30758 | echo "Doing info in gnattools"; \ |
a90ef4bf | 30759 | (cd $(HOST_SUBDIR)/gnattools && \ |
2a4cbe27 NN |
30760 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30761 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30762 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30763 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 30764 | info) \ |
2a4cbe27 NN |
30765 | || exit 1 |
30766 | ||
a90ef4bf | 30767 | @endif gnattools |
2a4cbe27 | 30768 | |
a90ef4bf JM |
30769 | .PHONY: maybe-dvi-gnattools dvi-gnattools |
30770 | maybe-dvi-gnattools: | |
30771 | @if gnattools | |
30772 | maybe-dvi-gnattools: dvi-gnattools | |
2a4cbe27 | 30773 | |
a90ef4bf JM |
30774 | dvi-gnattools: \ |
30775 | configure-gnattools | |
0aed8855 | 30776 | @: $(MAKE); $(unstage) |
a90ef4bf | 30777 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
b40e3958 L |
30778 | r=`${PWD_COMMAND}`; export r; \ |
30779 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30780 | $(HOST_EXPORTS) \ |
b813574b | 30781 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30782 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30783 | done; \ | |
22121df0 | 30784 | echo "Doing dvi in gnattools"; \ |
a90ef4bf | 30785 | (cd $(HOST_SUBDIR)/gnattools && \ |
2a4cbe27 NN |
30786 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30787 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30788 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30789 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 30790 | dvi) \ |
2a4cbe27 NN |
30791 | || exit 1 |
30792 | ||
a90ef4bf | 30793 | @endif gnattools |
2a4cbe27 | 30794 | |
a90ef4bf JM |
30795 | .PHONY: maybe-pdf-gnattools pdf-gnattools |
30796 | maybe-pdf-gnattools: | |
30797 | @if gnattools | |
30798 | maybe-pdf-gnattools: pdf-gnattools | |
56a8fe78 | 30799 | |
a90ef4bf JM |
30800 | pdf-gnattools: \ |
30801 | configure-gnattools | |
56a8fe78 | 30802 | @: $(MAKE); $(unstage) |
a90ef4bf | 30803 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
56a8fe78 DD |
30804 | r=`${PWD_COMMAND}`; export r; \ |
30805 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30806 | $(HOST_EXPORTS) \ | |
30807 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30808 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30809 | done; \ | |
22121df0 | 30810 | echo "Doing pdf in gnattools"; \ |
a90ef4bf | 30811 | (cd $(HOST_SUBDIR)/gnattools && \ |
56a8fe78 DD |
30812 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30813 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30814 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30815 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
30816 | pdf) \ |
30817 | || exit 1 | |
30818 | ||
a90ef4bf | 30819 | @endif gnattools |
56a8fe78 | 30820 | |
a90ef4bf JM |
30821 | .PHONY: maybe-html-gnattools html-gnattools |
30822 | maybe-html-gnattools: | |
30823 | @if gnattools | |
30824 | maybe-html-gnattools: html-gnattools | |
6d389afc | 30825 | |
a90ef4bf JM |
30826 | html-gnattools: \ |
30827 | configure-gnattools | |
0aed8855 | 30828 | @: $(MAKE); $(unstage) |
a90ef4bf | 30829 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
6d389afc MS |
30830 | r=`${PWD_COMMAND}`; export r; \ |
30831 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
30832 | $(HOST_EXPORTS) \ |
30833 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30834 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30835 | done; \ | |
22121df0 | 30836 | echo "Doing html in gnattools"; \ |
a90ef4bf | 30837 | (cd $(HOST_SUBDIR)/gnattools && \ |
6d389afc MS |
30838 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30839 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30840 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30841 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
30842 | html) \ |
30843 | || exit 1 | |
30844 | ||
a90ef4bf | 30845 | @endif gnattools |
6d389afc | 30846 | |
a90ef4bf JM |
30847 | .PHONY: maybe-TAGS-gnattools TAGS-gnattools |
30848 | maybe-TAGS-gnattools: | |
30849 | @if gnattools | |
30850 | maybe-TAGS-gnattools: TAGS-gnattools | |
2a4cbe27 | 30851 | |
a90ef4bf JM |
30852 | TAGS-gnattools: \ |
30853 | configure-gnattools | |
0aed8855 | 30854 | @: $(MAKE); $(unstage) |
a90ef4bf | 30855 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
b40e3958 L |
30856 | r=`${PWD_COMMAND}`; export r; \ |
30857 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30858 | $(HOST_EXPORTS) \ |
b813574b | 30859 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30860 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30861 | done; \ | |
22121df0 | 30862 | echo "Doing TAGS in gnattools"; \ |
a90ef4bf | 30863 | (cd $(HOST_SUBDIR)/gnattools && \ |
2a4cbe27 NN |
30864 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30865 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30866 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30867 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 30868 | TAGS) \ |
2a4cbe27 NN |
30869 | || exit 1 |
30870 | ||
a90ef4bf | 30871 | @endif gnattools |
2a4cbe27 | 30872 | |
a90ef4bf JM |
30873 | .PHONY: maybe-install-info-gnattools install-info-gnattools |
30874 | maybe-install-info-gnattools: | |
30875 | @if gnattools | |
30876 | maybe-install-info-gnattools: install-info-gnattools | |
2a4cbe27 | 30877 | |
a90ef4bf JM |
30878 | install-info-gnattools: \ |
30879 | configure-gnattools \ | |
30880 | info-gnattools | |
0aed8855 | 30881 | @: $(MAKE); $(unstage) |
a90ef4bf | 30882 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
b40e3958 L |
30883 | r=`${PWD_COMMAND}`; export r; \ |
30884 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30885 | $(HOST_EXPORTS) \ |
b813574b | 30886 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30887 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30888 | done; \ | |
22121df0 | 30889 | echo "Doing install-info in gnattools"; \ |
a90ef4bf | 30890 | (cd $(HOST_SUBDIR)/gnattools && \ |
2a4cbe27 NN |
30891 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30892 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30893 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30894 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 30895 | install-info) \ |
2a4cbe27 NN |
30896 | || exit 1 |
30897 | ||
a90ef4bf | 30898 | @endif gnattools |
2a4cbe27 | 30899 | |
a90ef4bf JM |
30900 | .PHONY: maybe-install-pdf-gnattools install-pdf-gnattools |
30901 | maybe-install-pdf-gnattools: | |
30902 | @if gnattools | |
30903 | maybe-install-pdf-gnattools: install-pdf-gnattools | |
a3ca38d2 | 30904 | |
a90ef4bf JM |
30905 | install-pdf-gnattools: \ |
30906 | configure-gnattools \ | |
30907 | pdf-gnattools | |
a3ca38d2 | 30908 | @: $(MAKE); $(unstage) |
a90ef4bf | 30909 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
a3ca38d2 DD |
30910 | r=`${PWD_COMMAND}`; export r; \ |
30911 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30912 | $(HOST_EXPORTS) \ | |
30913 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30914 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30915 | done; \ | |
22121df0 | 30916 | echo "Doing install-pdf in gnattools"; \ |
a90ef4bf | 30917 | (cd $(HOST_SUBDIR)/gnattools && \ |
a3ca38d2 DD |
30918 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30919 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30920 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30921 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
30922 | install-pdf) \ |
30923 | || exit 1 | |
30924 | ||
a90ef4bf | 30925 | @endif gnattools |
a3ca38d2 | 30926 | |
a90ef4bf JM |
30927 | .PHONY: maybe-install-html-gnattools install-html-gnattools |
30928 | maybe-install-html-gnattools: | |
30929 | @if gnattools | |
30930 | maybe-install-html-gnattools: install-html-gnattools | |
108a6f8e | 30931 | |
a90ef4bf JM |
30932 | install-html-gnattools: \ |
30933 | configure-gnattools \ | |
30934 | html-gnattools | |
108a6f8e | 30935 | @: $(MAKE); $(unstage) |
a90ef4bf | 30936 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
108a6f8e CD |
30937 | r=`${PWD_COMMAND}`; export r; \ |
30938 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30939 | $(HOST_EXPORTS) \ | |
30940 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30941 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30942 | done; \ | |
22121df0 | 30943 | echo "Doing install-html in gnattools"; \ |
a90ef4bf | 30944 | (cd $(HOST_SUBDIR)/gnattools && \ |
108a6f8e CD |
30945 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30946 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30947 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30948 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
30949 | install-html) \ |
30950 | || exit 1 | |
30951 | ||
a90ef4bf | 30952 | @endif gnattools |
108a6f8e | 30953 | |
a90ef4bf JM |
30954 | .PHONY: maybe-installcheck-gnattools installcheck-gnattools |
30955 | maybe-installcheck-gnattools: | |
30956 | @if gnattools | |
30957 | maybe-installcheck-gnattools: installcheck-gnattools | |
2a4cbe27 | 30958 | |
a90ef4bf JM |
30959 | installcheck-gnattools: \ |
30960 | configure-gnattools | |
0aed8855 | 30961 | @: $(MAKE); $(unstage) |
a90ef4bf | 30962 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
b40e3958 L |
30963 | r=`${PWD_COMMAND}`; export r; \ |
30964 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30965 | $(HOST_EXPORTS) \ |
b813574b | 30966 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30967 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30968 | done; \ | |
22121df0 | 30969 | echo "Doing installcheck in gnattools"; \ |
a90ef4bf | 30970 | (cd $(HOST_SUBDIR)/gnattools && \ |
2a4cbe27 NN |
30971 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30972 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30973 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30974 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 30975 | installcheck) \ |
2a4cbe27 NN |
30976 | || exit 1 |
30977 | ||
a90ef4bf | 30978 | @endif gnattools |
2a4cbe27 | 30979 | |
a90ef4bf JM |
30980 | .PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools |
30981 | maybe-mostlyclean-gnattools: | |
30982 | @if gnattools | |
30983 | maybe-mostlyclean-gnattools: mostlyclean-gnattools | |
2a4cbe27 | 30984 | |
a90ef4bf | 30985 | mostlyclean-gnattools: |
0aed8855 | 30986 | @: $(MAKE); $(unstage) |
a90ef4bf | 30987 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
b40e3958 L |
30988 | r=`${PWD_COMMAND}`; export r; \ |
30989 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30990 | $(HOST_EXPORTS) \ |
b813574b | 30991 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
30992 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30993 | done; \ | |
22121df0 | 30994 | echo "Doing mostlyclean in gnattools"; \ |
a90ef4bf | 30995 | (cd $(HOST_SUBDIR)/gnattools && \ |
2a4cbe27 NN |
30996 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30997 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30998 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 30999 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 31000 | mostlyclean) \ |
2a4cbe27 NN |
31001 | || exit 1 |
31002 | ||
a90ef4bf | 31003 | @endif gnattools |
2a4cbe27 | 31004 | |
a90ef4bf JM |
31005 | .PHONY: maybe-clean-gnattools clean-gnattools |
31006 | maybe-clean-gnattools: | |
31007 | @if gnattools | |
31008 | maybe-clean-gnattools: clean-gnattools | |
2a4cbe27 | 31009 | |
a90ef4bf | 31010 | clean-gnattools: |
0aed8855 | 31011 | @: $(MAKE); $(unstage) |
a90ef4bf | 31012 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
b40e3958 L |
31013 | r=`${PWD_COMMAND}`; export r; \ |
31014 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31015 | $(HOST_EXPORTS) \ |
b813574b | 31016 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
31017 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31018 | done; \ | |
22121df0 | 31019 | echo "Doing clean in gnattools"; \ |
a90ef4bf | 31020 | (cd $(HOST_SUBDIR)/gnattools && \ |
2a4cbe27 NN |
31021 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31022 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31023 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31024 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 31025 | clean) \ |
2a4cbe27 NN |
31026 | || exit 1 |
31027 | ||
a90ef4bf | 31028 | @endif gnattools |
2a4cbe27 | 31029 | |
a90ef4bf JM |
31030 | .PHONY: maybe-distclean-gnattools distclean-gnattools |
31031 | maybe-distclean-gnattools: | |
31032 | @if gnattools | |
31033 | maybe-distclean-gnattools: distclean-gnattools | |
a2592b1b | 31034 | |
a90ef4bf | 31035 | distclean-gnattools: |
0aed8855 | 31036 | @: $(MAKE); $(unstage) |
a90ef4bf | 31037 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
a2592b1b DD |
31038 | r=`${PWD_COMMAND}`; export r; \ |
31039 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31040 | $(HOST_EXPORTS) \ |
b813574b | 31041 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
a2592b1b DD |
31042 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31043 | done; \ | |
22121df0 | 31044 | echo "Doing distclean in gnattools"; \ |
a90ef4bf | 31045 | (cd $(HOST_SUBDIR)/gnattools && \ |
a2592b1b DD |
31046 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31047 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31048 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31049 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 31050 | distclean) \ |
a2592b1b DD |
31051 | || exit 1 |
31052 | ||
a90ef4bf | 31053 | @endif gnattools |
a2592b1b | 31054 | |
a90ef4bf JM |
31055 | .PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools |
31056 | maybe-maintainer-clean-gnattools: | |
31057 | @if gnattools | |
31058 | maybe-maintainer-clean-gnattools: maintainer-clean-gnattools | |
2a4cbe27 | 31059 | |
a90ef4bf | 31060 | maintainer-clean-gnattools: |
0aed8855 | 31061 | @: $(MAKE); $(unstage) |
a90ef4bf | 31062 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
4fa63067 | 31063 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 31064 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 31065 | $(HOST_EXPORTS) \ |
b813574b | 31066 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
31067 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31068 | done; \ | |
22121df0 | 31069 | echo "Doing maintainer-clean in gnattools"; \ |
a90ef4bf | 31070 | (cd $(HOST_SUBDIR)/gnattools && \ |
4fa63067 NN |
31071 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31072 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31073 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31074 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 31075 | maintainer-clean) \ |
4fa63067 | 31076 | || exit 1 |
252b5132 | 31077 | |
a90ef4bf | 31078 | @endif gnattools |
252b5132 | 31079 | |
252b5132 | 31080 | |
a7254363 | 31081 | |
a90ef4bf JM |
31082 | .PHONY: configure-lto-plugin maybe-configure-lto-plugin |
31083 | maybe-configure-lto-plugin: | |
4f0ef2d8 | 31084 | @if gcc-bootstrap |
a90ef4bf | 31085 | configure-lto-plugin: stage_current |
4f0ef2d8 | 31086 | @endif gcc-bootstrap |
a90ef4bf JM |
31087 | @if lto-plugin |
31088 | maybe-configure-lto-plugin: configure-lto-plugin | |
31089 | configure-lto-plugin: | |
c52c6897 | 31090 | @r=`${PWD_COMMAND}`; export r; \ |
b813574b | 31091 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 31092 | test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \ |
22121df0 | 31093 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \ |
1f53ca9a | 31094 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
31095 | echo Configuring in $(HOST_SUBDIR)/lto-plugin; \ |
31096 | cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \ | |
4fa63067 | 31097 | case $(srcdir) in \ |
b00612cc | 31098 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 31099 | *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \ |
b00612cc | 31100 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4fa63067 | 31101 | esac; \ |
1b6c0831 L |
31102 | module_srcdir=lto-plugin; \ |
31103 | $(SHELL) \ | |
31104 | $$s/$$module_srcdir/configure \ | |
31105 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 31106 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 31107 | --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \ |
4fa63067 | 31108 | || exit 1 |
a90ef4bf | 31109 | @endif lto-plugin |
a7254363 | 31110 | |
d545f33b PB |
31111 | |
31112 | ||
a90ef4bf JM |
31113 | .PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin |
31114 | maybe-configure-stage1-lto-plugin: | |
31115 | @if lto-plugin-bootstrap | |
31116 | maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin | |
31117 | configure-stage1-lto-plugin: | |
31118 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
31119 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin | |
4fa63067 NN |
31120 | @r=`${PWD_COMMAND}`; export r; \ |
31121 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
31122 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
31123 | test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \ | |
31124 | $(HOST_EXPORTS) \ | |
31125 | CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ | |
31126 | CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ | |
31127 | LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
31128 | echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin; \ |
31129 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \ | |
a90ef4bf JM |
31130 | cd $(HOST_SUBDIR)/lto-plugin || exit 1; \ |
31131 | case $(srcdir) in \ | |
31132 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
31133 | *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \ | |
31134 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
31135 | esac; \ | |
1b6c0831 L |
31136 | module_srcdir=lto-plugin; \ |
31137 | $(SHELL) $$s/$$module_srcdir/configure \ | |
31138 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 31139 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 L |
31140 | --target=${target_alias} \ |
31141 | \ | |
a90ef4bf | 31142 | $(STAGE1_CONFIGURE_FLAGS) \ |
1b6c0831 | 31143 | --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ |
a90ef4bf | 31144 | @endif lto-plugin-bootstrap |
252b5132 | 31145 | |
a90ef4bf JM |
31146 | .PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin |
31147 | maybe-configure-stage2-lto-plugin: | |
31148 | @if lto-plugin-bootstrap | |
31149 | maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin | |
31150 | configure-stage2-lto-plugin: | |
31151 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
31152 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin | |
b813574b PB |
31153 | @r=`${PWD_COMMAND}`; export r; \ |
31154 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
31155 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
31156 | test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \ | |
b813574b | 31157 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
31158 | $(POSTSTAGE1_HOST_EXPORTS) \ |
31159 | CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ | |
31160 | CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ | |
31161 | LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
31162 | echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin; \ |
31163 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \ | |
a90ef4bf JM |
31164 | cd $(HOST_SUBDIR)/lto-plugin || exit 1; \ |
31165 | case $(srcdir) in \ | |
31166 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
31167 | *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \ | |
31168 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
31169 | esac; \ | |
1b6c0831 L |
31170 | module_srcdir=lto-plugin; \ |
31171 | $(SHELL) $$s/$$module_srcdir/configure \ | |
31172 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 31173 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 31174 | --target=${target_alias} \ |
22121df0 | 31175 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 31176 | $(STAGE2_CONFIGURE_FLAGS) \ |
1b6c0831 | 31177 | --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ |
a90ef4bf | 31178 | @endif lto-plugin-bootstrap |
4fa63067 | 31179 | |
a90ef4bf JM |
31180 | .PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin |
31181 | maybe-configure-stage3-lto-plugin: | |
31182 | @if lto-plugin-bootstrap | |
31183 | maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin | |
31184 | configure-stage3-lto-plugin: | |
31185 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
31186 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin | |
4fa63067 NN |
31187 | @r=`${PWD_COMMAND}`; export r; \ |
31188 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
31189 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
31190 | test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \ | |
378fce5b | 31191 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
31192 | $(POSTSTAGE1_HOST_EXPORTS) \ |
31193 | CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ | |
31194 | CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ | |
31195 | LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
31196 | echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin; \ |
31197 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \ | |
a90ef4bf JM |
31198 | cd $(HOST_SUBDIR)/lto-plugin || exit 1; \ |
31199 | case $(srcdir) in \ | |
31200 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
31201 | *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \ | |
31202 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
31203 | esac; \ | |
1b6c0831 L |
31204 | module_srcdir=lto-plugin; \ |
31205 | $(SHELL) $$s/$$module_srcdir/configure \ | |
31206 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 31207 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 31208 | --target=${target_alias} \ |
22121df0 | 31209 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 31210 | $(STAGE3_CONFIGURE_FLAGS) \ |
1b6c0831 | 31211 | --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ |
a90ef4bf | 31212 | @endif lto-plugin-bootstrap |
9b980aa1 | 31213 | |
a90ef4bf JM |
31214 | .PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin |
31215 | maybe-configure-stage4-lto-plugin: | |
31216 | @if lto-plugin-bootstrap | |
31217 | maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin | |
31218 | configure-stage4-lto-plugin: | |
31219 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
31220 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin | |
9b980aa1 RW |
31221 | @r=`${PWD_COMMAND}`; export r; \ |
31222 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
31223 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
31224 | test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \ | |
9b980aa1 | 31225 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
31226 | $(POSTSTAGE1_HOST_EXPORTS) \ |
31227 | CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ | |
31228 | CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ | |
31229 | LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
31230 | echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin; \ |
31231 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \ | |
a90ef4bf JM |
31232 | cd $(HOST_SUBDIR)/lto-plugin || exit 1; \ |
31233 | case $(srcdir) in \ | |
31234 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
31235 | *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \ | |
31236 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
31237 | esac; \ | |
1b6c0831 L |
31238 | module_srcdir=lto-plugin; \ |
31239 | $(SHELL) $$s/$$module_srcdir/configure \ | |
31240 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 31241 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 31242 | --target=${target_alias} \ |
22121df0 | 31243 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 31244 | $(STAGE4_CONFIGURE_FLAGS) \ |
1b6c0831 | 31245 | --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ |
a90ef4bf | 31246 | @endif lto-plugin-bootstrap |
4fa63067 | 31247 | |
a90ef4bf JM |
31248 | .PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin |
31249 | maybe-configure-stageprofile-lto-plugin: | |
31250 | @if lto-plugin-bootstrap | |
31251 | maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin | |
31252 | configure-stageprofile-lto-plugin: | |
31253 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
31254 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin | |
31255 | @r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 31256 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
31257 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
31258 | test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \ | |
378fce5b | 31259 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
31260 | $(POSTSTAGE1_HOST_EXPORTS) \ |
31261 | CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ | |
31262 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ | |
31263 | LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
31264 | echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin; \ |
31265 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \ | |
a90ef4bf JM |
31266 | cd $(HOST_SUBDIR)/lto-plugin || exit 1; \ |
31267 | case $(srcdir) in \ | |
31268 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
31269 | *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \ | |
31270 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
31271 | esac; \ | |
1b6c0831 L |
31272 | module_srcdir=lto-plugin; \ |
31273 | $(SHELL) $$s/$$module_srcdir/configure \ | |
31274 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 31275 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 31276 | --target=${target_alias} \ |
22121df0 | 31277 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 31278 | $(STAGEprofile_CONFIGURE_FLAGS) \ |
1b6c0831 | 31279 | --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ |
a90ef4bf | 31280 | @endif lto-plugin-bootstrap |
4fa63067 | 31281 | |
a90ef4bf JM |
31282 | .PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin |
31283 | maybe-configure-stagefeedback-lto-plugin: | |
31284 | @if lto-plugin-bootstrap | |
31285 | maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin | |
31286 | configure-stagefeedback-lto-plugin: | |
31287 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
31288 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin | |
31289 | @r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 31290 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
31291 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
31292 | test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \ | |
378fce5b | 31293 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
31294 | $(POSTSTAGE1_HOST_EXPORTS) \ |
31295 | CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ | |
31296 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ | |
31297 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ | |
22121df0 L |
31298 | echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin; \ |
31299 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \ | |
a90ef4bf JM |
31300 | cd $(HOST_SUBDIR)/lto-plugin || exit 1; \ |
31301 | case $(srcdir) in \ | |
31302 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
31303 | *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \ | |
31304 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
31305 | esac; \ | |
1b6c0831 L |
31306 | module_srcdir=lto-plugin; \ |
31307 | $(SHELL) $$s/$$module_srcdir/configure \ | |
31308 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 31309 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
1b6c0831 | 31310 | --target=${target_alias} \ |
22121df0 | 31311 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf | 31312 | $(STAGEfeedback_CONFIGURE_FLAGS) \ |
1b6c0831 | 31313 | --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ |
a90ef4bf | 31314 | @endif lto-plugin-bootstrap |
252b5132 | 31315 | |
56a8fe78 | 31316 | |
56a8fe78 | 31317 | |
56a8fe78 | 31318 | |
6d389afc | 31319 | |
a90ef4bf JM |
31320 | .PHONY: all-lto-plugin maybe-all-lto-plugin |
31321 | maybe-all-lto-plugin: | |
31322 | @if gcc-bootstrap | |
31323 | all-lto-plugin: stage_current | |
31324 | @endif gcc-bootstrap | |
31325 | @if lto-plugin | |
31326 | TARGET-lto-plugin=all | |
31327 | maybe-all-lto-plugin: all-lto-plugin | |
31328 | all-lto-plugin: configure-lto-plugin | |
31329 | @r=`${PWD_COMMAND}`; export r; \ | |
6d389afc | 31330 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
31331 | $(HOST_EXPORTS) \ |
31332 | (cd $(HOST_SUBDIR)/lto-plugin && \ | |
1b6c0831 | 31333 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \ |
a90ef4bf JM |
31334 | $(TARGET-lto-plugin)) |
31335 | @endif lto-plugin | |
6d389afc | 31336 | |
6d389afc | 31337 | |
252b5132 | 31338 | |
a90ef4bf JM |
31339 | .PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin |
31340 | .PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin | |
31341 | maybe-all-stage1-lto-plugin: | |
31342 | maybe-clean-stage1-lto-plugin: | |
31343 | @if lto-plugin-bootstrap | |
31344 | maybe-all-stage1-lto-plugin: all-stage1-lto-plugin | |
31345 | all-stage1: all-stage1-lto-plugin | |
31346 | TARGET-stage1-lto-plugin = $(TARGET-lto-plugin) | |
31347 | all-stage1-lto-plugin: configure-stage1-lto-plugin | |
31348 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
31349 | @r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 31350 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
31351 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
31352 | $(HOST_EXPORTS) \ | |
31353 | cd $(HOST_SUBDIR)/lto-plugin && \ | |
05a13254 | 31354 | \ |
a90ef4bf JM |
31355 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
31356 | CFLAGS="$(STAGE1_CFLAGS)" \ | |
31357 | CXXFLAGS="$(STAGE1_CXXFLAGS)" \ | |
31358 | LIBCFLAGS="$(LIBCFLAGS)" \ | |
31359 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
31360 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
31361 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 | 31362 | $(EXTRA_HOST_FLAGS) \ |
1b6c0831 | 31363 | $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \ |
05a13254 | 31364 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 31365 | $(TARGET-stage1-lto-plugin) |
3866be5d | 31366 | |
a90ef4bf JM |
31367 | maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin |
31368 | clean-stage1: clean-stage1-lto-plugin | |
31369 | clean-stage1-lto-plugin: | |
31370 | @if [ $(current_stage) = stage1 ]; then \ | |
31371 | [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \ | |
31372 | else \ | |
31373 | [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \ | |
31374 | $(MAKE) stage1-start; \ | |
31375 | fi; \ | |
31376 | cd $(HOST_SUBDIR)/lto-plugin && \ | |
31377 | $(MAKE) $(EXTRA_HOST_FLAGS) \ | |
1b6c0831 | 31378 | $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean |
a90ef4bf | 31379 | @endif lto-plugin-bootstrap |
3866be5d | 31380 | |
3866be5d | 31381 | |
a90ef4bf JM |
31382 | .PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin |
31383 | .PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin | |
31384 | maybe-all-stage2-lto-plugin: | |
31385 | maybe-clean-stage2-lto-plugin: | |
31386 | @if lto-plugin-bootstrap | |
31387 | maybe-all-stage2-lto-plugin: all-stage2-lto-plugin | |
31388 | all-stage2: all-stage2-lto-plugin | |
31389 | TARGET-stage2-lto-plugin = $(TARGET-lto-plugin) | |
31390 | all-stage2-lto-plugin: configure-stage2-lto-plugin | |
31391 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
31392 | @r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 31393 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 31394 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
378fce5b | 31395 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
31396 | $(POSTSTAGE1_HOST_EXPORTS) \ |
31397 | cd $(HOST_SUBDIR)/lto-plugin && \ | |
05a13254 | 31398 | \ |
a90ef4bf JM |
31399 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
31400 | CFLAGS="$(STAGE2_CFLAGS)" \ | |
31401 | CXXFLAGS="$(STAGE2_CXXFLAGS)" \ | |
31402 | LIBCFLAGS="$(STAGE2_CFLAGS)" \ | |
31403 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
31404 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
31405 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
1b6c0831 | 31406 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \ |
05a13254 | 31407 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 31408 | $(TARGET-stage2-lto-plugin) |
3866be5d | 31409 | |
a90ef4bf JM |
31410 | maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin |
31411 | clean-stage2: clean-stage2-lto-plugin | |
31412 | clean-stage2-lto-plugin: | |
31413 | @if [ $(current_stage) = stage2 ]; then \ | |
31414 | [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \ | |
31415 | else \ | |
31416 | [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \ | |
31417 | $(MAKE) stage2-start; \ | |
31418 | fi; \ | |
31419 | cd $(HOST_SUBDIR)/lto-plugin && \ | |
1b6c0831 | 31420 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean |
a90ef4bf | 31421 | @endif lto-plugin-bootstrap |
3866be5d | 31422 | |
a3ca38d2 | 31423 | |
a90ef4bf JM |
31424 | .PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin |
31425 | .PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin | |
31426 | maybe-all-stage3-lto-plugin: | |
31427 | maybe-clean-stage3-lto-plugin: | |
31428 | @if lto-plugin-bootstrap | |
31429 | maybe-all-stage3-lto-plugin: all-stage3-lto-plugin | |
31430 | all-stage3: all-stage3-lto-plugin | |
31431 | TARGET-stage3-lto-plugin = $(TARGET-lto-plugin) | |
31432 | all-stage3-lto-plugin: configure-stage3-lto-plugin | |
31433 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
31434 | @r=`${PWD_COMMAND}`; export r; \ | |
a3ca38d2 | 31435 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 31436 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
a3ca38d2 | 31437 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
31438 | $(POSTSTAGE1_HOST_EXPORTS) \ |
31439 | cd $(HOST_SUBDIR)/lto-plugin && \ | |
05a13254 | 31440 | \ |
a90ef4bf JM |
31441 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
31442 | CFLAGS="$(STAGE3_CFLAGS)" \ | |
31443 | CXXFLAGS="$(STAGE3_CXXFLAGS)" \ | |
31444 | LIBCFLAGS="$(STAGE3_CFLAGS)" \ | |
31445 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
31446 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
31447 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
1b6c0831 | 31448 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \ |
05a13254 | 31449 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 31450 | $(TARGET-stage3-lto-plugin) |
a3ca38d2 | 31451 | |
a90ef4bf JM |
31452 | maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin |
31453 | clean-stage3: clean-stage3-lto-plugin | |
31454 | clean-stage3-lto-plugin: | |
31455 | @if [ $(current_stage) = stage3 ]; then \ | |
31456 | [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \ | |
31457 | else \ | |
31458 | [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \ | |
31459 | $(MAKE) stage3-start; \ | |
31460 | fi; \ | |
31461 | cd $(HOST_SUBDIR)/lto-plugin && \ | |
1b6c0831 | 31462 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean |
a90ef4bf | 31463 | @endif lto-plugin-bootstrap |
a3ca38d2 | 31464 | |
108a6f8e | 31465 | |
a90ef4bf JM |
31466 | .PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin |
31467 | .PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin | |
31468 | maybe-all-stage4-lto-plugin: | |
31469 | maybe-clean-stage4-lto-plugin: | |
31470 | @if lto-plugin-bootstrap | |
31471 | maybe-all-stage4-lto-plugin: all-stage4-lto-plugin | |
31472 | all-stage4: all-stage4-lto-plugin | |
31473 | TARGET-stage4-lto-plugin = $(TARGET-lto-plugin) | |
31474 | all-stage4-lto-plugin: configure-stage4-lto-plugin | |
31475 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
31476 | @r=`${PWD_COMMAND}`; export r; \ | |
108a6f8e | 31477 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 31478 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
108a6f8e | 31479 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
31480 | $(POSTSTAGE1_HOST_EXPORTS) \ |
31481 | cd $(HOST_SUBDIR)/lto-plugin && \ | |
05a13254 | 31482 | \ |
a90ef4bf JM |
31483 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
31484 | CFLAGS="$(STAGE4_CFLAGS)" \ | |
31485 | CXXFLAGS="$(STAGE4_CXXFLAGS)" \ | |
31486 | LIBCFLAGS="$(STAGE4_CFLAGS)" \ | |
31487 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
31488 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
31489 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
1b6c0831 | 31490 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \ |
05a13254 | 31491 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 31492 | $(TARGET-stage4-lto-plugin) |
108a6f8e | 31493 | |
a90ef4bf JM |
31494 | maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin |
31495 | clean-stage4: clean-stage4-lto-plugin | |
31496 | clean-stage4-lto-plugin: | |
31497 | @if [ $(current_stage) = stage4 ]; then \ | |
31498 | [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \ | |
31499 | else \ | |
31500 | [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \ | |
31501 | $(MAKE) stage4-start; \ | |
31502 | fi; \ | |
31503 | cd $(HOST_SUBDIR)/lto-plugin && \ | |
1b6c0831 | 31504 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean |
a90ef4bf | 31505 | @endif lto-plugin-bootstrap |
4fa63067 | 31506 | |
4fa63067 | 31507 | |
a90ef4bf JM |
31508 | .PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin |
31509 | .PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin | |
31510 | maybe-all-stageprofile-lto-plugin: | |
31511 | maybe-clean-stageprofile-lto-plugin: | |
31512 | @if lto-plugin-bootstrap | |
31513 | maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin | |
31514 | all-stageprofile: all-stageprofile-lto-plugin | |
31515 | TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin) | |
31516 | all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin | |
31517 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
31518 | @r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 31519 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 31520 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
378fce5b | 31521 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
31522 | $(POSTSTAGE1_HOST_EXPORTS) \ |
31523 | cd $(HOST_SUBDIR)/lto-plugin && \ | |
05a13254 | 31524 | \ |
a90ef4bf JM |
31525 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
31526 | CFLAGS="$(STAGEprofile_CFLAGS)" \ | |
31527 | CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ | |
31528 | LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ | |
31529 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
31530 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
31531 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
1b6c0831 | 31532 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \ |
05a13254 | 31533 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf | 31534 | $(TARGET-stageprofile-lto-plugin) |
4fa63067 | 31535 | |
a90ef4bf JM |
31536 | maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin |
31537 | clean-stageprofile: clean-stageprofile-lto-plugin | |
31538 | clean-stageprofile-lto-plugin: | |
31539 | @if [ $(current_stage) = stageprofile ]; then \ | |
31540 | [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \ | |
31541 | else \ | |
31542 | [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \ | |
31543 | $(MAKE) stageprofile-start; \ | |
31544 | fi; \ | |
31545 | cd $(HOST_SUBDIR)/lto-plugin && \ | |
1b6c0831 | 31546 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean |
a90ef4bf | 31547 | @endif lto-plugin-bootstrap |
4fa63067 | 31548 | |
4fa63067 | 31549 | |
a90ef4bf JM |
31550 | .PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin |
31551 | .PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin | |
31552 | maybe-all-stagefeedback-lto-plugin: | |
31553 | maybe-clean-stagefeedback-lto-plugin: | |
31554 | @if lto-plugin-bootstrap | |
31555 | maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin | |
31556 | all-stagefeedback: all-stagefeedback-lto-plugin | |
31557 | TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin) | |
31558 | all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin | |
31559 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
31560 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 31561 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 31562 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
378fce5b | 31563 | $(HOST_EXPORTS) \ |
a90ef4bf JM |
31564 | $(POSTSTAGE1_HOST_EXPORTS) \ |
31565 | cd $(HOST_SUBDIR)/lto-plugin && \ | |
05a13254 | 31566 | \ |
a90ef4bf JM |
31567 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
31568 | CFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
31569 | CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ | |
31570 | LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ | |
31571 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
31572 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
31573 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
1b6c0831 | 31574 | $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \ |
05a13254 | 31575 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf | 31576 | $(TARGET-stagefeedback-lto-plugin) |
3866be5d | 31577 | |
a90ef4bf JM |
31578 | maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin |
31579 | clean-stagefeedback: clean-stagefeedback-lto-plugin | |
31580 | clean-stagefeedback-lto-plugin: | |
31581 | @if [ $(current_stage) = stagefeedback ]; then \ | |
31582 | [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \ | |
31583 | else \ | |
31584 | [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \ | |
31585 | $(MAKE) stagefeedback-start; \ | |
31586 | fi; \ | |
31587 | cd $(HOST_SUBDIR)/lto-plugin && \ | |
1b6c0831 | 31588 | $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean |
a90ef4bf | 31589 | @endif lto-plugin-bootstrap |
a7254363 | 31590 | |
e2b9e2dc | 31591 | |
a7254363 PB |
31592 | |
31593 | ||
d545f33b | 31594 | |
a90ef4bf JM |
31595 | .PHONY: check-lto-plugin maybe-check-lto-plugin |
31596 | maybe-check-lto-plugin: | |
31597 | @if lto-plugin | |
31598 | maybe-check-lto-plugin: check-lto-plugin | |
d545f33b | 31599 | |
a90ef4bf | 31600 | check-lto-plugin: |
0aed8855 | 31601 | @: $(MAKE); $(unstage) |
b40e3958 L |
31602 | @r=`${PWD_COMMAND}`; export r; \ |
31603 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 31604 | $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \ |
a90ef4bf | 31605 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
f91ca6bc | 31606 | $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check) |
3866be5d | 31607 | |
a90ef4bf | 31608 | @endif lto-plugin |
3866be5d | 31609 | |
a90ef4bf JM |
31610 | .PHONY: install-lto-plugin maybe-install-lto-plugin |
31611 | maybe-install-lto-plugin: | |
31612 | @if lto-plugin | |
31613 | maybe-install-lto-plugin: install-lto-plugin | |
4fa63067 | 31614 | |
a90ef4bf | 31615 | install-lto-plugin: installdirs |
0aed8855 | 31616 | @: $(MAKE); $(unstage) |
4fa63067 NN |
31617 | @r=`${PWD_COMMAND}`; export r; \ |
31618 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31619 | $(HOST_EXPORTS) \ |
a90ef4bf | 31620 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
1b6c0831 | 31621 | $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install) |
4fa63067 | 31622 | |
a90ef4bf | 31623 | @endif lto-plugin |
4fa63067 | 31624 | |
a90ef4bf JM |
31625 | .PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin |
31626 | maybe-install-strip-lto-plugin: | |
31627 | @if lto-plugin | |
31628 | maybe-install-strip-lto-plugin: install-strip-lto-plugin | |
9b980aa1 | 31629 | |
a90ef4bf | 31630 | install-strip-lto-plugin: installdirs |
9b980aa1 RW |
31631 | @: $(MAKE); $(unstage) |
31632 | @r=`${PWD_COMMAND}`; export r; \ | |
31633 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31634 | $(HOST_EXPORTS) \ | |
a90ef4bf | 31635 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
1b6c0831 | 31636 | $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip) |
9b980aa1 | 31637 | |
a90ef4bf | 31638 | @endif lto-plugin |
9b980aa1 | 31639 | |
56a8fe78 | 31640 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 31641 | |
a90ef4bf JM |
31642 | .PHONY: maybe-info-lto-plugin info-lto-plugin |
31643 | maybe-info-lto-plugin: | |
31644 | @if lto-plugin | |
31645 | maybe-info-lto-plugin: info-lto-plugin | |
4fa63067 | 31646 | |
a90ef4bf JM |
31647 | info-lto-plugin: \ |
31648 | configure-lto-plugin | |
31649 | @[ -f ./lto-plugin/Makefile ] || exit 0; \ | |
4fa63067 NN |
31650 | r=`${PWD_COMMAND}`; export r; \ |
31651 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31652 | $(HOST_EXPORTS) \ |
1b6c0831 | 31653 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ |
4fa63067 NN |
31654 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31655 | done; \ | |
22121df0 | 31656 | echo "Doing info in lto-plugin"; \ |
a90ef4bf | 31657 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
4fa63067 NN |
31658 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31659 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31660 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31661 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 31662 | info) \ |
4fa63067 NN |
31663 | || exit 1 |
31664 | ||
a90ef4bf | 31665 | @endif lto-plugin |
4fa63067 | 31666 | |
a90ef4bf JM |
31667 | .PHONY: maybe-dvi-lto-plugin dvi-lto-plugin |
31668 | maybe-dvi-lto-plugin: | |
31669 | @if lto-plugin | |
31670 | maybe-dvi-lto-plugin: dvi-lto-plugin | |
4fa63067 | 31671 | |
a90ef4bf JM |
31672 | dvi-lto-plugin: \ |
31673 | configure-lto-plugin | |
31674 | @[ -f ./lto-plugin/Makefile ] || exit 0; \ | |
4fa63067 NN |
31675 | r=`${PWD_COMMAND}`; export r; \ |
31676 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31677 | $(HOST_EXPORTS) \ |
1b6c0831 | 31678 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ |
4fa63067 NN |
31679 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31680 | done; \ | |
22121df0 | 31681 | echo "Doing dvi in lto-plugin"; \ |
a90ef4bf | 31682 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
4fa63067 NN |
31683 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31684 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31685 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31686 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 31687 | dvi) \ |
4fa63067 NN |
31688 | || exit 1 |
31689 | ||
a90ef4bf | 31690 | @endif lto-plugin |
4fa63067 | 31691 | |
a90ef4bf JM |
31692 | .PHONY: maybe-pdf-lto-plugin pdf-lto-plugin |
31693 | maybe-pdf-lto-plugin: | |
31694 | @if lto-plugin | |
31695 | maybe-pdf-lto-plugin: pdf-lto-plugin | |
56a8fe78 | 31696 | |
a90ef4bf JM |
31697 | pdf-lto-plugin: \ |
31698 | configure-lto-plugin | |
31699 | @[ -f ./lto-plugin/Makefile ] || exit 0; \ | |
56a8fe78 DD |
31700 | r=`${PWD_COMMAND}`; export r; \ |
31701 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31702 | $(HOST_EXPORTS) \ | |
1b6c0831 | 31703 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ |
56a8fe78 DD |
31704 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31705 | done; \ | |
22121df0 | 31706 | echo "Doing pdf in lto-plugin"; \ |
a90ef4bf | 31707 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
56a8fe78 DD |
31708 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31709 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31710 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31711 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
31712 | pdf) \ |
31713 | || exit 1 | |
31714 | ||
a90ef4bf | 31715 | @endif lto-plugin |
56a8fe78 | 31716 | |
a90ef4bf JM |
31717 | .PHONY: maybe-html-lto-plugin html-lto-plugin |
31718 | maybe-html-lto-plugin: | |
31719 | @if lto-plugin | |
31720 | maybe-html-lto-plugin: html-lto-plugin | |
6d389afc | 31721 | |
a90ef4bf JM |
31722 | html-lto-plugin: \ |
31723 | configure-lto-plugin | |
31724 | @[ -f ./lto-plugin/Makefile ] || exit 0; \ | |
6d389afc MS |
31725 | r=`${PWD_COMMAND}`; export r; \ |
31726 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 31727 | $(HOST_EXPORTS) \ |
1b6c0831 | 31728 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ |
6d389afc MS |
31729 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31730 | done; \ | |
22121df0 | 31731 | echo "Doing html in lto-plugin"; \ |
a90ef4bf | 31732 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
6d389afc MS |
31733 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31734 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31735 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31736 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
31737 | html) \ |
31738 | || exit 1 | |
31739 | ||
a90ef4bf | 31740 | @endif lto-plugin |
6d389afc | 31741 | |
a90ef4bf JM |
31742 | .PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin |
31743 | maybe-TAGS-lto-plugin: | |
31744 | @if lto-plugin | |
31745 | maybe-TAGS-lto-plugin: TAGS-lto-plugin | |
4fa63067 | 31746 | |
a90ef4bf JM |
31747 | TAGS-lto-plugin: \ |
31748 | configure-lto-plugin | |
31749 | @[ -f ./lto-plugin/Makefile ] || exit 0; \ | |
4fa63067 NN |
31750 | r=`${PWD_COMMAND}`; export r; \ |
31751 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31752 | $(HOST_EXPORTS) \ |
1b6c0831 | 31753 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ |
4fa63067 NN |
31754 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31755 | done; \ | |
22121df0 | 31756 | echo "Doing TAGS in lto-plugin"; \ |
a90ef4bf | 31757 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
4fa63067 NN |
31758 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31759 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31760 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31761 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 31762 | TAGS) \ |
4fa63067 NN |
31763 | || exit 1 |
31764 | ||
a90ef4bf | 31765 | @endif lto-plugin |
4fa63067 | 31766 | |
a90ef4bf JM |
31767 | .PHONY: maybe-install-info-lto-plugin install-info-lto-plugin |
31768 | maybe-install-info-lto-plugin: | |
31769 | @if lto-plugin | |
31770 | maybe-install-info-lto-plugin: install-info-lto-plugin | |
4fa63067 | 31771 | |
a90ef4bf JM |
31772 | install-info-lto-plugin: \ |
31773 | configure-lto-plugin \ | |
31774 | info-lto-plugin | |
31775 | @[ -f ./lto-plugin/Makefile ] || exit 0; \ | |
4fa63067 NN |
31776 | r=`${PWD_COMMAND}`; export r; \ |
31777 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31778 | $(HOST_EXPORTS) \ |
1b6c0831 | 31779 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ |
4fa63067 NN |
31780 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31781 | done; \ | |
22121df0 | 31782 | echo "Doing install-info in lto-plugin"; \ |
a90ef4bf | 31783 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
4fa63067 NN |
31784 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31785 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31786 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31787 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 31788 | install-info) \ |
4fa63067 NN |
31789 | || exit 1 |
31790 | ||
a90ef4bf | 31791 | @endif lto-plugin |
4fa63067 | 31792 | |
a90ef4bf JM |
31793 | .PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin |
31794 | maybe-install-pdf-lto-plugin: | |
31795 | @if lto-plugin | |
31796 | maybe-install-pdf-lto-plugin: install-pdf-lto-plugin | |
a3ca38d2 | 31797 | |
a90ef4bf JM |
31798 | install-pdf-lto-plugin: \ |
31799 | configure-lto-plugin \ | |
31800 | pdf-lto-plugin | |
31801 | @[ -f ./lto-plugin/Makefile ] || exit 0; \ | |
a3ca38d2 DD |
31802 | r=`${PWD_COMMAND}`; export r; \ |
31803 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31804 | $(HOST_EXPORTS) \ | |
1b6c0831 | 31805 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ |
a3ca38d2 DD |
31806 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31807 | done; \ | |
22121df0 | 31808 | echo "Doing install-pdf in lto-plugin"; \ |
a90ef4bf | 31809 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
a3ca38d2 DD |
31810 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31811 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31812 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31813 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
31814 | install-pdf) \ |
31815 | || exit 1 | |
31816 | ||
a90ef4bf | 31817 | @endif lto-plugin |
a3ca38d2 | 31818 | |
a90ef4bf JM |
31819 | .PHONY: maybe-install-html-lto-plugin install-html-lto-plugin |
31820 | maybe-install-html-lto-plugin: | |
31821 | @if lto-plugin | |
31822 | maybe-install-html-lto-plugin: install-html-lto-plugin | |
108a6f8e | 31823 | |
a90ef4bf JM |
31824 | install-html-lto-plugin: \ |
31825 | configure-lto-plugin \ | |
31826 | html-lto-plugin | |
31827 | @[ -f ./lto-plugin/Makefile ] || exit 0; \ | |
108a6f8e CD |
31828 | r=`${PWD_COMMAND}`; export r; \ |
31829 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31830 | $(HOST_EXPORTS) \ | |
1b6c0831 | 31831 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ |
108a6f8e CD |
31832 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31833 | done; \ | |
22121df0 | 31834 | echo "Doing install-html in lto-plugin"; \ |
a90ef4bf | 31835 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
108a6f8e CD |
31836 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31837 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31838 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31839 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
31840 | install-html) \ |
31841 | || exit 1 | |
31842 | ||
a90ef4bf | 31843 | @endif lto-plugin |
108a6f8e | 31844 | |
a90ef4bf JM |
31845 | .PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin |
31846 | maybe-installcheck-lto-plugin: | |
31847 | @if lto-plugin | |
31848 | maybe-installcheck-lto-plugin: installcheck-lto-plugin | |
4fa63067 | 31849 | |
a90ef4bf JM |
31850 | installcheck-lto-plugin: \ |
31851 | configure-lto-plugin | |
31852 | @[ -f ./lto-plugin/Makefile ] || exit 0; \ | |
4fa63067 NN |
31853 | r=`${PWD_COMMAND}`; export r; \ |
31854 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31855 | $(HOST_EXPORTS) \ |
1b6c0831 | 31856 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ |
4fa63067 NN |
31857 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31858 | done; \ | |
22121df0 | 31859 | echo "Doing installcheck in lto-plugin"; \ |
a90ef4bf | 31860 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
4fa63067 NN |
31861 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31862 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31863 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31864 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 31865 | installcheck) \ |
4fa63067 NN |
31866 | || exit 1 |
31867 | ||
a90ef4bf | 31868 | @endif lto-plugin |
4fa63067 | 31869 | |
a90ef4bf JM |
31870 | .PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin |
31871 | maybe-mostlyclean-lto-plugin: | |
31872 | @if lto-plugin | |
31873 | maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin | |
4fa63067 | 31874 | |
a90ef4bf JM |
31875 | mostlyclean-lto-plugin: |
31876 | @[ -f ./lto-plugin/Makefile ] || exit 0; \ | |
4fa63067 NN |
31877 | r=`${PWD_COMMAND}`; export r; \ |
31878 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31879 | $(HOST_EXPORTS) \ |
1b6c0831 | 31880 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ |
4fa63067 NN |
31881 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31882 | done; \ | |
22121df0 | 31883 | echo "Doing mostlyclean in lto-plugin"; \ |
a90ef4bf | 31884 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
4fa63067 NN |
31885 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31886 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31887 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31888 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 31889 | mostlyclean) \ |
4fa63067 NN |
31890 | || exit 1 |
31891 | ||
a90ef4bf | 31892 | @endif lto-plugin |
4fa63067 | 31893 | |
a90ef4bf JM |
31894 | .PHONY: maybe-clean-lto-plugin clean-lto-plugin |
31895 | maybe-clean-lto-plugin: | |
31896 | @if lto-plugin | |
31897 | maybe-clean-lto-plugin: clean-lto-plugin | |
4fa63067 | 31898 | |
a90ef4bf JM |
31899 | clean-lto-plugin: |
31900 | @[ -f ./lto-plugin/Makefile ] || exit 0; \ | |
4fa63067 NN |
31901 | r=`${PWD_COMMAND}`; export r; \ |
31902 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31903 | $(HOST_EXPORTS) \ |
1b6c0831 | 31904 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ |
4fa63067 NN |
31905 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31906 | done; \ | |
22121df0 | 31907 | echo "Doing clean in lto-plugin"; \ |
a90ef4bf | 31908 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
4fa63067 NN |
31909 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31910 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31911 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31912 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 31913 | clean) \ |
4fa63067 NN |
31914 | || exit 1 |
31915 | ||
a90ef4bf | 31916 | @endif lto-plugin |
4fa63067 | 31917 | |
a90ef4bf JM |
31918 | .PHONY: maybe-distclean-lto-plugin distclean-lto-plugin |
31919 | maybe-distclean-lto-plugin: | |
31920 | @if lto-plugin | |
31921 | maybe-distclean-lto-plugin: distclean-lto-plugin | |
4fa63067 | 31922 | |
a90ef4bf JM |
31923 | distclean-lto-plugin: |
31924 | @[ -f ./lto-plugin/Makefile ] || exit 0; \ | |
4fa63067 NN |
31925 | r=`${PWD_COMMAND}`; export r; \ |
31926 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31927 | $(HOST_EXPORTS) \ |
1b6c0831 | 31928 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ |
4fa63067 NN |
31929 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31930 | done; \ | |
22121df0 | 31931 | echo "Doing distclean in lto-plugin"; \ |
a90ef4bf | 31932 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
4fa63067 NN |
31933 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31934 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31935 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31936 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 31937 | distclean) \ |
4fa63067 NN |
31938 | || exit 1 |
31939 | ||
a90ef4bf | 31940 | @endif lto-plugin |
4fa63067 | 31941 | |
a90ef4bf JM |
31942 | .PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin |
31943 | maybe-maintainer-clean-lto-plugin: | |
31944 | @if lto-plugin | |
31945 | maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin | |
4fa63067 | 31946 | |
a90ef4bf JM |
31947 | maintainer-clean-lto-plugin: |
31948 | @[ -f ./lto-plugin/Makefile ] || exit 0; \ | |
4fa63067 NN |
31949 | r=`${PWD_COMMAND}`; export r; \ |
31950 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31951 | $(HOST_EXPORTS) \ |
1b6c0831 | 31952 | for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \ |
4fa63067 NN |
31953 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
31954 | done; \ | |
22121df0 | 31955 | echo "Doing maintainer-clean in lto-plugin"; \ |
a90ef4bf | 31956 | (cd $(HOST_SUBDIR)/lto-plugin && \ |
4fa63067 NN |
31957 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
31958 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31959 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 31960 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b813574b | 31961 | maintainer-clean) \ |
4fa63067 | 31962 | || exit 1 |
16ae0395 | 31963 | |
a90ef4bf JM |
31964 | @endif lto-plugin |
31965 | ||
31966 | ||
31967 | ||
1b6c0831 L |
31968 | .PHONY: configure-libcc1 maybe-configure-libcc1 |
31969 | maybe-configure-libcc1: | |
4f0ef2d8 | 31970 | @if gcc-bootstrap |
1b6c0831 | 31971 | configure-libcc1: stage_current |
4f0ef2d8 | 31972 | @endif gcc-bootstrap |
1b6c0831 L |
31973 | @if libcc1 |
31974 | maybe-configure-libcc1: configure-libcc1 | |
31975 | configure-libcc1: | |
31976 | @: $(MAKE); $(unstage) | |
c52c6897 | 31977 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 31978 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1b6c0831 | 31979 | test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \ |
22121df0 | 31980 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1; \ |
1b6c0831 L |
31981 | $(HOST_EXPORTS) \ |
31982 | echo Configuring in $(HOST_SUBDIR)/libcc1; \ | |
31983 | cd "$(HOST_SUBDIR)/libcc1" || exit 1; \ | |
e2b9e2dc | 31984 | case $(srcdir) in \ |
b00612cc | 31985 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
1b6c0831 | 31986 | *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \ |
b00612cc | 31987 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
e2b9e2dc | 31988 | esac; \ |
1b6c0831 L |
31989 | module_srcdir=libcc1; \ |
31990 | $(SHELL) \ | |
31991 | $$s/$$module_srcdir/configure \ | |
31992 | --srcdir=$${topdir}/$$module_srcdir \ | |
31993 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
31994 | --target=${target_alias} --enable-shared \ | |
e2b9e2dc | 31995 | || exit 1 |
1b6c0831 | 31996 | @endif libcc1 |
d545f33b PB |
31997 | |
31998 | ||
3866be5d | 31999 | |
16ae0395 | 32000 | |
9b980aa1 | 32001 | |
1b6c0831 L |
32002 | .PHONY: all-libcc1 maybe-all-libcc1 |
32003 | maybe-all-libcc1: | |
32004 | @if gcc-bootstrap | |
32005 | all-libcc1: stage_current | |
32006 | @endif gcc-bootstrap | |
32007 | @if libcc1 | |
32008 | TARGET-libcc1=all | |
32009 | maybe-all-libcc1: all-libcc1 | |
32010 | all-libcc1: configure-libcc1 | |
32011 | @: $(MAKE); $(unstage) | |
e8a5fa9c RW |
32012 | @r=`${PWD_COMMAND}`; export r; \ |
32013 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 L |
32014 | $(HOST_EXPORTS) \ |
32015 | (cd $(HOST_SUBDIR)/libcc1 && \ | |
32016 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ | |
32017 | $(TARGET-libcc1)) | |
32018 | @endif libcc1 | |
e8a5fa9c | 32019 | |
1b6c0831 L |
32020 | |
32021 | ||
32022 | ||
32023 | .PHONY: check-libcc1 maybe-check-libcc1 | |
32024 | maybe-check-libcc1: | |
32025 | @if libcc1 | |
32026 | maybe-check-libcc1: check-libcc1 | |
32027 | ||
32028 | check-libcc1: | |
32029 | @: $(MAKE); $(unstage) | |
e8a5fa9c RW |
32030 | @r=`${PWD_COMMAND}`; export r; \ |
32031 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 32032 | $(HOST_EXPORTS) \ |
1b6c0831 L |
32033 | (cd $(HOST_SUBDIR)/libcc1 && \ |
32034 | $(MAKE) $(FLAGS_TO_PASS) check) | |
e8a5fa9c | 32035 | |
1b6c0831 L |
32036 | @endif libcc1 |
32037 | ||
32038 | .PHONY: install-libcc1 maybe-install-libcc1 | |
32039 | maybe-install-libcc1: | |
32040 | @if libcc1 | |
32041 | maybe-install-libcc1: install-libcc1 | |
32042 | ||
32043 | install-libcc1: installdirs | |
32044 | @: $(MAKE); $(unstage) | |
e8a5fa9c RW |
32045 | @r=`${PWD_COMMAND}`; export r; \ |
32046 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 L |
32047 | $(HOST_EXPORTS) \ |
32048 | (cd $(HOST_SUBDIR)/libcc1 && \ | |
32049 | $(MAKE) $(FLAGS_TO_PASS) install) | |
e8a5fa9c | 32050 | |
1b6c0831 L |
32051 | @endif libcc1 |
32052 | ||
32053 | .PHONY: install-strip-libcc1 maybe-install-strip-libcc1 | |
32054 | maybe-install-strip-libcc1: | |
32055 | @if libcc1 | |
32056 | maybe-install-strip-libcc1: install-strip-libcc1 | |
32057 | ||
32058 | install-strip-libcc1: installdirs | |
32059 | @: $(MAKE); $(unstage) | |
e8a5fa9c RW |
32060 | @r=`${PWD_COMMAND}`; export r; \ |
32061 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 L |
32062 | $(HOST_EXPORTS) \ |
32063 | (cd $(HOST_SUBDIR)/libcc1 && \ | |
32064 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
e8a5fa9c | 32065 | |
1b6c0831 | 32066 | @endif libcc1 |
e8a5fa9c | 32067 | |
1b6c0831 | 32068 | # Other targets (info, dvi, pdf, etc.) |
d545f33b | 32069 | |
1b6c0831 L |
32070 | .PHONY: maybe-info-libcc1 info-libcc1 |
32071 | maybe-info-libcc1: | |
32072 | @if libcc1 | |
32073 | maybe-info-libcc1: info-libcc1 | |
d545f33b | 32074 | |
1b6c0831 L |
32075 | info-libcc1: \ |
32076 | configure-libcc1 | |
32077 | @: $(MAKE); $(unstage) | |
32078 | @[ -f ./libcc1/Makefile ] || exit 0; \ | |
32079 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 32080 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1b6c0831 L |
32081 | $(HOST_EXPORTS) \ |
32082 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32083 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32084 | done; \ | |
22121df0 | 32085 | echo "Doing info in libcc1"; \ |
1b6c0831 L |
32086 | (cd $(HOST_SUBDIR)/libcc1 && \ |
32087 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32088 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32089 | "RANLIB=$${RANLIB}" \ | |
32090 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32091 | info) \ | |
32092 | || exit 1 | |
3866be5d | 32093 | |
1b6c0831 | 32094 | @endif libcc1 |
a7254363 | 32095 | |
1b6c0831 L |
32096 | .PHONY: maybe-dvi-libcc1 dvi-libcc1 |
32097 | maybe-dvi-libcc1: | |
32098 | @if libcc1 | |
32099 | maybe-dvi-libcc1: dvi-libcc1 | |
a7254363 | 32100 | |
1b6c0831 L |
32101 | dvi-libcc1: \ |
32102 | configure-libcc1 | |
32103 | @: $(MAKE); $(unstage) | |
32104 | @[ -f ./libcc1/Makefile ] || exit 0; \ | |
32105 | r=`${PWD_COMMAND}`; export r; \ | |
e8a5fa9c | 32106 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1b6c0831 L |
32107 | $(HOST_EXPORTS) \ |
32108 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32109 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32110 | done; \ | |
22121df0 | 32111 | echo "Doing dvi in libcc1"; \ |
1b6c0831 L |
32112 | (cd $(HOST_SUBDIR)/libcc1 && \ |
32113 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32114 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32115 | "RANLIB=$${RANLIB}" \ | |
32116 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32117 | dvi) \ | |
32118 | || exit 1 | |
e8a5fa9c | 32119 | |
1b6c0831 | 32120 | @endif libcc1 |
e8a5fa9c | 32121 | |
1b6c0831 L |
32122 | .PHONY: maybe-pdf-libcc1 pdf-libcc1 |
32123 | maybe-pdf-libcc1: | |
32124 | @if libcc1 | |
32125 | maybe-pdf-libcc1: pdf-libcc1 | |
e8a5fa9c | 32126 | |
1b6c0831 L |
32127 | pdf-libcc1: \ |
32128 | configure-libcc1 | |
32129 | @: $(MAKE); $(unstage) | |
32130 | @[ -f ./libcc1/Makefile ] || exit 0; \ | |
32131 | r=`${PWD_COMMAND}`; export r; \ | |
e8a5fa9c | 32132 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1b6c0831 L |
32133 | $(HOST_EXPORTS) \ |
32134 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32135 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32136 | done; \ | |
22121df0 | 32137 | echo "Doing pdf in libcc1"; \ |
1b6c0831 L |
32138 | (cd $(HOST_SUBDIR)/libcc1 && \ |
32139 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32140 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32141 | "RANLIB=$${RANLIB}" \ | |
32142 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32143 | pdf) \ | |
32144 | || exit 1 | |
e8a5fa9c | 32145 | |
1b6c0831 | 32146 | @endif libcc1 |
e8a5fa9c | 32147 | |
1b6c0831 L |
32148 | .PHONY: maybe-html-libcc1 html-libcc1 |
32149 | maybe-html-libcc1: | |
32150 | @if libcc1 | |
32151 | maybe-html-libcc1: html-libcc1 | |
e8a5fa9c | 32152 | |
1b6c0831 L |
32153 | html-libcc1: \ |
32154 | configure-libcc1 | |
32155 | @: $(MAKE); $(unstage) | |
32156 | @[ -f ./libcc1/Makefile ] || exit 0; \ | |
32157 | r=`${PWD_COMMAND}`; export r; \ | |
e8a5fa9c | 32158 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1b6c0831 L |
32159 | $(HOST_EXPORTS) \ |
32160 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32161 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32162 | done; \ | |
22121df0 | 32163 | echo "Doing html in libcc1"; \ |
1b6c0831 L |
32164 | (cd $(HOST_SUBDIR)/libcc1 && \ |
32165 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32166 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32167 | "RANLIB=$${RANLIB}" \ | |
32168 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32169 | html) \ | |
32170 | || exit 1 | |
e8a5fa9c | 32171 | |
1b6c0831 | 32172 | @endif libcc1 |
e8a5fa9c | 32173 | |
1b6c0831 L |
32174 | .PHONY: maybe-TAGS-libcc1 TAGS-libcc1 |
32175 | maybe-TAGS-libcc1: | |
32176 | @if libcc1 | |
32177 | maybe-TAGS-libcc1: TAGS-libcc1 | |
e8a5fa9c | 32178 | |
1b6c0831 L |
32179 | TAGS-libcc1: \ |
32180 | configure-libcc1 | |
32181 | @: $(MAKE); $(unstage) | |
32182 | @[ -f ./libcc1/Makefile ] || exit 0; \ | |
32183 | r=`${PWD_COMMAND}`; export r; \ | |
e8a5fa9c | 32184 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1b6c0831 L |
32185 | $(HOST_EXPORTS) \ |
32186 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32187 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32188 | done; \ | |
22121df0 | 32189 | echo "Doing TAGS in libcc1"; \ |
1b6c0831 L |
32190 | (cd $(HOST_SUBDIR)/libcc1 && \ |
32191 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32192 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32193 | "RANLIB=$${RANLIB}" \ | |
32194 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32195 | TAGS) \ | |
32196 | || exit 1 | |
32197 | ||
32198 | @endif libcc1 | |
32199 | ||
32200 | .PHONY: maybe-install-info-libcc1 install-info-libcc1 | |
32201 | maybe-install-info-libcc1: | |
32202 | @if libcc1 | |
32203 | maybe-install-info-libcc1: install-info-libcc1 | |
32204 | ||
32205 | install-info-libcc1: \ | |
32206 | configure-libcc1 \ | |
32207 | info-libcc1 | |
32208 | @: $(MAKE); $(unstage) | |
32209 | @[ -f ./libcc1/Makefile ] || exit 0; \ | |
32210 | r=`${PWD_COMMAND}`; export r; \ | |
32211 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32212 | $(HOST_EXPORTS) \ | |
32213 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32214 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32215 | done; \ | |
22121df0 | 32216 | echo "Doing install-info in libcc1"; \ |
1b6c0831 L |
32217 | (cd $(HOST_SUBDIR)/libcc1 && \ |
32218 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32219 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32220 | "RANLIB=$${RANLIB}" \ | |
32221 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32222 | install-info) \ | |
32223 | || exit 1 | |
32224 | ||
32225 | @endif libcc1 | |
32226 | ||
32227 | .PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1 | |
32228 | maybe-install-pdf-libcc1: | |
32229 | @if libcc1 | |
32230 | maybe-install-pdf-libcc1: install-pdf-libcc1 | |
32231 | ||
32232 | install-pdf-libcc1: \ | |
32233 | configure-libcc1 \ | |
32234 | pdf-libcc1 | |
32235 | @: $(MAKE); $(unstage) | |
32236 | @[ -f ./libcc1/Makefile ] || exit 0; \ | |
32237 | r=`${PWD_COMMAND}`; export r; \ | |
32238 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32239 | $(HOST_EXPORTS) \ | |
32240 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32241 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32242 | done; \ | |
22121df0 | 32243 | echo "Doing install-pdf in libcc1"; \ |
1b6c0831 L |
32244 | (cd $(HOST_SUBDIR)/libcc1 && \ |
32245 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32246 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32247 | "RANLIB=$${RANLIB}" \ | |
32248 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32249 | install-pdf) \ | |
32250 | || exit 1 | |
32251 | ||
32252 | @endif libcc1 | |
32253 | ||
32254 | .PHONY: maybe-install-html-libcc1 install-html-libcc1 | |
32255 | maybe-install-html-libcc1: | |
32256 | @if libcc1 | |
32257 | maybe-install-html-libcc1: install-html-libcc1 | |
32258 | ||
32259 | install-html-libcc1: \ | |
32260 | configure-libcc1 \ | |
32261 | html-libcc1 | |
32262 | @: $(MAKE); $(unstage) | |
32263 | @[ -f ./libcc1/Makefile ] || exit 0; \ | |
32264 | r=`${PWD_COMMAND}`; export r; \ | |
32265 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32266 | $(HOST_EXPORTS) \ | |
32267 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32268 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32269 | done; \ | |
22121df0 | 32270 | echo "Doing install-html in libcc1"; \ |
1b6c0831 L |
32271 | (cd $(HOST_SUBDIR)/libcc1 && \ |
32272 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32273 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32274 | "RANLIB=$${RANLIB}" \ | |
32275 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32276 | install-html) \ | |
32277 | || exit 1 | |
32278 | ||
32279 | @endif libcc1 | |
32280 | ||
32281 | .PHONY: maybe-installcheck-libcc1 installcheck-libcc1 | |
32282 | maybe-installcheck-libcc1: | |
32283 | @if libcc1 | |
32284 | maybe-installcheck-libcc1: installcheck-libcc1 | |
32285 | ||
32286 | installcheck-libcc1: \ | |
32287 | configure-libcc1 | |
32288 | @: $(MAKE); $(unstage) | |
32289 | @[ -f ./libcc1/Makefile ] || exit 0; \ | |
32290 | r=`${PWD_COMMAND}`; export r; \ | |
32291 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32292 | $(HOST_EXPORTS) \ | |
32293 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32294 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32295 | done; \ | |
22121df0 | 32296 | echo "Doing installcheck in libcc1"; \ |
1b6c0831 L |
32297 | (cd $(HOST_SUBDIR)/libcc1 && \ |
32298 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32299 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32300 | "RANLIB=$${RANLIB}" \ | |
32301 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32302 | installcheck) \ | |
32303 | || exit 1 | |
32304 | ||
32305 | @endif libcc1 | |
32306 | ||
32307 | .PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1 | |
32308 | maybe-mostlyclean-libcc1: | |
32309 | @if libcc1 | |
32310 | maybe-mostlyclean-libcc1: mostlyclean-libcc1 | |
32311 | ||
32312 | mostlyclean-libcc1: | |
32313 | @: $(MAKE); $(unstage) | |
32314 | @[ -f ./libcc1/Makefile ] || exit 0; \ | |
32315 | r=`${PWD_COMMAND}`; export r; \ | |
32316 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32317 | $(HOST_EXPORTS) \ | |
32318 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32319 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32320 | done; \ | |
22121df0 | 32321 | echo "Doing mostlyclean in libcc1"; \ |
1b6c0831 L |
32322 | (cd $(HOST_SUBDIR)/libcc1 && \ |
32323 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32324 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32325 | "RANLIB=$${RANLIB}" \ | |
32326 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32327 | mostlyclean) \ | |
32328 | || exit 1 | |
32329 | ||
32330 | @endif libcc1 | |
32331 | ||
32332 | .PHONY: maybe-clean-libcc1 clean-libcc1 | |
32333 | maybe-clean-libcc1: | |
32334 | @if libcc1 | |
32335 | maybe-clean-libcc1: clean-libcc1 | |
32336 | ||
32337 | clean-libcc1: | |
32338 | @: $(MAKE); $(unstage) | |
32339 | @[ -f ./libcc1/Makefile ] || exit 0; \ | |
32340 | r=`${PWD_COMMAND}`; export r; \ | |
32341 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32342 | $(HOST_EXPORTS) \ | |
32343 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32344 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32345 | done; \ | |
22121df0 | 32346 | echo "Doing clean in libcc1"; \ |
1b6c0831 L |
32347 | (cd $(HOST_SUBDIR)/libcc1 && \ |
32348 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32349 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32350 | "RANLIB=$${RANLIB}" \ | |
32351 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32352 | clean) \ | |
32353 | || exit 1 | |
32354 | ||
32355 | @endif libcc1 | |
32356 | ||
32357 | .PHONY: maybe-distclean-libcc1 distclean-libcc1 | |
32358 | maybe-distclean-libcc1: | |
32359 | @if libcc1 | |
32360 | maybe-distclean-libcc1: distclean-libcc1 | |
32361 | ||
32362 | distclean-libcc1: | |
32363 | @: $(MAKE); $(unstage) | |
32364 | @[ -f ./libcc1/Makefile ] || exit 0; \ | |
32365 | r=`${PWD_COMMAND}`; export r; \ | |
32366 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32367 | $(HOST_EXPORTS) \ | |
32368 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32369 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32370 | done; \ | |
22121df0 | 32371 | echo "Doing distclean in libcc1"; \ |
1b6c0831 L |
32372 | (cd $(HOST_SUBDIR)/libcc1 && \ |
32373 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32374 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32375 | "RANLIB=$${RANLIB}" \ | |
32376 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32377 | distclean) \ | |
32378 | || exit 1 | |
32379 | ||
32380 | @endif libcc1 | |
32381 | ||
32382 | .PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1 | |
32383 | maybe-maintainer-clean-libcc1: | |
32384 | @if libcc1 | |
32385 | maybe-maintainer-clean-libcc1: maintainer-clean-libcc1 | |
32386 | ||
32387 | maintainer-clean-libcc1: | |
32388 | @: $(MAKE); $(unstage) | |
32389 | @[ -f ./libcc1/Makefile ] || exit 0; \ | |
32390 | r=`${PWD_COMMAND}`; export r; \ | |
32391 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32392 | $(HOST_EXPORTS) \ | |
32393 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32394 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32395 | done; \ | |
22121df0 | 32396 | echo "Doing maintainer-clean in libcc1"; \ |
1b6c0831 L |
32397 | (cd $(HOST_SUBDIR)/libcc1 && \ |
32398 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32399 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32400 | "RANLIB=$${RANLIB}" \ | |
32401 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32402 | maintainer-clean) \ | |
32403 | || exit 1 | |
32404 | ||
32405 | @endif libcc1 | |
32406 | ||
32407 | ||
32408 | ||
32409 | .PHONY: configure-gotools maybe-configure-gotools | |
32410 | maybe-configure-gotools: | |
32411 | @if gcc-bootstrap | |
32412 | configure-gotools: stage_current | |
32413 | @endif gcc-bootstrap | |
32414 | @if gotools | |
32415 | maybe-configure-gotools: configure-gotools | |
32416 | configure-gotools: | |
32417 | @: $(MAKE); $(unstage) | |
32418 | @r=`${PWD_COMMAND}`; export r; \ | |
32419 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32420 | test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \ | |
22121df0 | 32421 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools; \ |
1b6c0831 L |
32422 | $(HOST_EXPORTS) \ |
32423 | echo Configuring in $(HOST_SUBDIR)/gotools; \ | |
32424 | cd "$(HOST_SUBDIR)/gotools" || exit 1; \ | |
32425 | case $(srcdir) in \ | |
32426 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
32427 | *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \ | |
32428 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
32429 | esac; \ | |
32430 | module_srcdir=gotools; \ | |
32431 | $(SHELL) \ | |
32432 | $$s/$$module_srcdir/configure \ | |
32433 | --srcdir=$${topdir}/$$module_srcdir \ | |
32434 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ | |
32435 | --target=${target_alias} \ | |
32436 | || exit 1 | |
32437 | @endif gotools | |
32438 | ||
32439 | ||
32440 | ||
32441 | ||
32442 | ||
32443 | .PHONY: all-gotools maybe-all-gotools | |
32444 | maybe-all-gotools: | |
32445 | @if gcc-bootstrap | |
32446 | all-gotools: stage_current | |
32447 | @endif gcc-bootstrap | |
32448 | @if gotools | |
32449 | TARGET-gotools=all | |
32450 | maybe-all-gotools: all-gotools | |
32451 | all-gotools: configure-gotools | |
32452 | @: $(MAKE); $(unstage) | |
32453 | @r=`${PWD_COMMAND}`; export r; \ | |
32454 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32455 | $(HOST_EXPORTS) \ | |
32456 | (cd $(HOST_SUBDIR)/gotools && \ | |
32457 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \ | |
32458 | $(TARGET-gotools)) | |
32459 | @endif gotools | |
32460 | ||
32461 | ||
32462 | ||
32463 | ||
32464 | .PHONY: check-gotools maybe-check-gotools | |
32465 | maybe-check-gotools: | |
32466 | @if gotools | |
32467 | maybe-check-gotools: check-gotools | |
32468 | ||
32469 | check-gotools: | |
32470 | @: $(MAKE); $(unstage) | |
32471 | @r=`${PWD_COMMAND}`; export r; \ | |
32472 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
f91ca6bc | 32473 | $(HOST_EXPORTS) \ |
1b6c0831 L |
32474 | (cd $(HOST_SUBDIR)/gotools && \ |
32475 | $(MAKE) $(FLAGS_TO_PASS) check) | |
32476 | ||
32477 | @endif gotools | |
32478 | ||
32479 | .PHONY: install-gotools maybe-install-gotools | |
32480 | maybe-install-gotools: | |
32481 | @if gotools | |
32482 | maybe-install-gotools: install-gotools | |
32483 | ||
32484 | install-gotools: installdirs | |
32485 | @: $(MAKE); $(unstage) | |
32486 | @r=`${PWD_COMMAND}`; export r; \ | |
32487 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32488 | $(HOST_EXPORTS) \ | |
32489 | (cd $(HOST_SUBDIR)/gotools && \ | |
32490 | $(MAKE) $(FLAGS_TO_PASS) install) | |
32491 | ||
32492 | @endif gotools | |
32493 | ||
32494 | .PHONY: install-strip-gotools maybe-install-strip-gotools | |
32495 | maybe-install-strip-gotools: | |
32496 | @if gotools | |
32497 | maybe-install-strip-gotools: install-strip-gotools | |
32498 | ||
32499 | install-strip-gotools: installdirs | |
32500 | @: $(MAKE); $(unstage) | |
32501 | @r=`${PWD_COMMAND}`; export r; \ | |
32502 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32503 | $(HOST_EXPORTS) \ | |
32504 | (cd $(HOST_SUBDIR)/gotools && \ | |
32505 | $(MAKE) $(FLAGS_TO_PASS) install-strip) | |
32506 | ||
32507 | @endif gotools | |
32508 | ||
32509 | # Other targets (info, dvi, pdf, etc.) | |
32510 | ||
32511 | .PHONY: maybe-info-gotools info-gotools | |
32512 | maybe-info-gotools: | |
32513 | @if gotools | |
32514 | maybe-info-gotools: info-gotools | |
32515 | ||
32516 | info-gotools: \ | |
32517 | configure-gotools | |
32518 | @: $(MAKE); $(unstage) | |
32519 | @[ -f ./gotools/Makefile ] || exit 0; \ | |
32520 | r=`${PWD_COMMAND}`; export r; \ | |
32521 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32522 | $(HOST_EXPORTS) \ | |
32523 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32524 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32525 | done; \ | |
22121df0 | 32526 | echo "Doing info in gotools"; \ |
1b6c0831 L |
32527 | (cd $(HOST_SUBDIR)/gotools && \ |
32528 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32529 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32530 | "RANLIB=$${RANLIB}" \ | |
32531 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32532 | info) \ | |
32533 | || exit 1 | |
32534 | ||
32535 | @endif gotools | |
32536 | ||
32537 | .PHONY: maybe-dvi-gotools dvi-gotools | |
32538 | maybe-dvi-gotools: | |
32539 | @if gotools | |
32540 | maybe-dvi-gotools: dvi-gotools | |
32541 | ||
32542 | dvi-gotools: \ | |
32543 | configure-gotools | |
32544 | @: $(MAKE); $(unstage) | |
32545 | @[ -f ./gotools/Makefile ] || exit 0; \ | |
32546 | r=`${PWD_COMMAND}`; export r; \ | |
32547 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32548 | $(HOST_EXPORTS) \ | |
32549 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32550 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32551 | done; \ | |
22121df0 | 32552 | echo "Doing dvi in gotools"; \ |
1b6c0831 L |
32553 | (cd $(HOST_SUBDIR)/gotools && \ |
32554 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32555 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32556 | "RANLIB=$${RANLIB}" \ | |
32557 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32558 | dvi) \ | |
32559 | || exit 1 | |
32560 | ||
32561 | @endif gotools | |
32562 | ||
32563 | .PHONY: maybe-pdf-gotools pdf-gotools | |
32564 | maybe-pdf-gotools: | |
32565 | @if gotools | |
32566 | maybe-pdf-gotools: pdf-gotools | |
32567 | ||
32568 | pdf-gotools: \ | |
32569 | configure-gotools | |
32570 | @: $(MAKE); $(unstage) | |
32571 | @[ -f ./gotools/Makefile ] || exit 0; \ | |
32572 | r=`${PWD_COMMAND}`; export r; \ | |
32573 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32574 | $(HOST_EXPORTS) \ | |
32575 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32576 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32577 | done; \ | |
22121df0 | 32578 | echo "Doing pdf in gotools"; \ |
1b6c0831 L |
32579 | (cd $(HOST_SUBDIR)/gotools && \ |
32580 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32581 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32582 | "RANLIB=$${RANLIB}" \ | |
32583 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32584 | pdf) \ | |
32585 | || exit 1 | |
32586 | ||
32587 | @endif gotools | |
32588 | ||
32589 | .PHONY: maybe-html-gotools html-gotools | |
32590 | maybe-html-gotools: | |
32591 | @if gotools | |
32592 | maybe-html-gotools: html-gotools | |
32593 | ||
32594 | html-gotools: \ | |
32595 | configure-gotools | |
32596 | @: $(MAKE); $(unstage) | |
32597 | @[ -f ./gotools/Makefile ] || exit 0; \ | |
32598 | r=`${PWD_COMMAND}`; export r; \ | |
32599 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32600 | $(HOST_EXPORTS) \ | |
32601 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32602 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32603 | done; \ | |
22121df0 | 32604 | echo "Doing html in gotools"; \ |
1b6c0831 L |
32605 | (cd $(HOST_SUBDIR)/gotools && \ |
32606 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32607 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32608 | "RANLIB=$${RANLIB}" \ | |
32609 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32610 | html) \ | |
32611 | || exit 1 | |
32612 | ||
32613 | @endif gotools | |
32614 | ||
32615 | .PHONY: maybe-TAGS-gotools TAGS-gotools | |
32616 | maybe-TAGS-gotools: | |
32617 | @if gotools | |
32618 | maybe-TAGS-gotools: TAGS-gotools | |
32619 | ||
32620 | TAGS-gotools: \ | |
32621 | configure-gotools | |
32622 | @: $(MAKE); $(unstage) | |
32623 | @[ -f ./gotools/Makefile ] || exit 0; \ | |
32624 | r=`${PWD_COMMAND}`; export r; \ | |
32625 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32626 | $(HOST_EXPORTS) \ | |
32627 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32628 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32629 | done; \ | |
22121df0 | 32630 | echo "Doing TAGS in gotools"; \ |
1b6c0831 L |
32631 | (cd $(HOST_SUBDIR)/gotools && \ |
32632 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32633 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32634 | "RANLIB=$${RANLIB}" \ | |
32635 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32636 | TAGS) \ | |
32637 | || exit 1 | |
32638 | ||
32639 | @endif gotools | |
32640 | ||
32641 | .PHONY: maybe-install-info-gotools install-info-gotools | |
32642 | maybe-install-info-gotools: | |
32643 | @if gotools | |
32644 | maybe-install-info-gotools: install-info-gotools | |
32645 | ||
32646 | install-info-gotools: \ | |
32647 | configure-gotools \ | |
32648 | info-gotools | |
32649 | @: $(MAKE); $(unstage) | |
32650 | @[ -f ./gotools/Makefile ] || exit 0; \ | |
32651 | r=`${PWD_COMMAND}`; export r; \ | |
32652 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32653 | $(HOST_EXPORTS) \ | |
32654 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32655 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32656 | done; \ | |
22121df0 | 32657 | echo "Doing install-info in gotools"; \ |
1b6c0831 L |
32658 | (cd $(HOST_SUBDIR)/gotools && \ |
32659 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32660 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32661 | "RANLIB=$${RANLIB}" \ | |
32662 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32663 | install-info) \ | |
32664 | || exit 1 | |
32665 | ||
32666 | @endif gotools | |
32667 | ||
32668 | .PHONY: maybe-install-pdf-gotools install-pdf-gotools | |
32669 | maybe-install-pdf-gotools: | |
32670 | @if gotools | |
32671 | maybe-install-pdf-gotools: install-pdf-gotools | |
32672 | ||
32673 | install-pdf-gotools: \ | |
32674 | configure-gotools \ | |
32675 | pdf-gotools | |
32676 | @: $(MAKE); $(unstage) | |
32677 | @[ -f ./gotools/Makefile ] || exit 0; \ | |
32678 | r=`${PWD_COMMAND}`; export r; \ | |
32679 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32680 | $(HOST_EXPORTS) \ | |
32681 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32682 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32683 | done; \ | |
22121df0 | 32684 | echo "Doing install-pdf in gotools"; \ |
1b6c0831 L |
32685 | (cd $(HOST_SUBDIR)/gotools && \ |
32686 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32687 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32688 | "RANLIB=$${RANLIB}" \ | |
32689 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32690 | install-pdf) \ | |
32691 | || exit 1 | |
32692 | ||
32693 | @endif gotools | |
32694 | ||
32695 | .PHONY: maybe-install-html-gotools install-html-gotools | |
32696 | maybe-install-html-gotools: | |
32697 | @if gotools | |
32698 | maybe-install-html-gotools: install-html-gotools | |
32699 | ||
32700 | install-html-gotools: \ | |
32701 | configure-gotools \ | |
32702 | html-gotools | |
32703 | @: $(MAKE); $(unstage) | |
32704 | @[ -f ./gotools/Makefile ] || exit 0; \ | |
32705 | r=`${PWD_COMMAND}`; export r; \ | |
32706 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32707 | $(HOST_EXPORTS) \ | |
32708 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32709 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32710 | done; \ | |
22121df0 | 32711 | echo "Doing install-html in gotools"; \ |
1b6c0831 L |
32712 | (cd $(HOST_SUBDIR)/gotools && \ |
32713 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32714 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32715 | "RANLIB=$${RANLIB}" \ | |
32716 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32717 | install-html) \ | |
32718 | || exit 1 | |
32719 | ||
32720 | @endif gotools | |
32721 | ||
32722 | .PHONY: maybe-installcheck-gotools installcheck-gotools | |
32723 | maybe-installcheck-gotools: | |
32724 | @if gotools | |
32725 | maybe-installcheck-gotools: installcheck-gotools | |
32726 | ||
32727 | installcheck-gotools: \ | |
32728 | configure-gotools | |
32729 | @: $(MAKE); $(unstage) | |
32730 | @[ -f ./gotools/Makefile ] || exit 0; \ | |
32731 | r=`${PWD_COMMAND}`; export r; \ | |
32732 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32733 | $(HOST_EXPORTS) \ | |
32734 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32735 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32736 | done; \ | |
22121df0 | 32737 | echo "Doing installcheck in gotools"; \ |
1b6c0831 L |
32738 | (cd $(HOST_SUBDIR)/gotools && \ |
32739 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32740 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32741 | "RANLIB=$${RANLIB}" \ | |
32742 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32743 | installcheck) \ | |
32744 | || exit 1 | |
32745 | ||
32746 | @endif gotools | |
32747 | ||
32748 | .PHONY: maybe-mostlyclean-gotools mostlyclean-gotools | |
32749 | maybe-mostlyclean-gotools: | |
32750 | @if gotools | |
32751 | maybe-mostlyclean-gotools: mostlyclean-gotools | |
32752 | ||
32753 | mostlyclean-gotools: | |
32754 | @: $(MAKE); $(unstage) | |
32755 | @[ -f ./gotools/Makefile ] || exit 0; \ | |
32756 | r=`${PWD_COMMAND}`; export r; \ | |
32757 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32758 | $(HOST_EXPORTS) \ | |
32759 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32760 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32761 | done; \ | |
22121df0 | 32762 | echo "Doing mostlyclean in gotools"; \ |
1b6c0831 L |
32763 | (cd $(HOST_SUBDIR)/gotools && \ |
32764 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32765 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32766 | "RANLIB=$${RANLIB}" \ | |
32767 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32768 | mostlyclean) \ | |
32769 | || exit 1 | |
32770 | ||
32771 | @endif gotools | |
32772 | ||
32773 | .PHONY: maybe-clean-gotools clean-gotools | |
32774 | maybe-clean-gotools: | |
32775 | @if gotools | |
32776 | maybe-clean-gotools: clean-gotools | |
32777 | ||
32778 | clean-gotools: | |
32779 | @: $(MAKE); $(unstage) | |
32780 | @[ -f ./gotools/Makefile ] || exit 0; \ | |
32781 | r=`${PWD_COMMAND}`; export r; \ | |
32782 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32783 | $(HOST_EXPORTS) \ | |
32784 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32785 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32786 | done; \ | |
22121df0 | 32787 | echo "Doing clean in gotools"; \ |
1b6c0831 L |
32788 | (cd $(HOST_SUBDIR)/gotools && \ |
32789 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32790 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32791 | "RANLIB=$${RANLIB}" \ | |
32792 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32793 | clean) \ | |
32794 | || exit 1 | |
32795 | ||
32796 | @endif gotools | |
32797 | ||
32798 | .PHONY: maybe-distclean-gotools distclean-gotools | |
32799 | maybe-distclean-gotools: | |
32800 | @if gotools | |
32801 | maybe-distclean-gotools: distclean-gotools | |
32802 | ||
32803 | distclean-gotools: | |
32804 | @: $(MAKE); $(unstage) | |
32805 | @[ -f ./gotools/Makefile ] || exit 0; \ | |
32806 | r=`${PWD_COMMAND}`; export r; \ | |
32807 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32808 | $(HOST_EXPORTS) \ | |
32809 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32810 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32811 | done; \ | |
22121df0 | 32812 | echo "Doing distclean in gotools"; \ |
1b6c0831 L |
32813 | (cd $(HOST_SUBDIR)/gotools && \ |
32814 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32815 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32816 | "RANLIB=$${RANLIB}" \ | |
32817 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32818 | distclean) \ | |
32819 | || exit 1 | |
32820 | ||
32821 | @endif gotools | |
32822 | ||
32823 | .PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools | |
32824 | maybe-maintainer-clean-gotools: | |
32825 | @if gotools | |
32826 | maybe-maintainer-clean-gotools: maintainer-clean-gotools | |
32827 | ||
32828 | maintainer-clean-gotools: | |
32829 | @: $(MAKE); $(unstage) | |
32830 | @[ -f ./gotools/Makefile ] || exit 0; \ | |
32831 | r=`${PWD_COMMAND}`; export r; \ | |
32832 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32833 | $(HOST_EXPORTS) \ | |
32834 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
32835 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32836 | done; \ | |
22121df0 | 32837 | echo "Doing maintainer-clean in gotools"; \ |
1b6c0831 L |
32838 | (cd $(HOST_SUBDIR)/gotools && \ |
32839 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32840 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32841 | "RANLIB=$${RANLIB}" \ | |
32842 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
32843 | maintainer-clean) \ | |
32844 | || exit 1 | |
32845 | ||
32846 | @endif gotools | |
32847 | ||
32848 | ||
32849 | ||
32850 | # --------------------------------------- | |
32851 | # Modules which run on the target machine | |
32852 | # --------------------------------------- | |
32853 | ||
32854 | ||
32855 | ||
32856 | ||
32857 | .PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3 | |
32858 | maybe-configure-target-libstdc++-v3: | |
32859 | @if gcc-bootstrap | |
32860 | configure-target-libstdc++-v3: stage_current | |
32861 | @endif gcc-bootstrap | |
32862 | @if target-libstdc++-v3 | |
32863 | maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3 | |
32864 | configure-target-libstdc++-v3: | |
32865 | @r=`${PWD_COMMAND}`; export r; \ | |
32866 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32867 | echo "Checking multilib configuration for libstdc++-v3..."; \ | |
22121df0 L |
32868 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \ |
32869 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \ | |
1b6c0831 L |
32870 | if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ |
32871 | if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ | |
32872 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \ | |
32873 | else \ | |
32874 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \ | |
32875 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
32876 | fi; \ | |
32877 | else \ | |
32878 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
32879 | fi; \ | |
32880 | test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \ | |
22121df0 | 32881 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \ |
1b6c0831 L |
32882 | $(RAW_CXX_TARGET_EXPORTS) \ |
32883 | echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \ | |
32884 | cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \ | |
32885 | case $(srcdir) in \ | |
32886 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
32887 | *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \ | |
32888 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
32889 | esac; \ | |
32890 | module_srcdir=libstdc++-v3; \ | |
32891 | rm -f no-such-file || : ; \ | |
32892 | CONFIG_SITE=no-such-file $(SHELL) \ | |
32893 | $$s/$$module_srcdir/configure \ | |
32894 | --srcdir=$${topdir}/$$module_srcdir \ | |
32895 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
32896 | --target=${target_alias} \ | |
32897 | || exit 1 | |
32898 | @endif target-libstdc++-v3 | |
32899 | ||
32900 | ||
32901 | ||
32902 | .PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3 | |
32903 | maybe-configure-stage1-target-libstdc++-v3: | |
32904 | @if target-libstdc++-v3-bootstrap | |
32905 | maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3 | |
32906 | configure-stage1-target-libstdc++-v3: | |
32907 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
32908 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 | |
32909 | @r=`${PWD_COMMAND}`; export r; \ | |
32910 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32911 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
32912 | echo "Checking multilib configuration for libstdc++-v3..."; \ | |
22121df0 | 32913 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
32914 | if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ |
32915 | if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ | |
32916 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \ | |
32917 | else \ | |
32918 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \ | |
32919 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
32920 | fi; \ | |
32921 | else \ | |
32922 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
32923 | fi; \ | |
32924 | test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \ | |
32925 | $(RAW_CXX_TARGET_EXPORTS) \ | |
32926 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
32927 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
32928 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
32929 | echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3; \ |
32930 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \ | |
1b6c0831 L |
32931 | cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \ |
32932 | case $(srcdir) in \ | |
32933 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
32934 | *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \ | |
32935 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
32936 | esac; \ | |
32937 | module_srcdir=libstdc++-v3; \ | |
32938 | $(SHELL) $$s/$$module_srcdir/configure \ | |
32939 | --srcdir=$${topdir}/$$module_srcdir \ | |
32940 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
32941 | --target=${target_alias} \ | |
32942 | \ | |
32943 | $(STAGE1_CONFIGURE_FLAGS) | |
32944 | @endif target-libstdc++-v3-bootstrap | |
32945 | ||
32946 | .PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3 | |
32947 | maybe-configure-stage2-target-libstdc++-v3: | |
32948 | @if target-libstdc++-v3-bootstrap | |
32949 | maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3 | |
32950 | configure-stage2-target-libstdc++-v3: | |
32951 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
32952 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 | |
32953 | @r=`${PWD_COMMAND}`; export r; \ | |
32954 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32955 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
32956 | echo "Checking multilib configuration for libstdc++-v3..."; \ | |
22121df0 | 32957 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
32958 | if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ |
32959 | if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ | |
32960 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \ | |
32961 | else \ | |
32962 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \ | |
32963 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
32964 | fi; \ | |
32965 | else \ | |
32966 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
32967 | fi; \ | |
32968 | test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \ | |
32969 | $(RAW_CXX_TARGET_EXPORTS) \ | |
32970 | \ | |
32971 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
32972 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
32973 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
32974 | echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3; \ |
32975 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \ | |
1b6c0831 L |
32976 | cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \ |
32977 | case $(srcdir) in \ | |
32978 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
32979 | *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \ | |
32980 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
32981 | esac; \ | |
32982 | module_srcdir=libstdc++-v3; \ | |
32983 | $(SHELL) $$s/$$module_srcdir/configure \ | |
32984 | --srcdir=$${topdir}/$$module_srcdir \ | |
32985 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
32986 | --target=${target_alias} \ | |
22121df0 | 32987 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
32988 | $(STAGE2_CONFIGURE_FLAGS) |
32989 | @endif target-libstdc++-v3-bootstrap | |
32990 | ||
32991 | .PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3 | |
32992 | maybe-configure-stage3-target-libstdc++-v3: | |
32993 | @if target-libstdc++-v3-bootstrap | |
32994 | maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3 | |
32995 | configure-stage3-target-libstdc++-v3: | |
32996 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
32997 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 | |
32998 | @r=`${PWD_COMMAND}`; export r; \ | |
32999 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33000 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
33001 | echo "Checking multilib configuration for libstdc++-v3..."; \ | |
22121df0 | 33002 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
33003 | if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ |
33004 | if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ | |
33005 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \ | |
33006 | else \ | |
33007 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \ | |
33008 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
33009 | fi; \ | |
33010 | else \ | |
33011 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
33012 | fi; \ | |
33013 | test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \ | |
33014 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33015 | \ | |
33016 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
33017 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
33018 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
33019 | echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3; \ |
33020 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \ | |
1b6c0831 L |
33021 | cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \ |
33022 | case $(srcdir) in \ | |
33023 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
33024 | *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \ | |
33025 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
33026 | esac; \ | |
33027 | module_srcdir=libstdc++-v3; \ | |
33028 | $(SHELL) $$s/$$module_srcdir/configure \ | |
33029 | --srcdir=$${topdir}/$$module_srcdir \ | |
33030 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
33031 | --target=${target_alias} \ | |
22121df0 | 33032 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
33033 | $(STAGE3_CONFIGURE_FLAGS) |
33034 | @endif target-libstdc++-v3-bootstrap | |
33035 | ||
33036 | .PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3 | |
33037 | maybe-configure-stage4-target-libstdc++-v3: | |
33038 | @if target-libstdc++-v3-bootstrap | |
33039 | maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3 | |
33040 | configure-stage4-target-libstdc++-v3: | |
33041 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
33042 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 | |
33043 | @r=`${PWD_COMMAND}`; export r; \ | |
33044 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33045 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
33046 | echo "Checking multilib configuration for libstdc++-v3..."; \ | |
22121df0 | 33047 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
33048 | if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ |
33049 | if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ | |
33050 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \ | |
33051 | else \ | |
33052 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \ | |
33053 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
33054 | fi; \ | |
33055 | else \ | |
33056 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
33057 | fi; \ | |
33058 | test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \ | |
33059 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33060 | \ | |
33061 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
33062 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
33063 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
33064 | echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3; \ |
33065 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \ | |
1b6c0831 L |
33066 | cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \ |
33067 | case $(srcdir) in \ | |
33068 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
33069 | *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \ | |
33070 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
33071 | esac; \ | |
33072 | module_srcdir=libstdc++-v3; \ | |
33073 | $(SHELL) $$s/$$module_srcdir/configure \ | |
33074 | --srcdir=$${topdir}/$$module_srcdir \ | |
33075 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
33076 | --target=${target_alias} \ | |
22121df0 | 33077 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
33078 | $(STAGE4_CONFIGURE_FLAGS) |
33079 | @endif target-libstdc++-v3-bootstrap | |
33080 | ||
33081 | .PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3 | |
33082 | maybe-configure-stageprofile-target-libstdc++-v3: | |
33083 | @if target-libstdc++-v3-bootstrap | |
33084 | maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3 | |
33085 | configure-stageprofile-target-libstdc++-v3: | |
33086 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
33087 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 | |
33088 | @r=`${PWD_COMMAND}`; export r; \ | |
33089 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33090 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
33091 | echo "Checking multilib configuration for libstdc++-v3..."; \ | |
22121df0 | 33092 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
33093 | if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ |
33094 | if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ | |
33095 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \ | |
33096 | else \ | |
33097 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \ | |
33098 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
33099 | fi; \ | |
33100 | else \ | |
33101 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
33102 | fi; \ | |
33103 | test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \ | |
33104 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33105 | \ | |
33106 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
33107 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
33108 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
33109 | echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3; \ |
33110 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \ | |
1b6c0831 L |
33111 | cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \ |
33112 | case $(srcdir) in \ | |
33113 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
33114 | *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \ | |
33115 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
33116 | esac; \ | |
33117 | module_srcdir=libstdc++-v3; \ | |
33118 | $(SHELL) $$s/$$module_srcdir/configure \ | |
33119 | --srcdir=$${topdir}/$$module_srcdir \ | |
33120 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
33121 | --target=${target_alias} \ | |
22121df0 | 33122 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
33123 | $(STAGEprofile_CONFIGURE_FLAGS) |
33124 | @endif target-libstdc++-v3-bootstrap | |
33125 | ||
33126 | .PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3 | |
33127 | maybe-configure-stagefeedback-target-libstdc++-v3: | |
33128 | @if target-libstdc++-v3-bootstrap | |
33129 | maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3 | |
33130 | configure-stagefeedback-target-libstdc++-v3: | |
33131 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
33132 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 | |
33133 | @r=`${PWD_COMMAND}`; export r; \ | |
33134 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33135 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
33136 | echo "Checking multilib configuration for libstdc++-v3..."; \ | |
22121df0 | 33137 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
33138 | if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ |
33139 | if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ | |
33140 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \ | |
33141 | else \ | |
33142 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \ | |
33143 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
33144 | fi; \ | |
33145 | else \ | |
33146 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
33147 | fi; \ | |
33148 | test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \ | |
33149 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33150 | \ | |
33151 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
33152 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
33153 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
33154 | echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3; \ |
33155 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \ | |
1b6c0831 L |
33156 | cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \ |
33157 | case $(srcdir) in \ | |
33158 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
33159 | *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \ | |
33160 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
33161 | esac; \ | |
33162 | module_srcdir=libstdc++-v3; \ | |
33163 | $(SHELL) $$s/$$module_srcdir/configure \ | |
33164 | --srcdir=$${topdir}/$$module_srcdir \ | |
33165 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
33166 | --target=${target_alias} \ | |
22121df0 | 33167 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
33168 | $(STAGEfeedback_CONFIGURE_FLAGS) |
33169 | @endif target-libstdc++-v3-bootstrap | |
33170 | ||
33171 | ||
33172 | ||
33173 | ||
33174 | ||
33175 | .PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3 | |
33176 | maybe-all-target-libstdc++-v3: | |
33177 | @if gcc-bootstrap | |
33178 | all-target-libstdc++-v3: stage_current | |
33179 | @endif gcc-bootstrap | |
33180 | @if target-libstdc++-v3 | |
33181 | TARGET-target-libstdc++-v3=all | |
33182 | maybe-all-target-libstdc++-v3: all-target-libstdc++-v3 | |
33183 | all-target-libstdc++-v3: configure-target-libstdc++-v3 | |
33184 | @r=`${PWD_COMMAND}`; export r; \ | |
33185 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33186 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33187 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33188 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
33189 | $(TARGET-target-libstdc++-v3)) | |
33190 | @endif target-libstdc++-v3 | |
33191 | ||
33192 | ||
33193 | ||
33194 | .PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3 | |
33195 | .PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3 | |
33196 | maybe-all-stage1-target-libstdc++-v3: | |
33197 | maybe-clean-stage1-target-libstdc++-v3: | |
33198 | @if target-libstdc++-v3-bootstrap | |
33199 | maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3 | |
33200 | all-stage1: all-stage1-target-libstdc++-v3 | |
33201 | TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3) | |
33202 | all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3 | |
33203 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
33204 | @r=`${PWD_COMMAND}`; export r; \ | |
33205 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33206 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
33207 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33208 | cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
05a13254 | 33209 | \ |
1b6c0831 L |
33210 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
33211 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
33212 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
33213 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
33214 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
33215 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
33216 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
33217 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
33218 | \ | |
05a13254 | 33219 | TFLAGS="$(STAGE1_TFLAGS)" \ |
1b6c0831 L |
33220 | $(TARGET-stage1-target-libstdc++-v3) |
33221 | ||
33222 | maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3 | |
33223 | clean-stage1: clean-stage1-target-libstdc++-v3 | |
33224 | clean-stage1-target-libstdc++-v3: | |
33225 | @if [ $(current_stage) = stage1 ]; then \ | |
33226 | [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ | |
33227 | else \ | |
33228 | [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \ | |
33229 | $(MAKE) stage1-start; \ | |
33230 | fi; \ | |
33231 | cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33232 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
33233 | clean | |
33234 | @endif target-libstdc++-v3-bootstrap | |
33235 | ||
33236 | ||
33237 | .PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3 | |
33238 | .PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3 | |
33239 | maybe-all-stage2-target-libstdc++-v3: | |
33240 | maybe-clean-stage2-target-libstdc++-v3: | |
33241 | @if target-libstdc++-v3-bootstrap | |
33242 | maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3 | |
33243 | all-stage2: all-stage2-target-libstdc++-v3 | |
33244 | TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3) | |
33245 | all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3 | |
33246 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
33247 | @r=`${PWD_COMMAND}`; export r; \ | |
33248 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33249 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
33250 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33251 | \ | |
33252 | cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
05a13254 | 33253 | \ |
1b6c0831 L |
33254 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
33255 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
33256 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
33257 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
33258 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
33259 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
33260 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
33261 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 33262 | TFLAGS="$(STAGE2_TFLAGS)" \ |
1b6c0831 L |
33263 | $(TARGET-stage2-target-libstdc++-v3) |
33264 | ||
33265 | maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3 | |
33266 | clean-stage2: clean-stage2-target-libstdc++-v3 | |
33267 | clean-stage2-target-libstdc++-v3: | |
33268 | @if [ $(current_stage) = stage2 ]; then \ | |
33269 | [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ | |
33270 | else \ | |
33271 | [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \ | |
33272 | $(MAKE) stage2-start; \ | |
33273 | fi; \ | |
33274 | cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33275 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean | |
33276 | @endif target-libstdc++-v3-bootstrap | |
33277 | ||
33278 | ||
33279 | .PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3 | |
33280 | .PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3 | |
33281 | maybe-all-stage3-target-libstdc++-v3: | |
33282 | maybe-clean-stage3-target-libstdc++-v3: | |
33283 | @if target-libstdc++-v3-bootstrap | |
33284 | maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3 | |
33285 | all-stage3: all-stage3-target-libstdc++-v3 | |
33286 | TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3) | |
33287 | all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3 | |
33288 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
33289 | @r=`${PWD_COMMAND}`; export r; \ | |
33290 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33291 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
33292 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33293 | \ | |
33294 | cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
05a13254 | 33295 | \ |
1b6c0831 L |
33296 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
33297 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
33298 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
33299 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
33300 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
33301 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
33302 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
33303 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 33304 | TFLAGS="$(STAGE3_TFLAGS)" \ |
1b6c0831 L |
33305 | $(TARGET-stage3-target-libstdc++-v3) |
33306 | ||
33307 | maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3 | |
33308 | clean-stage3: clean-stage3-target-libstdc++-v3 | |
33309 | clean-stage3-target-libstdc++-v3: | |
33310 | @if [ $(current_stage) = stage3 ]; then \ | |
33311 | [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ | |
33312 | else \ | |
33313 | [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \ | |
33314 | $(MAKE) stage3-start; \ | |
33315 | fi; \ | |
33316 | cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33317 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean | |
33318 | @endif target-libstdc++-v3-bootstrap | |
33319 | ||
33320 | ||
33321 | .PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3 | |
33322 | .PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3 | |
33323 | maybe-all-stage4-target-libstdc++-v3: | |
33324 | maybe-clean-stage4-target-libstdc++-v3: | |
33325 | @if target-libstdc++-v3-bootstrap | |
33326 | maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3 | |
33327 | all-stage4: all-stage4-target-libstdc++-v3 | |
33328 | TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3) | |
33329 | all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3 | |
33330 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
33331 | @r=`${PWD_COMMAND}`; export r; \ | |
33332 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33333 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
33334 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33335 | \ | |
33336 | cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
05a13254 | 33337 | \ |
1b6c0831 L |
33338 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
33339 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
33340 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
33341 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
33342 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
33343 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
33344 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
33345 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 33346 | TFLAGS="$(STAGE4_TFLAGS)" \ |
1b6c0831 L |
33347 | $(TARGET-stage4-target-libstdc++-v3) |
33348 | ||
33349 | maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3 | |
33350 | clean-stage4: clean-stage4-target-libstdc++-v3 | |
33351 | clean-stage4-target-libstdc++-v3: | |
33352 | @if [ $(current_stage) = stage4 ]; then \ | |
33353 | [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ | |
33354 | else \ | |
33355 | [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \ | |
33356 | $(MAKE) stage4-start; \ | |
33357 | fi; \ | |
33358 | cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33359 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean | |
33360 | @endif target-libstdc++-v3-bootstrap | |
33361 | ||
33362 | ||
33363 | .PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3 | |
33364 | .PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3 | |
33365 | maybe-all-stageprofile-target-libstdc++-v3: | |
33366 | maybe-clean-stageprofile-target-libstdc++-v3: | |
33367 | @if target-libstdc++-v3-bootstrap | |
33368 | maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3 | |
33369 | all-stageprofile: all-stageprofile-target-libstdc++-v3 | |
33370 | TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3) | |
33371 | all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3 | |
33372 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
33373 | @r=`${PWD_COMMAND}`; export r; \ | |
33374 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33375 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
33376 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33377 | \ | |
33378 | cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
05a13254 | 33379 | \ |
1b6c0831 L |
33380 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
33381 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
33382 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
33383 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
33384 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
33385 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
33386 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
33387 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 33388 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
1b6c0831 L |
33389 | $(TARGET-stageprofile-target-libstdc++-v3) |
33390 | ||
33391 | maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3 | |
33392 | clean-stageprofile: clean-stageprofile-target-libstdc++-v3 | |
33393 | clean-stageprofile-target-libstdc++-v3: | |
33394 | @if [ $(current_stage) = stageprofile ]; then \ | |
33395 | [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ | |
33396 | else \ | |
33397 | [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \ | |
33398 | $(MAKE) stageprofile-start; \ | |
33399 | fi; \ | |
33400 | cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33401 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean | |
33402 | @endif target-libstdc++-v3-bootstrap | |
33403 | ||
33404 | ||
33405 | .PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3 | |
33406 | .PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3 | |
33407 | maybe-all-stagefeedback-target-libstdc++-v3: | |
33408 | maybe-clean-stagefeedback-target-libstdc++-v3: | |
33409 | @if target-libstdc++-v3-bootstrap | |
33410 | maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3 | |
33411 | all-stagefeedback: all-stagefeedback-target-libstdc++-v3 | |
33412 | TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3) | |
33413 | all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3 | |
33414 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
33415 | @r=`${PWD_COMMAND}`; export r; \ | |
33416 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33417 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
33418 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33419 | \ | |
33420 | cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
05a13254 | 33421 | \ |
1b6c0831 L |
33422 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
33423 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
33424 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
33425 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
33426 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
33427 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
33428 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
33429 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 33430 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
1b6c0831 L |
33431 | $(TARGET-stagefeedback-target-libstdc++-v3) |
33432 | ||
33433 | maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3 | |
33434 | clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3 | |
33435 | clean-stagefeedback-target-libstdc++-v3: | |
33436 | @if [ $(current_stage) = stagefeedback ]; then \ | |
33437 | [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ | |
33438 | else \ | |
33439 | [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \ | |
33440 | $(MAKE) stagefeedback-start; \ | |
33441 | fi; \ | |
33442 | cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33443 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean | |
33444 | @endif target-libstdc++-v3-bootstrap | |
33445 | ||
33446 | ||
33447 | ||
33448 | ||
33449 | ||
33450 | ||
33451 | .PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3 | |
33452 | maybe-check-target-libstdc++-v3: | |
33453 | @if target-libstdc++-v3 | |
33454 | maybe-check-target-libstdc++-v3: check-target-libstdc++-v3 | |
33455 | ||
33456 | check-target-libstdc++-v3: | |
33457 | @: $(MAKE); $(unstage) | |
33458 | @r=`${PWD_COMMAND}`; export r; \ | |
33459 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33460 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33461 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33462 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check) | |
33463 | ||
33464 | @endif target-libstdc++-v3 | |
33465 | ||
33466 | .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3 | |
33467 | maybe-install-target-libstdc++-v3: | |
33468 | @if target-libstdc++-v3 | |
33469 | maybe-install-target-libstdc++-v3: install-target-libstdc++-v3 | |
33470 | ||
33471 | install-target-libstdc++-v3: installdirs | |
33472 | @: $(MAKE); $(unstage) | |
33473 | @r=`${PWD_COMMAND}`; export r; \ | |
33474 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33475 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33476 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33477 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
33478 | ||
33479 | @endif target-libstdc++-v3 | |
33480 | ||
33481 | .PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3 | |
33482 | maybe-install-strip-target-libstdc++-v3: | |
33483 | @if target-libstdc++-v3 | |
33484 | maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3 | |
33485 | ||
33486 | install-strip-target-libstdc++-v3: installdirs | |
33487 | @: $(MAKE); $(unstage) | |
33488 | @r=`${PWD_COMMAND}`; export r; \ | |
33489 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33490 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33491 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33492 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) | |
33493 | ||
33494 | @endif target-libstdc++-v3 | |
33495 | ||
33496 | # Other targets (info, dvi, pdf, etc.) | |
33497 | ||
33498 | .PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3 | |
33499 | maybe-info-target-libstdc++-v3: | |
33500 | @if target-libstdc++-v3 | |
33501 | maybe-info-target-libstdc++-v3: info-target-libstdc++-v3 | |
33502 | ||
33503 | info-target-libstdc++-v3: \ | |
33504 | configure-target-libstdc++-v3 | |
33505 | @: $(MAKE); $(unstage) | |
22121df0 | 33506 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ |
1b6c0831 L |
33507 | r=`${PWD_COMMAND}`; export r; \ |
33508 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33509 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 33510 | echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3"; \ |
1b6c0831 L |
33511 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33512 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33513 | done; \ | |
33514 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33515 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33516 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33517 | "RANLIB=$${RANLIB}" \ | |
33518 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
33519 | info) \ | |
33520 | || exit 1 | |
33521 | ||
33522 | @endif target-libstdc++-v3 | |
33523 | ||
33524 | .PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3 | |
33525 | maybe-dvi-target-libstdc++-v3: | |
33526 | @if target-libstdc++-v3 | |
33527 | maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3 | |
33528 | ||
33529 | dvi-target-libstdc++-v3: \ | |
33530 | configure-target-libstdc++-v3 | |
33531 | @: $(MAKE); $(unstage) | |
22121df0 | 33532 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ |
1b6c0831 L |
33533 | r=`${PWD_COMMAND}`; export r; \ |
33534 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33535 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 33536 | echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3"; \ |
1b6c0831 L |
33537 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33538 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33539 | done; \ | |
33540 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33541 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33542 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33543 | "RANLIB=$${RANLIB}" \ | |
33544 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
33545 | dvi) \ | |
33546 | || exit 1 | |
33547 | ||
33548 | @endif target-libstdc++-v3 | |
33549 | ||
33550 | .PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3 | |
33551 | maybe-pdf-target-libstdc++-v3: | |
33552 | @if target-libstdc++-v3 | |
33553 | maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3 | |
33554 | ||
33555 | pdf-target-libstdc++-v3: \ | |
33556 | configure-target-libstdc++-v3 | |
33557 | @: $(MAKE); $(unstage) | |
22121df0 | 33558 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ |
1b6c0831 L |
33559 | r=`${PWD_COMMAND}`; export r; \ |
33560 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33561 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 33562 | echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \ |
1b6c0831 L |
33563 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33564 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33565 | done; \ | |
33566 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33567 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33568 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33569 | "RANLIB=$${RANLIB}" \ | |
33570 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
33571 | pdf) \ | |
33572 | || exit 1 | |
33573 | ||
33574 | @endif target-libstdc++-v3 | |
33575 | ||
33576 | .PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3 | |
33577 | maybe-html-target-libstdc++-v3: | |
33578 | @if target-libstdc++-v3 | |
33579 | maybe-html-target-libstdc++-v3: html-target-libstdc++-v3 | |
33580 | ||
33581 | html-target-libstdc++-v3: \ | |
33582 | configure-target-libstdc++-v3 | |
33583 | @: $(MAKE); $(unstage) | |
22121df0 | 33584 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ |
1b6c0831 L |
33585 | r=`${PWD_COMMAND}`; export r; \ |
33586 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33587 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 33588 | echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3"; \ |
1b6c0831 L |
33589 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33590 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33591 | done; \ | |
33592 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33593 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33594 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33595 | "RANLIB=$${RANLIB}" \ | |
33596 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
33597 | html) \ | |
33598 | || exit 1 | |
33599 | ||
33600 | @endif target-libstdc++-v3 | |
33601 | ||
33602 | .PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3 | |
33603 | maybe-TAGS-target-libstdc++-v3: | |
33604 | @if target-libstdc++-v3 | |
33605 | maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3 | |
33606 | ||
33607 | TAGS-target-libstdc++-v3: \ | |
33608 | configure-target-libstdc++-v3 | |
33609 | @: $(MAKE); $(unstage) | |
22121df0 | 33610 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ |
1b6c0831 L |
33611 | r=`${PWD_COMMAND}`; export r; \ |
33612 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33613 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 33614 | echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3"; \ |
1b6c0831 L |
33615 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33616 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33617 | done; \ | |
33618 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33619 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33620 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33621 | "RANLIB=$${RANLIB}" \ | |
33622 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
33623 | TAGS) \ | |
33624 | || exit 1 | |
33625 | ||
33626 | @endif target-libstdc++-v3 | |
33627 | ||
33628 | .PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3 | |
33629 | maybe-install-info-target-libstdc++-v3: | |
33630 | @if target-libstdc++-v3 | |
33631 | maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3 | |
33632 | ||
33633 | install-info-target-libstdc++-v3: \ | |
33634 | configure-target-libstdc++-v3 \ | |
33635 | info-target-libstdc++-v3 | |
33636 | @: $(MAKE); $(unstage) | |
22121df0 | 33637 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ |
1b6c0831 L |
33638 | r=`${PWD_COMMAND}`; export r; \ |
33639 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33640 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 33641 | echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3"; \ |
1b6c0831 L |
33642 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33643 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33644 | done; \ | |
33645 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33646 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33647 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33648 | "RANLIB=$${RANLIB}" \ | |
33649 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
33650 | install-info) \ | |
33651 | || exit 1 | |
33652 | ||
33653 | @endif target-libstdc++-v3 | |
33654 | ||
33655 | .PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3 | |
33656 | maybe-install-pdf-target-libstdc++-v3: | |
33657 | @if target-libstdc++-v3 | |
33658 | maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3 | |
33659 | ||
33660 | install-pdf-target-libstdc++-v3: \ | |
33661 | configure-target-libstdc++-v3 \ | |
33662 | pdf-target-libstdc++-v3 | |
33663 | @: $(MAKE); $(unstage) | |
22121df0 | 33664 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ |
1b6c0831 L |
33665 | r=`${PWD_COMMAND}`; export r; \ |
33666 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33667 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 33668 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \ |
1b6c0831 L |
33669 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33670 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33671 | done; \ | |
33672 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33673 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33674 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33675 | "RANLIB=$${RANLIB}" \ | |
33676 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
33677 | install-pdf) \ | |
33678 | || exit 1 | |
33679 | ||
33680 | @endif target-libstdc++-v3 | |
33681 | ||
33682 | .PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3 | |
33683 | maybe-install-html-target-libstdc++-v3: | |
33684 | @if target-libstdc++-v3 | |
33685 | maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3 | |
33686 | ||
33687 | install-html-target-libstdc++-v3: \ | |
33688 | configure-target-libstdc++-v3 \ | |
33689 | html-target-libstdc++-v3 | |
33690 | @: $(MAKE); $(unstage) | |
22121df0 | 33691 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ |
1b6c0831 L |
33692 | r=`${PWD_COMMAND}`; export r; \ |
33693 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33694 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 33695 | echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3"; \ |
1b6c0831 L |
33696 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33697 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33698 | done; \ | |
33699 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33700 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33701 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33702 | "RANLIB=$${RANLIB}" \ | |
33703 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
33704 | install-html) \ | |
33705 | || exit 1 | |
33706 | ||
33707 | @endif target-libstdc++-v3 | |
33708 | ||
33709 | .PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3 | |
33710 | maybe-installcheck-target-libstdc++-v3: | |
33711 | @if target-libstdc++-v3 | |
33712 | maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3 | |
33713 | ||
33714 | installcheck-target-libstdc++-v3: \ | |
33715 | configure-target-libstdc++-v3 | |
33716 | @: $(MAKE); $(unstage) | |
22121df0 | 33717 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ |
1b6c0831 L |
33718 | r=`${PWD_COMMAND}`; export r; \ |
33719 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33720 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 33721 | echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3"; \ |
1b6c0831 L |
33722 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33723 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33724 | done; \ | |
33725 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33726 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33727 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33728 | "RANLIB=$${RANLIB}" \ | |
33729 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
33730 | installcheck) \ | |
33731 | || exit 1 | |
33732 | ||
33733 | @endif target-libstdc++-v3 | |
33734 | ||
33735 | .PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3 | |
33736 | maybe-mostlyclean-target-libstdc++-v3: | |
33737 | @if target-libstdc++-v3 | |
33738 | maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3 | |
33739 | ||
33740 | mostlyclean-target-libstdc++-v3: | |
33741 | @: $(MAKE); $(unstage) | |
22121df0 | 33742 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ |
1b6c0831 L |
33743 | r=`${PWD_COMMAND}`; export r; \ |
33744 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33745 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 33746 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3"; \ |
1b6c0831 L |
33747 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33748 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33749 | done; \ | |
33750 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33751 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33752 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33753 | "RANLIB=$${RANLIB}" \ | |
33754 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
33755 | mostlyclean) \ | |
33756 | || exit 1 | |
33757 | ||
33758 | @endif target-libstdc++-v3 | |
33759 | ||
33760 | .PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3 | |
33761 | maybe-clean-target-libstdc++-v3: | |
33762 | @if target-libstdc++-v3 | |
33763 | maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3 | |
33764 | ||
33765 | clean-target-libstdc++-v3: | |
33766 | @: $(MAKE); $(unstage) | |
22121df0 | 33767 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ |
1b6c0831 L |
33768 | r=`${PWD_COMMAND}`; export r; \ |
33769 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33770 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 33771 | echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3"; \ |
1b6c0831 L |
33772 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33773 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33774 | done; \ | |
33775 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33776 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33777 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33778 | "RANLIB=$${RANLIB}" \ | |
33779 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
33780 | clean) \ | |
33781 | || exit 1 | |
33782 | ||
33783 | @endif target-libstdc++-v3 | |
33784 | ||
33785 | .PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3 | |
33786 | maybe-distclean-target-libstdc++-v3: | |
33787 | @if target-libstdc++-v3 | |
33788 | maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3 | |
33789 | ||
33790 | distclean-target-libstdc++-v3: | |
33791 | @: $(MAKE); $(unstage) | |
22121df0 | 33792 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ |
1b6c0831 L |
33793 | r=`${PWD_COMMAND}`; export r; \ |
33794 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33795 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 33796 | echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3"; \ |
1b6c0831 L |
33797 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33798 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33799 | done; \ | |
33800 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33801 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33802 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33803 | "RANLIB=$${RANLIB}" \ | |
33804 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
33805 | distclean) \ | |
33806 | || exit 1 | |
33807 | ||
33808 | @endif target-libstdc++-v3 | |
33809 | ||
33810 | .PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3 | |
33811 | maybe-maintainer-clean-target-libstdc++-v3: | |
33812 | @if target-libstdc++-v3 | |
33813 | maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3 | |
33814 | ||
33815 | maintainer-clean-target-libstdc++-v3: | |
33816 | @: $(MAKE); $(unstage) | |
22121df0 | 33817 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \ |
1b6c0831 L |
33818 | r=`${PWD_COMMAND}`; export r; \ |
33819 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33820 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 33821 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3"; \ |
1b6c0831 L |
33822 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33823 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33824 | done; \ | |
33825 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
33826 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33827 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33828 | "RANLIB=$${RANLIB}" \ | |
33829 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
33830 | maintainer-clean) \ | |
33831 | || exit 1 | |
33832 | ||
33833 | @endif target-libstdc++-v3 | |
33834 | ||
33835 | ||
33836 | ||
33837 | ||
33838 | ||
33839 | .PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer | |
33840 | maybe-configure-target-libsanitizer: | |
33841 | @if gcc-bootstrap | |
33842 | configure-target-libsanitizer: stage_current | |
33843 | @endif gcc-bootstrap | |
33844 | @if target-libsanitizer | |
33845 | maybe-configure-target-libsanitizer: configure-target-libsanitizer | |
33846 | configure-target-libsanitizer: | |
33847 | @r=`${PWD_COMMAND}`; export r; \ | |
33848 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33849 | echo "Checking multilib configuration for libsanitizer..."; \ | |
22121df0 L |
33850 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \ |
33851 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \ | |
1b6c0831 L |
33852 | if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \ |
33853 | if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \ | |
33854 | rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \ | |
33855 | else \ | |
33856 | rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \ | |
33857 | mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \ | |
33858 | fi; \ | |
33859 | else \ | |
33860 | mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \ | |
33861 | fi; \ | |
33862 | test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \ | |
22121df0 | 33863 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \ |
1b6c0831 L |
33864 | $(RAW_CXX_TARGET_EXPORTS) \ |
33865 | echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \ | |
33866 | cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \ | |
33867 | case $(srcdir) in \ | |
33868 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
33869 | *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \ | |
33870 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
33871 | esac; \ | |
33872 | module_srcdir=libsanitizer; \ | |
33873 | rm -f no-such-file || : ; \ | |
33874 | CONFIG_SITE=no-such-file $(SHELL) \ | |
33875 | $$s/$$module_srcdir/configure \ | |
33876 | --srcdir=$${topdir}/$$module_srcdir \ | |
33877 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
33878 | --target=${target_alias} \ | |
33879 | || exit 1 | |
33880 | @endif target-libsanitizer | |
33881 | ||
33882 | ||
33883 | ||
33884 | .PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer | |
33885 | maybe-configure-stage1-target-libsanitizer: | |
33886 | @if target-libsanitizer-bootstrap | |
33887 | maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer | |
33888 | configure-stage1-target-libsanitizer: | |
33889 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
33890 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer | |
33891 | @r=`${PWD_COMMAND}`; export r; \ | |
33892 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33893 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
33894 | echo "Checking multilib configuration for libsanitizer..."; \ | |
22121df0 | 33895 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
33896 | if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \ |
33897 | if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \ | |
33898 | rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \ | |
33899 | else \ | |
33900 | rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \ | |
33901 | mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \ | |
33902 | fi; \ | |
33903 | else \ | |
33904 | mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \ | |
33905 | fi; \ | |
33906 | test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \ | |
33907 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33908 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
33909 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
33910 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
33911 | echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer; \ |
33912 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \ | |
1b6c0831 L |
33913 | cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \ |
33914 | case $(srcdir) in \ | |
33915 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
33916 | *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \ | |
33917 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
33918 | esac; \ | |
33919 | module_srcdir=libsanitizer; \ | |
33920 | $(SHELL) $$s/$$module_srcdir/configure \ | |
33921 | --srcdir=$${topdir}/$$module_srcdir \ | |
33922 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
33923 | --target=${target_alias} \ | |
33924 | \ | |
33925 | $(STAGE1_CONFIGURE_FLAGS) | |
33926 | @endif target-libsanitizer-bootstrap | |
33927 | ||
33928 | .PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer | |
33929 | maybe-configure-stage2-target-libsanitizer: | |
33930 | @if target-libsanitizer-bootstrap | |
33931 | maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer | |
33932 | configure-stage2-target-libsanitizer: | |
33933 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
33934 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer | |
33935 | @r=`${PWD_COMMAND}`; export r; \ | |
33936 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33937 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
33938 | echo "Checking multilib configuration for libsanitizer..."; \ | |
22121df0 | 33939 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
33940 | if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \ |
33941 | if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \ | |
33942 | rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \ | |
33943 | else \ | |
33944 | rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \ | |
33945 | mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \ | |
33946 | fi; \ | |
33947 | else \ | |
33948 | mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \ | |
33949 | fi; \ | |
33950 | test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \ | |
33951 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33952 | \ | |
33953 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
33954 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
33955 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
33956 | echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer; \ |
33957 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \ | |
1b6c0831 L |
33958 | cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \ |
33959 | case $(srcdir) in \ | |
33960 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
33961 | *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \ | |
33962 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
33963 | esac; \ | |
33964 | module_srcdir=libsanitizer; \ | |
33965 | $(SHELL) $$s/$$module_srcdir/configure \ | |
33966 | --srcdir=$${topdir}/$$module_srcdir \ | |
33967 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
33968 | --target=${target_alias} \ | |
22121df0 | 33969 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
33970 | $(STAGE2_CONFIGURE_FLAGS) |
33971 | @endif target-libsanitizer-bootstrap | |
33972 | ||
33973 | .PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer | |
33974 | maybe-configure-stage3-target-libsanitizer: | |
33975 | @if target-libsanitizer-bootstrap | |
33976 | maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer | |
33977 | configure-stage3-target-libsanitizer: | |
33978 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
33979 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer | |
33980 | @r=`${PWD_COMMAND}`; export r; \ | |
33981 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33982 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
33983 | echo "Checking multilib configuration for libsanitizer..."; \ | |
22121df0 | 33984 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
33985 | if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \ |
33986 | if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \ | |
33987 | rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \ | |
33988 | else \ | |
33989 | rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \ | |
33990 | mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \ | |
33991 | fi; \ | |
33992 | else \ | |
33993 | mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \ | |
33994 | fi; \ | |
33995 | test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \ | |
33996 | $(RAW_CXX_TARGET_EXPORTS) \ | |
33997 | \ | |
33998 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
33999 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
34000 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
34001 | echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer; \ |
34002 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \ | |
1b6c0831 L |
34003 | cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \ |
34004 | case $(srcdir) in \ | |
34005 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
34006 | *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \ | |
34007 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
34008 | esac; \ | |
34009 | module_srcdir=libsanitizer; \ | |
34010 | $(SHELL) $$s/$$module_srcdir/configure \ | |
34011 | --srcdir=$${topdir}/$$module_srcdir \ | |
34012 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
34013 | --target=${target_alias} \ | |
22121df0 | 34014 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
34015 | $(STAGE3_CONFIGURE_FLAGS) |
34016 | @endif target-libsanitizer-bootstrap | |
34017 | ||
34018 | .PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer | |
34019 | maybe-configure-stage4-target-libsanitizer: | |
34020 | @if target-libsanitizer-bootstrap | |
34021 | maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer | |
34022 | configure-stage4-target-libsanitizer: | |
34023 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
34024 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer | |
34025 | @r=`${PWD_COMMAND}`; export r; \ | |
34026 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34027 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
34028 | echo "Checking multilib configuration for libsanitizer..."; \ | |
22121df0 | 34029 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
34030 | if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \ |
34031 | if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \ | |
34032 | rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \ | |
34033 | else \ | |
34034 | rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \ | |
34035 | mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \ | |
34036 | fi; \ | |
34037 | else \ | |
34038 | mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \ | |
34039 | fi; \ | |
34040 | test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \ | |
34041 | $(RAW_CXX_TARGET_EXPORTS) \ | |
34042 | \ | |
34043 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
34044 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
34045 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
34046 | echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer; \ |
34047 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \ | |
1b6c0831 L |
34048 | cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \ |
34049 | case $(srcdir) in \ | |
34050 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
34051 | *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \ | |
34052 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
34053 | esac; \ | |
34054 | module_srcdir=libsanitizer; \ | |
34055 | $(SHELL) $$s/$$module_srcdir/configure \ | |
34056 | --srcdir=$${topdir}/$$module_srcdir \ | |
34057 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
34058 | --target=${target_alias} \ | |
22121df0 | 34059 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
34060 | $(STAGE4_CONFIGURE_FLAGS) |
34061 | @endif target-libsanitizer-bootstrap | |
34062 | ||
34063 | .PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer | |
34064 | maybe-configure-stageprofile-target-libsanitizer: | |
34065 | @if target-libsanitizer-bootstrap | |
34066 | maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer | |
34067 | configure-stageprofile-target-libsanitizer: | |
34068 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
34069 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer | |
34070 | @r=`${PWD_COMMAND}`; export r; \ | |
34071 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34072 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
34073 | echo "Checking multilib configuration for libsanitizer..."; \ | |
22121df0 | 34074 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
34075 | if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \ |
34076 | if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \ | |
34077 | rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \ | |
34078 | else \ | |
34079 | rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \ | |
34080 | mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \ | |
34081 | fi; \ | |
34082 | else \ | |
34083 | mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \ | |
34084 | fi; \ | |
34085 | test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \ | |
34086 | $(RAW_CXX_TARGET_EXPORTS) \ | |
34087 | \ | |
34088 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
34089 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
34090 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
34091 | echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer; \ |
34092 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \ | |
1b6c0831 L |
34093 | cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \ |
34094 | case $(srcdir) in \ | |
34095 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
34096 | *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \ | |
34097 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
34098 | esac; \ | |
34099 | module_srcdir=libsanitizer; \ | |
34100 | $(SHELL) $$s/$$module_srcdir/configure \ | |
34101 | --srcdir=$${topdir}/$$module_srcdir \ | |
34102 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
34103 | --target=${target_alias} \ | |
22121df0 | 34104 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
34105 | $(STAGEprofile_CONFIGURE_FLAGS) |
34106 | @endif target-libsanitizer-bootstrap | |
34107 | ||
34108 | .PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer | |
34109 | maybe-configure-stagefeedback-target-libsanitizer: | |
34110 | @if target-libsanitizer-bootstrap | |
34111 | maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer | |
34112 | configure-stagefeedback-target-libsanitizer: | |
34113 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
34114 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer | |
34115 | @r=`${PWD_COMMAND}`; export r; \ | |
34116 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34117 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
34118 | echo "Checking multilib configuration for libsanitizer..."; \ | |
22121df0 | 34119 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
34120 | if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \ |
34121 | if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \ | |
34122 | rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \ | |
34123 | else \ | |
34124 | rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \ | |
34125 | mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \ | |
34126 | fi; \ | |
34127 | else \ | |
34128 | mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \ | |
34129 | fi; \ | |
34130 | test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \ | |
34131 | $(RAW_CXX_TARGET_EXPORTS) \ | |
34132 | \ | |
34133 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
34134 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
34135 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
34136 | echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer; \ |
34137 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \ | |
1b6c0831 L |
34138 | cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \ |
34139 | case $(srcdir) in \ | |
34140 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
34141 | *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \ | |
34142 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
34143 | esac; \ | |
34144 | module_srcdir=libsanitizer; \ | |
34145 | $(SHELL) $$s/$$module_srcdir/configure \ | |
34146 | --srcdir=$${topdir}/$$module_srcdir \ | |
34147 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
34148 | --target=${target_alias} \ | |
22121df0 | 34149 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
1b6c0831 L |
34150 | $(STAGEfeedback_CONFIGURE_FLAGS) |
34151 | @endif target-libsanitizer-bootstrap | |
34152 | ||
34153 | ||
34154 | ||
34155 | ||
34156 | ||
34157 | .PHONY: all-target-libsanitizer maybe-all-target-libsanitizer | |
34158 | maybe-all-target-libsanitizer: | |
34159 | @if gcc-bootstrap | |
34160 | all-target-libsanitizer: stage_current | |
34161 | @endif gcc-bootstrap | |
34162 | @if target-libsanitizer | |
34163 | TARGET-target-libsanitizer=all | |
34164 | maybe-all-target-libsanitizer: all-target-libsanitizer | |
34165 | all-target-libsanitizer: configure-target-libsanitizer | |
34166 | @r=`${PWD_COMMAND}`; export r; \ | |
34167 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34168 | $(RAW_CXX_TARGET_EXPORTS) \ | |
34169 | (cd $(TARGET_SUBDIR)/libsanitizer && \ | |
34170 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
34171 | $(TARGET-target-libsanitizer)) | |
34172 | @endif target-libsanitizer | |
34173 | ||
34174 | ||
34175 | ||
34176 | .PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer | |
34177 | .PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer | |
34178 | maybe-all-stage1-target-libsanitizer: | |
34179 | maybe-clean-stage1-target-libsanitizer: | |
34180 | @if target-libsanitizer-bootstrap | |
34181 | maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer | |
34182 | all-stage1: all-stage1-target-libsanitizer | |
34183 | TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer) | |
34184 | all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer | |
34185 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
34186 | @r=`${PWD_COMMAND}`; export r; \ | |
34187 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34188 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
34189 | $(RAW_CXX_TARGET_EXPORTS) \ | |
34190 | cd $(TARGET_SUBDIR)/libsanitizer && \ | |
05a13254 | 34191 | \ |
1b6c0831 L |
34192 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
34193 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
34194 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
34195 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
34196 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
34197 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
34198 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
34199 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
34200 | \ | |
05a13254 | 34201 | TFLAGS="$(STAGE1_TFLAGS)" \ |
1b6c0831 L |
34202 | $(TARGET-stage1-target-libsanitizer) |
34203 | ||
34204 | maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer | |
34205 | clean-stage1: clean-stage1-target-libsanitizer | |
34206 | clean-stage1-target-libsanitizer: | |
34207 | @if [ $(current_stage) = stage1 ]; then \ | |
34208 | [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ | |
34209 | else \ | |
34210 | [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \ | |
34211 | $(MAKE) stage1-start; \ | |
34212 | fi; \ | |
34213 | cd $(TARGET_SUBDIR)/libsanitizer && \ | |
34214 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
34215 | clean | |
34216 | @endif target-libsanitizer-bootstrap | |
34217 | ||
34218 | ||
34219 | .PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer | |
34220 | .PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer | |
34221 | maybe-all-stage2-target-libsanitizer: | |
34222 | maybe-clean-stage2-target-libsanitizer: | |
34223 | @if target-libsanitizer-bootstrap | |
34224 | maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer | |
34225 | all-stage2: all-stage2-target-libsanitizer | |
34226 | TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer) | |
34227 | all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer | |
34228 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
34229 | @r=`${PWD_COMMAND}`; export r; \ | |
34230 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34231 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
34232 | $(RAW_CXX_TARGET_EXPORTS) \ | |
34233 | \ | |
34234 | cd $(TARGET_SUBDIR)/libsanitizer && \ | |
05a13254 | 34235 | \ |
1b6c0831 L |
34236 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
34237 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
34238 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
34239 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
34240 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
34241 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
34242 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
34243 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 34244 | TFLAGS="$(STAGE2_TFLAGS)" \ |
1b6c0831 L |
34245 | $(TARGET-stage2-target-libsanitizer) |
34246 | ||
34247 | maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer | |
34248 | clean-stage2: clean-stage2-target-libsanitizer | |
34249 | clean-stage2-target-libsanitizer: | |
34250 | @if [ $(current_stage) = stage2 ]; then \ | |
34251 | [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ | |
34252 | else \ | |
34253 | [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \ | |
34254 | $(MAKE) stage2-start; \ | |
34255 | fi; \ | |
34256 | cd $(TARGET_SUBDIR)/libsanitizer && \ | |
34257 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean | |
34258 | @endif target-libsanitizer-bootstrap | |
34259 | ||
34260 | ||
34261 | .PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer | |
34262 | .PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer | |
34263 | maybe-all-stage3-target-libsanitizer: | |
34264 | maybe-clean-stage3-target-libsanitizer: | |
34265 | @if target-libsanitizer-bootstrap | |
34266 | maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer | |
34267 | all-stage3: all-stage3-target-libsanitizer | |
34268 | TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer) | |
34269 | all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer | |
34270 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
34271 | @r=`${PWD_COMMAND}`; export r; \ | |
34272 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34273 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
34274 | $(RAW_CXX_TARGET_EXPORTS) \ | |
34275 | \ | |
34276 | cd $(TARGET_SUBDIR)/libsanitizer && \ | |
05a13254 | 34277 | \ |
1b6c0831 L |
34278 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
34279 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
34280 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
34281 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
34282 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
34283 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
34284 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
34285 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 34286 | TFLAGS="$(STAGE3_TFLAGS)" \ |
1b6c0831 L |
34287 | $(TARGET-stage3-target-libsanitizer) |
34288 | ||
34289 | maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer | |
34290 | clean-stage3: clean-stage3-target-libsanitizer | |
34291 | clean-stage3-target-libsanitizer: | |
34292 | @if [ $(current_stage) = stage3 ]; then \ | |
34293 | [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ | |
34294 | else \ | |
34295 | [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \ | |
34296 | $(MAKE) stage3-start; \ | |
34297 | fi; \ | |
34298 | cd $(TARGET_SUBDIR)/libsanitizer && \ | |
34299 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean | |
34300 | @endif target-libsanitizer-bootstrap | |
34301 | ||
34302 | ||
34303 | .PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer | |
34304 | .PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer | |
34305 | maybe-all-stage4-target-libsanitizer: | |
34306 | maybe-clean-stage4-target-libsanitizer: | |
34307 | @if target-libsanitizer-bootstrap | |
34308 | maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer | |
34309 | all-stage4: all-stage4-target-libsanitizer | |
34310 | TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer) | |
34311 | all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer | |
34312 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
34313 | @r=`${PWD_COMMAND}`; export r; \ | |
34314 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34315 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
34316 | $(RAW_CXX_TARGET_EXPORTS) \ | |
34317 | \ | |
34318 | cd $(TARGET_SUBDIR)/libsanitizer && \ | |
05a13254 | 34319 | \ |
1b6c0831 L |
34320 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
34321 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
34322 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
34323 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
e8a5fa9c RW |
34324 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ |
34325 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
34326 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
34327 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 34328 | TFLAGS="$(STAGE4_TFLAGS)" \ |
1b6c0831 | 34329 | $(TARGET-stage4-target-libsanitizer) |
e8a5fa9c | 34330 | |
1b6c0831 L |
34331 | maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer |
34332 | clean-stage4: clean-stage4-target-libsanitizer | |
34333 | clean-stage4-target-libsanitizer: | |
e8a5fa9c | 34334 | @if [ $(current_stage) = stage4 ]; then \ |
1b6c0831 | 34335 | [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
e8a5fa9c | 34336 | else \ |
1b6c0831 | 34337 | [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \ |
e8a5fa9c RW |
34338 | $(MAKE) stage4-start; \ |
34339 | fi; \ | |
1b6c0831 | 34340 | cd $(TARGET_SUBDIR)/libsanitizer && \ |
b3676d82 | 34341 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean |
1b6c0831 | 34342 | @endif target-libsanitizer-bootstrap |
e8a5fa9c RW |
34343 | |
34344 | ||
1b6c0831 L |
34345 | .PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer |
34346 | .PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer | |
34347 | maybe-all-stageprofile-target-libsanitizer: | |
34348 | maybe-clean-stageprofile-target-libsanitizer: | |
34349 | @if target-libsanitizer-bootstrap | |
34350 | maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer | |
34351 | all-stageprofile: all-stageprofile-target-libsanitizer | |
34352 | TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer) | |
34353 | all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer | |
e8a5fa9c RW |
34354 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
34355 | @r=`${PWD_COMMAND}`; export r; \ | |
34356 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34357 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
34358 | $(RAW_CXX_TARGET_EXPORTS) \ | |
1f53ca9a | 34359 | \ |
1b6c0831 | 34360 | cd $(TARGET_SUBDIR)/libsanitizer && \ |
05a13254 | 34361 | \ |
e8a5fa9c RW |
34362 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
34363 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
34364 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
34365 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
34366 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
34367 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
34368 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
34369 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 34370 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
1b6c0831 | 34371 | $(TARGET-stageprofile-target-libsanitizer) |
e8a5fa9c | 34372 | |
1b6c0831 L |
34373 | maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer |
34374 | clean-stageprofile: clean-stageprofile-target-libsanitizer | |
34375 | clean-stageprofile-target-libsanitizer: | |
e8a5fa9c | 34376 | @if [ $(current_stage) = stageprofile ]; then \ |
1b6c0831 | 34377 | [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
e8a5fa9c | 34378 | else \ |
1b6c0831 | 34379 | [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \ |
e8a5fa9c RW |
34380 | $(MAKE) stageprofile-start; \ |
34381 | fi; \ | |
1b6c0831 | 34382 | cd $(TARGET_SUBDIR)/libsanitizer && \ |
b3676d82 | 34383 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean |
1b6c0831 | 34384 | @endif target-libsanitizer-bootstrap |
e8a5fa9c RW |
34385 | |
34386 | ||
1b6c0831 L |
34387 | .PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer |
34388 | .PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer | |
34389 | maybe-all-stagefeedback-target-libsanitizer: | |
34390 | maybe-clean-stagefeedback-target-libsanitizer: | |
34391 | @if target-libsanitizer-bootstrap | |
34392 | maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer | |
34393 | all-stagefeedback: all-stagefeedback-target-libsanitizer | |
34394 | TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer) | |
34395 | all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer | |
e8a5fa9c RW |
34396 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
34397 | @r=`${PWD_COMMAND}`; export r; \ | |
34398 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34399 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
34400 | $(RAW_CXX_TARGET_EXPORTS) \ | |
1f53ca9a | 34401 | \ |
1b6c0831 | 34402 | cd $(TARGET_SUBDIR)/libsanitizer && \ |
05a13254 | 34403 | \ |
e8a5fa9c RW |
34404 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
34405 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
34406 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
34407 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
34408 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
34409 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
34410 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
34411 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 34412 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
1b6c0831 | 34413 | $(TARGET-stagefeedback-target-libsanitizer) |
e8a5fa9c | 34414 | |
1b6c0831 L |
34415 | maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer |
34416 | clean-stagefeedback: clean-stagefeedback-target-libsanitizer | |
34417 | clean-stagefeedback-target-libsanitizer: | |
e8a5fa9c | 34418 | @if [ $(current_stage) = stagefeedback ]; then \ |
1b6c0831 | 34419 | [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
e8a5fa9c | 34420 | else \ |
1b6c0831 | 34421 | [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \ |
e8a5fa9c RW |
34422 | $(MAKE) stagefeedback-start; \ |
34423 | fi; \ | |
1b6c0831 | 34424 | cd $(TARGET_SUBDIR)/libsanitizer && \ |
b3676d82 | 34425 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean |
1b6c0831 | 34426 | @endif target-libsanitizer-bootstrap |
e8a5fa9c RW |
34427 | |
34428 | ||
34429 | ||
34430 | ||
d545f33b PB |
34431 | |
34432 | ||
1b6c0831 L |
34433 | .PHONY: check-target-libsanitizer maybe-check-target-libsanitizer |
34434 | maybe-check-target-libsanitizer: | |
34435 | @if target-libsanitizer | |
34436 | maybe-check-target-libsanitizer: check-target-libsanitizer | |
3866be5d | 34437 | |
1b6c0831 | 34438 | check-target-libsanitizer: |
0aed8855 | 34439 | @: $(MAKE); $(unstage) |
b40e3958 L |
34440 | @r=`${PWD_COMMAND}`; export r; \ |
34441 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34442 | $(RAW_CXX_TARGET_EXPORTS) \ |
1b6c0831 | 34443 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
7ffa0b57 | 34444 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check) |
3866be5d | 34445 | |
1b6c0831 | 34446 | @endif target-libsanitizer |
3866be5d | 34447 | |
1b6c0831 L |
34448 | .PHONY: install-target-libsanitizer maybe-install-target-libsanitizer |
34449 | maybe-install-target-libsanitizer: | |
34450 | @if target-libsanitizer | |
34451 | maybe-install-target-libsanitizer: install-target-libsanitizer | |
16ae0395 | 34452 | |
1b6c0831 | 34453 | install-target-libsanitizer: installdirs |
0aed8855 | 34454 | @: $(MAKE); $(unstage) |
b40e3958 L |
34455 | @r=`${PWD_COMMAND}`; export r; \ |
34456 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34457 | $(RAW_CXX_TARGET_EXPORTS) \ |
1b6c0831 | 34458 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
7ffa0b57 | 34459 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 34460 | |
1b6c0831 | 34461 | @endif target-libsanitizer |
e2b9e2dc | 34462 | |
1b6c0831 L |
34463 | .PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer |
34464 | maybe-install-strip-target-libsanitizer: | |
34465 | @if target-libsanitizer | |
34466 | maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer | |
9b980aa1 | 34467 | |
1b6c0831 | 34468 | install-strip-target-libsanitizer: installdirs |
9b980aa1 RW |
34469 | @: $(MAKE); $(unstage) |
34470 | @r=`${PWD_COMMAND}`; export r; \ | |
34471 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34472 | $(RAW_CXX_TARGET_EXPORTS) \ | |
1b6c0831 | 34473 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
9b980aa1 RW |
34474 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) |
34475 | ||
1b6c0831 | 34476 | @endif target-libsanitizer |
9b980aa1 | 34477 | |
56a8fe78 | 34478 | # Other targets (info, dvi, pdf, etc.) |
3866be5d | 34479 | |
1b6c0831 L |
34480 | .PHONY: maybe-info-target-libsanitizer info-target-libsanitizer |
34481 | maybe-info-target-libsanitizer: | |
34482 | @if target-libsanitizer | |
34483 | maybe-info-target-libsanitizer: info-target-libsanitizer | |
3866be5d | 34484 | |
1b6c0831 L |
34485 | info-target-libsanitizer: \ |
34486 | configure-target-libsanitizer | |
0aed8855 | 34487 | @: $(MAKE); $(unstage) |
22121df0 | 34488 | @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
4fa63067 | 34489 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 34490 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34491 | $(RAW_CXX_TARGET_EXPORTS) \ |
22121df0 | 34492 | echo "Doing info in $(TARGET_SUBDIR)/libsanitizer"; \ |
4fa63067 NN |
34493 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
34494 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34495 | done; \ | |
1b6c0831 | 34496 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
4fa63067 NN |
34497 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
34498 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34499 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 34500 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 34501 | info) \ |
4fa63067 | 34502 | || exit 1 |
3866be5d | 34503 | |
1b6c0831 | 34504 | @endif target-libsanitizer |
3866be5d | 34505 | |
1b6c0831 L |
34506 | .PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer |
34507 | maybe-dvi-target-libsanitizer: | |
34508 | @if target-libsanitizer | |
34509 | maybe-dvi-target-libsanitizer: dvi-target-libsanitizer | |
16ae0395 | 34510 | |
1b6c0831 L |
34511 | dvi-target-libsanitizer: \ |
34512 | configure-target-libsanitizer | |
0aed8855 | 34513 | @: $(MAKE); $(unstage) |
22121df0 | 34514 | @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
4fa63067 | 34515 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 34516 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34517 | $(RAW_CXX_TARGET_EXPORTS) \ |
22121df0 | 34518 | echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer"; \ |
4fa63067 NN |
34519 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
34520 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34521 | done; \ | |
1b6c0831 | 34522 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
4fa63067 NN |
34523 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
34524 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34525 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 34526 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 34527 | dvi) \ |
4fa63067 | 34528 | || exit 1 |
3866be5d | 34529 | |
1b6c0831 | 34530 | @endif target-libsanitizer |
3866be5d | 34531 | |
1b6c0831 L |
34532 | .PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer |
34533 | maybe-pdf-target-libsanitizer: | |
34534 | @if target-libsanitizer | |
34535 | maybe-pdf-target-libsanitizer: pdf-target-libsanitizer | |
56a8fe78 | 34536 | |
1b6c0831 L |
34537 | pdf-target-libsanitizer: \ |
34538 | configure-target-libsanitizer | |
56a8fe78 | 34539 | @: $(MAKE); $(unstage) |
22121df0 | 34540 | @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
56a8fe78 DD |
34541 | r=`${PWD_COMMAND}`; export r; \ |
34542 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34543 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 34544 | echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer"; \ |
56a8fe78 DD |
34545 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
34546 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34547 | done; \ | |
1b6c0831 | 34548 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
56a8fe78 DD |
34549 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
34550 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34551 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 34552 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
34553 | pdf) \ |
34554 | || exit 1 | |
34555 | ||
1b6c0831 | 34556 | @endif target-libsanitizer |
56a8fe78 | 34557 | |
1b6c0831 L |
34558 | .PHONY: maybe-html-target-libsanitizer html-target-libsanitizer |
34559 | maybe-html-target-libsanitizer: | |
34560 | @if target-libsanitizer | |
34561 | maybe-html-target-libsanitizer: html-target-libsanitizer | |
6d389afc | 34562 | |
1b6c0831 L |
34563 | html-target-libsanitizer: \ |
34564 | configure-target-libsanitizer | |
0aed8855 | 34565 | @: $(MAKE); $(unstage) |
22121df0 | 34566 | @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
6d389afc MS |
34567 | r=`${PWD_COMMAND}`; export r; \ |
34568 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 34569 | $(RAW_CXX_TARGET_EXPORTS) \ |
22121df0 | 34570 | echo "Doing html in $(TARGET_SUBDIR)/libsanitizer"; \ |
6d389afc MS |
34571 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
34572 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34573 | done; \ | |
1b6c0831 | 34574 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
6d389afc MS |
34575 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
34576 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34577 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 34578 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
34579 | html) \ |
34580 | || exit 1 | |
34581 | ||
1b6c0831 | 34582 | @endif target-libsanitizer |
6d389afc | 34583 | |
1b6c0831 L |
34584 | .PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer |
34585 | maybe-TAGS-target-libsanitizer: | |
34586 | @if target-libsanitizer | |
34587 | maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer | |
4fa63067 | 34588 | |
1b6c0831 L |
34589 | TAGS-target-libsanitizer: \ |
34590 | configure-target-libsanitizer | |
0aed8855 | 34591 | @: $(MAKE); $(unstage) |
22121df0 | 34592 | @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
b40e3958 L |
34593 | r=`${PWD_COMMAND}`; export r; \ |
34594 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34595 | $(RAW_CXX_TARGET_EXPORTS) \ |
22121df0 | 34596 | echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer"; \ |
4fa63067 NN |
34597 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
34598 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34599 | done; \ | |
1b6c0831 | 34600 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
4fa63067 NN |
34601 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
34602 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34603 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 34604 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 34605 | TAGS) \ |
e2b9e2dc NN |
34606 | || exit 1 |
34607 | ||
1b6c0831 | 34608 | @endif target-libsanitizer |
3866be5d | 34609 | |
1b6c0831 L |
34610 | .PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer |
34611 | maybe-install-info-target-libsanitizer: | |
34612 | @if target-libsanitizer | |
34613 | maybe-install-info-target-libsanitizer: install-info-target-libsanitizer | |
3866be5d | 34614 | |
1b6c0831 L |
34615 | install-info-target-libsanitizer: \ |
34616 | configure-target-libsanitizer \ | |
34617 | info-target-libsanitizer | |
0aed8855 | 34618 | @: $(MAKE); $(unstage) |
22121df0 | 34619 | @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
4fa63067 | 34620 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 34621 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34622 | $(RAW_CXX_TARGET_EXPORTS) \ |
22121df0 | 34623 | echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer"; \ |
4fa63067 NN |
34624 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
34625 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34626 | done; \ | |
1b6c0831 | 34627 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
4fa63067 NN |
34628 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
34629 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34630 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 34631 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 34632 | install-info) \ |
4fa63067 | 34633 | || exit 1 |
3866be5d | 34634 | |
1b6c0831 | 34635 | @endif target-libsanitizer |
3866be5d | 34636 | |
1b6c0831 L |
34637 | .PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer |
34638 | maybe-install-pdf-target-libsanitizer: | |
34639 | @if target-libsanitizer | |
34640 | maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer | |
a3ca38d2 | 34641 | |
1b6c0831 L |
34642 | install-pdf-target-libsanitizer: \ |
34643 | configure-target-libsanitizer \ | |
34644 | pdf-target-libsanitizer | |
a3ca38d2 | 34645 | @: $(MAKE); $(unstage) |
22121df0 | 34646 | @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
a3ca38d2 DD |
34647 | r=`${PWD_COMMAND}`; export r; \ |
34648 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34649 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 34650 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer"; \ |
a3ca38d2 DD |
34651 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
34652 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34653 | done; \ | |
1b6c0831 | 34654 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
a3ca38d2 DD |
34655 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
34656 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34657 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 34658 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
34659 | install-pdf) \ |
34660 | || exit 1 | |
34661 | ||
1b6c0831 | 34662 | @endif target-libsanitizer |
a3ca38d2 | 34663 | |
1b6c0831 L |
34664 | .PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer |
34665 | maybe-install-html-target-libsanitizer: | |
34666 | @if target-libsanitizer | |
34667 | maybe-install-html-target-libsanitizer: install-html-target-libsanitizer | |
108a6f8e | 34668 | |
1b6c0831 L |
34669 | install-html-target-libsanitizer: \ |
34670 | configure-target-libsanitizer \ | |
34671 | html-target-libsanitizer | |
108a6f8e | 34672 | @: $(MAKE); $(unstage) |
22121df0 | 34673 | @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
108a6f8e CD |
34674 | r=`${PWD_COMMAND}`; export r; \ |
34675 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34676 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 34677 | echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer"; \ |
108a6f8e CD |
34678 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
34679 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34680 | done; \ | |
1b6c0831 | 34681 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
108a6f8e CD |
34682 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
34683 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34684 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 34685 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
34686 | install-html) \ |
34687 | || exit 1 | |
34688 | ||
1b6c0831 | 34689 | @endif target-libsanitizer |
108a6f8e | 34690 | |
1b6c0831 L |
34691 | .PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer |
34692 | maybe-installcheck-target-libsanitizer: | |
34693 | @if target-libsanitizer | |
34694 | maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer | |
16ae0395 | 34695 | |
1b6c0831 L |
34696 | installcheck-target-libsanitizer: \ |
34697 | configure-target-libsanitizer | |
0aed8855 | 34698 | @: $(MAKE); $(unstage) |
22121df0 | 34699 | @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
4fa63067 | 34700 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 34701 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34702 | $(RAW_CXX_TARGET_EXPORTS) \ |
22121df0 | 34703 | echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer"; \ |
4fa63067 NN |
34704 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
34705 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34706 | done; \ | |
1b6c0831 | 34707 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
4fa63067 NN |
34708 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
34709 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34710 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 34711 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 34712 | installcheck) \ |
4fa63067 | 34713 | || exit 1 |
3866be5d | 34714 | |
1b6c0831 | 34715 | @endif target-libsanitizer |
3866be5d | 34716 | |
1b6c0831 L |
34717 | .PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer |
34718 | maybe-mostlyclean-target-libsanitizer: | |
34719 | @if target-libsanitizer | |
34720 | maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer | |
4fa63067 | 34721 | |
1b6c0831 | 34722 | mostlyclean-target-libsanitizer: |
0aed8855 | 34723 | @: $(MAKE); $(unstage) |
22121df0 | 34724 | @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
b40e3958 L |
34725 | r=`${PWD_COMMAND}`; export r; \ |
34726 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34727 | $(RAW_CXX_TARGET_EXPORTS) \ |
22121df0 | 34728 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer"; \ |
4fa63067 NN |
34729 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
34730 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34731 | done; \ | |
1b6c0831 | 34732 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
4fa63067 NN |
34733 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
34734 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34735 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 34736 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 34737 | mostlyclean) \ |
e2b9e2dc NN |
34738 | || exit 1 |
34739 | ||
1b6c0831 | 34740 | @endif target-libsanitizer |
4fa63067 | 34741 | |
1b6c0831 L |
34742 | .PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer |
34743 | maybe-clean-target-libsanitizer: | |
34744 | @if target-libsanitizer | |
34745 | maybe-clean-target-libsanitizer: clean-target-libsanitizer | |
4fa63067 | 34746 | |
1b6c0831 | 34747 | clean-target-libsanitizer: |
0aed8855 | 34748 | @: $(MAKE); $(unstage) |
22121df0 | 34749 | @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
4fa63067 | 34750 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 34751 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34752 | $(RAW_CXX_TARGET_EXPORTS) \ |
22121df0 | 34753 | echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer"; \ |
4fa63067 NN |
34754 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
34755 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34756 | done; \ | |
1b6c0831 | 34757 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
4fa63067 NN |
34758 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
34759 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34760 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 34761 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 34762 | clean) \ |
4fa63067 | 34763 | || exit 1 |
3866be5d | 34764 | |
1b6c0831 | 34765 | @endif target-libsanitizer |
3866be5d | 34766 | |
1b6c0831 L |
34767 | .PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer |
34768 | maybe-distclean-target-libsanitizer: | |
34769 | @if target-libsanitizer | |
34770 | maybe-distclean-target-libsanitizer: distclean-target-libsanitizer | |
4fa63067 | 34771 | |
1b6c0831 | 34772 | distclean-target-libsanitizer: |
0aed8855 | 34773 | @: $(MAKE); $(unstage) |
22121df0 | 34774 | @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
4fa63067 | 34775 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 34776 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34777 | $(RAW_CXX_TARGET_EXPORTS) \ |
22121df0 | 34778 | echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer"; \ |
4fa63067 NN |
34779 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
34780 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34781 | done; \ | |
1b6c0831 | 34782 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
4fa63067 NN |
34783 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
34784 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34785 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 34786 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 34787 | distclean) \ |
4fa63067 | 34788 | || exit 1 |
3866be5d | 34789 | |
1b6c0831 | 34790 | @endif target-libsanitizer |
3866be5d | 34791 | |
1b6c0831 L |
34792 | .PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer |
34793 | maybe-maintainer-clean-target-libsanitizer: | |
34794 | @if target-libsanitizer | |
34795 | maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer | |
16ae0395 | 34796 | |
1b6c0831 | 34797 | maintainer-clean-target-libsanitizer: |
0aed8855 | 34798 | @: $(MAKE); $(unstage) |
22121df0 | 34799 | @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \ |
4fa63067 | 34800 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 34801 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34802 | $(RAW_CXX_TARGET_EXPORTS) \ |
22121df0 | 34803 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer"; \ |
4fa63067 NN |
34804 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
34805 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34806 | done; \ | |
1b6c0831 | 34807 | (cd $(TARGET_SUBDIR)/libsanitizer && \ |
4fa63067 NN |
34808 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
34809 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34810 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 34811 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 34812 | maintainer-clean) \ |
4fa63067 | 34813 | || exit 1 |
3866be5d | 34814 | |
1b6c0831 | 34815 | @endif target-libsanitizer |
3866be5d | 34816 | |
4fa63067 | 34817 | |
4fa63067 | 34818 | |
a7254363 PB |
34819 | |
34820 | ||
1b6c0831 L |
34821 | .PHONY: configure-target-libmpx maybe-configure-target-libmpx |
34822 | maybe-configure-target-libmpx: | |
5286fdef | 34823 | @if gcc-bootstrap |
1b6c0831 | 34824 | configure-target-libmpx: stage_current |
5286fdef | 34825 | @endif gcc-bootstrap |
1b6c0831 L |
34826 | @if target-libmpx |
34827 | maybe-configure-target-libmpx: configure-target-libmpx | |
34828 | configure-target-libmpx: | |
5286fdef L |
34829 | @r=`${PWD_COMMAND}`; export r; \ |
34830 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 | 34831 | echo "Checking multilib configuration for libmpx..."; \ |
22121df0 L |
34832 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \ |
34833 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \ | |
1b6c0831 L |
34834 | if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \ |
34835 | if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \ | |
34836 | rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \ | |
5286fdef | 34837 | else \ |
1b6c0831 L |
34838 | rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \ |
34839 | mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \ | |
5286fdef L |
34840 | fi; \ |
34841 | else \ | |
1b6c0831 | 34842 | mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \ |
5286fdef | 34843 | fi; \ |
1b6c0831 | 34844 | test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \ |
22121df0 | 34845 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \ |
1b6c0831 L |
34846 | $(NORMAL_TARGET_EXPORTS) \ |
34847 | echo Configuring in $(TARGET_SUBDIR)/libmpx; \ | |
34848 | cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \ | |
5286fdef L |
34849 | case $(srcdir) in \ |
34850 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
1b6c0831 | 34851 | *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \ |
5286fdef L |
34852 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
34853 | esac; \ | |
1b6c0831 | 34854 | module_srcdir=libmpx; \ |
5286fdef | 34855 | rm -f no-such-file || : ; \ |
1b6c0831 L |
34856 | CONFIG_SITE=no-such-file $(SHELL) \ |
34857 | $$s/$$module_srcdir/configure \ | |
34858 | --srcdir=$${topdir}/$$module_srcdir \ | |
5286fdef | 34859 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 34860 | --target=${target_alias} \ |
5286fdef | 34861 | || exit 1 |
1b6c0831 | 34862 | @endif target-libmpx |
5286fdef L |
34863 | |
34864 | ||
34865 | ||
1b6c0831 L |
34866 | .PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx |
34867 | maybe-configure-stage1-target-libmpx: | |
34868 | @if target-libmpx-bootstrap | |
34869 | maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx | |
34870 | configure-stage1-target-libmpx: | |
5eb08693 | 34871 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
1b6c0831 | 34872 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx |
5eb08693 L |
34873 | @r=`${PWD_COMMAND}`; export r; \ |
34874 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34875 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
1b6c0831 | 34876 | echo "Checking multilib configuration for libmpx..."; \ |
22121df0 | 34877 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
34878 | if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \ |
34879 | if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \ | |
34880 | rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \ | |
5eb08693 | 34881 | else \ |
1b6c0831 L |
34882 | rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \ |
34883 | mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \ | |
5eb08693 L |
34884 | fi; \ |
34885 | else \ | |
1b6c0831 | 34886 | mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \ |
5eb08693 | 34887 | fi; \ |
1b6c0831 L |
34888 | test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \ |
34889 | $(NORMAL_TARGET_EXPORTS) \ | |
5eb08693 L |
34890 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ |
34891 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
34892 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
34893 | echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx; \ |
34894 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \ | |
1b6c0831 | 34895 | cd $(TARGET_SUBDIR)/libmpx || exit 1; \ |
5eb08693 L |
34896 | case $(srcdir) in \ |
34897 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
1b6c0831 | 34898 | *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \ |
5eb08693 L |
34899 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
34900 | esac; \ | |
1b6c0831 L |
34901 | module_srcdir=libmpx; \ |
34902 | $(SHELL) $$s/$$module_srcdir/configure \ | |
34903 | --srcdir=$${topdir}/$$module_srcdir \ | |
5eb08693 | 34904 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 L |
34905 | --target=${target_alias} \ |
34906 | \ | |
5eb08693 | 34907 | $(STAGE1_CONFIGURE_FLAGS) |
1b6c0831 | 34908 | @endif target-libmpx-bootstrap |
5eb08693 | 34909 | |
1b6c0831 L |
34910 | .PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx |
34911 | maybe-configure-stage2-target-libmpx: | |
34912 | @if target-libmpx-bootstrap | |
34913 | maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx | |
34914 | configure-stage2-target-libmpx: | |
5eb08693 | 34915 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
1b6c0831 | 34916 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx |
5eb08693 L |
34917 | @r=`${PWD_COMMAND}`; export r; \ |
34918 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34919 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
1b6c0831 | 34920 | echo "Checking multilib configuration for libmpx..."; \ |
22121df0 | 34921 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
34922 | if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \ |
34923 | if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \ | |
34924 | rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \ | |
5eb08693 | 34925 | else \ |
1b6c0831 L |
34926 | rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \ |
34927 | mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \ | |
5eb08693 L |
34928 | fi; \ |
34929 | else \ | |
1b6c0831 | 34930 | mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \ |
5eb08693 | 34931 | fi; \ |
1b6c0831 L |
34932 | test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \ |
34933 | $(NORMAL_TARGET_EXPORTS) \ | |
5eb08693 L |
34934 | \ |
34935 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
34936 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
34937 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
34938 | echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx; \ |
34939 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \ | |
1b6c0831 | 34940 | cd $(TARGET_SUBDIR)/libmpx || exit 1; \ |
5eb08693 L |
34941 | case $(srcdir) in \ |
34942 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
1b6c0831 | 34943 | *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \ |
5eb08693 L |
34944 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
34945 | esac; \ | |
1b6c0831 L |
34946 | module_srcdir=libmpx; \ |
34947 | $(SHELL) $$s/$$module_srcdir/configure \ | |
34948 | --srcdir=$${topdir}/$$module_srcdir \ | |
5eb08693 | 34949 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 34950 | --target=${target_alias} \ |
22121df0 | 34951 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
5eb08693 | 34952 | $(STAGE2_CONFIGURE_FLAGS) |
1b6c0831 | 34953 | @endif target-libmpx-bootstrap |
5eb08693 | 34954 | |
1b6c0831 L |
34955 | .PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx |
34956 | maybe-configure-stage3-target-libmpx: | |
34957 | @if target-libmpx-bootstrap | |
34958 | maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx | |
34959 | configure-stage3-target-libmpx: | |
5eb08693 | 34960 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
1b6c0831 | 34961 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx |
5eb08693 L |
34962 | @r=`${PWD_COMMAND}`; export r; \ |
34963 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34964 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
1b6c0831 | 34965 | echo "Checking multilib configuration for libmpx..."; \ |
22121df0 | 34966 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
34967 | if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \ |
34968 | if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \ | |
34969 | rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \ | |
5eb08693 | 34970 | else \ |
1b6c0831 L |
34971 | rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \ |
34972 | mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \ | |
5eb08693 L |
34973 | fi; \ |
34974 | else \ | |
1b6c0831 | 34975 | mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \ |
5eb08693 | 34976 | fi; \ |
1b6c0831 L |
34977 | test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \ |
34978 | $(NORMAL_TARGET_EXPORTS) \ | |
5eb08693 L |
34979 | \ |
34980 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
34981 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
34982 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
34983 | echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx; \ |
34984 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \ | |
1b6c0831 | 34985 | cd $(TARGET_SUBDIR)/libmpx || exit 1; \ |
5eb08693 L |
34986 | case $(srcdir) in \ |
34987 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
1b6c0831 | 34988 | *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \ |
5eb08693 L |
34989 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
34990 | esac; \ | |
1b6c0831 L |
34991 | module_srcdir=libmpx; \ |
34992 | $(SHELL) $$s/$$module_srcdir/configure \ | |
34993 | --srcdir=$${topdir}/$$module_srcdir \ | |
5eb08693 | 34994 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 34995 | --target=${target_alias} \ |
22121df0 | 34996 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
5eb08693 | 34997 | $(STAGE3_CONFIGURE_FLAGS) |
1b6c0831 | 34998 | @endif target-libmpx-bootstrap |
5eb08693 | 34999 | |
1b6c0831 L |
35000 | .PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx |
35001 | maybe-configure-stage4-target-libmpx: | |
35002 | @if target-libmpx-bootstrap | |
35003 | maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx | |
35004 | configure-stage4-target-libmpx: | |
5eb08693 | 35005 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
1b6c0831 | 35006 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx |
5eb08693 L |
35007 | @r=`${PWD_COMMAND}`; export r; \ |
35008 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35009 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
1b6c0831 | 35010 | echo "Checking multilib configuration for libmpx..."; \ |
22121df0 | 35011 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
35012 | if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \ |
35013 | if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \ | |
35014 | rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \ | |
5eb08693 | 35015 | else \ |
1b6c0831 L |
35016 | rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \ |
35017 | mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \ | |
5eb08693 L |
35018 | fi; \ |
35019 | else \ | |
1b6c0831 | 35020 | mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \ |
5eb08693 | 35021 | fi; \ |
1b6c0831 L |
35022 | test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \ |
35023 | $(NORMAL_TARGET_EXPORTS) \ | |
5eb08693 L |
35024 | \ |
35025 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
35026 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
35027 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
35028 | echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx; \ |
35029 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \ | |
1b6c0831 | 35030 | cd $(TARGET_SUBDIR)/libmpx || exit 1; \ |
5eb08693 L |
35031 | case $(srcdir) in \ |
35032 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
1b6c0831 | 35033 | *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \ |
5eb08693 L |
35034 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
35035 | esac; \ | |
1b6c0831 L |
35036 | module_srcdir=libmpx; \ |
35037 | $(SHELL) $$s/$$module_srcdir/configure \ | |
35038 | --srcdir=$${topdir}/$$module_srcdir \ | |
5eb08693 | 35039 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 35040 | --target=${target_alias} \ |
22121df0 | 35041 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
5eb08693 | 35042 | $(STAGE4_CONFIGURE_FLAGS) |
1b6c0831 | 35043 | @endif target-libmpx-bootstrap |
5eb08693 | 35044 | |
1b6c0831 L |
35045 | .PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx |
35046 | maybe-configure-stageprofile-target-libmpx: | |
35047 | @if target-libmpx-bootstrap | |
35048 | maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx | |
35049 | configure-stageprofile-target-libmpx: | |
5eb08693 | 35050 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
1b6c0831 | 35051 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx |
5eb08693 L |
35052 | @r=`${PWD_COMMAND}`; export r; \ |
35053 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35054 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
1b6c0831 | 35055 | echo "Checking multilib configuration for libmpx..."; \ |
22121df0 | 35056 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
35057 | if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \ |
35058 | if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \ | |
35059 | rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \ | |
5eb08693 | 35060 | else \ |
1b6c0831 L |
35061 | rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \ |
35062 | mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \ | |
5eb08693 L |
35063 | fi; \ |
35064 | else \ | |
1b6c0831 | 35065 | mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \ |
5eb08693 | 35066 | fi; \ |
1b6c0831 L |
35067 | test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \ |
35068 | $(NORMAL_TARGET_EXPORTS) \ | |
5eb08693 L |
35069 | \ |
35070 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
35071 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
35072 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
35073 | echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx; \ |
35074 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \ | |
1b6c0831 | 35075 | cd $(TARGET_SUBDIR)/libmpx || exit 1; \ |
5eb08693 L |
35076 | case $(srcdir) in \ |
35077 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
1b6c0831 | 35078 | *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \ |
5eb08693 L |
35079 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
35080 | esac; \ | |
1b6c0831 L |
35081 | module_srcdir=libmpx; \ |
35082 | $(SHELL) $$s/$$module_srcdir/configure \ | |
35083 | --srcdir=$${topdir}/$$module_srcdir \ | |
5eb08693 | 35084 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 35085 | --target=${target_alias} \ |
22121df0 | 35086 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
5eb08693 | 35087 | $(STAGEprofile_CONFIGURE_FLAGS) |
1b6c0831 | 35088 | @endif target-libmpx-bootstrap |
5eb08693 | 35089 | |
1b6c0831 L |
35090 | .PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx |
35091 | maybe-configure-stagefeedback-target-libmpx: | |
35092 | @if target-libmpx-bootstrap | |
35093 | maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx | |
35094 | configure-stagefeedback-target-libmpx: | |
5eb08693 | 35095 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
1b6c0831 | 35096 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx |
5eb08693 L |
35097 | @r=`${PWD_COMMAND}`; export r; \ |
35098 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35099 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
1b6c0831 | 35100 | echo "Checking multilib configuration for libmpx..."; \ |
22121df0 | 35101 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \ |
1b6c0831 L |
35102 | if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \ |
35103 | if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \ | |
35104 | rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \ | |
5eb08693 | 35105 | else \ |
1b6c0831 L |
35106 | rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \ |
35107 | mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \ | |
5eb08693 L |
35108 | fi; \ |
35109 | else \ | |
1b6c0831 | 35110 | mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \ |
5eb08693 | 35111 | fi; \ |
1b6c0831 L |
35112 | test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \ |
35113 | $(NORMAL_TARGET_EXPORTS) \ | |
5eb08693 L |
35114 | \ |
35115 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
35116 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
35117 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
35118 | echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx; \ |
35119 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \ | |
1b6c0831 | 35120 | cd $(TARGET_SUBDIR)/libmpx || exit 1; \ |
5eb08693 L |
35121 | case $(srcdir) in \ |
35122 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
1b6c0831 | 35123 | *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \ |
5eb08693 L |
35124 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
35125 | esac; \ | |
1b6c0831 L |
35126 | module_srcdir=libmpx; \ |
35127 | $(SHELL) $$s/$$module_srcdir/configure \ | |
35128 | --srcdir=$${topdir}/$$module_srcdir \ | |
5eb08693 | 35129 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 35130 | --target=${target_alias} \ |
22121df0 | 35131 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
5eb08693 | 35132 | $(STAGEfeedback_CONFIGURE_FLAGS) |
1b6c0831 | 35133 | @endif target-libmpx-bootstrap |
5eb08693 L |
35134 | |
35135 | ||
35136 | ||
5286fdef L |
35137 | |
35138 | ||
1b6c0831 L |
35139 | .PHONY: all-target-libmpx maybe-all-target-libmpx |
35140 | maybe-all-target-libmpx: | |
5286fdef | 35141 | @if gcc-bootstrap |
1b6c0831 | 35142 | all-target-libmpx: stage_current |
5286fdef | 35143 | @endif gcc-bootstrap |
1b6c0831 L |
35144 | @if target-libmpx |
35145 | TARGET-target-libmpx=all | |
35146 | maybe-all-target-libmpx: all-target-libmpx | |
35147 | all-target-libmpx: configure-target-libmpx | |
5286fdef L |
35148 | @r=`${PWD_COMMAND}`; export r; \ |
35149 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 L |
35150 | $(NORMAL_TARGET_EXPORTS) \ |
35151 | (cd $(TARGET_SUBDIR)/libmpx && \ | |
35152 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ | |
35153 | $(TARGET-target-libmpx)) | |
35154 | @endif target-libmpx | |
5286fdef L |
35155 | |
35156 | ||
35157 | ||
1b6c0831 L |
35158 | .PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx |
35159 | .PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx | |
35160 | maybe-all-stage1-target-libmpx: | |
35161 | maybe-clean-stage1-target-libmpx: | |
35162 | @if target-libmpx-bootstrap | |
35163 | maybe-all-stage1-target-libmpx: all-stage1-target-libmpx | |
35164 | all-stage1: all-stage1-target-libmpx | |
35165 | TARGET-stage1-target-libmpx = $(TARGET-target-libmpx) | |
35166 | all-stage1-target-libmpx: configure-stage1-target-libmpx | |
5eb08693 L |
35167 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
35168 | @r=`${PWD_COMMAND}`; export r; \ | |
35169 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35170 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
1b6c0831 L |
35171 | $(NORMAL_TARGET_EXPORTS) \ |
35172 | cd $(TARGET_SUBDIR)/libmpx && \ | |
05a13254 | 35173 | \ |
5eb08693 L |
35174 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
35175 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
35176 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
35177 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
35178 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
35179 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
35180 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
1b6c0831 | 35181 | $(EXTRA_TARGET_FLAGS) \ |
5eb08693 | 35182 | \ |
05a13254 | 35183 | TFLAGS="$(STAGE1_TFLAGS)" \ |
1b6c0831 | 35184 | $(TARGET-stage1-target-libmpx) |
5eb08693 | 35185 | |
1b6c0831 L |
35186 | maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx |
35187 | clean-stage1: clean-stage1-target-libmpx | |
35188 | clean-stage1-target-libmpx: | |
5eb08693 | 35189 | @if [ $(current_stage) = stage1 ]; then \ |
1b6c0831 | 35190 | [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5eb08693 | 35191 | else \ |
1b6c0831 | 35192 | [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \ |
5eb08693 L |
35193 | $(MAKE) stage1-start; \ |
35194 | fi; \ | |
1b6c0831 L |
35195 | cd $(TARGET_SUBDIR)/libmpx && \ |
35196 | $(MAKE) $(EXTRA_TARGET_FLAGS) \ | |
5eb08693 | 35197 | clean |
1b6c0831 L |
35198 | @endif target-libmpx-bootstrap |
35199 | ||
35200 | ||
35201 | .PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx | |
35202 | .PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx | |
35203 | maybe-all-stage2-target-libmpx: | |
35204 | maybe-clean-stage2-target-libmpx: | |
35205 | @if target-libmpx-bootstrap | |
35206 | maybe-all-stage2-target-libmpx: all-stage2-target-libmpx | |
35207 | all-stage2: all-stage2-target-libmpx | |
35208 | TARGET-stage2-target-libmpx = $(TARGET-target-libmpx) | |
35209 | all-stage2-target-libmpx: configure-stage2-target-libmpx | |
5eb08693 L |
35210 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
35211 | @r=`${PWD_COMMAND}`; export r; \ | |
35212 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35213 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
1b6c0831 | 35214 | $(NORMAL_TARGET_EXPORTS) \ |
5eb08693 | 35215 | \ |
1b6c0831 | 35216 | cd $(TARGET_SUBDIR)/libmpx && \ |
05a13254 | 35217 | \ |
5eb08693 L |
35218 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
35219 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
35220 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
35221 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
35222 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
35223 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
35224 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
1b6c0831 | 35225 | $(EXTRA_TARGET_FLAGS) \ |
05a13254 | 35226 | TFLAGS="$(STAGE2_TFLAGS)" \ |
1b6c0831 | 35227 | $(TARGET-stage2-target-libmpx) |
5eb08693 | 35228 | |
1b6c0831 L |
35229 | maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx |
35230 | clean-stage2: clean-stage2-target-libmpx | |
35231 | clean-stage2-target-libmpx: | |
5eb08693 | 35232 | @if [ $(current_stage) = stage2 ]; then \ |
1b6c0831 | 35233 | [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5eb08693 | 35234 | else \ |
1b6c0831 | 35235 | [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \ |
5eb08693 L |
35236 | $(MAKE) stage2-start; \ |
35237 | fi; \ | |
1b6c0831 L |
35238 | cd $(TARGET_SUBDIR)/libmpx && \ |
35239 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean | |
35240 | @endif target-libmpx-bootstrap | |
35241 | ||
35242 | ||
35243 | .PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx | |
35244 | .PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx | |
35245 | maybe-all-stage3-target-libmpx: | |
35246 | maybe-clean-stage3-target-libmpx: | |
35247 | @if target-libmpx-bootstrap | |
35248 | maybe-all-stage3-target-libmpx: all-stage3-target-libmpx | |
35249 | all-stage3: all-stage3-target-libmpx | |
35250 | TARGET-stage3-target-libmpx = $(TARGET-target-libmpx) | |
35251 | all-stage3-target-libmpx: configure-stage3-target-libmpx | |
5eb08693 L |
35252 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
35253 | @r=`${PWD_COMMAND}`; export r; \ | |
35254 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35255 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
1b6c0831 | 35256 | $(NORMAL_TARGET_EXPORTS) \ |
5eb08693 | 35257 | \ |
1b6c0831 | 35258 | cd $(TARGET_SUBDIR)/libmpx && \ |
05a13254 | 35259 | \ |
5eb08693 L |
35260 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
35261 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
35262 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
35263 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
35264 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
35265 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
35266 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
1b6c0831 | 35267 | $(EXTRA_TARGET_FLAGS) \ |
05a13254 | 35268 | TFLAGS="$(STAGE3_TFLAGS)" \ |
1b6c0831 | 35269 | $(TARGET-stage3-target-libmpx) |
5eb08693 | 35270 | |
1b6c0831 L |
35271 | maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx |
35272 | clean-stage3: clean-stage3-target-libmpx | |
35273 | clean-stage3-target-libmpx: | |
5eb08693 | 35274 | @if [ $(current_stage) = stage3 ]; then \ |
1b6c0831 | 35275 | [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5eb08693 | 35276 | else \ |
1b6c0831 | 35277 | [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \ |
5eb08693 L |
35278 | $(MAKE) stage3-start; \ |
35279 | fi; \ | |
1b6c0831 L |
35280 | cd $(TARGET_SUBDIR)/libmpx && \ |
35281 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean | |
35282 | @endif target-libmpx-bootstrap | |
35283 | ||
35284 | ||
35285 | .PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx | |
35286 | .PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx | |
35287 | maybe-all-stage4-target-libmpx: | |
35288 | maybe-clean-stage4-target-libmpx: | |
35289 | @if target-libmpx-bootstrap | |
35290 | maybe-all-stage4-target-libmpx: all-stage4-target-libmpx | |
35291 | all-stage4: all-stage4-target-libmpx | |
35292 | TARGET-stage4-target-libmpx = $(TARGET-target-libmpx) | |
35293 | all-stage4-target-libmpx: configure-stage4-target-libmpx | |
5eb08693 L |
35294 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
35295 | @r=`${PWD_COMMAND}`; export r; \ | |
35296 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35297 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
1b6c0831 | 35298 | $(NORMAL_TARGET_EXPORTS) \ |
5eb08693 | 35299 | \ |
1b6c0831 | 35300 | cd $(TARGET_SUBDIR)/libmpx && \ |
05a13254 | 35301 | \ |
5eb08693 L |
35302 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
35303 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
35304 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
35305 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
35306 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
35307 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
35308 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
1b6c0831 | 35309 | $(EXTRA_TARGET_FLAGS) \ |
05a13254 | 35310 | TFLAGS="$(STAGE4_TFLAGS)" \ |
1b6c0831 | 35311 | $(TARGET-stage4-target-libmpx) |
5eb08693 | 35312 | |
1b6c0831 L |
35313 | maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx |
35314 | clean-stage4: clean-stage4-target-libmpx | |
35315 | clean-stage4-target-libmpx: | |
5eb08693 | 35316 | @if [ $(current_stage) = stage4 ]; then \ |
1b6c0831 | 35317 | [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5eb08693 | 35318 | else \ |
1b6c0831 | 35319 | [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \ |
5eb08693 L |
35320 | $(MAKE) stage4-start; \ |
35321 | fi; \ | |
1b6c0831 L |
35322 | cd $(TARGET_SUBDIR)/libmpx && \ |
35323 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean | |
35324 | @endif target-libmpx-bootstrap | |
35325 | ||
35326 | ||
35327 | .PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx | |
35328 | .PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx | |
35329 | maybe-all-stageprofile-target-libmpx: | |
35330 | maybe-clean-stageprofile-target-libmpx: | |
35331 | @if target-libmpx-bootstrap | |
35332 | maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx | |
35333 | all-stageprofile: all-stageprofile-target-libmpx | |
35334 | TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx) | |
35335 | all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx | |
5eb08693 L |
35336 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
35337 | @r=`${PWD_COMMAND}`; export r; \ | |
35338 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35339 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
1b6c0831 | 35340 | $(NORMAL_TARGET_EXPORTS) \ |
5eb08693 | 35341 | \ |
1b6c0831 | 35342 | cd $(TARGET_SUBDIR)/libmpx && \ |
05a13254 | 35343 | \ |
5eb08693 L |
35344 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
35345 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
35346 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
35347 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
35348 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
35349 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
35350 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
1b6c0831 | 35351 | $(EXTRA_TARGET_FLAGS) \ |
05a13254 | 35352 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
1b6c0831 | 35353 | $(TARGET-stageprofile-target-libmpx) |
5eb08693 | 35354 | |
1b6c0831 L |
35355 | maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx |
35356 | clean-stageprofile: clean-stageprofile-target-libmpx | |
35357 | clean-stageprofile-target-libmpx: | |
5eb08693 | 35358 | @if [ $(current_stage) = stageprofile ]; then \ |
1b6c0831 | 35359 | [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5eb08693 | 35360 | else \ |
1b6c0831 | 35361 | [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \ |
5eb08693 L |
35362 | $(MAKE) stageprofile-start; \ |
35363 | fi; \ | |
1b6c0831 L |
35364 | cd $(TARGET_SUBDIR)/libmpx && \ |
35365 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean | |
35366 | @endif target-libmpx-bootstrap | |
35367 | ||
35368 | ||
35369 | .PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx | |
35370 | .PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx | |
35371 | maybe-all-stagefeedback-target-libmpx: | |
35372 | maybe-clean-stagefeedback-target-libmpx: | |
35373 | @if target-libmpx-bootstrap | |
35374 | maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx | |
35375 | all-stagefeedback: all-stagefeedback-target-libmpx | |
35376 | TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx) | |
35377 | all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx | |
5eb08693 L |
35378 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
35379 | @r=`${PWD_COMMAND}`; export r; \ | |
35380 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35381 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
1b6c0831 | 35382 | $(NORMAL_TARGET_EXPORTS) \ |
5eb08693 | 35383 | \ |
1b6c0831 | 35384 | cd $(TARGET_SUBDIR)/libmpx && \ |
05a13254 | 35385 | \ |
5eb08693 L |
35386 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
35387 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
35388 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
35389 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
35390 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
35391 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
35392 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
1b6c0831 | 35393 | $(EXTRA_TARGET_FLAGS) \ |
05a13254 | 35394 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
1b6c0831 | 35395 | $(TARGET-stagefeedback-target-libmpx) |
5eb08693 | 35396 | |
1b6c0831 L |
35397 | maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx |
35398 | clean-stagefeedback: clean-stagefeedback-target-libmpx | |
35399 | clean-stagefeedback-target-libmpx: | |
5eb08693 | 35400 | @if [ $(current_stage) = stagefeedback ]; then \ |
1b6c0831 | 35401 | [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5eb08693 | 35402 | else \ |
1b6c0831 | 35403 | [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \ |
5eb08693 L |
35404 | $(MAKE) stagefeedback-start; \ |
35405 | fi; \ | |
1b6c0831 L |
35406 | cd $(TARGET_SUBDIR)/libmpx && \ |
35407 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean | |
35408 | @endif target-libmpx-bootstrap | |
5eb08693 L |
35409 | |
35410 | ||
35411 | ||
35412 | ||
5286fdef L |
35413 | |
35414 | ||
1b6c0831 L |
35415 | .PHONY: check-target-libmpx maybe-check-target-libmpx |
35416 | maybe-check-target-libmpx: | |
35417 | @if target-libmpx | |
35418 | maybe-check-target-libmpx: check-target-libmpx | |
5286fdef | 35419 | |
1b6c0831 | 35420 | check-target-libmpx: |
5286fdef L |
35421 | @: $(MAKE); $(unstage) |
35422 | @r=`${PWD_COMMAND}`; export r; \ | |
35423 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 L |
35424 | $(NORMAL_TARGET_EXPORTS) \ |
35425 | (cd $(TARGET_SUBDIR)/libmpx && \ | |
35426 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
5286fdef | 35427 | |
1b6c0831 | 35428 | @endif target-libmpx |
5286fdef | 35429 | |
1b6c0831 L |
35430 | .PHONY: install-target-libmpx maybe-install-target-libmpx |
35431 | maybe-install-target-libmpx: | |
35432 | @if target-libmpx | |
35433 | maybe-install-target-libmpx: install-target-libmpx | |
5286fdef | 35434 | |
1b6c0831 | 35435 | install-target-libmpx: installdirs |
5286fdef L |
35436 | @: $(MAKE); $(unstage) |
35437 | @r=`${PWD_COMMAND}`; export r; \ | |
35438 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 L |
35439 | $(NORMAL_TARGET_EXPORTS) \ |
35440 | (cd $(TARGET_SUBDIR)/libmpx && \ | |
5286fdef L |
35441 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
35442 | ||
1b6c0831 | 35443 | @endif target-libmpx |
5286fdef | 35444 | |
1b6c0831 L |
35445 | .PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx |
35446 | maybe-install-strip-target-libmpx: | |
35447 | @if target-libmpx | |
35448 | maybe-install-strip-target-libmpx: install-strip-target-libmpx | |
5286fdef | 35449 | |
1b6c0831 | 35450 | install-strip-target-libmpx: installdirs |
5286fdef L |
35451 | @: $(MAKE); $(unstage) |
35452 | @r=`${PWD_COMMAND}`; export r; \ | |
35453 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 L |
35454 | $(NORMAL_TARGET_EXPORTS) \ |
35455 | (cd $(TARGET_SUBDIR)/libmpx && \ | |
5286fdef L |
35456 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) |
35457 | ||
1b6c0831 | 35458 | @endif target-libmpx |
5286fdef L |
35459 | |
35460 | # Other targets (info, dvi, pdf, etc.) | |
35461 | ||
1b6c0831 L |
35462 | .PHONY: maybe-info-target-libmpx info-target-libmpx |
35463 | maybe-info-target-libmpx: | |
35464 | @if target-libmpx | |
35465 | maybe-info-target-libmpx: info-target-libmpx | |
5286fdef | 35466 | |
1b6c0831 L |
35467 | info-target-libmpx: \ |
35468 | configure-target-libmpx | |
5286fdef | 35469 | @: $(MAKE); $(unstage) |
22121df0 | 35470 | @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5286fdef L |
35471 | r=`${PWD_COMMAND}`; export r; \ |
35472 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 | 35473 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 35474 | echo "Doing info in $(TARGET_SUBDIR)/libmpx"; \ |
5286fdef L |
35475 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
35476 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35477 | done; \ | |
1b6c0831 | 35478 | (cd $(TARGET_SUBDIR)/libmpx && \ |
5286fdef L |
35479 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
35480 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35481 | "RANLIB=$${RANLIB}" \ | |
35482 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
35483 | info) \ | |
35484 | || exit 1 | |
35485 | ||
1b6c0831 | 35486 | @endif target-libmpx |
5286fdef | 35487 | |
1b6c0831 L |
35488 | .PHONY: maybe-dvi-target-libmpx dvi-target-libmpx |
35489 | maybe-dvi-target-libmpx: | |
35490 | @if target-libmpx | |
35491 | maybe-dvi-target-libmpx: dvi-target-libmpx | |
5286fdef | 35492 | |
1b6c0831 L |
35493 | dvi-target-libmpx: \ |
35494 | configure-target-libmpx | |
5286fdef | 35495 | @: $(MAKE); $(unstage) |
22121df0 | 35496 | @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5286fdef L |
35497 | r=`${PWD_COMMAND}`; export r; \ |
35498 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 | 35499 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 35500 | echo "Doing dvi in $(TARGET_SUBDIR)/libmpx"; \ |
5286fdef L |
35501 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
35502 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35503 | done; \ | |
1b6c0831 | 35504 | (cd $(TARGET_SUBDIR)/libmpx && \ |
5286fdef L |
35505 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
35506 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35507 | "RANLIB=$${RANLIB}" \ | |
35508 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
35509 | dvi) \ | |
35510 | || exit 1 | |
35511 | ||
1b6c0831 | 35512 | @endif target-libmpx |
5286fdef | 35513 | |
1b6c0831 L |
35514 | .PHONY: maybe-pdf-target-libmpx pdf-target-libmpx |
35515 | maybe-pdf-target-libmpx: | |
35516 | @if target-libmpx | |
35517 | maybe-pdf-target-libmpx: pdf-target-libmpx | |
5286fdef | 35518 | |
1b6c0831 L |
35519 | pdf-target-libmpx: \ |
35520 | configure-target-libmpx | |
5286fdef | 35521 | @: $(MAKE); $(unstage) |
22121df0 | 35522 | @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5286fdef L |
35523 | r=`${PWD_COMMAND}`; export r; \ |
35524 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 | 35525 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 35526 | echo "Doing pdf in $(TARGET_SUBDIR)/libmpx"; \ |
5286fdef L |
35527 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
35528 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35529 | done; \ | |
1b6c0831 | 35530 | (cd $(TARGET_SUBDIR)/libmpx && \ |
5286fdef L |
35531 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
35532 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35533 | "RANLIB=$${RANLIB}" \ | |
35534 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
35535 | pdf) \ | |
35536 | || exit 1 | |
35537 | ||
1b6c0831 | 35538 | @endif target-libmpx |
5286fdef | 35539 | |
1b6c0831 L |
35540 | .PHONY: maybe-html-target-libmpx html-target-libmpx |
35541 | maybe-html-target-libmpx: | |
35542 | @if target-libmpx | |
35543 | maybe-html-target-libmpx: html-target-libmpx | |
5286fdef | 35544 | |
1b6c0831 L |
35545 | html-target-libmpx: \ |
35546 | configure-target-libmpx | |
5286fdef | 35547 | @: $(MAKE); $(unstage) |
22121df0 | 35548 | @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5286fdef L |
35549 | r=`${PWD_COMMAND}`; export r; \ |
35550 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 | 35551 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 35552 | echo "Doing html in $(TARGET_SUBDIR)/libmpx"; \ |
5286fdef L |
35553 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
35554 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35555 | done; \ | |
1b6c0831 | 35556 | (cd $(TARGET_SUBDIR)/libmpx && \ |
5286fdef L |
35557 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
35558 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35559 | "RANLIB=$${RANLIB}" \ | |
35560 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
35561 | html) \ | |
35562 | || exit 1 | |
35563 | ||
1b6c0831 | 35564 | @endif target-libmpx |
5286fdef | 35565 | |
1b6c0831 L |
35566 | .PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx |
35567 | maybe-TAGS-target-libmpx: | |
35568 | @if target-libmpx | |
35569 | maybe-TAGS-target-libmpx: TAGS-target-libmpx | |
5286fdef | 35570 | |
1b6c0831 L |
35571 | TAGS-target-libmpx: \ |
35572 | configure-target-libmpx | |
5286fdef | 35573 | @: $(MAKE); $(unstage) |
22121df0 | 35574 | @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5286fdef L |
35575 | r=`${PWD_COMMAND}`; export r; \ |
35576 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 | 35577 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 35578 | echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx"; \ |
5286fdef L |
35579 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
35580 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35581 | done; \ | |
1b6c0831 | 35582 | (cd $(TARGET_SUBDIR)/libmpx && \ |
5286fdef L |
35583 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
35584 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35585 | "RANLIB=$${RANLIB}" \ | |
35586 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
35587 | TAGS) \ | |
35588 | || exit 1 | |
35589 | ||
1b6c0831 | 35590 | @endif target-libmpx |
5286fdef | 35591 | |
1b6c0831 L |
35592 | .PHONY: maybe-install-info-target-libmpx install-info-target-libmpx |
35593 | maybe-install-info-target-libmpx: | |
35594 | @if target-libmpx | |
35595 | maybe-install-info-target-libmpx: install-info-target-libmpx | |
5286fdef | 35596 | |
1b6c0831 L |
35597 | install-info-target-libmpx: \ |
35598 | configure-target-libmpx \ | |
35599 | info-target-libmpx | |
5286fdef | 35600 | @: $(MAKE); $(unstage) |
22121df0 | 35601 | @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5286fdef L |
35602 | r=`${PWD_COMMAND}`; export r; \ |
35603 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 | 35604 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 35605 | echo "Doing install-info in $(TARGET_SUBDIR)/libmpx"; \ |
5286fdef L |
35606 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
35607 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35608 | done; \ | |
1b6c0831 | 35609 | (cd $(TARGET_SUBDIR)/libmpx && \ |
5286fdef L |
35610 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
35611 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35612 | "RANLIB=$${RANLIB}" \ | |
35613 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
35614 | install-info) \ | |
35615 | || exit 1 | |
35616 | ||
1b6c0831 | 35617 | @endif target-libmpx |
5286fdef | 35618 | |
1b6c0831 L |
35619 | .PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx |
35620 | maybe-install-pdf-target-libmpx: | |
35621 | @if target-libmpx | |
35622 | maybe-install-pdf-target-libmpx: install-pdf-target-libmpx | |
5286fdef | 35623 | |
1b6c0831 L |
35624 | install-pdf-target-libmpx: \ |
35625 | configure-target-libmpx \ | |
35626 | pdf-target-libmpx | |
5286fdef | 35627 | @: $(MAKE); $(unstage) |
22121df0 | 35628 | @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5286fdef L |
35629 | r=`${PWD_COMMAND}`; export r; \ |
35630 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 | 35631 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 35632 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx"; \ |
5286fdef L |
35633 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
35634 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35635 | done; \ | |
1b6c0831 | 35636 | (cd $(TARGET_SUBDIR)/libmpx && \ |
5286fdef L |
35637 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
35638 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35639 | "RANLIB=$${RANLIB}" \ | |
35640 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
35641 | install-pdf) \ | |
35642 | || exit 1 | |
35643 | ||
1b6c0831 | 35644 | @endif target-libmpx |
5286fdef | 35645 | |
1b6c0831 L |
35646 | .PHONY: maybe-install-html-target-libmpx install-html-target-libmpx |
35647 | maybe-install-html-target-libmpx: | |
35648 | @if target-libmpx | |
35649 | maybe-install-html-target-libmpx: install-html-target-libmpx | |
5286fdef | 35650 | |
1b6c0831 L |
35651 | install-html-target-libmpx: \ |
35652 | configure-target-libmpx \ | |
35653 | html-target-libmpx | |
5286fdef | 35654 | @: $(MAKE); $(unstage) |
22121df0 | 35655 | @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5286fdef L |
35656 | r=`${PWD_COMMAND}`; export r; \ |
35657 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 | 35658 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 35659 | echo "Doing install-html in $(TARGET_SUBDIR)/libmpx"; \ |
5286fdef L |
35660 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
35661 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35662 | done; \ | |
1b6c0831 | 35663 | (cd $(TARGET_SUBDIR)/libmpx && \ |
5286fdef L |
35664 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
35665 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35666 | "RANLIB=$${RANLIB}" \ | |
35667 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
35668 | install-html) \ | |
35669 | || exit 1 | |
35670 | ||
1b6c0831 | 35671 | @endif target-libmpx |
5286fdef | 35672 | |
1b6c0831 L |
35673 | .PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx |
35674 | maybe-installcheck-target-libmpx: | |
35675 | @if target-libmpx | |
35676 | maybe-installcheck-target-libmpx: installcheck-target-libmpx | |
5286fdef | 35677 | |
1b6c0831 L |
35678 | installcheck-target-libmpx: \ |
35679 | configure-target-libmpx | |
5286fdef | 35680 | @: $(MAKE); $(unstage) |
22121df0 | 35681 | @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5286fdef L |
35682 | r=`${PWD_COMMAND}`; export r; \ |
35683 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 | 35684 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 35685 | echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx"; \ |
5286fdef L |
35686 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
35687 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35688 | done; \ | |
1b6c0831 | 35689 | (cd $(TARGET_SUBDIR)/libmpx && \ |
5286fdef L |
35690 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
35691 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35692 | "RANLIB=$${RANLIB}" \ | |
35693 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
35694 | installcheck) \ | |
35695 | || exit 1 | |
35696 | ||
1b6c0831 | 35697 | @endif target-libmpx |
5286fdef | 35698 | |
1b6c0831 L |
35699 | .PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx |
35700 | maybe-mostlyclean-target-libmpx: | |
35701 | @if target-libmpx | |
35702 | maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx | |
5286fdef | 35703 | |
1b6c0831 | 35704 | mostlyclean-target-libmpx: |
5286fdef | 35705 | @: $(MAKE); $(unstage) |
22121df0 | 35706 | @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5286fdef L |
35707 | r=`${PWD_COMMAND}`; export r; \ |
35708 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 | 35709 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 35710 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx"; \ |
5286fdef L |
35711 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
35712 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35713 | done; \ | |
1b6c0831 | 35714 | (cd $(TARGET_SUBDIR)/libmpx && \ |
5286fdef L |
35715 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
35716 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35717 | "RANLIB=$${RANLIB}" \ | |
35718 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
35719 | mostlyclean) \ | |
35720 | || exit 1 | |
35721 | ||
1b6c0831 | 35722 | @endif target-libmpx |
5286fdef | 35723 | |
1b6c0831 L |
35724 | .PHONY: maybe-clean-target-libmpx clean-target-libmpx |
35725 | maybe-clean-target-libmpx: | |
35726 | @if target-libmpx | |
35727 | maybe-clean-target-libmpx: clean-target-libmpx | |
5286fdef | 35728 | |
1b6c0831 | 35729 | clean-target-libmpx: |
5286fdef | 35730 | @: $(MAKE); $(unstage) |
22121df0 | 35731 | @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5286fdef L |
35732 | r=`${PWD_COMMAND}`; export r; \ |
35733 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 | 35734 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 35735 | echo "Doing clean in $(TARGET_SUBDIR)/libmpx"; \ |
5286fdef L |
35736 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
35737 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35738 | done; \ | |
1b6c0831 | 35739 | (cd $(TARGET_SUBDIR)/libmpx && \ |
5286fdef L |
35740 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
35741 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35742 | "RANLIB=$${RANLIB}" \ | |
35743 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
35744 | clean) \ | |
35745 | || exit 1 | |
35746 | ||
1b6c0831 | 35747 | @endif target-libmpx |
5286fdef | 35748 | |
1b6c0831 L |
35749 | .PHONY: maybe-distclean-target-libmpx distclean-target-libmpx |
35750 | maybe-distclean-target-libmpx: | |
35751 | @if target-libmpx | |
35752 | maybe-distclean-target-libmpx: distclean-target-libmpx | |
5286fdef | 35753 | |
1b6c0831 | 35754 | distclean-target-libmpx: |
5286fdef | 35755 | @: $(MAKE); $(unstage) |
22121df0 | 35756 | @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5286fdef L |
35757 | r=`${PWD_COMMAND}`; export r; \ |
35758 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 | 35759 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 35760 | echo "Doing distclean in $(TARGET_SUBDIR)/libmpx"; \ |
5286fdef L |
35761 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
35762 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35763 | done; \ | |
1b6c0831 | 35764 | (cd $(TARGET_SUBDIR)/libmpx && \ |
5286fdef L |
35765 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
35766 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35767 | "RANLIB=$${RANLIB}" \ | |
35768 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
35769 | distclean) \ | |
35770 | || exit 1 | |
35771 | ||
1b6c0831 | 35772 | @endif target-libmpx |
5286fdef | 35773 | |
1b6c0831 L |
35774 | .PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx |
35775 | maybe-maintainer-clean-target-libmpx: | |
35776 | @if target-libmpx | |
35777 | maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx | |
5286fdef | 35778 | |
1b6c0831 | 35779 | maintainer-clean-target-libmpx: |
5286fdef | 35780 | @: $(MAKE); $(unstage) |
22121df0 | 35781 | @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \ |
5286fdef L |
35782 | r=`${PWD_COMMAND}`; export r; \ |
35783 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b6c0831 | 35784 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 35785 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx"; \ |
5286fdef L |
35786 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
35787 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35788 | done; \ | |
1b6c0831 | 35789 | (cd $(TARGET_SUBDIR)/libmpx && \ |
5286fdef L |
35790 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
35791 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35792 | "RANLIB=$${RANLIB}" \ | |
35793 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
35794 | maintainer-clean) \ | |
35795 | || exit 1 | |
35796 | ||
1b6c0831 | 35797 | @endif target-libmpx |
5286fdef L |
35798 | |
35799 | ||
35800 | ||
35801 | ||
35802 | ||
95e43135 JBG |
35803 | .PHONY: configure-target-libvtv maybe-configure-target-libvtv |
35804 | maybe-configure-target-libvtv: | |
35805 | @if gcc-bootstrap | |
35806 | configure-target-libvtv: stage_current | |
35807 | @endif gcc-bootstrap | |
35808 | @if target-libvtv | |
35809 | maybe-configure-target-libvtv: configure-target-libvtv | |
35810 | configure-target-libvtv: | |
35811 | @r=`${PWD_COMMAND}`; export r; \ | |
35812 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35813 | echo "Checking multilib configuration for libvtv..."; \ | |
22121df0 L |
35814 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \ |
35815 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \ | |
95e43135 JBG |
35816 | if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \ |
35817 | if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \ | |
35818 | rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \ | |
35819 | else \ | |
35820 | rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \ | |
35821 | mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \ | |
35822 | fi; \ | |
35823 | else \ | |
35824 | mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \ | |
35825 | fi; \ | |
35826 | test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \ | |
22121df0 | 35827 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \ |
95e43135 JBG |
35828 | $(RAW_CXX_TARGET_EXPORTS) \ |
35829 | echo Configuring in $(TARGET_SUBDIR)/libvtv; \ | |
35830 | cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \ | |
35831 | case $(srcdir) in \ | |
35832 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
35833 | *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \ | |
35834 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
35835 | esac; \ | |
1b6c0831 | 35836 | module_srcdir=libvtv; \ |
95e43135 | 35837 | rm -f no-such-file || : ; \ |
1b6c0831 L |
35838 | CONFIG_SITE=no-such-file $(SHELL) \ |
35839 | $$s/$$module_srcdir/configure \ | |
35840 | --srcdir=$${topdir}/$$module_srcdir \ | |
95e43135 | 35841 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 35842 | --target=${target_alias} \ |
95e43135 JBG |
35843 | || exit 1 |
35844 | @endif target-libvtv | |
35845 | ||
35846 | ||
35847 | ||
35848 | .PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv | |
35849 | maybe-configure-stage1-target-libvtv: | |
35850 | @if target-libvtv-bootstrap | |
35851 | maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv | |
35852 | configure-stage1-target-libvtv: | |
35853 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
35854 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv | |
35855 | @r=`${PWD_COMMAND}`; export r; \ | |
35856 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35857 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
35858 | echo "Checking multilib configuration for libvtv..."; \ | |
22121df0 | 35859 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \ |
95e43135 JBG |
35860 | if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \ |
35861 | if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \ | |
35862 | rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \ | |
35863 | else \ | |
35864 | rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \ | |
35865 | mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \ | |
35866 | fi; \ | |
35867 | else \ | |
35868 | mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \ | |
35869 | fi; \ | |
35870 | test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \ | |
35871 | $(RAW_CXX_TARGET_EXPORTS) \ | |
35872 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
35873 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
35874 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
35875 | echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv; \ |
35876 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \ | |
95e43135 JBG |
35877 | cd $(TARGET_SUBDIR)/libvtv || exit 1; \ |
35878 | case $(srcdir) in \ | |
35879 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
35880 | *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \ | |
35881 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
35882 | esac; \ | |
1b6c0831 L |
35883 | module_srcdir=libvtv; \ |
35884 | $(SHELL) $$s/$$module_srcdir/configure \ | |
35885 | --srcdir=$${topdir}/$$module_srcdir \ | |
95e43135 | 35886 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 L |
35887 | --target=${target_alias} \ |
35888 | \ | |
95e43135 JBG |
35889 | $(STAGE1_CONFIGURE_FLAGS) |
35890 | @endif target-libvtv-bootstrap | |
35891 | ||
35892 | .PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv | |
35893 | maybe-configure-stage2-target-libvtv: | |
35894 | @if target-libvtv-bootstrap | |
35895 | maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv | |
35896 | configure-stage2-target-libvtv: | |
35897 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
35898 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv | |
35899 | @r=`${PWD_COMMAND}`; export r; \ | |
35900 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35901 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
35902 | echo "Checking multilib configuration for libvtv..."; \ | |
22121df0 | 35903 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \ |
95e43135 JBG |
35904 | if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \ |
35905 | if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \ | |
35906 | rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \ | |
35907 | else \ | |
35908 | rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \ | |
35909 | mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \ | |
35910 | fi; \ | |
35911 | else \ | |
35912 | mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \ | |
35913 | fi; \ | |
35914 | test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \ | |
35915 | $(RAW_CXX_TARGET_EXPORTS) \ | |
35916 | \ | |
35917 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
35918 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
35919 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
35920 | echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv; \ |
35921 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \ | |
95e43135 JBG |
35922 | cd $(TARGET_SUBDIR)/libvtv || exit 1; \ |
35923 | case $(srcdir) in \ | |
35924 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
35925 | *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \ | |
35926 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
35927 | esac; \ | |
1b6c0831 L |
35928 | module_srcdir=libvtv; \ |
35929 | $(SHELL) $$s/$$module_srcdir/configure \ | |
35930 | --srcdir=$${topdir}/$$module_srcdir \ | |
95e43135 | 35931 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 35932 | --target=${target_alias} \ |
22121df0 | 35933 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
95e43135 JBG |
35934 | $(STAGE2_CONFIGURE_FLAGS) |
35935 | @endif target-libvtv-bootstrap | |
35936 | ||
35937 | .PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv | |
35938 | maybe-configure-stage3-target-libvtv: | |
35939 | @if target-libvtv-bootstrap | |
35940 | maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv | |
35941 | configure-stage3-target-libvtv: | |
35942 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
35943 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv | |
35944 | @r=`${PWD_COMMAND}`; export r; \ | |
35945 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35946 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
35947 | echo "Checking multilib configuration for libvtv..."; \ | |
22121df0 | 35948 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \ |
95e43135 JBG |
35949 | if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \ |
35950 | if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \ | |
35951 | rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \ | |
35952 | else \ | |
35953 | rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \ | |
35954 | mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \ | |
35955 | fi; \ | |
35956 | else \ | |
35957 | mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \ | |
35958 | fi; \ | |
35959 | test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \ | |
35960 | $(RAW_CXX_TARGET_EXPORTS) \ | |
35961 | \ | |
35962 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
35963 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
35964 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
35965 | echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv; \ |
35966 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \ | |
95e43135 JBG |
35967 | cd $(TARGET_SUBDIR)/libvtv || exit 1; \ |
35968 | case $(srcdir) in \ | |
35969 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
35970 | *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \ | |
35971 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
35972 | esac; \ | |
1b6c0831 L |
35973 | module_srcdir=libvtv; \ |
35974 | $(SHELL) $$s/$$module_srcdir/configure \ | |
35975 | --srcdir=$${topdir}/$$module_srcdir \ | |
95e43135 | 35976 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 35977 | --target=${target_alias} \ |
22121df0 | 35978 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
95e43135 JBG |
35979 | $(STAGE3_CONFIGURE_FLAGS) |
35980 | @endif target-libvtv-bootstrap | |
35981 | ||
35982 | .PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv | |
35983 | maybe-configure-stage4-target-libvtv: | |
35984 | @if target-libvtv-bootstrap | |
35985 | maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv | |
35986 | configure-stage4-target-libvtv: | |
35987 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
35988 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv | |
35989 | @r=`${PWD_COMMAND}`; export r; \ | |
35990 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35991 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
35992 | echo "Checking multilib configuration for libvtv..."; \ | |
22121df0 | 35993 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \ |
95e43135 JBG |
35994 | if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \ |
35995 | if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \ | |
35996 | rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \ | |
35997 | else \ | |
35998 | rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \ | |
35999 | mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \ | |
36000 | fi; \ | |
36001 | else \ | |
36002 | mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \ | |
36003 | fi; \ | |
36004 | test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \ | |
36005 | $(RAW_CXX_TARGET_EXPORTS) \ | |
36006 | \ | |
36007 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
36008 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
36009 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
36010 | echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv; \ |
36011 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \ | |
95e43135 JBG |
36012 | cd $(TARGET_SUBDIR)/libvtv || exit 1; \ |
36013 | case $(srcdir) in \ | |
36014 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
36015 | *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \ | |
36016 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
36017 | esac; \ | |
1b6c0831 L |
36018 | module_srcdir=libvtv; \ |
36019 | $(SHELL) $$s/$$module_srcdir/configure \ | |
36020 | --srcdir=$${topdir}/$$module_srcdir \ | |
95e43135 | 36021 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 36022 | --target=${target_alias} \ |
22121df0 | 36023 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
95e43135 JBG |
36024 | $(STAGE4_CONFIGURE_FLAGS) |
36025 | @endif target-libvtv-bootstrap | |
36026 | ||
36027 | .PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv | |
36028 | maybe-configure-stageprofile-target-libvtv: | |
36029 | @if target-libvtv-bootstrap | |
36030 | maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv | |
36031 | configure-stageprofile-target-libvtv: | |
36032 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
36033 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv | |
36034 | @r=`${PWD_COMMAND}`; export r; \ | |
36035 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36036 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
36037 | echo "Checking multilib configuration for libvtv..."; \ | |
22121df0 | 36038 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \ |
95e43135 JBG |
36039 | if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \ |
36040 | if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \ | |
36041 | rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \ | |
36042 | else \ | |
36043 | rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \ | |
36044 | mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \ | |
36045 | fi; \ | |
36046 | else \ | |
36047 | mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \ | |
36048 | fi; \ | |
36049 | test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \ | |
36050 | $(RAW_CXX_TARGET_EXPORTS) \ | |
36051 | \ | |
36052 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
36053 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
36054 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
36055 | echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv; \ |
36056 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \ | |
95e43135 JBG |
36057 | cd $(TARGET_SUBDIR)/libvtv || exit 1; \ |
36058 | case $(srcdir) in \ | |
36059 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
36060 | *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \ | |
36061 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
36062 | esac; \ | |
1b6c0831 L |
36063 | module_srcdir=libvtv; \ |
36064 | $(SHELL) $$s/$$module_srcdir/configure \ | |
36065 | --srcdir=$${topdir}/$$module_srcdir \ | |
95e43135 | 36066 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 36067 | --target=${target_alias} \ |
22121df0 | 36068 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
95e43135 JBG |
36069 | $(STAGEprofile_CONFIGURE_FLAGS) |
36070 | @endif target-libvtv-bootstrap | |
36071 | ||
36072 | .PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv | |
36073 | maybe-configure-stagefeedback-target-libvtv: | |
36074 | @if target-libvtv-bootstrap | |
36075 | maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv | |
36076 | configure-stagefeedback-target-libvtv: | |
36077 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
36078 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv | |
36079 | @r=`${PWD_COMMAND}`; export r; \ | |
36080 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36081 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
36082 | echo "Checking multilib configuration for libvtv..."; \ | |
22121df0 | 36083 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \ |
95e43135 JBG |
36084 | if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \ |
36085 | if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \ | |
36086 | rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \ | |
36087 | else \ | |
36088 | rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \ | |
36089 | mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \ | |
36090 | fi; \ | |
36091 | else \ | |
36092 | mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \ | |
36093 | fi; \ | |
36094 | test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \ | |
36095 | $(RAW_CXX_TARGET_EXPORTS) \ | |
36096 | \ | |
36097 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
36098 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
36099 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
36100 | echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv; \ |
36101 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \ | |
95e43135 JBG |
36102 | cd $(TARGET_SUBDIR)/libvtv || exit 1; \ |
36103 | case $(srcdir) in \ | |
36104 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
36105 | *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \ | |
36106 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
36107 | esac; \ | |
1b6c0831 L |
36108 | module_srcdir=libvtv; \ |
36109 | $(SHELL) $$s/$$module_srcdir/configure \ | |
36110 | --srcdir=$${topdir}/$$module_srcdir \ | |
95e43135 | 36111 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 36112 | --target=${target_alias} \ |
22121df0 | 36113 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
95e43135 JBG |
36114 | $(STAGEfeedback_CONFIGURE_FLAGS) |
36115 | @endif target-libvtv-bootstrap | |
36116 | ||
36117 | ||
36118 | ||
36119 | ||
36120 | ||
36121 | .PHONY: all-target-libvtv maybe-all-target-libvtv | |
36122 | maybe-all-target-libvtv: | |
36123 | @if gcc-bootstrap | |
36124 | all-target-libvtv: stage_current | |
36125 | @endif gcc-bootstrap | |
36126 | @if target-libvtv | |
36127 | TARGET-target-libvtv=all | |
36128 | maybe-all-target-libvtv: all-target-libvtv | |
36129 | all-target-libvtv: configure-target-libvtv | |
36130 | @r=`${PWD_COMMAND}`; export r; \ | |
36131 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36132 | $(RAW_CXX_TARGET_EXPORTS) \ | |
36133 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36134 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
36135 | $(TARGET-target-libvtv)) | |
36136 | @endif target-libvtv | |
36137 | ||
36138 | ||
36139 | ||
36140 | .PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv | |
36141 | .PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv | |
36142 | maybe-all-stage1-target-libvtv: | |
36143 | maybe-clean-stage1-target-libvtv: | |
36144 | @if target-libvtv-bootstrap | |
36145 | maybe-all-stage1-target-libvtv: all-stage1-target-libvtv | |
36146 | all-stage1: all-stage1-target-libvtv | |
36147 | TARGET-stage1-target-libvtv = $(TARGET-target-libvtv) | |
36148 | all-stage1-target-libvtv: configure-stage1-target-libvtv | |
36149 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
36150 | @r=`${PWD_COMMAND}`; export r; \ | |
36151 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36152 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
36153 | $(RAW_CXX_TARGET_EXPORTS) \ | |
36154 | cd $(TARGET_SUBDIR)/libvtv && \ | |
05a13254 | 36155 | \ |
95e43135 JBG |
36156 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
36157 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
36158 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
36159 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
36160 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
36161 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
36162 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
36163 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
36164 | \ | |
05a13254 | 36165 | TFLAGS="$(STAGE1_TFLAGS)" \ |
95e43135 JBG |
36166 | $(TARGET-stage1-target-libvtv) |
36167 | ||
36168 | maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv | |
36169 | clean-stage1: clean-stage1-target-libvtv | |
36170 | clean-stage1-target-libvtv: | |
36171 | @if [ $(current_stage) = stage1 ]; then \ | |
36172 | [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ | |
36173 | else \ | |
36174 | [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \ | |
36175 | $(MAKE) stage1-start; \ | |
36176 | fi; \ | |
36177 | cd $(TARGET_SUBDIR)/libvtv && \ | |
36178 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
36179 | clean | |
36180 | @endif target-libvtv-bootstrap | |
36181 | ||
36182 | ||
36183 | .PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv | |
36184 | .PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv | |
36185 | maybe-all-stage2-target-libvtv: | |
36186 | maybe-clean-stage2-target-libvtv: | |
36187 | @if target-libvtv-bootstrap | |
36188 | maybe-all-stage2-target-libvtv: all-stage2-target-libvtv | |
36189 | all-stage2: all-stage2-target-libvtv | |
36190 | TARGET-stage2-target-libvtv = $(TARGET-target-libvtv) | |
36191 | all-stage2-target-libvtv: configure-stage2-target-libvtv | |
36192 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
36193 | @r=`${PWD_COMMAND}`; export r; \ | |
36194 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36195 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
36196 | $(RAW_CXX_TARGET_EXPORTS) \ | |
36197 | \ | |
36198 | cd $(TARGET_SUBDIR)/libvtv && \ | |
05a13254 | 36199 | \ |
95e43135 JBG |
36200 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
36201 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
36202 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
36203 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
36204 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
36205 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
36206 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
36207 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 36208 | TFLAGS="$(STAGE2_TFLAGS)" \ |
95e43135 JBG |
36209 | $(TARGET-stage2-target-libvtv) |
36210 | ||
36211 | maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv | |
36212 | clean-stage2: clean-stage2-target-libvtv | |
36213 | clean-stage2-target-libvtv: | |
36214 | @if [ $(current_stage) = stage2 ]; then \ | |
36215 | [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ | |
36216 | else \ | |
36217 | [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \ | |
36218 | $(MAKE) stage2-start; \ | |
36219 | fi; \ | |
36220 | cd $(TARGET_SUBDIR)/libvtv && \ | |
36221 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean | |
36222 | @endif target-libvtv-bootstrap | |
36223 | ||
36224 | ||
36225 | .PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv | |
36226 | .PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv | |
36227 | maybe-all-stage3-target-libvtv: | |
36228 | maybe-clean-stage3-target-libvtv: | |
36229 | @if target-libvtv-bootstrap | |
36230 | maybe-all-stage3-target-libvtv: all-stage3-target-libvtv | |
36231 | all-stage3: all-stage3-target-libvtv | |
36232 | TARGET-stage3-target-libvtv = $(TARGET-target-libvtv) | |
36233 | all-stage3-target-libvtv: configure-stage3-target-libvtv | |
36234 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
36235 | @r=`${PWD_COMMAND}`; export r; \ | |
36236 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36237 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
36238 | $(RAW_CXX_TARGET_EXPORTS) \ | |
36239 | \ | |
36240 | cd $(TARGET_SUBDIR)/libvtv && \ | |
05a13254 | 36241 | \ |
95e43135 JBG |
36242 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
36243 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
36244 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
36245 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
36246 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
36247 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
36248 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
36249 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 36250 | TFLAGS="$(STAGE3_TFLAGS)" \ |
95e43135 JBG |
36251 | $(TARGET-stage3-target-libvtv) |
36252 | ||
36253 | maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv | |
36254 | clean-stage3: clean-stage3-target-libvtv | |
36255 | clean-stage3-target-libvtv: | |
36256 | @if [ $(current_stage) = stage3 ]; then \ | |
36257 | [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ | |
36258 | else \ | |
36259 | [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \ | |
36260 | $(MAKE) stage3-start; \ | |
36261 | fi; \ | |
36262 | cd $(TARGET_SUBDIR)/libvtv && \ | |
36263 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean | |
36264 | @endif target-libvtv-bootstrap | |
36265 | ||
36266 | ||
36267 | .PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv | |
36268 | .PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv | |
36269 | maybe-all-stage4-target-libvtv: | |
36270 | maybe-clean-stage4-target-libvtv: | |
36271 | @if target-libvtv-bootstrap | |
36272 | maybe-all-stage4-target-libvtv: all-stage4-target-libvtv | |
36273 | all-stage4: all-stage4-target-libvtv | |
36274 | TARGET-stage4-target-libvtv = $(TARGET-target-libvtv) | |
36275 | all-stage4-target-libvtv: configure-stage4-target-libvtv | |
36276 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
36277 | @r=`${PWD_COMMAND}`; export r; \ | |
36278 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36279 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
36280 | $(RAW_CXX_TARGET_EXPORTS) \ | |
36281 | \ | |
36282 | cd $(TARGET_SUBDIR)/libvtv && \ | |
05a13254 | 36283 | \ |
95e43135 JBG |
36284 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
36285 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
36286 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
36287 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
36288 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
36289 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
36290 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
36291 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 36292 | TFLAGS="$(STAGE4_TFLAGS)" \ |
95e43135 JBG |
36293 | $(TARGET-stage4-target-libvtv) |
36294 | ||
36295 | maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv | |
36296 | clean-stage4: clean-stage4-target-libvtv | |
36297 | clean-stage4-target-libvtv: | |
36298 | @if [ $(current_stage) = stage4 ]; then \ | |
36299 | [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ | |
36300 | else \ | |
36301 | [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \ | |
36302 | $(MAKE) stage4-start; \ | |
36303 | fi; \ | |
36304 | cd $(TARGET_SUBDIR)/libvtv && \ | |
36305 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean | |
36306 | @endif target-libvtv-bootstrap | |
36307 | ||
36308 | ||
36309 | .PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv | |
36310 | .PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv | |
36311 | maybe-all-stageprofile-target-libvtv: | |
36312 | maybe-clean-stageprofile-target-libvtv: | |
36313 | @if target-libvtv-bootstrap | |
36314 | maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv | |
36315 | all-stageprofile: all-stageprofile-target-libvtv | |
36316 | TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv) | |
36317 | all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv | |
36318 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
36319 | @r=`${PWD_COMMAND}`; export r; \ | |
36320 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36321 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
36322 | $(RAW_CXX_TARGET_EXPORTS) \ | |
36323 | \ | |
36324 | cd $(TARGET_SUBDIR)/libvtv && \ | |
05a13254 | 36325 | \ |
95e43135 JBG |
36326 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
36327 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
36328 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
36329 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
36330 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
36331 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
36332 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
36333 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 36334 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
95e43135 JBG |
36335 | $(TARGET-stageprofile-target-libvtv) |
36336 | ||
36337 | maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv | |
36338 | clean-stageprofile: clean-stageprofile-target-libvtv | |
36339 | clean-stageprofile-target-libvtv: | |
36340 | @if [ $(current_stage) = stageprofile ]; then \ | |
36341 | [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ | |
36342 | else \ | |
36343 | [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \ | |
36344 | $(MAKE) stageprofile-start; \ | |
36345 | fi; \ | |
36346 | cd $(TARGET_SUBDIR)/libvtv && \ | |
36347 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean | |
36348 | @endif target-libvtv-bootstrap | |
36349 | ||
36350 | ||
36351 | .PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv | |
36352 | .PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv | |
36353 | maybe-all-stagefeedback-target-libvtv: | |
36354 | maybe-clean-stagefeedback-target-libvtv: | |
36355 | @if target-libvtv-bootstrap | |
36356 | maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv | |
36357 | all-stagefeedback: all-stagefeedback-target-libvtv | |
36358 | TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv) | |
36359 | all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv | |
36360 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
36361 | @r=`${PWD_COMMAND}`; export r; \ | |
36362 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36363 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
36364 | $(RAW_CXX_TARGET_EXPORTS) \ | |
36365 | \ | |
36366 | cd $(TARGET_SUBDIR)/libvtv && \ | |
05a13254 | 36367 | \ |
95e43135 JBG |
36368 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
36369 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
36370 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
36371 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
36372 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
36373 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
36374 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
36375 | $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \ | |
05a13254 | 36376 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
95e43135 JBG |
36377 | $(TARGET-stagefeedback-target-libvtv) |
36378 | ||
36379 | maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv | |
36380 | clean-stagefeedback: clean-stagefeedback-target-libvtv | |
36381 | clean-stagefeedback-target-libvtv: | |
36382 | @if [ $(current_stage) = stagefeedback ]; then \ | |
36383 | [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ | |
36384 | else \ | |
36385 | [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \ | |
36386 | $(MAKE) stagefeedback-start; \ | |
36387 | fi; \ | |
36388 | cd $(TARGET_SUBDIR)/libvtv && \ | |
36389 | $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean | |
36390 | @endif target-libvtv-bootstrap | |
36391 | ||
36392 | ||
36393 | ||
36394 | ||
36395 | ||
36396 | ||
36397 | .PHONY: check-target-libvtv maybe-check-target-libvtv | |
36398 | maybe-check-target-libvtv: | |
36399 | @if target-libvtv | |
36400 | maybe-check-target-libvtv: check-target-libvtv | |
36401 | ||
36402 | check-target-libvtv: | |
36403 | @: $(MAKE); $(unstage) | |
36404 | @r=`${PWD_COMMAND}`; export r; \ | |
36405 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36406 | $(RAW_CXX_TARGET_EXPORTS) \ | |
36407 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36408 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check) | |
36409 | ||
36410 | @endif target-libvtv | |
36411 | ||
36412 | .PHONY: install-target-libvtv maybe-install-target-libvtv | |
36413 | maybe-install-target-libvtv: | |
36414 | @if target-libvtv | |
36415 | maybe-install-target-libvtv: install-target-libvtv | |
36416 | ||
36417 | install-target-libvtv: installdirs | |
36418 | @: $(MAKE); $(unstage) | |
36419 | @r=`${PWD_COMMAND}`; export r; \ | |
36420 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36421 | $(RAW_CXX_TARGET_EXPORTS) \ | |
36422 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36423 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
36424 | ||
36425 | @endif target-libvtv | |
36426 | ||
36427 | .PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv | |
36428 | maybe-install-strip-target-libvtv: | |
36429 | @if target-libvtv | |
36430 | maybe-install-strip-target-libvtv: install-strip-target-libvtv | |
36431 | ||
36432 | install-strip-target-libvtv: installdirs | |
36433 | @: $(MAKE); $(unstage) | |
36434 | @r=`${PWD_COMMAND}`; export r; \ | |
36435 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36436 | $(RAW_CXX_TARGET_EXPORTS) \ | |
36437 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36438 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) | |
36439 | ||
36440 | @endif target-libvtv | |
36441 | ||
36442 | # Other targets (info, dvi, pdf, etc.) | |
36443 | ||
36444 | .PHONY: maybe-info-target-libvtv info-target-libvtv | |
36445 | maybe-info-target-libvtv: | |
36446 | @if target-libvtv | |
36447 | maybe-info-target-libvtv: info-target-libvtv | |
36448 | ||
36449 | info-target-libvtv: \ | |
36450 | configure-target-libvtv | |
36451 | @: $(MAKE); $(unstage) | |
22121df0 | 36452 | @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ |
95e43135 JBG |
36453 | r=`${PWD_COMMAND}`; export r; \ |
36454 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36455 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 36456 | echo "Doing info in $(TARGET_SUBDIR)/libvtv"; \ |
95e43135 JBG |
36457 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36458 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36459 | done; \ | |
36460 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36461 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36462 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36463 | "RANLIB=$${RANLIB}" \ | |
36464 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36465 | info) \ | |
36466 | || exit 1 | |
36467 | ||
36468 | @endif target-libvtv | |
36469 | ||
36470 | .PHONY: maybe-dvi-target-libvtv dvi-target-libvtv | |
36471 | maybe-dvi-target-libvtv: | |
36472 | @if target-libvtv | |
36473 | maybe-dvi-target-libvtv: dvi-target-libvtv | |
36474 | ||
36475 | dvi-target-libvtv: \ | |
36476 | configure-target-libvtv | |
36477 | @: $(MAKE); $(unstage) | |
22121df0 | 36478 | @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ |
95e43135 JBG |
36479 | r=`${PWD_COMMAND}`; export r; \ |
36480 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36481 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 36482 | echo "Doing dvi in $(TARGET_SUBDIR)/libvtv"; \ |
95e43135 JBG |
36483 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36484 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36485 | done; \ | |
36486 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36487 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36488 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36489 | "RANLIB=$${RANLIB}" \ | |
36490 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36491 | dvi) \ | |
36492 | || exit 1 | |
36493 | ||
36494 | @endif target-libvtv | |
36495 | ||
36496 | .PHONY: maybe-pdf-target-libvtv pdf-target-libvtv | |
36497 | maybe-pdf-target-libvtv: | |
36498 | @if target-libvtv | |
36499 | maybe-pdf-target-libvtv: pdf-target-libvtv | |
36500 | ||
36501 | pdf-target-libvtv: \ | |
36502 | configure-target-libvtv | |
36503 | @: $(MAKE); $(unstage) | |
22121df0 | 36504 | @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ |
95e43135 JBG |
36505 | r=`${PWD_COMMAND}`; export r; \ |
36506 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36507 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 36508 | echo "Doing pdf in $(TARGET_SUBDIR)/libvtv"; \ |
95e43135 JBG |
36509 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36510 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36511 | done; \ | |
36512 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36513 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36514 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36515 | "RANLIB=$${RANLIB}" \ | |
36516 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36517 | pdf) \ | |
36518 | || exit 1 | |
36519 | ||
36520 | @endif target-libvtv | |
36521 | ||
36522 | .PHONY: maybe-html-target-libvtv html-target-libvtv | |
36523 | maybe-html-target-libvtv: | |
36524 | @if target-libvtv | |
36525 | maybe-html-target-libvtv: html-target-libvtv | |
36526 | ||
36527 | html-target-libvtv: \ | |
36528 | configure-target-libvtv | |
36529 | @: $(MAKE); $(unstage) | |
22121df0 | 36530 | @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ |
95e43135 JBG |
36531 | r=`${PWD_COMMAND}`; export r; \ |
36532 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36533 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 36534 | echo "Doing html in $(TARGET_SUBDIR)/libvtv"; \ |
95e43135 JBG |
36535 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36536 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36537 | done; \ | |
36538 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36539 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36540 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36541 | "RANLIB=$${RANLIB}" \ | |
36542 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36543 | html) \ | |
36544 | || exit 1 | |
36545 | ||
36546 | @endif target-libvtv | |
36547 | ||
36548 | .PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv | |
36549 | maybe-TAGS-target-libvtv: | |
36550 | @if target-libvtv | |
36551 | maybe-TAGS-target-libvtv: TAGS-target-libvtv | |
36552 | ||
36553 | TAGS-target-libvtv: \ | |
36554 | configure-target-libvtv | |
36555 | @: $(MAKE); $(unstage) | |
22121df0 | 36556 | @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ |
95e43135 JBG |
36557 | r=`${PWD_COMMAND}`; export r; \ |
36558 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36559 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 36560 | echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv"; \ |
95e43135 JBG |
36561 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36562 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36563 | done; \ | |
36564 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36565 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36566 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36567 | "RANLIB=$${RANLIB}" \ | |
36568 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36569 | TAGS) \ | |
36570 | || exit 1 | |
36571 | ||
36572 | @endif target-libvtv | |
36573 | ||
36574 | .PHONY: maybe-install-info-target-libvtv install-info-target-libvtv | |
36575 | maybe-install-info-target-libvtv: | |
36576 | @if target-libvtv | |
36577 | maybe-install-info-target-libvtv: install-info-target-libvtv | |
36578 | ||
36579 | install-info-target-libvtv: \ | |
36580 | configure-target-libvtv \ | |
36581 | info-target-libvtv | |
36582 | @: $(MAKE); $(unstage) | |
22121df0 | 36583 | @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ |
95e43135 JBG |
36584 | r=`${PWD_COMMAND}`; export r; \ |
36585 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36586 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 36587 | echo "Doing install-info in $(TARGET_SUBDIR)/libvtv"; \ |
95e43135 JBG |
36588 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36589 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36590 | done; \ | |
36591 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36592 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36593 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36594 | "RANLIB=$${RANLIB}" \ | |
36595 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36596 | install-info) \ | |
36597 | || exit 1 | |
36598 | ||
36599 | @endif target-libvtv | |
36600 | ||
36601 | .PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv | |
36602 | maybe-install-pdf-target-libvtv: | |
36603 | @if target-libvtv | |
36604 | maybe-install-pdf-target-libvtv: install-pdf-target-libvtv | |
36605 | ||
36606 | install-pdf-target-libvtv: \ | |
36607 | configure-target-libvtv \ | |
36608 | pdf-target-libvtv | |
36609 | @: $(MAKE); $(unstage) | |
22121df0 | 36610 | @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ |
95e43135 JBG |
36611 | r=`${PWD_COMMAND}`; export r; \ |
36612 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36613 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 36614 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv"; \ |
95e43135 JBG |
36615 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36616 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36617 | done; \ | |
36618 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36619 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36620 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36621 | "RANLIB=$${RANLIB}" \ | |
36622 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36623 | install-pdf) \ | |
36624 | || exit 1 | |
36625 | ||
36626 | @endif target-libvtv | |
36627 | ||
36628 | .PHONY: maybe-install-html-target-libvtv install-html-target-libvtv | |
36629 | maybe-install-html-target-libvtv: | |
36630 | @if target-libvtv | |
36631 | maybe-install-html-target-libvtv: install-html-target-libvtv | |
36632 | ||
36633 | install-html-target-libvtv: \ | |
36634 | configure-target-libvtv \ | |
36635 | html-target-libvtv | |
36636 | @: $(MAKE); $(unstage) | |
22121df0 | 36637 | @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ |
95e43135 JBG |
36638 | r=`${PWD_COMMAND}`; export r; \ |
36639 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36640 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 36641 | echo "Doing install-html in $(TARGET_SUBDIR)/libvtv"; \ |
95e43135 JBG |
36642 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36643 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36644 | done; \ | |
36645 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36646 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36647 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36648 | "RANLIB=$${RANLIB}" \ | |
36649 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36650 | install-html) \ | |
36651 | || exit 1 | |
36652 | ||
36653 | @endif target-libvtv | |
36654 | ||
36655 | .PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv | |
36656 | maybe-installcheck-target-libvtv: | |
36657 | @if target-libvtv | |
36658 | maybe-installcheck-target-libvtv: installcheck-target-libvtv | |
36659 | ||
36660 | installcheck-target-libvtv: \ | |
36661 | configure-target-libvtv | |
36662 | @: $(MAKE); $(unstage) | |
22121df0 | 36663 | @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ |
95e43135 JBG |
36664 | r=`${PWD_COMMAND}`; export r; \ |
36665 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36666 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 36667 | echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv"; \ |
95e43135 JBG |
36668 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36669 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36670 | done; \ | |
36671 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36672 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36673 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36674 | "RANLIB=$${RANLIB}" \ | |
36675 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36676 | installcheck) \ | |
36677 | || exit 1 | |
36678 | ||
36679 | @endif target-libvtv | |
36680 | ||
36681 | .PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv | |
36682 | maybe-mostlyclean-target-libvtv: | |
36683 | @if target-libvtv | |
36684 | maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv | |
36685 | ||
36686 | mostlyclean-target-libvtv: | |
36687 | @: $(MAKE); $(unstage) | |
22121df0 | 36688 | @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ |
95e43135 JBG |
36689 | r=`${PWD_COMMAND}`; export r; \ |
36690 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36691 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 36692 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv"; \ |
95e43135 JBG |
36693 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36694 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36695 | done; \ | |
36696 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36697 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36698 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36699 | "RANLIB=$${RANLIB}" \ | |
36700 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36701 | mostlyclean) \ | |
36702 | || exit 1 | |
36703 | ||
36704 | @endif target-libvtv | |
36705 | ||
36706 | .PHONY: maybe-clean-target-libvtv clean-target-libvtv | |
36707 | maybe-clean-target-libvtv: | |
36708 | @if target-libvtv | |
36709 | maybe-clean-target-libvtv: clean-target-libvtv | |
36710 | ||
36711 | clean-target-libvtv: | |
36712 | @: $(MAKE); $(unstage) | |
22121df0 | 36713 | @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ |
95e43135 JBG |
36714 | r=`${PWD_COMMAND}`; export r; \ |
36715 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36716 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 36717 | echo "Doing clean in $(TARGET_SUBDIR)/libvtv"; \ |
95e43135 JBG |
36718 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36719 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36720 | done; \ | |
36721 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36722 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36723 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36724 | "RANLIB=$${RANLIB}" \ | |
36725 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36726 | clean) \ | |
36727 | || exit 1 | |
36728 | ||
36729 | @endif target-libvtv | |
36730 | ||
36731 | .PHONY: maybe-distclean-target-libvtv distclean-target-libvtv | |
36732 | maybe-distclean-target-libvtv: | |
36733 | @if target-libvtv | |
36734 | maybe-distclean-target-libvtv: distclean-target-libvtv | |
36735 | ||
36736 | distclean-target-libvtv: | |
36737 | @: $(MAKE); $(unstage) | |
22121df0 | 36738 | @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ |
95e43135 JBG |
36739 | r=`${PWD_COMMAND}`; export r; \ |
36740 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36741 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 36742 | echo "Doing distclean in $(TARGET_SUBDIR)/libvtv"; \ |
95e43135 JBG |
36743 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36744 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36745 | done; \ | |
36746 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36747 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36748 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36749 | "RANLIB=$${RANLIB}" \ | |
36750 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36751 | distclean) \ | |
36752 | || exit 1 | |
36753 | ||
36754 | @endif target-libvtv | |
36755 | ||
36756 | .PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv | |
36757 | maybe-maintainer-clean-target-libvtv: | |
36758 | @if target-libvtv | |
36759 | maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv | |
36760 | ||
36761 | maintainer-clean-target-libvtv: | |
36762 | @: $(MAKE); $(unstage) | |
22121df0 | 36763 | @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \ |
95e43135 JBG |
36764 | r=`${PWD_COMMAND}`; export r; \ |
36765 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36766 | $(RAW_CXX_TARGET_EXPORTS) \ | |
22121df0 | 36767 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv"; \ |
95e43135 JBG |
36768 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36769 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36770 | done; \ | |
36771 | (cd $(TARGET_SUBDIR)/libvtv && \ | |
36772 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36773 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36774 | "RANLIB=$${RANLIB}" \ | |
36775 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36776 | maintainer-clean) \ | |
36777 | || exit 1 | |
36778 | ||
36779 | @endif target-libvtv | |
36780 | ||
36781 | ||
36782 | ||
36783 | ||
36784 | ||
e78e02e6 | 36785 | .PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts |
36786 | maybe-configure-target-libcilkrts: | |
36787 | @if gcc-bootstrap | |
36788 | configure-target-libcilkrts: stage_current | |
36789 | @endif gcc-bootstrap | |
36790 | @if target-libcilkrts | |
36791 | maybe-configure-target-libcilkrts: configure-target-libcilkrts | |
36792 | configure-target-libcilkrts: | |
36793 | @: $(MAKE); $(unstage) | |
36794 | @r=`${PWD_COMMAND}`; export r; \ | |
36795 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36796 | echo "Checking multilib configuration for libcilkrts..."; \ | |
22121df0 L |
36797 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \ |
36798 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null; \ | |
e78e02e6 | 36799 | if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \ |
36800 | if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \ | |
36801 | rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \ | |
36802 | else \ | |
36803 | rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \ | |
36804 | mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \ | |
36805 | fi; \ | |
36806 | else \ | |
36807 | mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \ | |
36808 | fi; \ | |
36809 | test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \ | |
22121df0 | 36810 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \ |
e78e02e6 | 36811 | $(NORMAL_TARGET_EXPORTS) \ |
36812 | echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \ | |
36813 | cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \ | |
36814 | case $(srcdir) in \ | |
36815 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
36816 | *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \ | |
36817 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
36818 | esac; \ | |
1b6c0831 | 36819 | module_srcdir=libcilkrts; \ |
e78e02e6 | 36820 | rm -f no-such-file || : ; \ |
1b6c0831 L |
36821 | CONFIG_SITE=no-such-file $(SHELL) \ |
36822 | $$s/$$module_srcdir/configure \ | |
36823 | --srcdir=$${topdir}/$$module_srcdir \ | |
e78e02e6 | 36824 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 36825 | --target=${target_alias} \ |
e78e02e6 | 36826 | || exit 1 |
36827 | @endif target-libcilkrts | |
36828 | ||
36829 | ||
36830 | ||
36831 | ||
36832 | ||
36833 | .PHONY: all-target-libcilkrts maybe-all-target-libcilkrts | |
36834 | maybe-all-target-libcilkrts: | |
36835 | @if gcc-bootstrap | |
36836 | all-target-libcilkrts: stage_current | |
36837 | @endif gcc-bootstrap | |
36838 | @if target-libcilkrts | |
36839 | TARGET-target-libcilkrts=all | |
36840 | maybe-all-target-libcilkrts: all-target-libcilkrts | |
36841 | all-target-libcilkrts: configure-target-libcilkrts | |
36842 | @: $(MAKE); $(unstage) | |
36843 | @r=`${PWD_COMMAND}`; export r; \ | |
36844 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36845 | $(NORMAL_TARGET_EXPORTS) \ | |
36846 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
36847 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ | |
36848 | $(TARGET-target-libcilkrts)) | |
36849 | @endif target-libcilkrts | |
36850 | ||
36851 | ||
36852 | ||
36853 | ||
36854 | ||
36855 | .PHONY: check-target-libcilkrts maybe-check-target-libcilkrts | |
36856 | maybe-check-target-libcilkrts: | |
36857 | @if target-libcilkrts | |
36858 | maybe-check-target-libcilkrts: check-target-libcilkrts | |
36859 | ||
36860 | check-target-libcilkrts: | |
36861 | @: $(MAKE); $(unstage) | |
36862 | @r=`${PWD_COMMAND}`; export r; \ | |
36863 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36864 | $(NORMAL_TARGET_EXPORTS) \ | |
36865 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
36866 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
36867 | ||
36868 | @endif target-libcilkrts | |
36869 | ||
36870 | .PHONY: install-target-libcilkrts maybe-install-target-libcilkrts | |
36871 | maybe-install-target-libcilkrts: | |
36872 | @if target-libcilkrts | |
36873 | maybe-install-target-libcilkrts: install-target-libcilkrts | |
36874 | ||
36875 | install-target-libcilkrts: installdirs | |
36876 | @: $(MAKE); $(unstage) | |
36877 | @r=`${PWD_COMMAND}`; export r; \ | |
36878 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36879 | $(NORMAL_TARGET_EXPORTS) \ | |
36880 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
36881 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
36882 | ||
36883 | @endif target-libcilkrts | |
36884 | ||
36885 | .PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts | |
36886 | maybe-install-strip-target-libcilkrts: | |
36887 | @if target-libcilkrts | |
36888 | maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts | |
36889 | ||
36890 | install-strip-target-libcilkrts: installdirs | |
36891 | @: $(MAKE); $(unstage) | |
36892 | @r=`${PWD_COMMAND}`; export r; \ | |
36893 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36894 | $(NORMAL_TARGET_EXPORTS) \ | |
36895 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
36896 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) | |
36897 | ||
36898 | @endif target-libcilkrts | |
36899 | ||
36900 | # Other targets (info, dvi, pdf, etc.) | |
36901 | ||
36902 | .PHONY: maybe-info-target-libcilkrts info-target-libcilkrts | |
36903 | maybe-info-target-libcilkrts: | |
36904 | @if target-libcilkrts | |
36905 | maybe-info-target-libcilkrts: info-target-libcilkrts | |
36906 | ||
36907 | info-target-libcilkrts: \ | |
36908 | configure-target-libcilkrts | |
36909 | @: $(MAKE); $(unstage) | |
22121df0 | 36910 | @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \ |
e78e02e6 | 36911 | r=`${PWD_COMMAND}`; export r; \ |
36912 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36913 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 36914 | echo "Doing info in $(TARGET_SUBDIR)/libcilkrts"; \ |
e78e02e6 | 36915 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36916 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36917 | done; \ | |
36918 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
36919 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36920 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36921 | "RANLIB=$${RANLIB}" \ | |
36922 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36923 | info) \ | |
36924 | || exit 1 | |
36925 | ||
36926 | @endif target-libcilkrts | |
36927 | ||
36928 | .PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts | |
36929 | maybe-dvi-target-libcilkrts: | |
36930 | @if target-libcilkrts | |
36931 | maybe-dvi-target-libcilkrts: dvi-target-libcilkrts | |
36932 | ||
36933 | dvi-target-libcilkrts: \ | |
36934 | configure-target-libcilkrts | |
36935 | @: $(MAKE); $(unstage) | |
22121df0 | 36936 | @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \ |
e78e02e6 | 36937 | r=`${PWD_COMMAND}`; export r; \ |
36938 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36939 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 36940 | echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts"; \ |
e78e02e6 | 36941 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36942 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36943 | done; \ | |
36944 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
36945 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36946 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36947 | "RANLIB=$${RANLIB}" \ | |
36948 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36949 | dvi) \ | |
36950 | || exit 1 | |
36951 | ||
36952 | @endif target-libcilkrts | |
36953 | ||
36954 | .PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts | |
36955 | maybe-pdf-target-libcilkrts: | |
36956 | @if target-libcilkrts | |
36957 | maybe-pdf-target-libcilkrts: pdf-target-libcilkrts | |
36958 | ||
36959 | pdf-target-libcilkrts: \ | |
36960 | configure-target-libcilkrts | |
36961 | @: $(MAKE); $(unstage) | |
22121df0 | 36962 | @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \ |
e78e02e6 | 36963 | r=`${PWD_COMMAND}`; export r; \ |
36964 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36965 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 36966 | echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts"; \ |
e78e02e6 | 36967 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36968 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36969 | done; \ | |
36970 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
36971 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36972 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36973 | "RANLIB=$${RANLIB}" \ | |
36974 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
36975 | pdf) \ | |
36976 | || exit 1 | |
36977 | ||
36978 | @endif target-libcilkrts | |
36979 | ||
36980 | .PHONY: maybe-html-target-libcilkrts html-target-libcilkrts | |
36981 | maybe-html-target-libcilkrts: | |
36982 | @if target-libcilkrts | |
36983 | maybe-html-target-libcilkrts: html-target-libcilkrts | |
36984 | ||
36985 | html-target-libcilkrts: \ | |
36986 | configure-target-libcilkrts | |
36987 | @: $(MAKE); $(unstage) | |
22121df0 | 36988 | @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \ |
e78e02e6 | 36989 | r=`${PWD_COMMAND}`; export r; \ |
36990 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36991 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 36992 | echo "Doing html in $(TARGET_SUBDIR)/libcilkrts"; \ |
e78e02e6 | 36993 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
36994 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36995 | done; \ | |
36996 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
36997 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36998 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36999 | "RANLIB=$${RANLIB}" \ | |
37000 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37001 | html) \ | |
37002 | || exit 1 | |
37003 | ||
37004 | @endif target-libcilkrts | |
37005 | ||
37006 | .PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts | |
37007 | maybe-TAGS-target-libcilkrts: | |
37008 | @if target-libcilkrts | |
37009 | maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts | |
37010 | ||
37011 | TAGS-target-libcilkrts: \ | |
37012 | configure-target-libcilkrts | |
37013 | @: $(MAKE); $(unstage) | |
22121df0 | 37014 | @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \ |
e78e02e6 | 37015 | r=`${PWD_COMMAND}`; export r; \ |
37016 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37017 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37018 | echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts"; \ |
e78e02e6 | 37019 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37020 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37021 | done; \ | |
37022 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
37023 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37024 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37025 | "RANLIB=$${RANLIB}" \ | |
37026 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37027 | TAGS) \ | |
37028 | || exit 1 | |
37029 | ||
37030 | @endif target-libcilkrts | |
37031 | ||
37032 | .PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts | |
37033 | maybe-install-info-target-libcilkrts: | |
37034 | @if target-libcilkrts | |
37035 | maybe-install-info-target-libcilkrts: install-info-target-libcilkrts | |
37036 | ||
37037 | install-info-target-libcilkrts: \ | |
37038 | configure-target-libcilkrts \ | |
37039 | info-target-libcilkrts | |
37040 | @: $(MAKE); $(unstage) | |
22121df0 | 37041 | @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \ |
e78e02e6 | 37042 | r=`${PWD_COMMAND}`; export r; \ |
37043 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37044 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37045 | echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts"; \ |
e78e02e6 | 37046 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37047 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37048 | done; \ | |
37049 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
37050 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37051 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37052 | "RANLIB=$${RANLIB}" \ | |
37053 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37054 | install-info) \ | |
37055 | || exit 1 | |
37056 | ||
37057 | @endif target-libcilkrts | |
37058 | ||
37059 | .PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts | |
37060 | maybe-install-pdf-target-libcilkrts: | |
37061 | @if target-libcilkrts | |
37062 | maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts | |
37063 | ||
37064 | install-pdf-target-libcilkrts: \ | |
37065 | configure-target-libcilkrts \ | |
37066 | pdf-target-libcilkrts | |
37067 | @: $(MAKE); $(unstage) | |
22121df0 | 37068 | @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \ |
e78e02e6 | 37069 | r=`${PWD_COMMAND}`; export r; \ |
37070 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37071 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37072 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts"; \ |
e78e02e6 | 37073 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37074 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37075 | done; \ | |
37076 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
37077 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37078 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37079 | "RANLIB=$${RANLIB}" \ | |
37080 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37081 | install-pdf) \ | |
37082 | || exit 1 | |
37083 | ||
37084 | @endif target-libcilkrts | |
37085 | ||
37086 | .PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts | |
37087 | maybe-install-html-target-libcilkrts: | |
37088 | @if target-libcilkrts | |
37089 | maybe-install-html-target-libcilkrts: install-html-target-libcilkrts | |
37090 | ||
37091 | install-html-target-libcilkrts: \ | |
37092 | configure-target-libcilkrts \ | |
37093 | html-target-libcilkrts | |
37094 | @: $(MAKE); $(unstage) | |
22121df0 | 37095 | @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \ |
e78e02e6 | 37096 | r=`${PWD_COMMAND}`; export r; \ |
37097 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37098 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37099 | echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts"; \ |
e78e02e6 | 37100 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37101 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37102 | done; \ | |
37103 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
37104 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37105 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37106 | "RANLIB=$${RANLIB}" \ | |
37107 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37108 | install-html) \ | |
37109 | || exit 1 | |
37110 | ||
37111 | @endif target-libcilkrts | |
37112 | ||
37113 | .PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts | |
37114 | maybe-installcheck-target-libcilkrts: | |
37115 | @if target-libcilkrts | |
37116 | maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts | |
37117 | ||
37118 | installcheck-target-libcilkrts: \ | |
37119 | configure-target-libcilkrts | |
37120 | @: $(MAKE); $(unstage) | |
22121df0 | 37121 | @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \ |
e78e02e6 | 37122 | r=`${PWD_COMMAND}`; export r; \ |
37123 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37124 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37125 | echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts"; \ |
e78e02e6 | 37126 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37127 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37128 | done; \ | |
37129 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
37130 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37131 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37132 | "RANLIB=$${RANLIB}" \ | |
37133 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37134 | installcheck) \ | |
37135 | || exit 1 | |
37136 | ||
37137 | @endif target-libcilkrts | |
37138 | ||
37139 | .PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts | |
37140 | maybe-mostlyclean-target-libcilkrts: | |
37141 | @if target-libcilkrts | |
37142 | maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts | |
37143 | ||
37144 | mostlyclean-target-libcilkrts: | |
37145 | @: $(MAKE); $(unstage) | |
22121df0 | 37146 | @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \ |
e78e02e6 | 37147 | r=`${PWD_COMMAND}`; export r; \ |
37148 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37149 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37150 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts"; \ |
e78e02e6 | 37151 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37152 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37153 | done; \ | |
37154 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
37155 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37156 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37157 | "RANLIB=$${RANLIB}" \ | |
37158 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37159 | mostlyclean) \ | |
37160 | || exit 1 | |
37161 | ||
37162 | @endif target-libcilkrts | |
37163 | ||
37164 | .PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts | |
37165 | maybe-clean-target-libcilkrts: | |
37166 | @if target-libcilkrts | |
37167 | maybe-clean-target-libcilkrts: clean-target-libcilkrts | |
37168 | ||
37169 | clean-target-libcilkrts: | |
37170 | @: $(MAKE); $(unstage) | |
22121df0 | 37171 | @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \ |
e78e02e6 | 37172 | r=`${PWD_COMMAND}`; export r; \ |
37173 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37174 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37175 | echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts"; \ |
e78e02e6 | 37176 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37177 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37178 | done; \ | |
37179 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
37180 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37181 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37182 | "RANLIB=$${RANLIB}" \ | |
37183 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37184 | clean) \ | |
37185 | || exit 1 | |
37186 | ||
37187 | @endif target-libcilkrts | |
37188 | ||
37189 | .PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts | |
37190 | maybe-distclean-target-libcilkrts: | |
37191 | @if target-libcilkrts | |
37192 | maybe-distclean-target-libcilkrts: distclean-target-libcilkrts | |
37193 | ||
37194 | distclean-target-libcilkrts: | |
37195 | @: $(MAKE); $(unstage) | |
22121df0 | 37196 | @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \ |
e78e02e6 | 37197 | r=`${PWD_COMMAND}`; export r; \ |
37198 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37199 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37200 | echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts"; \ |
e78e02e6 | 37201 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37202 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37203 | done; \ | |
37204 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
37205 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37206 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37207 | "RANLIB=$${RANLIB}" \ | |
37208 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37209 | distclean) \ | |
37210 | || exit 1 | |
37211 | ||
37212 | @endif target-libcilkrts | |
37213 | ||
37214 | .PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts | |
37215 | maybe-maintainer-clean-target-libcilkrts: | |
37216 | @if target-libcilkrts | |
37217 | maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts | |
37218 | ||
37219 | maintainer-clean-target-libcilkrts: | |
37220 | @: $(MAKE); $(unstage) | |
22121df0 | 37221 | @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \ |
e78e02e6 | 37222 | r=`${PWD_COMMAND}`; export r; \ |
37223 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37224 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37225 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts"; \ |
e78e02e6 | 37226 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37227 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37228 | done; \ | |
37229 | (cd $(TARGET_SUBDIR)/libcilkrts && \ | |
37230 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37231 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37232 | "RANLIB=$${RANLIB}" \ | |
37233 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37234 | maintainer-clean) \ | |
37235 | || exit 1 | |
37236 | ||
37237 | @endif target-libcilkrts | |
37238 | ||
37239 | ||
37240 | ||
37241 | ||
37242 | ||
1b6c0831 L |
37243 | .PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic |
37244 | maybe-configure-target-liboffloadmic: | |
37245 | @if gcc-bootstrap | |
37246 | configure-target-liboffloadmic: stage_current | |
37247 | @endif gcc-bootstrap | |
37248 | @if target-liboffloadmic | |
37249 | maybe-configure-target-liboffloadmic: configure-target-liboffloadmic | |
37250 | configure-target-liboffloadmic: | |
37251 | @: $(MAKE); $(unstage) | |
37252 | @r=`${PWD_COMMAND}`; export r; \ | |
37253 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37254 | echo "Checking multilib configuration for liboffloadmic..."; \ | |
22121df0 L |
37255 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \ |
37256 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null; \ | |
1b6c0831 L |
37257 | if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \ |
37258 | if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \ | |
37259 | rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \ | |
37260 | else \ | |
37261 | rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \ | |
37262 | mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \ | |
37263 | fi; \ | |
37264 | else \ | |
37265 | mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \ | |
37266 | fi; \ | |
37267 | test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \ | |
22121df0 | 37268 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \ |
1b6c0831 L |
37269 | $(NORMAL_TARGET_EXPORTS) \ |
37270 | echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \ | |
37271 | cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \ | |
37272 | case $(srcdir) in \ | |
37273 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
37274 | *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \ | |
37275 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
37276 | esac; \ | |
37277 | module_srcdir=liboffloadmic; \ | |
37278 | rm -f no-such-file || : ; \ | |
37279 | CONFIG_SITE=no-such-file $(SHELL) \ | |
37280 | $$s/$$module_srcdir/configure \ | |
37281 | --srcdir=$${topdir}/$$module_srcdir \ | |
37282 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ | |
37283 | --target=${target_alias} @extra_liboffloadmic_configure_flags@ \ | |
37284 | || exit 1 | |
37285 | @endif target-liboffloadmic | |
37286 | ||
37287 | ||
37288 | ||
37289 | ||
37290 | ||
37291 | .PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic | |
37292 | maybe-all-target-liboffloadmic: | |
37293 | @if gcc-bootstrap | |
37294 | all-target-liboffloadmic: stage_current | |
37295 | @endif gcc-bootstrap | |
37296 | @if target-liboffloadmic | |
37297 | TARGET-target-liboffloadmic=all | |
37298 | maybe-all-target-liboffloadmic: all-target-liboffloadmic | |
37299 | all-target-liboffloadmic: configure-target-liboffloadmic | |
37300 | @: $(MAKE); $(unstage) | |
37301 | @r=`${PWD_COMMAND}`; export r; \ | |
37302 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37303 | $(NORMAL_TARGET_EXPORTS) \ | |
37304 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37305 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ | |
37306 | $(TARGET-target-liboffloadmic)) | |
37307 | @endif target-liboffloadmic | |
37308 | ||
37309 | ||
37310 | ||
37311 | ||
37312 | ||
37313 | .PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic | |
37314 | maybe-check-target-liboffloadmic: | |
37315 | @if target-liboffloadmic | |
37316 | maybe-check-target-liboffloadmic: check-target-liboffloadmic | |
37317 | ||
37318 | check-target-liboffloadmic: | |
37319 | @: $(MAKE); $(unstage) | |
37320 | @r=`${PWD_COMMAND}`; export r; \ | |
37321 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37322 | $(NORMAL_TARGET_EXPORTS) \ | |
37323 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37324 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
37325 | ||
37326 | @endif target-liboffloadmic | |
37327 | ||
37328 | .PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic | |
37329 | maybe-install-target-liboffloadmic: | |
37330 | @if target-liboffloadmic | |
37331 | maybe-install-target-liboffloadmic: install-target-liboffloadmic | |
37332 | ||
37333 | install-target-liboffloadmic: installdirs | |
37334 | @: $(MAKE); $(unstage) | |
37335 | @r=`${PWD_COMMAND}`; export r; \ | |
37336 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37337 | $(NORMAL_TARGET_EXPORTS) \ | |
37338 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37339 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
37340 | ||
37341 | @endif target-liboffloadmic | |
37342 | ||
37343 | .PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic | |
37344 | maybe-install-strip-target-liboffloadmic: | |
37345 | @if target-liboffloadmic | |
37346 | maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic | |
37347 | ||
37348 | install-strip-target-liboffloadmic: installdirs | |
37349 | @: $(MAKE); $(unstage) | |
37350 | @r=`${PWD_COMMAND}`; export r; \ | |
37351 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37352 | $(NORMAL_TARGET_EXPORTS) \ | |
37353 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37354 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) | |
37355 | ||
37356 | @endif target-liboffloadmic | |
37357 | ||
37358 | # Other targets (info, dvi, pdf, etc.) | |
37359 | ||
37360 | .PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic | |
37361 | maybe-info-target-liboffloadmic: | |
37362 | @if target-liboffloadmic | |
37363 | maybe-info-target-liboffloadmic: info-target-liboffloadmic | |
37364 | ||
37365 | info-target-liboffloadmic: \ | |
37366 | configure-target-liboffloadmic | |
37367 | @: $(MAKE); $(unstage) | |
22121df0 | 37368 | @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \ |
1b6c0831 L |
37369 | r=`${PWD_COMMAND}`; export r; \ |
37370 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37371 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37372 | echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic"; \ |
1b6c0831 L |
37373 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37374 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37375 | done; \ | |
37376 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37377 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37378 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37379 | "RANLIB=$${RANLIB}" \ | |
37380 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37381 | info) \ | |
37382 | || exit 1 | |
37383 | ||
37384 | @endif target-liboffloadmic | |
37385 | ||
37386 | .PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic | |
37387 | maybe-dvi-target-liboffloadmic: | |
37388 | @if target-liboffloadmic | |
37389 | maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic | |
37390 | ||
37391 | dvi-target-liboffloadmic: \ | |
37392 | configure-target-liboffloadmic | |
37393 | @: $(MAKE); $(unstage) | |
22121df0 | 37394 | @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \ |
1b6c0831 L |
37395 | r=`${PWD_COMMAND}`; export r; \ |
37396 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37397 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37398 | echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic"; \ |
1b6c0831 L |
37399 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37400 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37401 | done; \ | |
37402 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37403 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37404 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37405 | "RANLIB=$${RANLIB}" \ | |
37406 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37407 | dvi) \ | |
37408 | || exit 1 | |
37409 | ||
37410 | @endif target-liboffloadmic | |
37411 | ||
37412 | .PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic | |
37413 | maybe-pdf-target-liboffloadmic: | |
37414 | @if target-liboffloadmic | |
37415 | maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic | |
37416 | ||
37417 | pdf-target-liboffloadmic: \ | |
37418 | configure-target-liboffloadmic | |
37419 | @: $(MAKE); $(unstage) | |
22121df0 | 37420 | @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \ |
1b6c0831 L |
37421 | r=`${PWD_COMMAND}`; export r; \ |
37422 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37423 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37424 | echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic"; \ |
1b6c0831 L |
37425 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37426 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37427 | done; \ | |
37428 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37429 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37430 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37431 | "RANLIB=$${RANLIB}" \ | |
37432 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37433 | pdf) \ | |
37434 | || exit 1 | |
37435 | ||
37436 | @endif target-liboffloadmic | |
37437 | ||
37438 | .PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic | |
37439 | maybe-html-target-liboffloadmic: | |
37440 | @if target-liboffloadmic | |
37441 | maybe-html-target-liboffloadmic: html-target-liboffloadmic | |
37442 | ||
37443 | html-target-liboffloadmic: \ | |
37444 | configure-target-liboffloadmic | |
37445 | @: $(MAKE); $(unstage) | |
22121df0 | 37446 | @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \ |
1b6c0831 L |
37447 | r=`${PWD_COMMAND}`; export r; \ |
37448 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37449 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37450 | echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic"; \ |
1b6c0831 L |
37451 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37452 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37453 | done; \ | |
37454 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37455 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37456 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37457 | "RANLIB=$${RANLIB}" \ | |
37458 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37459 | html) \ | |
37460 | || exit 1 | |
37461 | ||
37462 | @endif target-liboffloadmic | |
37463 | ||
37464 | .PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic | |
37465 | maybe-TAGS-target-liboffloadmic: | |
37466 | @if target-liboffloadmic | |
37467 | maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic | |
37468 | ||
37469 | TAGS-target-liboffloadmic: \ | |
37470 | configure-target-liboffloadmic | |
37471 | @: $(MAKE); $(unstage) | |
22121df0 | 37472 | @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \ |
1b6c0831 L |
37473 | r=`${PWD_COMMAND}`; export r; \ |
37474 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37475 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37476 | echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic"; \ |
1b6c0831 L |
37477 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37478 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37479 | done; \ | |
37480 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37481 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37482 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37483 | "RANLIB=$${RANLIB}" \ | |
37484 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37485 | TAGS) \ | |
37486 | || exit 1 | |
37487 | ||
37488 | @endif target-liboffloadmic | |
37489 | ||
37490 | .PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic | |
37491 | maybe-install-info-target-liboffloadmic: | |
37492 | @if target-liboffloadmic | |
37493 | maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic | |
37494 | ||
37495 | install-info-target-liboffloadmic: \ | |
37496 | configure-target-liboffloadmic \ | |
37497 | info-target-liboffloadmic | |
37498 | @: $(MAKE); $(unstage) | |
22121df0 | 37499 | @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \ |
1b6c0831 L |
37500 | r=`${PWD_COMMAND}`; export r; \ |
37501 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37502 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37503 | echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic"; \ |
1b6c0831 L |
37504 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37505 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37506 | done; \ | |
37507 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37508 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37509 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37510 | "RANLIB=$${RANLIB}" \ | |
37511 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37512 | install-info) \ | |
37513 | || exit 1 | |
37514 | ||
37515 | @endif target-liboffloadmic | |
37516 | ||
37517 | .PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic | |
37518 | maybe-install-pdf-target-liboffloadmic: | |
37519 | @if target-liboffloadmic | |
37520 | maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic | |
37521 | ||
37522 | install-pdf-target-liboffloadmic: \ | |
37523 | configure-target-liboffloadmic \ | |
37524 | pdf-target-liboffloadmic | |
37525 | @: $(MAKE); $(unstage) | |
22121df0 | 37526 | @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \ |
1b6c0831 L |
37527 | r=`${PWD_COMMAND}`; export r; \ |
37528 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37529 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37530 | echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic"; \ |
1b6c0831 L |
37531 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37532 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37533 | done; \ | |
37534 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37535 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37536 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37537 | "RANLIB=$${RANLIB}" \ | |
37538 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37539 | install-pdf) \ | |
37540 | || exit 1 | |
37541 | ||
37542 | @endif target-liboffloadmic | |
37543 | ||
37544 | .PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic | |
37545 | maybe-install-html-target-liboffloadmic: | |
37546 | @if target-liboffloadmic | |
37547 | maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic | |
37548 | ||
37549 | install-html-target-liboffloadmic: \ | |
37550 | configure-target-liboffloadmic \ | |
37551 | html-target-liboffloadmic | |
37552 | @: $(MAKE); $(unstage) | |
22121df0 | 37553 | @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \ |
1b6c0831 L |
37554 | r=`${PWD_COMMAND}`; export r; \ |
37555 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37556 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37557 | echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic"; \ |
1b6c0831 L |
37558 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37559 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37560 | done; \ | |
37561 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37562 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37563 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37564 | "RANLIB=$${RANLIB}" \ | |
37565 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37566 | install-html) \ | |
37567 | || exit 1 | |
37568 | ||
37569 | @endif target-liboffloadmic | |
37570 | ||
37571 | .PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic | |
37572 | maybe-installcheck-target-liboffloadmic: | |
37573 | @if target-liboffloadmic | |
37574 | maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic | |
37575 | ||
37576 | installcheck-target-liboffloadmic: \ | |
37577 | configure-target-liboffloadmic | |
37578 | @: $(MAKE); $(unstage) | |
22121df0 | 37579 | @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \ |
1b6c0831 L |
37580 | r=`${PWD_COMMAND}`; export r; \ |
37581 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37582 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37583 | echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic"; \ |
1b6c0831 L |
37584 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37585 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37586 | done; \ | |
37587 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37588 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37589 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37590 | "RANLIB=$${RANLIB}" \ | |
37591 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37592 | installcheck) \ | |
37593 | || exit 1 | |
37594 | ||
37595 | @endif target-liboffloadmic | |
37596 | ||
37597 | .PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic | |
37598 | maybe-mostlyclean-target-liboffloadmic: | |
37599 | @if target-liboffloadmic | |
37600 | maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic | |
37601 | ||
37602 | mostlyclean-target-liboffloadmic: | |
37603 | @: $(MAKE); $(unstage) | |
22121df0 | 37604 | @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \ |
1b6c0831 L |
37605 | r=`${PWD_COMMAND}`; export r; \ |
37606 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37607 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37608 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic"; \ |
1b6c0831 L |
37609 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37610 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37611 | done; \ | |
37612 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37613 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37614 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37615 | "RANLIB=$${RANLIB}" \ | |
37616 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37617 | mostlyclean) \ | |
37618 | || exit 1 | |
37619 | ||
37620 | @endif target-liboffloadmic | |
37621 | ||
37622 | .PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic | |
37623 | maybe-clean-target-liboffloadmic: | |
37624 | @if target-liboffloadmic | |
37625 | maybe-clean-target-liboffloadmic: clean-target-liboffloadmic | |
37626 | ||
37627 | clean-target-liboffloadmic: | |
37628 | @: $(MAKE); $(unstage) | |
22121df0 | 37629 | @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \ |
1b6c0831 L |
37630 | r=`${PWD_COMMAND}`; export r; \ |
37631 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37632 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37633 | echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic"; \ |
1b6c0831 L |
37634 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37635 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37636 | done; \ | |
37637 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37638 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37639 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37640 | "RANLIB=$${RANLIB}" \ | |
37641 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37642 | clean) \ | |
37643 | || exit 1 | |
37644 | ||
37645 | @endif target-liboffloadmic | |
37646 | ||
37647 | .PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic | |
37648 | maybe-distclean-target-liboffloadmic: | |
37649 | @if target-liboffloadmic | |
37650 | maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic | |
37651 | ||
37652 | distclean-target-liboffloadmic: | |
37653 | @: $(MAKE); $(unstage) | |
22121df0 | 37654 | @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \ |
1b6c0831 L |
37655 | r=`${PWD_COMMAND}`; export r; \ |
37656 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37657 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37658 | echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic"; \ |
1b6c0831 L |
37659 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37660 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37661 | done; \ | |
37662 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37663 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37664 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37665 | "RANLIB=$${RANLIB}" \ | |
37666 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37667 | distclean) \ | |
37668 | || exit 1 | |
37669 | ||
37670 | @endif target-liboffloadmic | |
37671 | ||
37672 | .PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic | |
37673 | maybe-maintainer-clean-target-liboffloadmic: | |
37674 | @if target-liboffloadmic | |
37675 | maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic | |
37676 | ||
37677 | maintainer-clean-target-liboffloadmic: | |
37678 | @: $(MAKE); $(unstage) | |
22121df0 | 37679 | @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \ |
1b6c0831 L |
37680 | r=`${PWD_COMMAND}`; export r; \ |
37681 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37682 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37683 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic"; \ |
1b6c0831 L |
37684 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37685 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37686 | done; \ | |
37687 | (cd $(TARGET_SUBDIR)/liboffloadmic && \ | |
37688 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37689 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37690 | "RANLIB=$${RANLIB}" \ | |
37691 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
37692 | maintainer-clean) \ | |
37693 | || exit 1 | |
37694 | ||
37695 | @endif target-liboffloadmic | |
37696 | ||
37697 | ||
37698 | ||
37699 | ||
37700 | ||
a90ef4bf JM |
37701 | .PHONY: configure-target-libssp maybe-configure-target-libssp |
37702 | maybe-configure-target-libssp: | |
4f0ef2d8 | 37703 | @if gcc-bootstrap |
a90ef4bf | 37704 | configure-target-libssp: stage_current |
4f0ef2d8 | 37705 | @endif gcc-bootstrap |
a90ef4bf JM |
37706 | @if target-libssp |
37707 | maybe-configure-target-libssp: configure-target-libssp | |
37708 | configure-target-libssp: | |
0aed8855 PB |
37709 | @: $(MAKE); $(unstage) |
37710 | @r=`${PWD_COMMAND}`; export r; \ | |
37711 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 37712 | echo "Checking multilib configuration for libssp..."; \ |
22121df0 L |
37713 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \ |
37714 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null; \ | |
a90ef4bf JM |
37715 | if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \ |
37716 | if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \ | |
37717 | rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \ | |
0aed8855 | 37718 | else \ |
a90ef4bf JM |
37719 | rm -f $(TARGET_SUBDIR)/libssp/Makefile; \ |
37720 | mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \ | |
0aed8855 PB |
37721 | fi; \ |
37722 | else \ | |
a90ef4bf | 37723 | mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \ |
c52c6897 | 37724 | fi; \ |
a90ef4bf | 37725 | test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \ |
22121df0 | 37726 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \ |
1f53ca9a | 37727 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
37728 | echo Configuring in $(TARGET_SUBDIR)/libssp; \ |
37729 | cd "$(TARGET_SUBDIR)/libssp" || exit 1; \ | |
4b1cb4fe | 37730 | case $(srcdir) in \ |
b00612cc | 37731 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 37732 | *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \ |
b00612cc | 37733 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
4b1cb4fe | 37734 | esac; \ |
1b6c0831 | 37735 | module_srcdir=libssp; \ |
4b1cb4fe | 37736 | rm -f no-such-file || : ; \ |
1b6c0831 L |
37737 | CONFIG_SITE=no-such-file $(SHELL) \ |
37738 | $$s/$$module_srcdir/configure \ | |
37739 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 37740 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 37741 | --target=${target_alias} \ |
4b1cb4fe | 37742 | || exit 1 |
a90ef4bf | 37743 | @endif target-libssp |
4b1cb4fe | 37744 | |
a7254363 PB |
37745 | |
37746 | ||
d545f33b PB |
37747 | |
37748 | ||
a90ef4bf JM |
37749 | .PHONY: all-target-libssp maybe-all-target-libssp |
37750 | maybe-all-target-libssp: | |
4f0ef2d8 | 37751 | @if gcc-bootstrap |
a90ef4bf | 37752 | all-target-libssp: stage_current |
4f0ef2d8 | 37753 | @endif gcc-bootstrap |
a90ef4bf JM |
37754 | @if target-libssp |
37755 | TARGET-target-libssp=all | |
37756 | maybe-all-target-libssp: all-target-libssp | |
37757 | all-target-libssp: configure-target-libssp | |
0aed8855 | 37758 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
37759 | @r=`${PWD_COMMAND}`; export r; \ |
37760 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 37761 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 37762 | (cd $(TARGET_SUBDIR)/libssp && \ |
b3676d82 | 37763 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
a90ef4bf JM |
37764 | $(TARGET-target-libssp)) |
37765 | @endif target-libssp | |
4b1cb4fe | 37766 | |
a7254363 PB |
37767 | |
37768 | ||
d545f33b PB |
37769 | |
37770 | ||
a90ef4bf JM |
37771 | .PHONY: check-target-libssp maybe-check-target-libssp |
37772 | maybe-check-target-libssp: | |
37773 | @if target-libssp | |
37774 | maybe-check-target-libssp: check-target-libssp | |
4b1cb4fe | 37775 | |
a90ef4bf | 37776 | check-target-libssp: |
0aed8855 | 37777 | @: $(MAKE); $(unstage) |
b40e3958 L |
37778 | @r=`${PWD_COMMAND}`; export r; \ |
37779 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37780 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 37781 | (cd $(TARGET_SUBDIR)/libssp && \ |
7ffa0b57 | 37782 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
3866be5d | 37783 | |
a90ef4bf | 37784 | @endif target-libssp |
3866be5d | 37785 | |
a90ef4bf JM |
37786 | .PHONY: install-target-libssp maybe-install-target-libssp |
37787 | maybe-install-target-libssp: | |
37788 | @if target-libssp | |
37789 | maybe-install-target-libssp: install-target-libssp | |
e2b9e2dc | 37790 | |
a90ef4bf | 37791 | install-target-libssp: installdirs |
0aed8855 | 37792 | @: $(MAKE); $(unstage) |
b40e3958 L |
37793 | @r=`${PWD_COMMAND}`; export r; \ |
37794 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37795 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 37796 | (cd $(TARGET_SUBDIR)/libssp && \ |
7ffa0b57 | 37797 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 37798 | |
a90ef4bf | 37799 | @endif target-libssp |
3866be5d | 37800 | |
a90ef4bf JM |
37801 | .PHONY: install-strip-target-libssp maybe-install-strip-target-libssp |
37802 | maybe-install-strip-target-libssp: | |
37803 | @if target-libssp | |
37804 | maybe-install-strip-target-libssp: install-strip-target-libssp | |
9b980aa1 | 37805 | |
a90ef4bf | 37806 | install-strip-target-libssp: installdirs |
9b980aa1 RW |
37807 | @: $(MAKE); $(unstage) |
37808 | @r=`${PWD_COMMAND}`; export r; \ | |
37809 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37810 | $(NORMAL_TARGET_EXPORTS) \ | |
a90ef4bf | 37811 | (cd $(TARGET_SUBDIR)/libssp && \ |
9b980aa1 RW |
37812 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) |
37813 | ||
a90ef4bf | 37814 | @endif target-libssp |
9b980aa1 | 37815 | |
56a8fe78 | 37816 | # Other targets (info, dvi, pdf, etc.) |
3866be5d | 37817 | |
a90ef4bf JM |
37818 | .PHONY: maybe-info-target-libssp info-target-libssp |
37819 | maybe-info-target-libssp: | |
37820 | @if target-libssp | |
37821 | maybe-info-target-libssp: info-target-libssp | |
3866be5d | 37822 | |
a90ef4bf JM |
37823 | info-target-libssp: \ |
37824 | configure-target-libssp | |
0aed8855 | 37825 | @: $(MAKE); $(unstage) |
22121df0 | 37826 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \ |
4fa63067 NN |
37827 | r=`${PWD_COMMAND}`; export r; \ |
37828 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37829 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 37830 | echo "Doing info in $(TARGET_SUBDIR)/libssp"; \ |
4fa63067 NN |
37831 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37832 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37833 | done; \ | |
a90ef4bf | 37834 | (cd $(TARGET_SUBDIR)/libssp && \ |
4fa63067 NN |
37835 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
37836 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37837 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 37838 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 37839 | info) \ |
4fa63067 | 37840 | || exit 1 |
16ae0395 | 37841 | |
a90ef4bf | 37842 | @endif target-libssp |
3866be5d | 37843 | |
a90ef4bf JM |
37844 | .PHONY: maybe-dvi-target-libssp dvi-target-libssp |
37845 | maybe-dvi-target-libssp: | |
37846 | @if target-libssp | |
37847 | maybe-dvi-target-libssp: dvi-target-libssp | |
3866be5d | 37848 | |
a90ef4bf JM |
37849 | dvi-target-libssp: \ |
37850 | configure-target-libssp | |
0aed8855 | 37851 | @: $(MAKE); $(unstage) |
22121df0 | 37852 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \ |
b40e3958 L |
37853 | r=`${PWD_COMMAND}`; export r; \ |
37854 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37855 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 37856 | echo "Doing dvi in $(TARGET_SUBDIR)/libssp"; \ |
4fa63067 NN |
37857 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37858 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37859 | done; \ | |
a90ef4bf | 37860 | (cd $(TARGET_SUBDIR)/libssp && \ |
4fa63067 NN |
37861 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
37862 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37863 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 37864 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 37865 | dvi) \ |
e2b9e2dc NN |
37866 | || exit 1 |
37867 | ||
a90ef4bf | 37868 | @endif target-libssp |
3866be5d | 37869 | |
a90ef4bf JM |
37870 | .PHONY: maybe-pdf-target-libssp pdf-target-libssp |
37871 | maybe-pdf-target-libssp: | |
37872 | @if target-libssp | |
37873 | maybe-pdf-target-libssp: pdf-target-libssp | |
56a8fe78 | 37874 | |
a90ef4bf JM |
37875 | pdf-target-libssp: \ |
37876 | configure-target-libssp | |
56a8fe78 | 37877 | @: $(MAKE); $(unstage) |
22121df0 | 37878 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \ |
56a8fe78 DD |
37879 | r=`${PWD_COMMAND}`; export r; \ |
37880 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37881 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37882 | echo "Doing pdf in $(TARGET_SUBDIR)/libssp"; \ |
56a8fe78 DD |
37883 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37884 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37885 | done; \ | |
a90ef4bf | 37886 | (cd $(TARGET_SUBDIR)/libssp && \ |
56a8fe78 DD |
37887 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
37888 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37889 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 37890 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
37891 | pdf) \ |
37892 | || exit 1 | |
37893 | ||
a90ef4bf | 37894 | @endif target-libssp |
a3ca38d2 | 37895 | |
a90ef4bf JM |
37896 | .PHONY: maybe-html-target-libssp html-target-libssp |
37897 | maybe-html-target-libssp: | |
37898 | @if target-libssp | |
37899 | maybe-html-target-libssp: html-target-libssp | |
108a6f8e | 37900 | |
a90ef4bf JM |
37901 | html-target-libssp: \ |
37902 | configure-target-libssp | |
108a6f8e | 37903 | @: $(MAKE); $(unstage) |
22121df0 | 37904 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \ |
108a6f8e CD |
37905 | r=`${PWD_COMMAND}`; export r; \ |
37906 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37907 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 37908 | echo "Doing html in $(TARGET_SUBDIR)/libssp"; \ |
108a6f8e CD |
37909 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37910 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37911 | done; \ | |
a90ef4bf | 37912 | (cd $(TARGET_SUBDIR)/libssp && \ |
108a6f8e CD |
37913 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
37914 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37915 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 37916 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 37917 | html) \ |
108a6f8e CD |
37918 | || exit 1 |
37919 | ||
a90ef4bf | 37920 | @endif target-libssp |
108a6f8e | 37921 | |
a90ef4bf JM |
37922 | .PHONY: maybe-TAGS-target-libssp TAGS-target-libssp |
37923 | maybe-TAGS-target-libssp: | |
37924 | @if target-libssp | |
37925 | maybe-TAGS-target-libssp: TAGS-target-libssp | |
4fa63067 | 37926 | |
a90ef4bf JM |
37927 | TAGS-target-libssp: \ |
37928 | configure-target-libssp | |
0aed8855 | 37929 | @: $(MAKE); $(unstage) |
22121df0 | 37930 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \ |
b40e3958 L |
37931 | r=`${PWD_COMMAND}`; export r; \ |
37932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37933 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 37934 | echo "Doing TAGS in $(TARGET_SUBDIR)/libssp"; \ |
4fa63067 NN |
37935 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37936 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37937 | done; \ | |
a90ef4bf | 37938 | (cd $(TARGET_SUBDIR)/libssp && \ |
4fa63067 NN |
37939 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
37940 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37941 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 37942 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 37943 | TAGS) \ |
e2b9e2dc NN |
37944 | || exit 1 |
37945 | ||
a90ef4bf | 37946 | @endif target-libssp |
3866be5d | 37947 | |
a90ef4bf JM |
37948 | .PHONY: maybe-install-info-target-libssp install-info-target-libssp |
37949 | maybe-install-info-target-libssp: | |
37950 | @if target-libssp | |
37951 | maybe-install-info-target-libssp: install-info-target-libssp | |
3866be5d | 37952 | |
a90ef4bf JM |
37953 | install-info-target-libssp: \ |
37954 | configure-target-libssp \ | |
37955 | info-target-libssp | |
0aed8855 | 37956 | @: $(MAKE); $(unstage) |
22121df0 | 37957 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \ |
4fa63067 | 37958 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 37959 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 37960 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 37961 | echo "Doing install-info in $(TARGET_SUBDIR)/libssp"; \ |
4fa63067 NN |
37962 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37963 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37964 | done; \ | |
a90ef4bf | 37965 | (cd $(TARGET_SUBDIR)/libssp && \ |
4fa63067 NN |
37966 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
37967 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37968 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 37969 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 37970 | install-info) \ |
4fa63067 | 37971 | || exit 1 |
3866be5d | 37972 | |
a90ef4bf | 37973 | @endif target-libssp |
3866be5d | 37974 | |
a90ef4bf JM |
37975 | .PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp |
37976 | maybe-install-pdf-target-libssp: | |
37977 | @if target-libssp | |
37978 | maybe-install-pdf-target-libssp: install-pdf-target-libssp | |
16ae0395 | 37979 | |
a90ef4bf JM |
37980 | install-pdf-target-libssp: \ |
37981 | configure-target-libssp \ | |
37982 | pdf-target-libssp | |
0aed8855 | 37983 | @: $(MAKE); $(unstage) |
22121df0 | 37984 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \ |
4fa63067 | 37985 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 37986 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 37987 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 37988 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp"; \ |
4fa63067 NN |
37989 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
37990 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37991 | done; \ | |
a90ef4bf | 37992 | (cd $(TARGET_SUBDIR)/libssp && \ |
4fa63067 NN |
37993 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
37994 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37995 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 37996 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 37997 | install-pdf) \ |
4fa63067 | 37998 | || exit 1 |
3866be5d | 37999 | |
a90ef4bf | 38000 | @endif target-libssp |
3866be5d | 38001 | |
a90ef4bf JM |
38002 | .PHONY: maybe-install-html-target-libssp install-html-target-libssp |
38003 | maybe-install-html-target-libssp: | |
38004 | @if target-libssp | |
38005 | maybe-install-html-target-libssp: install-html-target-libssp | |
4fa63067 | 38006 | |
a90ef4bf JM |
38007 | install-html-target-libssp: \ |
38008 | configure-target-libssp \ | |
38009 | html-target-libssp | |
0aed8855 | 38010 | @: $(MAKE); $(unstage) |
22121df0 | 38011 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \ |
b40e3958 L |
38012 | r=`${PWD_COMMAND}`; export r; \ |
38013 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 38014 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 38015 | echo "Doing install-html in $(TARGET_SUBDIR)/libssp"; \ |
4fa63067 NN |
38016 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38017 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38018 | done; \ | |
a90ef4bf | 38019 | (cd $(TARGET_SUBDIR)/libssp && \ |
4fa63067 NN |
38020 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38021 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38022 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38023 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 38024 | install-html) \ |
e2b9e2dc NN |
38025 | || exit 1 |
38026 | ||
a90ef4bf | 38027 | @endif target-libssp |
3866be5d | 38028 | |
a90ef4bf JM |
38029 | .PHONY: maybe-installcheck-target-libssp installcheck-target-libssp |
38030 | maybe-installcheck-target-libssp: | |
38031 | @if target-libssp | |
38032 | maybe-installcheck-target-libssp: installcheck-target-libssp | |
3866be5d | 38033 | |
a90ef4bf JM |
38034 | installcheck-target-libssp: \ |
38035 | configure-target-libssp | |
0aed8855 | 38036 | @: $(MAKE); $(unstage) |
22121df0 | 38037 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \ |
4fa63067 | 38038 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 38039 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 38040 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 38041 | echo "Doing installcheck in $(TARGET_SUBDIR)/libssp"; \ |
4fa63067 NN |
38042 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38043 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38044 | done; \ | |
a90ef4bf | 38045 | (cd $(TARGET_SUBDIR)/libssp && \ |
4fa63067 NN |
38046 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38047 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38048 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38049 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 38050 | installcheck) \ |
6aa8ef82 | 38051 | || exit 1 |
6aa8ef82 | 38052 | |
a90ef4bf | 38053 | @endif target-libssp |
6aa8ef82 | 38054 | |
a90ef4bf JM |
38055 | .PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp |
38056 | maybe-mostlyclean-target-libssp: | |
38057 | @if target-libssp | |
38058 | maybe-mostlyclean-target-libssp: mostlyclean-target-libssp | |
6aa8ef82 | 38059 | |
a90ef4bf JM |
38060 | mostlyclean-target-libssp: |
38061 | @: $(MAKE); $(unstage) | |
22121df0 | 38062 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \ |
a90ef4bf | 38063 | r=`${PWD_COMMAND}`; export r; \ |
6aa8ef82 DJ |
38064 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
38065 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38066 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp"; \ |
a90ef4bf JM |
38067 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38068 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38069 | done; \ | |
38070 | (cd $(TARGET_SUBDIR)/libssp && \ | |
38071 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38072 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38073 | "RANLIB=$${RANLIB}" \ | |
38074 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
38075 | mostlyclean) \ | |
38076 | || exit 1 | |
6aa8ef82 | 38077 | |
a90ef4bf | 38078 | @endif target-libssp |
6aa8ef82 | 38079 | |
a90ef4bf JM |
38080 | .PHONY: maybe-clean-target-libssp clean-target-libssp |
38081 | maybe-clean-target-libssp: | |
38082 | @if target-libssp | |
38083 | maybe-clean-target-libssp: clean-target-libssp | |
6aa8ef82 | 38084 | |
a90ef4bf JM |
38085 | clean-target-libssp: |
38086 | @: $(MAKE); $(unstage) | |
22121df0 | 38087 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \ |
a90ef4bf | 38088 | r=`${PWD_COMMAND}`; export r; \ |
6aa8ef82 DJ |
38089 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
38090 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38091 | echo "Doing clean in $(TARGET_SUBDIR)/libssp"; \ |
a90ef4bf JM |
38092 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38093 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38094 | done; \ | |
38095 | (cd $(TARGET_SUBDIR)/libssp && \ | |
38096 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38097 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38098 | "RANLIB=$${RANLIB}" \ | |
38099 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
38100 | clean) \ | |
38101 | || exit 1 | |
6aa8ef82 | 38102 | |
a90ef4bf | 38103 | @endif target-libssp |
6aa8ef82 | 38104 | |
a90ef4bf JM |
38105 | .PHONY: maybe-distclean-target-libssp distclean-target-libssp |
38106 | maybe-distclean-target-libssp: | |
38107 | @if target-libssp | |
38108 | maybe-distclean-target-libssp: distclean-target-libssp | |
6aa8ef82 | 38109 | |
a90ef4bf JM |
38110 | distclean-target-libssp: |
38111 | @: $(MAKE); $(unstage) | |
22121df0 | 38112 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \ |
a90ef4bf | 38113 | r=`${PWD_COMMAND}`; export r; \ |
6aa8ef82 DJ |
38114 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
38115 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38116 | echo "Doing distclean in $(TARGET_SUBDIR)/libssp"; \ |
a90ef4bf JM |
38117 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38118 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38119 | done; \ | |
38120 | (cd $(TARGET_SUBDIR)/libssp && \ | |
38121 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38122 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38123 | "RANLIB=$${RANLIB}" \ | |
38124 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
38125 | distclean) \ | |
38126 | || exit 1 | |
6aa8ef82 | 38127 | |
a90ef4bf | 38128 | @endif target-libssp |
6aa8ef82 | 38129 | |
a90ef4bf JM |
38130 | .PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp |
38131 | maybe-maintainer-clean-target-libssp: | |
38132 | @if target-libssp | |
38133 | maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp | |
6aa8ef82 | 38134 | |
a90ef4bf JM |
38135 | maintainer-clean-target-libssp: |
38136 | @: $(MAKE); $(unstage) | |
22121df0 | 38137 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \ |
a90ef4bf | 38138 | r=`${PWD_COMMAND}`; export r; \ |
6aa8ef82 DJ |
38139 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
38140 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38141 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp"; \ |
a90ef4bf JM |
38142 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38143 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38144 | done; \ | |
38145 | (cd $(TARGET_SUBDIR)/libssp && \ | |
38146 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38147 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38148 | "RANLIB=$${RANLIB}" \ | |
38149 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
38150 | maintainer-clean) \ | |
38151 | || exit 1 | |
6aa8ef82 | 38152 | |
a90ef4bf | 38153 | @endif target-libssp |
6aa8ef82 DJ |
38154 | |
38155 | ||
a90ef4bf JM |
38156 | |
38157 | ||
38158 | ||
38159 | .PHONY: configure-target-newlib maybe-configure-target-newlib | |
38160 | maybe-configure-target-newlib: | |
38161 | @if gcc-bootstrap | |
38162 | configure-target-newlib: stage_current | |
38163 | @endif gcc-bootstrap | |
38164 | @if target-newlib | |
38165 | maybe-configure-target-newlib: configure-target-newlib | |
38166 | configure-target-newlib: | |
38167 | @: $(MAKE); $(unstage) | |
6aa8ef82 DJ |
38168 | @r=`${PWD_COMMAND}`; export r; \ |
38169 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 38170 | echo "Checking multilib configuration for newlib..."; \ |
22121df0 L |
38171 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \ |
38172 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null; \ | |
a90ef4bf JM |
38173 | if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \ |
38174 | if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \ | |
38175 | rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \ | |
38176 | else \ | |
38177 | rm -f $(TARGET_SUBDIR)/newlib/Makefile; \ | |
38178 | mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \ | |
38179 | fi; \ | |
6aa8ef82 | 38180 | else \ |
a90ef4bf | 38181 | mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \ |
6aa8ef82 | 38182 | fi; \ |
a90ef4bf | 38183 | test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \ |
22121df0 | 38184 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \ |
a90ef4bf JM |
38185 | $(NORMAL_TARGET_EXPORTS) \ |
38186 | echo Configuring in $(TARGET_SUBDIR)/newlib; \ | |
38187 | cd "$(TARGET_SUBDIR)/newlib" || exit 1; \ | |
38188 | case $(srcdir) in \ | |
38189 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
38190 | *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \ | |
38191 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
38192 | esac; \ | |
1b6c0831 | 38193 | module_srcdir=newlib; \ |
a90ef4bf | 38194 | rm -f no-such-file || : ; \ |
1b6c0831 L |
38195 | CONFIG_SITE=no-such-file $(SHELL) \ |
38196 | $$s/$$module_srcdir/configure \ | |
38197 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 38198 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 38199 | --target=${target_alias} \ |
a90ef4bf JM |
38200 | || exit 1 |
38201 | @endif target-newlib | |
6aa8ef82 DJ |
38202 | |
38203 | ||
38204 | ||
38205 | ||
38206 | ||
a90ef4bf JM |
38207 | .PHONY: all-target-newlib maybe-all-target-newlib |
38208 | maybe-all-target-newlib: | |
38209 | @if gcc-bootstrap | |
38210 | all-target-newlib: stage_current | |
38211 | @endif gcc-bootstrap | |
38212 | @if target-newlib | |
38213 | TARGET-target-newlib=all | |
38214 | maybe-all-target-newlib: all-target-newlib | |
38215 | all-target-newlib: configure-target-newlib | |
38216 | @: $(MAKE); $(unstage) | |
38217 | @r=`${PWD_COMMAND}`; export r; \ | |
38218 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38219 | $(NORMAL_TARGET_EXPORTS) \ | |
38220 | (cd $(TARGET_SUBDIR)/newlib && \ | |
b3676d82 | 38221 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
a90ef4bf JM |
38222 | $(TARGET-target-newlib)) |
38223 | @endif target-newlib | |
6aa8ef82 | 38224 | |
6aa8ef82 | 38225 | |
6aa8ef82 | 38226 | |
6aa8ef82 | 38227 | |
6aa8ef82 | 38228 | |
a90ef4bf JM |
38229 | .PHONY: check-target-newlib maybe-check-target-newlib |
38230 | maybe-check-target-newlib: | |
38231 | @if target-newlib | |
38232 | maybe-check-target-newlib: check-target-newlib | |
38233 | ||
38234 | check-target-newlib: | |
6aa8ef82 DJ |
38235 | @: $(MAKE); $(unstage) |
38236 | @r=`${PWD_COMMAND}`; export r; \ | |
38237 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38238 | $(NORMAL_TARGET_EXPORTS) \ | |
a90ef4bf JM |
38239 | (cd $(TARGET_SUBDIR)/newlib && \ |
38240 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
38241 | ||
38242 | @endif target-newlib | |
38243 | ||
38244 | .PHONY: install-target-newlib maybe-install-target-newlib | |
38245 | maybe-install-target-newlib: | |
38246 | @if target-newlib | |
38247 | maybe-install-target-newlib: install-target-newlib | |
38248 | ||
38249 | install-target-newlib: installdirs | |
38250 | @: $(MAKE); $(unstage) | |
38251 | @r=`${PWD_COMMAND}`; export r; \ | |
38252 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38253 | $(NORMAL_TARGET_EXPORTS) \ | |
38254 | (cd $(TARGET_SUBDIR)/newlib && \ | |
6aa8ef82 DJ |
38255 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
38256 | ||
a90ef4bf | 38257 | @endif target-newlib |
6aa8ef82 | 38258 | |
a90ef4bf JM |
38259 | .PHONY: install-strip-target-newlib maybe-install-strip-target-newlib |
38260 | maybe-install-strip-target-newlib: | |
38261 | @if target-newlib | |
38262 | maybe-install-strip-target-newlib: install-strip-target-newlib | |
9b980aa1 | 38263 | |
a90ef4bf | 38264 | install-strip-target-newlib: installdirs |
9b980aa1 RW |
38265 | @: $(MAKE); $(unstage) |
38266 | @r=`${PWD_COMMAND}`; export r; \ | |
38267 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38268 | $(NORMAL_TARGET_EXPORTS) \ | |
a90ef4bf | 38269 | (cd $(TARGET_SUBDIR)/newlib && \ |
9b980aa1 RW |
38270 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) |
38271 | ||
a90ef4bf | 38272 | @endif target-newlib |
9b980aa1 | 38273 | |
6aa8ef82 DJ |
38274 | # Other targets (info, dvi, pdf, etc.) |
38275 | ||
a90ef4bf JM |
38276 | .PHONY: maybe-info-target-newlib info-target-newlib |
38277 | maybe-info-target-newlib: | |
38278 | @if target-newlib | |
38279 | maybe-info-target-newlib: info-target-newlib | |
6aa8ef82 | 38280 | |
a90ef4bf JM |
38281 | info-target-newlib: \ |
38282 | configure-target-newlib | |
6aa8ef82 | 38283 | @: $(MAKE); $(unstage) |
22121df0 | 38284 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \ |
6aa8ef82 DJ |
38285 | r=`${PWD_COMMAND}`; export r; \ |
38286 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38287 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38288 | echo "Doing info in $(TARGET_SUBDIR)/newlib"; \ |
6aa8ef82 DJ |
38289 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38290 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38291 | done; \ | |
a90ef4bf | 38292 | (cd $(TARGET_SUBDIR)/newlib && \ |
6aa8ef82 DJ |
38293 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38294 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38295 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38296 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6aa8ef82 DJ |
38297 | info) \ |
38298 | || exit 1 | |
38299 | ||
a90ef4bf | 38300 | @endif target-newlib |
6aa8ef82 | 38301 | |
a90ef4bf JM |
38302 | .PHONY: maybe-dvi-target-newlib dvi-target-newlib |
38303 | maybe-dvi-target-newlib: | |
38304 | @if target-newlib | |
38305 | maybe-dvi-target-newlib: dvi-target-newlib | |
6aa8ef82 | 38306 | |
a90ef4bf JM |
38307 | dvi-target-newlib: \ |
38308 | configure-target-newlib | |
6aa8ef82 | 38309 | @: $(MAKE); $(unstage) |
22121df0 | 38310 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \ |
6aa8ef82 DJ |
38311 | r=`${PWD_COMMAND}`; export r; \ |
38312 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38313 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38314 | echo "Doing dvi in $(TARGET_SUBDIR)/newlib"; \ |
6aa8ef82 DJ |
38315 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38316 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38317 | done; \ | |
a90ef4bf | 38318 | (cd $(TARGET_SUBDIR)/newlib && \ |
6aa8ef82 DJ |
38319 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38320 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38321 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38322 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6aa8ef82 DJ |
38323 | dvi) \ |
38324 | || exit 1 | |
38325 | ||
a90ef4bf | 38326 | @endif target-newlib |
6aa8ef82 | 38327 | |
a90ef4bf JM |
38328 | .PHONY: maybe-pdf-target-newlib pdf-target-newlib |
38329 | maybe-pdf-target-newlib: | |
38330 | @if target-newlib | |
38331 | maybe-pdf-target-newlib: pdf-target-newlib | |
6aa8ef82 | 38332 | |
a90ef4bf JM |
38333 | pdf-target-newlib: \ |
38334 | configure-target-newlib | |
6aa8ef82 | 38335 | @: $(MAKE); $(unstage) |
22121df0 | 38336 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \ |
6aa8ef82 DJ |
38337 | r=`${PWD_COMMAND}`; export r; \ |
38338 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38339 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38340 | echo "Doing pdf in $(TARGET_SUBDIR)/newlib"; \ |
6aa8ef82 DJ |
38341 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38342 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38343 | done; \ | |
a90ef4bf | 38344 | (cd $(TARGET_SUBDIR)/newlib && \ |
6aa8ef82 DJ |
38345 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38346 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38347 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38348 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6aa8ef82 DJ |
38349 | pdf) \ |
38350 | || exit 1 | |
38351 | ||
a90ef4bf | 38352 | @endif target-newlib |
6aa8ef82 | 38353 | |
a90ef4bf JM |
38354 | .PHONY: maybe-html-target-newlib html-target-newlib |
38355 | maybe-html-target-newlib: | |
38356 | @if target-newlib | |
38357 | maybe-html-target-newlib: html-target-newlib | |
6aa8ef82 | 38358 | |
a90ef4bf JM |
38359 | html-target-newlib: \ |
38360 | configure-target-newlib | |
6aa8ef82 | 38361 | @: $(MAKE); $(unstage) |
22121df0 | 38362 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \ |
6aa8ef82 DJ |
38363 | r=`${PWD_COMMAND}`; export r; \ |
38364 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38365 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38366 | echo "Doing html in $(TARGET_SUBDIR)/newlib"; \ |
6aa8ef82 DJ |
38367 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38368 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38369 | done; \ | |
a90ef4bf | 38370 | (cd $(TARGET_SUBDIR)/newlib && \ |
6aa8ef82 DJ |
38371 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38372 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38373 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38374 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6aa8ef82 DJ |
38375 | html) \ |
38376 | || exit 1 | |
38377 | ||
a90ef4bf | 38378 | @endif target-newlib |
6aa8ef82 | 38379 | |
a90ef4bf JM |
38380 | .PHONY: maybe-TAGS-target-newlib TAGS-target-newlib |
38381 | maybe-TAGS-target-newlib: | |
38382 | @if target-newlib | |
38383 | maybe-TAGS-target-newlib: TAGS-target-newlib | |
6aa8ef82 | 38384 | |
a90ef4bf JM |
38385 | TAGS-target-newlib: \ |
38386 | configure-target-newlib | |
6aa8ef82 | 38387 | @: $(MAKE); $(unstage) |
22121df0 | 38388 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \ |
6aa8ef82 DJ |
38389 | r=`${PWD_COMMAND}`; export r; \ |
38390 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38391 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38392 | echo "Doing TAGS in $(TARGET_SUBDIR)/newlib"; \ |
6aa8ef82 DJ |
38393 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38394 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38395 | done; \ | |
a90ef4bf | 38396 | (cd $(TARGET_SUBDIR)/newlib && \ |
6aa8ef82 DJ |
38397 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38398 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38399 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38400 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6aa8ef82 DJ |
38401 | TAGS) \ |
38402 | || exit 1 | |
38403 | ||
a90ef4bf | 38404 | @endif target-newlib |
6aa8ef82 | 38405 | |
a90ef4bf JM |
38406 | .PHONY: maybe-install-info-target-newlib install-info-target-newlib |
38407 | maybe-install-info-target-newlib: | |
38408 | @if target-newlib | |
38409 | maybe-install-info-target-newlib: install-info-target-newlib | |
6aa8ef82 | 38410 | |
a90ef4bf JM |
38411 | install-info-target-newlib: \ |
38412 | configure-target-newlib \ | |
38413 | info-target-newlib | |
6aa8ef82 | 38414 | @: $(MAKE); $(unstage) |
22121df0 | 38415 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \ |
6aa8ef82 DJ |
38416 | r=`${PWD_COMMAND}`; export r; \ |
38417 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38418 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38419 | echo "Doing install-info in $(TARGET_SUBDIR)/newlib"; \ |
6aa8ef82 DJ |
38420 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38421 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38422 | done; \ | |
a90ef4bf | 38423 | (cd $(TARGET_SUBDIR)/newlib && \ |
6aa8ef82 DJ |
38424 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38425 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38426 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38427 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6aa8ef82 DJ |
38428 | install-info) \ |
38429 | || exit 1 | |
38430 | ||
a90ef4bf | 38431 | @endif target-newlib |
6aa8ef82 | 38432 | |
a90ef4bf JM |
38433 | .PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib |
38434 | maybe-install-pdf-target-newlib: | |
38435 | @if target-newlib | |
38436 | maybe-install-pdf-target-newlib: install-pdf-target-newlib | |
a3ca38d2 | 38437 | |
a90ef4bf JM |
38438 | install-pdf-target-newlib: \ |
38439 | configure-target-newlib \ | |
38440 | pdf-target-newlib | |
a3ca38d2 | 38441 | @: $(MAKE); $(unstage) |
22121df0 | 38442 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \ |
a3ca38d2 DD |
38443 | r=`${PWD_COMMAND}`; export r; \ |
38444 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38445 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38446 | echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib"; \ |
a3ca38d2 DD |
38447 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38448 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38449 | done; \ | |
a90ef4bf | 38450 | (cd $(TARGET_SUBDIR)/newlib && \ |
a3ca38d2 DD |
38451 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38452 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38453 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38454 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
38455 | install-pdf) \ |
38456 | || exit 1 | |
38457 | ||
a90ef4bf | 38458 | @endif target-newlib |
a3ca38d2 | 38459 | |
a90ef4bf JM |
38460 | .PHONY: maybe-install-html-target-newlib install-html-target-newlib |
38461 | maybe-install-html-target-newlib: | |
38462 | @if target-newlib | |
38463 | maybe-install-html-target-newlib: install-html-target-newlib | |
6aa8ef82 | 38464 | |
a90ef4bf JM |
38465 | install-html-target-newlib: \ |
38466 | configure-target-newlib \ | |
38467 | html-target-newlib | |
6aa8ef82 | 38468 | @: $(MAKE); $(unstage) |
22121df0 | 38469 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \ |
6aa8ef82 DJ |
38470 | r=`${PWD_COMMAND}`; export r; \ |
38471 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38472 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38473 | echo "Doing install-html in $(TARGET_SUBDIR)/newlib"; \ |
6aa8ef82 DJ |
38474 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38475 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38476 | done; \ | |
a90ef4bf | 38477 | (cd $(TARGET_SUBDIR)/newlib && \ |
6aa8ef82 DJ |
38478 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38479 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38480 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38481 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6aa8ef82 DJ |
38482 | install-html) \ |
38483 | || exit 1 | |
38484 | ||
a90ef4bf | 38485 | @endif target-newlib |
6aa8ef82 | 38486 | |
a90ef4bf JM |
38487 | .PHONY: maybe-installcheck-target-newlib installcheck-target-newlib |
38488 | maybe-installcheck-target-newlib: | |
38489 | @if target-newlib | |
38490 | maybe-installcheck-target-newlib: installcheck-target-newlib | |
6aa8ef82 | 38491 | |
a90ef4bf JM |
38492 | installcheck-target-newlib: \ |
38493 | configure-target-newlib | |
6aa8ef82 | 38494 | @: $(MAKE); $(unstage) |
22121df0 | 38495 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \ |
6aa8ef82 DJ |
38496 | r=`${PWD_COMMAND}`; export r; \ |
38497 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38498 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38499 | echo "Doing installcheck in $(TARGET_SUBDIR)/newlib"; \ |
6aa8ef82 DJ |
38500 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38501 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38502 | done; \ | |
a90ef4bf | 38503 | (cd $(TARGET_SUBDIR)/newlib && \ |
6aa8ef82 DJ |
38504 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38505 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38506 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38507 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6aa8ef82 DJ |
38508 | installcheck) \ |
38509 | || exit 1 | |
38510 | ||
a90ef4bf | 38511 | @endif target-newlib |
6aa8ef82 | 38512 | |
a90ef4bf JM |
38513 | .PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib |
38514 | maybe-mostlyclean-target-newlib: | |
38515 | @if target-newlib | |
38516 | maybe-mostlyclean-target-newlib: mostlyclean-target-newlib | |
6aa8ef82 | 38517 | |
a90ef4bf | 38518 | mostlyclean-target-newlib: |
6aa8ef82 | 38519 | @: $(MAKE); $(unstage) |
22121df0 | 38520 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \ |
6aa8ef82 DJ |
38521 | r=`${PWD_COMMAND}`; export r; \ |
38522 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38523 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38524 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib"; \ |
6aa8ef82 DJ |
38525 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38526 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38527 | done; \ | |
a90ef4bf | 38528 | (cd $(TARGET_SUBDIR)/newlib && \ |
6aa8ef82 DJ |
38529 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38530 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38531 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38532 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6aa8ef82 DJ |
38533 | mostlyclean) \ |
38534 | || exit 1 | |
38535 | ||
a90ef4bf | 38536 | @endif target-newlib |
6aa8ef82 | 38537 | |
a90ef4bf JM |
38538 | .PHONY: maybe-clean-target-newlib clean-target-newlib |
38539 | maybe-clean-target-newlib: | |
38540 | @if target-newlib | |
38541 | maybe-clean-target-newlib: clean-target-newlib | |
6aa8ef82 | 38542 | |
a90ef4bf | 38543 | clean-target-newlib: |
6aa8ef82 | 38544 | @: $(MAKE); $(unstage) |
22121df0 | 38545 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \ |
6aa8ef82 DJ |
38546 | r=`${PWD_COMMAND}`; export r; \ |
38547 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38548 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38549 | echo "Doing clean in $(TARGET_SUBDIR)/newlib"; \ |
6aa8ef82 DJ |
38550 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38551 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38552 | done; \ | |
a90ef4bf | 38553 | (cd $(TARGET_SUBDIR)/newlib && \ |
6aa8ef82 DJ |
38554 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38555 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38556 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38557 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6aa8ef82 DJ |
38558 | clean) \ |
38559 | || exit 1 | |
38560 | ||
a90ef4bf | 38561 | @endif target-newlib |
6aa8ef82 | 38562 | |
a90ef4bf JM |
38563 | .PHONY: maybe-distclean-target-newlib distclean-target-newlib |
38564 | maybe-distclean-target-newlib: | |
38565 | @if target-newlib | |
38566 | maybe-distclean-target-newlib: distclean-target-newlib | |
6aa8ef82 | 38567 | |
a90ef4bf | 38568 | distclean-target-newlib: |
6aa8ef82 | 38569 | @: $(MAKE); $(unstage) |
22121df0 | 38570 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \ |
6aa8ef82 DJ |
38571 | r=`${PWD_COMMAND}`; export r; \ |
38572 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38573 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38574 | echo "Doing distclean in $(TARGET_SUBDIR)/newlib"; \ |
6aa8ef82 DJ |
38575 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38576 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38577 | done; \ | |
a90ef4bf | 38578 | (cd $(TARGET_SUBDIR)/newlib && \ |
6aa8ef82 DJ |
38579 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38580 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38581 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38582 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6aa8ef82 DJ |
38583 | distclean) \ |
38584 | || exit 1 | |
38585 | ||
a90ef4bf | 38586 | @endif target-newlib |
6aa8ef82 | 38587 | |
a90ef4bf JM |
38588 | .PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib |
38589 | maybe-maintainer-clean-target-newlib: | |
38590 | @if target-newlib | |
38591 | maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib | |
6aa8ef82 | 38592 | |
a90ef4bf | 38593 | maintainer-clean-target-newlib: |
6aa8ef82 | 38594 | @: $(MAKE); $(unstage) |
22121df0 | 38595 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \ |
6aa8ef82 DJ |
38596 | r=`${PWD_COMMAND}`; export r; \ |
38597 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38598 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 38599 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib"; \ |
6aa8ef82 DJ |
38600 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
38601 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38602 | done; \ | |
a90ef4bf | 38603 | (cd $(TARGET_SUBDIR)/newlib && \ |
6aa8ef82 DJ |
38604 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38605 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38606 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 38607 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6aa8ef82 DJ |
38608 | maintainer-clean) \ |
38609 | || exit 1 | |
38610 | ||
a90ef4bf | 38611 | @endif target-newlib |
6aa8ef82 DJ |
38612 | |
38613 | ||
38614 | ||
38615 | ||
38616 | ||
a90ef4bf JM |
38617 | .PHONY: configure-target-libgcc maybe-configure-target-libgcc |
38618 | maybe-configure-target-libgcc: | |
e552509b | 38619 | @if gcc-bootstrap |
a90ef4bf | 38620 | configure-target-libgcc: stage_current |
e552509b | 38621 | @endif gcc-bootstrap |
a90ef4bf JM |
38622 | @if target-libgcc |
38623 | maybe-configure-target-libgcc: configure-target-libgcc | |
38624 | configure-target-libgcc: | |
e552509b ILT |
38625 | @r=`${PWD_COMMAND}`; export r; \ |
38626 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 38627 | echo "Checking multilib configuration for libgcc..."; \ |
22121df0 L |
38628 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \ |
38629 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \ | |
a90ef4bf JM |
38630 | if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \ |
38631 | if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \ | |
38632 | rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \ | |
e552509b | 38633 | else \ |
a90ef4bf JM |
38634 | rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \ |
38635 | mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \ | |
e552509b ILT |
38636 | fi; \ |
38637 | else \ | |
a90ef4bf | 38638 | mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \ |
e552509b | 38639 | fi; \ |
a90ef4bf | 38640 | test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \ |
22121df0 | 38641 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \ |
e552509b | 38642 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
38643 | echo Configuring in $(TARGET_SUBDIR)/libgcc; \ |
38644 | cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \ | |
e552509b ILT |
38645 | case $(srcdir) in \ |
38646 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 38647 | *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \ |
e552509b ILT |
38648 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
38649 | esac; \ | |
1b6c0831 | 38650 | module_srcdir=libgcc; \ |
e552509b | 38651 | rm -f no-such-file || : ; \ |
1b6c0831 L |
38652 | CONFIG_SITE=no-such-file $(SHELL) \ |
38653 | $$s/$$module_srcdir/configure \ | |
38654 | --srcdir=$${topdir}/$$module_srcdir \ | |
e552509b | 38655 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 38656 | --target=${target_alias} \ |
e552509b | 38657 | || exit 1 |
a90ef4bf | 38658 | @endif target-libgcc |
e552509b ILT |
38659 | |
38660 | ||
e552509b | 38661 | |
a90ef4bf JM |
38662 | .PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc |
38663 | maybe-configure-stage1-target-libgcc: | |
38664 | @if target-libgcc-bootstrap | |
38665 | maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc | |
38666 | configure-stage1-target-libgcc: | |
38667 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
38668 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc | |
e552509b ILT |
38669 | @r=`${PWD_COMMAND}`; export r; \ |
38670 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
38671 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
38672 | echo "Checking multilib configuration for libgcc..."; \ | |
22121df0 | 38673 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \ |
a90ef4bf JM |
38674 | if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \ |
38675 | if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \ | |
38676 | rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \ | |
38677 | else \ | |
38678 | rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \ | |
38679 | mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \ | |
38680 | fi; \ | |
38681 | else \ | |
38682 | mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \ | |
38683 | fi; \ | |
38684 | test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \ | |
e552509b | 38685 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
38686 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ |
38687 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
38688 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
38689 | echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc; \ |
38690 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \ | |
a90ef4bf JM |
38691 | cd $(TARGET_SUBDIR)/libgcc || exit 1; \ |
38692 | case $(srcdir) in \ | |
38693 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
38694 | *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \ | |
38695 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
38696 | esac; \ | |
1b6c0831 L |
38697 | module_srcdir=libgcc; \ |
38698 | $(SHELL) $$s/$$module_srcdir/configure \ | |
38699 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 38700 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 L |
38701 | --target=${target_alias} \ |
38702 | \ | |
a90ef4bf JM |
38703 | $(STAGE1_CONFIGURE_FLAGS) |
38704 | @endif target-libgcc-bootstrap | |
e552509b | 38705 | |
a90ef4bf JM |
38706 | .PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc |
38707 | maybe-configure-stage2-target-libgcc: | |
38708 | @if target-libgcc-bootstrap | |
38709 | maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc | |
38710 | configure-stage2-target-libgcc: | |
38711 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
38712 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc | |
e552509b ILT |
38713 | @r=`${PWD_COMMAND}`; export r; \ |
38714 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
38715 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
38716 | echo "Checking multilib configuration for libgcc..."; \ | |
22121df0 | 38717 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \ |
a90ef4bf JM |
38718 | if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \ |
38719 | if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \ | |
38720 | rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \ | |
38721 | else \ | |
38722 | rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \ | |
38723 | mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \ | |
38724 | fi; \ | |
38725 | else \ | |
38726 | mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \ | |
38727 | fi; \ | |
38728 | test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \ | |
e552509b | 38729 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
38730 | \ |
38731 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
38732 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
38733 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
38734 | echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc; \ |
38735 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \ | |
a90ef4bf JM |
38736 | cd $(TARGET_SUBDIR)/libgcc || exit 1; \ |
38737 | case $(srcdir) in \ | |
38738 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
38739 | *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \ | |
38740 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
38741 | esac; \ | |
1b6c0831 L |
38742 | module_srcdir=libgcc; \ |
38743 | $(SHELL) $$s/$$module_srcdir/configure \ | |
38744 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 38745 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 38746 | --target=${target_alias} \ |
22121df0 | 38747 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
38748 | $(STAGE2_CONFIGURE_FLAGS) |
38749 | @endif target-libgcc-bootstrap | |
9b980aa1 | 38750 | |
a90ef4bf JM |
38751 | .PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc |
38752 | maybe-configure-stage3-target-libgcc: | |
38753 | @if target-libgcc-bootstrap | |
38754 | maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc | |
38755 | configure-stage3-target-libgcc: | |
38756 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
38757 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc | |
9b980aa1 RW |
38758 | @r=`${PWD_COMMAND}`; export r; \ |
38759 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
38760 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
38761 | echo "Checking multilib configuration for libgcc..."; \ | |
22121df0 | 38762 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \ |
a90ef4bf JM |
38763 | if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \ |
38764 | if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \ | |
38765 | rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \ | |
38766 | else \ | |
38767 | rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \ | |
38768 | mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \ | |
38769 | fi; \ | |
38770 | else \ | |
38771 | mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \ | |
38772 | fi; \ | |
38773 | test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \ | |
9b980aa1 | 38774 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
38775 | \ |
38776 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
38777 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
38778 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
38779 | echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc; \ |
38780 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \ | |
a90ef4bf JM |
38781 | cd $(TARGET_SUBDIR)/libgcc || exit 1; \ |
38782 | case $(srcdir) in \ | |
38783 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
38784 | *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \ | |
38785 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
38786 | esac; \ | |
1b6c0831 L |
38787 | module_srcdir=libgcc; \ |
38788 | $(SHELL) $$s/$$module_srcdir/configure \ | |
38789 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 38790 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 38791 | --target=${target_alias} \ |
22121df0 | 38792 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
38793 | $(STAGE3_CONFIGURE_FLAGS) |
38794 | @endif target-libgcc-bootstrap | |
e552509b | 38795 | |
a90ef4bf JM |
38796 | .PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc |
38797 | maybe-configure-stage4-target-libgcc: | |
38798 | @if target-libgcc-bootstrap | |
38799 | maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc | |
38800 | configure-stage4-target-libgcc: | |
38801 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
38802 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc | |
38803 | @r=`${PWD_COMMAND}`; export r; \ | |
e552509b | 38804 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
38805 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
38806 | echo "Checking multilib configuration for libgcc..."; \ | |
22121df0 | 38807 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \ |
a90ef4bf JM |
38808 | if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \ |
38809 | if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \ | |
38810 | rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \ | |
38811 | else \ | |
38812 | rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \ | |
38813 | mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \ | |
38814 | fi; \ | |
38815 | else \ | |
38816 | mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \ | |
38817 | fi; \ | |
38818 | test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \ | |
e552509b | 38819 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
38820 | \ |
38821 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
38822 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
38823 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
38824 | echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc; \ |
38825 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \ | |
a90ef4bf JM |
38826 | cd $(TARGET_SUBDIR)/libgcc || exit 1; \ |
38827 | case $(srcdir) in \ | |
38828 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
38829 | *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \ | |
38830 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
38831 | esac; \ | |
1b6c0831 L |
38832 | module_srcdir=libgcc; \ |
38833 | $(SHELL) $$s/$$module_srcdir/configure \ | |
38834 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 38835 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 38836 | --target=${target_alias} \ |
22121df0 | 38837 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
38838 | $(STAGE4_CONFIGURE_FLAGS) |
38839 | @endif target-libgcc-bootstrap | |
38840 | ||
38841 | .PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc | |
38842 | maybe-configure-stageprofile-target-libgcc: | |
38843 | @if target-libgcc-bootstrap | |
38844 | maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc | |
38845 | configure-stageprofile-target-libgcc: | |
38846 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
38847 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc | |
38848 | @r=`${PWD_COMMAND}`; export r; \ | |
e552509b | 38849 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
38850 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
38851 | echo "Checking multilib configuration for libgcc..."; \ | |
22121df0 | 38852 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \ |
a90ef4bf JM |
38853 | if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \ |
38854 | if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \ | |
38855 | rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \ | |
38856 | else \ | |
38857 | rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \ | |
38858 | mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \ | |
38859 | fi; \ | |
38860 | else \ | |
38861 | mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \ | |
38862 | fi; \ | |
38863 | test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \ | |
e552509b | 38864 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
38865 | \ |
38866 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
38867 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
38868 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
38869 | echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc; \ |
38870 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \ | |
a90ef4bf JM |
38871 | cd $(TARGET_SUBDIR)/libgcc || exit 1; \ |
38872 | case $(srcdir) in \ | |
38873 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
38874 | *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \ | |
38875 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
38876 | esac; \ | |
1b6c0831 L |
38877 | module_srcdir=libgcc; \ |
38878 | $(SHELL) $$s/$$module_srcdir/configure \ | |
38879 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 38880 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 38881 | --target=${target_alias} \ |
22121df0 | 38882 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
38883 | $(STAGEprofile_CONFIGURE_FLAGS) |
38884 | @endif target-libgcc-bootstrap | |
e552509b | 38885 | |
a90ef4bf JM |
38886 | .PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc |
38887 | maybe-configure-stagefeedback-target-libgcc: | |
38888 | @if target-libgcc-bootstrap | |
38889 | maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc | |
38890 | configure-stagefeedback-target-libgcc: | |
38891 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
38892 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc | |
38893 | @r=`${PWD_COMMAND}`; export r; \ | |
e552509b | 38894 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
38895 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
38896 | echo "Checking multilib configuration for libgcc..."; \ | |
22121df0 | 38897 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \ |
a90ef4bf JM |
38898 | if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \ |
38899 | if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \ | |
38900 | rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \ | |
38901 | else \ | |
38902 | rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \ | |
38903 | mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \ | |
38904 | fi; \ | |
38905 | else \ | |
38906 | mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \ | |
38907 | fi; \ | |
38908 | test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \ | |
e552509b | 38909 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
38910 | \ |
38911 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
38912 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
38913 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
38914 | echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc; \ |
38915 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \ | |
a90ef4bf JM |
38916 | cd $(TARGET_SUBDIR)/libgcc || exit 1; \ |
38917 | case $(srcdir) in \ | |
38918 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
38919 | *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \ | |
38920 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
38921 | esac; \ | |
1b6c0831 L |
38922 | module_srcdir=libgcc; \ |
38923 | $(SHELL) $$s/$$module_srcdir/configure \ | |
38924 | --srcdir=$${topdir}/$$module_srcdir \ | |
a90ef4bf | 38925 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 38926 | --target=${target_alias} \ |
22121df0 | 38927 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
a90ef4bf JM |
38928 | $(STAGEfeedback_CONFIGURE_FLAGS) |
38929 | @endif target-libgcc-bootstrap | |
e552509b | 38930 | |
e552509b | 38931 | |
e552509b | 38932 | |
e552509b | 38933 | |
e552509b | 38934 | |
a90ef4bf JM |
38935 | .PHONY: all-target-libgcc maybe-all-target-libgcc |
38936 | maybe-all-target-libgcc: | |
38937 | @if gcc-bootstrap | |
38938 | all-target-libgcc: stage_current | |
38939 | @endif gcc-bootstrap | |
38940 | @if target-libgcc | |
38941 | TARGET-target-libgcc=all | |
38942 | maybe-all-target-libgcc: all-target-libgcc | |
38943 | all-target-libgcc: configure-target-libgcc | |
38944 | @r=`${PWD_COMMAND}`; export r; \ | |
e552509b | 38945 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
38946 | $(NORMAL_TARGET_EXPORTS) \ |
38947 | (cd $(TARGET_SUBDIR)/libgcc && \ | |
b3676d82 | 38948 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
a90ef4bf JM |
38949 | $(TARGET-target-libgcc)) |
38950 | @endif target-libgcc | |
e552509b | 38951 | |
e552509b | 38952 | |
e552509b | 38953 | |
a90ef4bf JM |
38954 | .PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc |
38955 | .PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc | |
38956 | maybe-all-stage1-target-libgcc: | |
38957 | maybe-clean-stage1-target-libgcc: | |
38958 | @if target-libgcc-bootstrap | |
38959 | maybe-all-stage1-target-libgcc: all-stage1-target-libgcc | |
38960 | all-stage1: all-stage1-target-libgcc | |
38961 | TARGET-stage1-target-libgcc = $(TARGET-target-libgcc) | |
38962 | all-stage1-target-libgcc: configure-stage1-target-libgcc | |
38963 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
38964 | @r=`${PWD_COMMAND}`; export r; \ | |
e552509b | 38965 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf JM |
38966 | TFLAGS="$(STAGE1_TFLAGS)"; \ |
38967 | $(NORMAL_TARGET_EXPORTS) \ | |
38968 | cd $(TARGET_SUBDIR)/libgcc && \ | |
05a13254 | 38969 | \ |
a90ef4bf JM |
38970 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
38971 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
38972 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
38973 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
38974 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
38975 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
38976 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
38977 | $(EXTRA_TARGET_FLAGS) \ |
38978 | \ | |
05a13254 | 38979 | TFLAGS="$(STAGE1_TFLAGS)" \ |
a90ef4bf | 38980 | $(TARGET-stage1-target-libgcc) |
e552509b | 38981 | |
a90ef4bf JM |
38982 | maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc |
38983 | clean-stage1: clean-stage1-target-libgcc | |
38984 | clean-stage1-target-libgcc: | |
38985 | @if [ $(current_stage) = stage1 ]; then \ | |
38986 | [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ | |
38987 | else \ | |
38988 | [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \ | |
38989 | $(MAKE) stage1-start; \ | |
38990 | fi; \ | |
38991 | cd $(TARGET_SUBDIR)/libgcc && \ | |
38992 | $(MAKE) $(EXTRA_TARGET_FLAGS) \ | |
b3676d82 | 38993 | clean |
a90ef4bf | 38994 | @endif target-libgcc-bootstrap |
e552509b | 38995 | |
e552509b | 38996 | |
a90ef4bf JM |
38997 | .PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc |
38998 | .PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc | |
38999 | maybe-all-stage2-target-libgcc: | |
39000 | maybe-clean-stage2-target-libgcc: | |
39001 | @if target-libgcc-bootstrap | |
39002 | maybe-all-stage2-target-libgcc: all-stage2-target-libgcc | |
39003 | all-stage2: all-stage2-target-libgcc | |
39004 | TARGET-stage2-target-libgcc = $(TARGET-target-libgcc) | |
39005 | all-stage2-target-libgcc: configure-stage2-target-libgcc | |
39006 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
39007 | @r=`${PWD_COMMAND}`; export r; \ | |
e552509b | 39008 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 39009 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
e552509b | 39010 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
39011 | \ |
39012 | cd $(TARGET_SUBDIR)/libgcc && \ | |
05a13254 | 39013 | \ |
a90ef4bf JM |
39014 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
39015 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
39016 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
39017 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
39018 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
39019 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
39020 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
39021 | $(EXTRA_TARGET_FLAGS) \ | |
05a13254 | 39022 | TFLAGS="$(STAGE2_TFLAGS)" \ |
a90ef4bf | 39023 | $(TARGET-stage2-target-libgcc) |
e552509b | 39024 | |
a90ef4bf JM |
39025 | maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc |
39026 | clean-stage2: clean-stage2-target-libgcc | |
39027 | clean-stage2-target-libgcc: | |
39028 | @if [ $(current_stage) = stage2 ]; then \ | |
39029 | [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ | |
39030 | else \ | |
39031 | [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \ | |
39032 | $(MAKE) stage2-start; \ | |
39033 | fi; \ | |
39034 | cd $(TARGET_SUBDIR)/libgcc && \ | |
b3676d82 | 39035 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean |
a90ef4bf | 39036 | @endif target-libgcc-bootstrap |
e552509b | 39037 | |
e552509b | 39038 | |
a90ef4bf JM |
39039 | .PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc |
39040 | .PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc | |
39041 | maybe-all-stage3-target-libgcc: | |
39042 | maybe-clean-stage3-target-libgcc: | |
39043 | @if target-libgcc-bootstrap | |
39044 | maybe-all-stage3-target-libgcc: all-stage3-target-libgcc | |
39045 | all-stage3: all-stage3-target-libgcc | |
39046 | TARGET-stage3-target-libgcc = $(TARGET-target-libgcc) | |
39047 | all-stage3-target-libgcc: configure-stage3-target-libgcc | |
39048 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
39049 | @r=`${PWD_COMMAND}`; export r; \ | |
e552509b | 39050 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 39051 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
e552509b | 39052 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
39053 | \ |
39054 | cd $(TARGET_SUBDIR)/libgcc && \ | |
05a13254 | 39055 | \ |
a90ef4bf JM |
39056 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
39057 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
39058 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
39059 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
39060 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
39061 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
39062 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
39063 | $(EXTRA_TARGET_FLAGS) \ | |
05a13254 | 39064 | TFLAGS="$(STAGE3_TFLAGS)" \ |
a90ef4bf | 39065 | $(TARGET-stage3-target-libgcc) |
e552509b | 39066 | |
a90ef4bf JM |
39067 | maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc |
39068 | clean-stage3: clean-stage3-target-libgcc | |
39069 | clean-stage3-target-libgcc: | |
39070 | @if [ $(current_stage) = stage3 ]; then \ | |
39071 | [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ | |
39072 | else \ | |
39073 | [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \ | |
39074 | $(MAKE) stage3-start; \ | |
39075 | fi; \ | |
39076 | cd $(TARGET_SUBDIR)/libgcc && \ | |
b3676d82 | 39077 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean |
a90ef4bf | 39078 | @endif target-libgcc-bootstrap |
e552509b | 39079 | |
e552509b | 39080 | |
a90ef4bf JM |
39081 | .PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc |
39082 | .PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc | |
39083 | maybe-all-stage4-target-libgcc: | |
39084 | maybe-clean-stage4-target-libgcc: | |
39085 | @if target-libgcc-bootstrap | |
39086 | maybe-all-stage4-target-libgcc: all-stage4-target-libgcc | |
39087 | all-stage4: all-stage4-target-libgcc | |
39088 | TARGET-stage4-target-libgcc = $(TARGET-target-libgcc) | |
39089 | all-stage4-target-libgcc: configure-stage4-target-libgcc | |
39090 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
39091 | @r=`${PWD_COMMAND}`; export r; \ | |
e552509b | 39092 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
a90ef4bf | 39093 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
e552509b | 39094 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
39095 | \ |
39096 | cd $(TARGET_SUBDIR)/libgcc && \ | |
05a13254 | 39097 | \ |
a90ef4bf JM |
39098 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
39099 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
39100 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
39101 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
39102 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
39103 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
39104 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
39105 | $(EXTRA_TARGET_FLAGS) \ | |
05a13254 | 39106 | TFLAGS="$(STAGE4_TFLAGS)" \ |
a90ef4bf | 39107 | $(TARGET-stage4-target-libgcc) |
e552509b | 39108 | |
a90ef4bf JM |
39109 | maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc |
39110 | clean-stage4: clean-stage4-target-libgcc | |
39111 | clean-stage4-target-libgcc: | |
39112 | @if [ $(current_stage) = stage4 ]; then \ | |
39113 | [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ | |
39114 | else \ | |
39115 | [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \ | |
39116 | $(MAKE) stage4-start; \ | |
39117 | fi; \ | |
39118 | cd $(TARGET_SUBDIR)/libgcc && \ | |
b3676d82 | 39119 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean |
a90ef4bf | 39120 | @endif target-libgcc-bootstrap |
e552509b ILT |
39121 | |
39122 | ||
a90ef4bf JM |
39123 | .PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc |
39124 | .PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc | |
39125 | maybe-all-stageprofile-target-libgcc: | |
39126 | maybe-clean-stageprofile-target-libgcc: | |
39127 | @if target-libgcc-bootstrap | |
39128 | maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc | |
39129 | all-stageprofile: all-stageprofile-target-libgcc | |
39130 | TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc) | |
39131 | all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc | |
39132 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
0aed8855 PB |
39133 | @r=`${PWD_COMMAND}`; export r; \ |
39134 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
39135 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ |
39136 | $(NORMAL_TARGET_EXPORTS) \ | |
39137 | \ | |
39138 | cd $(TARGET_SUBDIR)/libgcc && \ | |
05a13254 | 39139 | \ |
a90ef4bf JM |
39140 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
39141 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
39142 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
39143 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
39144 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
39145 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
39146 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
39147 | $(EXTRA_TARGET_FLAGS) \ | |
05a13254 | 39148 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
a90ef4bf JM |
39149 | $(TARGET-stageprofile-target-libgcc) |
39150 | ||
39151 | maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc | |
39152 | clean-stageprofile: clean-stageprofile-target-libgcc | |
39153 | clean-stageprofile-target-libgcc: | |
39154 | @if [ $(current_stage) = stageprofile ]; then \ | |
39155 | [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ | |
0aed8855 | 39156 | else \ |
a90ef4bf JM |
39157 | [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \ |
39158 | $(MAKE) stageprofile-start; \ | |
c52c6897 | 39159 | fi; \ |
a90ef4bf | 39160 | cd $(TARGET_SUBDIR)/libgcc && \ |
b3676d82 | 39161 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean |
a90ef4bf | 39162 | @endif target-libgcc-bootstrap |
d545f33b PB |
39163 | |
39164 | ||
a90ef4bf JM |
39165 | .PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc |
39166 | .PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc | |
39167 | maybe-all-stagefeedback-target-libgcc: | |
39168 | maybe-clean-stagefeedback-target-libgcc: | |
39169 | @if target-libgcc-bootstrap | |
39170 | maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc | |
39171 | all-stagefeedback: all-stagefeedback-target-libgcc | |
39172 | TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc) | |
39173 | all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc | |
39174 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
4b1cb4fe DD |
39175 | @r=`${PWD_COMMAND}`; export r; \ |
39176 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf JM |
39177 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
39178 | $(NORMAL_TARGET_EXPORTS) \ | |
39179 | \ | |
39180 | cd $(TARGET_SUBDIR)/libgcc && \ | |
05a13254 | 39181 | \ |
a90ef4bf JM |
39182 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
39183 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
39184 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
39185 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
39186 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
39187 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
39188 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
39189 | $(EXTRA_TARGET_FLAGS) \ | |
05a13254 | 39190 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
a90ef4bf JM |
39191 | $(TARGET-stagefeedback-target-libgcc) |
39192 | ||
39193 | maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc | |
39194 | clean-stagefeedback: clean-stagefeedback-target-libgcc | |
39195 | clean-stagefeedback-target-libgcc: | |
39196 | @if [ $(current_stage) = stagefeedback ]; then \ | |
39197 | [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ | |
39198 | else \ | |
39199 | [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \ | |
39200 | $(MAKE) stagefeedback-start; \ | |
39201 | fi; \ | |
39202 | cd $(TARGET_SUBDIR)/libgcc && \ | |
b3676d82 | 39203 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean |
a90ef4bf | 39204 | @endif target-libgcc-bootstrap |
4b1cb4fe | 39205 | |
a7254363 PB |
39206 | |
39207 | ||
d545f33b PB |
39208 | |
39209 | ||
4b1cb4fe | 39210 | |
a90ef4bf JM |
39211 | .PHONY: check-target-libgcc maybe-check-target-libgcc |
39212 | maybe-check-target-libgcc: | |
39213 | @if target-libgcc | |
39214 | maybe-check-target-libgcc: check-target-libgcc | |
4b1cb4fe | 39215 | |
a90ef4bf JM |
39216 | # Dummy target for uncheckable module. |
39217 | check-target-libgcc: | |
4b1cb4fe | 39218 | |
a90ef4bf | 39219 | @endif target-libgcc |
4b1cb4fe | 39220 | |
a90ef4bf JM |
39221 | .PHONY: install-target-libgcc maybe-install-target-libgcc |
39222 | maybe-install-target-libgcc: | |
39223 | @if target-libgcc | |
39224 | maybe-install-target-libgcc: install-target-libgcc | |
39225 | ||
39226 | install-target-libgcc: installdirs | |
0aed8855 | 39227 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
39228 | @r=`${PWD_COMMAND}`; export r; \ |
39229 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 39230 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 39231 | (cd $(TARGET_SUBDIR)/libgcc && \ |
7ffa0b57 | 39232 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4b1cb4fe | 39233 | |
a90ef4bf | 39234 | @endif target-libgcc |
4b1cb4fe | 39235 | |
a90ef4bf JM |
39236 | .PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc |
39237 | maybe-install-strip-target-libgcc: | |
39238 | @if target-libgcc | |
39239 | maybe-install-strip-target-libgcc: install-strip-target-libgcc | |
9b980aa1 | 39240 | |
a90ef4bf | 39241 | install-strip-target-libgcc: installdirs |
9b980aa1 RW |
39242 | @: $(MAKE); $(unstage) |
39243 | @r=`${PWD_COMMAND}`; export r; \ | |
39244 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39245 | $(NORMAL_TARGET_EXPORTS) \ | |
a90ef4bf | 39246 | (cd $(TARGET_SUBDIR)/libgcc && \ |
9b980aa1 RW |
39247 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) |
39248 | ||
a90ef4bf | 39249 | @endif target-libgcc |
9b980aa1 | 39250 | |
56a8fe78 | 39251 | # Other targets (info, dvi, pdf, etc.) |
4b1cb4fe | 39252 | |
a90ef4bf JM |
39253 | .PHONY: maybe-info-target-libgcc info-target-libgcc |
39254 | maybe-info-target-libgcc: | |
39255 | @if target-libgcc | |
39256 | maybe-info-target-libgcc: info-target-libgcc | |
4b1cb4fe | 39257 | |
a90ef4bf JM |
39258 | info-target-libgcc: \ |
39259 | configure-target-libgcc | |
0aed8855 | 39260 | @: $(MAKE); $(unstage) |
22121df0 | 39261 | @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ |
4b1cb4fe DD |
39262 | r=`${PWD_COMMAND}`; export r; \ |
39263 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 39264 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 39265 | echo "Doing info in $(TARGET_SUBDIR)/libgcc"; \ |
4b1cb4fe DD |
39266 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39267 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39268 | done; \ | |
a90ef4bf | 39269 | (cd $(TARGET_SUBDIR)/libgcc && \ |
4b1cb4fe DD |
39270 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
39271 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39272 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 39273 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 39274 | info) \ |
4b1cb4fe DD |
39275 | || exit 1 |
39276 | ||
a90ef4bf | 39277 | @endif target-libgcc |
4b1cb4fe | 39278 | |
a90ef4bf JM |
39279 | .PHONY: maybe-dvi-target-libgcc dvi-target-libgcc |
39280 | maybe-dvi-target-libgcc: | |
39281 | @if target-libgcc | |
39282 | maybe-dvi-target-libgcc: dvi-target-libgcc | |
4b1cb4fe | 39283 | |
a90ef4bf JM |
39284 | dvi-target-libgcc: \ |
39285 | configure-target-libgcc | |
0aed8855 | 39286 | @: $(MAKE); $(unstage) |
22121df0 | 39287 | @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ |
4b1cb4fe DD |
39288 | r=`${PWD_COMMAND}`; export r; \ |
39289 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 39290 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 39291 | echo "Doing dvi in $(TARGET_SUBDIR)/libgcc"; \ |
4b1cb4fe DD |
39292 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39293 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39294 | done; \ | |
a90ef4bf | 39295 | (cd $(TARGET_SUBDIR)/libgcc && \ |
4b1cb4fe DD |
39296 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
39297 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39298 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 39299 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 39300 | dvi) \ |
4b1cb4fe DD |
39301 | || exit 1 |
39302 | ||
a90ef4bf | 39303 | @endif target-libgcc |
4b1cb4fe | 39304 | |
a90ef4bf JM |
39305 | .PHONY: maybe-pdf-target-libgcc pdf-target-libgcc |
39306 | maybe-pdf-target-libgcc: | |
39307 | @if target-libgcc | |
39308 | maybe-pdf-target-libgcc: pdf-target-libgcc | |
56a8fe78 | 39309 | |
a90ef4bf JM |
39310 | pdf-target-libgcc: \ |
39311 | configure-target-libgcc | |
56a8fe78 | 39312 | @: $(MAKE); $(unstage) |
22121df0 | 39313 | @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ |
56a8fe78 DD |
39314 | r=`${PWD_COMMAND}`; export r; \ |
39315 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39316 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 39317 | echo "Doing pdf in $(TARGET_SUBDIR)/libgcc"; \ |
56a8fe78 DD |
39318 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39319 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39320 | done; \ | |
a90ef4bf | 39321 | (cd $(TARGET_SUBDIR)/libgcc && \ |
56a8fe78 DD |
39322 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
39323 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39324 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 39325 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
39326 | pdf) \ |
39327 | || exit 1 | |
39328 | ||
a90ef4bf | 39329 | @endif target-libgcc |
56a8fe78 | 39330 | |
a90ef4bf JM |
39331 | .PHONY: maybe-html-target-libgcc html-target-libgcc |
39332 | maybe-html-target-libgcc: | |
39333 | @if target-libgcc | |
39334 | maybe-html-target-libgcc: html-target-libgcc | |
6d389afc | 39335 | |
a90ef4bf JM |
39336 | html-target-libgcc: \ |
39337 | configure-target-libgcc | |
0aed8855 | 39338 | @: $(MAKE); $(unstage) |
22121df0 | 39339 | @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ |
6d389afc MS |
39340 | r=`${PWD_COMMAND}`; export r; \ |
39341 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 39342 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 39343 | echo "Doing html in $(TARGET_SUBDIR)/libgcc"; \ |
6d389afc MS |
39344 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39345 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39346 | done; \ | |
a90ef4bf | 39347 | (cd $(TARGET_SUBDIR)/libgcc && \ |
6d389afc MS |
39348 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
39349 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39350 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 39351 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
39352 | html) \ |
39353 | || exit 1 | |
39354 | ||
a90ef4bf | 39355 | @endif target-libgcc |
6d389afc | 39356 | |
a90ef4bf JM |
39357 | .PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc |
39358 | maybe-TAGS-target-libgcc: | |
39359 | @if target-libgcc | |
39360 | maybe-TAGS-target-libgcc: TAGS-target-libgcc | |
4b1cb4fe | 39361 | |
a90ef4bf JM |
39362 | TAGS-target-libgcc: \ |
39363 | configure-target-libgcc | |
0aed8855 | 39364 | @: $(MAKE); $(unstage) |
22121df0 | 39365 | @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ |
4b1cb4fe DD |
39366 | r=`${PWD_COMMAND}`; export r; \ |
39367 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 39368 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 39369 | echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc"; \ |
4b1cb4fe DD |
39370 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39371 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39372 | done; \ | |
a90ef4bf | 39373 | (cd $(TARGET_SUBDIR)/libgcc && \ |
4b1cb4fe DD |
39374 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
39375 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39376 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 39377 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 39378 | TAGS) \ |
4b1cb4fe DD |
39379 | || exit 1 |
39380 | ||
a90ef4bf | 39381 | @endif target-libgcc |
4b1cb4fe | 39382 | |
a90ef4bf JM |
39383 | .PHONY: maybe-install-info-target-libgcc install-info-target-libgcc |
39384 | maybe-install-info-target-libgcc: | |
39385 | @if target-libgcc | |
39386 | maybe-install-info-target-libgcc: install-info-target-libgcc | |
4b1cb4fe | 39387 | |
a90ef4bf JM |
39388 | install-info-target-libgcc: \ |
39389 | configure-target-libgcc \ | |
39390 | info-target-libgcc | |
0aed8855 | 39391 | @: $(MAKE); $(unstage) |
22121df0 | 39392 | @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ |
4b1cb4fe DD |
39393 | r=`${PWD_COMMAND}`; export r; \ |
39394 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 39395 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 39396 | echo "Doing install-info in $(TARGET_SUBDIR)/libgcc"; \ |
4b1cb4fe DD |
39397 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39398 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39399 | done; \ | |
a90ef4bf | 39400 | (cd $(TARGET_SUBDIR)/libgcc && \ |
4b1cb4fe DD |
39401 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
39402 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39403 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 39404 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 39405 | install-info) \ |
4b1cb4fe DD |
39406 | || exit 1 |
39407 | ||
a90ef4bf | 39408 | @endif target-libgcc |
4b1cb4fe | 39409 | |
a90ef4bf JM |
39410 | .PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc |
39411 | maybe-install-pdf-target-libgcc: | |
39412 | @if target-libgcc | |
39413 | maybe-install-pdf-target-libgcc: install-pdf-target-libgcc | |
a3ca38d2 | 39414 | |
a90ef4bf JM |
39415 | install-pdf-target-libgcc: \ |
39416 | configure-target-libgcc \ | |
39417 | pdf-target-libgcc | |
a3ca38d2 | 39418 | @: $(MAKE); $(unstage) |
22121df0 | 39419 | @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ |
a3ca38d2 DD |
39420 | r=`${PWD_COMMAND}`; export r; \ |
39421 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39422 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 39423 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc"; \ |
a3ca38d2 DD |
39424 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39425 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39426 | done; \ | |
a90ef4bf | 39427 | (cd $(TARGET_SUBDIR)/libgcc && \ |
a3ca38d2 DD |
39428 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
39429 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39430 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 39431 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
39432 | install-pdf) \ |
39433 | || exit 1 | |
39434 | ||
a90ef4bf | 39435 | @endif target-libgcc |
a3ca38d2 | 39436 | |
a90ef4bf JM |
39437 | .PHONY: maybe-install-html-target-libgcc install-html-target-libgcc |
39438 | maybe-install-html-target-libgcc: | |
39439 | @if target-libgcc | |
39440 | maybe-install-html-target-libgcc: install-html-target-libgcc | |
108a6f8e | 39441 | |
a90ef4bf JM |
39442 | install-html-target-libgcc: \ |
39443 | configure-target-libgcc \ | |
39444 | html-target-libgcc | |
108a6f8e | 39445 | @: $(MAKE); $(unstage) |
22121df0 | 39446 | @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ |
108a6f8e CD |
39447 | r=`${PWD_COMMAND}`; export r; \ |
39448 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39449 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 39450 | echo "Doing install-html in $(TARGET_SUBDIR)/libgcc"; \ |
108a6f8e CD |
39451 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39452 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39453 | done; \ | |
a90ef4bf | 39454 | (cd $(TARGET_SUBDIR)/libgcc && \ |
108a6f8e CD |
39455 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
39456 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39457 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 39458 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
39459 | install-html) \ |
39460 | || exit 1 | |
39461 | ||
a90ef4bf | 39462 | @endif target-libgcc |
108a6f8e | 39463 | |
a90ef4bf JM |
39464 | .PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc |
39465 | maybe-installcheck-target-libgcc: | |
39466 | @if target-libgcc | |
39467 | maybe-installcheck-target-libgcc: installcheck-target-libgcc | |
4b1cb4fe | 39468 | |
a90ef4bf JM |
39469 | installcheck-target-libgcc: \ |
39470 | configure-target-libgcc | |
0aed8855 | 39471 | @: $(MAKE); $(unstage) |
22121df0 | 39472 | @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ |
4b1cb4fe DD |
39473 | r=`${PWD_COMMAND}`; export r; \ |
39474 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 39475 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 39476 | echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc"; \ |
4b1cb4fe DD |
39477 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39478 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39479 | done; \ | |
a90ef4bf | 39480 | (cd $(TARGET_SUBDIR)/libgcc && \ |
4b1cb4fe DD |
39481 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
39482 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39483 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 39484 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 39485 | installcheck) \ |
4b1cb4fe DD |
39486 | || exit 1 |
39487 | ||
a90ef4bf | 39488 | @endif target-libgcc |
4b1cb4fe | 39489 | |
a90ef4bf JM |
39490 | .PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc |
39491 | maybe-mostlyclean-target-libgcc: | |
39492 | @if target-libgcc | |
39493 | maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc | |
4b1cb4fe | 39494 | |
a90ef4bf | 39495 | mostlyclean-target-libgcc: |
0aed8855 | 39496 | @: $(MAKE); $(unstage) |
22121df0 | 39497 | @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ |
4b1cb4fe DD |
39498 | r=`${PWD_COMMAND}`; export r; \ |
39499 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 39500 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 39501 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc"; \ |
4b1cb4fe DD |
39502 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39503 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39504 | done; \ | |
a90ef4bf | 39505 | (cd $(TARGET_SUBDIR)/libgcc && \ |
4b1cb4fe DD |
39506 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
39507 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39508 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 39509 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 39510 | mostlyclean) \ |
4b1cb4fe DD |
39511 | || exit 1 |
39512 | ||
a90ef4bf | 39513 | @endif target-libgcc |
4b1cb4fe | 39514 | |
a90ef4bf JM |
39515 | .PHONY: maybe-clean-target-libgcc clean-target-libgcc |
39516 | maybe-clean-target-libgcc: | |
39517 | @if target-libgcc | |
39518 | maybe-clean-target-libgcc: clean-target-libgcc | |
4b1cb4fe | 39519 | |
a90ef4bf | 39520 | clean-target-libgcc: |
0aed8855 | 39521 | @: $(MAKE); $(unstage) |
22121df0 | 39522 | @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ |
4b1cb4fe DD |
39523 | r=`${PWD_COMMAND}`; export r; \ |
39524 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 39525 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 39526 | echo "Doing clean in $(TARGET_SUBDIR)/libgcc"; \ |
4b1cb4fe DD |
39527 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39528 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39529 | done; \ | |
a90ef4bf | 39530 | (cd $(TARGET_SUBDIR)/libgcc && \ |
4b1cb4fe DD |
39531 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
39532 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39533 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 39534 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 39535 | clean) \ |
4b1cb4fe DD |
39536 | || exit 1 |
39537 | ||
a90ef4bf | 39538 | @endif target-libgcc |
4b1cb4fe | 39539 | |
a90ef4bf JM |
39540 | .PHONY: maybe-distclean-target-libgcc distclean-target-libgcc |
39541 | maybe-distclean-target-libgcc: | |
39542 | @if target-libgcc | |
39543 | maybe-distclean-target-libgcc: distclean-target-libgcc | |
4b1cb4fe | 39544 | |
a90ef4bf | 39545 | distclean-target-libgcc: |
0aed8855 | 39546 | @: $(MAKE); $(unstage) |
22121df0 | 39547 | @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ |
4b1cb4fe DD |
39548 | r=`${PWD_COMMAND}`; export r; \ |
39549 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 39550 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 39551 | echo "Doing distclean in $(TARGET_SUBDIR)/libgcc"; \ |
4b1cb4fe DD |
39552 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39553 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39554 | done; \ | |
a90ef4bf | 39555 | (cd $(TARGET_SUBDIR)/libgcc && \ |
4b1cb4fe DD |
39556 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
39557 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39558 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 39559 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 39560 | distclean) \ |
4b1cb4fe DD |
39561 | || exit 1 |
39562 | ||
a90ef4bf | 39563 | @endif target-libgcc |
4b1cb4fe | 39564 | |
a90ef4bf JM |
39565 | .PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc |
39566 | maybe-maintainer-clean-target-libgcc: | |
39567 | @if target-libgcc | |
39568 | maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc | |
4b1cb4fe | 39569 | |
a90ef4bf | 39570 | maintainer-clean-target-libgcc: |
0aed8855 | 39571 | @: $(MAKE); $(unstage) |
22121df0 | 39572 | @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \ |
4b1cb4fe DD |
39573 | r=`${PWD_COMMAND}`; export r; \ |
39574 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 39575 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 39576 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc"; \ |
4b1cb4fe DD |
39577 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39578 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39579 | done; \ | |
a90ef4bf | 39580 | (cd $(TARGET_SUBDIR)/libgcc && \ |
4b1cb4fe DD |
39581 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
39582 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39583 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 39584 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 39585 | maintainer-clean) \ |
4b1cb4fe DD |
39586 | || exit 1 |
39587 | ||
a90ef4bf | 39588 | @endif target-libgcc |
4b1cb4fe DD |
39589 | |
39590 | ||
3866be5d | 39591 | |
a7254363 | 39592 | |
e90269c8 | 39593 | |
2bf680c4 ILT |
39594 | .PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace |
39595 | maybe-configure-target-libbacktrace: | |
39596 | @if gcc-bootstrap | |
39597 | configure-target-libbacktrace: stage_current | |
39598 | @endif gcc-bootstrap | |
39599 | @if target-libbacktrace | |
39600 | maybe-configure-target-libbacktrace: configure-target-libbacktrace | |
39601 | configure-target-libbacktrace: | |
39602 | @: $(MAKE); $(unstage) | |
39603 | @r=`${PWD_COMMAND}`; export r; \ | |
39604 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39605 | echo "Checking multilib configuration for libbacktrace..."; \ | |
22121df0 L |
39606 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \ |
39607 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null; \ | |
2bf680c4 ILT |
39608 | if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \ |
39609 | if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \ | |
39610 | rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \ | |
39611 | else \ | |
39612 | rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \ | |
39613 | mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \ | |
39614 | fi; \ | |
39615 | else \ | |
39616 | mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \ | |
39617 | fi; \ | |
39618 | test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \ | |
22121df0 | 39619 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \ |
2bf680c4 ILT |
39620 | $(NORMAL_TARGET_EXPORTS) \ |
39621 | echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \ | |
39622 | cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \ | |
39623 | case $(srcdir) in \ | |
39624 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
39625 | *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \ | |
39626 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
39627 | esac; \ | |
1b6c0831 | 39628 | module_srcdir=libbacktrace; \ |
2bf680c4 | 39629 | rm -f no-such-file || : ; \ |
1b6c0831 L |
39630 | CONFIG_SITE=no-such-file $(SHELL) \ |
39631 | $$s/$$module_srcdir/configure \ | |
39632 | --srcdir=$${topdir}/$$module_srcdir \ | |
2bf680c4 | 39633 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 39634 | --target=${target_alias} \ |
2bf680c4 ILT |
39635 | || exit 1 |
39636 | @endif target-libbacktrace | |
39637 | ||
39638 | ||
39639 | ||
39640 | ||
39641 | ||
39642 | .PHONY: all-target-libbacktrace maybe-all-target-libbacktrace | |
39643 | maybe-all-target-libbacktrace: | |
39644 | @if gcc-bootstrap | |
39645 | all-target-libbacktrace: stage_current | |
39646 | @endif gcc-bootstrap | |
39647 | @if target-libbacktrace | |
39648 | TARGET-target-libbacktrace=all | |
39649 | maybe-all-target-libbacktrace: all-target-libbacktrace | |
39650 | all-target-libbacktrace: configure-target-libbacktrace | |
39651 | @: $(MAKE); $(unstage) | |
39652 | @r=`${PWD_COMMAND}`; export r; \ | |
39653 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39654 | $(NORMAL_TARGET_EXPORTS) \ | |
39655 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
b3676d82 | 39656 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
2bf680c4 ILT |
39657 | $(TARGET-target-libbacktrace)) |
39658 | @endif target-libbacktrace | |
39659 | ||
39660 | ||
39661 | ||
39662 | ||
39663 | ||
39664 | .PHONY: check-target-libbacktrace maybe-check-target-libbacktrace | |
39665 | maybe-check-target-libbacktrace: | |
39666 | @if target-libbacktrace | |
39667 | maybe-check-target-libbacktrace: check-target-libbacktrace | |
39668 | ||
39669 | check-target-libbacktrace: | |
39670 | @: $(MAKE); $(unstage) | |
39671 | @r=`${PWD_COMMAND}`; export r; \ | |
39672 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39673 | $(NORMAL_TARGET_EXPORTS) \ | |
39674 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
39675 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
39676 | ||
39677 | @endif target-libbacktrace | |
39678 | ||
39679 | .PHONY: install-target-libbacktrace maybe-install-target-libbacktrace | |
39680 | maybe-install-target-libbacktrace: | |
39681 | @if target-libbacktrace | |
39682 | maybe-install-target-libbacktrace: install-target-libbacktrace | |
39683 | ||
39684 | install-target-libbacktrace: installdirs | |
39685 | @: $(MAKE); $(unstage) | |
39686 | @r=`${PWD_COMMAND}`; export r; \ | |
39687 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39688 | $(NORMAL_TARGET_EXPORTS) \ | |
39689 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
39690 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
39691 | ||
39692 | @endif target-libbacktrace | |
39693 | ||
39694 | .PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace | |
39695 | maybe-install-strip-target-libbacktrace: | |
39696 | @if target-libbacktrace | |
39697 | maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace | |
39698 | ||
39699 | install-strip-target-libbacktrace: installdirs | |
39700 | @: $(MAKE); $(unstage) | |
39701 | @r=`${PWD_COMMAND}`; export r; \ | |
39702 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39703 | $(NORMAL_TARGET_EXPORTS) \ | |
39704 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
39705 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) | |
39706 | ||
39707 | @endif target-libbacktrace | |
39708 | ||
39709 | # Other targets (info, dvi, pdf, etc.) | |
39710 | ||
39711 | .PHONY: maybe-info-target-libbacktrace info-target-libbacktrace | |
39712 | maybe-info-target-libbacktrace: | |
39713 | @if target-libbacktrace | |
39714 | maybe-info-target-libbacktrace: info-target-libbacktrace | |
39715 | ||
39716 | info-target-libbacktrace: \ | |
39717 | configure-target-libbacktrace | |
39718 | @: $(MAKE); $(unstage) | |
22121df0 | 39719 | @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ |
2bf680c4 ILT |
39720 | r=`${PWD_COMMAND}`; export r; \ |
39721 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39722 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 39723 | echo "Doing info in $(TARGET_SUBDIR)/libbacktrace"; \ |
2bf680c4 ILT |
39724 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39725 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39726 | done; \ | |
39727 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
39728 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
39729 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39730 | "RANLIB=$${RANLIB}" \ | |
39731 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
39732 | info) \ | |
39733 | || exit 1 | |
39734 | ||
39735 | @endif target-libbacktrace | |
39736 | ||
39737 | .PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace | |
39738 | maybe-dvi-target-libbacktrace: | |
39739 | @if target-libbacktrace | |
39740 | maybe-dvi-target-libbacktrace: dvi-target-libbacktrace | |
39741 | ||
39742 | dvi-target-libbacktrace: \ | |
39743 | configure-target-libbacktrace | |
39744 | @: $(MAKE); $(unstage) | |
22121df0 | 39745 | @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ |
2bf680c4 ILT |
39746 | r=`${PWD_COMMAND}`; export r; \ |
39747 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39748 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 39749 | echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace"; \ |
2bf680c4 ILT |
39750 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39751 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39752 | done; \ | |
39753 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
39754 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
39755 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39756 | "RANLIB=$${RANLIB}" \ | |
39757 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
39758 | dvi) \ | |
39759 | || exit 1 | |
39760 | ||
39761 | @endif target-libbacktrace | |
39762 | ||
39763 | .PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace | |
39764 | maybe-pdf-target-libbacktrace: | |
39765 | @if target-libbacktrace | |
39766 | maybe-pdf-target-libbacktrace: pdf-target-libbacktrace | |
39767 | ||
39768 | pdf-target-libbacktrace: \ | |
39769 | configure-target-libbacktrace | |
39770 | @: $(MAKE); $(unstage) | |
22121df0 | 39771 | @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ |
2bf680c4 ILT |
39772 | r=`${PWD_COMMAND}`; export r; \ |
39773 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39774 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 39775 | echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace"; \ |
2bf680c4 ILT |
39776 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39777 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39778 | done; \ | |
39779 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
39780 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
39781 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39782 | "RANLIB=$${RANLIB}" \ | |
39783 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
39784 | pdf) \ | |
39785 | || exit 1 | |
39786 | ||
39787 | @endif target-libbacktrace | |
39788 | ||
39789 | .PHONY: maybe-html-target-libbacktrace html-target-libbacktrace | |
39790 | maybe-html-target-libbacktrace: | |
39791 | @if target-libbacktrace | |
39792 | maybe-html-target-libbacktrace: html-target-libbacktrace | |
39793 | ||
39794 | html-target-libbacktrace: \ | |
39795 | configure-target-libbacktrace | |
39796 | @: $(MAKE); $(unstage) | |
22121df0 | 39797 | @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ |
2bf680c4 ILT |
39798 | r=`${PWD_COMMAND}`; export r; \ |
39799 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39800 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 39801 | echo "Doing html in $(TARGET_SUBDIR)/libbacktrace"; \ |
2bf680c4 ILT |
39802 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39803 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39804 | done; \ | |
39805 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
39806 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
39807 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39808 | "RANLIB=$${RANLIB}" \ | |
39809 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
39810 | html) \ | |
39811 | || exit 1 | |
39812 | ||
39813 | @endif target-libbacktrace | |
39814 | ||
39815 | .PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace | |
39816 | maybe-TAGS-target-libbacktrace: | |
39817 | @if target-libbacktrace | |
39818 | maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace | |
39819 | ||
39820 | TAGS-target-libbacktrace: \ | |
39821 | configure-target-libbacktrace | |
39822 | @: $(MAKE); $(unstage) | |
22121df0 | 39823 | @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ |
2bf680c4 ILT |
39824 | r=`${PWD_COMMAND}`; export r; \ |
39825 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39826 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 39827 | echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace"; \ |
2bf680c4 ILT |
39828 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39829 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39830 | done; \ | |
39831 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
39832 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
39833 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39834 | "RANLIB=$${RANLIB}" \ | |
39835 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
39836 | TAGS) \ | |
39837 | || exit 1 | |
39838 | ||
39839 | @endif target-libbacktrace | |
39840 | ||
39841 | .PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace | |
39842 | maybe-install-info-target-libbacktrace: | |
39843 | @if target-libbacktrace | |
39844 | maybe-install-info-target-libbacktrace: install-info-target-libbacktrace | |
39845 | ||
39846 | install-info-target-libbacktrace: \ | |
39847 | configure-target-libbacktrace \ | |
39848 | info-target-libbacktrace | |
39849 | @: $(MAKE); $(unstage) | |
22121df0 | 39850 | @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ |
2bf680c4 ILT |
39851 | r=`${PWD_COMMAND}`; export r; \ |
39852 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39853 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 39854 | echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace"; \ |
2bf680c4 ILT |
39855 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39856 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39857 | done; \ | |
39858 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
39859 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
39860 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39861 | "RANLIB=$${RANLIB}" \ | |
39862 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
39863 | install-info) \ | |
39864 | || exit 1 | |
39865 | ||
39866 | @endif target-libbacktrace | |
39867 | ||
39868 | .PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace | |
39869 | maybe-install-pdf-target-libbacktrace: | |
39870 | @if target-libbacktrace | |
39871 | maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace | |
39872 | ||
39873 | install-pdf-target-libbacktrace: \ | |
39874 | configure-target-libbacktrace \ | |
39875 | pdf-target-libbacktrace | |
39876 | @: $(MAKE); $(unstage) | |
22121df0 | 39877 | @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ |
2bf680c4 ILT |
39878 | r=`${PWD_COMMAND}`; export r; \ |
39879 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39880 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 39881 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace"; \ |
2bf680c4 ILT |
39882 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39883 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39884 | done; \ | |
39885 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
39886 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
39887 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39888 | "RANLIB=$${RANLIB}" \ | |
39889 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
39890 | install-pdf) \ | |
39891 | || exit 1 | |
39892 | ||
39893 | @endif target-libbacktrace | |
39894 | ||
39895 | .PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace | |
39896 | maybe-install-html-target-libbacktrace: | |
39897 | @if target-libbacktrace | |
39898 | maybe-install-html-target-libbacktrace: install-html-target-libbacktrace | |
39899 | ||
39900 | install-html-target-libbacktrace: \ | |
39901 | configure-target-libbacktrace \ | |
39902 | html-target-libbacktrace | |
39903 | @: $(MAKE); $(unstage) | |
22121df0 | 39904 | @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ |
2bf680c4 ILT |
39905 | r=`${PWD_COMMAND}`; export r; \ |
39906 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39907 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 39908 | echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace"; \ |
2bf680c4 ILT |
39909 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39910 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39911 | done; \ | |
39912 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
39913 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
39914 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39915 | "RANLIB=$${RANLIB}" \ | |
39916 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
39917 | install-html) \ | |
39918 | || exit 1 | |
39919 | ||
39920 | @endif target-libbacktrace | |
39921 | ||
39922 | .PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace | |
39923 | maybe-installcheck-target-libbacktrace: | |
39924 | @if target-libbacktrace | |
39925 | maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace | |
39926 | ||
39927 | installcheck-target-libbacktrace: \ | |
39928 | configure-target-libbacktrace | |
39929 | @: $(MAKE); $(unstage) | |
22121df0 | 39930 | @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ |
2bf680c4 ILT |
39931 | r=`${PWD_COMMAND}`; export r; \ |
39932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39933 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 39934 | echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace"; \ |
2bf680c4 ILT |
39935 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39936 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39937 | done; \ | |
39938 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
39939 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
39940 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39941 | "RANLIB=$${RANLIB}" \ | |
39942 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
39943 | installcheck) \ | |
39944 | || exit 1 | |
39945 | ||
39946 | @endif target-libbacktrace | |
39947 | ||
39948 | .PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace | |
39949 | maybe-mostlyclean-target-libbacktrace: | |
39950 | @if target-libbacktrace | |
39951 | maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace | |
39952 | ||
39953 | mostlyclean-target-libbacktrace: | |
39954 | @: $(MAKE); $(unstage) | |
22121df0 | 39955 | @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ |
2bf680c4 ILT |
39956 | r=`${PWD_COMMAND}`; export r; \ |
39957 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39958 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 39959 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace"; \ |
2bf680c4 ILT |
39960 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39961 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39962 | done; \ | |
39963 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
39964 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
39965 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39966 | "RANLIB=$${RANLIB}" \ | |
39967 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
39968 | mostlyclean) \ | |
39969 | || exit 1 | |
39970 | ||
39971 | @endif target-libbacktrace | |
39972 | ||
39973 | .PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace | |
39974 | maybe-clean-target-libbacktrace: | |
39975 | @if target-libbacktrace | |
39976 | maybe-clean-target-libbacktrace: clean-target-libbacktrace | |
39977 | ||
39978 | clean-target-libbacktrace: | |
39979 | @: $(MAKE); $(unstage) | |
22121df0 | 39980 | @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ |
2bf680c4 ILT |
39981 | r=`${PWD_COMMAND}`; export r; \ |
39982 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39983 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 39984 | echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace"; \ |
2bf680c4 ILT |
39985 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
39986 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
39987 | done; \ | |
39988 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
39989 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
39990 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
39991 | "RANLIB=$${RANLIB}" \ | |
39992 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
39993 | clean) \ | |
39994 | || exit 1 | |
39995 | ||
39996 | @endif target-libbacktrace | |
39997 | ||
39998 | .PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace | |
39999 | maybe-distclean-target-libbacktrace: | |
40000 | @if target-libbacktrace | |
40001 | maybe-distclean-target-libbacktrace: distclean-target-libbacktrace | |
40002 | ||
40003 | distclean-target-libbacktrace: | |
40004 | @: $(MAKE); $(unstage) | |
22121df0 | 40005 | @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ |
2bf680c4 ILT |
40006 | r=`${PWD_COMMAND}`; export r; \ |
40007 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40008 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40009 | echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace"; \ |
2bf680c4 ILT |
40010 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40011 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40012 | done; \ | |
40013 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
40014 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
40015 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40016 | "RANLIB=$${RANLIB}" \ | |
40017 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40018 | distclean) \ | |
40019 | || exit 1 | |
40020 | ||
40021 | @endif target-libbacktrace | |
40022 | ||
40023 | .PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace | |
40024 | maybe-maintainer-clean-target-libbacktrace: | |
40025 | @if target-libbacktrace | |
40026 | maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace | |
40027 | ||
40028 | maintainer-clean-target-libbacktrace: | |
40029 | @: $(MAKE); $(unstage) | |
22121df0 | 40030 | @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \ |
2bf680c4 ILT |
40031 | r=`${PWD_COMMAND}`; export r; \ |
40032 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40033 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40034 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace"; \ |
2bf680c4 ILT |
40035 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40036 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40037 | done; \ | |
40038 | (cd $(TARGET_SUBDIR)/libbacktrace && \ | |
40039 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
40040 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40041 | "RANLIB=$${RANLIB}" \ | |
40042 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40043 | maintainer-clean) \ | |
40044 | || exit 1 | |
40045 | ||
40046 | @endif target-libbacktrace | |
40047 | ||
40048 | ||
40049 | ||
40050 | ||
40051 | ||
a90ef4bf JM |
40052 | .PHONY: configure-target-libquadmath maybe-configure-target-libquadmath |
40053 | maybe-configure-target-libquadmath: | |
4f0ef2d8 | 40054 | @if gcc-bootstrap |
a90ef4bf | 40055 | configure-target-libquadmath: stage_current |
4f0ef2d8 | 40056 | @endif gcc-bootstrap |
a90ef4bf JM |
40057 | @if target-libquadmath |
40058 | maybe-configure-target-libquadmath: configure-target-libquadmath | |
40059 | configure-target-libquadmath: | |
0aed8855 PB |
40060 | @: $(MAKE); $(unstage) |
40061 | @r=`${PWD_COMMAND}`; export r; \ | |
40062 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 40063 | echo "Checking multilib configuration for libquadmath..."; \ |
22121df0 L |
40064 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \ |
40065 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null; \ | |
a90ef4bf JM |
40066 | if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \ |
40067 | if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \ | |
40068 | rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \ | |
0aed8855 | 40069 | else \ |
a90ef4bf JM |
40070 | rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \ |
40071 | mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \ | |
0aed8855 PB |
40072 | fi; \ |
40073 | else \ | |
a90ef4bf | 40074 | mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \ |
c52c6897 | 40075 | fi; \ |
a90ef4bf | 40076 | test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \ |
22121df0 | 40077 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \ |
1f53ca9a | 40078 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
40079 | echo Configuring in $(TARGET_SUBDIR)/libquadmath; \ |
40080 | cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \ | |
e2b9e2dc | 40081 | case $(srcdir) in \ |
b00612cc | 40082 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 40083 | *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \ |
b00612cc | 40084 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
e2b9e2dc | 40085 | esac; \ |
1b6c0831 | 40086 | module_srcdir=libquadmath; \ |
4fa63067 | 40087 | rm -f no-such-file || : ; \ |
1b6c0831 L |
40088 | CONFIG_SITE=no-such-file $(SHELL) \ |
40089 | $$s/$$module_srcdir/configure \ | |
40090 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 40091 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 40092 | --target=${target_alias} \ |
e2b9e2dc | 40093 | || exit 1 |
a90ef4bf | 40094 | @endif target-libquadmath |
e2b9e2dc | 40095 | |
a7254363 PB |
40096 | |
40097 | ||
d545f33b PB |
40098 | |
40099 | ||
a90ef4bf JM |
40100 | .PHONY: all-target-libquadmath maybe-all-target-libquadmath |
40101 | maybe-all-target-libquadmath: | |
4f0ef2d8 | 40102 | @if gcc-bootstrap |
a90ef4bf | 40103 | all-target-libquadmath: stage_current |
4f0ef2d8 | 40104 | @endif gcc-bootstrap |
a90ef4bf JM |
40105 | @if target-libquadmath |
40106 | TARGET-target-libquadmath=all | |
40107 | maybe-all-target-libquadmath: all-target-libquadmath | |
40108 | all-target-libquadmath: configure-target-libquadmath | |
0aed8855 | 40109 | @: $(MAKE); $(unstage) |
b40e3958 L |
40110 | @r=`${PWD_COMMAND}`; export r; \ |
40111 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 40112 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 40113 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
b3676d82 | 40114 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
a90ef4bf JM |
40115 | $(TARGET-target-libquadmath)) |
40116 | @endif target-libquadmath | |
3866be5d | 40117 | |
a7254363 PB |
40118 | |
40119 | ||
d545f33b PB |
40120 | |
40121 | ||
a90ef4bf JM |
40122 | .PHONY: check-target-libquadmath maybe-check-target-libquadmath |
40123 | maybe-check-target-libquadmath: | |
40124 | @if target-libquadmath | |
40125 | maybe-check-target-libquadmath: check-target-libquadmath | |
3866be5d | 40126 | |
a90ef4bf | 40127 | check-target-libquadmath: |
0aed8855 | 40128 | @: $(MAKE); $(unstage) |
b40e3958 L |
40129 | @r=`${PWD_COMMAND}`; export r; \ |
40130 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 40131 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 40132 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
7ffa0b57 | 40133 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
3866be5d | 40134 | |
a90ef4bf | 40135 | @endif target-libquadmath |
3866be5d | 40136 | |
a90ef4bf JM |
40137 | .PHONY: install-target-libquadmath maybe-install-target-libquadmath |
40138 | maybe-install-target-libquadmath: | |
40139 | @if target-libquadmath | |
40140 | maybe-install-target-libquadmath: install-target-libquadmath | |
e2b9e2dc | 40141 | |
a90ef4bf | 40142 | install-target-libquadmath: installdirs |
0aed8855 | 40143 | @: $(MAKE); $(unstage) |
b40e3958 L |
40144 | @r=`${PWD_COMMAND}`; export r; \ |
40145 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 40146 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 40147 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
7ffa0b57 | 40148 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 40149 | |
a90ef4bf | 40150 | @endif target-libquadmath |
3866be5d | 40151 | |
a90ef4bf JM |
40152 | .PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath |
40153 | maybe-install-strip-target-libquadmath: | |
40154 | @if target-libquadmath | |
40155 | maybe-install-strip-target-libquadmath: install-strip-target-libquadmath | |
9b980aa1 | 40156 | |
a90ef4bf | 40157 | install-strip-target-libquadmath: installdirs |
9b980aa1 RW |
40158 | @: $(MAKE); $(unstage) |
40159 | @r=`${PWD_COMMAND}`; export r; \ | |
40160 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40161 | $(NORMAL_TARGET_EXPORTS) \ | |
a90ef4bf | 40162 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
9b980aa1 RW |
40163 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) |
40164 | ||
a90ef4bf | 40165 | @endif target-libquadmath |
9b980aa1 | 40166 | |
56a8fe78 | 40167 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 40168 | |
a90ef4bf JM |
40169 | .PHONY: maybe-info-target-libquadmath info-target-libquadmath |
40170 | maybe-info-target-libquadmath: | |
40171 | @if target-libquadmath | |
40172 | maybe-info-target-libquadmath: info-target-libquadmath | |
4fa63067 | 40173 | |
a90ef4bf JM |
40174 | info-target-libquadmath: \ |
40175 | configure-target-libquadmath | |
0aed8855 | 40176 | @: $(MAKE); $(unstage) |
22121df0 | 40177 | @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \ |
4fa63067 | 40178 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 40179 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 40180 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 40181 | echo "Doing info in $(TARGET_SUBDIR)/libquadmath"; \ |
4fa63067 NN |
40182 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40183 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40184 | done; \ | |
a90ef4bf | 40185 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
4fa63067 NN |
40186 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40187 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40188 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 40189 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 40190 | info) \ |
4fa63067 | 40191 | || exit 1 |
3866be5d | 40192 | |
a90ef4bf | 40193 | @endif target-libquadmath |
3866be5d | 40194 | |
a90ef4bf JM |
40195 | .PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath |
40196 | maybe-dvi-target-libquadmath: | |
40197 | @if target-libquadmath | |
40198 | maybe-dvi-target-libquadmath: dvi-target-libquadmath | |
16ae0395 | 40199 | |
a90ef4bf JM |
40200 | dvi-target-libquadmath: \ |
40201 | configure-target-libquadmath | |
0aed8855 | 40202 | @: $(MAKE); $(unstage) |
22121df0 | 40203 | @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \ |
4fa63067 | 40204 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 40205 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 40206 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 40207 | echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath"; \ |
4fa63067 NN |
40208 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40209 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40210 | done; \ | |
a90ef4bf | 40211 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
4fa63067 NN |
40212 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40213 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40214 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 40215 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 40216 | dvi) \ |
4fa63067 | 40217 | || exit 1 |
3866be5d | 40218 | |
a90ef4bf | 40219 | @endif target-libquadmath |
3866be5d | 40220 | |
a90ef4bf JM |
40221 | .PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath |
40222 | maybe-pdf-target-libquadmath: | |
40223 | @if target-libquadmath | |
40224 | maybe-pdf-target-libquadmath: pdf-target-libquadmath | |
56a8fe78 | 40225 | |
a90ef4bf JM |
40226 | pdf-target-libquadmath: \ |
40227 | configure-target-libquadmath | |
56a8fe78 | 40228 | @: $(MAKE); $(unstage) |
22121df0 | 40229 | @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \ |
56a8fe78 DD |
40230 | r=`${PWD_COMMAND}`; export r; \ |
40231 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40232 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40233 | echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath"; \ |
56a8fe78 DD |
40234 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40235 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40236 | done; \ | |
a90ef4bf | 40237 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
56a8fe78 DD |
40238 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40239 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40240 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 40241 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
40242 | pdf) \ |
40243 | || exit 1 | |
40244 | ||
a90ef4bf | 40245 | @endif target-libquadmath |
56a8fe78 | 40246 | |
a90ef4bf JM |
40247 | .PHONY: maybe-html-target-libquadmath html-target-libquadmath |
40248 | maybe-html-target-libquadmath: | |
40249 | @if target-libquadmath | |
40250 | maybe-html-target-libquadmath: html-target-libquadmath | |
6d389afc | 40251 | |
a90ef4bf JM |
40252 | html-target-libquadmath: \ |
40253 | configure-target-libquadmath | |
0aed8855 | 40254 | @: $(MAKE); $(unstage) |
22121df0 | 40255 | @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \ |
6d389afc MS |
40256 | r=`${PWD_COMMAND}`; export r; \ |
40257 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 40258 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 40259 | echo "Doing html in $(TARGET_SUBDIR)/libquadmath"; \ |
6d389afc MS |
40260 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40261 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40262 | done; \ | |
a90ef4bf | 40263 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
6d389afc MS |
40264 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40265 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40266 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 40267 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
40268 | html) \ |
40269 | || exit 1 | |
40270 | ||
a90ef4bf | 40271 | @endif target-libquadmath |
6d389afc | 40272 | |
a90ef4bf JM |
40273 | .PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath |
40274 | maybe-TAGS-target-libquadmath: | |
40275 | @if target-libquadmath | |
40276 | maybe-TAGS-target-libquadmath: TAGS-target-libquadmath | |
4fa63067 | 40277 | |
a90ef4bf JM |
40278 | TAGS-target-libquadmath: \ |
40279 | configure-target-libquadmath | |
0aed8855 | 40280 | @: $(MAKE); $(unstage) |
22121df0 | 40281 | @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \ |
b40e3958 L |
40282 | r=`${PWD_COMMAND}`; export r; \ |
40283 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 40284 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 40285 | echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath"; \ |
4fa63067 NN |
40286 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40287 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40288 | done; \ | |
a90ef4bf | 40289 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
4fa63067 NN |
40290 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40291 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40292 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 40293 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 40294 | TAGS) \ |
e2b9e2dc NN |
40295 | || exit 1 |
40296 | ||
a90ef4bf | 40297 | @endif target-libquadmath |
4fa63067 | 40298 | |
a90ef4bf JM |
40299 | .PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath |
40300 | maybe-install-info-target-libquadmath: | |
40301 | @if target-libquadmath | |
40302 | maybe-install-info-target-libquadmath: install-info-target-libquadmath | |
4fa63067 | 40303 | |
a90ef4bf JM |
40304 | install-info-target-libquadmath: \ |
40305 | configure-target-libquadmath \ | |
40306 | info-target-libquadmath | |
0aed8855 | 40307 | @: $(MAKE); $(unstage) |
22121df0 | 40308 | @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \ |
4fa63067 | 40309 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 40310 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 40311 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 40312 | echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath"; \ |
4fa63067 NN |
40313 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40314 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40315 | done; \ | |
a90ef4bf | 40316 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
4fa63067 NN |
40317 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40318 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40319 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 40320 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 40321 | install-info) \ |
4fa63067 | 40322 | || exit 1 |
3866be5d | 40323 | |
a90ef4bf | 40324 | @endif target-libquadmath |
3866be5d | 40325 | |
a90ef4bf JM |
40326 | .PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath |
40327 | maybe-install-pdf-target-libquadmath: | |
40328 | @if target-libquadmath | |
40329 | maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath | |
a3ca38d2 | 40330 | |
a90ef4bf JM |
40331 | install-pdf-target-libquadmath: \ |
40332 | configure-target-libquadmath \ | |
40333 | pdf-target-libquadmath | |
a3ca38d2 | 40334 | @: $(MAKE); $(unstage) |
22121df0 | 40335 | @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \ |
a3ca38d2 DD |
40336 | r=`${PWD_COMMAND}`; export r; \ |
40337 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40338 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40339 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath"; \ |
a3ca38d2 DD |
40340 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40341 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40342 | done; \ | |
a90ef4bf | 40343 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
a3ca38d2 DD |
40344 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40345 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40346 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 40347 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
40348 | install-pdf) \ |
40349 | || exit 1 | |
40350 | ||
a90ef4bf | 40351 | @endif target-libquadmath |
a3ca38d2 | 40352 | |
a90ef4bf JM |
40353 | .PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath |
40354 | maybe-install-html-target-libquadmath: | |
40355 | @if target-libquadmath | |
40356 | maybe-install-html-target-libquadmath: install-html-target-libquadmath | |
108a6f8e | 40357 | |
a90ef4bf JM |
40358 | install-html-target-libquadmath: \ |
40359 | configure-target-libquadmath \ | |
40360 | html-target-libquadmath | |
108a6f8e | 40361 | @: $(MAKE); $(unstage) |
22121df0 | 40362 | @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \ |
108a6f8e CD |
40363 | r=`${PWD_COMMAND}`; export r; \ |
40364 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40365 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40366 | echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath"; \ |
108a6f8e CD |
40367 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40368 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40369 | done; \ | |
a90ef4bf | 40370 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
108a6f8e CD |
40371 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40372 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40373 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 40374 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
40375 | install-html) \ |
40376 | || exit 1 | |
40377 | ||
a90ef4bf | 40378 | @endif target-libquadmath |
108a6f8e | 40379 | |
a90ef4bf JM |
40380 | .PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath |
40381 | maybe-installcheck-target-libquadmath: | |
40382 | @if target-libquadmath | |
40383 | maybe-installcheck-target-libquadmath: installcheck-target-libquadmath | |
4fa63067 | 40384 | |
a90ef4bf JM |
40385 | installcheck-target-libquadmath: \ |
40386 | configure-target-libquadmath | |
0aed8855 | 40387 | @: $(MAKE); $(unstage) |
22121df0 | 40388 | @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \ |
4fa63067 | 40389 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 40390 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 40391 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 40392 | echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath"; \ |
4fa63067 NN |
40393 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40394 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40395 | done; \ | |
a90ef4bf | 40396 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
4fa63067 NN |
40397 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40398 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40399 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 40400 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 40401 | installcheck) \ |
4fa63067 | 40402 | || exit 1 |
3866be5d | 40403 | |
a90ef4bf | 40404 | @endif target-libquadmath |
3866be5d | 40405 | |
a90ef4bf JM |
40406 | .PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath |
40407 | maybe-mostlyclean-target-libquadmath: | |
40408 | @if target-libquadmath | |
40409 | maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath | |
16ae0395 | 40410 | |
a90ef4bf | 40411 | mostlyclean-target-libquadmath: |
0aed8855 | 40412 | @: $(MAKE); $(unstage) |
22121df0 | 40413 | @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \ |
4fa63067 | 40414 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 40415 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 40416 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 40417 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath"; \ |
4fa63067 NN |
40418 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40419 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40420 | done; \ | |
a90ef4bf | 40421 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
4fa63067 NN |
40422 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40423 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40424 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 40425 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 40426 | mostlyclean) \ |
4fa63067 | 40427 | || exit 1 |
3866be5d | 40428 | |
a90ef4bf | 40429 | @endif target-libquadmath |
3866be5d | 40430 | |
a90ef4bf JM |
40431 | .PHONY: maybe-clean-target-libquadmath clean-target-libquadmath |
40432 | maybe-clean-target-libquadmath: | |
40433 | @if target-libquadmath | |
40434 | maybe-clean-target-libquadmath: clean-target-libquadmath | |
4fa63067 | 40435 | |
a90ef4bf | 40436 | clean-target-libquadmath: |
0aed8855 | 40437 | @: $(MAKE); $(unstage) |
22121df0 | 40438 | @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \ |
b40e3958 L |
40439 | r=`${PWD_COMMAND}`; export r; \ |
40440 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 40441 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 40442 | echo "Doing clean in $(TARGET_SUBDIR)/libquadmath"; \ |
4fa63067 NN |
40443 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40444 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40445 | done; \ | |
a90ef4bf | 40446 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
4fa63067 NN |
40447 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40448 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40449 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 40450 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 40451 | clean) \ |
e2b9e2dc NN |
40452 | || exit 1 |
40453 | ||
a90ef4bf | 40454 | @endif target-libquadmath |
3866be5d | 40455 | |
a90ef4bf JM |
40456 | .PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath |
40457 | maybe-distclean-target-libquadmath: | |
40458 | @if target-libquadmath | |
40459 | maybe-distclean-target-libquadmath: distclean-target-libquadmath | |
3866be5d | 40460 | |
a90ef4bf | 40461 | distclean-target-libquadmath: |
0aed8855 | 40462 | @: $(MAKE); $(unstage) |
22121df0 | 40463 | @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \ |
4fa63067 | 40464 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 40465 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 40466 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 40467 | echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath"; \ |
4fa63067 NN |
40468 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40469 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40470 | done; \ | |
a90ef4bf | 40471 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
4fa63067 NN |
40472 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40473 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40474 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 40475 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 40476 | distclean) \ |
4fa63067 | 40477 | || exit 1 |
3866be5d | 40478 | |
a90ef4bf | 40479 | @endif target-libquadmath |
3866be5d | 40480 | |
a90ef4bf JM |
40481 | .PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath |
40482 | maybe-maintainer-clean-target-libquadmath: | |
40483 | @if target-libquadmath | |
40484 | maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath | |
16ae0395 | 40485 | |
a90ef4bf | 40486 | maintainer-clean-target-libquadmath: |
0aed8855 | 40487 | @: $(MAKE); $(unstage) |
22121df0 | 40488 | @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \ |
4fa63067 | 40489 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 40490 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 40491 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 40492 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath"; \ |
4fa63067 NN |
40493 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40494 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40495 | done; \ | |
a90ef4bf | 40496 | (cd $(TARGET_SUBDIR)/libquadmath && \ |
4fa63067 NN |
40497 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40498 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40499 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 40500 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 40501 | maintainer-clean) \ |
4fa63067 | 40502 | || exit 1 |
3866be5d | 40503 | |
a90ef4bf | 40504 | @endif target-libquadmath |
3866be5d | 40505 | |
4fa63067 | 40506 | |
4fa63067 | 40507 | |
a7254363 | 40508 | |
e90269c8 | 40509 | |
a90ef4bf JM |
40510 | .PHONY: configure-target-libgfortran maybe-configure-target-libgfortran |
40511 | maybe-configure-target-libgfortran: | |
e552509b | 40512 | @if gcc-bootstrap |
a90ef4bf | 40513 | configure-target-libgfortran: stage_current |
e552509b | 40514 | @endif gcc-bootstrap |
a90ef4bf JM |
40515 | @if target-libgfortran |
40516 | maybe-configure-target-libgfortran: configure-target-libgfortran | |
40517 | configure-target-libgfortran: | |
e552509b ILT |
40518 | @: $(MAKE); $(unstage) |
40519 | @r=`${PWD_COMMAND}`; export r; \ | |
40520 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 40521 | echo "Checking multilib configuration for libgfortran..."; \ |
22121df0 L |
40522 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \ |
40523 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null; \ | |
a90ef4bf JM |
40524 | if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \ |
40525 | if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \ | |
40526 | rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \ | |
e552509b | 40527 | else \ |
a90ef4bf JM |
40528 | rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \ |
40529 | mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \ | |
e552509b ILT |
40530 | fi; \ |
40531 | else \ | |
a90ef4bf | 40532 | mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \ |
e552509b | 40533 | fi; \ |
a90ef4bf | 40534 | test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \ |
22121df0 | 40535 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \ |
e552509b | 40536 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
40537 | echo Configuring in $(TARGET_SUBDIR)/libgfortran; \ |
40538 | cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \ | |
e552509b ILT |
40539 | case $(srcdir) in \ |
40540 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
a90ef4bf | 40541 | *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \ |
e552509b ILT |
40542 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
40543 | esac; \ | |
1b6c0831 | 40544 | module_srcdir=libgfortran; \ |
e552509b | 40545 | rm -f no-such-file || : ; \ |
1b6c0831 L |
40546 | CONFIG_SITE=no-such-file $(SHELL) \ |
40547 | $$s/$$module_srcdir/configure \ | |
40548 | --srcdir=$${topdir}/$$module_srcdir \ | |
e552509b | 40549 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 40550 | --target=${target_alias} \ |
e552509b | 40551 | || exit 1 |
a90ef4bf | 40552 | @endif target-libgfortran |
e552509b ILT |
40553 | |
40554 | ||
40555 | ||
40556 | ||
40557 | ||
a90ef4bf JM |
40558 | .PHONY: all-target-libgfortran maybe-all-target-libgfortran |
40559 | maybe-all-target-libgfortran: | |
e552509b | 40560 | @if gcc-bootstrap |
a90ef4bf | 40561 | all-target-libgfortran: stage_current |
e552509b | 40562 | @endif gcc-bootstrap |
a90ef4bf JM |
40563 | @if target-libgfortran |
40564 | TARGET-target-libgfortran=all | |
40565 | maybe-all-target-libgfortran: all-target-libgfortran | |
40566 | all-target-libgfortran: configure-target-libgfortran | |
e552509b ILT |
40567 | @: $(MAKE); $(unstage) |
40568 | @r=`${PWD_COMMAND}`; export r; \ | |
40569 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40570 | $(NORMAL_TARGET_EXPORTS) \ | |
a90ef4bf | 40571 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
b3676d82 | 40572 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
a90ef4bf JM |
40573 | $(TARGET-target-libgfortran)) |
40574 | @endif target-libgfortran | |
e552509b ILT |
40575 | |
40576 | ||
40577 | ||
40578 | ||
40579 | ||
a90ef4bf JM |
40580 | .PHONY: check-target-libgfortran maybe-check-target-libgfortran |
40581 | maybe-check-target-libgfortran: | |
40582 | @if target-libgfortran | |
40583 | maybe-check-target-libgfortran: check-target-libgfortran | |
e552509b | 40584 | |
a90ef4bf | 40585 | check-target-libgfortran: |
e552509b ILT |
40586 | @: $(MAKE); $(unstage) |
40587 | @r=`${PWD_COMMAND}`; export r; \ | |
40588 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40589 | $(NORMAL_TARGET_EXPORTS) \ | |
a90ef4bf | 40590 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40591 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
40592 | ||
a90ef4bf | 40593 | @endif target-libgfortran |
e552509b | 40594 | |
a90ef4bf JM |
40595 | .PHONY: install-target-libgfortran maybe-install-target-libgfortran |
40596 | maybe-install-target-libgfortran: | |
40597 | @if target-libgfortran | |
40598 | maybe-install-target-libgfortran: install-target-libgfortran | |
e552509b | 40599 | |
a90ef4bf | 40600 | install-target-libgfortran: installdirs |
e552509b ILT |
40601 | @: $(MAKE); $(unstage) |
40602 | @r=`${PWD_COMMAND}`; export r; \ | |
40603 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40604 | $(NORMAL_TARGET_EXPORTS) \ | |
a90ef4bf | 40605 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40606 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
40607 | ||
a90ef4bf | 40608 | @endif target-libgfortran |
e552509b | 40609 | |
a90ef4bf JM |
40610 | .PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran |
40611 | maybe-install-strip-target-libgfortran: | |
40612 | @if target-libgfortran | |
40613 | maybe-install-strip-target-libgfortran: install-strip-target-libgfortran | |
9b980aa1 | 40614 | |
a90ef4bf | 40615 | install-strip-target-libgfortran: installdirs |
9b980aa1 RW |
40616 | @: $(MAKE); $(unstage) |
40617 | @r=`${PWD_COMMAND}`; export r; \ | |
40618 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40619 | $(NORMAL_TARGET_EXPORTS) \ | |
a90ef4bf | 40620 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
9b980aa1 RW |
40621 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) |
40622 | ||
a90ef4bf | 40623 | @endif target-libgfortran |
9b980aa1 | 40624 | |
e552509b ILT |
40625 | # Other targets (info, dvi, pdf, etc.) |
40626 | ||
a90ef4bf JM |
40627 | .PHONY: maybe-info-target-libgfortran info-target-libgfortran |
40628 | maybe-info-target-libgfortran: | |
40629 | @if target-libgfortran | |
40630 | maybe-info-target-libgfortran: info-target-libgfortran | |
e552509b | 40631 | |
a90ef4bf JM |
40632 | info-target-libgfortran: \ |
40633 | configure-target-libgfortran | |
e552509b | 40634 | @: $(MAKE); $(unstage) |
22121df0 | 40635 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \ |
e552509b ILT |
40636 | r=`${PWD_COMMAND}`; export r; \ |
40637 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40638 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40639 | echo "Doing info in $(TARGET_SUBDIR)/libgfortran"; \ |
e552509b ILT |
40640 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40641 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40642 | done; \ | |
a90ef4bf | 40643 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40644 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40645 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40646 | "RANLIB=$${RANLIB}" \ | |
40647 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40648 | info) \ | |
40649 | || exit 1 | |
40650 | ||
a90ef4bf | 40651 | @endif target-libgfortran |
e552509b | 40652 | |
a90ef4bf JM |
40653 | .PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran |
40654 | maybe-dvi-target-libgfortran: | |
40655 | @if target-libgfortran | |
40656 | maybe-dvi-target-libgfortran: dvi-target-libgfortran | |
e552509b | 40657 | |
a90ef4bf JM |
40658 | dvi-target-libgfortran: \ |
40659 | configure-target-libgfortran | |
e552509b | 40660 | @: $(MAKE); $(unstage) |
22121df0 | 40661 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \ |
e552509b ILT |
40662 | r=`${PWD_COMMAND}`; export r; \ |
40663 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40664 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40665 | echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran"; \ |
e552509b ILT |
40666 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40667 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40668 | done; \ | |
a90ef4bf | 40669 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40670 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40671 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40672 | "RANLIB=$${RANLIB}" \ | |
40673 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40674 | dvi) \ | |
40675 | || exit 1 | |
40676 | ||
a90ef4bf | 40677 | @endif target-libgfortran |
e552509b | 40678 | |
a90ef4bf JM |
40679 | .PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran |
40680 | maybe-pdf-target-libgfortran: | |
40681 | @if target-libgfortran | |
40682 | maybe-pdf-target-libgfortran: pdf-target-libgfortran | |
e552509b | 40683 | |
a90ef4bf JM |
40684 | pdf-target-libgfortran: \ |
40685 | configure-target-libgfortran | |
e552509b | 40686 | @: $(MAKE); $(unstage) |
22121df0 | 40687 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \ |
e552509b ILT |
40688 | r=`${PWD_COMMAND}`; export r; \ |
40689 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40690 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40691 | echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran"; \ |
e552509b ILT |
40692 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40693 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40694 | done; \ | |
a90ef4bf | 40695 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40696 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40697 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40698 | "RANLIB=$${RANLIB}" \ | |
40699 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40700 | pdf) \ | |
40701 | || exit 1 | |
40702 | ||
a90ef4bf | 40703 | @endif target-libgfortran |
e552509b | 40704 | |
a90ef4bf JM |
40705 | .PHONY: maybe-html-target-libgfortran html-target-libgfortran |
40706 | maybe-html-target-libgfortran: | |
40707 | @if target-libgfortran | |
40708 | maybe-html-target-libgfortran: html-target-libgfortran | |
e552509b | 40709 | |
a90ef4bf JM |
40710 | html-target-libgfortran: \ |
40711 | configure-target-libgfortran | |
e552509b | 40712 | @: $(MAKE); $(unstage) |
22121df0 | 40713 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \ |
e552509b ILT |
40714 | r=`${PWD_COMMAND}`; export r; \ |
40715 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40716 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40717 | echo "Doing html in $(TARGET_SUBDIR)/libgfortran"; \ |
e552509b ILT |
40718 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40719 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40720 | done; \ | |
a90ef4bf | 40721 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40722 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40723 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40724 | "RANLIB=$${RANLIB}" \ | |
40725 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40726 | html) \ | |
40727 | || exit 1 | |
40728 | ||
a90ef4bf | 40729 | @endif target-libgfortran |
e552509b | 40730 | |
a90ef4bf JM |
40731 | .PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran |
40732 | maybe-TAGS-target-libgfortran: | |
40733 | @if target-libgfortran | |
40734 | maybe-TAGS-target-libgfortran: TAGS-target-libgfortran | |
e552509b | 40735 | |
a90ef4bf JM |
40736 | TAGS-target-libgfortran: \ |
40737 | configure-target-libgfortran | |
e552509b | 40738 | @: $(MAKE); $(unstage) |
22121df0 | 40739 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \ |
e552509b ILT |
40740 | r=`${PWD_COMMAND}`; export r; \ |
40741 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40742 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40743 | echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran"; \ |
e552509b ILT |
40744 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40745 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40746 | done; \ | |
a90ef4bf | 40747 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40748 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40749 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40750 | "RANLIB=$${RANLIB}" \ | |
40751 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40752 | TAGS) \ | |
40753 | || exit 1 | |
40754 | ||
a90ef4bf | 40755 | @endif target-libgfortran |
e552509b | 40756 | |
a90ef4bf JM |
40757 | .PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran |
40758 | maybe-install-info-target-libgfortran: | |
40759 | @if target-libgfortran | |
40760 | maybe-install-info-target-libgfortran: install-info-target-libgfortran | |
e552509b | 40761 | |
a90ef4bf JM |
40762 | install-info-target-libgfortran: \ |
40763 | configure-target-libgfortran \ | |
40764 | info-target-libgfortran | |
e552509b | 40765 | @: $(MAKE); $(unstage) |
22121df0 | 40766 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \ |
e552509b ILT |
40767 | r=`${PWD_COMMAND}`; export r; \ |
40768 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40769 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40770 | echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran"; \ |
e552509b ILT |
40771 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40772 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40773 | done; \ | |
a90ef4bf | 40774 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40775 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40776 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40777 | "RANLIB=$${RANLIB}" \ | |
40778 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40779 | install-info) \ | |
40780 | || exit 1 | |
40781 | ||
a90ef4bf | 40782 | @endif target-libgfortran |
e552509b | 40783 | |
a90ef4bf JM |
40784 | .PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran |
40785 | maybe-install-pdf-target-libgfortran: | |
40786 | @if target-libgfortran | |
40787 | maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran | |
e552509b | 40788 | |
a90ef4bf JM |
40789 | install-pdf-target-libgfortran: \ |
40790 | configure-target-libgfortran \ | |
40791 | pdf-target-libgfortran | |
e552509b | 40792 | @: $(MAKE); $(unstage) |
22121df0 | 40793 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \ |
e552509b ILT |
40794 | r=`${PWD_COMMAND}`; export r; \ |
40795 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40796 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40797 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran"; \ |
e552509b ILT |
40798 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40799 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40800 | done; \ | |
a90ef4bf | 40801 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40802 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40803 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40804 | "RANLIB=$${RANLIB}" \ | |
40805 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40806 | install-pdf) \ | |
40807 | || exit 1 | |
40808 | ||
a90ef4bf | 40809 | @endif target-libgfortran |
e552509b | 40810 | |
a90ef4bf JM |
40811 | .PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran |
40812 | maybe-install-html-target-libgfortran: | |
40813 | @if target-libgfortran | |
40814 | maybe-install-html-target-libgfortran: install-html-target-libgfortran | |
e552509b | 40815 | |
a90ef4bf JM |
40816 | install-html-target-libgfortran: \ |
40817 | configure-target-libgfortran \ | |
40818 | html-target-libgfortran | |
e552509b | 40819 | @: $(MAKE); $(unstage) |
22121df0 | 40820 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \ |
e552509b ILT |
40821 | r=`${PWD_COMMAND}`; export r; \ |
40822 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40823 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40824 | echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran"; \ |
e552509b ILT |
40825 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40826 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40827 | done; \ | |
a90ef4bf | 40828 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40829 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40830 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40831 | "RANLIB=$${RANLIB}" \ | |
40832 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40833 | install-html) \ | |
40834 | || exit 1 | |
40835 | ||
a90ef4bf | 40836 | @endif target-libgfortran |
e552509b | 40837 | |
a90ef4bf JM |
40838 | .PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran |
40839 | maybe-installcheck-target-libgfortran: | |
40840 | @if target-libgfortran | |
40841 | maybe-installcheck-target-libgfortran: installcheck-target-libgfortran | |
e552509b | 40842 | |
a90ef4bf JM |
40843 | installcheck-target-libgfortran: \ |
40844 | configure-target-libgfortran | |
e552509b | 40845 | @: $(MAKE); $(unstage) |
22121df0 | 40846 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \ |
e552509b ILT |
40847 | r=`${PWD_COMMAND}`; export r; \ |
40848 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40849 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40850 | echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran"; \ |
e552509b ILT |
40851 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40852 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40853 | done; \ | |
a90ef4bf | 40854 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40855 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40856 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40857 | "RANLIB=$${RANLIB}" \ | |
40858 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40859 | installcheck) \ | |
40860 | || exit 1 | |
40861 | ||
a90ef4bf | 40862 | @endif target-libgfortran |
e552509b | 40863 | |
a90ef4bf JM |
40864 | .PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran |
40865 | maybe-mostlyclean-target-libgfortran: | |
40866 | @if target-libgfortran | |
40867 | maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran | |
e552509b | 40868 | |
a90ef4bf | 40869 | mostlyclean-target-libgfortran: |
e552509b | 40870 | @: $(MAKE); $(unstage) |
22121df0 | 40871 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \ |
e552509b ILT |
40872 | r=`${PWD_COMMAND}`; export r; \ |
40873 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40874 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40875 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran"; \ |
e552509b ILT |
40876 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40877 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40878 | done; \ | |
a90ef4bf | 40879 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40880 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40881 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40882 | "RANLIB=$${RANLIB}" \ | |
40883 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40884 | mostlyclean) \ | |
40885 | || exit 1 | |
40886 | ||
a90ef4bf | 40887 | @endif target-libgfortran |
e552509b | 40888 | |
a90ef4bf JM |
40889 | .PHONY: maybe-clean-target-libgfortran clean-target-libgfortran |
40890 | maybe-clean-target-libgfortran: | |
40891 | @if target-libgfortran | |
40892 | maybe-clean-target-libgfortran: clean-target-libgfortran | |
e552509b | 40893 | |
a90ef4bf | 40894 | clean-target-libgfortran: |
e552509b | 40895 | @: $(MAKE); $(unstage) |
22121df0 | 40896 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \ |
e552509b ILT |
40897 | r=`${PWD_COMMAND}`; export r; \ |
40898 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40899 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40900 | echo "Doing clean in $(TARGET_SUBDIR)/libgfortran"; \ |
e552509b ILT |
40901 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40902 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40903 | done; \ | |
a90ef4bf | 40904 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40905 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40906 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40907 | "RANLIB=$${RANLIB}" \ | |
40908 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40909 | clean) \ | |
40910 | || exit 1 | |
40911 | ||
a90ef4bf | 40912 | @endif target-libgfortran |
e552509b | 40913 | |
a90ef4bf JM |
40914 | .PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran |
40915 | maybe-distclean-target-libgfortran: | |
40916 | @if target-libgfortran | |
40917 | maybe-distclean-target-libgfortran: distclean-target-libgfortran | |
e552509b | 40918 | |
a90ef4bf | 40919 | distclean-target-libgfortran: |
e552509b | 40920 | @: $(MAKE); $(unstage) |
22121df0 | 40921 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \ |
e552509b ILT |
40922 | r=`${PWD_COMMAND}`; export r; \ |
40923 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40924 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40925 | echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran"; \ |
e552509b ILT |
40926 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40927 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40928 | done; \ | |
a90ef4bf | 40929 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40930 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40931 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40932 | "RANLIB=$${RANLIB}" \ | |
40933 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40934 | distclean) \ | |
40935 | || exit 1 | |
40936 | ||
a90ef4bf | 40937 | @endif target-libgfortran |
e552509b | 40938 | |
a90ef4bf JM |
40939 | .PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran |
40940 | maybe-maintainer-clean-target-libgfortran: | |
40941 | @if target-libgfortran | |
40942 | maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran | |
e552509b | 40943 | |
a90ef4bf | 40944 | maintainer-clean-target-libgfortran: |
e552509b | 40945 | @: $(MAKE); $(unstage) |
22121df0 | 40946 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \ |
e552509b ILT |
40947 | r=`${PWD_COMMAND}`; export r; \ |
40948 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40949 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 40950 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran"; \ |
e552509b ILT |
40951 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
40952 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
40953 | done; \ | |
a90ef4bf | 40954 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
e552509b ILT |
40955 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
40956 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
40957 | "RANLIB=$${RANLIB}" \ | |
40958 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
40959 | maintainer-clean) \ | |
40960 | || exit 1 | |
40961 | ||
a90ef4bf | 40962 | @endif target-libgfortran |
e552509b ILT |
40963 | |
40964 | ||
40965 | ||
40966 | ||
40967 | ||
a90ef4bf JM |
40968 | .PHONY: configure-target-libobjc maybe-configure-target-libobjc |
40969 | maybe-configure-target-libobjc: | |
4f0ef2d8 | 40970 | @if gcc-bootstrap |
a90ef4bf | 40971 | configure-target-libobjc: stage_current |
4f0ef2d8 | 40972 | @endif gcc-bootstrap |
a90ef4bf JM |
40973 | @if target-libobjc |
40974 | maybe-configure-target-libobjc: configure-target-libobjc | |
40975 | configure-target-libobjc: | |
0aed8855 PB |
40976 | @: $(MAKE); $(unstage) |
40977 | @r=`${PWD_COMMAND}`; export r; \ | |
40978 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 40979 | echo "Checking multilib configuration for libobjc..."; \ |
22121df0 L |
40980 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \ |
40981 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null; \ | |
a90ef4bf JM |
40982 | if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \ |
40983 | if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \ | |
40984 | rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \ | |
0aed8855 | 40985 | else \ |
a90ef4bf JM |
40986 | rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \ |
40987 | mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \ | |
0aed8855 PB |
40988 | fi; \ |
40989 | else \ | |
a90ef4bf | 40990 | mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \ |
c52c6897 | 40991 | fi; \ |
a90ef4bf | 40992 | test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \ |
22121df0 | 40993 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \ |
1f53ca9a | 40994 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
40995 | echo Configuring in $(TARGET_SUBDIR)/libobjc; \ |
40996 | cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \ | |
e2b9e2dc | 40997 | case $(srcdir) in \ |
b00612cc | 40998 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 40999 | *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \ |
b00612cc | 41000 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
e2b9e2dc | 41001 | esac; \ |
1b6c0831 | 41002 | module_srcdir=libobjc; \ |
4fa63067 | 41003 | rm -f no-such-file || : ; \ |
1b6c0831 L |
41004 | CONFIG_SITE=no-such-file $(SHELL) \ |
41005 | $$s/$$module_srcdir/configure \ | |
41006 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 41007 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 41008 | --target=${target_alias} \ |
e2b9e2dc | 41009 | || exit 1 |
a90ef4bf | 41010 | @endif target-libobjc |
e2b9e2dc | 41011 | |
a7254363 PB |
41012 | |
41013 | ||
d545f33b PB |
41014 | |
41015 | ||
a90ef4bf JM |
41016 | .PHONY: all-target-libobjc maybe-all-target-libobjc |
41017 | maybe-all-target-libobjc: | |
4f0ef2d8 | 41018 | @if gcc-bootstrap |
a90ef4bf | 41019 | all-target-libobjc: stage_current |
4f0ef2d8 | 41020 | @endif gcc-bootstrap |
a90ef4bf JM |
41021 | @if target-libobjc |
41022 | TARGET-target-libobjc=all | |
41023 | maybe-all-target-libobjc: all-target-libobjc | |
41024 | all-target-libobjc: configure-target-libobjc | |
0aed8855 | 41025 | @: $(MAKE); $(unstage) |
b40e3958 L |
41026 | @r=`${PWD_COMMAND}`; export r; \ |
41027 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 41028 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 41029 | (cd $(TARGET_SUBDIR)/libobjc && \ |
b3676d82 | 41030 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
a90ef4bf JM |
41031 | $(TARGET-target-libobjc)) |
41032 | @endif target-libobjc | |
3866be5d | 41033 | |
a7254363 PB |
41034 | |
41035 | ||
d545f33b PB |
41036 | |
41037 | ||
a90ef4bf JM |
41038 | .PHONY: check-target-libobjc maybe-check-target-libobjc |
41039 | maybe-check-target-libobjc: | |
41040 | @if target-libobjc | |
41041 | maybe-check-target-libobjc: check-target-libobjc | |
3866be5d | 41042 | |
a90ef4bf JM |
41043 | check-target-libobjc: |
41044 | @: $(MAKE); $(unstage) | |
41045 | @r=`${PWD_COMMAND}`; export r; \ | |
41046 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
41047 | $(NORMAL_TARGET_EXPORTS) \ | |
41048 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
41049 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
4fa63067 | 41050 | |
a90ef4bf | 41051 | @endif target-libobjc |
4fa63067 | 41052 | |
a90ef4bf JM |
41053 | .PHONY: install-target-libobjc maybe-install-target-libobjc |
41054 | maybe-install-target-libobjc: | |
41055 | @if target-libobjc | |
41056 | maybe-install-target-libobjc: install-target-libobjc | |
4fa63067 | 41057 | |
a90ef4bf | 41058 | install-target-libobjc: installdirs |
0aed8855 | 41059 | @: $(MAKE); $(unstage) |
b40e3958 L |
41060 | @r=`${PWD_COMMAND}`; export r; \ |
41061 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 41062 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 41063 | (cd $(TARGET_SUBDIR)/libobjc && \ |
7ffa0b57 | 41064 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 41065 | |
a90ef4bf | 41066 | @endif target-libobjc |
3866be5d | 41067 | |
a90ef4bf JM |
41068 | .PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc |
41069 | maybe-install-strip-target-libobjc: | |
41070 | @if target-libobjc | |
41071 | maybe-install-strip-target-libobjc: install-strip-target-libobjc | |
9b980aa1 | 41072 | |
a90ef4bf | 41073 | install-strip-target-libobjc: installdirs |
9b980aa1 RW |
41074 | @: $(MAKE); $(unstage) |
41075 | @r=`${PWD_COMMAND}`; export r; \ | |
41076 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
41077 | $(NORMAL_TARGET_EXPORTS) \ | |
a90ef4bf | 41078 | (cd $(TARGET_SUBDIR)/libobjc && \ |
9b980aa1 RW |
41079 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) |
41080 | ||
a90ef4bf | 41081 | @endif target-libobjc |
9b980aa1 | 41082 | |
56a8fe78 | 41083 | # Other targets (info, dvi, pdf, etc.) |
16ae0395 | 41084 | |
a90ef4bf JM |
41085 | .PHONY: maybe-info-target-libobjc info-target-libobjc |
41086 | maybe-info-target-libobjc: | |
41087 | @if target-libobjc | |
41088 | maybe-info-target-libobjc: info-target-libobjc | |
6d389afc | 41089 | |
a90ef4bf JM |
41090 | info-target-libobjc: \ |
41091 | configure-target-libobjc | |
0aed8855 | 41092 | @: $(MAKE); $(unstage) |
22121df0 | 41093 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \ |
6d389afc MS |
41094 | r=`${PWD_COMMAND}`; export r; \ |
41095 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 41096 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41097 | echo "Doing info in $(TARGET_SUBDIR)/libobjc"; \ |
6d389afc MS |
41098 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41099 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41100 | done; \ | |
a90ef4bf | 41101 | (cd $(TARGET_SUBDIR)/libobjc && \ |
6d389afc MS |
41102 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41103 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41104 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41105 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
41106 | info) \ |
41107 | || exit 1 | |
41108 | ||
a90ef4bf | 41109 | @endif target-libobjc |
6d389afc | 41110 | |
a90ef4bf JM |
41111 | .PHONY: maybe-dvi-target-libobjc dvi-target-libobjc |
41112 | maybe-dvi-target-libobjc: | |
41113 | @if target-libobjc | |
41114 | maybe-dvi-target-libobjc: dvi-target-libobjc | |
4fa63067 | 41115 | |
a90ef4bf JM |
41116 | dvi-target-libobjc: \ |
41117 | configure-target-libobjc | |
0aed8855 | 41118 | @: $(MAKE); $(unstage) |
22121df0 | 41119 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \ |
4fa63067 | 41120 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 41121 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 41122 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41123 | echo "Doing dvi in $(TARGET_SUBDIR)/libobjc"; \ |
4fa63067 NN |
41124 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41125 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41126 | done; \ | |
a90ef4bf | 41127 | (cd $(TARGET_SUBDIR)/libobjc && \ |
4fa63067 NN |
41128 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41129 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41130 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41131 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc | 41132 | dvi) \ |
4fa63067 | 41133 | || exit 1 |
3866be5d | 41134 | |
a90ef4bf | 41135 | @endif target-libobjc |
3866be5d | 41136 | |
a90ef4bf JM |
41137 | .PHONY: maybe-pdf-target-libobjc pdf-target-libobjc |
41138 | maybe-pdf-target-libobjc: | |
41139 | @if target-libobjc | |
41140 | maybe-pdf-target-libobjc: pdf-target-libobjc | |
56a8fe78 | 41141 | |
a90ef4bf JM |
41142 | pdf-target-libobjc: \ |
41143 | configure-target-libobjc | |
56a8fe78 | 41144 | @: $(MAKE); $(unstage) |
22121df0 | 41145 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \ |
56a8fe78 DD |
41146 | r=`${PWD_COMMAND}`; export r; \ |
41147 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
41148 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 41149 | echo "Doing pdf in $(TARGET_SUBDIR)/libobjc"; \ |
56a8fe78 DD |
41150 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41151 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41152 | done; \ | |
a90ef4bf | 41153 | (cd $(TARGET_SUBDIR)/libobjc && \ |
56a8fe78 DD |
41154 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41155 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41156 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41157 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
41158 | pdf) \ |
41159 | || exit 1 | |
41160 | ||
a90ef4bf | 41161 | @endif target-libobjc |
56a8fe78 | 41162 | |
a90ef4bf JM |
41163 | .PHONY: maybe-html-target-libobjc html-target-libobjc |
41164 | maybe-html-target-libobjc: | |
41165 | @if target-libobjc | |
41166 | maybe-html-target-libobjc: html-target-libobjc | |
4fa63067 | 41167 | |
a90ef4bf JM |
41168 | html-target-libobjc: \ |
41169 | configure-target-libobjc | |
0aed8855 | 41170 | @: $(MAKE); $(unstage) |
22121df0 | 41171 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \ |
b40e3958 L |
41172 | r=`${PWD_COMMAND}`; export r; \ |
41173 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 41174 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41175 | echo "Doing html in $(TARGET_SUBDIR)/libobjc"; \ |
4fa63067 NN |
41176 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41177 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41178 | done; \ | |
a90ef4bf | 41179 | (cd $(TARGET_SUBDIR)/libobjc && \ |
4fa63067 NN |
41180 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41181 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41182 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41183 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc | 41184 | html) \ |
e2b9e2dc NN |
41185 | || exit 1 |
41186 | ||
a90ef4bf | 41187 | @endif target-libobjc |
4fa63067 | 41188 | |
a90ef4bf JM |
41189 | .PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc |
41190 | maybe-TAGS-target-libobjc: | |
41191 | @if target-libobjc | |
41192 | maybe-TAGS-target-libobjc: TAGS-target-libobjc | |
4fa63067 | 41193 | |
a90ef4bf JM |
41194 | TAGS-target-libobjc: \ |
41195 | configure-target-libobjc | |
0aed8855 | 41196 | @: $(MAKE); $(unstage) |
22121df0 | 41197 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \ |
4fa63067 | 41198 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 41199 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 41200 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41201 | echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc"; \ |
4fa63067 NN |
41202 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41203 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41204 | done; \ | |
a90ef4bf | 41205 | (cd $(TARGET_SUBDIR)/libobjc && \ |
4fa63067 NN |
41206 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41207 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41208 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41209 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 41210 | TAGS) \ |
4fa63067 | 41211 | || exit 1 |
3866be5d | 41212 | |
a90ef4bf | 41213 | @endif target-libobjc |
3866be5d | 41214 | |
a90ef4bf JM |
41215 | .PHONY: maybe-install-info-target-libobjc install-info-target-libobjc |
41216 | maybe-install-info-target-libobjc: | |
41217 | @if target-libobjc | |
41218 | maybe-install-info-target-libobjc: install-info-target-libobjc | |
3866be5d | 41219 | |
a90ef4bf JM |
41220 | install-info-target-libobjc: \ |
41221 | configure-target-libobjc \ | |
41222 | info-target-libobjc | |
0aed8855 | 41223 | @: $(MAKE); $(unstage) |
22121df0 | 41224 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \ |
4fa63067 NN |
41225 | r=`${PWD_COMMAND}`; export r; \ |
41226 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 41227 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41228 | echo "Doing install-info in $(TARGET_SUBDIR)/libobjc"; \ |
4fa63067 NN |
41229 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41230 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41231 | done; \ | |
a90ef4bf | 41232 | (cd $(TARGET_SUBDIR)/libobjc && \ |
4fa63067 NN |
41233 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41234 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41235 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41236 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 41237 | install-info) \ |
4fa63067 | 41238 | || exit 1 |
3866be5d | 41239 | |
a90ef4bf | 41240 | @endif target-libobjc |
16ae0395 | 41241 | |
a90ef4bf JM |
41242 | .PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc |
41243 | maybe-install-pdf-target-libobjc: | |
41244 | @if target-libobjc | |
41245 | maybe-install-pdf-target-libobjc: install-pdf-target-libobjc | |
a3ca38d2 | 41246 | |
a90ef4bf JM |
41247 | install-pdf-target-libobjc: \ |
41248 | configure-target-libobjc \ | |
41249 | pdf-target-libobjc | |
a3ca38d2 | 41250 | @: $(MAKE); $(unstage) |
22121df0 | 41251 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \ |
a3ca38d2 DD |
41252 | r=`${PWD_COMMAND}`; export r; \ |
41253 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
41254 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 41255 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc"; \ |
a3ca38d2 DD |
41256 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41257 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41258 | done; \ | |
a90ef4bf | 41259 | (cd $(TARGET_SUBDIR)/libobjc && \ |
a3ca38d2 DD |
41260 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41261 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41262 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41263 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
41264 | install-pdf) \ |
41265 | || exit 1 | |
41266 | ||
a90ef4bf | 41267 | @endif target-libobjc |
a3ca38d2 | 41268 | |
a90ef4bf JM |
41269 | .PHONY: maybe-install-html-target-libobjc install-html-target-libobjc |
41270 | maybe-install-html-target-libobjc: | |
41271 | @if target-libobjc | |
41272 | maybe-install-html-target-libobjc: install-html-target-libobjc | |
108a6f8e | 41273 | |
a90ef4bf JM |
41274 | install-html-target-libobjc: \ |
41275 | configure-target-libobjc \ | |
41276 | html-target-libobjc | |
108a6f8e | 41277 | @: $(MAKE); $(unstage) |
22121df0 | 41278 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \ |
108a6f8e CD |
41279 | r=`${PWD_COMMAND}`; export r; \ |
41280 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
41281 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 41282 | echo "Doing install-html in $(TARGET_SUBDIR)/libobjc"; \ |
108a6f8e CD |
41283 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41284 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41285 | done; \ | |
a90ef4bf | 41286 | (cd $(TARGET_SUBDIR)/libobjc && \ |
108a6f8e CD |
41287 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41288 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41289 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41290 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
41291 | install-html) \ |
41292 | || exit 1 | |
41293 | ||
a90ef4bf | 41294 | @endif target-libobjc |
108a6f8e | 41295 | |
a90ef4bf JM |
41296 | .PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc |
41297 | maybe-installcheck-target-libobjc: | |
41298 | @if target-libobjc | |
41299 | maybe-installcheck-target-libobjc: installcheck-target-libobjc | |
4fa63067 | 41300 | |
a90ef4bf JM |
41301 | installcheck-target-libobjc: \ |
41302 | configure-target-libobjc | |
0aed8855 | 41303 | @: $(MAKE); $(unstage) |
22121df0 | 41304 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \ |
4fa63067 | 41305 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 41306 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 41307 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41308 | echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc"; \ |
4fa63067 NN |
41309 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41310 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41311 | done; \ | |
a90ef4bf | 41312 | (cd $(TARGET_SUBDIR)/libobjc && \ |
4fa63067 NN |
41313 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41314 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41315 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41316 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 41317 | installcheck) \ |
4fa63067 | 41318 | || exit 1 |
3866be5d | 41319 | |
a90ef4bf | 41320 | @endif target-libobjc |
3866be5d | 41321 | |
a90ef4bf JM |
41322 | .PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc |
41323 | maybe-mostlyclean-target-libobjc: | |
41324 | @if target-libobjc | |
41325 | maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc | |
4fa63067 | 41326 | |
a90ef4bf JM |
41327 | mostlyclean-target-libobjc: |
41328 | @: $(MAKE); $(unstage) | |
22121df0 | 41329 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \ |
a90ef4bf JM |
41330 | r=`${PWD_COMMAND}`; export r; \ |
41331 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
41332 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 41333 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc"; \ |
a90ef4bf JM |
41334 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41335 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41336 | done; \ | |
41337 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
41338 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
41339 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41340 | "RANLIB=$${RANLIB}" \ | |
41341 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
41342 | mostlyclean) \ | |
41343 | || exit 1 | |
4fa63067 | 41344 | |
a90ef4bf | 41345 | @endif target-libobjc |
4fa63067 | 41346 | |
a90ef4bf JM |
41347 | .PHONY: maybe-clean-target-libobjc clean-target-libobjc |
41348 | maybe-clean-target-libobjc: | |
41349 | @if target-libobjc | |
41350 | maybe-clean-target-libobjc: clean-target-libobjc | |
4fa63067 | 41351 | |
a90ef4bf JM |
41352 | clean-target-libobjc: |
41353 | @: $(MAKE); $(unstage) | |
22121df0 | 41354 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \ |
a90ef4bf JM |
41355 | r=`${PWD_COMMAND}`; export r; \ |
41356 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
41357 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 41358 | echo "Doing clean in $(TARGET_SUBDIR)/libobjc"; \ |
a90ef4bf JM |
41359 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41360 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41361 | done; \ | |
41362 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
41363 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
41364 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41365 | "RANLIB=$${RANLIB}" \ | |
41366 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
41367 | clean) \ | |
41368 | || exit 1 | |
4fa63067 | 41369 | |
a90ef4bf | 41370 | @endif target-libobjc |
4fa63067 | 41371 | |
a90ef4bf JM |
41372 | .PHONY: maybe-distclean-target-libobjc distclean-target-libobjc |
41373 | maybe-distclean-target-libobjc: | |
41374 | @if target-libobjc | |
41375 | maybe-distclean-target-libobjc: distclean-target-libobjc | |
4fa63067 | 41376 | |
a90ef4bf JM |
41377 | distclean-target-libobjc: |
41378 | @: $(MAKE); $(unstage) | |
22121df0 | 41379 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \ |
a90ef4bf JM |
41380 | r=`${PWD_COMMAND}`; export r; \ |
41381 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
41382 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 41383 | echo "Doing distclean in $(TARGET_SUBDIR)/libobjc"; \ |
a90ef4bf JM |
41384 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41385 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41386 | done; \ | |
41387 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
41388 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
41389 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41390 | "RANLIB=$${RANLIB}" \ | |
41391 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
41392 | distclean) \ | |
41393 | || exit 1 | |
4fa63067 | 41394 | |
a90ef4bf | 41395 | @endif target-libobjc |
4fa63067 | 41396 | |
a90ef4bf JM |
41397 | .PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc |
41398 | maybe-maintainer-clean-target-libobjc: | |
41399 | @if target-libobjc | |
41400 | maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc | |
4fa63067 | 41401 | |
a90ef4bf JM |
41402 | maintainer-clean-target-libobjc: |
41403 | @: $(MAKE); $(unstage) | |
22121df0 | 41404 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \ |
a90ef4bf JM |
41405 | r=`${PWD_COMMAND}`; export r; \ |
41406 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
41407 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 41408 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc"; \ |
a90ef4bf JM |
41409 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41410 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41411 | done; \ | |
41412 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
41413 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
41414 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41415 | "RANLIB=$${RANLIB}" \ | |
41416 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
41417 | maintainer-clean) \ | |
41418 | || exit 1 | |
4fa63067 | 41419 | |
a90ef4bf | 41420 | @endif target-libobjc |
4fa63067 NN |
41421 | |
41422 | ||
4fa63067 | 41423 | |
4fa63067 | 41424 | |
a7254363 | 41425 | |
a90ef4bf JM |
41426 | .PHONY: configure-target-libgo maybe-configure-target-libgo |
41427 | maybe-configure-target-libgo: | |
4f0ef2d8 | 41428 | @if gcc-bootstrap |
a90ef4bf | 41429 | configure-target-libgo: stage_current |
4f0ef2d8 | 41430 | @endif gcc-bootstrap |
a90ef4bf JM |
41431 | @if target-libgo |
41432 | maybe-configure-target-libgo: configure-target-libgo | |
41433 | configure-target-libgo: | |
0aed8855 PB |
41434 | @: $(MAKE); $(unstage) |
41435 | @r=`${PWD_COMMAND}`; export r; \ | |
41436 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 41437 | echo "Checking multilib configuration for libgo..."; \ |
22121df0 L |
41438 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \ |
41439 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null; \ | |
a90ef4bf JM |
41440 | if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \ |
41441 | if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \ | |
41442 | rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \ | |
0aed8855 | 41443 | else \ |
a90ef4bf JM |
41444 | rm -f $(TARGET_SUBDIR)/libgo/Makefile; \ |
41445 | mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \ | |
0aed8855 PB |
41446 | fi; \ |
41447 | else \ | |
a90ef4bf | 41448 | mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \ |
c52c6897 | 41449 | fi; \ |
a90ef4bf | 41450 | test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \ |
22121df0 | 41451 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \ |
1f53ca9a | 41452 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
41453 | echo Configuring in $(TARGET_SUBDIR)/libgo; \ |
41454 | cd "$(TARGET_SUBDIR)/libgo" || exit 1; \ | |
e2b9e2dc | 41455 | case $(srcdir) in \ |
b00612cc | 41456 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 41457 | *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \ |
b00612cc | 41458 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
a90ef4bf | 41459 | esac; \ |
1b6c0831 | 41460 | module_srcdir=libgo; \ |
4fa63067 | 41461 | rm -f no-such-file || : ; \ |
1b6c0831 L |
41462 | CONFIG_SITE=no-such-file $(SHELL) \ |
41463 | $$s/$$module_srcdir/configure \ | |
41464 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 41465 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 41466 | --target=${target_alias} \ |
e2b9e2dc | 41467 | || exit 1 |
a90ef4bf | 41468 | @endif target-libgo |
e2b9e2dc | 41469 | |
a7254363 PB |
41470 | |
41471 | ||
d545f33b PB |
41472 | |
41473 | ||
a90ef4bf JM |
41474 | .PHONY: all-target-libgo maybe-all-target-libgo |
41475 | maybe-all-target-libgo: | |
4f0ef2d8 | 41476 | @if gcc-bootstrap |
a90ef4bf | 41477 | all-target-libgo: stage_current |
4f0ef2d8 | 41478 | @endif gcc-bootstrap |
a90ef4bf JM |
41479 | @if target-libgo |
41480 | TARGET-target-libgo=all | |
41481 | maybe-all-target-libgo: all-target-libgo | |
41482 | all-target-libgo: configure-target-libgo | |
0aed8855 | 41483 | @: $(MAKE); $(unstage) |
b40e3958 L |
41484 | @r=`${PWD_COMMAND}`; export r; \ |
41485 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 41486 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 41487 | (cd $(TARGET_SUBDIR)/libgo && \ |
b3676d82 | 41488 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
a90ef4bf JM |
41489 | $(TARGET-target-libgo)) |
41490 | @endif target-libgo | |
3866be5d | 41491 | |
a7254363 PB |
41492 | |
41493 | ||
d545f33b PB |
41494 | |
41495 | ||
a90ef4bf JM |
41496 | .PHONY: check-target-libgo maybe-check-target-libgo |
41497 | maybe-check-target-libgo: | |
41498 | @if target-libgo | |
41499 | maybe-check-target-libgo: check-target-libgo | |
3866be5d | 41500 | |
a90ef4bf | 41501 | check-target-libgo: |
0aed8855 | 41502 | @: $(MAKE); $(unstage) |
4fa63067 NN |
41503 | @r=`${PWD_COMMAND}`; export r; \ |
41504 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 41505 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 41506 | (cd $(TARGET_SUBDIR)/libgo && \ |
7ffa0b57 | 41507 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
3866be5d | 41508 | |
a90ef4bf | 41509 | @endif target-libgo |
3866be5d | 41510 | |
a90ef4bf JM |
41511 | .PHONY: install-target-libgo maybe-install-target-libgo |
41512 | maybe-install-target-libgo: | |
41513 | @if target-libgo | |
41514 | maybe-install-target-libgo: install-target-libgo | |
16ae0395 | 41515 | |
a90ef4bf | 41516 | install-target-libgo: installdirs |
0aed8855 | 41517 | @: $(MAKE); $(unstage) |
4fa63067 NN |
41518 | @r=`${PWD_COMMAND}`; export r; \ |
41519 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 41520 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 41521 | (cd $(TARGET_SUBDIR)/libgo && \ |
7ffa0b57 | 41522 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 41523 | |
a90ef4bf | 41524 | @endif target-libgo |
3866be5d | 41525 | |
a90ef4bf JM |
41526 | .PHONY: install-strip-target-libgo maybe-install-strip-target-libgo |
41527 | maybe-install-strip-target-libgo: | |
41528 | @if target-libgo | |
41529 | maybe-install-strip-target-libgo: install-strip-target-libgo | |
9b980aa1 | 41530 | |
a90ef4bf | 41531 | install-strip-target-libgo: installdirs |
9b980aa1 RW |
41532 | @: $(MAKE); $(unstage) |
41533 | @r=`${PWD_COMMAND}`; export r; \ | |
41534 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
41535 | $(NORMAL_TARGET_EXPORTS) \ | |
a90ef4bf | 41536 | (cd $(TARGET_SUBDIR)/libgo && \ |
9b980aa1 RW |
41537 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) |
41538 | ||
a90ef4bf | 41539 | @endif target-libgo |
9b980aa1 | 41540 | |
56a8fe78 | 41541 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 41542 | |
a90ef4bf JM |
41543 | .PHONY: maybe-info-target-libgo info-target-libgo |
41544 | maybe-info-target-libgo: | |
41545 | @if target-libgo | |
41546 | maybe-info-target-libgo: info-target-libgo | |
4fa63067 | 41547 | |
a90ef4bf JM |
41548 | info-target-libgo: \ |
41549 | configure-target-libgo | |
0aed8855 | 41550 | @: $(MAKE); $(unstage) |
22121df0 | 41551 | @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \ |
b40e3958 L |
41552 | r=`${PWD_COMMAND}`; export r; \ |
41553 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 41554 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41555 | echo "Doing info in $(TARGET_SUBDIR)/libgo"; \ |
4fa63067 NN |
41556 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41557 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41558 | done; \ | |
a90ef4bf | 41559 | (cd $(TARGET_SUBDIR)/libgo && \ |
4fa63067 NN |
41560 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41561 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41562 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41563 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 41564 | info) \ |
e2b9e2dc NN |
41565 | || exit 1 |
41566 | ||
a90ef4bf | 41567 | @endif target-libgo |
3866be5d | 41568 | |
a90ef4bf JM |
41569 | .PHONY: maybe-dvi-target-libgo dvi-target-libgo |
41570 | maybe-dvi-target-libgo: | |
41571 | @if target-libgo | |
41572 | maybe-dvi-target-libgo: dvi-target-libgo | |
3866be5d | 41573 | |
a90ef4bf JM |
41574 | dvi-target-libgo: \ |
41575 | configure-target-libgo | |
0aed8855 | 41576 | @: $(MAKE); $(unstage) |
22121df0 | 41577 | @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \ |
4fa63067 | 41578 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 41579 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 41580 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41581 | echo "Doing dvi in $(TARGET_SUBDIR)/libgo"; \ |
4fa63067 NN |
41582 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41583 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41584 | done; \ | |
a90ef4bf | 41585 | (cd $(TARGET_SUBDIR)/libgo && \ |
4fa63067 NN |
41586 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41587 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41588 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41589 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 41590 | dvi) \ |
4fa63067 | 41591 | || exit 1 |
3866be5d | 41592 | |
a90ef4bf | 41593 | @endif target-libgo |
3866be5d | 41594 | |
a90ef4bf JM |
41595 | .PHONY: maybe-pdf-target-libgo pdf-target-libgo |
41596 | maybe-pdf-target-libgo: | |
41597 | @if target-libgo | |
41598 | maybe-pdf-target-libgo: pdf-target-libgo | |
56a8fe78 | 41599 | |
a90ef4bf JM |
41600 | pdf-target-libgo: \ |
41601 | configure-target-libgo | |
56a8fe78 | 41602 | @: $(MAKE); $(unstage) |
22121df0 | 41603 | @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \ |
56a8fe78 DD |
41604 | r=`${PWD_COMMAND}`; export r; \ |
41605 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
41606 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 41607 | echo "Doing pdf in $(TARGET_SUBDIR)/libgo"; \ |
56a8fe78 DD |
41608 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41609 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41610 | done; \ | |
a90ef4bf | 41611 | (cd $(TARGET_SUBDIR)/libgo && \ |
56a8fe78 DD |
41612 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41613 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41614 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41615 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
41616 | pdf) \ |
41617 | || exit 1 | |
41618 | ||
a90ef4bf | 41619 | @endif target-libgo |
56a8fe78 | 41620 | |
a90ef4bf JM |
41621 | .PHONY: maybe-html-target-libgo html-target-libgo |
41622 | maybe-html-target-libgo: | |
41623 | @if target-libgo | |
41624 | maybe-html-target-libgo: html-target-libgo | |
6d389afc | 41625 | |
a90ef4bf JM |
41626 | html-target-libgo: \ |
41627 | configure-target-libgo | |
0aed8855 | 41628 | @: $(MAKE); $(unstage) |
22121df0 | 41629 | @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \ |
6d389afc MS |
41630 | r=`${PWD_COMMAND}`; export r; \ |
41631 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 41632 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41633 | echo "Doing html in $(TARGET_SUBDIR)/libgo"; \ |
6d389afc MS |
41634 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41635 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41636 | done; \ | |
a90ef4bf | 41637 | (cd $(TARGET_SUBDIR)/libgo && \ |
6d389afc MS |
41638 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41639 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41640 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41641 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
41642 | html) \ |
41643 | || exit 1 | |
41644 | ||
a90ef4bf | 41645 | @endif target-libgo |
6d389afc | 41646 | |
a90ef4bf JM |
41647 | .PHONY: maybe-TAGS-target-libgo TAGS-target-libgo |
41648 | maybe-TAGS-target-libgo: | |
41649 | @if target-libgo | |
41650 | maybe-TAGS-target-libgo: TAGS-target-libgo | |
16ae0395 | 41651 | |
a90ef4bf JM |
41652 | TAGS-target-libgo: \ |
41653 | configure-target-libgo | |
0aed8855 | 41654 | @: $(MAKE); $(unstage) |
22121df0 | 41655 | @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \ |
4fa63067 | 41656 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 41657 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 41658 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41659 | echo "Doing TAGS in $(TARGET_SUBDIR)/libgo"; \ |
4fa63067 NN |
41660 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41661 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41662 | done; \ | |
a90ef4bf | 41663 | (cd $(TARGET_SUBDIR)/libgo && \ |
4fa63067 NN |
41664 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41665 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41666 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41667 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 41668 | TAGS) \ |
4fa63067 | 41669 | || exit 1 |
3866be5d | 41670 | |
a90ef4bf | 41671 | @endif target-libgo |
3866be5d | 41672 | |
a90ef4bf JM |
41673 | .PHONY: maybe-install-info-target-libgo install-info-target-libgo |
41674 | maybe-install-info-target-libgo: | |
41675 | @if target-libgo | |
41676 | maybe-install-info-target-libgo: install-info-target-libgo | |
4fa63067 | 41677 | |
a90ef4bf JM |
41678 | install-info-target-libgo: \ |
41679 | configure-target-libgo \ | |
41680 | info-target-libgo | |
0aed8855 | 41681 | @: $(MAKE); $(unstage) |
22121df0 | 41682 | @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \ |
b40e3958 L |
41683 | r=`${PWD_COMMAND}`; export r; \ |
41684 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 41685 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41686 | echo "Doing install-info in $(TARGET_SUBDIR)/libgo"; \ |
4fa63067 NN |
41687 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41688 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41689 | done; \ | |
a90ef4bf | 41690 | (cd $(TARGET_SUBDIR)/libgo && \ |
4fa63067 NN |
41691 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41692 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41693 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41694 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 41695 | install-info) \ |
e2b9e2dc NN |
41696 | || exit 1 |
41697 | ||
a90ef4bf | 41698 | @endif target-libgo |
4fa63067 | 41699 | |
a90ef4bf JM |
41700 | .PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo |
41701 | maybe-install-pdf-target-libgo: | |
41702 | @if target-libgo | |
41703 | maybe-install-pdf-target-libgo: install-pdf-target-libgo | |
a3ca38d2 | 41704 | |
a90ef4bf JM |
41705 | install-pdf-target-libgo: \ |
41706 | configure-target-libgo \ | |
41707 | pdf-target-libgo | |
a3ca38d2 | 41708 | @: $(MAKE); $(unstage) |
22121df0 | 41709 | @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \ |
a3ca38d2 DD |
41710 | r=`${PWD_COMMAND}`; export r; \ |
41711 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
41712 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 41713 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo"; \ |
a3ca38d2 DD |
41714 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41715 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41716 | done; \ | |
a90ef4bf | 41717 | (cd $(TARGET_SUBDIR)/libgo && \ |
a3ca38d2 DD |
41718 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41719 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41720 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41721 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
41722 | install-pdf) \ |
41723 | || exit 1 | |
41724 | ||
a90ef4bf | 41725 | @endif target-libgo |
a3ca38d2 | 41726 | |
a90ef4bf JM |
41727 | .PHONY: maybe-install-html-target-libgo install-html-target-libgo |
41728 | maybe-install-html-target-libgo: | |
41729 | @if target-libgo | |
41730 | maybe-install-html-target-libgo: install-html-target-libgo | |
108a6f8e | 41731 | |
a90ef4bf JM |
41732 | install-html-target-libgo: \ |
41733 | configure-target-libgo \ | |
41734 | html-target-libgo | |
108a6f8e | 41735 | @: $(MAKE); $(unstage) |
22121df0 | 41736 | @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \ |
108a6f8e CD |
41737 | r=`${PWD_COMMAND}`; export r; \ |
41738 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
41739 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 41740 | echo "Doing install-html in $(TARGET_SUBDIR)/libgo"; \ |
108a6f8e CD |
41741 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41742 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41743 | done; \ | |
a90ef4bf | 41744 | (cd $(TARGET_SUBDIR)/libgo && \ |
108a6f8e CD |
41745 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41746 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41747 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41748 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
41749 | install-html) \ |
41750 | || exit 1 | |
41751 | ||
a90ef4bf | 41752 | @endif target-libgo |
108a6f8e | 41753 | |
a90ef4bf JM |
41754 | .PHONY: maybe-installcheck-target-libgo installcheck-target-libgo |
41755 | maybe-installcheck-target-libgo: | |
41756 | @if target-libgo | |
41757 | maybe-installcheck-target-libgo: installcheck-target-libgo | |
4fa63067 | 41758 | |
a90ef4bf JM |
41759 | installcheck-target-libgo: \ |
41760 | configure-target-libgo | |
0aed8855 | 41761 | @: $(MAKE); $(unstage) |
22121df0 | 41762 | @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \ |
4fa63067 | 41763 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 41764 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 41765 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41766 | echo "Doing installcheck in $(TARGET_SUBDIR)/libgo"; \ |
4fa63067 NN |
41767 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41768 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41769 | done; \ | |
a90ef4bf | 41770 | (cd $(TARGET_SUBDIR)/libgo && \ |
4fa63067 NN |
41771 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41772 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41773 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41774 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 41775 | installcheck) \ |
4fa63067 | 41776 | || exit 1 |
3866be5d | 41777 | |
a90ef4bf | 41778 | @endif target-libgo |
3866be5d | 41779 | |
a90ef4bf JM |
41780 | .PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo |
41781 | maybe-mostlyclean-target-libgo: | |
41782 | @if target-libgo | |
41783 | maybe-mostlyclean-target-libgo: mostlyclean-target-libgo | |
4fa63067 | 41784 | |
a90ef4bf | 41785 | mostlyclean-target-libgo: |
0aed8855 | 41786 | @: $(MAKE); $(unstage) |
22121df0 | 41787 | @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \ |
4fa63067 | 41788 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 41789 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 41790 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41791 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo"; \ |
4fa63067 NN |
41792 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41793 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41794 | done; \ | |
a90ef4bf | 41795 | (cd $(TARGET_SUBDIR)/libgo && \ |
4fa63067 NN |
41796 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41797 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41798 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41799 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 41800 | mostlyclean) \ |
4fa63067 | 41801 | || exit 1 |
3866be5d | 41802 | |
a90ef4bf | 41803 | @endif target-libgo |
3866be5d | 41804 | |
a90ef4bf JM |
41805 | .PHONY: maybe-clean-target-libgo clean-target-libgo |
41806 | maybe-clean-target-libgo: | |
41807 | @if target-libgo | |
41808 | maybe-clean-target-libgo: clean-target-libgo | |
16ae0395 | 41809 | |
a90ef4bf | 41810 | clean-target-libgo: |
0aed8855 | 41811 | @: $(MAKE); $(unstage) |
22121df0 | 41812 | @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \ |
4fa63067 | 41813 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 41814 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 41815 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41816 | echo "Doing clean in $(TARGET_SUBDIR)/libgo"; \ |
4fa63067 NN |
41817 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41818 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41819 | done; \ | |
a90ef4bf | 41820 | (cd $(TARGET_SUBDIR)/libgo && \ |
4fa63067 NN |
41821 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41822 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41823 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41824 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 41825 | clean) \ |
4fa63067 | 41826 | || exit 1 |
3866be5d | 41827 | |
a90ef4bf | 41828 | @endif target-libgo |
3866be5d | 41829 | |
a90ef4bf JM |
41830 | .PHONY: maybe-distclean-target-libgo distclean-target-libgo |
41831 | maybe-distclean-target-libgo: | |
41832 | @if target-libgo | |
41833 | maybe-distclean-target-libgo: distclean-target-libgo | |
4fa63067 | 41834 | |
a90ef4bf | 41835 | distclean-target-libgo: |
0aed8855 | 41836 | @: $(MAKE); $(unstage) |
22121df0 | 41837 | @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \ |
b40e3958 L |
41838 | r=`${PWD_COMMAND}`; export r; \ |
41839 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 41840 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41841 | echo "Doing distclean in $(TARGET_SUBDIR)/libgo"; \ |
4fa63067 NN |
41842 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41843 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41844 | done; \ | |
a90ef4bf | 41845 | (cd $(TARGET_SUBDIR)/libgo && \ |
4fa63067 NN |
41846 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41847 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41848 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41849 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 41850 | distclean) \ |
e2b9e2dc NN |
41851 | || exit 1 |
41852 | ||
a90ef4bf | 41853 | @endif target-libgo |
3866be5d | 41854 | |
a90ef4bf JM |
41855 | .PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo |
41856 | maybe-maintainer-clean-target-libgo: | |
41857 | @if target-libgo | |
41858 | maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo | |
3866be5d | 41859 | |
a90ef4bf | 41860 | maintainer-clean-target-libgo: |
0aed8855 | 41861 | @: $(MAKE); $(unstage) |
22121df0 | 41862 | @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \ |
4fa63067 | 41863 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 41864 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 41865 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 41866 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo"; \ |
4fa63067 NN |
41867 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
41868 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
41869 | done; \ | |
a90ef4bf | 41870 | (cd $(TARGET_SUBDIR)/libgo && \ |
4fa63067 NN |
41871 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
41872 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
41873 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 41874 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 41875 | maintainer-clean) \ |
4fa63067 | 41876 | || exit 1 |
3866be5d | 41877 | |
a90ef4bf | 41878 | @endif target-libgo |
3866be5d | 41879 | |
16ae0395 | 41880 | |
3866be5d | 41881 | |
e90269c8 | 41882 | |
a7254363 | 41883 | |
a90ef4bf JM |
41884 | .PHONY: configure-target-libtermcap maybe-configure-target-libtermcap |
41885 | maybe-configure-target-libtermcap: | |
4f0ef2d8 | 41886 | @if gcc-bootstrap |
a90ef4bf | 41887 | configure-target-libtermcap: stage_current |
4f0ef2d8 | 41888 | @endif gcc-bootstrap |
a90ef4bf JM |
41889 | @if target-libtermcap |
41890 | maybe-configure-target-libtermcap: configure-target-libtermcap | |
41891 | configure-target-libtermcap: | |
0aed8855 PB |
41892 | @: $(MAKE); $(unstage) |
41893 | @r=`${PWD_COMMAND}`; export r; \ | |
41894 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 41895 | echo "Checking multilib configuration for libtermcap..."; \ |
22121df0 L |
41896 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \ |
41897 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null; \ | |
a90ef4bf JM |
41898 | if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \ |
41899 | if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \ | |
41900 | rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \ | |
0aed8855 | 41901 | else \ |
a90ef4bf JM |
41902 | rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \ |
41903 | mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \ | |
0aed8855 PB |
41904 | fi; \ |
41905 | else \ | |
a90ef4bf | 41906 | mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \ |
c52c6897 | 41907 | fi; \ |
a90ef4bf | 41908 | test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \ |
22121df0 | 41909 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \ |
1f53ca9a | 41910 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
41911 | echo Configuring in $(TARGET_SUBDIR)/libtermcap; \ |
41912 | cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \ | |
e2b9e2dc | 41913 | case $(srcdir) in \ |
b00612cc | 41914 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 41915 | *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \ |
b00612cc | 41916 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
e2b9e2dc | 41917 | esac; \ |
1b6c0831 | 41918 | module_srcdir=libtermcap; \ |
4fa63067 | 41919 | rm -f no-such-file || : ; \ |
1b6c0831 L |
41920 | CONFIG_SITE=no-such-file $(SHELL) \ |
41921 | $$s/$$module_srcdir/configure \ | |
41922 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 41923 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 41924 | --target=${target_alias} \ |
e2b9e2dc | 41925 | || exit 1 |
a90ef4bf | 41926 | @endif target-libtermcap |
e2b9e2dc | 41927 | |
a7254363 PB |
41928 | |
41929 | ||
d545f33b PB |
41930 | |
41931 | ||
a90ef4bf JM |
41932 | .PHONY: all-target-libtermcap maybe-all-target-libtermcap |
41933 | maybe-all-target-libtermcap: | |
4f0ef2d8 | 41934 | @if gcc-bootstrap |
a90ef4bf | 41935 | all-target-libtermcap: stage_current |
4f0ef2d8 | 41936 | @endif gcc-bootstrap |
a90ef4bf JM |
41937 | @if target-libtermcap |
41938 | TARGET-target-libtermcap=all | |
41939 | maybe-all-target-libtermcap: all-target-libtermcap | |
41940 | all-target-libtermcap: configure-target-libtermcap | |
0aed8855 | 41941 | @: $(MAKE); $(unstage) |
b40e3958 L |
41942 | @r=`${PWD_COMMAND}`; export r; \ |
41943 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 41944 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 41945 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
b3676d82 | 41946 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
a90ef4bf JM |
41947 | $(TARGET-target-libtermcap)) |
41948 | @endif target-libtermcap | |
e393202e | 41949 | |
a7254363 PB |
41950 | |
41951 | ||
d545f33b PB |
41952 | |
41953 | ||
a90ef4bf JM |
41954 | .PHONY: check-target-libtermcap maybe-check-target-libtermcap |
41955 | maybe-check-target-libtermcap: | |
41956 | @if target-libtermcap | |
41957 | maybe-check-target-libtermcap: check-target-libtermcap | |
e393202e | 41958 | |
4fa63067 | 41959 | # Dummy target for uncheckable module. |
a90ef4bf | 41960 | check-target-libtermcap: |
e393202e | 41961 | |
a90ef4bf | 41962 | @endif target-libtermcap |
e393202e | 41963 | |
a90ef4bf JM |
41964 | .PHONY: install-target-libtermcap maybe-install-target-libtermcap |
41965 | maybe-install-target-libtermcap: | |
41966 | @if target-libtermcap | |
41967 | maybe-install-target-libtermcap: install-target-libtermcap | |
16ae0395 | 41968 | |
a90ef4bf | 41969 | install-target-libtermcap: installdirs |
0aed8855 | 41970 | @: $(MAKE); $(unstage) |
b40e3958 L |
41971 | @r=`${PWD_COMMAND}`; export r; \ |
41972 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 41973 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 41974 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
7ffa0b57 | 41975 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 41976 | |
a90ef4bf | 41977 | @endif target-libtermcap |
56a8fe78 | 41978 | |
a90ef4bf JM |
41979 | .PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap |
41980 | maybe-install-strip-target-libtermcap: | |
41981 | @if target-libtermcap | |
41982 | maybe-install-strip-target-libtermcap: install-strip-target-libtermcap | |
6d389afc | 41983 | |
a90ef4bf | 41984 | install-strip-target-libtermcap: installdirs |
0aed8855 | 41985 | @: $(MAKE); $(unstage) |
a90ef4bf | 41986 | @r=`${PWD_COMMAND}`; export r; \ |
6d389afc | 41987 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
6d389afc | 41988 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
41989 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
41990 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) | |
6d389afc | 41991 | |
a90ef4bf | 41992 | @endif target-libtermcap |
6d389afc | 41993 | |
a90ef4bf | 41994 | # Other targets (info, dvi, pdf, etc.) |
16ae0395 | 41995 | |
a90ef4bf JM |
41996 | .PHONY: maybe-info-target-libtermcap info-target-libtermcap |
41997 | maybe-info-target-libtermcap: | |
41998 | @if target-libtermcap | |
41999 | maybe-info-target-libtermcap: info-target-libtermcap | |
42000 | ||
42001 | info-target-libtermcap: \ | |
42002 | configure-target-libtermcap | |
0aed8855 | 42003 | @: $(MAKE); $(unstage) |
22121df0 | 42004 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \ |
4fa63067 | 42005 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 42006 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 42007 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42008 | echo "Doing info in $(TARGET_SUBDIR)/libtermcap"; \ |
4fa63067 NN |
42009 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42010 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42011 | done; \ | |
a90ef4bf | 42012 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
4fa63067 NN |
42013 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42014 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42015 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42016 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 42017 | info) \ |
4fa63067 | 42018 | || exit 1 |
ce5b542e | 42019 | |
a90ef4bf | 42020 | @endif target-libtermcap |
ce5b542e | 42021 | |
a90ef4bf JM |
42022 | .PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap |
42023 | maybe-dvi-target-libtermcap: | |
42024 | @if target-libtermcap | |
42025 | maybe-dvi-target-libtermcap: dvi-target-libtermcap | |
4fa63067 | 42026 | |
a90ef4bf JM |
42027 | dvi-target-libtermcap: \ |
42028 | configure-target-libtermcap | |
0aed8855 | 42029 | @: $(MAKE); $(unstage) |
22121df0 | 42030 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \ |
b40e3958 L |
42031 | r=`${PWD_COMMAND}`; export r; \ |
42032 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42033 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42034 | echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap"; \ |
4fa63067 NN |
42035 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42036 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42037 | done; \ | |
a90ef4bf | 42038 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
4fa63067 NN |
42039 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42040 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42041 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42042 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 42043 | dvi) \ |
e2b9e2dc NN |
42044 | || exit 1 |
42045 | ||
a90ef4bf | 42046 | @endif target-libtermcap |
e393202e | 42047 | |
a90ef4bf JM |
42048 | .PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap |
42049 | maybe-pdf-target-libtermcap: | |
42050 | @if target-libtermcap | |
42051 | maybe-pdf-target-libtermcap: pdf-target-libtermcap | |
a3ca38d2 | 42052 | |
a90ef4bf JM |
42053 | pdf-target-libtermcap: \ |
42054 | configure-target-libtermcap | |
a3ca38d2 | 42055 | @: $(MAKE); $(unstage) |
22121df0 | 42056 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \ |
a3ca38d2 DD |
42057 | r=`${PWD_COMMAND}`; export r; \ |
42058 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
42059 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 42060 | echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap"; \ |
a3ca38d2 DD |
42061 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42062 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42063 | done; \ | |
a90ef4bf | 42064 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
a3ca38d2 DD |
42065 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42066 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42067 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42068 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 42069 | pdf) \ |
a3ca38d2 DD |
42070 | || exit 1 |
42071 | ||
a90ef4bf | 42072 | @endif target-libtermcap |
a3ca38d2 | 42073 | |
a90ef4bf JM |
42074 | .PHONY: maybe-html-target-libtermcap html-target-libtermcap |
42075 | maybe-html-target-libtermcap: | |
42076 | @if target-libtermcap | |
42077 | maybe-html-target-libtermcap: html-target-libtermcap | |
108a6f8e | 42078 | |
a90ef4bf JM |
42079 | html-target-libtermcap: \ |
42080 | configure-target-libtermcap | |
108a6f8e | 42081 | @: $(MAKE); $(unstage) |
22121df0 | 42082 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \ |
108a6f8e CD |
42083 | r=`${PWD_COMMAND}`; export r; \ |
42084 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
42085 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 42086 | echo "Doing html in $(TARGET_SUBDIR)/libtermcap"; \ |
108a6f8e CD |
42087 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42088 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42089 | done; \ | |
a90ef4bf | 42090 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
108a6f8e CD |
42091 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42092 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42093 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42094 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 42095 | html) \ |
108a6f8e CD |
42096 | || exit 1 |
42097 | ||
a90ef4bf | 42098 | @endif target-libtermcap |
108a6f8e | 42099 | |
a90ef4bf JM |
42100 | .PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap |
42101 | maybe-TAGS-target-libtermcap: | |
42102 | @if target-libtermcap | |
42103 | maybe-TAGS-target-libtermcap: TAGS-target-libtermcap | |
e393202e | 42104 | |
a90ef4bf JM |
42105 | TAGS-target-libtermcap: \ |
42106 | configure-target-libtermcap | |
0aed8855 | 42107 | @: $(MAKE); $(unstage) |
22121df0 | 42108 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \ |
4fa63067 NN |
42109 | r=`${PWD_COMMAND}`; export r; \ |
42110 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42111 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42112 | echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap"; \ |
4fa63067 NN |
42113 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42114 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42115 | done; \ | |
a90ef4bf | 42116 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
4fa63067 NN |
42117 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42118 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42119 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42120 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 42121 | TAGS) \ |
4fa63067 | 42122 | || exit 1 |
3866be5d | 42123 | |
a90ef4bf | 42124 | @endif target-libtermcap |
3866be5d | 42125 | |
a90ef4bf JM |
42126 | .PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap |
42127 | maybe-install-info-target-libtermcap: | |
42128 | @if target-libtermcap | |
42129 | maybe-install-info-target-libtermcap: install-info-target-libtermcap | |
16ae0395 | 42130 | |
a90ef4bf JM |
42131 | install-info-target-libtermcap: \ |
42132 | configure-target-libtermcap \ | |
42133 | info-target-libtermcap | |
0aed8855 | 42134 | @: $(MAKE); $(unstage) |
22121df0 | 42135 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \ |
4fa63067 | 42136 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 42137 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 42138 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42139 | echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap"; \ |
4fa63067 NN |
42140 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42141 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42142 | done; \ | |
a90ef4bf | 42143 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
4fa63067 NN |
42144 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42145 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42146 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42147 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 42148 | install-info) \ |
4fa63067 | 42149 | || exit 1 |
e393202e | 42150 | |
a90ef4bf | 42151 | @endif target-libtermcap |
3866be5d | 42152 | |
a90ef4bf JM |
42153 | .PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap |
42154 | maybe-install-pdf-target-libtermcap: | |
42155 | @if target-libtermcap | |
42156 | maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap | |
4fa63067 | 42157 | |
a90ef4bf JM |
42158 | install-pdf-target-libtermcap: \ |
42159 | configure-target-libtermcap \ | |
42160 | pdf-target-libtermcap | |
0aed8855 | 42161 | @: $(MAKE); $(unstage) |
22121df0 | 42162 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \ |
b40e3958 L |
42163 | r=`${PWD_COMMAND}`; export r; \ |
42164 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42165 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42166 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap"; \ |
4fa63067 NN |
42167 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42168 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42169 | done; \ | |
a90ef4bf | 42170 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
4fa63067 NN |
42171 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42172 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42173 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42174 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 42175 | install-pdf) \ |
e2b9e2dc NN |
42176 | || exit 1 |
42177 | ||
a90ef4bf | 42178 | @endif target-libtermcap |
e393202e | 42179 | |
a90ef4bf JM |
42180 | .PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap |
42181 | maybe-install-html-target-libtermcap: | |
42182 | @if target-libtermcap | |
42183 | maybe-install-html-target-libtermcap: install-html-target-libtermcap | |
3866be5d | 42184 | |
a90ef4bf JM |
42185 | install-html-target-libtermcap: \ |
42186 | configure-target-libtermcap \ | |
42187 | html-target-libtermcap | |
0aed8855 | 42188 | @: $(MAKE); $(unstage) |
22121df0 | 42189 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \ |
4fa63067 NN |
42190 | r=`${PWD_COMMAND}`; export r; \ |
42191 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42192 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42193 | echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap"; \ |
4fa63067 NN |
42194 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42195 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42196 | done; \ | |
a90ef4bf | 42197 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
4fa63067 NN |
42198 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42199 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42200 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42201 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 42202 | install-html) \ |
4fa63067 | 42203 | || exit 1 |
3866be5d | 42204 | |
a90ef4bf | 42205 | @endif target-libtermcap |
3866be5d | 42206 | |
a90ef4bf JM |
42207 | .PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap |
42208 | maybe-installcheck-target-libtermcap: | |
42209 | @if target-libtermcap | |
42210 | maybe-installcheck-target-libtermcap: installcheck-target-libtermcap | |
16ae0395 | 42211 | |
a90ef4bf JM |
42212 | installcheck-target-libtermcap: \ |
42213 | configure-target-libtermcap | |
0aed8855 | 42214 | @: $(MAKE); $(unstage) |
22121df0 | 42215 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \ |
4fa63067 | 42216 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 42217 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 42218 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42219 | echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap"; \ |
4fa63067 NN |
42220 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42221 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42222 | done; \ | |
a90ef4bf | 42223 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
4fa63067 NN |
42224 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42225 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42226 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42227 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a90ef4bf | 42228 | installcheck) \ |
4fa63067 | 42229 | || exit 1 |
3866be5d | 42230 | |
a90ef4bf JM |
42231 | @endif target-libtermcap |
42232 | ||
42233 | .PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap | |
42234 | maybe-mostlyclean-target-libtermcap: | |
42235 | @if target-libtermcap | |
42236 | maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap | |
42237 | ||
42238 | # libtermcap doesn't support mostlyclean. | |
42239 | mostlyclean-target-libtermcap: | |
42240 | ||
42241 | @endif target-libtermcap | |
3866be5d | 42242 | |
a90ef4bf JM |
42243 | .PHONY: maybe-clean-target-libtermcap clean-target-libtermcap |
42244 | maybe-clean-target-libtermcap: | |
42245 | @if target-libtermcap | |
42246 | maybe-clean-target-libtermcap: clean-target-libtermcap | |
e393202e | 42247 | |
a90ef4bf JM |
42248 | # libtermcap doesn't support clean. |
42249 | clean-target-libtermcap: | |
15723a45 | 42250 | |
a90ef4bf | 42251 | @endif target-libtermcap |
e90269c8 | 42252 | |
a90ef4bf JM |
42253 | .PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap |
42254 | maybe-distclean-target-libtermcap: | |
42255 | @if target-libtermcap | |
42256 | maybe-distclean-target-libtermcap: distclean-target-libtermcap | |
a7254363 | 42257 | |
a90ef4bf JM |
42258 | # libtermcap doesn't support distclean. |
42259 | distclean-target-libtermcap: | |
42260 | ||
42261 | @endif target-libtermcap | |
42262 | ||
42263 | .PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap | |
42264 | maybe-maintainer-clean-target-libtermcap: | |
42265 | @if target-libtermcap | |
42266 | maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap | |
42267 | ||
42268 | # libtermcap doesn't support maintainer-clean. | |
42269 | maintainer-clean-target-libtermcap: | |
42270 | ||
42271 | @endif target-libtermcap | |
42272 | ||
42273 | ||
42274 | ||
42275 | ||
42276 | ||
42277 | .PHONY: configure-target-winsup maybe-configure-target-winsup | |
42278 | maybe-configure-target-winsup: | |
4f0ef2d8 | 42279 | @if gcc-bootstrap |
a90ef4bf | 42280 | configure-target-winsup: stage_current |
4f0ef2d8 | 42281 | @endif gcc-bootstrap |
a90ef4bf JM |
42282 | @if target-winsup |
42283 | maybe-configure-target-winsup: configure-target-winsup | |
42284 | configure-target-winsup: | |
0aed8855 PB |
42285 | @: $(MAKE); $(unstage) |
42286 | @r=`${PWD_COMMAND}`; export r; \ | |
42287 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 42288 | echo "Checking multilib configuration for winsup..."; \ |
22121df0 L |
42289 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \ |
42290 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null; \ | |
a90ef4bf JM |
42291 | if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \ |
42292 | if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \ | |
42293 | rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \ | |
0aed8855 | 42294 | else \ |
a90ef4bf JM |
42295 | rm -f $(TARGET_SUBDIR)/winsup/Makefile; \ |
42296 | mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \ | |
0aed8855 PB |
42297 | fi; \ |
42298 | else \ | |
a90ef4bf | 42299 | mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \ |
c52c6897 | 42300 | fi; \ |
a90ef4bf | 42301 | test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \ |
22121df0 | 42302 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \ |
1f53ca9a | 42303 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
42304 | echo Configuring in $(TARGET_SUBDIR)/winsup; \ |
42305 | cd "$(TARGET_SUBDIR)/winsup" || exit 1; \ | |
bba45b8b | 42306 | case $(srcdir) in \ |
b00612cc | 42307 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 42308 | *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \ |
b00612cc | 42309 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
bba45b8b | 42310 | esac; \ |
1b6c0831 | 42311 | module_srcdir=winsup; \ |
bba45b8b | 42312 | rm -f no-such-file || : ; \ |
1b6c0831 L |
42313 | CONFIG_SITE=no-such-file $(SHELL) \ |
42314 | $$s/$$module_srcdir/configure \ | |
42315 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 42316 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 42317 | --target=${target_alias} \ |
bba45b8b | 42318 | || exit 1 |
a90ef4bf | 42319 | @endif target-winsup |
e393202e | 42320 | |
a7254363 PB |
42321 | |
42322 | ||
d545f33b PB |
42323 | |
42324 | ||
a90ef4bf JM |
42325 | .PHONY: all-target-winsup maybe-all-target-winsup |
42326 | maybe-all-target-winsup: | |
4f0ef2d8 | 42327 | @if gcc-bootstrap |
a90ef4bf | 42328 | all-target-winsup: stage_current |
4f0ef2d8 | 42329 | @endif gcc-bootstrap |
a90ef4bf JM |
42330 | @if target-winsup |
42331 | TARGET-target-winsup=all | |
42332 | maybe-all-target-winsup: all-target-winsup | |
42333 | all-target-winsup: configure-target-winsup | |
0aed8855 | 42334 | @: $(MAKE); $(unstage) |
b40e3958 L |
42335 | @r=`${PWD_COMMAND}`; export r; \ |
42336 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 42337 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 42338 | (cd $(TARGET_SUBDIR)/winsup && \ |
b3676d82 | 42339 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
a90ef4bf JM |
42340 | $(TARGET-target-winsup)) |
42341 | @endif target-winsup | |
e393202e | 42342 | |
a7254363 PB |
42343 | |
42344 | ||
d545f33b PB |
42345 | |
42346 | ||
a90ef4bf JM |
42347 | .PHONY: check-target-winsup maybe-check-target-winsup |
42348 | maybe-check-target-winsup: | |
42349 | @if target-winsup | |
42350 | maybe-check-target-winsup: check-target-winsup | |
16ae0395 | 42351 | |
a90ef4bf | 42352 | check-target-winsup: |
0aed8855 | 42353 | @: $(MAKE); $(unstage) |
b40e3958 L |
42354 | @r=`${PWD_COMMAND}`; export r; \ |
42355 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42356 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 42357 | (cd $(TARGET_SUBDIR)/winsup && \ |
7ffa0b57 | 42358 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
930314a4 | 42359 | |
a90ef4bf | 42360 | @endif target-winsup |
e393202e | 42361 | |
a90ef4bf JM |
42362 | .PHONY: install-target-winsup maybe-install-target-winsup |
42363 | maybe-install-target-winsup: | |
42364 | @if target-winsup | |
42365 | maybe-install-target-winsup: install-target-winsup | |
4fa63067 | 42366 | |
a90ef4bf | 42367 | install-target-winsup: installdirs |
0aed8855 | 42368 | @: $(MAKE); $(unstage) |
4fa63067 NN |
42369 | @r=`${PWD_COMMAND}`; export r; \ |
42370 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42371 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 42372 | (cd $(TARGET_SUBDIR)/winsup && \ |
7ffa0b57 | 42373 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4fa63067 | 42374 | |
a90ef4bf | 42375 | @endif target-winsup |
4fa63067 | 42376 | |
a90ef4bf JM |
42377 | .PHONY: install-strip-target-winsup maybe-install-strip-target-winsup |
42378 | maybe-install-strip-target-winsup: | |
42379 | @if target-winsup | |
42380 | maybe-install-strip-target-winsup: install-strip-target-winsup | |
9b980aa1 | 42381 | |
a90ef4bf | 42382 | install-strip-target-winsup: installdirs |
9b980aa1 RW |
42383 | @: $(MAKE); $(unstage) |
42384 | @r=`${PWD_COMMAND}`; export r; \ | |
42385 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
42386 | $(NORMAL_TARGET_EXPORTS) \ | |
a90ef4bf | 42387 | (cd $(TARGET_SUBDIR)/winsup && \ |
9b980aa1 RW |
42388 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) |
42389 | ||
a90ef4bf | 42390 | @endif target-winsup |
9b980aa1 | 42391 | |
56a8fe78 | 42392 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 42393 | |
a90ef4bf JM |
42394 | .PHONY: maybe-info-target-winsup info-target-winsup |
42395 | maybe-info-target-winsup: | |
42396 | @if target-winsup | |
42397 | maybe-info-target-winsup: info-target-winsup | |
4fa63067 | 42398 | |
a90ef4bf JM |
42399 | info-target-winsup: \ |
42400 | configure-target-winsup | |
0aed8855 | 42401 | @: $(MAKE); $(unstage) |
22121df0 | 42402 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \ |
4fa63067 NN |
42403 | r=`${PWD_COMMAND}`; export r; \ |
42404 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42405 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42406 | echo "Doing info in $(TARGET_SUBDIR)/winsup"; \ |
4fa63067 NN |
42407 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42408 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42409 | done; \ | |
a90ef4bf | 42410 | (cd $(TARGET_SUBDIR)/winsup && \ |
4fa63067 NN |
42411 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42412 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42413 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42414 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 42415 | info) \ |
4fa63067 NN |
42416 | || exit 1 |
42417 | ||
a90ef4bf | 42418 | @endif target-winsup |
4fa63067 | 42419 | |
a90ef4bf JM |
42420 | .PHONY: maybe-dvi-target-winsup dvi-target-winsup |
42421 | maybe-dvi-target-winsup: | |
42422 | @if target-winsup | |
42423 | maybe-dvi-target-winsup: dvi-target-winsup | |
4fa63067 | 42424 | |
a90ef4bf JM |
42425 | dvi-target-winsup: \ |
42426 | configure-target-winsup | |
0aed8855 | 42427 | @: $(MAKE); $(unstage) |
22121df0 | 42428 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \ |
4fa63067 NN |
42429 | r=`${PWD_COMMAND}`; export r; \ |
42430 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42431 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42432 | echo "Doing dvi in $(TARGET_SUBDIR)/winsup"; \ |
4fa63067 NN |
42433 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42434 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42435 | done; \ | |
a90ef4bf | 42436 | (cd $(TARGET_SUBDIR)/winsup && \ |
4fa63067 NN |
42437 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42438 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42439 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42440 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 42441 | dvi) \ |
4fa63067 NN |
42442 | || exit 1 |
42443 | ||
a90ef4bf | 42444 | @endif target-winsup |
4fa63067 | 42445 | |
a90ef4bf JM |
42446 | .PHONY: maybe-pdf-target-winsup pdf-target-winsup |
42447 | maybe-pdf-target-winsup: | |
42448 | @if target-winsup | |
42449 | maybe-pdf-target-winsup: pdf-target-winsup | |
56a8fe78 | 42450 | |
a90ef4bf JM |
42451 | pdf-target-winsup: \ |
42452 | configure-target-winsup | |
56a8fe78 | 42453 | @: $(MAKE); $(unstage) |
22121df0 | 42454 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \ |
56a8fe78 DD |
42455 | r=`${PWD_COMMAND}`; export r; \ |
42456 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
42457 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 42458 | echo "Doing pdf in $(TARGET_SUBDIR)/winsup"; \ |
56a8fe78 DD |
42459 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42460 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42461 | done; \ | |
a90ef4bf | 42462 | (cd $(TARGET_SUBDIR)/winsup && \ |
56a8fe78 DD |
42463 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42464 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42465 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42466 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
42467 | pdf) \ |
42468 | || exit 1 | |
42469 | ||
a90ef4bf | 42470 | @endif target-winsup |
56a8fe78 | 42471 | |
a90ef4bf JM |
42472 | .PHONY: maybe-html-target-winsup html-target-winsup |
42473 | maybe-html-target-winsup: | |
42474 | @if target-winsup | |
42475 | maybe-html-target-winsup: html-target-winsup | |
6d389afc | 42476 | |
a90ef4bf JM |
42477 | html-target-winsup: \ |
42478 | configure-target-winsup | |
0aed8855 | 42479 | @: $(MAKE); $(unstage) |
22121df0 | 42480 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \ |
6d389afc MS |
42481 | r=`${PWD_COMMAND}`; export r; \ |
42482 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 42483 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42484 | echo "Doing html in $(TARGET_SUBDIR)/winsup"; \ |
6d389afc MS |
42485 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42486 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42487 | done; \ | |
a90ef4bf | 42488 | (cd $(TARGET_SUBDIR)/winsup && \ |
6d389afc MS |
42489 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42490 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42491 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42492 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
42493 | html) \ |
42494 | || exit 1 | |
42495 | ||
a90ef4bf | 42496 | @endif target-winsup |
6d389afc | 42497 | |
a90ef4bf JM |
42498 | .PHONY: maybe-TAGS-target-winsup TAGS-target-winsup |
42499 | maybe-TAGS-target-winsup: | |
42500 | @if target-winsup | |
42501 | maybe-TAGS-target-winsup: TAGS-target-winsup | |
4fa63067 | 42502 | |
a90ef4bf JM |
42503 | TAGS-target-winsup: \ |
42504 | configure-target-winsup | |
0aed8855 | 42505 | @: $(MAKE); $(unstage) |
22121df0 | 42506 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \ |
4fa63067 NN |
42507 | r=`${PWD_COMMAND}`; export r; \ |
42508 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42509 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42510 | echo "Doing TAGS in $(TARGET_SUBDIR)/winsup"; \ |
4fa63067 NN |
42511 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42512 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42513 | done; \ | |
a90ef4bf | 42514 | (cd $(TARGET_SUBDIR)/winsup && \ |
4fa63067 NN |
42515 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42516 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42517 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42518 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 42519 | TAGS) \ |
4fa63067 NN |
42520 | || exit 1 |
42521 | ||
a90ef4bf | 42522 | @endif target-winsup |
4fa63067 | 42523 | |
a90ef4bf JM |
42524 | .PHONY: maybe-install-info-target-winsup install-info-target-winsup |
42525 | maybe-install-info-target-winsup: | |
42526 | @if target-winsup | |
42527 | maybe-install-info-target-winsup: install-info-target-winsup | |
4fa63067 | 42528 | |
a90ef4bf JM |
42529 | install-info-target-winsup: \ |
42530 | configure-target-winsup \ | |
42531 | info-target-winsup | |
0aed8855 | 42532 | @: $(MAKE); $(unstage) |
22121df0 | 42533 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \ |
4fa63067 NN |
42534 | r=`${PWD_COMMAND}`; export r; \ |
42535 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42536 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42537 | echo "Doing install-info in $(TARGET_SUBDIR)/winsup"; \ |
4fa63067 NN |
42538 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42539 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42540 | done; \ | |
a90ef4bf | 42541 | (cd $(TARGET_SUBDIR)/winsup && \ |
4fa63067 NN |
42542 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42543 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42544 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42545 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 42546 | install-info) \ |
4fa63067 NN |
42547 | || exit 1 |
42548 | ||
a90ef4bf | 42549 | @endif target-winsup |
4fa63067 | 42550 | |
a90ef4bf JM |
42551 | .PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup |
42552 | maybe-install-pdf-target-winsup: | |
42553 | @if target-winsup | |
42554 | maybe-install-pdf-target-winsup: install-pdf-target-winsup | |
a3ca38d2 | 42555 | |
a90ef4bf JM |
42556 | install-pdf-target-winsup: \ |
42557 | configure-target-winsup \ | |
42558 | pdf-target-winsup | |
a3ca38d2 | 42559 | @: $(MAKE); $(unstage) |
22121df0 | 42560 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \ |
a3ca38d2 DD |
42561 | r=`${PWD_COMMAND}`; export r; \ |
42562 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
42563 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 42564 | echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup"; \ |
a3ca38d2 DD |
42565 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42566 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42567 | done; \ | |
a90ef4bf | 42568 | (cd $(TARGET_SUBDIR)/winsup && \ |
a3ca38d2 DD |
42569 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42570 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42571 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42572 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
42573 | install-pdf) \ |
42574 | || exit 1 | |
42575 | ||
a90ef4bf | 42576 | @endif target-winsup |
a3ca38d2 | 42577 | |
a90ef4bf JM |
42578 | .PHONY: maybe-install-html-target-winsup install-html-target-winsup |
42579 | maybe-install-html-target-winsup: | |
42580 | @if target-winsup | |
42581 | maybe-install-html-target-winsup: install-html-target-winsup | |
108a6f8e | 42582 | |
a90ef4bf JM |
42583 | install-html-target-winsup: \ |
42584 | configure-target-winsup \ | |
42585 | html-target-winsup | |
108a6f8e | 42586 | @: $(MAKE); $(unstage) |
22121df0 | 42587 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \ |
108a6f8e CD |
42588 | r=`${PWD_COMMAND}`; export r; \ |
42589 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
42590 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 42591 | echo "Doing install-html in $(TARGET_SUBDIR)/winsup"; \ |
108a6f8e CD |
42592 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42593 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42594 | done; \ | |
a90ef4bf | 42595 | (cd $(TARGET_SUBDIR)/winsup && \ |
108a6f8e CD |
42596 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42597 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42598 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42599 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
42600 | install-html) \ |
42601 | || exit 1 | |
42602 | ||
a90ef4bf | 42603 | @endif target-winsup |
108a6f8e | 42604 | |
a90ef4bf JM |
42605 | .PHONY: maybe-installcheck-target-winsup installcheck-target-winsup |
42606 | maybe-installcheck-target-winsup: | |
42607 | @if target-winsup | |
42608 | maybe-installcheck-target-winsup: installcheck-target-winsup | |
4fa63067 | 42609 | |
a90ef4bf JM |
42610 | installcheck-target-winsup: \ |
42611 | configure-target-winsup | |
0aed8855 | 42612 | @: $(MAKE); $(unstage) |
22121df0 | 42613 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \ |
4fa63067 NN |
42614 | r=`${PWD_COMMAND}`; export r; \ |
42615 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42616 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42617 | echo "Doing installcheck in $(TARGET_SUBDIR)/winsup"; \ |
4fa63067 NN |
42618 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42619 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42620 | done; \ | |
a90ef4bf | 42621 | (cd $(TARGET_SUBDIR)/winsup && \ |
4fa63067 NN |
42622 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42623 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42624 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42625 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 42626 | installcheck) \ |
4fa63067 NN |
42627 | || exit 1 |
42628 | ||
a90ef4bf | 42629 | @endif target-winsup |
4fa63067 | 42630 | |
a90ef4bf JM |
42631 | .PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup |
42632 | maybe-mostlyclean-target-winsup: | |
42633 | @if target-winsup | |
42634 | maybe-mostlyclean-target-winsup: mostlyclean-target-winsup | |
4fa63067 | 42635 | |
a90ef4bf | 42636 | mostlyclean-target-winsup: |
0aed8855 | 42637 | @: $(MAKE); $(unstage) |
22121df0 | 42638 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \ |
4fa63067 NN |
42639 | r=`${PWD_COMMAND}`; export r; \ |
42640 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42641 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42642 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup"; \ |
4fa63067 NN |
42643 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42644 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42645 | done; \ | |
a90ef4bf | 42646 | (cd $(TARGET_SUBDIR)/winsup && \ |
4fa63067 NN |
42647 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42648 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42649 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42650 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 42651 | mostlyclean) \ |
4fa63067 NN |
42652 | || exit 1 |
42653 | ||
a90ef4bf | 42654 | @endif target-winsup |
4fa63067 | 42655 | |
a90ef4bf JM |
42656 | .PHONY: maybe-clean-target-winsup clean-target-winsup |
42657 | maybe-clean-target-winsup: | |
42658 | @if target-winsup | |
42659 | maybe-clean-target-winsup: clean-target-winsup | |
4fa63067 | 42660 | |
a90ef4bf | 42661 | clean-target-winsup: |
0aed8855 | 42662 | @: $(MAKE); $(unstage) |
22121df0 | 42663 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \ |
4fa63067 NN |
42664 | r=`${PWD_COMMAND}`; export r; \ |
42665 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42666 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42667 | echo "Doing clean in $(TARGET_SUBDIR)/winsup"; \ |
4fa63067 NN |
42668 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42669 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42670 | done; \ | |
a90ef4bf | 42671 | (cd $(TARGET_SUBDIR)/winsup && \ |
4fa63067 NN |
42672 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42673 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42674 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42675 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 42676 | clean) \ |
4fa63067 NN |
42677 | || exit 1 |
42678 | ||
a90ef4bf | 42679 | @endif target-winsup |
4fa63067 | 42680 | |
a90ef4bf JM |
42681 | .PHONY: maybe-distclean-target-winsup distclean-target-winsup |
42682 | maybe-distclean-target-winsup: | |
42683 | @if target-winsup | |
42684 | maybe-distclean-target-winsup: distclean-target-winsup | |
4fa63067 | 42685 | |
a90ef4bf | 42686 | distclean-target-winsup: |
0aed8855 | 42687 | @: $(MAKE); $(unstage) |
22121df0 | 42688 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \ |
4fa63067 NN |
42689 | r=`${PWD_COMMAND}`; export r; \ |
42690 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42691 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42692 | echo "Doing distclean in $(TARGET_SUBDIR)/winsup"; \ |
4fa63067 NN |
42693 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42694 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42695 | done; \ | |
a90ef4bf | 42696 | (cd $(TARGET_SUBDIR)/winsup && \ |
4fa63067 NN |
42697 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42698 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42699 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42700 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 42701 | distclean) \ |
4fa63067 NN |
42702 | || exit 1 |
42703 | ||
a90ef4bf | 42704 | @endif target-winsup |
4fa63067 | 42705 | |
a90ef4bf JM |
42706 | .PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup |
42707 | maybe-maintainer-clean-target-winsup: | |
42708 | @if target-winsup | |
42709 | maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup | |
4fa63067 | 42710 | |
a90ef4bf | 42711 | maintainer-clean-target-winsup: |
0aed8855 | 42712 | @: $(MAKE); $(unstage) |
22121df0 | 42713 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \ |
4fa63067 NN |
42714 | r=`${PWD_COMMAND}`; export r; \ |
42715 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42716 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42717 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup"; \ |
4fa63067 NN |
42718 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42719 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42720 | done; \ | |
a90ef4bf | 42721 | (cd $(TARGET_SUBDIR)/winsup && \ |
4fa63067 NN |
42722 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42723 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42724 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42725 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 42726 | maintainer-clean) \ |
4fa63067 | 42727 | || exit 1 |
16ae0395 | 42728 | |
a90ef4bf | 42729 | @endif target-winsup |
e393202e NN |
42730 | |
42731 | ||
15723a45 | 42732 | |
e90269c8 | 42733 | |
a7254363 | 42734 | |
a90ef4bf JM |
42735 | .PHONY: configure-target-libgloss maybe-configure-target-libgloss |
42736 | maybe-configure-target-libgloss: | |
4f0ef2d8 | 42737 | @if gcc-bootstrap |
a90ef4bf | 42738 | configure-target-libgloss: stage_current |
4f0ef2d8 | 42739 | @endif gcc-bootstrap |
a90ef4bf JM |
42740 | @if target-libgloss |
42741 | maybe-configure-target-libgloss: configure-target-libgloss | |
42742 | configure-target-libgloss: | |
0aed8855 PB |
42743 | @: $(MAKE); $(unstage) |
42744 | @r=`${PWD_COMMAND}`; export r; \ | |
42745 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
a90ef4bf | 42746 | echo "Checking multilib configuration for libgloss..."; \ |
22121df0 L |
42747 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \ |
42748 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null; \ | |
a90ef4bf JM |
42749 | if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \ |
42750 | if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \ | |
42751 | rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \ | |
0aed8855 | 42752 | else \ |
a90ef4bf JM |
42753 | rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \ |
42754 | mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \ | |
0aed8855 PB |
42755 | fi; \ |
42756 | else \ | |
a90ef4bf | 42757 | mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \ |
c52c6897 | 42758 | fi; \ |
a90ef4bf | 42759 | test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \ |
22121df0 | 42760 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \ |
1f53ca9a | 42761 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf JM |
42762 | echo Configuring in $(TARGET_SUBDIR)/libgloss; \ |
42763 | cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \ | |
bba45b8b | 42764 | case $(srcdir) in \ |
b00612cc | 42765 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
a90ef4bf | 42766 | *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \ |
b00612cc | 42767 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
bba45b8b | 42768 | esac; \ |
1b6c0831 | 42769 | module_srcdir=libgloss; \ |
bba45b8b | 42770 | rm -f no-such-file || : ; \ |
1b6c0831 L |
42771 | CONFIG_SITE=no-such-file $(SHELL) \ |
42772 | $$s/$$module_srcdir/configure \ | |
42773 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 42774 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 42775 | --target=${target_alias} \ |
bba45b8b | 42776 | || exit 1 |
a90ef4bf | 42777 | @endif target-libgloss |
e393202e | 42778 | |
a7254363 PB |
42779 | |
42780 | ||
d545f33b PB |
42781 | |
42782 | ||
a90ef4bf JM |
42783 | .PHONY: all-target-libgloss maybe-all-target-libgloss |
42784 | maybe-all-target-libgloss: | |
4f0ef2d8 | 42785 | @if gcc-bootstrap |
a90ef4bf | 42786 | all-target-libgloss: stage_current |
4f0ef2d8 | 42787 | @endif gcc-bootstrap |
a90ef4bf JM |
42788 | @if target-libgloss |
42789 | TARGET-target-libgloss=all | |
42790 | maybe-all-target-libgloss: all-target-libgloss | |
42791 | all-target-libgloss: configure-target-libgloss | |
0aed8855 | 42792 | @: $(MAKE); $(unstage) |
b40e3958 L |
42793 | @r=`${PWD_COMMAND}`; export r; \ |
42794 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 42795 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 42796 | (cd $(TARGET_SUBDIR)/libgloss && \ |
b3676d82 | 42797 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
a90ef4bf JM |
42798 | $(TARGET-target-libgloss)) |
42799 | @endif target-libgloss | |
e393202e | 42800 | |
a7254363 PB |
42801 | |
42802 | ||
d545f33b PB |
42803 | |
42804 | ||
a90ef4bf JM |
42805 | .PHONY: check-target-libgloss maybe-check-target-libgloss |
42806 | maybe-check-target-libgloss: | |
42807 | @if target-libgloss | |
42808 | maybe-check-target-libgloss: check-target-libgloss | |
16ae0395 | 42809 | |
a90ef4bf JM |
42810 | # Dummy target for uncheckable module. |
42811 | check-target-libgloss: | |
930314a4 | 42812 | |
a90ef4bf | 42813 | @endif target-libgloss |
e393202e | 42814 | |
a90ef4bf JM |
42815 | .PHONY: install-target-libgloss maybe-install-target-libgloss |
42816 | maybe-install-target-libgloss: | |
42817 | @if target-libgloss | |
42818 | maybe-install-target-libgloss: install-target-libgloss | |
4fa63067 | 42819 | |
a90ef4bf | 42820 | install-target-libgloss: installdirs |
0aed8855 | 42821 | @: $(MAKE); $(unstage) |
4fa63067 NN |
42822 | @r=`${PWD_COMMAND}`; export r; \ |
42823 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42824 | $(NORMAL_TARGET_EXPORTS) \ |
a90ef4bf | 42825 | (cd $(TARGET_SUBDIR)/libgloss && \ |
7ffa0b57 | 42826 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4fa63067 | 42827 | |
a90ef4bf | 42828 | @endif target-libgloss |
4fa63067 | 42829 | |
a90ef4bf JM |
42830 | .PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss |
42831 | maybe-install-strip-target-libgloss: | |
42832 | @if target-libgloss | |
42833 | maybe-install-strip-target-libgloss: install-strip-target-libgloss | |
9b980aa1 | 42834 | |
a90ef4bf | 42835 | install-strip-target-libgloss: installdirs |
9b980aa1 RW |
42836 | @: $(MAKE); $(unstage) |
42837 | @r=`${PWD_COMMAND}`; export r; \ | |
42838 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
42839 | $(NORMAL_TARGET_EXPORTS) \ | |
a90ef4bf | 42840 | (cd $(TARGET_SUBDIR)/libgloss && \ |
9b980aa1 RW |
42841 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) |
42842 | ||
a90ef4bf | 42843 | @endif target-libgloss |
9b980aa1 | 42844 | |
56a8fe78 | 42845 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 | 42846 | |
a90ef4bf JM |
42847 | .PHONY: maybe-info-target-libgloss info-target-libgloss |
42848 | maybe-info-target-libgloss: | |
42849 | @if target-libgloss | |
42850 | maybe-info-target-libgloss: info-target-libgloss | |
4fa63067 | 42851 | |
a90ef4bf JM |
42852 | info-target-libgloss: \ |
42853 | configure-target-libgloss | |
0aed8855 | 42854 | @: $(MAKE); $(unstage) |
22121df0 | 42855 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \ |
4fa63067 NN |
42856 | r=`${PWD_COMMAND}`; export r; \ |
42857 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42858 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42859 | echo "Doing info in $(TARGET_SUBDIR)/libgloss"; \ |
4fa63067 NN |
42860 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42861 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42862 | done; \ | |
a90ef4bf | 42863 | (cd $(TARGET_SUBDIR)/libgloss && \ |
4fa63067 NN |
42864 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42865 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42866 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42867 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 42868 | info) \ |
4fa63067 NN |
42869 | || exit 1 |
42870 | ||
a90ef4bf | 42871 | @endif target-libgloss |
4fa63067 | 42872 | |
a90ef4bf JM |
42873 | .PHONY: maybe-dvi-target-libgloss dvi-target-libgloss |
42874 | maybe-dvi-target-libgloss: | |
42875 | @if target-libgloss | |
42876 | maybe-dvi-target-libgloss: dvi-target-libgloss | |
4fa63067 | 42877 | |
a90ef4bf JM |
42878 | dvi-target-libgloss: \ |
42879 | configure-target-libgloss | |
0aed8855 | 42880 | @: $(MAKE); $(unstage) |
22121df0 | 42881 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \ |
4fa63067 NN |
42882 | r=`${PWD_COMMAND}`; export r; \ |
42883 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42884 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42885 | echo "Doing dvi in $(TARGET_SUBDIR)/libgloss"; \ |
4fa63067 NN |
42886 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42887 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42888 | done; \ | |
a90ef4bf | 42889 | (cd $(TARGET_SUBDIR)/libgloss && \ |
4fa63067 NN |
42890 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42891 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42892 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42893 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 42894 | dvi) \ |
4fa63067 NN |
42895 | || exit 1 |
42896 | ||
a90ef4bf | 42897 | @endif target-libgloss |
4fa63067 | 42898 | |
a90ef4bf JM |
42899 | .PHONY: maybe-pdf-target-libgloss pdf-target-libgloss |
42900 | maybe-pdf-target-libgloss: | |
42901 | @if target-libgloss | |
42902 | maybe-pdf-target-libgloss: pdf-target-libgloss | |
56a8fe78 | 42903 | |
a90ef4bf JM |
42904 | pdf-target-libgloss: \ |
42905 | configure-target-libgloss | |
56a8fe78 | 42906 | @: $(MAKE); $(unstage) |
22121df0 | 42907 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \ |
56a8fe78 DD |
42908 | r=`${PWD_COMMAND}`; export r; \ |
42909 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
42910 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 42911 | echo "Doing pdf in $(TARGET_SUBDIR)/libgloss"; \ |
56a8fe78 DD |
42912 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42913 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42914 | done; \ | |
a90ef4bf | 42915 | (cd $(TARGET_SUBDIR)/libgloss && \ |
56a8fe78 DD |
42916 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42917 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42918 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42919 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
42920 | pdf) \ |
42921 | || exit 1 | |
42922 | ||
a90ef4bf | 42923 | @endif target-libgloss |
56a8fe78 | 42924 | |
a90ef4bf JM |
42925 | .PHONY: maybe-html-target-libgloss html-target-libgloss |
42926 | maybe-html-target-libgloss: | |
42927 | @if target-libgloss | |
42928 | maybe-html-target-libgloss: html-target-libgloss | |
6d389afc | 42929 | |
a90ef4bf JM |
42930 | html-target-libgloss: \ |
42931 | configure-target-libgloss | |
0aed8855 | 42932 | @: $(MAKE); $(unstage) |
22121df0 | 42933 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \ |
6d389afc MS |
42934 | r=`${PWD_COMMAND}`; export r; \ |
42935 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 42936 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42937 | echo "Doing html in $(TARGET_SUBDIR)/libgloss"; \ |
6d389afc MS |
42938 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42939 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42940 | done; \ | |
a90ef4bf | 42941 | (cd $(TARGET_SUBDIR)/libgloss && \ |
6d389afc MS |
42942 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42943 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42944 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42945 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
42946 | html) \ |
42947 | || exit 1 | |
42948 | ||
a90ef4bf | 42949 | @endif target-libgloss |
6d389afc | 42950 | |
a90ef4bf JM |
42951 | .PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss |
42952 | maybe-TAGS-target-libgloss: | |
42953 | @if target-libgloss | |
42954 | maybe-TAGS-target-libgloss: TAGS-target-libgloss | |
4fa63067 | 42955 | |
a90ef4bf JM |
42956 | TAGS-target-libgloss: \ |
42957 | configure-target-libgloss | |
0aed8855 | 42958 | @: $(MAKE); $(unstage) |
22121df0 | 42959 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \ |
4fa63067 NN |
42960 | r=`${PWD_COMMAND}`; export r; \ |
42961 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42962 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42963 | echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss"; \ |
4fa63067 NN |
42964 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42965 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42966 | done; \ | |
a90ef4bf | 42967 | (cd $(TARGET_SUBDIR)/libgloss && \ |
4fa63067 NN |
42968 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42969 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42970 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42971 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 42972 | TAGS) \ |
4fa63067 NN |
42973 | || exit 1 |
42974 | ||
a90ef4bf | 42975 | @endif target-libgloss |
4fa63067 | 42976 | |
a90ef4bf JM |
42977 | .PHONY: maybe-install-info-target-libgloss install-info-target-libgloss |
42978 | maybe-install-info-target-libgloss: | |
42979 | @if target-libgloss | |
42980 | maybe-install-info-target-libgloss: install-info-target-libgloss | |
4fa63067 | 42981 | |
a90ef4bf JM |
42982 | install-info-target-libgloss: \ |
42983 | configure-target-libgloss \ | |
42984 | info-target-libgloss | |
0aed8855 | 42985 | @: $(MAKE); $(unstage) |
22121df0 | 42986 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \ |
4fa63067 NN |
42987 | r=`${PWD_COMMAND}`; export r; \ |
42988 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 42989 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 42990 | echo "Doing install-info in $(TARGET_SUBDIR)/libgloss"; \ |
4fa63067 NN |
42991 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
42992 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
42993 | done; \ | |
a90ef4bf | 42994 | (cd $(TARGET_SUBDIR)/libgloss && \ |
4fa63067 NN |
42995 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
42996 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
42997 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 42998 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 42999 | install-info) \ |
4fa63067 NN |
43000 | || exit 1 |
43001 | ||
a90ef4bf | 43002 | @endif target-libgloss |
4fa63067 | 43003 | |
a90ef4bf JM |
43004 | .PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss |
43005 | maybe-install-pdf-target-libgloss: | |
43006 | @if target-libgloss | |
43007 | maybe-install-pdf-target-libgloss: install-pdf-target-libgloss | |
a3ca38d2 | 43008 | |
a90ef4bf JM |
43009 | install-pdf-target-libgloss: \ |
43010 | configure-target-libgloss \ | |
43011 | pdf-target-libgloss | |
a3ca38d2 | 43012 | @: $(MAKE); $(unstage) |
22121df0 | 43013 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \ |
a3ca38d2 DD |
43014 | r=`${PWD_COMMAND}`; export r; \ |
43015 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
43016 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 43017 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss"; \ |
a3ca38d2 DD |
43018 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43019 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43020 | done; \ | |
a90ef4bf | 43021 | (cd $(TARGET_SUBDIR)/libgloss && \ |
a3ca38d2 DD |
43022 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
43023 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43024 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43025 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
43026 | install-pdf) \ |
43027 | || exit 1 | |
43028 | ||
a90ef4bf | 43029 | @endif target-libgloss |
a3ca38d2 | 43030 | |
a90ef4bf JM |
43031 | .PHONY: maybe-install-html-target-libgloss install-html-target-libgloss |
43032 | maybe-install-html-target-libgloss: | |
43033 | @if target-libgloss | |
43034 | maybe-install-html-target-libgloss: install-html-target-libgloss | |
108a6f8e | 43035 | |
a90ef4bf JM |
43036 | install-html-target-libgloss: \ |
43037 | configure-target-libgloss \ | |
43038 | html-target-libgloss | |
108a6f8e | 43039 | @: $(MAKE); $(unstage) |
22121df0 | 43040 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \ |
108a6f8e CD |
43041 | r=`${PWD_COMMAND}`; export r; \ |
43042 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
43043 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 43044 | echo "Doing install-html in $(TARGET_SUBDIR)/libgloss"; \ |
108a6f8e CD |
43045 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43046 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43047 | done; \ | |
a90ef4bf | 43048 | (cd $(TARGET_SUBDIR)/libgloss && \ |
108a6f8e CD |
43049 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
43050 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43051 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43052 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
43053 | install-html) \ |
43054 | || exit 1 | |
43055 | ||
a90ef4bf | 43056 | @endif target-libgloss |
108a6f8e | 43057 | |
a90ef4bf JM |
43058 | .PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss |
43059 | maybe-installcheck-target-libgloss: | |
43060 | @if target-libgloss | |
43061 | maybe-installcheck-target-libgloss: installcheck-target-libgloss | |
4fa63067 | 43062 | |
a90ef4bf JM |
43063 | installcheck-target-libgloss: \ |
43064 | configure-target-libgloss | |
0aed8855 | 43065 | @: $(MAKE); $(unstage) |
22121df0 | 43066 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \ |
4fa63067 NN |
43067 | r=`${PWD_COMMAND}`; export r; \ |
43068 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43069 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43070 | echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss"; \ |
4fa63067 NN |
43071 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43072 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43073 | done; \ | |
a90ef4bf | 43074 | (cd $(TARGET_SUBDIR)/libgloss && \ |
4fa63067 NN |
43075 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
43076 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43077 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43078 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43079 | installcheck) \ |
4fa63067 NN |
43080 | || exit 1 |
43081 | ||
a90ef4bf | 43082 | @endif target-libgloss |
4fa63067 | 43083 | |
a90ef4bf JM |
43084 | .PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss |
43085 | maybe-mostlyclean-target-libgloss: | |
43086 | @if target-libgloss | |
43087 | maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss | |
4fa63067 | 43088 | |
a90ef4bf | 43089 | mostlyclean-target-libgloss: |
0aed8855 | 43090 | @: $(MAKE); $(unstage) |
22121df0 | 43091 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \ |
4fa63067 NN |
43092 | r=`${PWD_COMMAND}`; export r; \ |
43093 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43094 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43095 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss"; \ |
4fa63067 NN |
43096 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43097 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43098 | done; \ | |
a90ef4bf | 43099 | (cd $(TARGET_SUBDIR)/libgloss && \ |
4fa63067 NN |
43100 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
43101 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43102 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43103 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43104 | mostlyclean) \ |
4fa63067 NN |
43105 | || exit 1 |
43106 | ||
a90ef4bf | 43107 | @endif target-libgloss |
4fa63067 | 43108 | |
a90ef4bf JM |
43109 | .PHONY: maybe-clean-target-libgloss clean-target-libgloss |
43110 | maybe-clean-target-libgloss: | |
43111 | @if target-libgloss | |
43112 | maybe-clean-target-libgloss: clean-target-libgloss | |
4fa63067 | 43113 | |
a90ef4bf | 43114 | clean-target-libgloss: |
0aed8855 | 43115 | @: $(MAKE); $(unstage) |
22121df0 | 43116 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \ |
4fa63067 NN |
43117 | r=`${PWD_COMMAND}`; export r; \ |
43118 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43119 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43120 | echo "Doing clean in $(TARGET_SUBDIR)/libgloss"; \ |
4fa63067 NN |
43121 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43122 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43123 | done; \ | |
a90ef4bf | 43124 | (cd $(TARGET_SUBDIR)/libgloss && \ |
4fa63067 NN |
43125 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
43126 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43127 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43128 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43129 | clean) \ |
4fa63067 NN |
43130 | || exit 1 |
43131 | ||
a90ef4bf | 43132 | @endif target-libgloss |
4fa63067 | 43133 | |
a90ef4bf JM |
43134 | .PHONY: maybe-distclean-target-libgloss distclean-target-libgloss |
43135 | maybe-distclean-target-libgloss: | |
43136 | @if target-libgloss | |
43137 | maybe-distclean-target-libgloss: distclean-target-libgloss | |
4fa63067 | 43138 | |
a90ef4bf | 43139 | distclean-target-libgloss: |
0aed8855 | 43140 | @: $(MAKE); $(unstage) |
22121df0 | 43141 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \ |
4fa63067 NN |
43142 | r=`${PWD_COMMAND}`; export r; \ |
43143 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43144 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43145 | echo "Doing distclean in $(TARGET_SUBDIR)/libgloss"; \ |
4fa63067 NN |
43146 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43147 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43148 | done; \ | |
a90ef4bf | 43149 | (cd $(TARGET_SUBDIR)/libgloss && \ |
4fa63067 NN |
43150 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
43151 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43152 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43153 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43154 | distclean) \ |
4fa63067 NN |
43155 | || exit 1 |
43156 | ||
a90ef4bf | 43157 | @endif target-libgloss |
4fa63067 | 43158 | |
a90ef4bf JM |
43159 | .PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss |
43160 | maybe-maintainer-clean-target-libgloss: | |
43161 | @if target-libgloss | |
43162 | maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss | |
4fa63067 | 43163 | |
a90ef4bf | 43164 | maintainer-clean-target-libgloss: |
0aed8855 | 43165 | @: $(MAKE); $(unstage) |
22121df0 | 43166 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \ |
4fa63067 NN |
43167 | r=`${PWD_COMMAND}`; export r; \ |
43168 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43169 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43170 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss"; \ |
4fa63067 NN |
43171 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43172 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43173 | done; \ | |
a90ef4bf | 43174 | (cd $(TARGET_SUBDIR)/libgloss && \ |
4fa63067 NN |
43175 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
43176 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43177 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43178 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43179 | maintainer-clean) \ |
4fa63067 | 43180 | || exit 1 |
16ae0395 | 43181 | |
a90ef4bf | 43182 | @endif target-libgloss |
e393202e NN |
43183 | |
43184 | ||
15723a45 | 43185 | |
a7254363 PB |
43186 | |
43187 | ||
a7254363 PB |
43188 | .PHONY: configure-target-libffi maybe-configure-target-libffi |
43189 | maybe-configure-target-libffi: | |
4f0ef2d8 CD |
43190 | @if gcc-bootstrap |
43191 | configure-target-libffi: stage_current | |
43192 | @endif gcc-bootstrap | |
a7254363 PB |
43193 | @if target-libffi |
43194 | maybe-configure-target-libffi: configure-target-libffi | |
c52c6897 | 43195 | configure-target-libffi: |
0aed8855 PB |
43196 | @: $(MAKE); $(unstage) |
43197 | @r=`${PWD_COMMAND}`; export r; \ | |
43198 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
43199 | echo "Checking multilib configuration for libffi..."; \ | |
22121df0 L |
43200 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \ |
43201 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null; \ | |
0aed8855 PB |
43202 | if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \ |
43203 | if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \ | |
43204 | rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \ | |
43205 | else \ | |
43206 | rm -f $(TARGET_SUBDIR)/libffi/Makefile; \ | |
43207 | mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \ | |
43208 | fi; \ | |
43209 | else \ | |
43210 | mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \ | |
c52c6897 PB |
43211 | fi; \ |
43212 | test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \ | |
22121df0 | 43213 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \ |
1f53ca9a | 43214 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
43215 | echo Configuring in $(TARGET_SUBDIR)/libffi; \ |
43216 | cd "$(TARGET_SUBDIR)/libffi" || exit 1; \ | |
bba45b8b | 43217 | case $(srcdir) in \ |
b00612cc PB |
43218 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
43219 | *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \ | |
43220 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 43221 | esac; \ |
1b6c0831 | 43222 | module_srcdir=libffi; \ |
bba45b8b | 43223 | rm -f no-such-file || : ; \ |
1b6c0831 L |
43224 | CONFIG_SITE=no-such-file $(SHELL) \ |
43225 | $$s/$$module_srcdir/configure \ | |
43226 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 43227 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 43228 | --target=${target_alias} \ |
bba45b8b | 43229 | || exit 1 |
6bd3dfaa | 43230 | @endif target-libffi |
e393202e | 43231 | |
a7254363 PB |
43232 | |
43233 | ||
d545f33b PB |
43234 | |
43235 | ||
4fa63067 NN |
43236 | .PHONY: all-target-libffi maybe-all-target-libffi |
43237 | maybe-all-target-libffi: | |
4f0ef2d8 CD |
43238 | @if gcc-bootstrap |
43239 | all-target-libffi: stage_current | |
43240 | @endif gcc-bootstrap | |
6bd3dfaa | 43241 | @if target-libffi |
72b2455a | 43242 | TARGET-target-libffi=all |
6bd3dfaa | 43243 | maybe-all-target-libffi: all-target-libffi |
4fa63067 | 43244 | all-target-libffi: configure-target-libffi |
0aed8855 | 43245 | @: $(MAKE); $(unstage) |
b40e3958 L |
43246 | @r=`${PWD_COMMAND}`; export r; \ |
43247 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 43248 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 43249 | (cd $(TARGET_SUBDIR)/libffi && \ |
b3676d82 | 43250 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
7f6ef0c0 | 43251 | $(TARGET-target-libffi)) |
6bd3dfaa | 43252 | @endif target-libffi |
e393202e | 43253 | |
a7254363 PB |
43254 | |
43255 | ||
d545f33b PB |
43256 | |
43257 | ||
4fa63067 NN |
43258 | .PHONY: check-target-libffi maybe-check-target-libffi |
43259 | maybe-check-target-libffi: | |
6bd3dfaa PB |
43260 | @if target-libffi |
43261 | maybe-check-target-libffi: check-target-libffi | |
16ae0395 | 43262 | |
4fa63067 | 43263 | check-target-libffi: |
0aed8855 | 43264 | @: $(MAKE); $(unstage) |
b40e3958 L |
43265 | @r=`${PWD_COMMAND}`; export r; \ |
43266 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43267 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 43268 | (cd $(TARGET_SUBDIR)/libffi && \ |
7ffa0b57 | 43269 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
930314a4 | 43270 | |
6bd3dfaa | 43271 | @endif target-libffi |
e393202e | 43272 | |
4fa63067 NN |
43273 | .PHONY: install-target-libffi maybe-install-target-libffi |
43274 | maybe-install-target-libffi: | |
6bd3dfaa PB |
43275 | @if target-libffi |
43276 | maybe-install-target-libffi: install-target-libffi | |
16ae0395 | 43277 | |
b836cb18 JBG |
43278 | # Dummy target for uninstallable. |
43279 | install-target-libffi: | |
e393202e | 43280 | |
6bd3dfaa | 43281 | @endif target-libffi |
e393202e | 43282 | |
9b980aa1 RW |
43283 | .PHONY: install-strip-target-libffi maybe-install-strip-target-libffi |
43284 | maybe-install-strip-target-libffi: | |
43285 | @if target-libffi | |
43286 | maybe-install-strip-target-libffi: install-strip-target-libffi | |
43287 | ||
b836cb18 JBG |
43288 | # Dummy target for uninstallable. |
43289 | install-strip-target-libffi: | |
9b980aa1 RW |
43290 | |
43291 | @endif target-libffi | |
43292 | ||
56a8fe78 | 43293 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 NN |
43294 | |
43295 | .PHONY: maybe-info-target-libffi info-target-libffi | |
43296 | maybe-info-target-libffi: | |
6bd3dfaa PB |
43297 | @if target-libffi |
43298 | maybe-info-target-libffi: info-target-libffi | |
4fa63067 NN |
43299 | |
43300 | info-target-libffi: \ | |
43301 | configure-target-libffi | |
0aed8855 | 43302 | @: $(MAKE); $(unstage) |
22121df0 | 43303 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \ |
4fa63067 NN |
43304 | r=`${PWD_COMMAND}`; export r; \ |
43305 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43306 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43307 | echo "Doing info in $(TARGET_SUBDIR)/libffi"; \ |
4fa63067 NN |
43308 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43309 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43310 | done; \ | |
43311 | (cd $(TARGET_SUBDIR)/libffi && \ | |
43312 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43313 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43314 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43315 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43316 | info) \ |
4fa63067 NN |
43317 | || exit 1 |
43318 | ||
6bd3dfaa | 43319 | @endif target-libffi |
4fa63067 NN |
43320 | |
43321 | .PHONY: maybe-dvi-target-libffi dvi-target-libffi | |
43322 | maybe-dvi-target-libffi: | |
6bd3dfaa PB |
43323 | @if target-libffi |
43324 | maybe-dvi-target-libffi: dvi-target-libffi | |
4fa63067 NN |
43325 | |
43326 | dvi-target-libffi: \ | |
43327 | configure-target-libffi | |
0aed8855 | 43328 | @: $(MAKE); $(unstage) |
22121df0 | 43329 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \ |
4fa63067 NN |
43330 | r=`${PWD_COMMAND}`; export r; \ |
43331 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43332 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43333 | echo "Doing dvi in $(TARGET_SUBDIR)/libffi"; \ |
4fa63067 NN |
43334 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43335 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43336 | done; \ | |
43337 | (cd $(TARGET_SUBDIR)/libffi && \ | |
43338 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43339 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43340 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43341 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43342 | dvi) \ |
4fa63067 NN |
43343 | || exit 1 |
43344 | ||
6bd3dfaa | 43345 | @endif target-libffi |
4fa63067 | 43346 | |
56a8fe78 DD |
43347 | .PHONY: maybe-pdf-target-libffi pdf-target-libffi |
43348 | maybe-pdf-target-libffi: | |
43349 | @if target-libffi | |
43350 | maybe-pdf-target-libffi: pdf-target-libffi | |
43351 | ||
43352 | pdf-target-libffi: \ | |
43353 | configure-target-libffi | |
43354 | @: $(MAKE); $(unstage) | |
22121df0 | 43355 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \ |
56a8fe78 DD |
43356 | r=`${PWD_COMMAND}`; export r; \ |
43357 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
43358 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 43359 | echo "Doing pdf in $(TARGET_SUBDIR)/libffi"; \ |
56a8fe78 DD |
43360 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43361 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43362 | done; \ | |
43363 | (cd $(TARGET_SUBDIR)/libffi && \ | |
43364 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43365 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43366 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43367 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
43368 | pdf) \ |
43369 | || exit 1 | |
43370 | ||
43371 | @endif target-libffi | |
43372 | ||
6d389afc MS |
43373 | .PHONY: maybe-html-target-libffi html-target-libffi |
43374 | maybe-html-target-libffi: | |
43375 | @if target-libffi | |
43376 | maybe-html-target-libffi: html-target-libffi | |
43377 | ||
43378 | html-target-libffi: \ | |
43379 | configure-target-libffi | |
0aed8855 | 43380 | @: $(MAKE); $(unstage) |
22121df0 | 43381 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \ |
6d389afc MS |
43382 | r=`${PWD_COMMAND}`; export r; \ |
43383 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 43384 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43385 | echo "Doing html in $(TARGET_SUBDIR)/libffi"; \ |
6d389afc MS |
43386 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43387 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43388 | done; \ | |
43389 | (cd $(TARGET_SUBDIR)/libffi && \ | |
43390 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43391 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43392 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43393 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
43394 | html) \ |
43395 | || exit 1 | |
43396 | ||
43397 | @endif target-libffi | |
43398 | ||
4fa63067 NN |
43399 | .PHONY: maybe-TAGS-target-libffi TAGS-target-libffi |
43400 | maybe-TAGS-target-libffi: | |
6bd3dfaa PB |
43401 | @if target-libffi |
43402 | maybe-TAGS-target-libffi: TAGS-target-libffi | |
4fa63067 NN |
43403 | |
43404 | TAGS-target-libffi: \ | |
43405 | configure-target-libffi | |
0aed8855 | 43406 | @: $(MAKE); $(unstage) |
22121df0 | 43407 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \ |
4fa63067 NN |
43408 | r=`${PWD_COMMAND}`; export r; \ |
43409 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43410 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43411 | echo "Doing TAGS in $(TARGET_SUBDIR)/libffi"; \ |
4fa63067 NN |
43412 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43413 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43414 | done; \ | |
43415 | (cd $(TARGET_SUBDIR)/libffi && \ | |
43416 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43417 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43418 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43419 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43420 | TAGS) \ |
4fa63067 NN |
43421 | || exit 1 |
43422 | ||
6bd3dfaa | 43423 | @endif target-libffi |
4fa63067 NN |
43424 | |
43425 | .PHONY: maybe-install-info-target-libffi install-info-target-libffi | |
43426 | maybe-install-info-target-libffi: | |
6bd3dfaa PB |
43427 | @if target-libffi |
43428 | maybe-install-info-target-libffi: install-info-target-libffi | |
4fa63067 NN |
43429 | |
43430 | install-info-target-libffi: \ | |
43431 | configure-target-libffi \ | |
43432 | info-target-libffi | |
0aed8855 | 43433 | @: $(MAKE); $(unstage) |
22121df0 | 43434 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \ |
4fa63067 NN |
43435 | r=`${PWD_COMMAND}`; export r; \ |
43436 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43437 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43438 | echo "Doing install-info in $(TARGET_SUBDIR)/libffi"; \ |
4fa63067 NN |
43439 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43440 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43441 | done; \ | |
43442 | (cd $(TARGET_SUBDIR)/libffi && \ | |
43443 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43444 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43445 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43446 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43447 | install-info) \ |
4fa63067 NN |
43448 | || exit 1 |
43449 | ||
6bd3dfaa | 43450 | @endif target-libffi |
4fa63067 | 43451 | |
a3ca38d2 DD |
43452 | .PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi |
43453 | maybe-install-pdf-target-libffi: | |
43454 | @if target-libffi | |
43455 | maybe-install-pdf-target-libffi: install-pdf-target-libffi | |
43456 | ||
43457 | install-pdf-target-libffi: \ | |
43458 | configure-target-libffi \ | |
43459 | pdf-target-libffi | |
43460 | @: $(MAKE); $(unstage) | |
22121df0 | 43461 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \ |
a3ca38d2 DD |
43462 | r=`${PWD_COMMAND}`; export r; \ |
43463 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
43464 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 43465 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi"; \ |
a3ca38d2 DD |
43466 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43467 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43468 | done; \ | |
43469 | (cd $(TARGET_SUBDIR)/libffi && \ | |
43470 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43471 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43472 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43473 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
43474 | install-pdf) \ |
43475 | || exit 1 | |
43476 | ||
43477 | @endif target-libffi | |
43478 | ||
108a6f8e CD |
43479 | .PHONY: maybe-install-html-target-libffi install-html-target-libffi |
43480 | maybe-install-html-target-libffi: | |
43481 | @if target-libffi | |
43482 | maybe-install-html-target-libffi: install-html-target-libffi | |
43483 | ||
43484 | install-html-target-libffi: \ | |
43485 | configure-target-libffi \ | |
43486 | html-target-libffi | |
43487 | @: $(MAKE); $(unstage) | |
22121df0 | 43488 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \ |
108a6f8e CD |
43489 | r=`${PWD_COMMAND}`; export r; \ |
43490 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
43491 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 43492 | echo "Doing install-html in $(TARGET_SUBDIR)/libffi"; \ |
108a6f8e CD |
43493 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43494 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43495 | done; \ | |
43496 | (cd $(TARGET_SUBDIR)/libffi && \ | |
43497 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43498 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43499 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43500 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
43501 | install-html) \ |
43502 | || exit 1 | |
43503 | ||
43504 | @endif target-libffi | |
43505 | ||
4fa63067 NN |
43506 | .PHONY: maybe-installcheck-target-libffi installcheck-target-libffi |
43507 | maybe-installcheck-target-libffi: | |
6bd3dfaa PB |
43508 | @if target-libffi |
43509 | maybe-installcheck-target-libffi: installcheck-target-libffi | |
4fa63067 NN |
43510 | |
43511 | installcheck-target-libffi: \ | |
43512 | configure-target-libffi | |
0aed8855 | 43513 | @: $(MAKE); $(unstage) |
22121df0 | 43514 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \ |
4fa63067 NN |
43515 | r=`${PWD_COMMAND}`; export r; \ |
43516 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43517 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43518 | echo "Doing installcheck in $(TARGET_SUBDIR)/libffi"; \ |
4fa63067 NN |
43519 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43520 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43521 | done; \ | |
43522 | (cd $(TARGET_SUBDIR)/libffi && \ | |
43523 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43524 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43525 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43526 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43527 | installcheck) \ |
4fa63067 NN |
43528 | || exit 1 |
43529 | ||
6bd3dfaa | 43530 | @endif target-libffi |
4fa63067 NN |
43531 | |
43532 | .PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi | |
43533 | maybe-mostlyclean-target-libffi: | |
6bd3dfaa PB |
43534 | @if target-libffi |
43535 | maybe-mostlyclean-target-libffi: mostlyclean-target-libffi | |
4fa63067 NN |
43536 | |
43537 | mostlyclean-target-libffi: | |
0aed8855 | 43538 | @: $(MAKE); $(unstage) |
22121df0 | 43539 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \ |
4fa63067 NN |
43540 | r=`${PWD_COMMAND}`; export r; \ |
43541 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43542 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43543 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi"; \ |
4fa63067 NN |
43544 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43545 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43546 | done; \ | |
43547 | (cd $(TARGET_SUBDIR)/libffi && \ | |
43548 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43549 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43550 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43551 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43552 | mostlyclean) \ |
4fa63067 NN |
43553 | || exit 1 |
43554 | ||
6bd3dfaa | 43555 | @endif target-libffi |
4fa63067 NN |
43556 | |
43557 | .PHONY: maybe-clean-target-libffi clean-target-libffi | |
43558 | maybe-clean-target-libffi: | |
6bd3dfaa PB |
43559 | @if target-libffi |
43560 | maybe-clean-target-libffi: clean-target-libffi | |
4fa63067 NN |
43561 | |
43562 | clean-target-libffi: | |
0aed8855 | 43563 | @: $(MAKE); $(unstage) |
22121df0 | 43564 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \ |
4fa63067 NN |
43565 | r=`${PWD_COMMAND}`; export r; \ |
43566 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43567 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43568 | echo "Doing clean in $(TARGET_SUBDIR)/libffi"; \ |
4fa63067 NN |
43569 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43570 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43571 | done; \ | |
43572 | (cd $(TARGET_SUBDIR)/libffi && \ | |
43573 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43574 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43575 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43576 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43577 | clean) \ |
4fa63067 NN |
43578 | || exit 1 |
43579 | ||
6bd3dfaa | 43580 | @endif target-libffi |
4fa63067 NN |
43581 | |
43582 | .PHONY: maybe-distclean-target-libffi distclean-target-libffi | |
43583 | maybe-distclean-target-libffi: | |
6bd3dfaa PB |
43584 | @if target-libffi |
43585 | maybe-distclean-target-libffi: distclean-target-libffi | |
4fa63067 NN |
43586 | |
43587 | distclean-target-libffi: | |
0aed8855 | 43588 | @: $(MAKE); $(unstage) |
22121df0 | 43589 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \ |
4fa63067 NN |
43590 | r=`${PWD_COMMAND}`; export r; \ |
43591 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43592 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43593 | echo "Doing distclean in $(TARGET_SUBDIR)/libffi"; \ |
4fa63067 NN |
43594 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43595 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43596 | done; \ | |
43597 | (cd $(TARGET_SUBDIR)/libffi && \ | |
43598 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43599 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43600 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43601 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43602 | distclean) \ |
4fa63067 NN |
43603 | || exit 1 |
43604 | ||
6bd3dfaa | 43605 | @endif target-libffi |
4fa63067 NN |
43606 | |
43607 | .PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi | |
43608 | maybe-maintainer-clean-target-libffi: | |
6bd3dfaa PB |
43609 | @if target-libffi |
43610 | maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi | |
4fa63067 NN |
43611 | |
43612 | maintainer-clean-target-libffi: | |
0aed8855 | 43613 | @: $(MAKE); $(unstage) |
22121df0 | 43614 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \ |
4fa63067 NN |
43615 | r=`${PWD_COMMAND}`; export r; \ |
43616 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43617 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43618 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi"; \ |
4fa63067 NN |
43619 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43620 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43621 | done; \ | |
43622 | (cd $(TARGET_SUBDIR)/libffi && \ | |
43623 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43624 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43625 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43626 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43627 | maintainer-clean) \ |
4fa63067 NN |
43628 | || exit 1 |
43629 | ||
6bd3dfaa | 43630 | @endif target-libffi |
4fa63067 NN |
43631 | |
43632 | ||
15723a45 | 43633 | |
a7254363 | 43634 | |
15723a45 | 43635 | |
a7254363 PB |
43636 | .PHONY: configure-target-zlib maybe-configure-target-zlib |
43637 | maybe-configure-target-zlib: | |
4f0ef2d8 CD |
43638 | @if gcc-bootstrap |
43639 | configure-target-zlib: stage_current | |
43640 | @endif gcc-bootstrap | |
a7254363 PB |
43641 | @if target-zlib |
43642 | maybe-configure-target-zlib: configure-target-zlib | |
c52c6897 | 43643 | configure-target-zlib: |
0aed8855 PB |
43644 | @: $(MAKE); $(unstage) |
43645 | @r=`${PWD_COMMAND}`; export r; \ | |
43646 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
43647 | echo "Checking multilib configuration for zlib..."; \ | |
22121df0 L |
43648 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \ |
43649 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null; \ | |
0aed8855 PB |
43650 | if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \ |
43651 | if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \ | |
43652 | rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \ | |
43653 | else \ | |
43654 | rm -f $(TARGET_SUBDIR)/zlib/Makefile; \ | |
43655 | mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \ | |
43656 | fi; \ | |
43657 | else \ | |
43658 | mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \ | |
c52c6897 PB |
43659 | fi; \ |
43660 | test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \ | |
22121df0 | 43661 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \ |
1f53ca9a | 43662 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
43663 | echo Configuring in $(TARGET_SUBDIR)/zlib; \ |
43664 | cd "$(TARGET_SUBDIR)/zlib" || exit 1; \ | |
bba45b8b | 43665 | case $(srcdir) in \ |
b00612cc PB |
43666 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
43667 | *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \ | |
43668 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 43669 | esac; \ |
1b6c0831 | 43670 | module_srcdir=zlib; \ |
bba45b8b | 43671 | rm -f no-such-file || : ; \ |
1b6c0831 L |
43672 | CONFIG_SITE=no-such-file $(SHELL) \ |
43673 | $$s/$$module_srcdir/configure \ | |
43674 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 43675 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 43676 | --target=${target_alias} \ |
bba45b8b | 43677 | || exit 1 |
6bd3dfaa | 43678 | @endif target-zlib |
e393202e | 43679 | |
a7254363 PB |
43680 | |
43681 | ||
d545f33b PB |
43682 | |
43683 | ||
4fa63067 NN |
43684 | .PHONY: all-target-zlib maybe-all-target-zlib |
43685 | maybe-all-target-zlib: | |
4f0ef2d8 CD |
43686 | @if gcc-bootstrap |
43687 | all-target-zlib: stage_current | |
43688 | @endif gcc-bootstrap | |
6bd3dfaa | 43689 | @if target-zlib |
72b2455a | 43690 | TARGET-target-zlib=all |
6bd3dfaa | 43691 | maybe-all-target-zlib: all-target-zlib |
4fa63067 | 43692 | all-target-zlib: configure-target-zlib |
0aed8855 | 43693 | @: $(MAKE); $(unstage) |
b40e3958 L |
43694 | @r=`${PWD_COMMAND}`; export r; \ |
43695 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 43696 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 43697 | (cd $(TARGET_SUBDIR)/zlib && \ |
b3676d82 | 43698 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
7f6ef0c0 | 43699 | $(TARGET-target-zlib)) |
6bd3dfaa | 43700 | @endif target-zlib |
e393202e | 43701 | |
a7254363 PB |
43702 | |
43703 | ||
d545f33b PB |
43704 | |
43705 | ||
4fa63067 NN |
43706 | .PHONY: check-target-zlib maybe-check-target-zlib |
43707 | maybe-check-target-zlib: | |
6bd3dfaa PB |
43708 | @if target-zlib |
43709 | maybe-check-target-zlib: check-target-zlib | |
16ae0395 | 43710 | |
4fa63067 | 43711 | check-target-zlib: |
0aed8855 | 43712 | @: $(MAKE); $(unstage) |
b40e3958 L |
43713 | @r=`${PWD_COMMAND}`; export r; \ |
43714 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43715 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 43716 | (cd $(TARGET_SUBDIR)/zlib && \ |
7ffa0b57 | 43717 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
e393202e | 43718 | |
6bd3dfaa | 43719 | @endif target-zlib |
930314a4 | 43720 | |
4fa63067 NN |
43721 | .PHONY: install-target-zlib maybe-install-target-zlib |
43722 | maybe-install-target-zlib: | |
6bd3dfaa PB |
43723 | @if target-zlib |
43724 | maybe-install-target-zlib: install-target-zlib | |
16ae0395 | 43725 | |
4fa63067 | 43726 | install-target-zlib: installdirs |
0aed8855 | 43727 | @: $(MAKE); $(unstage) |
b40e3958 L |
43728 | @r=`${PWD_COMMAND}`; export r; \ |
43729 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43730 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 43731 | (cd $(TARGET_SUBDIR)/zlib && \ |
7ffa0b57 | 43732 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 43733 | |
6bd3dfaa | 43734 | @endif target-zlib |
e393202e | 43735 | |
9b980aa1 RW |
43736 | .PHONY: install-strip-target-zlib maybe-install-strip-target-zlib |
43737 | maybe-install-strip-target-zlib: | |
43738 | @if target-zlib | |
43739 | maybe-install-strip-target-zlib: install-strip-target-zlib | |
43740 | ||
43741 | install-strip-target-zlib: installdirs | |
43742 | @: $(MAKE); $(unstage) | |
43743 | @r=`${PWD_COMMAND}`; export r; \ | |
43744 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
43745 | $(NORMAL_TARGET_EXPORTS) \ | |
43746 | (cd $(TARGET_SUBDIR)/zlib && \ | |
43747 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) | |
43748 | ||
43749 | @endif target-zlib | |
43750 | ||
56a8fe78 | 43751 | # Other targets (info, dvi, pdf, etc.) |
15723a45 | 43752 | |
4fa63067 NN |
43753 | .PHONY: maybe-info-target-zlib info-target-zlib |
43754 | maybe-info-target-zlib: | |
6bd3dfaa PB |
43755 | @if target-zlib |
43756 | maybe-info-target-zlib: info-target-zlib | |
15723a45 | 43757 | |
4fa63067 NN |
43758 | info-target-zlib: \ |
43759 | configure-target-zlib | |
0aed8855 | 43760 | @: $(MAKE); $(unstage) |
22121df0 | 43761 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \ |
b40e3958 L |
43762 | r=`${PWD_COMMAND}`; export r; \ |
43763 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43764 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43765 | echo "Doing info in $(TARGET_SUBDIR)/zlib"; \ |
4fa63067 NN |
43766 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43767 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43768 | done; \ | |
43769 | (cd $(TARGET_SUBDIR)/zlib && \ | |
43770 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43771 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43772 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43773 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43774 | info) \ |
bba45b8b | 43775 | || exit 1 |
e393202e | 43776 | |
6bd3dfaa | 43777 | @endif target-zlib |
e393202e | 43778 | |
4fa63067 NN |
43779 | .PHONY: maybe-dvi-target-zlib dvi-target-zlib |
43780 | maybe-dvi-target-zlib: | |
6bd3dfaa PB |
43781 | @if target-zlib |
43782 | maybe-dvi-target-zlib: dvi-target-zlib | |
16ae0395 | 43783 | |
4fa63067 NN |
43784 | dvi-target-zlib: \ |
43785 | configure-target-zlib | |
0aed8855 | 43786 | @: $(MAKE); $(unstage) |
22121df0 | 43787 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \ |
4fa63067 | 43788 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 43789 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 43790 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43791 | echo "Doing dvi in $(TARGET_SUBDIR)/zlib"; \ |
4fa63067 NN |
43792 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43793 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43794 | done; \ | |
43795 | (cd $(TARGET_SUBDIR)/zlib && \ | |
43796 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43797 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43798 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43799 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43800 | dvi) \ |
4fa63067 | 43801 | || exit 1 |
e393202e | 43802 | |
6bd3dfaa | 43803 | @endif target-zlib |
930314a4 | 43804 | |
56a8fe78 DD |
43805 | .PHONY: maybe-pdf-target-zlib pdf-target-zlib |
43806 | maybe-pdf-target-zlib: | |
43807 | @if target-zlib | |
43808 | maybe-pdf-target-zlib: pdf-target-zlib | |
43809 | ||
43810 | pdf-target-zlib: \ | |
43811 | configure-target-zlib | |
43812 | @: $(MAKE); $(unstage) | |
22121df0 | 43813 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \ |
56a8fe78 DD |
43814 | r=`${PWD_COMMAND}`; export r; \ |
43815 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
43816 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 43817 | echo "Doing pdf in $(TARGET_SUBDIR)/zlib"; \ |
56a8fe78 DD |
43818 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43819 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43820 | done; \ | |
43821 | (cd $(TARGET_SUBDIR)/zlib && \ | |
43822 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43823 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43824 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43825 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
43826 | pdf) \ |
43827 | || exit 1 | |
43828 | ||
43829 | @endif target-zlib | |
43830 | ||
6d389afc MS |
43831 | .PHONY: maybe-html-target-zlib html-target-zlib |
43832 | maybe-html-target-zlib: | |
43833 | @if target-zlib | |
43834 | maybe-html-target-zlib: html-target-zlib | |
43835 | ||
43836 | html-target-zlib: \ | |
43837 | configure-target-zlib | |
0aed8855 | 43838 | @: $(MAKE); $(unstage) |
22121df0 | 43839 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \ |
6d389afc MS |
43840 | r=`${PWD_COMMAND}`; export r; \ |
43841 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 43842 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43843 | echo "Doing html in $(TARGET_SUBDIR)/zlib"; \ |
6d389afc MS |
43844 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43845 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43846 | done; \ | |
43847 | (cd $(TARGET_SUBDIR)/zlib && \ | |
43848 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43849 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43850 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43851 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
43852 | html) \ |
43853 | || exit 1 | |
43854 | ||
43855 | @endif target-zlib | |
43856 | ||
4fa63067 NN |
43857 | .PHONY: maybe-TAGS-target-zlib TAGS-target-zlib |
43858 | maybe-TAGS-target-zlib: | |
6bd3dfaa PB |
43859 | @if target-zlib |
43860 | maybe-TAGS-target-zlib: TAGS-target-zlib | |
16ae0395 | 43861 | |
4fa63067 NN |
43862 | TAGS-target-zlib: \ |
43863 | configure-target-zlib | |
0aed8855 | 43864 | @: $(MAKE); $(unstage) |
22121df0 | 43865 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \ |
4fa63067 | 43866 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 43867 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 43868 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43869 | echo "Doing TAGS in $(TARGET_SUBDIR)/zlib"; \ |
4fa63067 NN |
43870 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43871 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43872 | done; \ | |
43873 | (cd $(TARGET_SUBDIR)/zlib && \ | |
43874 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43875 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43876 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43877 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43878 | TAGS) \ |
4fa63067 | 43879 | || exit 1 |
e393202e | 43880 | |
6bd3dfaa | 43881 | @endif target-zlib |
15723a45 | 43882 | |
4fa63067 NN |
43883 | .PHONY: maybe-install-info-target-zlib install-info-target-zlib |
43884 | maybe-install-info-target-zlib: | |
6bd3dfaa PB |
43885 | @if target-zlib |
43886 | maybe-install-info-target-zlib: install-info-target-zlib | |
15723a45 | 43887 | |
4fa63067 NN |
43888 | install-info-target-zlib: \ |
43889 | configure-target-zlib \ | |
43890 | info-target-zlib | |
0aed8855 | 43891 | @: $(MAKE); $(unstage) |
22121df0 | 43892 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \ |
b40e3958 L |
43893 | r=`${PWD_COMMAND}`; export r; \ |
43894 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43895 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43896 | echo "Doing install-info in $(TARGET_SUBDIR)/zlib"; \ |
4fa63067 NN |
43897 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43898 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43899 | done; \ | |
43900 | (cd $(TARGET_SUBDIR)/zlib && \ | |
43901 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43902 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43903 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43904 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43905 | install-info) \ |
bba45b8b | 43906 | || exit 1 |
e393202e | 43907 | |
6bd3dfaa | 43908 | @endif target-zlib |
16ae0395 | 43909 | |
a3ca38d2 DD |
43910 | .PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib |
43911 | maybe-install-pdf-target-zlib: | |
43912 | @if target-zlib | |
43913 | maybe-install-pdf-target-zlib: install-pdf-target-zlib | |
43914 | ||
43915 | install-pdf-target-zlib: \ | |
43916 | configure-target-zlib \ | |
43917 | pdf-target-zlib | |
43918 | @: $(MAKE); $(unstage) | |
22121df0 | 43919 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \ |
a3ca38d2 DD |
43920 | r=`${PWD_COMMAND}`; export r; \ |
43921 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
43922 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 43923 | echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib"; \ |
a3ca38d2 DD |
43924 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43925 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43926 | done; \ | |
43927 | (cd $(TARGET_SUBDIR)/zlib && \ | |
43928 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43929 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43930 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43931 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
43932 | install-pdf) \ |
43933 | || exit 1 | |
43934 | ||
43935 | @endif target-zlib | |
43936 | ||
108a6f8e CD |
43937 | .PHONY: maybe-install-html-target-zlib install-html-target-zlib |
43938 | maybe-install-html-target-zlib: | |
43939 | @if target-zlib | |
43940 | maybe-install-html-target-zlib: install-html-target-zlib | |
43941 | ||
43942 | install-html-target-zlib: \ | |
43943 | configure-target-zlib \ | |
43944 | html-target-zlib | |
43945 | @: $(MAKE); $(unstage) | |
22121df0 | 43946 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \ |
108a6f8e CD |
43947 | r=`${PWD_COMMAND}`; export r; \ |
43948 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
43949 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 43950 | echo "Doing install-html in $(TARGET_SUBDIR)/zlib"; \ |
108a6f8e CD |
43951 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43952 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43953 | done; \ | |
43954 | (cd $(TARGET_SUBDIR)/zlib && \ | |
43955 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43956 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43957 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43958 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
43959 | install-html) \ |
43960 | || exit 1 | |
43961 | ||
43962 | @endif target-zlib | |
43963 | ||
4fa63067 NN |
43964 | .PHONY: maybe-installcheck-target-zlib installcheck-target-zlib |
43965 | maybe-installcheck-target-zlib: | |
6bd3dfaa PB |
43966 | @if target-zlib |
43967 | maybe-installcheck-target-zlib: installcheck-target-zlib | |
3866be5d | 43968 | |
4fa63067 NN |
43969 | installcheck-target-zlib: \ |
43970 | configure-target-zlib | |
0aed8855 | 43971 | @: $(MAKE); $(unstage) |
22121df0 | 43972 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \ |
4fa63067 NN |
43973 | r=`${PWD_COMMAND}`; export r; \ |
43974 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 43975 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 43976 | echo "Doing installcheck in $(TARGET_SUBDIR)/zlib"; \ |
4fa63067 NN |
43977 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
43978 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
43979 | done; \ | |
43980 | (cd $(TARGET_SUBDIR)/zlib && \ | |
43981 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
43982 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
43983 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 43984 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 43985 | installcheck) \ |
4fa63067 | 43986 | || exit 1 |
e393202e | 43987 | |
6bd3dfaa | 43988 | @endif target-zlib |
16ae0395 | 43989 | |
4fa63067 NN |
43990 | .PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib |
43991 | maybe-mostlyclean-target-zlib: | |
6bd3dfaa PB |
43992 | @if target-zlib |
43993 | maybe-mostlyclean-target-zlib: mostlyclean-target-zlib | |
930314a4 | 43994 | |
4fa63067 | 43995 | mostlyclean-target-zlib: |
0aed8855 | 43996 | @: $(MAKE); $(unstage) |
22121df0 | 43997 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \ |
4fa63067 NN |
43998 | r=`${PWD_COMMAND}`; export r; \ |
43999 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44000 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44001 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib"; \ |
4fa63067 NN |
44002 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44003 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44004 | done; \ | |
44005 | (cd $(TARGET_SUBDIR)/zlib && \ | |
44006 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44007 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44008 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44009 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44010 | mostlyclean) \ |
4fa63067 | 44011 | || exit 1 |
e393202e | 44012 | |
6bd3dfaa | 44013 | @endif target-zlib |
15723a45 | 44014 | |
4fa63067 NN |
44015 | .PHONY: maybe-clean-target-zlib clean-target-zlib |
44016 | maybe-clean-target-zlib: | |
6bd3dfaa PB |
44017 | @if target-zlib |
44018 | maybe-clean-target-zlib: clean-target-zlib | |
15723a45 | 44019 | |
4fa63067 | 44020 | clean-target-zlib: |
0aed8855 | 44021 | @: $(MAKE); $(unstage) |
22121df0 | 44022 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \ |
b40e3958 L |
44023 | r=`${PWD_COMMAND}`; export r; \ |
44024 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44025 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44026 | echo "Doing clean in $(TARGET_SUBDIR)/zlib"; \ |
4fa63067 NN |
44027 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44028 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44029 | done; \ | |
44030 | (cd $(TARGET_SUBDIR)/zlib && \ | |
44031 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44032 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44033 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44034 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44035 | clean) \ |
bba45b8b | 44036 | || exit 1 |
e393202e | 44037 | |
6bd3dfaa | 44038 | @endif target-zlib |
e393202e | 44039 | |
4fa63067 NN |
44040 | .PHONY: maybe-distclean-target-zlib distclean-target-zlib |
44041 | maybe-distclean-target-zlib: | |
6bd3dfaa PB |
44042 | @if target-zlib |
44043 | maybe-distclean-target-zlib: distclean-target-zlib | |
16ae0395 | 44044 | |
4fa63067 | 44045 | distclean-target-zlib: |
0aed8855 | 44046 | @: $(MAKE); $(unstage) |
22121df0 | 44047 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \ |
4fa63067 | 44048 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 44049 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 44050 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44051 | echo "Doing distclean in $(TARGET_SUBDIR)/zlib"; \ |
4fa63067 NN |
44052 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44053 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44054 | done; \ | |
44055 | (cd $(TARGET_SUBDIR)/zlib && \ | |
44056 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44057 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44058 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44059 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44060 | distclean) \ |
4fa63067 | 44061 | || exit 1 |
e393202e | 44062 | |
6bd3dfaa | 44063 | @endif target-zlib |
e393202e | 44064 | |
4fa63067 NN |
44065 | .PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib |
44066 | maybe-maintainer-clean-target-zlib: | |
6bd3dfaa PB |
44067 | @if target-zlib |
44068 | maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib | |
16ae0395 | 44069 | |
4fa63067 | 44070 | maintainer-clean-target-zlib: |
0aed8855 | 44071 | @: $(MAKE); $(unstage) |
22121df0 | 44072 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \ |
4fa63067 | 44073 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 44074 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 44075 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44076 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib"; \ |
4fa63067 NN |
44077 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44078 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44079 | done; \ | |
44080 | (cd $(TARGET_SUBDIR)/zlib && \ | |
44081 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44082 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44083 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44084 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44085 | maintainer-clean) \ |
4fa63067 | 44086 | || exit 1 |
e393202e | 44087 | |
6bd3dfaa | 44088 | @endif target-zlib |
930314a4 | 44089 | |
4fa63067 | 44090 | |
15723a45 | 44091 | |
a7254363 | 44092 | |
e90269c8 | 44093 | |
a7254363 PB |
44094 | .PHONY: configure-target-rda maybe-configure-target-rda |
44095 | maybe-configure-target-rda: | |
4f0ef2d8 CD |
44096 | @if gcc-bootstrap |
44097 | configure-target-rda: stage_current | |
44098 | @endif gcc-bootstrap | |
a7254363 PB |
44099 | @if target-rda |
44100 | maybe-configure-target-rda: configure-target-rda | |
c52c6897 | 44101 | configure-target-rda: |
0aed8855 PB |
44102 | @: $(MAKE); $(unstage) |
44103 | @r=`${PWD_COMMAND}`; export r; \ | |
44104 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
44105 | echo "Checking multilib configuration for rda..."; \ | |
22121df0 L |
44106 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \ |
44107 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null; \ | |
0aed8855 PB |
44108 | if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \ |
44109 | if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \ | |
44110 | rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \ | |
44111 | else \ | |
44112 | rm -f $(TARGET_SUBDIR)/rda/Makefile; \ | |
44113 | mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \ | |
44114 | fi; \ | |
44115 | else \ | |
44116 | mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \ | |
c52c6897 PB |
44117 | fi; \ |
44118 | test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \ | |
22121df0 | 44119 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \ |
1f53ca9a | 44120 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
44121 | echo Configuring in $(TARGET_SUBDIR)/rda; \ |
44122 | cd "$(TARGET_SUBDIR)/rda" || exit 1; \ | |
bba45b8b | 44123 | case $(srcdir) in \ |
b00612cc PB |
44124 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
44125 | *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \ | |
44126 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 44127 | esac; \ |
1b6c0831 | 44128 | module_srcdir=rda; \ |
bba45b8b | 44129 | rm -f no-such-file || : ; \ |
1b6c0831 L |
44130 | CONFIG_SITE=no-such-file $(SHELL) \ |
44131 | $$s/$$module_srcdir/configure \ | |
44132 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 44133 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 44134 | --target=${target_alias} \ |
bba45b8b | 44135 | || exit 1 |
6bd3dfaa | 44136 | @endif target-rda |
49b7683b | 44137 | |
a7254363 PB |
44138 | |
44139 | ||
d545f33b PB |
44140 | |
44141 | ||
4fa63067 NN |
44142 | .PHONY: all-target-rda maybe-all-target-rda |
44143 | maybe-all-target-rda: | |
4f0ef2d8 CD |
44144 | @if gcc-bootstrap |
44145 | all-target-rda: stage_current | |
44146 | @endif gcc-bootstrap | |
6bd3dfaa | 44147 | @if target-rda |
72b2455a | 44148 | TARGET-target-rda=all |
6bd3dfaa | 44149 | maybe-all-target-rda: all-target-rda |
4fa63067 | 44150 | all-target-rda: configure-target-rda |
0aed8855 | 44151 | @: $(MAKE); $(unstage) |
b40e3958 L |
44152 | @r=`${PWD_COMMAND}`; export r; \ |
44153 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 44154 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 44155 | (cd $(TARGET_SUBDIR)/rda && \ |
b3676d82 | 44156 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
7f6ef0c0 | 44157 | $(TARGET-target-rda)) |
6bd3dfaa | 44158 | @endif target-rda |
252b5132 | 44159 | |
a7254363 PB |
44160 | |
44161 | ||
d545f33b PB |
44162 | |
44163 | ||
4fa63067 NN |
44164 | .PHONY: check-target-rda maybe-check-target-rda |
44165 | maybe-check-target-rda: | |
6bd3dfaa PB |
44166 | @if target-rda |
44167 | maybe-check-target-rda: check-target-rda | |
16ae0395 | 44168 | |
4fa63067 | 44169 | check-target-rda: |
0aed8855 | 44170 | @: $(MAKE); $(unstage) |
b40e3958 L |
44171 | @r=`${PWD_COMMAND}`; export r; \ |
44172 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44173 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 44174 | (cd $(TARGET_SUBDIR)/rda && \ |
7ffa0b57 | 44175 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
252b5132 | 44176 | |
6bd3dfaa | 44177 | @endif target-rda |
930314a4 | 44178 | |
4fa63067 NN |
44179 | .PHONY: install-target-rda maybe-install-target-rda |
44180 | maybe-install-target-rda: | |
6bd3dfaa PB |
44181 | @if target-rda |
44182 | maybe-install-target-rda: install-target-rda | |
16ae0395 | 44183 | |
4fa63067 | 44184 | install-target-rda: installdirs |
0aed8855 | 44185 | @: $(MAKE); $(unstage) |
b40e3958 L |
44186 | @r=`${PWD_COMMAND}`; export r; \ |
44187 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44188 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 44189 | (cd $(TARGET_SUBDIR)/rda && \ |
7ffa0b57 | 44190 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 44191 | |
6bd3dfaa | 44192 | @endif target-rda |
e393202e | 44193 | |
9b980aa1 RW |
44194 | .PHONY: install-strip-target-rda maybe-install-strip-target-rda |
44195 | maybe-install-strip-target-rda: | |
44196 | @if target-rda | |
44197 | maybe-install-strip-target-rda: install-strip-target-rda | |
44198 | ||
44199 | install-strip-target-rda: installdirs | |
44200 | @: $(MAKE); $(unstage) | |
44201 | @r=`${PWD_COMMAND}`; export r; \ | |
44202 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
44203 | $(NORMAL_TARGET_EXPORTS) \ | |
44204 | (cd $(TARGET_SUBDIR)/rda && \ | |
44205 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) | |
44206 | ||
44207 | @endif target-rda | |
44208 | ||
56a8fe78 | 44209 | # Other targets (info, dvi, pdf, etc.) |
15723a45 | 44210 | |
4fa63067 NN |
44211 | .PHONY: maybe-info-target-rda info-target-rda |
44212 | maybe-info-target-rda: | |
6bd3dfaa PB |
44213 | @if target-rda |
44214 | maybe-info-target-rda: info-target-rda | |
15723a45 | 44215 | |
4fa63067 NN |
44216 | info-target-rda: \ |
44217 | configure-target-rda | |
0aed8855 | 44218 | @: $(MAKE); $(unstage) |
22121df0 | 44219 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \ |
b40e3958 L |
44220 | r=`${PWD_COMMAND}`; export r; \ |
44221 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44222 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44223 | echo "Doing info in $(TARGET_SUBDIR)/rda"; \ |
4fa63067 NN |
44224 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44225 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44226 | done; \ | |
44227 | (cd $(TARGET_SUBDIR)/rda && \ | |
44228 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44229 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44230 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44231 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44232 | info) \ |
bba45b8b | 44233 | || exit 1 |
252b5132 | 44234 | |
6bd3dfaa | 44235 | @endif target-rda |
4fa63067 NN |
44236 | |
44237 | .PHONY: maybe-dvi-target-rda dvi-target-rda | |
44238 | maybe-dvi-target-rda: | |
6bd3dfaa PB |
44239 | @if target-rda |
44240 | maybe-dvi-target-rda: dvi-target-rda | |
4fa63067 NN |
44241 | |
44242 | dvi-target-rda: \ | |
44243 | configure-target-rda | |
0aed8855 | 44244 | @: $(MAKE); $(unstage) |
22121df0 | 44245 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \ |
4fa63067 | 44246 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 44247 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 44248 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44249 | echo "Doing dvi in $(TARGET_SUBDIR)/rda"; \ |
4fa63067 NN |
44250 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44251 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44252 | done; \ | |
44253 | (cd $(TARGET_SUBDIR)/rda && \ | |
44254 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44255 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44256 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44257 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44258 | dvi) \ |
4fa63067 | 44259 | || exit 1 |
252b5132 | 44260 | |
6bd3dfaa | 44261 | @endif target-rda |
16ae0395 | 44262 | |
56a8fe78 DD |
44263 | .PHONY: maybe-pdf-target-rda pdf-target-rda |
44264 | maybe-pdf-target-rda: | |
44265 | @if target-rda | |
44266 | maybe-pdf-target-rda: pdf-target-rda | |
44267 | ||
44268 | pdf-target-rda: \ | |
44269 | configure-target-rda | |
44270 | @: $(MAKE); $(unstage) | |
22121df0 | 44271 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \ |
56a8fe78 DD |
44272 | r=`${PWD_COMMAND}`; export r; \ |
44273 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
44274 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 44275 | echo "Doing pdf in $(TARGET_SUBDIR)/rda"; \ |
56a8fe78 DD |
44276 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44277 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44278 | done; \ | |
44279 | (cd $(TARGET_SUBDIR)/rda && \ | |
44280 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44281 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44282 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44283 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
44284 | pdf) \ |
44285 | || exit 1 | |
44286 | ||
44287 | @endif target-rda | |
44288 | ||
6d389afc MS |
44289 | .PHONY: maybe-html-target-rda html-target-rda |
44290 | maybe-html-target-rda: | |
44291 | @if target-rda | |
44292 | maybe-html-target-rda: html-target-rda | |
44293 | ||
44294 | html-target-rda: \ | |
44295 | configure-target-rda | |
0aed8855 | 44296 | @: $(MAKE); $(unstage) |
22121df0 | 44297 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \ |
6d389afc MS |
44298 | r=`${PWD_COMMAND}`; export r; \ |
44299 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 44300 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44301 | echo "Doing html in $(TARGET_SUBDIR)/rda"; \ |
6d389afc MS |
44302 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44303 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44304 | done; \ | |
44305 | (cd $(TARGET_SUBDIR)/rda && \ | |
44306 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44307 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44308 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44309 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
44310 | html) \ |
44311 | || exit 1 | |
44312 | ||
44313 | @endif target-rda | |
44314 | ||
4fa63067 NN |
44315 | .PHONY: maybe-TAGS-target-rda TAGS-target-rda |
44316 | maybe-TAGS-target-rda: | |
6bd3dfaa PB |
44317 | @if target-rda |
44318 | maybe-TAGS-target-rda: TAGS-target-rda | |
4fa63067 NN |
44319 | |
44320 | TAGS-target-rda: \ | |
44321 | configure-target-rda | |
0aed8855 | 44322 | @: $(MAKE); $(unstage) |
22121df0 | 44323 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \ |
4fa63067 | 44324 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 44325 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 44326 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44327 | echo "Doing TAGS in $(TARGET_SUBDIR)/rda"; \ |
4fa63067 NN |
44328 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44329 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44330 | done; \ | |
44331 | (cd $(TARGET_SUBDIR)/rda && \ | |
44332 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44333 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44334 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44335 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44336 | TAGS) \ |
4fa63067 | 44337 | || exit 1 |
e393202e | 44338 | |
6bd3dfaa | 44339 | @endif target-rda |
930314a4 | 44340 | |
4fa63067 NN |
44341 | .PHONY: maybe-install-info-target-rda install-info-target-rda |
44342 | maybe-install-info-target-rda: | |
6bd3dfaa PB |
44343 | @if target-rda |
44344 | maybe-install-info-target-rda: install-info-target-rda | |
16ae0395 | 44345 | |
4fa63067 NN |
44346 | install-info-target-rda: \ |
44347 | configure-target-rda \ | |
44348 | info-target-rda | |
0aed8855 | 44349 | @: $(MAKE); $(unstage) |
22121df0 | 44350 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \ |
4fa63067 | 44351 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 44352 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 44353 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44354 | echo "Doing install-info in $(TARGET_SUBDIR)/rda"; \ |
4fa63067 NN |
44355 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44356 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44357 | done; \ | |
44358 | (cd $(TARGET_SUBDIR)/rda && \ | |
44359 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44360 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44361 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44362 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44363 | install-info) \ |
4fa63067 | 44364 | || exit 1 |
252b5132 | 44365 | |
6bd3dfaa | 44366 | @endif target-rda |
e393202e | 44367 | |
a3ca38d2 DD |
44368 | .PHONY: maybe-install-pdf-target-rda install-pdf-target-rda |
44369 | maybe-install-pdf-target-rda: | |
44370 | @if target-rda | |
44371 | maybe-install-pdf-target-rda: install-pdf-target-rda | |
44372 | ||
44373 | install-pdf-target-rda: \ | |
44374 | configure-target-rda \ | |
44375 | pdf-target-rda | |
44376 | @: $(MAKE); $(unstage) | |
22121df0 | 44377 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \ |
a3ca38d2 DD |
44378 | r=`${PWD_COMMAND}`; export r; \ |
44379 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
44380 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 44381 | echo "Doing install-pdf in $(TARGET_SUBDIR)/rda"; \ |
a3ca38d2 DD |
44382 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44383 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44384 | done; \ | |
44385 | (cd $(TARGET_SUBDIR)/rda && \ | |
44386 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44387 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44388 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44389 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
44390 | install-pdf) \ |
44391 | || exit 1 | |
44392 | ||
44393 | @endif target-rda | |
44394 | ||
108a6f8e CD |
44395 | .PHONY: maybe-install-html-target-rda install-html-target-rda |
44396 | maybe-install-html-target-rda: | |
44397 | @if target-rda | |
44398 | maybe-install-html-target-rda: install-html-target-rda | |
44399 | ||
44400 | install-html-target-rda: \ | |
44401 | configure-target-rda \ | |
44402 | html-target-rda | |
44403 | @: $(MAKE); $(unstage) | |
22121df0 | 44404 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \ |
108a6f8e CD |
44405 | r=`${PWD_COMMAND}`; export r; \ |
44406 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
44407 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 44408 | echo "Doing install-html in $(TARGET_SUBDIR)/rda"; \ |
108a6f8e CD |
44409 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44410 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44411 | done; \ | |
44412 | (cd $(TARGET_SUBDIR)/rda && \ | |
44413 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44414 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44415 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44416 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
44417 | install-html) \ |
44418 | || exit 1 | |
44419 | ||
44420 | @endif target-rda | |
44421 | ||
4fa63067 NN |
44422 | .PHONY: maybe-installcheck-target-rda installcheck-target-rda |
44423 | maybe-installcheck-target-rda: | |
6bd3dfaa PB |
44424 | @if target-rda |
44425 | maybe-installcheck-target-rda: installcheck-target-rda | |
15723a45 | 44426 | |
4fa63067 NN |
44427 | installcheck-target-rda: \ |
44428 | configure-target-rda | |
0aed8855 | 44429 | @: $(MAKE); $(unstage) |
22121df0 | 44430 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \ |
4fa63067 NN |
44431 | r=`${PWD_COMMAND}`; export r; \ |
44432 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44433 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44434 | echo "Doing installcheck in $(TARGET_SUBDIR)/rda"; \ |
4fa63067 NN |
44435 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44436 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44437 | done; \ | |
44438 | (cd $(TARGET_SUBDIR)/rda && \ | |
44439 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44440 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44441 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44442 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44443 | installcheck) \ |
4fa63067 | 44444 | || exit 1 |
15723a45 | 44445 | |
6bd3dfaa | 44446 | @endif target-rda |
4fa63067 NN |
44447 | |
44448 | .PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda | |
44449 | maybe-mostlyclean-target-rda: | |
6bd3dfaa PB |
44450 | @if target-rda |
44451 | maybe-mostlyclean-target-rda: mostlyclean-target-rda | |
4fa63067 NN |
44452 | |
44453 | mostlyclean-target-rda: | |
0aed8855 | 44454 | @: $(MAKE); $(unstage) |
22121df0 | 44455 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \ |
b40e3958 L |
44456 | r=`${PWD_COMMAND}`; export r; \ |
44457 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44458 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44459 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda"; \ |
4fa63067 NN |
44460 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44461 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44462 | done; \ | |
44463 | (cd $(TARGET_SUBDIR)/rda && \ | |
44464 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44465 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44466 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44467 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44468 | mostlyclean) \ |
bba45b8b | 44469 | || exit 1 |
252b5132 | 44470 | |
6bd3dfaa | 44471 | @endif target-rda |
4fa63067 NN |
44472 | |
44473 | .PHONY: maybe-clean-target-rda clean-target-rda | |
44474 | maybe-clean-target-rda: | |
6bd3dfaa PB |
44475 | @if target-rda |
44476 | maybe-clean-target-rda: clean-target-rda | |
4fa63067 NN |
44477 | |
44478 | clean-target-rda: | |
0aed8855 | 44479 | @: $(MAKE); $(unstage) |
22121df0 | 44480 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \ |
4fa63067 | 44481 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 44482 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 44483 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44484 | echo "Doing clean in $(TARGET_SUBDIR)/rda"; \ |
4fa63067 NN |
44485 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44486 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44487 | done; \ | |
bba45b8b | 44488 | (cd $(TARGET_SUBDIR)/rda && \ |
4fa63067 NN |
44489 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
44490 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44491 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44492 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44493 | clean) \ |
4fa63067 | 44494 | || exit 1 |
252b5132 | 44495 | |
6bd3dfaa | 44496 | @endif target-rda |
16ae0395 | 44497 | |
4fa63067 NN |
44498 | .PHONY: maybe-distclean-target-rda distclean-target-rda |
44499 | maybe-distclean-target-rda: | |
6bd3dfaa PB |
44500 | @if target-rda |
44501 | maybe-distclean-target-rda: distclean-target-rda | |
4fa63067 NN |
44502 | |
44503 | distclean-target-rda: | |
0aed8855 | 44504 | @: $(MAKE); $(unstage) |
22121df0 | 44505 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \ |
4fa63067 | 44506 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 44507 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 44508 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44509 | echo "Doing distclean in $(TARGET_SUBDIR)/rda"; \ |
4fa63067 NN |
44510 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44511 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44512 | done; \ | |
bba45b8b | 44513 | (cd $(TARGET_SUBDIR)/rda && \ |
4fa63067 NN |
44514 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
44515 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44516 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44517 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44518 | distclean) \ |
4fa63067 | 44519 | || exit 1 |
252b5132 | 44520 | |
6bd3dfaa | 44521 | @endif target-rda |
930314a4 | 44522 | |
4fa63067 NN |
44523 | .PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda |
44524 | maybe-maintainer-clean-target-rda: | |
6bd3dfaa PB |
44525 | @if target-rda |
44526 | maybe-maintainer-clean-target-rda: maintainer-clean-target-rda | |
16ae0395 | 44527 | |
4fa63067 | 44528 | maintainer-clean-target-rda: |
0aed8855 | 44529 | @: $(MAKE); $(unstage) |
22121df0 | 44530 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \ |
4fa63067 | 44531 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 44532 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 44533 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44534 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda"; \ |
4fa63067 NN |
44535 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44536 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44537 | done; \ | |
bba45b8b | 44538 | (cd $(TARGET_SUBDIR)/rda && \ |
4fa63067 NN |
44539 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
44540 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44541 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44542 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44543 | maintainer-clean) \ |
4fa63067 NN |
44544 | || exit 1 |
44545 | ||
6bd3dfaa | 44546 | @endif target-rda |
252b5132 | 44547 | |
e393202e | 44548 | |
a2592b1b | 44549 | |
a7254363 PB |
44550 | |
44551 | ||
44552 | .PHONY: configure-target-libada maybe-configure-target-libada | |
44553 | maybe-configure-target-libada: | |
4f0ef2d8 CD |
44554 | @if gcc-bootstrap |
44555 | configure-target-libada: stage_current | |
44556 | @endif gcc-bootstrap | |
a7254363 PB |
44557 | @if target-libada |
44558 | maybe-configure-target-libada: configure-target-libada | |
c52c6897 | 44559 | configure-target-libada: |
0aed8855 PB |
44560 | @: $(MAKE); $(unstage) |
44561 | @r=`${PWD_COMMAND}`; export r; \ | |
44562 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
44563 | echo "Checking multilib configuration for libada..."; \ | |
22121df0 L |
44564 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \ |
44565 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null; \ | |
0aed8855 PB |
44566 | if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \ |
44567 | if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \ | |
44568 | rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \ | |
44569 | else \ | |
44570 | rm -f $(TARGET_SUBDIR)/libada/Makefile; \ | |
44571 | mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \ | |
44572 | fi; \ | |
44573 | else \ | |
44574 | mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \ | |
c52c6897 PB |
44575 | fi; \ |
44576 | test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \ | |
22121df0 | 44577 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \ |
1f53ca9a | 44578 | $(NORMAL_TARGET_EXPORTS) \ |
a2592b1b DD |
44579 | echo Configuring in $(TARGET_SUBDIR)/libada; \ |
44580 | cd "$(TARGET_SUBDIR)/libada" || exit 1; \ | |
44581 | case $(srcdir) in \ | |
b00612cc PB |
44582 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
44583 | *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \ | |
44584 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
a2592b1b | 44585 | esac; \ |
1b6c0831 | 44586 | module_srcdir=libada; \ |
a2592b1b | 44587 | rm -f no-such-file || : ; \ |
1b6c0831 L |
44588 | CONFIG_SITE=no-such-file $(SHELL) \ |
44589 | $$s/$$module_srcdir/configure \ | |
44590 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 44591 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 44592 | --target=${target_alias} \ |
a2592b1b | 44593 | || exit 1 |
6bd3dfaa | 44594 | @endif target-libada |
a2592b1b | 44595 | |
a7254363 PB |
44596 | |
44597 | ||
d545f33b PB |
44598 | |
44599 | ||
4fa63067 NN |
44600 | .PHONY: all-target-libada maybe-all-target-libada |
44601 | maybe-all-target-libada: | |
4f0ef2d8 CD |
44602 | @if gcc-bootstrap |
44603 | all-target-libada: stage_current | |
44604 | @endif gcc-bootstrap | |
6bd3dfaa | 44605 | @if target-libada |
72b2455a | 44606 | TARGET-target-libada=all |
6bd3dfaa | 44607 | maybe-all-target-libada: all-target-libada |
4fa63067 | 44608 | all-target-libada: configure-target-libada |
0aed8855 | 44609 | @: $(MAKE); $(unstage) |
4fa63067 NN |
44610 | @r=`${PWD_COMMAND}`; export r; \ |
44611 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 44612 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 44613 | (cd $(TARGET_SUBDIR)/libada && \ |
b3676d82 | 44614 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
7f6ef0c0 | 44615 | $(TARGET-target-libada)) |
6bd3dfaa | 44616 | @endif target-libada |
4fa63067 | 44617 | |
a7254363 PB |
44618 | |
44619 | ||
d545f33b PB |
44620 | |
44621 | ||
4fa63067 NN |
44622 | .PHONY: check-target-libada maybe-check-target-libada |
44623 | maybe-check-target-libada: | |
6bd3dfaa PB |
44624 | @if target-libada |
44625 | maybe-check-target-libada: check-target-libada | |
4fa63067 NN |
44626 | |
44627 | check-target-libada: | |
0aed8855 | 44628 | @: $(MAKE); $(unstage) |
4fa63067 NN |
44629 | @r=`${PWD_COMMAND}`; export r; \ |
44630 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44631 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 44632 | (cd $(TARGET_SUBDIR)/libada && \ |
7ffa0b57 | 44633 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
4fa63067 | 44634 | |
6bd3dfaa | 44635 | @endif target-libada |
4fa63067 NN |
44636 | |
44637 | .PHONY: install-target-libada maybe-install-target-libada | |
44638 | maybe-install-target-libada: | |
6bd3dfaa PB |
44639 | @if target-libada |
44640 | maybe-install-target-libada: install-target-libada | |
4fa63067 NN |
44641 | |
44642 | install-target-libada: installdirs | |
0aed8855 | 44643 | @: $(MAKE); $(unstage) |
4fa63067 NN |
44644 | @r=`${PWD_COMMAND}`; export r; \ |
44645 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44646 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 44647 | (cd $(TARGET_SUBDIR)/libada && \ |
7ffa0b57 | 44648 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4fa63067 | 44649 | |
6bd3dfaa | 44650 | @endif target-libada |
4fa63067 | 44651 | |
9b980aa1 RW |
44652 | .PHONY: install-strip-target-libada maybe-install-strip-target-libada |
44653 | maybe-install-strip-target-libada: | |
44654 | @if target-libada | |
44655 | maybe-install-strip-target-libada: install-strip-target-libada | |
44656 | ||
44657 | install-strip-target-libada: installdirs | |
44658 | @: $(MAKE); $(unstage) | |
44659 | @r=`${PWD_COMMAND}`; export r; \ | |
44660 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
44661 | $(NORMAL_TARGET_EXPORTS) \ | |
44662 | (cd $(TARGET_SUBDIR)/libada && \ | |
44663 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) | |
44664 | ||
44665 | @endif target-libada | |
44666 | ||
56a8fe78 | 44667 | # Other targets (info, dvi, pdf, etc.) |
4fa63067 NN |
44668 | |
44669 | .PHONY: maybe-info-target-libada info-target-libada | |
44670 | maybe-info-target-libada: | |
6bd3dfaa PB |
44671 | @if target-libada |
44672 | maybe-info-target-libada: info-target-libada | |
4fa63067 NN |
44673 | |
44674 | info-target-libada: \ | |
44675 | configure-target-libada | |
0aed8855 | 44676 | @: $(MAKE); $(unstage) |
22121df0 | 44677 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \ |
4fa63067 NN |
44678 | r=`${PWD_COMMAND}`; export r; \ |
44679 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44680 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44681 | echo "Doing info in $(TARGET_SUBDIR)/libada"; \ |
4fa63067 NN |
44682 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44683 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44684 | done; \ | |
44685 | (cd $(TARGET_SUBDIR)/libada && \ | |
44686 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44687 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44688 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44689 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44690 | info) \ |
4fa63067 NN |
44691 | || exit 1 |
44692 | ||
6bd3dfaa | 44693 | @endif target-libada |
4fa63067 NN |
44694 | |
44695 | .PHONY: maybe-dvi-target-libada dvi-target-libada | |
44696 | maybe-dvi-target-libada: | |
6bd3dfaa PB |
44697 | @if target-libada |
44698 | maybe-dvi-target-libada: dvi-target-libada | |
4fa63067 NN |
44699 | |
44700 | dvi-target-libada: \ | |
44701 | configure-target-libada | |
0aed8855 | 44702 | @: $(MAKE); $(unstage) |
22121df0 | 44703 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \ |
4fa63067 NN |
44704 | r=`${PWD_COMMAND}`; export r; \ |
44705 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44706 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44707 | echo "Doing dvi in $(TARGET_SUBDIR)/libada"; \ |
4fa63067 NN |
44708 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44709 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44710 | done; \ | |
44711 | (cd $(TARGET_SUBDIR)/libada && \ | |
44712 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44713 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44714 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44715 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44716 | dvi) \ |
4fa63067 NN |
44717 | || exit 1 |
44718 | ||
6bd3dfaa | 44719 | @endif target-libada |
4fa63067 | 44720 | |
56a8fe78 DD |
44721 | .PHONY: maybe-pdf-target-libada pdf-target-libada |
44722 | maybe-pdf-target-libada: | |
44723 | @if target-libada | |
44724 | maybe-pdf-target-libada: pdf-target-libada | |
44725 | ||
44726 | pdf-target-libada: \ | |
44727 | configure-target-libada | |
44728 | @: $(MAKE); $(unstage) | |
22121df0 | 44729 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \ |
56a8fe78 DD |
44730 | r=`${PWD_COMMAND}`; export r; \ |
44731 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
44732 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 44733 | echo "Doing pdf in $(TARGET_SUBDIR)/libada"; \ |
56a8fe78 DD |
44734 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44735 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44736 | done; \ | |
44737 | (cd $(TARGET_SUBDIR)/libada && \ | |
44738 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44739 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44740 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44741 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
44742 | pdf) \ |
44743 | || exit 1 | |
44744 | ||
44745 | @endif target-libada | |
44746 | ||
6d389afc MS |
44747 | .PHONY: maybe-html-target-libada html-target-libada |
44748 | maybe-html-target-libada: | |
44749 | @if target-libada | |
44750 | maybe-html-target-libada: html-target-libada | |
44751 | ||
44752 | html-target-libada: \ | |
44753 | configure-target-libada | |
0aed8855 | 44754 | @: $(MAKE); $(unstage) |
22121df0 | 44755 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \ |
6d389afc MS |
44756 | r=`${PWD_COMMAND}`; export r; \ |
44757 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc | 44758 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44759 | echo "Doing html in $(TARGET_SUBDIR)/libada"; \ |
6d389afc MS |
44760 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44761 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44762 | done; \ | |
44763 | (cd $(TARGET_SUBDIR)/libada && \ | |
44764 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44765 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44766 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44767 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
6d389afc MS |
44768 | html) \ |
44769 | || exit 1 | |
44770 | ||
44771 | @endif target-libada | |
44772 | ||
4fa63067 NN |
44773 | .PHONY: maybe-TAGS-target-libada TAGS-target-libada |
44774 | maybe-TAGS-target-libada: | |
6bd3dfaa PB |
44775 | @if target-libada |
44776 | maybe-TAGS-target-libada: TAGS-target-libada | |
4fa63067 NN |
44777 | |
44778 | TAGS-target-libada: \ | |
44779 | configure-target-libada | |
0aed8855 | 44780 | @: $(MAKE); $(unstage) |
22121df0 | 44781 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \ |
4fa63067 NN |
44782 | r=`${PWD_COMMAND}`; export r; \ |
44783 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44784 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44785 | echo "Doing TAGS in $(TARGET_SUBDIR)/libada"; \ |
4fa63067 NN |
44786 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44787 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44788 | done; \ | |
44789 | (cd $(TARGET_SUBDIR)/libada && \ | |
44790 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44791 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44792 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44793 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44794 | TAGS) \ |
4fa63067 NN |
44795 | || exit 1 |
44796 | ||
6bd3dfaa | 44797 | @endif target-libada |
4fa63067 NN |
44798 | |
44799 | .PHONY: maybe-install-info-target-libada install-info-target-libada | |
44800 | maybe-install-info-target-libada: | |
6bd3dfaa PB |
44801 | @if target-libada |
44802 | maybe-install-info-target-libada: install-info-target-libada | |
4fa63067 NN |
44803 | |
44804 | install-info-target-libada: \ | |
44805 | configure-target-libada \ | |
44806 | info-target-libada | |
0aed8855 | 44807 | @: $(MAKE); $(unstage) |
22121df0 | 44808 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \ |
4fa63067 NN |
44809 | r=`${PWD_COMMAND}`; export r; \ |
44810 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44811 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44812 | echo "Doing install-info in $(TARGET_SUBDIR)/libada"; \ |
4fa63067 NN |
44813 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44814 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44815 | done; \ | |
44816 | (cd $(TARGET_SUBDIR)/libada && \ | |
44817 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44818 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44819 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44820 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44821 | install-info) \ |
4fa63067 NN |
44822 | || exit 1 |
44823 | ||
6bd3dfaa | 44824 | @endif target-libada |
4fa63067 | 44825 | |
a3ca38d2 DD |
44826 | .PHONY: maybe-install-pdf-target-libada install-pdf-target-libada |
44827 | maybe-install-pdf-target-libada: | |
44828 | @if target-libada | |
44829 | maybe-install-pdf-target-libada: install-pdf-target-libada | |
44830 | ||
44831 | install-pdf-target-libada: \ | |
44832 | configure-target-libada \ | |
44833 | pdf-target-libada | |
44834 | @: $(MAKE); $(unstage) | |
22121df0 | 44835 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \ |
a3ca38d2 DD |
44836 | r=`${PWD_COMMAND}`; export r; \ |
44837 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
44838 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 44839 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libada"; \ |
a3ca38d2 DD |
44840 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44841 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44842 | done; \ | |
44843 | (cd $(TARGET_SUBDIR)/libada && \ | |
44844 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44845 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44846 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44847 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
44848 | install-pdf) \ |
44849 | || exit 1 | |
44850 | ||
44851 | @endif target-libada | |
44852 | ||
108a6f8e CD |
44853 | .PHONY: maybe-install-html-target-libada install-html-target-libada |
44854 | maybe-install-html-target-libada: | |
44855 | @if target-libada | |
44856 | maybe-install-html-target-libada: install-html-target-libada | |
44857 | ||
44858 | install-html-target-libada: \ | |
44859 | configure-target-libada \ | |
44860 | html-target-libada | |
44861 | @: $(MAKE); $(unstage) | |
22121df0 | 44862 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \ |
108a6f8e CD |
44863 | r=`${PWD_COMMAND}`; export r; \ |
44864 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
44865 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 44866 | echo "Doing install-html in $(TARGET_SUBDIR)/libada"; \ |
108a6f8e CD |
44867 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44868 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44869 | done; \ | |
44870 | (cd $(TARGET_SUBDIR)/libada && \ | |
44871 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44872 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44873 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44874 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
44875 | install-html) \ |
44876 | || exit 1 | |
44877 | ||
44878 | @endif target-libada | |
44879 | ||
4fa63067 NN |
44880 | .PHONY: maybe-installcheck-target-libada installcheck-target-libada |
44881 | maybe-installcheck-target-libada: | |
6bd3dfaa PB |
44882 | @if target-libada |
44883 | maybe-installcheck-target-libada: installcheck-target-libada | |
4fa63067 NN |
44884 | |
44885 | installcheck-target-libada: \ | |
44886 | configure-target-libada | |
0aed8855 | 44887 | @: $(MAKE); $(unstage) |
22121df0 | 44888 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \ |
4fa63067 NN |
44889 | r=`${PWD_COMMAND}`; export r; \ |
44890 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44891 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44892 | echo "Doing installcheck in $(TARGET_SUBDIR)/libada"; \ |
4fa63067 NN |
44893 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44894 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44895 | done; \ | |
44896 | (cd $(TARGET_SUBDIR)/libada && \ | |
44897 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44898 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44899 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44900 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44901 | installcheck) \ |
4fa63067 NN |
44902 | || exit 1 |
44903 | ||
6bd3dfaa | 44904 | @endif target-libada |
4fa63067 NN |
44905 | |
44906 | .PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada | |
44907 | maybe-mostlyclean-target-libada: | |
6bd3dfaa PB |
44908 | @if target-libada |
44909 | maybe-mostlyclean-target-libada: mostlyclean-target-libada | |
4fa63067 NN |
44910 | |
44911 | mostlyclean-target-libada: | |
0aed8855 | 44912 | @: $(MAKE); $(unstage) |
22121df0 | 44913 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \ |
4fa63067 NN |
44914 | r=`${PWD_COMMAND}`; export r; \ |
44915 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44916 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44917 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada"; \ |
4fa63067 NN |
44918 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44919 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44920 | done; \ | |
44921 | (cd $(TARGET_SUBDIR)/libada && \ | |
44922 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44923 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44924 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44925 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44926 | mostlyclean) \ |
4fa63067 NN |
44927 | || exit 1 |
44928 | ||
6bd3dfaa | 44929 | @endif target-libada |
4fa63067 NN |
44930 | |
44931 | .PHONY: maybe-clean-target-libada clean-target-libada | |
44932 | maybe-clean-target-libada: | |
6bd3dfaa PB |
44933 | @if target-libada |
44934 | maybe-clean-target-libada: clean-target-libada | |
4fa63067 NN |
44935 | |
44936 | clean-target-libada: | |
0aed8855 | 44937 | @: $(MAKE); $(unstage) |
22121df0 | 44938 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \ |
4fa63067 NN |
44939 | r=`${PWD_COMMAND}`; export r; \ |
44940 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 44941 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44942 | echo "Doing clean in $(TARGET_SUBDIR)/libada"; \ |
4fa63067 NN |
44943 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44944 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44945 | done; \ | |
44946 | (cd $(TARGET_SUBDIR)/libada && \ | |
44947 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
44948 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44949 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44950 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44951 | clean) \ |
4fa63067 NN |
44952 | || exit 1 |
44953 | ||
6bd3dfaa | 44954 | @endif target-libada |
a2592b1b | 44955 | |
4fa63067 NN |
44956 | .PHONY: maybe-distclean-target-libada distclean-target-libada |
44957 | maybe-distclean-target-libada: | |
6bd3dfaa PB |
44958 | @if target-libada |
44959 | maybe-distclean-target-libada: distclean-target-libada | |
a2592b1b | 44960 | |
4fa63067 | 44961 | distclean-target-libada: |
0aed8855 | 44962 | @: $(MAKE); $(unstage) |
22121df0 | 44963 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \ |
4fa63067 | 44964 | r=`${PWD_COMMAND}`; export r; \ |
a2592b1b | 44965 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 44966 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44967 | echo "Doing distclean in $(TARGET_SUBDIR)/libada"; \ |
4fa63067 NN |
44968 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44969 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44970 | done; \ | |
a2592b1b | 44971 | (cd $(TARGET_SUBDIR)/libada && \ |
4fa63067 NN |
44972 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
44973 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44974 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 44975 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 44976 | distclean) \ |
4fa63067 | 44977 | || exit 1 |
a2592b1b | 44978 | |
6bd3dfaa | 44979 | @endif target-libada |
a2592b1b | 44980 | |
4fa63067 NN |
44981 | .PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada |
44982 | maybe-maintainer-clean-target-libada: | |
6bd3dfaa PB |
44983 | @if target-libada |
44984 | maybe-maintainer-clean-target-libada: maintainer-clean-target-libada | |
a2592b1b | 44985 | |
4fa63067 | 44986 | maintainer-clean-target-libada: |
0aed8855 | 44987 | @: $(MAKE); $(unstage) |
22121df0 | 44988 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \ |
4fa63067 | 44989 | r=`${PWD_COMMAND}`; export r; \ |
a2592b1b | 44990 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 44991 | $(NORMAL_TARGET_EXPORTS) \ |
22121df0 | 44992 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada"; \ |
4fa63067 NN |
44993 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
44994 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
44995 | done; \ | |
a2592b1b | 44996 | (cd $(TARGET_SUBDIR)/libada && \ |
4fa63067 NN |
44997 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
44998 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
44999 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 45000 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
7ffa0b57 | 45001 | maintainer-clean) \ |
4fa63067 NN |
45002 | || exit 1 |
45003 | ||
6bd3dfaa | 45004 | @endif target-libada |
a2592b1b DD |
45005 | |
45006 | ||
e393202e | 45007 | |
b3ded179 PB |
45008 | |
45009 | ||
45010 | .PHONY: configure-target-libgomp maybe-configure-target-libgomp | |
45011 | maybe-configure-target-libgomp: | |
4f0ef2d8 CD |
45012 | @if gcc-bootstrap |
45013 | configure-target-libgomp: stage_current | |
45014 | @endif gcc-bootstrap | |
b3ded179 PB |
45015 | @if target-libgomp |
45016 | maybe-configure-target-libgomp: configure-target-libgomp | |
c52c6897 | 45017 | configure-target-libgomp: |
b3ded179 PB |
45018 | @r=`${PWD_COMMAND}`; export r; \ |
45019 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45020 | echo "Checking multilib configuration for libgomp..."; \ | |
22121df0 L |
45021 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \ |
45022 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \ | |
b3ded179 PB |
45023 | if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \ |
45024 | if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \ | |
45025 | rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \ | |
45026 | else \ | |
45027 | rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \ | |
45028 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
45029 | fi; \ | |
45030 | else \ | |
45031 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
c52c6897 PB |
45032 | fi; \ |
45033 | test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \ | |
22121df0 | 45034 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \ |
1f53ca9a | 45035 | $(NORMAL_TARGET_EXPORTS) \ |
b3ded179 PB |
45036 | echo Configuring in $(TARGET_SUBDIR)/libgomp; \ |
45037 | cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \ | |
45038 | case $(srcdir) in \ | |
45039 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
45040 | *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \ | |
45041 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
45042 | esac; \ | |
1b6c0831 | 45043 | module_srcdir=libgomp; \ |
b3ded179 | 45044 | rm -f no-such-file || : ; \ |
1b6c0831 L |
45045 | CONFIG_SITE=no-such-file $(SHELL) \ |
45046 | $$s/$$module_srcdir/configure \ | |
45047 | --srcdir=$${topdir}/$$module_srcdir \ | |
4b900473 | 45048 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 45049 | --target=${target_alias} \ |
b3ded179 PB |
45050 | || exit 1 |
45051 | @endif target-libgomp | |
45052 | ||
45053 | ||
45054 | ||
911e63d0 JR |
45055 | .PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp |
45056 | maybe-configure-stage1-target-libgomp: | |
45057 | @if target-libgomp-bootstrap | |
45058 | maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp | |
45059 | configure-stage1-target-libgomp: | |
45060 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
45061 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp | |
45062 | @r=`${PWD_COMMAND}`; export r; \ | |
45063 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45064 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
45065 | echo "Checking multilib configuration for libgomp..."; \ | |
22121df0 | 45066 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \ |
911e63d0 JR |
45067 | if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \ |
45068 | if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \ | |
45069 | rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \ | |
45070 | else \ | |
45071 | rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \ | |
45072 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
45073 | fi; \ | |
45074 | else \ | |
45075 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
45076 | fi; \ | |
45077 | test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \ | |
45078 | $(NORMAL_TARGET_EXPORTS) \ | |
45079 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
45080 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
45081 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
45082 | echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp; \ |
45083 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \ | |
911e63d0 JR |
45084 | cd $(TARGET_SUBDIR)/libgomp || exit 1; \ |
45085 | case $(srcdir) in \ | |
45086 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
45087 | *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \ | |
45088 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
45089 | esac; \ | |
1b6c0831 L |
45090 | module_srcdir=libgomp; \ |
45091 | $(SHELL) $$s/$$module_srcdir/configure \ | |
45092 | --srcdir=$${topdir}/$$module_srcdir \ | |
911e63d0 | 45093 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 L |
45094 | --target=${target_alias} \ |
45095 | \ | |
911e63d0 JR |
45096 | $(STAGE1_CONFIGURE_FLAGS) |
45097 | @endif target-libgomp-bootstrap | |
45098 | ||
45099 | .PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp | |
45100 | maybe-configure-stage2-target-libgomp: | |
45101 | @if target-libgomp-bootstrap | |
45102 | maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp | |
45103 | configure-stage2-target-libgomp: | |
45104 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
45105 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp | |
45106 | @r=`${PWD_COMMAND}`; export r; \ | |
45107 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45108 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
45109 | echo "Checking multilib configuration for libgomp..."; \ | |
22121df0 | 45110 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \ |
911e63d0 JR |
45111 | if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \ |
45112 | if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \ | |
45113 | rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \ | |
45114 | else \ | |
45115 | rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \ | |
45116 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
45117 | fi; \ | |
45118 | else \ | |
45119 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
45120 | fi; \ | |
45121 | test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \ | |
45122 | $(NORMAL_TARGET_EXPORTS) \ | |
45123 | \ | |
45124 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
45125 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
45126 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
45127 | echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp; \ |
45128 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \ | |
911e63d0 JR |
45129 | cd $(TARGET_SUBDIR)/libgomp || exit 1; \ |
45130 | case $(srcdir) in \ | |
45131 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
45132 | *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \ | |
45133 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
45134 | esac; \ | |
1b6c0831 L |
45135 | module_srcdir=libgomp; \ |
45136 | $(SHELL) $$s/$$module_srcdir/configure \ | |
45137 | --srcdir=$${topdir}/$$module_srcdir \ | |
911e63d0 | 45138 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 45139 | --target=${target_alias} \ |
22121df0 | 45140 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
911e63d0 JR |
45141 | $(STAGE2_CONFIGURE_FLAGS) |
45142 | @endif target-libgomp-bootstrap | |
45143 | ||
45144 | .PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp | |
45145 | maybe-configure-stage3-target-libgomp: | |
45146 | @if target-libgomp-bootstrap | |
45147 | maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp | |
45148 | configure-stage3-target-libgomp: | |
45149 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
45150 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp | |
45151 | @r=`${PWD_COMMAND}`; export r; \ | |
45152 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45153 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
45154 | echo "Checking multilib configuration for libgomp..."; \ | |
22121df0 | 45155 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \ |
911e63d0 JR |
45156 | if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \ |
45157 | if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \ | |
45158 | rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \ | |
45159 | else \ | |
45160 | rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \ | |
45161 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
45162 | fi; \ | |
45163 | else \ | |
45164 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
45165 | fi; \ | |
45166 | test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \ | |
45167 | $(NORMAL_TARGET_EXPORTS) \ | |
45168 | \ | |
45169 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
45170 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
45171 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
45172 | echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp; \ |
45173 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \ | |
911e63d0 JR |
45174 | cd $(TARGET_SUBDIR)/libgomp || exit 1; \ |
45175 | case $(srcdir) in \ | |
45176 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
45177 | *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \ | |
45178 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
45179 | esac; \ | |
1b6c0831 L |
45180 | module_srcdir=libgomp; \ |
45181 | $(SHELL) $$s/$$module_srcdir/configure \ | |
45182 | --srcdir=$${topdir}/$$module_srcdir \ | |
911e63d0 | 45183 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 45184 | --target=${target_alias} \ |
22121df0 | 45185 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
911e63d0 JR |
45186 | $(STAGE3_CONFIGURE_FLAGS) |
45187 | @endif target-libgomp-bootstrap | |
45188 | ||
45189 | .PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp | |
45190 | maybe-configure-stage4-target-libgomp: | |
45191 | @if target-libgomp-bootstrap | |
45192 | maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp | |
45193 | configure-stage4-target-libgomp: | |
45194 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
45195 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp | |
45196 | @r=`${PWD_COMMAND}`; export r; \ | |
45197 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45198 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
45199 | echo "Checking multilib configuration for libgomp..."; \ | |
22121df0 | 45200 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \ |
911e63d0 JR |
45201 | if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \ |
45202 | if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \ | |
45203 | rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \ | |
45204 | else \ | |
45205 | rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \ | |
45206 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
45207 | fi; \ | |
45208 | else \ | |
45209 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
45210 | fi; \ | |
45211 | test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \ | |
45212 | $(NORMAL_TARGET_EXPORTS) \ | |
45213 | \ | |
45214 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
45215 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
45216 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
45217 | echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp; \ |
45218 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \ | |
911e63d0 JR |
45219 | cd $(TARGET_SUBDIR)/libgomp || exit 1; \ |
45220 | case $(srcdir) in \ | |
45221 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
45222 | *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \ | |
45223 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
45224 | esac; \ | |
1b6c0831 L |
45225 | module_srcdir=libgomp; \ |
45226 | $(SHELL) $$s/$$module_srcdir/configure \ | |
45227 | --srcdir=$${topdir}/$$module_srcdir \ | |
911e63d0 | 45228 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 45229 | --target=${target_alias} \ |
22121df0 | 45230 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
911e63d0 JR |
45231 | $(STAGE4_CONFIGURE_FLAGS) |
45232 | @endif target-libgomp-bootstrap | |
45233 | ||
45234 | .PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp | |
45235 | maybe-configure-stageprofile-target-libgomp: | |
45236 | @if target-libgomp-bootstrap | |
45237 | maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp | |
45238 | configure-stageprofile-target-libgomp: | |
45239 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
45240 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp | |
45241 | @r=`${PWD_COMMAND}`; export r; \ | |
45242 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45243 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
45244 | echo "Checking multilib configuration for libgomp..."; \ | |
22121df0 | 45245 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \ |
911e63d0 JR |
45246 | if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \ |
45247 | if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \ | |
45248 | rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \ | |
45249 | else \ | |
45250 | rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \ | |
45251 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
45252 | fi; \ | |
45253 | else \ | |
45254 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
45255 | fi; \ | |
45256 | test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \ | |
45257 | $(NORMAL_TARGET_EXPORTS) \ | |
45258 | \ | |
45259 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
45260 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
45261 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
45262 | echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp; \ |
45263 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \ | |
911e63d0 JR |
45264 | cd $(TARGET_SUBDIR)/libgomp || exit 1; \ |
45265 | case $(srcdir) in \ | |
45266 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
45267 | *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \ | |
45268 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
45269 | esac; \ | |
1b6c0831 L |
45270 | module_srcdir=libgomp; \ |
45271 | $(SHELL) $$s/$$module_srcdir/configure \ | |
45272 | --srcdir=$${topdir}/$$module_srcdir \ | |
911e63d0 | 45273 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 45274 | --target=${target_alias} \ |
22121df0 | 45275 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
911e63d0 JR |
45276 | $(STAGEprofile_CONFIGURE_FLAGS) |
45277 | @endif target-libgomp-bootstrap | |
45278 | ||
45279 | .PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp | |
45280 | maybe-configure-stagefeedback-target-libgomp: | |
45281 | @if target-libgomp-bootstrap | |
45282 | maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp | |
45283 | configure-stagefeedback-target-libgomp: | |
45284 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
45285 | @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp | |
45286 | @r=`${PWD_COMMAND}`; export r; \ | |
45287 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45288 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
45289 | echo "Checking multilib configuration for libgomp..."; \ | |
22121df0 | 45290 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \ |
911e63d0 JR |
45291 | if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \ |
45292 | if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \ | |
45293 | rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \ | |
45294 | else \ | |
45295 | rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \ | |
45296 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
45297 | fi; \ | |
45298 | else \ | |
45299 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
45300 | fi; \ | |
45301 | test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \ | |
45302 | $(NORMAL_TARGET_EXPORTS) \ | |
45303 | \ | |
45304 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
45305 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
45306 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \ | |
22121df0 L |
45307 | echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp; \ |
45308 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \ | |
911e63d0 JR |
45309 | cd $(TARGET_SUBDIR)/libgomp || exit 1; \ |
45310 | case $(srcdir) in \ | |
45311 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
45312 | *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \ | |
45313 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
45314 | esac; \ | |
1b6c0831 L |
45315 | module_srcdir=libgomp; \ |
45316 | $(SHELL) $$s/$$module_srcdir/configure \ | |
45317 | --srcdir=$${topdir}/$$module_srcdir \ | |
911e63d0 | 45318 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 45319 | --target=${target_alias} \ |
22121df0 | 45320 | --with-build-libsubdir=$(HOST_SUBDIR) \ |
911e63d0 JR |
45321 | $(STAGEfeedback_CONFIGURE_FLAGS) |
45322 | @endif target-libgomp-bootstrap | |
45323 | ||
45324 | ||
45325 | ||
b3ded179 PB |
45326 | |
45327 | ||
45328 | .PHONY: all-target-libgomp maybe-all-target-libgomp | |
45329 | maybe-all-target-libgomp: | |
4f0ef2d8 CD |
45330 | @if gcc-bootstrap |
45331 | all-target-libgomp: stage_current | |
45332 | @endif gcc-bootstrap | |
b3ded179 PB |
45333 | @if target-libgomp |
45334 | TARGET-target-libgomp=all | |
45335 | maybe-all-target-libgomp: all-target-libgomp | |
45336 | all-target-libgomp: configure-target-libgomp | |
b3ded179 PB |
45337 | @r=`${PWD_COMMAND}`; export r; \ |
45338 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1f53ca9a | 45339 | $(NORMAL_TARGET_EXPORTS) \ |
b3ded179 | 45340 | (cd $(TARGET_SUBDIR)/libgomp && \ |
b3676d82 | 45341 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
7f6ef0c0 | 45342 | $(TARGET-target-libgomp)) |
b3ded179 PB |
45343 | @endif target-libgomp |
45344 | ||
45345 | ||
45346 | ||
911e63d0 JR |
45347 | .PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp |
45348 | .PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp | |
45349 | maybe-all-stage1-target-libgomp: | |
45350 | maybe-clean-stage1-target-libgomp: | |
45351 | @if target-libgomp-bootstrap | |
45352 | maybe-all-stage1-target-libgomp: all-stage1-target-libgomp | |
45353 | all-stage1: all-stage1-target-libgomp | |
45354 | TARGET-stage1-target-libgomp = $(TARGET-target-libgomp) | |
45355 | all-stage1-target-libgomp: configure-stage1-target-libgomp | |
45356 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start | |
45357 | @r=`${PWD_COMMAND}`; export r; \ | |
45358 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45359 | TFLAGS="$(STAGE1_TFLAGS)"; \ | |
45360 | $(NORMAL_TARGET_EXPORTS) \ | |
45361 | cd $(TARGET_SUBDIR)/libgomp && \ | |
05a13254 | 45362 | \ |
911e63d0 JR |
45363 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
45364 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
45365 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
45366 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
45367 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
45368 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
45369 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
b3676d82 EB |
45370 | $(EXTRA_TARGET_FLAGS) \ |
45371 | \ | |
05a13254 | 45372 | TFLAGS="$(STAGE1_TFLAGS)" \ |
911e63d0 JR |
45373 | $(TARGET-stage1-target-libgomp) |
45374 | ||
45375 | maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp | |
45376 | clean-stage1: clean-stage1-target-libgomp | |
45377 | clean-stage1-target-libgomp: | |
45378 | @if [ $(current_stage) = stage1 ]; then \ | |
45379 | [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ | |
45380 | else \ | |
45381 | [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \ | |
45382 | $(MAKE) stage1-start; \ | |
45383 | fi; \ | |
45384 | cd $(TARGET_SUBDIR)/libgomp && \ | |
45385 | $(MAKE) $(EXTRA_TARGET_FLAGS) \ | |
b3676d82 | 45386 | clean |
911e63d0 JR |
45387 | @endif target-libgomp-bootstrap |
45388 | ||
45389 | ||
45390 | .PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp | |
45391 | .PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp | |
45392 | maybe-all-stage2-target-libgomp: | |
45393 | maybe-clean-stage2-target-libgomp: | |
45394 | @if target-libgomp-bootstrap | |
45395 | maybe-all-stage2-target-libgomp: all-stage2-target-libgomp | |
45396 | all-stage2: all-stage2-target-libgomp | |
45397 | TARGET-stage2-target-libgomp = $(TARGET-target-libgomp) | |
45398 | all-stage2-target-libgomp: configure-stage2-target-libgomp | |
45399 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start | |
45400 | @r=`${PWD_COMMAND}`; export r; \ | |
45401 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45402 | TFLAGS="$(STAGE2_TFLAGS)"; \ | |
45403 | $(NORMAL_TARGET_EXPORTS) \ | |
45404 | \ | |
45405 | cd $(TARGET_SUBDIR)/libgomp && \ | |
05a13254 | 45406 | \ |
911e63d0 JR |
45407 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
45408 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
45409 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
45410 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
45411 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
45412 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
45413 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
45414 | $(EXTRA_TARGET_FLAGS) \ | |
05a13254 | 45415 | TFLAGS="$(STAGE2_TFLAGS)" \ |
911e63d0 JR |
45416 | $(TARGET-stage2-target-libgomp) |
45417 | ||
45418 | maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp | |
45419 | clean-stage2: clean-stage2-target-libgomp | |
45420 | clean-stage2-target-libgomp: | |
45421 | @if [ $(current_stage) = stage2 ]; then \ | |
45422 | [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ | |
45423 | else \ | |
45424 | [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \ | |
45425 | $(MAKE) stage2-start; \ | |
45426 | fi; \ | |
45427 | cd $(TARGET_SUBDIR)/libgomp && \ | |
b3676d82 | 45428 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean |
911e63d0 JR |
45429 | @endif target-libgomp-bootstrap |
45430 | ||
45431 | ||
45432 | .PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp | |
45433 | .PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp | |
45434 | maybe-all-stage3-target-libgomp: | |
45435 | maybe-clean-stage3-target-libgomp: | |
45436 | @if target-libgomp-bootstrap | |
45437 | maybe-all-stage3-target-libgomp: all-stage3-target-libgomp | |
45438 | all-stage3: all-stage3-target-libgomp | |
45439 | TARGET-stage3-target-libgomp = $(TARGET-target-libgomp) | |
45440 | all-stage3-target-libgomp: configure-stage3-target-libgomp | |
45441 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start | |
45442 | @r=`${PWD_COMMAND}`; export r; \ | |
45443 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45444 | TFLAGS="$(STAGE3_TFLAGS)"; \ | |
45445 | $(NORMAL_TARGET_EXPORTS) \ | |
45446 | \ | |
45447 | cd $(TARGET_SUBDIR)/libgomp && \ | |
05a13254 | 45448 | \ |
911e63d0 JR |
45449 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
45450 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
45451 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
45452 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
45453 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
45454 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
45455 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
45456 | $(EXTRA_TARGET_FLAGS) \ | |
05a13254 | 45457 | TFLAGS="$(STAGE3_TFLAGS)" \ |
911e63d0 JR |
45458 | $(TARGET-stage3-target-libgomp) |
45459 | ||
45460 | maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp | |
45461 | clean-stage3: clean-stage3-target-libgomp | |
45462 | clean-stage3-target-libgomp: | |
45463 | @if [ $(current_stage) = stage3 ]; then \ | |
45464 | [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ | |
45465 | else \ | |
45466 | [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \ | |
45467 | $(MAKE) stage3-start; \ | |
45468 | fi; \ | |
45469 | cd $(TARGET_SUBDIR)/libgomp && \ | |
b3676d82 | 45470 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean |
911e63d0 JR |
45471 | @endif target-libgomp-bootstrap |
45472 | ||
45473 | ||
45474 | .PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp | |
45475 | .PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp | |
45476 | maybe-all-stage4-target-libgomp: | |
45477 | maybe-clean-stage4-target-libgomp: | |
45478 | @if target-libgomp-bootstrap | |
45479 | maybe-all-stage4-target-libgomp: all-stage4-target-libgomp | |
45480 | all-stage4: all-stage4-target-libgomp | |
45481 | TARGET-stage4-target-libgomp = $(TARGET-target-libgomp) | |
45482 | all-stage4-target-libgomp: configure-stage4-target-libgomp | |
45483 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start | |
45484 | @r=`${PWD_COMMAND}`; export r; \ | |
45485 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45486 | TFLAGS="$(STAGE4_TFLAGS)"; \ | |
45487 | $(NORMAL_TARGET_EXPORTS) \ | |
45488 | \ | |
45489 | cd $(TARGET_SUBDIR)/libgomp && \ | |
05a13254 | 45490 | \ |
911e63d0 JR |
45491 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
45492 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
45493 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
45494 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
45495 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
45496 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
45497 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
45498 | $(EXTRA_TARGET_FLAGS) \ | |
05a13254 | 45499 | TFLAGS="$(STAGE4_TFLAGS)" \ |
911e63d0 JR |
45500 | $(TARGET-stage4-target-libgomp) |
45501 | ||
45502 | maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp | |
45503 | clean-stage4: clean-stage4-target-libgomp | |
45504 | clean-stage4-target-libgomp: | |
45505 | @if [ $(current_stage) = stage4 ]; then \ | |
45506 | [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ | |
45507 | else \ | |
45508 | [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \ | |
45509 | $(MAKE) stage4-start; \ | |
45510 | fi; \ | |
45511 | cd $(TARGET_SUBDIR)/libgomp && \ | |
b3676d82 | 45512 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean |
911e63d0 JR |
45513 | @endif target-libgomp-bootstrap |
45514 | ||
45515 | ||
45516 | .PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp | |
45517 | .PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp | |
45518 | maybe-all-stageprofile-target-libgomp: | |
45519 | maybe-clean-stageprofile-target-libgomp: | |
45520 | @if target-libgomp-bootstrap | |
45521 | maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp | |
45522 | all-stageprofile: all-stageprofile-target-libgomp | |
45523 | TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp) | |
45524 | all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp | |
45525 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start | |
45526 | @r=`${PWD_COMMAND}`; export r; \ | |
45527 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45528 | TFLAGS="$(STAGEprofile_TFLAGS)"; \ | |
45529 | $(NORMAL_TARGET_EXPORTS) \ | |
45530 | \ | |
45531 | cd $(TARGET_SUBDIR)/libgomp && \ | |
05a13254 | 45532 | \ |
911e63d0 JR |
45533 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
45534 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
45535 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
45536 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
45537 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
45538 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
45539 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
45540 | $(EXTRA_TARGET_FLAGS) \ | |
05a13254 | 45541 | TFLAGS="$(STAGEprofile_TFLAGS)" \ |
911e63d0 JR |
45542 | $(TARGET-stageprofile-target-libgomp) |
45543 | ||
45544 | maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp | |
45545 | clean-stageprofile: clean-stageprofile-target-libgomp | |
45546 | clean-stageprofile-target-libgomp: | |
45547 | @if [ $(current_stage) = stageprofile ]; then \ | |
45548 | [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ | |
45549 | else \ | |
45550 | [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \ | |
45551 | $(MAKE) stageprofile-start; \ | |
45552 | fi; \ | |
45553 | cd $(TARGET_SUBDIR)/libgomp && \ | |
b3676d82 | 45554 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean |
911e63d0 JR |
45555 | @endif target-libgomp-bootstrap |
45556 | ||
45557 | ||
45558 | .PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp | |
45559 | .PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp | |
45560 | maybe-all-stagefeedback-target-libgomp: | |
45561 | maybe-clean-stagefeedback-target-libgomp: | |
45562 | @if target-libgomp-bootstrap | |
45563 | maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp | |
45564 | all-stagefeedback: all-stagefeedback-target-libgomp | |
45565 | TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp) | |
45566 | all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp | |
45567 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start | |
45568 | @r=`${PWD_COMMAND}`; export r; \ | |
45569 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45570 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ | |
45571 | $(NORMAL_TARGET_EXPORTS) \ | |
45572 | \ | |
45573 | cd $(TARGET_SUBDIR)/libgomp && \ | |
05a13254 | 45574 | \ |
911e63d0 JR |
45575 | $(MAKE) $(BASE_FLAGS_TO_PASS) \ |
45576 | CFLAGS="$(CFLAGS_FOR_TARGET)" \ | |
45577 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | |
45578 | LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \ | |
45579 | CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | |
45580 | CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | |
45581 | LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | |
45582 | $(EXTRA_TARGET_FLAGS) \ | |
05a13254 | 45583 | TFLAGS="$(STAGEfeedback_TFLAGS)" \ |
911e63d0 JR |
45584 | $(TARGET-stagefeedback-target-libgomp) |
45585 | ||
45586 | maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp | |
45587 | clean-stagefeedback: clean-stagefeedback-target-libgomp | |
45588 | clean-stagefeedback-target-libgomp: | |
45589 | @if [ $(current_stage) = stagefeedback ]; then \ | |
45590 | [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ | |
45591 | else \ | |
45592 | [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \ | |
45593 | $(MAKE) stagefeedback-start; \ | |
45594 | fi; \ | |
45595 | cd $(TARGET_SUBDIR)/libgomp && \ | |
b3676d82 | 45596 | $(MAKE) $(EXTRA_TARGET_FLAGS) clean |
911e63d0 JR |
45597 | @endif target-libgomp-bootstrap |
45598 | ||
45599 | ||
45600 | ||
45601 | ||
b3ded179 PB |
45602 | |
45603 | ||
45604 | .PHONY: check-target-libgomp maybe-check-target-libgomp | |
45605 | maybe-check-target-libgomp: | |
45606 | @if target-libgomp | |
45607 | maybe-check-target-libgomp: check-target-libgomp | |
45608 | ||
45609 | check-target-libgomp: | |
45610 | @: $(MAKE); $(unstage) | |
45611 | @r=`${PWD_COMMAND}`; export r; \ | |
45612 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45613 | $(NORMAL_TARGET_EXPORTS) \ | |
45614 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45615 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
45616 | ||
45617 | @endif target-libgomp | |
45618 | ||
45619 | .PHONY: install-target-libgomp maybe-install-target-libgomp | |
45620 | maybe-install-target-libgomp: | |
45621 | @if target-libgomp | |
45622 | maybe-install-target-libgomp: install-target-libgomp | |
45623 | ||
45624 | install-target-libgomp: installdirs | |
45625 | @: $(MAKE); $(unstage) | |
45626 | @r=`${PWD_COMMAND}`; export r; \ | |
45627 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45628 | $(NORMAL_TARGET_EXPORTS) \ | |
45629 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45630 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
45631 | ||
45632 | @endif target-libgomp | |
45633 | ||
9b980aa1 RW |
45634 | .PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp |
45635 | maybe-install-strip-target-libgomp: | |
45636 | @if target-libgomp | |
45637 | maybe-install-strip-target-libgomp: install-strip-target-libgomp | |
45638 | ||
45639 | install-strip-target-libgomp: installdirs | |
45640 | @: $(MAKE); $(unstage) | |
45641 | @r=`${PWD_COMMAND}`; export r; \ | |
45642 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45643 | $(NORMAL_TARGET_EXPORTS) \ | |
45644 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45645 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) | |
45646 | ||
45647 | @endif target-libgomp | |
45648 | ||
56a8fe78 | 45649 | # Other targets (info, dvi, pdf, etc.) |
b3ded179 PB |
45650 | |
45651 | .PHONY: maybe-info-target-libgomp info-target-libgomp | |
45652 | maybe-info-target-libgomp: | |
45653 | @if target-libgomp | |
45654 | maybe-info-target-libgomp: info-target-libgomp | |
45655 | ||
45656 | info-target-libgomp: \ | |
45657 | configure-target-libgomp | |
45658 | @: $(MAKE); $(unstage) | |
22121df0 | 45659 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ |
b3ded179 PB |
45660 | r=`${PWD_COMMAND}`; export r; \ |
45661 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45662 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 45663 | echo "Doing info in $(TARGET_SUBDIR)/libgomp"; \ |
b3ded179 PB |
45664 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
45665 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
45666 | done; \ | |
45667 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45668 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
45669 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
45670 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 45671 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b3ded179 PB |
45672 | info) \ |
45673 | || exit 1 | |
45674 | ||
45675 | @endif target-libgomp | |
45676 | ||
45677 | .PHONY: maybe-dvi-target-libgomp dvi-target-libgomp | |
45678 | maybe-dvi-target-libgomp: | |
45679 | @if target-libgomp | |
45680 | maybe-dvi-target-libgomp: dvi-target-libgomp | |
45681 | ||
45682 | dvi-target-libgomp: \ | |
45683 | configure-target-libgomp | |
45684 | @: $(MAKE); $(unstage) | |
22121df0 | 45685 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ |
b3ded179 PB |
45686 | r=`${PWD_COMMAND}`; export r; \ |
45687 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45688 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 45689 | echo "Doing dvi in $(TARGET_SUBDIR)/libgomp"; \ |
b3ded179 PB |
45690 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
45691 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
45692 | done; \ | |
45693 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45694 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
45695 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
45696 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 45697 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b3ded179 PB |
45698 | dvi) \ |
45699 | || exit 1 | |
45700 | ||
45701 | @endif target-libgomp | |
45702 | ||
56a8fe78 DD |
45703 | .PHONY: maybe-pdf-target-libgomp pdf-target-libgomp |
45704 | maybe-pdf-target-libgomp: | |
45705 | @if target-libgomp | |
45706 | maybe-pdf-target-libgomp: pdf-target-libgomp | |
45707 | ||
45708 | pdf-target-libgomp: \ | |
45709 | configure-target-libgomp | |
45710 | @: $(MAKE); $(unstage) | |
22121df0 | 45711 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ |
56a8fe78 DD |
45712 | r=`${PWD_COMMAND}`; export r; \ |
45713 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45714 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 45715 | echo "Doing pdf in $(TARGET_SUBDIR)/libgomp"; \ |
56a8fe78 DD |
45716 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
45717 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
45718 | done; \ | |
45719 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45720 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
45721 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
45722 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 45723 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
56a8fe78 DD |
45724 | pdf) \ |
45725 | || exit 1 | |
45726 | ||
45727 | @endif target-libgomp | |
45728 | ||
b3ded179 PB |
45729 | .PHONY: maybe-html-target-libgomp html-target-libgomp |
45730 | maybe-html-target-libgomp: | |
45731 | @if target-libgomp | |
45732 | maybe-html-target-libgomp: html-target-libgomp | |
45733 | ||
45734 | html-target-libgomp: \ | |
45735 | configure-target-libgomp | |
45736 | @: $(MAKE); $(unstage) | |
22121df0 | 45737 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ |
b3ded179 PB |
45738 | r=`${PWD_COMMAND}`; export r; \ |
45739 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45740 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 45741 | echo "Doing html in $(TARGET_SUBDIR)/libgomp"; \ |
b3ded179 PB |
45742 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
45743 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
45744 | done; \ | |
45745 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45746 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
45747 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
45748 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 45749 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b3ded179 PB |
45750 | html) \ |
45751 | || exit 1 | |
45752 | ||
45753 | @endif target-libgomp | |
45754 | ||
45755 | .PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp | |
45756 | maybe-TAGS-target-libgomp: | |
45757 | @if target-libgomp | |
45758 | maybe-TAGS-target-libgomp: TAGS-target-libgomp | |
45759 | ||
45760 | TAGS-target-libgomp: \ | |
45761 | configure-target-libgomp | |
45762 | @: $(MAKE); $(unstage) | |
22121df0 | 45763 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ |
b3ded179 PB |
45764 | r=`${PWD_COMMAND}`; export r; \ |
45765 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45766 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 45767 | echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp"; \ |
b3ded179 PB |
45768 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
45769 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
45770 | done; \ | |
45771 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45772 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
45773 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
45774 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 45775 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b3ded179 PB |
45776 | TAGS) \ |
45777 | || exit 1 | |
45778 | ||
45779 | @endif target-libgomp | |
45780 | ||
45781 | .PHONY: maybe-install-info-target-libgomp install-info-target-libgomp | |
45782 | maybe-install-info-target-libgomp: | |
45783 | @if target-libgomp | |
45784 | maybe-install-info-target-libgomp: install-info-target-libgomp | |
45785 | ||
45786 | install-info-target-libgomp: \ | |
45787 | configure-target-libgomp \ | |
45788 | info-target-libgomp | |
45789 | @: $(MAKE); $(unstage) | |
22121df0 | 45790 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ |
b3ded179 PB |
45791 | r=`${PWD_COMMAND}`; export r; \ |
45792 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45793 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 45794 | echo "Doing install-info in $(TARGET_SUBDIR)/libgomp"; \ |
b3ded179 PB |
45795 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
45796 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
45797 | done; \ | |
45798 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45799 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
45800 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
45801 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 45802 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b3ded179 PB |
45803 | install-info) \ |
45804 | || exit 1 | |
45805 | ||
45806 | @endif target-libgomp | |
45807 | ||
a3ca38d2 DD |
45808 | .PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp |
45809 | maybe-install-pdf-target-libgomp: | |
45810 | @if target-libgomp | |
45811 | maybe-install-pdf-target-libgomp: install-pdf-target-libgomp | |
45812 | ||
45813 | install-pdf-target-libgomp: \ | |
45814 | configure-target-libgomp \ | |
45815 | pdf-target-libgomp | |
45816 | @: $(MAKE); $(unstage) | |
22121df0 | 45817 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ |
a3ca38d2 DD |
45818 | r=`${PWD_COMMAND}`; export r; \ |
45819 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45820 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 45821 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp"; \ |
a3ca38d2 DD |
45822 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
45823 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
45824 | done; \ | |
45825 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45826 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
45827 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
45828 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 45829 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
a3ca38d2 DD |
45830 | install-pdf) \ |
45831 | || exit 1 | |
45832 | ||
45833 | @endif target-libgomp | |
45834 | ||
108a6f8e CD |
45835 | .PHONY: maybe-install-html-target-libgomp install-html-target-libgomp |
45836 | maybe-install-html-target-libgomp: | |
45837 | @if target-libgomp | |
45838 | maybe-install-html-target-libgomp: install-html-target-libgomp | |
45839 | ||
45840 | install-html-target-libgomp: \ | |
45841 | configure-target-libgomp \ | |
45842 | html-target-libgomp | |
45843 | @: $(MAKE); $(unstage) | |
22121df0 | 45844 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ |
108a6f8e CD |
45845 | r=`${PWD_COMMAND}`; export r; \ |
45846 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45847 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 45848 | echo "Doing install-html in $(TARGET_SUBDIR)/libgomp"; \ |
108a6f8e CD |
45849 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
45850 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
45851 | done; \ | |
45852 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45853 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
45854 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
45855 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 45856 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
108a6f8e CD |
45857 | install-html) \ |
45858 | || exit 1 | |
45859 | ||
45860 | @endif target-libgomp | |
45861 | ||
b3ded179 PB |
45862 | .PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp |
45863 | maybe-installcheck-target-libgomp: | |
45864 | @if target-libgomp | |
45865 | maybe-installcheck-target-libgomp: installcheck-target-libgomp | |
45866 | ||
45867 | installcheck-target-libgomp: \ | |
45868 | configure-target-libgomp | |
45869 | @: $(MAKE); $(unstage) | |
22121df0 | 45870 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ |
b3ded179 PB |
45871 | r=`${PWD_COMMAND}`; export r; \ |
45872 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45873 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 45874 | echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp"; \ |
b3ded179 PB |
45875 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
45876 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
45877 | done; \ | |
45878 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45879 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
45880 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
45881 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 45882 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b3ded179 PB |
45883 | installcheck) \ |
45884 | || exit 1 | |
45885 | ||
45886 | @endif target-libgomp | |
45887 | ||
45888 | .PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp | |
45889 | maybe-mostlyclean-target-libgomp: | |
45890 | @if target-libgomp | |
45891 | maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp | |
45892 | ||
45893 | mostlyclean-target-libgomp: | |
45894 | @: $(MAKE); $(unstage) | |
22121df0 | 45895 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ |
b3ded179 PB |
45896 | r=`${PWD_COMMAND}`; export r; \ |
45897 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45898 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 45899 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp"; \ |
b3ded179 PB |
45900 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
45901 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
45902 | done; \ | |
45903 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45904 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
45905 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
45906 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 45907 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b3ded179 PB |
45908 | mostlyclean) \ |
45909 | || exit 1 | |
45910 | ||
45911 | @endif target-libgomp | |
45912 | ||
45913 | .PHONY: maybe-clean-target-libgomp clean-target-libgomp | |
45914 | maybe-clean-target-libgomp: | |
45915 | @if target-libgomp | |
45916 | maybe-clean-target-libgomp: clean-target-libgomp | |
45917 | ||
45918 | clean-target-libgomp: | |
45919 | @: $(MAKE); $(unstage) | |
22121df0 | 45920 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ |
b3ded179 PB |
45921 | r=`${PWD_COMMAND}`; export r; \ |
45922 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45923 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 45924 | echo "Doing clean in $(TARGET_SUBDIR)/libgomp"; \ |
b3ded179 PB |
45925 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
45926 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
45927 | done; \ | |
45928 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45929 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
45930 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
45931 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 45932 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b3ded179 PB |
45933 | clean) \ |
45934 | || exit 1 | |
45935 | ||
45936 | @endif target-libgomp | |
45937 | ||
45938 | .PHONY: maybe-distclean-target-libgomp distclean-target-libgomp | |
45939 | maybe-distclean-target-libgomp: | |
45940 | @if target-libgomp | |
45941 | maybe-distclean-target-libgomp: distclean-target-libgomp | |
45942 | ||
45943 | distclean-target-libgomp: | |
45944 | @: $(MAKE); $(unstage) | |
22121df0 | 45945 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ |
b3ded179 PB |
45946 | r=`${PWD_COMMAND}`; export r; \ |
45947 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45948 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 45949 | echo "Doing distclean in $(TARGET_SUBDIR)/libgomp"; \ |
b3ded179 PB |
45950 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
45951 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
45952 | done; \ | |
45953 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45954 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
45955 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
45956 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 45957 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b3ded179 PB |
45958 | distclean) \ |
45959 | || exit 1 | |
45960 | ||
45961 | @endif target-libgomp | |
45962 | ||
45963 | .PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp | |
45964 | maybe-maintainer-clean-target-libgomp: | |
45965 | @if target-libgomp | |
45966 | maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp | |
45967 | ||
45968 | maintainer-clean-target-libgomp: | |
45969 | @: $(MAKE); $(unstage) | |
22121df0 | 45970 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \ |
b3ded179 PB |
45971 | r=`${PWD_COMMAND}`; export r; \ |
45972 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
45973 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 45974 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp"; \ |
b3ded179 PB |
45975 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
45976 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
45977 | done; \ | |
45978 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
45979 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
45980 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
45981 | "RANLIB=$${RANLIB}" \ | |
0c24b341 | 45982 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ |
b3ded179 PB |
45983 | maintainer-clean) \ |
45984 | || exit 1 | |
45985 | ||
45986 | @endif target-libgomp | |
45987 | ||
45988 | ||
45989 | ||
7ec59b9e L |
45990 | |
45991 | ||
45992 | .PHONY: configure-target-libitm maybe-configure-target-libitm | |
45993 | maybe-configure-target-libitm: | |
45994 | @if gcc-bootstrap | |
45995 | configure-target-libitm: stage_current | |
45996 | @endif gcc-bootstrap | |
45997 | @if target-libitm | |
45998 | maybe-configure-target-libitm: configure-target-libitm | |
45999 | configure-target-libitm: | |
46000 | @: $(MAKE); $(unstage) | |
46001 | @r=`${PWD_COMMAND}`; export r; \ | |
46002 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46003 | echo "Checking multilib configuration for libitm..."; \ | |
22121df0 L |
46004 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \ |
46005 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null; \ | |
7ec59b9e L |
46006 | if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \ |
46007 | if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \ | |
46008 | rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \ | |
46009 | else \ | |
46010 | rm -f $(TARGET_SUBDIR)/libitm/Makefile; \ | |
46011 | mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \ | |
46012 | fi; \ | |
46013 | else \ | |
46014 | mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \ | |
46015 | fi; \ | |
46016 | test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \ | |
22121df0 | 46017 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \ |
7ec59b9e L |
46018 | $(NORMAL_TARGET_EXPORTS) \ |
46019 | echo Configuring in $(TARGET_SUBDIR)/libitm; \ | |
46020 | cd "$(TARGET_SUBDIR)/libitm" || exit 1; \ | |
46021 | case $(srcdir) in \ | |
46022 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
46023 | *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \ | |
46024 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
46025 | esac; \ | |
1b6c0831 | 46026 | module_srcdir=libitm; \ |
7ec59b9e | 46027 | rm -f no-such-file || : ; \ |
1b6c0831 L |
46028 | CONFIG_SITE=no-such-file $(SHELL) \ |
46029 | $$s/$$module_srcdir/configure \ | |
46030 | --srcdir=$${topdir}/$$module_srcdir \ | |
7ec59b9e | 46031 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 46032 | --target=${target_alias} \ |
7ec59b9e L |
46033 | || exit 1 |
46034 | @endif target-libitm | |
46035 | ||
46036 | ||
46037 | ||
46038 | ||
46039 | ||
46040 | .PHONY: all-target-libitm maybe-all-target-libitm | |
46041 | maybe-all-target-libitm: | |
46042 | @if gcc-bootstrap | |
46043 | all-target-libitm: stage_current | |
46044 | @endif gcc-bootstrap | |
46045 | @if target-libitm | |
46046 | TARGET-target-libitm=all | |
46047 | maybe-all-target-libitm: all-target-libitm | |
46048 | all-target-libitm: configure-target-libitm | |
46049 | @: $(MAKE); $(unstage) | |
46050 | @r=`${PWD_COMMAND}`; export r; \ | |
46051 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46052 | $(NORMAL_TARGET_EXPORTS) \ | |
46053 | (cd $(TARGET_SUBDIR)/libitm && \ | |
b3676d82 | 46054 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
7ec59b9e L |
46055 | $(TARGET-target-libitm)) |
46056 | @endif target-libitm | |
46057 | ||
46058 | ||
46059 | ||
46060 | ||
46061 | ||
46062 | .PHONY: check-target-libitm maybe-check-target-libitm | |
46063 | maybe-check-target-libitm: | |
46064 | @if target-libitm | |
46065 | maybe-check-target-libitm: check-target-libitm | |
46066 | ||
46067 | check-target-libitm: | |
46068 | @: $(MAKE); $(unstage) | |
46069 | @r=`${PWD_COMMAND}`; export r; \ | |
46070 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46071 | $(NORMAL_TARGET_EXPORTS) \ | |
46072 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46073 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
46074 | ||
46075 | @endif target-libitm | |
46076 | ||
46077 | .PHONY: install-target-libitm maybe-install-target-libitm | |
46078 | maybe-install-target-libitm: | |
46079 | @if target-libitm | |
46080 | maybe-install-target-libitm: install-target-libitm | |
46081 | ||
46082 | install-target-libitm: installdirs | |
46083 | @: $(MAKE); $(unstage) | |
46084 | @r=`${PWD_COMMAND}`; export r; \ | |
46085 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46086 | $(NORMAL_TARGET_EXPORTS) \ | |
46087 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46088 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
46089 | ||
46090 | @endif target-libitm | |
46091 | ||
46092 | .PHONY: install-strip-target-libitm maybe-install-strip-target-libitm | |
46093 | maybe-install-strip-target-libitm: | |
46094 | @if target-libitm | |
46095 | maybe-install-strip-target-libitm: install-strip-target-libitm | |
46096 | ||
46097 | install-strip-target-libitm: installdirs | |
46098 | @: $(MAKE); $(unstage) | |
46099 | @r=`${PWD_COMMAND}`; export r; \ | |
46100 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46101 | $(NORMAL_TARGET_EXPORTS) \ | |
46102 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46103 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) | |
46104 | ||
46105 | @endif target-libitm | |
46106 | ||
46107 | # Other targets (info, dvi, pdf, etc.) | |
46108 | ||
46109 | .PHONY: maybe-info-target-libitm info-target-libitm | |
46110 | maybe-info-target-libitm: | |
46111 | @if target-libitm | |
46112 | maybe-info-target-libitm: info-target-libitm | |
46113 | ||
46114 | info-target-libitm: \ | |
46115 | configure-target-libitm | |
46116 | @: $(MAKE); $(unstage) | |
22121df0 | 46117 | @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \ |
7ec59b9e L |
46118 | r=`${PWD_COMMAND}`; export r; \ |
46119 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46120 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46121 | echo "Doing info in $(TARGET_SUBDIR)/libitm"; \ |
7ec59b9e L |
46122 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46123 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46124 | done; \ | |
46125 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46126 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46127 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46128 | "RANLIB=$${RANLIB}" \ | |
46129 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46130 | info) \ | |
46131 | || exit 1 | |
46132 | ||
46133 | @endif target-libitm | |
46134 | ||
46135 | .PHONY: maybe-dvi-target-libitm dvi-target-libitm | |
46136 | maybe-dvi-target-libitm: | |
46137 | @if target-libitm | |
46138 | maybe-dvi-target-libitm: dvi-target-libitm | |
46139 | ||
46140 | dvi-target-libitm: \ | |
46141 | configure-target-libitm | |
46142 | @: $(MAKE); $(unstage) | |
22121df0 | 46143 | @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \ |
7ec59b9e L |
46144 | r=`${PWD_COMMAND}`; export r; \ |
46145 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46146 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46147 | echo "Doing dvi in $(TARGET_SUBDIR)/libitm"; \ |
7ec59b9e L |
46148 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46149 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46150 | done; \ | |
46151 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46152 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46153 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46154 | "RANLIB=$${RANLIB}" \ | |
46155 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46156 | dvi) \ | |
46157 | || exit 1 | |
46158 | ||
46159 | @endif target-libitm | |
46160 | ||
46161 | .PHONY: maybe-pdf-target-libitm pdf-target-libitm | |
46162 | maybe-pdf-target-libitm: | |
46163 | @if target-libitm | |
46164 | maybe-pdf-target-libitm: pdf-target-libitm | |
46165 | ||
46166 | pdf-target-libitm: \ | |
46167 | configure-target-libitm | |
46168 | @: $(MAKE); $(unstage) | |
22121df0 | 46169 | @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \ |
7ec59b9e L |
46170 | r=`${PWD_COMMAND}`; export r; \ |
46171 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46172 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46173 | echo "Doing pdf in $(TARGET_SUBDIR)/libitm"; \ |
7ec59b9e L |
46174 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46175 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46176 | done; \ | |
46177 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46178 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46179 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46180 | "RANLIB=$${RANLIB}" \ | |
46181 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46182 | pdf) \ | |
46183 | || exit 1 | |
46184 | ||
46185 | @endif target-libitm | |
46186 | ||
46187 | .PHONY: maybe-html-target-libitm html-target-libitm | |
46188 | maybe-html-target-libitm: | |
46189 | @if target-libitm | |
46190 | maybe-html-target-libitm: html-target-libitm | |
46191 | ||
46192 | html-target-libitm: \ | |
46193 | configure-target-libitm | |
46194 | @: $(MAKE); $(unstage) | |
22121df0 | 46195 | @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \ |
7ec59b9e L |
46196 | r=`${PWD_COMMAND}`; export r; \ |
46197 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46198 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46199 | echo "Doing html in $(TARGET_SUBDIR)/libitm"; \ |
7ec59b9e L |
46200 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46201 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46202 | done; \ | |
46203 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46204 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46205 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46206 | "RANLIB=$${RANLIB}" \ | |
46207 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46208 | html) \ | |
46209 | || exit 1 | |
46210 | ||
46211 | @endif target-libitm | |
46212 | ||
46213 | .PHONY: maybe-TAGS-target-libitm TAGS-target-libitm | |
46214 | maybe-TAGS-target-libitm: | |
46215 | @if target-libitm | |
46216 | maybe-TAGS-target-libitm: TAGS-target-libitm | |
46217 | ||
46218 | TAGS-target-libitm: \ | |
46219 | configure-target-libitm | |
46220 | @: $(MAKE); $(unstage) | |
22121df0 | 46221 | @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \ |
7ec59b9e L |
46222 | r=`${PWD_COMMAND}`; export r; \ |
46223 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46224 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46225 | echo "Doing TAGS in $(TARGET_SUBDIR)/libitm"; \ |
7ec59b9e L |
46226 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46227 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46228 | done; \ | |
46229 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46230 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46231 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46232 | "RANLIB=$${RANLIB}" \ | |
46233 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46234 | TAGS) \ | |
46235 | || exit 1 | |
46236 | ||
46237 | @endif target-libitm | |
46238 | ||
46239 | .PHONY: maybe-install-info-target-libitm install-info-target-libitm | |
46240 | maybe-install-info-target-libitm: | |
46241 | @if target-libitm | |
46242 | maybe-install-info-target-libitm: install-info-target-libitm | |
46243 | ||
46244 | install-info-target-libitm: \ | |
46245 | configure-target-libitm \ | |
46246 | info-target-libitm | |
46247 | @: $(MAKE); $(unstage) | |
22121df0 | 46248 | @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \ |
7ec59b9e L |
46249 | r=`${PWD_COMMAND}`; export r; \ |
46250 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46251 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46252 | echo "Doing install-info in $(TARGET_SUBDIR)/libitm"; \ |
7ec59b9e L |
46253 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46254 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46255 | done; \ | |
46256 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46257 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46258 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46259 | "RANLIB=$${RANLIB}" \ | |
46260 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46261 | install-info) \ | |
46262 | || exit 1 | |
46263 | ||
46264 | @endif target-libitm | |
46265 | ||
46266 | .PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm | |
46267 | maybe-install-pdf-target-libitm: | |
46268 | @if target-libitm | |
46269 | maybe-install-pdf-target-libitm: install-pdf-target-libitm | |
46270 | ||
46271 | install-pdf-target-libitm: \ | |
46272 | configure-target-libitm \ | |
46273 | pdf-target-libitm | |
46274 | @: $(MAKE); $(unstage) | |
22121df0 | 46275 | @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \ |
7ec59b9e L |
46276 | r=`${PWD_COMMAND}`; export r; \ |
46277 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46278 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46279 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm"; \ |
7ec59b9e L |
46280 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46281 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46282 | done; \ | |
46283 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46284 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46285 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46286 | "RANLIB=$${RANLIB}" \ | |
46287 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46288 | install-pdf) \ | |
46289 | || exit 1 | |
46290 | ||
46291 | @endif target-libitm | |
46292 | ||
46293 | .PHONY: maybe-install-html-target-libitm install-html-target-libitm | |
46294 | maybe-install-html-target-libitm: | |
46295 | @if target-libitm | |
46296 | maybe-install-html-target-libitm: install-html-target-libitm | |
46297 | ||
46298 | install-html-target-libitm: \ | |
46299 | configure-target-libitm \ | |
46300 | html-target-libitm | |
46301 | @: $(MAKE); $(unstage) | |
22121df0 | 46302 | @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \ |
7ec59b9e L |
46303 | r=`${PWD_COMMAND}`; export r; \ |
46304 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46305 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46306 | echo "Doing install-html in $(TARGET_SUBDIR)/libitm"; \ |
7ec59b9e L |
46307 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46308 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46309 | done; \ | |
46310 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46311 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46312 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46313 | "RANLIB=$${RANLIB}" \ | |
46314 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46315 | install-html) \ | |
46316 | || exit 1 | |
46317 | ||
46318 | @endif target-libitm | |
46319 | ||
46320 | .PHONY: maybe-installcheck-target-libitm installcheck-target-libitm | |
46321 | maybe-installcheck-target-libitm: | |
46322 | @if target-libitm | |
46323 | maybe-installcheck-target-libitm: installcheck-target-libitm | |
46324 | ||
46325 | installcheck-target-libitm: \ | |
46326 | configure-target-libitm | |
46327 | @: $(MAKE); $(unstage) | |
22121df0 | 46328 | @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \ |
7ec59b9e L |
46329 | r=`${PWD_COMMAND}`; export r; \ |
46330 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46331 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46332 | echo "Doing installcheck in $(TARGET_SUBDIR)/libitm"; \ |
7ec59b9e L |
46333 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46334 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46335 | done; \ | |
46336 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46337 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46338 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46339 | "RANLIB=$${RANLIB}" \ | |
46340 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46341 | installcheck) \ | |
46342 | || exit 1 | |
46343 | ||
46344 | @endif target-libitm | |
46345 | ||
46346 | .PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm | |
46347 | maybe-mostlyclean-target-libitm: | |
46348 | @if target-libitm | |
46349 | maybe-mostlyclean-target-libitm: mostlyclean-target-libitm | |
46350 | ||
46351 | mostlyclean-target-libitm: | |
46352 | @: $(MAKE); $(unstage) | |
22121df0 | 46353 | @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \ |
7ec59b9e L |
46354 | r=`${PWD_COMMAND}`; export r; \ |
46355 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46356 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46357 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm"; \ |
7ec59b9e L |
46358 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46359 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46360 | done; \ | |
46361 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46362 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46363 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46364 | "RANLIB=$${RANLIB}" \ | |
46365 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46366 | mostlyclean) \ | |
46367 | || exit 1 | |
46368 | ||
46369 | @endif target-libitm | |
46370 | ||
46371 | .PHONY: maybe-clean-target-libitm clean-target-libitm | |
46372 | maybe-clean-target-libitm: | |
46373 | @if target-libitm | |
46374 | maybe-clean-target-libitm: clean-target-libitm | |
46375 | ||
46376 | clean-target-libitm: | |
46377 | @: $(MAKE); $(unstage) | |
22121df0 | 46378 | @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \ |
7ec59b9e L |
46379 | r=`${PWD_COMMAND}`; export r; \ |
46380 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46381 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46382 | echo "Doing clean in $(TARGET_SUBDIR)/libitm"; \ |
7ec59b9e L |
46383 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46384 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46385 | done; \ | |
46386 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46387 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46388 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46389 | "RANLIB=$${RANLIB}" \ | |
46390 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46391 | clean) \ | |
46392 | || exit 1 | |
46393 | ||
46394 | @endif target-libitm | |
46395 | ||
46396 | .PHONY: maybe-distclean-target-libitm distclean-target-libitm | |
46397 | maybe-distclean-target-libitm: | |
46398 | @if target-libitm | |
46399 | maybe-distclean-target-libitm: distclean-target-libitm | |
46400 | ||
46401 | distclean-target-libitm: | |
46402 | @: $(MAKE); $(unstage) | |
22121df0 | 46403 | @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \ |
7ec59b9e L |
46404 | r=`${PWD_COMMAND}`; export r; \ |
46405 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46406 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46407 | echo "Doing distclean in $(TARGET_SUBDIR)/libitm"; \ |
7ec59b9e L |
46408 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46409 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46410 | done; \ | |
46411 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46412 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46413 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46414 | "RANLIB=$${RANLIB}" \ | |
46415 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46416 | distclean) \ | |
46417 | || exit 1 | |
46418 | ||
46419 | @endif target-libitm | |
46420 | ||
46421 | .PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm | |
46422 | maybe-maintainer-clean-target-libitm: | |
46423 | @if target-libitm | |
46424 | maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm | |
46425 | ||
46426 | maintainer-clean-target-libitm: | |
46427 | @: $(MAKE); $(unstage) | |
22121df0 | 46428 | @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \ |
7ec59b9e L |
46429 | r=`${PWD_COMMAND}`; export r; \ |
46430 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46431 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46432 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm"; \ |
7ec59b9e L |
46433 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46434 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46435 | done; \ | |
46436 | (cd $(TARGET_SUBDIR)/libitm && \ | |
46437 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46438 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46439 | "RANLIB=$${RANLIB}" \ | |
46440 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46441 | maintainer-clean) \ | |
46442 | || exit 1 | |
46443 | ||
46444 | @endif target-libitm | |
46445 | ||
46446 | ||
46447 | ||
46448 | ||
46449 | ||
46450 | .PHONY: configure-target-libatomic maybe-configure-target-libatomic | |
46451 | maybe-configure-target-libatomic: | |
46452 | @if gcc-bootstrap | |
46453 | configure-target-libatomic: stage_current | |
46454 | @endif gcc-bootstrap | |
46455 | @if target-libatomic | |
46456 | maybe-configure-target-libatomic: configure-target-libatomic | |
46457 | configure-target-libatomic: | |
46458 | @: $(MAKE); $(unstage) | |
46459 | @r=`${PWD_COMMAND}`; export r; \ | |
46460 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46461 | echo "Checking multilib configuration for libatomic..."; \ | |
22121df0 L |
46462 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \ |
46463 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null; \ | |
7ec59b9e L |
46464 | if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \ |
46465 | if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \ | |
46466 | rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \ | |
46467 | else \ | |
46468 | rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \ | |
46469 | mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \ | |
46470 | fi; \ | |
46471 | else \ | |
46472 | mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \ | |
46473 | fi; \ | |
46474 | test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \ | |
22121df0 | 46475 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \ |
7ec59b9e L |
46476 | $(NORMAL_TARGET_EXPORTS) \ |
46477 | echo Configuring in $(TARGET_SUBDIR)/libatomic; \ | |
46478 | cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \ | |
46479 | case $(srcdir) in \ | |
46480 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
46481 | *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \ | |
46482 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
46483 | esac; \ | |
1b6c0831 | 46484 | module_srcdir=libatomic; \ |
7ec59b9e | 46485 | rm -f no-such-file || : ; \ |
1b6c0831 L |
46486 | CONFIG_SITE=no-such-file $(SHELL) \ |
46487 | $$s/$$module_srcdir/configure \ | |
46488 | --srcdir=$${topdir}/$$module_srcdir \ | |
7ec59b9e | 46489 | $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ |
1b6c0831 | 46490 | --target=${target_alias} \ |
7ec59b9e L |
46491 | || exit 1 |
46492 | @endif target-libatomic | |
46493 | ||
46494 | ||
46495 | ||
46496 | ||
46497 | ||
46498 | .PHONY: all-target-libatomic maybe-all-target-libatomic | |
46499 | maybe-all-target-libatomic: | |
46500 | @if gcc-bootstrap | |
46501 | all-target-libatomic: stage_current | |
46502 | @endif gcc-bootstrap | |
46503 | @if target-libatomic | |
46504 | TARGET-target-libatomic=all | |
46505 | maybe-all-target-libatomic: all-target-libatomic | |
46506 | all-target-libatomic: configure-target-libatomic | |
46507 | @: $(MAKE); $(unstage) | |
46508 | @r=`${PWD_COMMAND}`; export r; \ | |
46509 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46510 | $(NORMAL_TARGET_EXPORTS) \ | |
46511 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
b3676d82 | 46512 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \ |
7ec59b9e L |
46513 | $(TARGET-target-libatomic)) |
46514 | @endif target-libatomic | |
46515 | ||
46516 | ||
46517 | ||
46518 | ||
46519 | ||
46520 | .PHONY: check-target-libatomic maybe-check-target-libatomic | |
46521 | maybe-check-target-libatomic: | |
46522 | @if target-libatomic | |
46523 | maybe-check-target-libatomic: check-target-libatomic | |
46524 | ||
46525 | check-target-libatomic: | |
46526 | @: $(MAKE); $(unstage) | |
46527 | @r=`${PWD_COMMAND}`; export r; \ | |
46528 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46529 | $(NORMAL_TARGET_EXPORTS) \ | |
46530 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46531 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
46532 | ||
46533 | @endif target-libatomic | |
46534 | ||
46535 | .PHONY: install-target-libatomic maybe-install-target-libatomic | |
46536 | maybe-install-target-libatomic: | |
46537 | @if target-libatomic | |
46538 | maybe-install-target-libatomic: install-target-libatomic | |
46539 | ||
46540 | install-target-libatomic: installdirs | |
46541 | @: $(MAKE); $(unstage) | |
46542 | @r=`${PWD_COMMAND}`; export r; \ | |
46543 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46544 | $(NORMAL_TARGET_EXPORTS) \ | |
46545 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46546 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
46547 | ||
46548 | @endif target-libatomic | |
46549 | ||
46550 | .PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic | |
46551 | maybe-install-strip-target-libatomic: | |
46552 | @if target-libatomic | |
46553 | maybe-install-strip-target-libatomic: install-strip-target-libatomic | |
46554 | ||
46555 | install-strip-target-libatomic: installdirs | |
46556 | @: $(MAKE); $(unstage) | |
46557 | @r=`${PWD_COMMAND}`; export r; \ | |
46558 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46559 | $(NORMAL_TARGET_EXPORTS) \ | |
46560 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46561 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip) | |
46562 | ||
46563 | @endif target-libatomic | |
46564 | ||
46565 | # Other targets (info, dvi, pdf, etc.) | |
46566 | ||
46567 | .PHONY: maybe-info-target-libatomic info-target-libatomic | |
46568 | maybe-info-target-libatomic: | |
46569 | @if target-libatomic | |
46570 | maybe-info-target-libatomic: info-target-libatomic | |
46571 | ||
46572 | info-target-libatomic: \ | |
46573 | configure-target-libatomic | |
46574 | @: $(MAKE); $(unstage) | |
22121df0 | 46575 | @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \ |
7ec59b9e L |
46576 | r=`${PWD_COMMAND}`; export r; \ |
46577 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46578 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46579 | echo "Doing info in $(TARGET_SUBDIR)/libatomic"; \ |
7ec59b9e L |
46580 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46581 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46582 | done; \ | |
46583 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46584 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46585 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46586 | "RANLIB=$${RANLIB}" \ | |
46587 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46588 | info) \ | |
46589 | || exit 1 | |
46590 | ||
46591 | @endif target-libatomic | |
46592 | ||
46593 | .PHONY: maybe-dvi-target-libatomic dvi-target-libatomic | |
46594 | maybe-dvi-target-libatomic: | |
46595 | @if target-libatomic | |
46596 | maybe-dvi-target-libatomic: dvi-target-libatomic | |
46597 | ||
46598 | dvi-target-libatomic: \ | |
46599 | configure-target-libatomic | |
46600 | @: $(MAKE); $(unstage) | |
22121df0 | 46601 | @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \ |
7ec59b9e L |
46602 | r=`${PWD_COMMAND}`; export r; \ |
46603 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46604 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46605 | echo "Doing dvi in $(TARGET_SUBDIR)/libatomic"; \ |
7ec59b9e L |
46606 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46607 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46608 | done; \ | |
46609 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46610 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46611 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46612 | "RANLIB=$${RANLIB}" \ | |
46613 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46614 | dvi) \ | |
46615 | || exit 1 | |
46616 | ||
46617 | @endif target-libatomic | |
46618 | ||
46619 | .PHONY: maybe-pdf-target-libatomic pdf-target-libatomic | |
46620 | maybe-pdf-target-libatomic: | |
46621 | @if target-libatomic | |
46622 | maybe-pdf-target-libatomic: pdf-target-libatomic | |
46623 | ||
46624 | pdf-target-libatomic: \ | |
46625 | configure-target-libatomic | |
46626 | @: $(MAKE); $(unstage) | |
22121df0 | 46627 | @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \ |
7ec59b9e L |
46628 | r=`${PWD_COMMAND}`; export r; \ |
46629 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46630 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46631 | echo "Doing pdf in $(TARGET_SUBDIR)/libatomic"; \ |
7ec59b9e L |
46632 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46633 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46634 | done; \ | |
46635 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46636 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46637 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46638 | "RANLIB=$${RANLIB}" \ | |
46639 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46640 | pdf) \ | |
46641 | || exit 1 | |
46642 | ||
46643 | @endif target-libatomic | |
46644 | ||
46645 | .PHONY: maybe-html-target-libatomic html-target-libatomic | |
46646 | maybe-html-target-libatomic: | |
46647 | @if target-libatomic | |
46648 | maybe-html-target-libatomic: html-target-libatomic | |
46649 | ||
46650 | html-target-libatomic: \ | |
46651 | configure-target-libatomic | |
46652 | @: $(MAKE); $(unstage) | |
22121df0 | 46653 | @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \ |
7ec59b9e L |
46654 | r=`${PWD_COMMAND}`; export r; \ |
46655 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46656 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46657 | echo "Doing html in $(TARGET_SUBDIR)/libatomic"; \ |
7ec59b9e L |
46658 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46659 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46660 | done; \ | |
46661 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46662 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46663 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46664 | "RANLIB=$${RANLIB}" \ | |
46665 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46666 | html) \ | |
46667 | || exit 1 | |
46668 | ||
46669 | @endif target-libatomic | |
46670 | ||
46671 | .PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic | |
46672 | maybe-TAGS-target-libatomic: | |
46673 | @if target-libatomic | |
46674 | maybe-TAGS-target-libatomic: TAGS-target-libatomic | |
46675 | ||
46676 | TAGS-target-libatomic: \ | |
46677 | configure-target-libatomic | |
46678 | @: $(MAKE); $(unstage) | |
22121df0 | 46679 | @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \ |
7ec59b9e L |
46680 | r=`${PWD_COMMAND}`; export r; \ |
46681 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46682 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46683 | echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic"; \ |
7ec59b9e L |
46684 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46685 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46686 | done; \ | |
46687 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46688 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46689 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46690 | "RANLIB=$${RANLIB}" \ | |
46691 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46692 | TAGS) \ | |
46693 | || exit 1 | |
46694 | ||
46695 | @endif target-libatomic | |
46696 | ||
46697 | .PHONY: maybe-install-info-target-libatomic install-info-target-libatomic | |
46698 | maybe-install-info-target-libatomic: | |
46699 | @if target-libatomic | |
46700 | maybe-install-info-target-libatomic: install-info-target-libatomic | |
46701 | ||
46702 | install-info-target-libatomic: \ | |
46703 | configure-target-libatomic \ | |
46704 | info-target-libatomic | |
46705 | @: $(MAKE); $(unstage) | |
22121df0 | 46706 | @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \ |
7ec59b9e L |
46707 | r=`${PWD_COMMAND}`; export r; \ |
46708 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46709 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46710 | echo "Doing install-info in $(TARGET_SUBDIR)/libatomic"; \ |
7ec59b9e L |
46711 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46712 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46713 | done; \ | |
46714 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46715 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46716 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46717 | "RANLIB=$${RANLIB}" \ | |
46718 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46719 | install-info) \ | |
46720 | || exit 1 | |
46721 | ||
46722 | @endif target-libatomic | |
46723 | ||
46724 | .PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic | |
46725 | maybe-install-pdf-target-libatomic: | |
46726 | @if target-libatomic | |
46727 | maybe-install-pdf-target-libatomic: install-pdf-target-libatomic | |
46728 | ||
46729 | install-pdf-target-libatomic: \ | |
46730 | configure-target-libatomic \ | |
46731 | pdf-target-libatomic | |
46732 | @: $(MAKE); $(unstage) | |
22121df0 | 46733 | @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \ |
7ec59b9e L |
46734 | r=`${PWD_COMMAND}`; export r; \ |
46735 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46736 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46737 | echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic"; \ |
7ec59b9e L |
46738 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46739 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46740 | done; \ | |
46741 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46742 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46743 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46744 | "RANLIB=$${RANLIB}" \ | |
46745 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46746 | install-pdf) \ | |
46747 | || exit 1 | |
46748 | ||
46749 | @endif target-libatomic | |
46750 | ||
46751 | .PHONY: maybe-install-html-target-libatomic install-html-target-libatomic | |
46752 | maybe-install-html-target-libatomic: | |
46753 | @if target-libatomic | |
46754 | maybe-install-html-target-libatomic: install-html-target-libatomic | |
46755 | ||
46756 | install-html-target-libatomic: \ | |
46757 | configure-target-libatomic \ | |
46758 | html-target-libatomic | |
46759 | @: $(MAKE); $(unstage) | |
22121df0 | 46760 | @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \ |
7ec59b9e L |
46761 | r=`${PWD_COMMAND}`; export r; \ |
46762 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46763 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46764 | echo "Doing install-html in $(TARGET_SUBDIR)/libatomic"; \ |
7ec59b9e L |
46765 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46766 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46767 | done; \ | |
46768 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46769 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46770 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46771 | "RANLIB=$${RANLIB}" \ | |
46772 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46773 | install-html) \ | |
46774 | || exit 1 | |
46775 | ||
46776 | @endif target-libatomic | |
46777 | ||
46778 | .PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic | |
46779 | maybe-installcheck-target-libatomic: | |
46780 | @if target-libatomic | |
46781 | maybe-installcheck-target-libatomic: installcheck-target-libatomic | |
46782 | ||
46783 | installcheck-target-libatomic: \ | |
46784 | configure-target-libatomic | |
46785 | @: $(MAKE); $(unstage) | |
22121df0 | 46786 | @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \ |
7ec59b9e L |
46787 | r=`${PWD_COMMAND}`; export r; \ |
46788 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46789 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46790 | echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic"; \ |
7ec59b9e L |
46791 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46792 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46793 | done; \ | |
46794 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46795 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46796 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46797 | "RANLIB=$${RANLIB}" \ | |
46798 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46799 | installcheck) \ | |
46800 | || exit 1 | |
46801 | ||
46802 | @endif target-libatomic | |
46803 | ||
46804 | .PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic | |
46805 | maybe-mostlyclean-target-libatomic: | |
46806 | @if target-libatomic | |
46807 | maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic | |
46808 | ||
46809 | mostlyclean-target-libatomic: | |
46810 | @: $(MAKE); $(unstage) | |
22121df0 | 46811 | @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \ |
7ec59b9e L |
46812 | r=`${PWD_COMMAND}`; export r; \ |
46813 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46814 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46815 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic"; \ |
7ec59b9e L |
46816 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46817 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46818 | done; \ | |
46819 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46820 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46821 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46822 | "RANLIB=$${RANLIB}" \ | |
46823 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46824 | mostlyclean) \ | |
46825 | || exit 1 | |
46826 | ||
46827 | @endif target-libatomic | |
46828 | ||
46829 | .PHONY: maybe-clean-target-libatomic clean-target-libatomic | |
46830 | maybe-clean-target-libatomic: | |
46831 | @if target-libatomic | |
46832 | maybe-clean-target-libatomic: clean-target-libatomic | |
46833 | ||
46834 | clean-target-libatomic: | |
46835 | @: $(MAKE); $(unstage) | |
22121df0 | 46836 | @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \ |
7ec59b9e L |
46837 | r=`${PWD_COMMAND}`; export r; \ |
46838 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46839 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46840 | echo "Doing clean in $(TARGET_SUBDIR)/libatomic"; \ |
7ec59b9e L |
46841 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46842 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46843 | done; \ | |
46844 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46845 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46846 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46847 | "RANLIB=$${RANLIB}" \ | |
46848 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46849 | clean) \ | |
46850 | || exit 1 | |
46851 | ||
46852 | @endif target-libatomic | |
46853 | ||
46854 | .PHONY: maybe-distclean-target-libatomic distclean-target-libatomic | |
46855 | maybe-distclean-target-libatomic: | |
46856 | @if target-libatomic | |
46857 | maybe-distclean-target-libatomic: distclean-target-libatomic | |
46858 | ||
46859 | distclean-target-libatomic: | |
46860 | @: $(MAKE); $(unstage) | |
22121df0 | 46861 | @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \ |
7ec59b9e L |
46862 | r=`${PWD_COMMAND}`; export r; \ |
46863 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46864 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46865 | echo "Doing distclean in $(TARGET_SUBDIR)/libatomic"; \ |
7ec59b9e L |
46866 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46867 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46868 | done; \ | |
46869 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46870 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46871 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46872 | "RANLIB=$${RANLIB}" \ | |
46873 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46874 | distclean) \ | |
46875 | || exit 1 | |
46876 | ||
46877 | @endif target-libatomic | |
46878 | ||
46879 | .PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic | |
46880 | maybe-maintainer-clean-target-libatomic: | |
46881 | @if target-libatomic | |
46882 | maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic | |
46883 | ||
46884 | maintainer-clean-target-libatomic: | |
46885 | @: $(MAKE); $(unstage) | |
22121df0 | 46886 | @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \ |
7ec59b9e L |
46887 | r=`${PWD_COMMAND}`; export r; \ |
46888 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46889 | $(NORMAL_TARGET_EXPORTS) \ | |
22121df0 | 46890 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic"; \ |
7ec59b9e L |
46891 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
46892 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
46893 | done; \ | |
46894 | (cd $(TARGET_SUBDIR)/libatomic && \ | |
46895 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
46896 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
46897 | "RANLIB=$${RANLIB}" \ | |
46898 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \ | |
46899 | maintainer-clean) \ | |
46900 | || exit 1 | |
46901 | ||
46902 | @endif target-libatomic | |
46903 | ||
46904 | ||
46905 | ||
7ec59b9e L |
46906 | @if target-libgomp |
46907 | .PHONY: check-target-libgomp-c++ | |
46908 | check-target-libgomp-c++: | |
46909 | $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp | |
46910 | ||
e0541124 EB |
46911 | .PHONY: check-target-libgomp-fortran |
46912 | check-target-libgomp-fortran: | |
46913 | $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) fortran.exp" check-target-libgomp | |
46914 | ||
7ec59b9e L |
46915 | @endif target-libgomp |
46916 | ||
46917 | @if target-libitm | |
46918 | .PHONY: check-target-libitm-c++ | |
46919 | check-target-libitm-c++: | |
46920 | $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm | |
46921 | ||
46922 | @endif target-libitm | |
46923 | ||
15723a45 NN |
46924 | # ---------- |
46925 | # GCC module | |
46926 | # ---------- | |
46927 | ||
319cab08 | 46928 | @if gcc-no-bootstrap |
252b5132 | 46929 | .PHONY: cross |
72b2455a | 46930 | cross: all-build all-gas all-ld |
b40e3958 L |
46931 | @r=`${PWD_COMMAND}`; export r; \ |
46932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7ffa0b57 | 46933 | $(HOST_EXPORTS) \ |
252b5132 | 46934 | echo "Building the C and C++ compiler"; \ |
5cec67bf | 46935 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" |
b40e3958 | 46936 | @r=`${PWD_COMMAND}`; export r; \ |
22121df0 | 46937 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
252b5132 | 46938 | echo "Building runtime libraries"; \ |
656fdd47 | 46939 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all |
319cab08 | 46940 | @endif gcc-no-bootstrap |
252b5132 | 46941 | |
6bd3dfaa | 46942 | @if gcc |
c50523ce L |
46943 | |
46944 | .PHONY: check-gcc-c check-c | |
46945 | check-gcc-c: | |
46946 | r=`${PWD_COMMAND}`; export r; \ | |
46947 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46948 | $(HOST_EXPORTS) \ | |
46949 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc); | |
46950 | check-c: check-gcc-c | |
46951 | ||
46952 | .PHONY: check-gcc-c++ check-c++ | |
7d695d07 | 46953 | check-gcc-c++: |
c50523ce L |
46954 | r=`${PWD_COMMAND}`; export r; \ |
46955 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46956 | $(HOST_EXPORTS) \ | |
7ec59b9e | 46957 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); |
cb49a9e1 | 46958 | check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++ |
c50523ce L |
46959 | |
46960 | .PHONY: check-gcc-fortran check-fortran | |
46961 | check-gcc-fortran: | |
46962 | r=`${PWD_COMMAND}`; export r; \ | |
46963 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46964 | $(HOST_EXPORTS) \ | |
46965 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran); | |
e0541124 | 46966 | check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran check-target-libgomp-fortran |
c50523ce | 46967 | |
c50523ce L |
46968 | .PHONY: check-gcc-ada check-ada |
46969 | check-gcc-ada: | |
46970 | r=`${PWD_COMMAND}`; export r; \ | |
46971 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46972 | $(HOST_EXPORTS) \ | |
46973 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada); | |
46974 | check-ada: check-gcc-ada check-target-libada | |
46975 | ||
46976 | .PHONY: check-gcc-objc check-objc | |
46977 | check-gcc-objc: | |
46978 | r=`${PWD_COMMAND}`; export r; \ | |
46979 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46980 | $(HOST_EXPORTS) \ | |
46981 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc); | |
46982 | check-objc: check-gcc-objc check-target-libobjc | |
46983 | ||
46984 | .PHONY: check-gcc-obj-c++ check-obj-c++ | |
46985 | check-gcc-obj-c++: | |
46986 | r=`${PWD_COMMAND}`; export r; \ | |
46987 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46988 | $(HOST_EXPORTS) \ | |
46989 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++); | |
46990 | check-obj-c++: check-gcc-obj-c++ | |
7d695d07 | 46991 | |
e552509b ILT |
46992 | .PHONY: check-gcc-go check-go |
46993 | check-gcc-go: | |
46994 | r=`${PWD_COMMAND}`; export r; \ | |
46995 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
46996 | $(HOST_EXPORTS) \ | |
46997 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go); | |
46998 | check-go: check-gcc-go check-target-libgo | |
46999 | ||
252b5132 | 47000 | |
7ec59b9e L |
47001 | # The gcc part of install-no-fixedincludes, which relies on an intimate |
47002 | # knowledge of how a number of gcc internal targets (inter)operate. Delegate. | |
47003 | .PHONY: gcc-install-no-fixedincludes | |
47004 | gcc-install-no-fixedincludes: | |
15723a45 | 47005 | @if [ -f ./gcc/Makefile ]; then \ |
b40e3958 | 47006 | r=`${PWD_COMMAND}`; export r; \ |
7ec59b9e | 47007 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
7ffa0b57 | 47008 | $(HOST_EXPORTS) \ |
7ec59b9e L |
47009 | (cd ./gcc \ |
47010 | && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \ | |
15723a45 | 47011 | else true; fi |
6bd3dfaa | 47012 | @endif gcc |
4fa63067 | 47013 | |
b813574b PB |
47014 | # --------------------- |
47015 | # GCC bootstrap support | |
47016 | # --------------------- | |
4fa63067 | 47017 | |
b813574b PB |
47018 | # We track the current stage (the one in 'gcc') in the stage_current file. |
47019 | # stage_last instead tracks the stage that was built last. These targets | |
47020 | # are dummy when toplevel bootstrap is not active. | |
4fa63067 | 47021 | |
f70224b5 | 47022 | # While making host and target tools, symlinks to the final stage must be |
0aed8855 PB |
47023 | # there, so $(unstage) should be run at various points. To avoid excessive |
47024 | # recursive invocations of make, we "inline" them using a variable. These | |
47025 | # must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)" | |
47026 | # to avoid warnings from the GNU Make job server. | |
f70224b5 PB |
47027 | |
47028 | unstage = : | |
47029 | stage = : | |
c52c6897 | 47030 | current_stage = "" |
f70224b5 | 47031 | |
b813574b | 47032 | @if gcc-bootstrap |
9daf3993 | 47033 | unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi |
f6d183c0 | 47034 | stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi |
c52c6897 | 47035 | current_stage = "`cat stage_current 2> /dev/null`" |
b813574b | 47036 | @endif gcc-bootstrap |
4fa63067 | 47037 | |
f70224b5 PB |
47038 | .PHONY: unstage stage |
47039 | unstage: | |
0aed8855 | 47040 | @: $(MAKE); $(unstage) |
b813574b | 47041 | stage: |
0aed8855 | 47042 | @: $(MAKE); $(stage) |
1d39f329 | 47043 | |
80911fe1 PB |
47044 | # Disable commands for lean bootstrap. |
47045 | LEAN = false | |
47046 | ||
dfdffa2c PB |
47047 | # We name the build directories for the various stages "stage1-gcc", |
47048 | # "stage2-gcc","stage3-gcc", etc. | |
47049 | ||
47050 | # Since the 'compare' process will fail (on debugging information) if any | |
47051 | # directory names are different, we need to link the gcc directory for | |
0aed8855 | 47052 | # the previous stage to a constant name ('prev-gcc'), and to make the name of |
dfdffa2c PB |
47053 | # the build directories constant as well. For the latter, we use naked names |
47054 | # like 'gcc', because the scripts in that directory assume it. We use | |
47055 | # mv on platforms where symlinks to directories do not work or are not | |
47056 | # reliable. | |
47057 | ||
1d39f329 NN |
47058 | # 'touch' doesn't work right on some platforms. |
47059 | STAMP = echo timestamp > | |
47060 | ||
dfdffa2c PB |
47061 | # We only want to compare .o files, so set this! |
47062 | objext = .o | |
47063 | ||
dfdffa2c | 47064 | |
319cab08 | 47065 | .PHONY: stage1-start stage1-end |
dfdffa2c | 47066 | |
656fdd47 | 47067 | stage1-start:: |
0aed8855 | 47068 | @: $(MAKE); $(stage); \ |
22121df0 | 47069 | echo stage1 > stage_current; \ |
b00612cc | 47070 | echo stage1 > stage_last; \ |
0aed8855 | 47071 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR) |
72b2455a | 47072 | @if bfd |
b00612cc PB |
47073 | @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \ |
47074 | mkdir stage1-bfd; \ | |
22121df0 | 47075 | mv stage1-bfd bfd |
72b2455a PB |
47076 | @endif bfd |
47077 | @if opcodes | |
b00612cc PB |
47078 | @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \ |
47079 | mkdir stage1-opcodes; \ | |
22121df0 | 47080 | mv stage1-opcodes opcodes |
72b2455a PB |
47081 | @endif opcodes |
47082 | @if binutils | |
b00612cc PB |
47083 | @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \ |
47084 | mkdir stage1-binutils; \ | |
22121df0 | 47085 | mv stage1-binutils binutils |
72b2455a | 47086 | @endif binutils |
201f096f | 47087 | @if fixincludes |
47088 | @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \ | |
47089 | mkdir stage1-fixincludes; \ | |
22121df0 | 47090 | mv stage1-fixincludes fixincludes |
201f096f | 47091 | @endif fixincludes |
72b2455a | 47092 | @if gas |
b00612cc PB |
47093 | @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \ |
47094 | mkdir stage1-gas; \ | |
22121df0 | 47095 | mv stage1-gas gas |
72b2455a PB |
47096 | @endif gas |
47097 | @if gcc | |
b00612cc PB |
47098 | @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \ |
47099 | mkdir stage1-gcc; \ | |
22121df0 | 47100 | mv stage1-gcc gcc |
72b2455a | 47101 | @endif gcc |
4b900473 PB |
47102 | @if gmp |
47103 | @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \ | |
47104 | mkdir stage1-gmp; \ | |
22121df0 | 47105 | mv stage1-gmp gmp |
4b900473 PB |
47106 | @endif gmp |
47107 | @if mpfr | |
47108 | @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \ | |
47109 | mkdir stage1-mpfr; \ | |
22121df0 | 47110 | mv stage1-mpfr mpfr |
4b900473 | 47111 | @endif mpfr |
e8a5fa9c RW |
47112 | @if mpc |
47113 | @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \ | |
47114 | mkdir stage1-mpc; \ | |
22121df0 | 47115 | mv stage1-mpc mpc |
e8a5fa9c | 47116 | @endif mpc |
7ec59b9e L |
47117 | @if isl |
47118 | @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \ | |
47119 | mkdir stage1-isl; \ | |
22121df0 | 47120 | mv stage1-isl isl |
7ec59b9e | 47121 | @endif isl |
1f53ca9a AO |
47122 | @if libelf |
47123 | @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \ | |
47124 | mkdir stage1-libelf; \ | |
22121df0 | 47125 | mv stage1-libelf libelf |
1f53ca9a | 47126 | @endif libelf |
93f9b408 ILT |
47127 | @if gold |
47128 | @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \ | |
47129 | mkdir stage1-gold; \ | |
22121df0 | 47130 | mv stage1-gold gold |
93f9b408 | 47131 | @endif gold |
72b2455a | 47132 | @if intl |
b00612cc PB |
47133 | @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \ |
47134 | mkdir stage1-intl; \ | |
22121df0 | 47135 | mv stage1-intl intl |
72b2455a PB |
47136 | @endif intl |
47137 | @if ld | |
b00612cc PB |
47138 | @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \ |
47139 | mkdir stage1-ld; \ | |
22121df0 | 47140 | mv stage1-ld ld |
72b2455a | 47141 | @endif ld |
2bf680c4 ILT |
47142 | @if libbacktrace |
47143 | @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \ | |
47144 | mkdir stage1-libbacktrace; \ | |
22121df0 | 47145 | mv stage1-libbacktrace libbacktrace |
2bf680c4 | 47146 | @endif libbacktrace |
72b2455a | 47147 | @if libcpp |
b00612cc PB |
47148 | @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \ |
47149 | mkdir stage1-libcpp; \ | |
22121df0 | 47150 | mv stage1-libcpp libcpp |
72b2455a | 47151 | @endif libcpp |
be01d343 PB |
47152 | @if libdecnumber |
47153 | @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \ | |
47154 | mkdir stage1-libdecnumber; \ | |
22121df0 | 47155 | mv stage1-libdecnumber libdecnumber |
be01d343 | 47156 | @endif libdecnumber |
72b2455a | 47157 | @if libiberty |
b00612cc PB |
47158 | @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \ |
47159 | mkdir stage1-libiberty; \ | |
22121df0 | 47160 | mv stage1-libiberty libiberty |
72b2455a | 47161 | @endif libiberty |
1b6c0831 L |
47162 | @if libiberty-linker-plugin |
47163 | @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \ | |
47164 | mkdir stage1-libiberty-linker-plugin; \ | |
22121df0 | 47165 | mv stage1-libiberty-linker-plugin libiberty-linker-plugin |
1b6c0831 | 47166 | @endif libiberty-linker-plugin |
016a3251 DD |
47167 | @if libiconv |
47168 | @cd $(HOST_SUBDIR); [ -d stage1-libiconv ] || \ | |
47169 | mkdir stage1-libiconv; \ | |
47170 | mv stage1-libiconv libiconv | |
47171 | @endif libiconv | |
72b2455a | 47172 | @if zlib |
b00612cc PB |
47173 | @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \ |
47174 | mkdir stage1-zlib; \ | |
22121df0 | 47175 | mv stage1-zlib zlib |
72b2455a | 47176 | @endif zlib |
700d40ca ILT |
47177 | @if lto-plugin |
47178 | @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \ | |
47179 | mkdir stage1-lto-plugin; \ | |
22121df0 | 47180 | mv stage1-lto-plugin lto-plugin |
700d40ca | 47181 | @endif lto-plugin |
0aed8855 PB |
47182 | @[ -d stage1-$(TARGET_SUBDIR) ] || \ |
47183 | mkdir stage1-$(TARGET_SUBDIR); \ | |
22121df0 | 47184 | mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR) |
dfdffa2c | 47185 | |
80911fe1 | 47186 | stage1-end:: |
72b2455a | 47187 | @if bfd |
22121df0 L |
47188 | @if test -d $(HOST_SUBDIR)/bfd; then \ |
47189 | cd $(HOST_SUBDIR); mv bfd stage1-bfd; \ | |
0aed8855 | 47190 | fi |
72b2455a PB |
47191 | @endif bfd |
47192 | @if opcodes | |
22121df0 L |
47193 | @if test -d $(HOST_SUBDIR)/opcodes; then \ |
47194 | cd $(HOST_SUBDIR); mv opcodes stage1-opcodes; \ | |
0aed8855 | 47195 | fi |
72b2455a PB |
47196 | @endif opcodes |
47197 | @if binutils | |
22121df0 L |
47198 | @if test -d $(HOST_SUBDIR)/binutils; then \ |
47199 | cd $(HOST_SUBDIR); mv binutils stage1-binutils; \ | |
0aed8855 | 47200 | fi |
72b2455a | 47201 | @endif binutils |
201f096f | 47202 | @if fixincludes |
22121df0 L |
47203 | @if test -d $(HOST_SUBDIR)/fixincludes; then \ |
47204 | cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes; \ | |
201f096f | 47205 | fi |
47206 | @endif fixincludes | |
72b2455a | 47207 | @if gas |
22121df0 L |
47208 | @if test -d $(HOST_SUBDIR)/gas; then \ |
47209 | cd $(HOST_SUBDIR); mv gas stage1-gas; \ | |
0aed8855 | 47210 | fi |
72b2455a PB |
47211 | @endif gas |
47212 | @if gcc | |
22121df0 L |
47213 | @if test -d $(HOST_SUBDIR)/gcc; then \ |
47214 | cd $(HOST_SUBDIR); mv gcc stage1-gcc; \ | |
0aed8855 | 47215 | fi |
72b2455a | 47216 | @endif gcc |
4b900473 | 47217 | @if gmp |
22121df0 L |
47218 | @if test -d $(HOST_SUBDIR)/gmp; then \ |
47219 | cd $(HOST_SUBDIR); mv gmp stage1-gmp; \ | |
4b900473 PB |
47220 | fi |
47221 | @endif gmp | |
47222 | @if mpfr | |
22121df0 L |
47223 | @if test -d $(HOST_SUBDIR)/mpfr; then \ |
47224 | cd $(HOST_SUBDIR); mv mpfr stage1-mpfr; \ | |
4b900473 PB |
47225 | fi |
47226 | @endif mpfr | |
e8a5fa9c | 47227 | @if mpc |
22121df0 L |
47228 | @if test -d $(HOST_SUBDIR)/mpc; then \ |
47229 | cd $(HOST_SUBDIR); mv mpc stage1-mpc; \ | |
e8a5fa9c RW |
47230 | fi |
47231 | @endif mpc | |
7ec59b9e | 47232 | @if isl |
22121df0 L |
47233 | @if test -d $(HOST_SUBDIR)/isl; then \ |
47234 | cd $(HOST_SUBDIR); mv isl stage1-isl; \ | |
e28c595f | 47235 | fi |
7ec59b9e | 47236 | @endif isl |
1f53ca9a | 47237 | @if libelf |
22121df0 L |
47238 | @if test -d $(HOST_SUBDIR)/libelf; then \ |
47239 | cd $(HOST_SUBDIR); mv libelf stage1-libelf; \ | |
1f53ca9a AO |
47240 | fi |
47241 | @endif libelf | |
93f9b408 | 47242 | @if gold |
22121df0 L |
47243 | @if test -d $(HOST_SUBDIR)/gold; then \ |
47244 | cd $(HOST_SUBDIR); mv gold stage1-gold; \ | |
93f9b408 ILT |
47245 | fi |
47246 | @endif gold | |
72b2455a | 47247 | @if intl |
22121df0 L |
47248 | @if test -d $(HOST_SUBDIR)/intl; then \ |
47249 | cd $(HOST_SUBDIR); mv intl stage1-intl; \ | |
0aed8855 | 47250 | fi |
72b2455a PB |
47251 | @endif intl |
47252 | @if ld | |
22121df0 L |
47253 | @if test -d $(HOST_SUBDIR)/ld; then \ |
47254 | cd $(HOST_SUBDIR); mv ld stage1-ld; \ | |
0aed8855 | 47255 | fi |
72b2455a | 47256 | @endif ld |
2bf680c4 | 47257 | @if libbacktrace |
22121df0 L |
47258 | @if test -d $(HOST_SUBDIR)/libbacktrace; then \ |
47259 | cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace; \ | |
2bf680c4 ILT |
47260 | fi |
47261 | @endif libbacktrace | |
72b2455a | 47262 | @if libcpp |
22121df0 L |
47263 | @if test -d $(HOST_SUBDIR)/libcpp; then \ |
47264 | cd $(HOST_SUBDIR); mv libcpp stage1-libcpp; \ | |
0aed8855 | 47265 | fi |
72b2455a | 47266 | @endif libcpp |
be01d343 | 47267 | @if libdecnumber |
22121df0 L |
47268 | @if test -d $(HOST_SUBDIR)/libdecnumber; then \ |
47269 | cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber; \ | |
0aed8855 | 47270 | fi |
be01d343 | 47271 | @endif libdecnumber |
72b2455a | 47272 | @if libiberty |
22121df0 L |
47273 | @if test -d $(HOST_SUBDIR)/libiberty; then \ |
47274 | cd $(HOST_SUBDIR); mv libiberty stage1-libiberty; \ | |
0aed8855 | 47275 | fi |
72b2455a | 47276 | @endif libiberty |
1b6c0831 | 47277 | @if libiberty-linker-plugin |
22121df0 L |
47278 | @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \ |
47279 | cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin; \ | |
1b6c0831 L |
47280 | fi |
47281 | @endif libiberty-linker-plugin | |
016a3251 DD |
47282 | @if libiconv |
47283 | @if test -d $(HOST_SUBDIR)/libiconv; then \ | |
47284 | cd $(HOST_SUBDIR); mv libiconv stage1-libiconv; \ | |
47285 | fi | |
47286 | @endif libiconv | |
72b2455a | 47287 | @if zlib |
22121df0 L |
47288 | @if test -d $(HOST_SUBDIR)/zlib; then \ |
47289 | cd $(HOST_SUBDIR); mv zlib stage1-zlib; \ | |
0aed8855 | 47290 | fi |
72b2455a | 47291 | @endif zlib |
700d40ca | 47292 | @if lto-plugin |
22121df0 L |
47293 | @if test -d $(HOST_SUBDIR)/lto-plugin; then \ |
47294 | cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \ | |
700d40ca ILT |
47295 | fi |
47296 | @endif lto-plugin | |
22121df0 L |
47297 | @if test -d $(TARGET_SUBDIR); then \ |
47298 | mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); \ | |
0aed8855 | 47299 | fi |
80911fe1 | 47300 | rm -f stage_current |
dfdffa2c | 47301 | |
973601e1 | 47302 | # Bubble a bug fix through all the stages up to stage 1. They are |
0aed8855 | 47303 | # remade, but not reconfigured. The next stage (if any) will not be |
675492f0 | 47304 | # reconfigured either. |
319cab08 | 47305 | .PHONY: stage1-bubble |
656fdd47 | 47306 | stage1-bubble:: |
e360f423 PB |
47307 | @r=`${PWD_COMMAND}`; export r; \ |
47308 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
22121df0 L |
47309 | if test -f stage1-lean ; then \ |
47310 | echo Skipping rebuild of stage1; \ | |
9cb3fa6f | 47311 | else \ |
f70224b5 PB |
47312 | $(MAKE) stage1-start; \ |
47313 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \ | |
9cb3fa6f | 47314 | fi |
72b2455a | 47315 | |
0df3d27f | 47316 | .PHONY: all-stage1 clean-stage1 |
0df3d27f | 47317 | do-clean: clean-stage1 |
0df3d27f | 47318 | |
72b2455a PB |
47319 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
47320 | # only possibility, but now it conflicts with no-bootstrap rules | |
47321 | @if gcc-bootstrap | |
47322 | ||
47323 | ||
47324 | ||
47325 | ||
0df3d27f | 47326 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
72b2455a | 47327 | |
0df3d27f | 47328 | .PHONY: distclean-stage1 |
72b2455a | 47329 | distclean-stage1:: |
0aed8855 | 47330 | @: $(MAKE); $(stage) |
e00a73e3 | 47331 | @test "`cat stage_last`" != stage1 || rm -f stage_last |
9cb3fa6f | 47332 | rm -rf stage1-* |
72b2455a PB |
47333 | |
47334 | ||
47335 | @endif gcc-bootstrap | |
47336 | ||
47337 | ||
47338 | .PHONY: stage2-start stage2-end | |
47339 | ||
47340 | stage2-start:: | |
0aed8855 | 47341 | @: $(MAKE); $(stage); \ |
22121df0 | 47342 | echo stage2 > stage_current; \ |
b00612cc | 47343 | echo stage2 > stage_last; \ |
0aed8855 | 47344 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR) |
72b2455a | 47345 | @if bfd |
b00612cc PB |
47346 | @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \ |
47347 | mkdir stage2-bfd; \ | |
22121df0 | 47348 | mv stage2-bfd bfd; \ |
80911fe1 | 47349 | mv stage1-bfd prev-bfd || test -f stage1-lean |
72b2455a PB |
47350 | @endif bfd |
47351 | @if opcodes | |
b00612cc PB |
47352 | @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \ |
47353 | mkdir stage2-opcodes; \ | |
22121df0 | 47354 | mv stage2-opcodes opcodes; \ |
80911fe1 | 47355 | mv stage1-opcodes prev-opcodes || test -f stage1-lean |
72b2455a PB |
47356 | @endif opcodes |
47357 | @if binutils | |
b00612cc PB |
47358 | @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \ |
47359 | mkdir stage2-binutils; \ | |
22121df0 | 47360 | mv stage2-binutils binutils; \ |
80911fe1 | 47361 | mv stage1-binutils prev-binutils || test -f stage1-lean |
72b2455a | 47362 | @endif binutils |
201f096f | 47363 | @if fixincludes |
47364 | @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \ | |
47365 | mkdir stage2-fixincludes; \ | |
22121df0 | 47366 | mv stage2-fixincludes fixincludes; \ |
201f096f | 47367 | mv stage1-fixincludes prev-fixincludes || test -f stage1-lean |
47368 | @endif fixincludes | |
72b2455a | 47369 | @if gas |
b00612cc PB |
47370 | @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \ |
47371 | mkdir stage2-gas; \ | |
22121df0 | 47372 | mv stage2-gas gas; \ |
80911fe1 | 47373 | mv stage1-gas prev-gas || test -f stage1-lean |
72b2455a PB |
47374 | @endif gas |
47375 | @if gcc | |
b00612cc PB |
47376 | @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \ |
47377 | mkdir stage2-gcc; \ | |
22121df0 | 47378 | mv stage2-gcc gcc; \ |
80911fe1 | 47379 | mv stage1-gcc prev-gcc || test -f stage1-lean |
72b2455a | 47380 | @endif gcc |
4b900473 PB |
47381 | @if gmp |
47382 | @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \ | |
47383 | mkdir stage2-gmp; \ | |
22121df0 | 47384 | mv stage2-gmp gmp; \ |
4b900473 PB |
47385 | mv stage1-gmp prev-gmp || test -f stage1-lean |
47386 | @endif gmp | |
47387 | @if mpfr | |
47388 | @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \ | |
47389 | mkdir stage2-mpfr; \ | |
22121df0 | 47390 | mv stage2-mpfr mpfr; \ |
4b900473 PB |
47391 | mv stage1-mpfr prev-mpfr || test -f stage1-lean |
47392 | @endif mpfr | |
e8a5fa9c RW |
47393 | @if mpc |
47394 | @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \ | |
47395 | mkdir stage2-mpc; \ | |
22121df0 | 47396 | mv stage2-mpc mpc; \ |
e8a5fa9c RW |
47397 | mv stage1-mpc prev-mpc || test -f stage1-lean |
47398 | @endif mpc | |
7ec59b9e L |
47399 | @if isl |
47400 | @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \ | |
47401 | mkdir stage2-isl; \ | |
22121df0 | 47402 | mv stage2-isl isl; \ |
7ec59b9e L |
47403 | mv stage1-isl prev-isl || test -f stage1-lean |
47404 | @endif isl | |
1f53ca9a AO |
47405 | @if libelf |
47406 | @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \ | |
47407 | mkdir stage2-libelf; \ | |
22121df0 | 47408 | mv stage2-libelf libelf; \ |
1f53ca9a AO |
47409 | mv stage1-libelf prev-libelf || test -f stage1-lean |
47410 | @endif libelf | |
93f9b408 ILT |
47411 | @if gold |
47412 | @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \ | |
47413 | mkdir stage2-gold; \ | |
22121df0 | 47414 | mv stage2-gold gold; \ |
93f9b408 ILT |
47415 | mv stage1-gold prev-gold || test -f stage1-lean |
47416 | @endif gold | |
72b2455a | 47417 | @if intl |
b00612cc PB |
47418 | @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \ |
47419 | mkdir stage2-intl; \ | |
22121df0 | 47420 | mv stage2-intl intl; \ |
80911fe1 | 47421 | mv stage1-intl prev-intl || test -f stage1-lean |
72b2455a PB |
47422 | @endif intl |
47423 | @if ld | |
b00612cc PB |
47424 | @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \ |
47425 | mkdir stage2-ld; \ | |
22121df0 | 47426 | mv stage2-ld ld; \ |
80911fe1 | 47427 | mv stage1-ld prev-ld || test -f stage1-lean |
72b2455a | 47428 | @endif ld |
2bf680c4 ILT |
47429 | @if libbacktrace |
47430 | @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \ | |
47431 | mkdir stage2-libbacktrace; \ | |
22121df0 | 47432 | mv stage2-libbacktrace libbacktrace; \ |
2bf680c4 ILT |
47433 | mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean |
47434 | @endif libbacktrace | |
72b2455a | 47435 | @if libcpp |
b00612cc PB |
47436 | @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \ |
47437 | mkdir stage2-libcpp; \ | |
22121df0 | 47438 | mv stage2-libcpp libcpp; \ |
80911fe1 | 47439 | mv stage1-libcpp prev-libcpp || test -f stage1-lean |
72b2455a | 47440 | @endif libcpp |
be01d343 PB |
47441 | @if libdecnumber |
47442 | @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \ | |
47443 | mkdir stage2-libdecnumber; \ | |
22121df0 | 47444 | mv stage2-libdecnumber libdecnumber; \ |
80911fe1 | 47445 | mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean |
be01d343 | 47446 | @endif libdecnumber |
72b2455a | 47447 | @if libiberty |
b00612cc PB |
47448 | @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \ |
47449 | mkdir stage2-libiberty; \ | |
22121df0 | 47450 | mv stage2-libiberty libiberty; \ |
80911fe1 | 47451 | mv stage1-libiberty prev-libiberty || test -f stage1-lean |
72b2455a | 47452 | @endif libiberty |
1b6c0831 L |
47453 | @if libiberty-linker-plugin |
47454 | @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \ | |
47455 | mkdir stage2-libiberty-linker-plugin; \ | |
22121df0 | 47456 | mv stage2-libiberty-linker-plugin libiberty-linker-plugin; \ |
1b6c0831 L |
47457 | mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean |
47458 | @endif libiberty-linker-plugin | |
016a3251 DD |
47459 | @if libiconv |
47460 | @cd $(HOST_SUBDIR); [ -d stage2-libiconv ] || \ | |
47461 | mkdir stage2-libiconv; \ | |
47462 | mv stage2-libiconv libiconv; \ | |
47463 | mv stage1-libiconv prev-libiconv || test -f stage1-lean | |
47464 | @endif libiconv | |
72b2455a | 47465 | @if zlib |
b00612cc PB |
47466 | @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \ |
47467 | mkdir stage2-zlib; \ | |
22121df0 | 47468 | mv stage2-zlib zlib; \ |
80911fe1 | 47469 | mv stage1-zlib prev-zlib || test -f stage1-lean |
72b2455a | 47470 | @endif zlib |
700d40ca ILT |
47471 | @if lto-plugin |
47472 | @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \ | |
47473 | mkdir stage2-lto-plugin; \ | |
22121df0 | 47474 | mv stage2-lto-plugin lto-plugin; \ |
700d40ca ILT |
47475 | mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean |
47476 | @endif lto-plugin | |
0aed8855 PB |
47477 | @[ -d stage2-$(TARGET_SUBDIR) ] || \ |
47478 | mkdir stage2-$(TARGET_SUBDIR); \ | |
22121df0 | 47479 | mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \ |
80911fe1 | 47480 | mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean |
72b2455a | 47481 | |
80911fe1 | 47482 | stage2-end:: |
72b2455a | 47483 | @if bfd |
22121df0 L |
47484 | @if test -d $(HOST_SUBDIR)/bfd; then \ |
47485 | cd $(HOST_SUBDIR); mv bfd stage2-bfd; \ | |
47486 | mv prev-bfd stage1-bfd; : ; \ | |
0aed8855 | 47487 | fi |
72b2455a PB |
47488 | @endif bfd |
47489 | @if opcodes | |
22121df0 L |
47490 | @if test -d $(HOST_SUBDIR)/opcodes; then \ |
47491 | cd $(HOST_SUBDIR); mv opcodes stage2-opcodes; \ | |
47492 | mv prev-opcodes stage1-opcodes; : ; \ | |
0aed8855 | 47493 | fi |
72b2455a PB |
47494 | @endif opcodes |
47495 | @if binutils | |
22121df0 L |
47496 | @if test -d $(HOST_SUBDIR)/binutils; then \ |
47497 | cd $(HOST_SUBDIR); mv binutils stage2-binutils; \ | |
47498 | mv prev-binutils stage1-binutils; : ; \ | |
0aed8855 | 47499 | fi |
72b2455a | 47500 | @endif binutils |
201f096f | 47501 | @if fixincludes |
22121df0 L |
47502 | @if test -d $(HOST_SUBDIR)/fixincludes; then \ |
47503 | cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes; \ | |
47504 | mv prev-fixincludes stage1-fixincludes; : ; \ | |
201f096f | 47505 | fi |
47506 | @endif fixincludes | |
72b2455a | 47507 | @if gas |
22121df0 L |
47508 | @if test -d $(HOST_SUBDIR)/gas; then \ |
47509 | cd $(HOST_SUBDIR); mv gas stage2-gas; \ | |
47510 | mv prev-gas stage1-gas; : ; \ | |
0aed8855 | 47511 | fi |
72b2455a PB |
47512 | @endif gas |
47513 | @if gcc | |
22121df0 L |
47514 | @if test -d $(HOST_SUBDIR)/gcc; then \ |
47515 | cd $(HOST_SUBDIR); mv gcc stage2-gcc; \ | |
47516 | mv prev-gcc stage1-gcc; : ; \ | |
0aed8855 | 47517 | fi |
72b2455a | 47518 | @endif gcc |
4b900473 | 47519 | @if gmp |
22121df0 L |
47520 | @if test -d $(HOST_SUBDIR)/gmp; then \ |
47521 | cd $(HOST_SUBDIR); mv gmp stage2-gmp; \ | |
47522 | mv prev-gmp stage1-gmp; : ; \ | |
4b900473 PB |
47523 | fi |
47524 | @endif gmp | |
47525 | @if mpfr | |
22121df0 L |
47526 | @if test -d $(HOST_SUBDIR)/mpfr; then \ |
47527 | cd $(HOST_SUBDIR); mv mpfr stage2-mpfr; \ | |
47528 | mv prev-mpfr stage1-mpfr; : ; \ | |
4b900473 PB |
47529 | fi |
47530 | @endif mpfr | |
e8a5fa9c | 47531 | @if mpc |
22121df0 L |
47532 | @if test -d $(HOST_SUBDIR)/mpc; then \ |
47533 | cd $(HOST_SUBDIR); mv mpc stage2-mpc; \ | |
47534 | mv prev-mpc stage1-mpc; : ; \ | |
e8a5fa9c RW |
47535 | fi |
47536 | @endif mpc | |
7ec59b9e | 47537 | @if isl |
22121df0 L |
47538 | @if test -d $(HOST_SUBDIR)/isl; then \ |
47539 | cd $(HOST_SUBDIR); mv isl stage2-isl; \ | |
47540 | mv prev-isl stage1-isl; : ; \ | |
e28c595f | 47541 | fi |
7ec59b9e | 47542 | @endif isl |
1f53ca9a | 47543 | @if libelf |
22121df0 L |
47544 | @if test -d $(HOST_SUBDIR)/libelf; then \ |
47545 | cd $(HOST_SUBDIR); mv libelf stage2-libelf; \ | |
47546 | mv prev-libelf stage1-libelf; : ; \ | |
1f53ca9a AO |
47547 | fi |
47548 | @endif libelf | |
93f9b408 | 47549 | @if gold |
22121df0 L |
47550 | @if test -d $(HOST_SUBDIR)/gold; then \ |
47551 | cd $(HOST_SUBDIR); mv gold stage2-gold; \ | |
47552 | mv prev-gold stage1-gold; : ; \ | |
93f9b408 ILT |
47553 | fi |
47554 | @endif gold | |
72b2455a | 47555 | @if intl |
22121df0 L |
47556 | @if test -d $(HOST_SUBDIR)/intl; then \ |
47557 | cd $(HOST_SUBDIR); mv intl stage2-intl; \ | |
47558 | mv prev-intl stage1-intl; : ; \ | |
0aed8855 | 47559 | fi |
72b2455a PB |
47560 | @endif intl |
47561 | @if ld | |
22121df0 L |
47562 | @if test -d $(HOST_SUBDIR)/ld; then \ |
47563 | cd $(HOST_SUBDIR); mv ld stage2-ld; \ | |
47564 | mv prev-ld stage1-ld; : ; \ | |
0aed8855 | 47565 | fi |
72b2455a | 47566 | @endif ld |
2bf680c4 | 47567 | @if libbacktrace |
22121df0 L |
47568 | @if test -d $(HOST_SUBDIR)/libbacktrace; then \ |
47569 | cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace; \ | |
47570 | mv prev-libbacktrace stage1-libbacktrace; : ; \ | |
2bf680c4 ILT |
47571 | fi |
47572 | @endif libbacktrace | |
72b2455a | 47573 | @if libcpp |
22121df0 L |
47574 | @if test -d $(HOST_SUBDIR)/libcpp; then \ |
47575 | cd $(HOST_SUBDIR); mv libcpp stage2-libcpp; \ | |
47576 | mv prev-libcpp stage1-libcpp; : ; \ | |
0aed8855 | 47577 | fi |
72b2455a | 47578 | @endif libcpp |
be01d343 | 47579 | @if libdecnumber |
22121df0 L |
47580 | @if test -d $(HOST_SUBDIR)/libdecnumber; then \ |
47581 | cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber; \ | |
47582 | mv prev-libdecnumber stage1-libdecnumber; : ; \ | |
0aed8855 | 47583 | fi |
be01d343 | 47584 | @endif libdecnumber |
72b2455a | 47585 | @if libiberty |
22121df0 L |
47586 | @if test -d $(HOST_SUBDIR)/libiberty; then \ |
47587 | cd $(HOST_SUBDIR); mv libiberty stage2-libiberty; \ | |
47588 | mv prev-libiberty stage1-libiberty; : ; \ | |
0aed8855 | 47589 | fi |
72b2455a | 47590 | @endif libiberty |
1b6c0831 | 47591 | @if libiberty-linker-plugin |
22121df0 L |
47592 | @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \ |
47593 | cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin; \ | |
47594 | mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \ | |
1b6c0831 L |
47595 | fi |
47596 | @endif libiberty-linker-plugin | |
016a3251 DD |
47597 | @if libiconv |
47598 | @if test -d $(HOST_SUBDIR)/libiconv; then \ | |
47599 | cd $(HOST_SUBDIR); mv libiconv stage2-libiconv; \ | |
47600 | mv prev-libiconv stage1-libiconv; : ; \ | |
47601 | fi | |
47602 | @endif libiconv | |
72b2455a | 47603 | @if zlib |
22121df0 L |
47604 | @if test -d $(HOST_SUBDIR)/zlib; then \ |
47605 | cd $(HOST_SUBDIR); mv zlib stage2-zlib; \ | |
47606 | mv prev-zlib stage1-zlib; : ; \ | |
0aed8855 | 47607 | fi |
72b2455a | 47608 | @endif zlib |
700d40ca | 47609 | @if lto-plugin |
22121df0 L |
47610 | @if test -d $(HOST_SUBDIR)/lto-plugin; then \ |
47611 | cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin; \ | |
47612 | mv prev-lto-plugin stage1-lto-plugin; : ; \ | |
700d40ca ILT |
47613 | fi |
47614 | @endif lto-plugin | |
22121df0 L |
47615 | @if test -d $(TARGET_SUBDIR); then \ |
47616 | mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); \ | |
47617 | mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \ | |
0aed8855 | 47618 | fi |
80911fe1 | 47619 | rm -f stage_current |
72b2455a | 47620 | |
973601e1 | 47621 | # Bubble a bug fix through all the stages up to stage 2. They are |
0aed8855 | 47622 | # remade, but not reconfigured. The next stage (if any) will not be |
675492f0 | 47623 | # reconfigured either. |
72b2455a PB |
47624 | .PHONY: stage2-bubble |
47625 | stage2-bubble:: stage1-bubble | |
e360f423 PB |
47626 | @r=`${PWD_COMMAND}`; export r; \ |
47627 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
22121df0 L |
47628 | if test -f stage2-lean || test -f stage1-lean ; then \ |
47629 | echo Skipping rebuild of stage2; \ | |
9cb3fa6f | 47630 | else \ |
f70224b5 PB |
47631 | $(MAKE) stage2-start; \ |
47632 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \ | |
9cb3fa6f | 47633 | fi |
72b2455a | 47634 | |
0df3d27f | 47635 | .PHONY: all-stage2 clean-stage2 |
0df3d27f | 47636 | do-clean: clean-stage2 |
0df3d27f | 47637 | |
72b2455a PB |
47638 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
47639 | # only possibility, but now it conflicts with no-bootstrap rules | |
47640 | @if gcc-bootstrap | |
47641 | ||
47642 | ||
47643 | ||
80911fe1 | 47644 | .PHONY: bootstrap2 bootstrap2-lean |
be01d343 PB |
47645 | bootstrap2: |
47646 | echo stage2 > stage_final | |
47647 | @r=`${PWD_COMMAND}`; export r; \ | |
47648 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
47649 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble | |
0aed8855 | 47650 | @: $(MAKE); $(unstage) |
be01d343 PB |
47651 | @r=`${PWD_COMMAND}`; export r; \ |
47652 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 47653 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
be01d343 | 47654 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target |
72b2455a | 47655 | |
80911fe1 PB |
47656 | bootstrap2-lean: |
47657 | echo stage2 > stage_final | |
47658 | @r=`${PWD_COMMAND}`; export r; \ | |
47659 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
47660 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble | |
47661 | @: $(MAKE); $(unstage) | |
47662 | @r=`${PWD_COMMAND}`; export r; \ | |
47663 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 47664 | TFLAGS="$(STAGE2_TFLAGS)"; \ |
80911fe1 PB |
47665 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target |
47666 | ||
72b2455a | 47667 | |
0df3d27f | 47668 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
72b2455a | 47669 | distclean-stage1:: distclean-stage2 |
0df3d27f | 47670 | .PHONY: distclean-stage2 |
72b2455a | 47671 | distclean-stage2:: |
0aed8855 | 47672 | @: $(MAKE); $(stage) |
e00a73e3 | 47673 | @test "`cat stage_last`" != stage2 || rm -f stage_last |
9cb3fa6f | 47674 | rm -rf stage2-* |
72b2455a PB |
47675 | |
47676 | ||
47677 | @endif gcc-bootstrap | |
47678 | ||
47679 | ||
47680 | .PHONY: stage3-start stage3-end | |
47681 | ||
47682 | stage3-start:: | |
0aed8855 | 47683 | @: $(MAKE); $(stage); \ |
22121df0 | 47684 | echo stage3 > stage_current; \ |
b00612cc | 47685 | echo stage3 > stage_last; \ |
0aed8855 | 47686 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR) |
72b2455a | 47687 | @if bfd |
b00612cc PB |
47688 | @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \ |
47689 | mkdir stage3-bfd; \ | |
22121df0 | 47690 | mv stage3-bfd bfd; \ |
80911fe1 | 47691 | mv stage2-bfd prev-bfd || test -f stage2-lean |
72b2455a PB |
47692 | @endif bfd |
47693 | @if opcodes | |
b00612cc PB |
47694 | @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \ |
47695 | mkdir stage3-opcodes; \ | |
22121df0 | 47696 | mv stage3-opcodes opcodes; \ |
80911fe1 | 47697 | mv stage2-opcodes prev-opcodes || test -f stage2-lean |
72b2455a PB |
47698 | @endif opcodes |
47699 | @if binutils | |
b00612cc PB |
47700 | @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \ |
47701 | mkdir stage3-binutils; \ | |
22121df0 | 47702 | mv stage3-binutils binutils; \ |
80911fe1 | 47703 | mv stage2-binutils prev-binutils || test -f stage2-lean |
72b2455a | 47704 | @endif binutils |
201f096f | 47705 | @if fixincludes |
47706 | @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \ | |
47707 | mkdir stage3-fixincludes; \ | |
22121df0 | 47708 | mv stage3-fixincludes fixincludes; \ |
201f096f | 47709 | mv stage2-fixincludes prev-fixincludes || test -f stage2-lean |
47710 | @endif fixincludes | |
72b2455a | 47711 | @if gas |
b00612cc PB |
47712 | @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \ |
47713 | mkdir stage3-gas; \ | |
22121df0 | 47714 | mv stage3-gas gas; \ |
80911fe1 | 47715 | mv stage2-gas prev-gas || test -f stage2-lean |
72b2455a PB |
47716 | @endif gas |
47717 | @if gcc | |
b00612cc PB |
47718 | @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \ |
47719 | mkdir stage3-gcc; \ | |
22121df0 | 47720 | mv stage3-gcc gcc; \ |
80911fe1 | 47721 | mv stage2-gcc prev-gcc || test -f stage2-lean |
72b2455a | 47722 | @endif gcc |
4b900473 PB |
47723 | @if gmp |
47724 | @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \ | |
47725 | mkdir stage3-gmp; \ | |
22121df0 | 47726 | mv stage3-gmp gmp; \ |
4b900473 PB |
47727 | mv stage2-gmp prev-gmp || test -f stage2-lean |
47728 | @endif gmp | |
47729 | @if mpfr | |
47730 | @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \ | |
47731 | mkdir stage3-mpfr; \ | |
22121df0 | 47732 | mv stage3-mpfr mpfr; \ |
4b900473 PB |
47733 | mv stage2-mpfr prev-mpfr || test -f stage2-lean |
47734 | @endif mpfr | |
e8a5fa9c RW |
47735 | @if mpc |
47736 | @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \ | |
47737 | mkdir stage3-mpc; \ | |
22121df0 | 47738 | mv stage3-mpc mpc; \ |
e8a5fa9c RW |
47739 | mv stage2-mpc prev-mpc || test -f stage2-lean |
47740 | @endif mpc | |
7ec59b9e L |
47741 | @if isl |
47742 | @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \ | |
47743 | mkdir stage3-isl; \ | |
22121df0 | 47744 | mv stage3-isl isl; \ |
7ec59b9e L |
47745 | mv stage2-isl prev-isl || test -f stage2-lean |
47746 | @endif isl | |
1f53ca9a AO |
47747 | @if libelf |
47748 | @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \ | |
47749 | mkdir stage3-libelf; \ | |
22121df0 | 47750 | mv stage3-libelf libelf; \ |
1f53ca9a AO |
47751 | mv stage2-libelf prev-libelf || test -f stage2-lean |
47752 | @endif libelf | |
93f9b408 ILT |
47753 | @if gold |
47754 | @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \ | |
47755 | mkdir stage3-gold; \ | |
22121df0 | 47756 | mv stage3-gold gold; \ |
93f9b408 ILT |
47757 | mv stage2-gold prev-gold || test -f stage2-lean |
47758 | @endif gold | |
72b2455a | 47759 | @if intl |
b00612cc PB |
47760 | @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \ |
47761 | mkdir stage3-intl; \ | |
22121df0 | 47762 | mv stage3-intl intl; \ |
80911fe1 | 47763 | mv stage2-intl prev-intl || test -f stage2-lean |
72b2455a PB |
47764 | @endif intl |
47765 | @if ld | |
b00612cc PB |
47766 | @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \ |
47767 | mkdir stage3-ld; \ | |
22121df0 | 47768 | mv stage3-ld ld; \ |
80911fe1 | 47769 | mv stage2-ld prev-ld || test -f stage2-lean |
72b2455a | 47770 | @endif ld |
2bf680c4 ILT |
47771 | @if libbacktrace |
47772 | @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \ | |
47773 | mkdir stage3-libbacktrace; \ | |
22121df0 | 47774 | mv stage3-libbacktrace libbacktrace; \ |
2bf680c4 ILT |
47775 | mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean |
47776 | @endif libbacktrace | |
72b2455a | 47777 | @if libcpp |
b00612cc PB |
47778 | @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \ |
47779 | mkdir stage3-libcpp; \ | |
22121df0 | 47780 | mv stage3-libcpp libcpp; \ |
80911fe1 | 47781 | mv stage2-libcpp prev-libcpp || test -f stage2-lean |
72b2455a | 47782 | @endif libcpp |
be01d343 PB |
47783 | @if libdecnumber |
47784 | @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \ | |
47785 | mkdir stage3-libdecnumber; \ | |
22121df0 | 47786 | mv stage3-libdecnumber libdecnumber; \ |
80911fe1 | 47787 | mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean |
be01d343 | 47788 | @endif libdecnumber |
72b2455a | 47789 | @if libiberty |
b00612cc PB |
47790 | @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \ |
47791 | mkdir stage3-libiberty; \ | |
22121df0 | 47792 | mv stage3-libiberty libiberty; \ |
80911fe1 | 47793 | mv stage2-libiberty prev-libiberty || test -f stage2-lean |
72b2455a | 47794 | @endif libiberty |
1b6c0831 L |
47795 | @if libiberty-linker-plugin |
47796 | @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \ | |
47797 | mkdir stage3-libiberty-linker-plugin; \ | |
22121df0 | 47798 | mv stage3-libiberty-linker-plugin libiberty-linker-plugin; \ |
1b6c0831 L |
47799 | mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean |
47800 | @endif libiberty-linker-plugin | |
016a3251 DD |
47801 | @if libiconv |
47802 | @cd $(HOST_SUBDIR); [ -d stage3-libiconv ] || \ | |
47803 | mkdir stage3-libiconv; \ | |
47804 | mv stage3-libiconv libiconv; \ | |
47805 | mv stage2-libiconv prev-libiconv || test -f stage2-lean | |
47806 | @endif libiconv | |
72b2455a | 47807 | @if zlib |
b00612cc PB |
47808 | @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \ |
47809 | mkdir stage3-zlib; \ | |
22121df0 | 47810 | mv stage3-zlib zlib; \ |
80911fe1 | 47811 | mv stage2-zlib prev-zlib || test -f stage2-lean |
72b2455a | 47812 | @endif zlib |
700d40ca ILT |
47813 | @if lto-plugin |
47814 | @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \ | |
47815 | mkdir stage3-lto-plugin; \ | |
22121df0 | 47816 | mv stage3-lto-plugin lto-plugin; \ |
700d40ca ILT |
47817 | mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean |
47818 | @endif lto-plugin | |
0aed8855 PB |
47819 | @[ -d stage3-$(TARGET_SUBDIR) ] || \ |
47820 | mkdir stage3-$(TARGET_SUBDIR); \ | |
22121df0 | 47821 | mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \ |
80911fe1 | 47822 | mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean |
72b2455a | 47823 | |
80911fe1 | 47824 | stage3-end:: |
72b2455a | 47825 | @if bfd |
22121df0 L |
47826 | @if test -d $(HOST_SUBDIR)/bfd; then \ |
47827 | cd $(HOST_SUBDIR); mv bfd stage3-bfd; \ | |
47828 | mv prev-bfd stage2-bfd; : ; \ | |
0aed8855 | 47829 | fi |
72b2455a PB |
47830 | @endif bfd |
47831 | @if opcodes | |
22121df0 L |
47832 | @if test -d $(HOST_SUBDIR)/opcodes; then \ |
47833 | cd $(HOST_SUBDIR); mv opcodes stage3-opcodes; \ | |
47834 | mv prev-opcodes stage2-opcodes; : ; \ | |
0aed8855 | 47835 | fi |
72b2455a PB |
47836 | @endif opcodes |
47837 | @if binutils | |
22121df0 L |
47838 | @if test -d $(HOST_SUBDIR)/binutils; then \ |
47839 | cd $(HOST_SUBDIR); mv binutils stage3-binutils; \ | |
47840 | mv prev-binutils stage2-binutils; : ; \ | |
0aed8855 | 47841 | fi |
72b2455a | 47842 | @endif binutils |
201f096f | 47843 | @if fixincludes |
22121df0 L |
47844 | @if test -d $(HOST_SUBDIR)/fixincludes; then \ |
47845 | cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes; \ | |
47846 | mv prev-fixincludes stage2-fixincludes; : ; \ | |
201f096f | 47847 | fi |
47848 | @endif fixincludes | |
72b2455a | 47849 | @if gas |
22121df0 L |
47850 | @if test -d $(HOST_SUBDIR)/gas; then \ |
47851 | cd $(HOST_SUBDIR); mv gas stage3-gas; \ | |
47852 | mv prev-gas stage2-gas; : ; \ | |
0aed8855 | 47853 | fi |
72b2455a PB |
47854 | @endif gas |
47855 | @if gcc | |
22121df0 L |
47856 | @if test -d $(HOST_SUBDIR)/gcc; then \ |
47857 | cd $(HOST_SUBDIR); mv gcc stage3-gcc; \ | |
47858 | mv prev-gcc stage2-gcc; : ; \ | |
0aed8855 | 47859 | fi |
72b2455a | 47860 | @endif gcc |
4b900473 | 47861 | @if gmp |
22121df0 L |
47862 | @if test -d $(HOST_SUBDIR)/gmp; then \ |
47863 | cd $(HOST_SUBDIR); mv gmp stage3-gmp; \ | |
47864 | mv prev-gmp stage2-gmp; : ; \ | |
4b900473 PB |
47865 | fi |
47866 | @endif gmp | |
47867 | @if mpfr | |
22121df0 L |
47868 | @if test -d $(HOST_SUBDIR)/mpfr; then \ |
47869 | cd $(HOST_SUBDIR); mv mpfr stage3-mpfr; \ | |
47870 | mv prev-mpfr stage2-mpfr; : ; \ | |
4b900473 PB |
47871 | fi |
47872 | @endif mpfr | |
e8a5fa9c | 47873 | @if mpc |
22121df0 L |
47874 | @if test -d $(HOST_SUBDIR)/mpc; then \ |
47875 | cd $(HOST_SUBDIR); mv mpc stage3-mpc; \ | |
47876 | mv prev-mpc stage2-mpc; : ; \ | |
e8a5fa9c RW |
47877 | fi |
47878 | @endif mpc | |
7ec59b9e | 47879 | @if isl |
22121df0 L |
47880 | @if test -d $(HOST_SUBDIR)/isl; then \ |
47881 | cd $(HOST_SUBDIR); mv isl stage3-isl; \ | |
47882 | mv prev-isl stage2-isl; : ; \ | |
e28c595f | 47883 | fi |
7ec59b9e | 47884 | @endif isl |
1f53ca9a | 47885 | @if libelf |
22121df0 L |
47886 | @if test -d $(HOST_SUBDIR)/libelf; then \ |
47887 | cd $(HOST_SUBDIR); mv libelf stage3-libelf; \ | |
47888 | mv prev-libelf stage2-libelf; : ; \ | |
1f53ca9a AO |
47889 | fi |
47890 | @endif libelf | |
93f9b408 | 47891 | @if gold |
22121df0 L |
47892 | @if test -d $(HOST_SUBDIR)/gold; then \ |
47893 | cd $(HOST_SUBDIR); mv gold stage3-gold; \ | |
47894 | mv prev-gold stage2-gold; : ; \ | |
93f9b408 ILT |
47895 | fi |
47896 | @endif gold | |
72b2455a | 47897 | @if intl |
22121df0 L |
47898 | @if test -d $(HOST_SUBDIR)/intl; then \ |
47899 | cd $(HOST_SUBDIR); mv intl stage3-intl; \ | |
47900 | mv prev-intl stage2-intl; : ; \ | |
0aed8855 | 47901 | fi |
72b2455a PB |
47902 | @endif intl |
47903 | @if ld | |
22121df0 L |
47904 | @if test -d $(HOST_SUBDIR)/ld; then \ |
47905 | cd $(HOST_SUBDIR); mv ld stage3-ld; \ | |
47906 | mv prev-ld stage2-ld; : ; \ | |
0aed8855 | 47907 | fi |
72b2455a | 47908 | @endif ld |
2bf680c4 | 47909 | @if libbacktrace |
22121df0 L |
47910 | @if test -d $(HOST_SUBDIR)/libbacktrace; then \ |
47911 | cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace; \ | |
47912 | mv prev-libbacktrace stage2-libbacktrace; : ; \ | |
2bf680c4 ILT |
47913 | fi |
47914 | @endif libbacktrace | |
72b2455a | 47915 | @if libcpp |
22121df0 L |
47916 | @if test -d $(HOST_SUBDIR)/libcpp; then \ |
47917 | cd $(HOST_SUBDIR); mv libcpp stage3-libcpp; \ | |
47918 | mv prev-libcpp stage2-libcpp; : ; \ | |
0aed8855 | 47919 | fi |
72b2455a | 47920 | @endif libcpp |
be01d343 | 47921 | @if libdecnumber |
22121df0 L |
47922 | @if test -d $(HOST_SUBDIR)/libdecnumber; then \ |
47923 | cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber; \ | |
47924 | mv prev-libdecnumber stage2-libdecnumber; : ; \ | |
0aed8855 | 47925 | fi |
be01d343 | 47926 | @endif libdecnumber |
72b2455a | 47927 | @if libiberty |
22121df0 L |
47928 | @if test -d $(HOST_SUBDIR)/libiberty; then \ |
47929 | cd $(HOST_SUBDIR); mv libiberty stage3-libiberty; \ | |
47930 | mv prev-libiberty stage2-libiberty; : ; \ | |
0aed8855 | 47931 | fi |
72b2455a | 47932 | @endif libiberty |
1b6c0831 | 47933 | @if libiberty-linker-plugin |
22121df0 L |
47934 | @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \ |
47935 | cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin; \ | |
47936 | mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin; : ; \ | |
1b6c0831 L |
47937 | fi |
47938 | @endif libiberty-linker-plugin | |
016a3251 DD |
47939 | @if libiconv |
47940 | @if test -d $(HOST_SUBDIR)/libiconv; then \ | |
47941 | cd $(HOST_SUBDIR); mv libiconv stage3-libiconv; \ | |
47942 | mv prev-libiconv stage2-libiconv; : ; \ | |
47943 | fi | |
47944 | @endif libiconv | |
72b2455a | 47945 | @if zlib |
22121df0 L |
47946 | @if test -d $(HOST_SUBDIR)/zlib; then \ |
47947 | cd $(HOST_SUBDIR); mv zlib stage3-zlib; \ | |
47948 | mv prev-zlib stage2-zlib; : ; \ | |
0aed8855 | 47949 | fi |
72b2455a | 47950 | @endif zlib |
700d40ca | 47951 | @if lto-plugin |
22121df0 L |
47952 | @if test -d $(HOST_SUBDIR)/lto-plugin; then \ |
47953 | cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin; \ | |
47954 | mv prev-lto-plugin stage2-lto-plugin; : ; \ | |
700d40ca ILT |
47955 | fi |
47956 | @endif lto-plugin | |
22121df0 L |
47957 | @if test -d $(TARGET_SUBDIR); then \ |
47958 | mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); \ | |
47959 | mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); : ; \ | |
0aed8855 | 47960 | fi |
80911fe1 | 47961 | rm -f stage_current |
72b2455a | 47962 | |
973601e1 | 47963 | # Bubble a bug fix through all the stages up to stage 3. They are |
0aed8855 | 47964 | # remade, but not reconfigured. The next stage (if any) will not be |
675492f0 | 47965 | # reconfigured either. |
72b2455a PB |
47966 | .PHONY: stage3-bubble |
47967 | stage3-bubble:: stage2-bubble | |
e360f423 PB |
47968 | @r=`${PWD_COMMAND}`; export r; \ |
47969 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
22121df0 L |
47970 | if test -f stage3-lean || test -f stage2-lean ; then \ |
47971 | echo Skipping rebuild of stage3; \ | |
9cb3fa6f | 47972 | else \ |
f70224b5 | 47973 | $(MAKE) stage3-start; \ |
80911fe1 | 47974 | if $(LEAN); then \ |
22121df0 L |
47975 | rm -rf stage1-*; \ |
47976 | $(STAMP) stage1-lean; \ | |
80911fe1 | 47977 | fi; \ |
f70224b5 | 47978 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \ |
9cb3fa6f | 47979 | fi |
f6d183c0 | 47980 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare |
72b2455a | 47981 | |
0df3d27f | 47982 | .PHONY: all-stage3 clean-stage3 |
0df3d27f | 47983 | do-clean: clean-stage3 |
0df3d27f | 47984 | |
d545f33b PB |
47985 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
47986 | # only possibility, but now it conflicts with no-bootstrap rules | |
47987 | @if gcc-bootstrap | |
72b2455a | 47988 | |
d545f33b | 47989 | compare: |
e360f423 PB |
47990 | @r=`${PWD_COMMAND}`; export r; \ |
47991 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
47992 | if test -f stage2-lean; then \ | |
22121df0 L |
47993 | echo Cannot compare object files as stage 2 was deleted.; \ |
47994 | exit 0; \ | |
d545f33b | 47995 | fi; \ |
0aed8855 | 47996 | : $(MAKE); $(stage); \ |
22121df0 L |
47997 | rm -f .bad_compare; \ |
47998 | echo Comparing stages 2 and 3; \ | |
fda13ee8 AO |
47999 | sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \ |
48000 | files=`find stage3-* -name "*$(objext)" -print | \ | |
22121df0 L |
48001 | sed -n s,^stage$$sed-,,p`; \ |
48002 | for file in $${files}; do \ | |
fda13ee8 AO |
48003 | f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \ |
48004 | if test ! -f $$f1; then continue; fi; \ | |
8520c408 | 48005 | $(do-compare) > /dev/null 2>&1; \ |
f70224b5 PB |
48006 | if test $$? -eq 1; then \ |
48007 | case $$file in \ | |
e8a5fa9c | 48008 | @compare_exclusions@) \ |
f70224b5 PB |
48009 | echo warning: $$file differs ;; \ |
48010 | *) \ | |
48011 | echo $$file differs >> .bad_compare ;; \ | |
22121df0 L |
48012 | esac; \ |
48013 | fi; \ | |
48014 | done; \ | |
d545f33b PB |
48015 | if [ -f .bad_compare ]; then \ |
48016 | echo "Bootstrap comparison failure!"; \ | |
48017 | cat .bad_compare; \ | |
48018 | exit 1; \ | |
48019 | else \ | |
c52c6897 | 48020 | echo Comparison successful.; \ |
22121df0 | 48021 | fi; \ |
d545f33b | 48022 | $(STAMP) compare |
80911fe1 PB |
48023 | if $(LEAN); then \ |
48024 | rm -rf stage2-*; \ | |
48025 | $(STAMP) stage2-lean; \ | |
48026 | fi | |
9cb3fa6f | 48027 | |
72b2455a | 48028 | |
72b2455a | 48029 | |
80911fe1 | 48030 | .PHONY: bootstrap bootstrap-lean |
be01d343 PB |
48031 | bootstrap: |
48032 | echo stage3 > stage_final | |
48033 | @r=`${PWD_COMMAND}`; export r; \ | |
48034 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
48035 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble | |
0aed8855 | 48036 | @: $(MAKE); $(unstage) |
be01d343 PB |
48037 | @r=`${PWD_COMMAND}`; export r; \ |
48038 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 48039 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
be01d343 | 48040 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target |
0df3d27f | 48041 | |
80911fe1 PB |
48042 | bootstrap-lean: |
48043 | echo stage3 > stage_final | |
48044 | @r=`${PWD_COMMAND}`; export r; \ | |
48045 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
48046 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble | |
48047 | @: $(MAKE); $(unstage) | |
48048 | @r=`${PWD_COMMAND}`; export r; \ | |
48049 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 48050 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
80911fe1 PB |
48051 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target |
48052 | ||
72b2455a | 48053 | |
d545f33b PB |
48054 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
48055 | distclean-stage2:: distclean-stage3 | |
48056 | .PHONY: distclean-stage3 | |
48057 | distclean-stage3:: | |
0aed8855 | 48058 | @: $(MAKE); $(stage) |
e00a73e3 | 48059 | @test "`cat stage_last`" != stage3 || rm -f stage_last |
d545f33b | 48060 | rm -rf stage3-* compare |
0df3d27f | 48061 | |
9cb3fa6f | 48062 | |
d545f33b | 48063 | .PHONY: cleanstrap |
e00a73e3 PB |
48064 | cleanstrap: do-distclean local-clean |
48065 | echo stage3 > stage_final | |
48066 | @r=`${PWD_COMMAND}`; export r; \ | |
48067 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
48068 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble | |
48069 | @: $(MAKE); $(unstage) | |
48070 | @r=`${PWD_COMMAND}`; export r; \ | |
48071 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 48072 | TFLAGS="$(STAGE3_TFLAGS)"; \ |
8520c408 AO |
48073 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target |
48074 | ||
48075 | @endif gcc-bootstrap | |
48076 | ||
48077 | ||
72b2455a PB |
48078 | .PHONY: stage4-start stage4-end |
48079 | ||
48080 | stage4-start:: | |
0aed8855 | 48081 | @: $(MAKE); $(stage); \ |
22121df0 | 48082 | echo stage4 > stage_current; \ |
b00612cc | 48083 | echo stage4 > stage_last; \ |
0aed8855 | 48084 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR) |
72b2455a | 48085 | @if bfd |
b00612cc PB |
48086 | @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \ |
48087 | mkdir stage4-bfd; \ | |
22121df0 | 48088 | mv stage4-bfd bfd; \ |
80911fe1 | 48089 | mv stage3-bfd prev-bfd || test -f stage3-lean |
72b2455a PB |
48090 | @endif bfd |
48091 | @if opcodes | |
b00612cc PB |
48092 | @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \ |
48093 | mkdir stage4-opcodes; \ | |
22121df0 | 48094 | mv stage4-opcodes opcodes; \ |
80911fe1 | 48095 | mv stage3-opcodes prev-opcodes || test -f stage3-lean |
72b2455a PB |
48096 | @endif opcodes |
48097 | @if binutils | |
b00612cc PB |
48098 | @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \ |
48099 | mkdir stage4-binutils; \ | |
22121df0 | 48100 | mv stage4-binutils binutils; \ |
80911fe1 | 48101 | mv stage3-binutils prev-binutils || test -f stage3-lean |
72b2455a | 48102 | @endif binutils |
201f096f | 48103 | @if fixincludes |
48104 | @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \ | |
48105 | mkdir stage4-fixincludes; \ | |
22121df0 | 48106 | mv stage4-fixincludes fixincludes; \ |
201f096f | 48107 | mv stage3-fixincludes prev-fixincludes || test -f stage3-lean |
48108 | @endif fixincludes | |
72b2455a | 48109 | @if gas |
b00612cc PB |
48110 | @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \ |
48111 | mkdir stage4-gas; \ | |
22121df0 | 48112 | mv stage4-gas gas; \ |
80911fe1 | 48113 | mv stage3-gas prev-gas || test -f stage3-lean |
72b2455a PB |
48114 | @endif gas |
48115 | @if gcc | |
b00612cc PB |
48116 | @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \ |
48117 | mkdir stage4-gcc; \ | |
22121df0 | 48118 | mv stage4-gcc gcc; \ |
80911fe1 | 48119 | mv stage3-gcc prev-gcc || test -f stage3-lean |
72b2455a | 48120 | @endif gcc |
4b900473 PB |
48121 | @if gmp |
48122 | @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \ | |
48123 | mkdir stage4-gmp; \ | |
22121df0 | 48124 | mv stage4-gmp gmp; \ |
4b900473 PB |
48125 | mv stage3-gmp prev-gmp || test -f stage3-lean |
48126 | @endif gmp | |
48127 | @if mpfr | |
48128 | @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \ | |
48129 | mkdir stage4-mpfr; \ | |
22121df0 | 48130 | mv stage4-mpfr mpfr; \ |
4b900473 PB |
48131 | mv stage3-mpfr prev-mpfr || test -f stage3-lean |
48132 | @endif mpfr | |
e8a5fa9c RW |
48133 | @if mpc |
48134 | @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \ | |
48135 | mkdir stage4-mpc; \ | |
22121df0 | 48136 | mv stage4-mpc mpc; \ |
e8a5fa9c RW |
48137 | mv stage3-mpc prev-mpc || test -f stage3-lean |
48138 | @endif mpc | |
7ec59b9e L |
48139 | @if isl |
48140 | @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \ | |
48141 | mkdir stage4-isl; \ | |
22121df0 | 48142 | mv stage4-isl isl; \ |
7ec59b9e L |
48143 | mv stage3-isl prev-isl || test -f stage3-lean |
48144 | @endif isl | |
1f53ca9a AO |
48145 | @if libelf |
48146 | @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \ | |
48147 | mkdir stage4-libelf; \ | |
22121df0 | 48148 | mv stage4-libelf libelf; \ |
1f53ca9a AO |
48149 | mv stage3-libelf prev-libelf || test -f stage3-lean |
48150 | @endif libelf | |
93f9b408 ILT |
48151 | @if gold |
48152 | @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \ | |
48153 | mkdir stage4-gold; \ | |
22121df0 | 48154 | mv stage4-gold gold; \ |
93f9b408 ILT |
48155 | mv stage3-gold prev-gold || test -f stage3-lean |
48156 | @endif gold | |
72b2455a | 48157 | @if intl |
b00612cc PB |
48158 | @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \ |
48159 | mkdir stage4-intl; \ | |
22121df0 | 48160 | mv stage4-intl intl; \ |
80911fe1 | 48161 | mv stage3-intl prev-intl || test -f stage3-lean |
72b2455a PB |
48162 | @endif intl |
48163 | @if ld | |
b00612cc PB |
48164 | @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \ |
48165 | mkdir stage4-ld; \ | |
22121df0 | 48166 | mv stage4-ld ld; \ |
80911fe1 | 48167 | mv stage3-ld prev-ld || test -f stage3-lean |
72b2455a | 48168 | @endif ld |
2bf680c4 ILT |
48169 | @if libbacktrace |
48170 | @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \ | |
48171 | mkdir stage4-libbacktrace; \ | |
22121df0 | 48172 | mv stage4-libbacktrace libbacktrace; \ |
2bf680c4 ILT |
48173 | mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean |
48174 | @endif libbacktrace | |
72b2455a | 48175 | @if libcpp |
b00612cc PB |
48176 | @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \ |
48177 | mkdir stage4-libcpp; \ | |
22121df0 | 48178 | mv stage4-libcpp libcpp; \ |
80911fe1 | 48179 | mv stage3-libcpp prev-libcpp || test -f stage3-lean |
72b2455a | 48180 | @endif libcpp |
be01d343 PB |
48181 | @if libdecnumber |
48182 | @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \ | |
48183 | mkdir stage4-libdecnumber; \ | |
22121df0 | 48184 | mv stage4-libdecnumber libdecnumber; \ |
80911fe1 | 48185 | mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean |
be01d343 | 48186 | @endif libdecnumber |
72b2455a | 48187 | @if libiberty |
b00612cc PB |
48188 | @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \ |
48189 | mkdir stage4-libiberty; \ | |
22121df0 | 48190 | mv stage4-libiberty libiberty; \ |
80911fe1 | 48191 | mv stage3-libiberty prev-libiberty || test -f stage3-lean |
72b2455a | 48192 | @endif libiberty |
1b6c0831 L |
48193 | @if libiberty-linker-plugin |
48194 | @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \ | |
48195 | mkdir stage4-libiberty-linker-plugin; \ | |
22121df0 | 48196 | mv stage4-libiberty-linker-plugin libiberty-linker-plugin; \ |
1b6c0831 L |
48197 | mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean |
48198 | @endif libiberty-linker-plugin | |
016a3251 DD |
48199 | @if libiconv |
48200 | @cd $(HOST_SUBDIR); [ -d stage4-libiconv ] || \ | |
48201 | mkdir stage4-libiconv; \ | |
48202 | mv stage4-libiconv libiconv; \ | |
48203 | mv stage3-libiconv prev-libiconv || test -f stage3-lean | |
48204 | @endif libiconv | |
72b2455a | 48205 | @if zlib |
b00612cc PB |
48206 | @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \ |
48207 | mkdir stage4-zlib; \ | |
22121df0 | 48208 | mv stage4-zlib zlib; \ |
80911fe1 | 48209 | mv stage3-zlib prev-zlib || test -f stage3-lean |
72b2455a | 48210 | @endif zlib |
700d40ca ILT |
48211 | @if lto-plugin |
48212 | @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \ | |
48213 | mkdir stage4-lto-plugin; \ | |
22121df0 | 48214 | mv stage4-lto-plugin lto-plugin; \ |
700d40ca ILT |
48215 | mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean |
48216 | @endif lto-plugin | |
0aed8855 PB |
48217 | @[ -d stage4-$(TARGET_SUBDIR) ] || \ |
48218 | mkdir stage4-$(TARGET_SUBDIR); \ | |
22121df0 | 48219 | mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \ |
80911fe1 | 48220 | mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean |
72b2455a | 48221 | |
80911fe1 | 48222 | stage4-end:: |
72b2455a | 48223 | @if bfd |
22121df0 L |
48224 | @if test -d $(HOST_SUBDIR)/bfd; then \ |
48225 | cd $(HOST_SUBDIR); mv bfd stage4-bfd; \ | |
48226 | mv prev-bfd stage3-bfd; : ; \ | |
0aed8855 | 48227 | fi |
72b2455a PB |
48228 | @endif bfd |
48229 | @if opcodes | |
22121df0 L |
48230 | @if test -d $(HOST_SUBDIR)/opcodes; then \ |
48231 | cd $(HOST_SUBDIR); mv opcodes stage4-opcodes; \ | |
48232 | mv prev-opcodes stage3-opcodes; : ; \ | |
0aed8855 | 48233 | fi |
72b2455a PB |
48234 | @endif opcodes |
48235 | @if binutils | |
22121df0 L |
48236 | @if test -d $(HOST_SUBDIR)/binutils; then \ |
48237 | cd $(HOST_SUBDIR); mv binutils stage4-binutils; \ | |
48238 | mv prev-binutils stage3-binutils; : ; \ | |
0aed8855 | 48239 | fi |
72b2455a | 48240 | @endif binutils |
201f096f | 48241 | @if fixincludes |
22121df0 L |
48242 | @if test -d $(HOST_SUBDIR)/fixincludes; then \ |
48243 | cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes; \ | |
48244 | mv prev-fixincludes stage3-fixincludes; : ; \ | |
201f096f | 48245 | fi |
48246 | @endif fixincludes | |
72b2455a | 48247 | @if gas |
22121df0 L |
48248 | @if test -d $(HOST_SUBDIR)/gas; then \ |
48249 | cd $(HOST_SUBDIR); mv gas stage4-gas; \ | |
48250 | mv prev-gas stage3-gas; : ; \ | |
0aed8855 | 48251 | fi |
72b2455a PB |
48252 | @endif gas |
48253 | @if gcc | |
22121df0 L |
48254 | @if test -d $(HOST_SUBDIR)/gcc; then \ |
48255 | cd $(HOST_SUBDIR); mv gcc stage4-gcc; \ | |
48256 | mv prev-gcc stage3-gcc; : ; \ | |
0aed8855 | 48257 | fi |
72b2455a | 48258 | @endif gcc |
4b900473 | 48259 | @if gmp |
22121df0 L |
48260 | @if test -d $(HOST_SUBDIR)/gmp; then \ |
48261 | cd $(HOST_SUBDIR); mv gmp stage4-gmp; \ | |
48262 | mv prev-gmp stage3-gmp; : ; \ | |
4b900473 PB |
48263 | fi |
48264 | @endif gmp | |
48265 | @if mpfr | |
22121df0 L |
48266 | @if test -d $(HOST_SUBDIR)/mpfr; then \ |
48267 | cd $(HOST_SUBDIR); mv mpfr stage4-mpfr; \ | |
48268 | mv prev-mpfr stage3-mpfr; : ; \ | |
4b900473 PB |
48269 | fi |
48270 | @endif mpfr | |
e8a5fa9c | 48271 | @if mpc |
22121df0 L |
48272 | @if test -d $(HOST_SUBDIR)/mpc; then \ |
48273 | cd $(HOST_SUBDIR); mv mpc stage4-mpc; \ | |
48274 | mv prev-mpc stage3-mpc; : ; \ | |
e8a5fa9c RW |
48275 | fi |
48276 | @endif mpc | |
7ec59b9e | 48277 | @if isl |
22121df0 L |
48278 | @if test -d $(HOST_SUBDIR)/isl; then \ |
48279 | cd $(HOST_SUBDIR); mv isl stage4-isl; \ | |
48280 | mv prev-isl stage3-isl; : ; \ | |
e28c595f | 48281 | fi |
7ec59b9e | 48282 | @endif isl |
1f53ca9a | 48283 | @if libelf |
22121df0 L |
48284 | @if test -d $(HOST_SUBDIR)/libelf; then \ |
48285 | cd $(HOST_SUBDIR); mv libelf stage4-libelf; \ | |
48286 | mv prev-libelf stage3-libelf; : ; \ | |
1f53ca9a AO |
48287 | fi |
48288 | @endif libelf | |
93f9b408 | 48289 | @if gold |
22121df0 L |
48290 | @if test -d $(HOST_SUBDIR)/gold; then \ |
48291 | cd $(HOST_SUBDIR); mv gold stage4-gold; \ | |
48292 | mv prev-gold stage3-gold; : ; \ | |
93f9b408 ILT |
48293 | fi |
48294 | @endif gold | |
72b2455a | 48295 | @if intl |
22121df0 L |
48296 | @if test -d $(HOST_SUBDIR)/intl; then \ |
48297 | cd $(HOST_SUBDIR); mv intl stage4-intl; \ | |
48298 | mv prev-intl stage3-intl; : ; \ | |
0aed8855 | 48299 | fi |
72b2455a PB |
48300 | @endif intl |
48301 | @if ld | |
22121df0 L |
48302 | @if test -d $(HOST_SUBDIR)/ld; then \ |
48303 | cd $(HOST_SUBDIR); mv ld stage4-ld; \ | |
48304 | mv prev-ld stage3-ld; : ; \ | |
0aed8855 | 48305 | fi |
72b2455a | 48306 | @endif ld |
2bf680c4 | 48307 | @if libbacktrace |
22121df0 L |
48308 | @if test -d $(HOST_SUBDIR)/libbacktrace; then \ |
48309 | cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace; \ | |
48310 | mv prev-libbacktrace stage3-libbacktrace; : ; \ | |
2bf680c4 ILT |
48311 | fi |
48312 | @endif libbacktrace | |
72b2455a | 48313 | @if libcpp |
22121df0 L |
48314 | @if test -d $(HOST_SUBDIR)/libcpp; then \ |
48315 | cd $(HOST_SUBDIR); mv libcpp stage4-libcpp; \ | |
48316 | mv prev-libcpp stage3-libcpp; : ; \ | |
0aed8855 | 48317 | fi |
72b2455a | 48318 | @endif libcpp |
be01d343 | 48319 | @if libdecnumber |
22121df0 L |
48320 | @if test -d $(HOST_SUBDIR)/libdecnumber; then \ |
48321 | cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber; \ | |
48322 | mv prev-libdecnumber stage3-libdecnumber; : ; \ | |
0aed8855 | 48323 | fi |
be01d343 | 48324 | @endif libdecnumber |
72b2455a | 48325 | @if libiberty |
22121df0 L |
48326 | @if test -d $(HOST_SUBDIR)/libiberty; then \ |
48327 | cd $(HOST_SUBDIR); mv libiberty stage4-libiberty; \ | |
48328 | mv prev-libiberty stage3-libiberty; : ; \ | |
0aed8855 | 48329 | fi |
72b2455a | 48330 | @endif libiberty |
1b6c0831 | 48331 | @if libiberty-linker-plugin |
22121df0 L |
48332 | @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \ |
48333 | cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin; \ | |
48334 | mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin; : ; \ | |
1b6c0831 L |
48335 | fi |
48336 | @endif libiberty-linker-plugin | |
016a3251 DD |
48337 | @if libiconv |
48338 | @if test -d $(HOST_SUBDIR)/libiconv; then \ | |
48339 | cd $(HOST_SUBDIR); mv libiconv stage4-libiconv; \ | |
48340 | mv prev-libiconv stage3-libiconv; : ; \ | |
48341 | fi | |
48342 | @endif libiconv | |
72b2455a | 48343 | @if zlib |
22121df0 L |
48344 | @if test -d $(HOST_SUBDIR)/zlib; then \ |
48345 | cd $(HOST_SUBDIR); mv zlib stage4-zlib; \ | |
48346 | mv prev-zlib stage3-zlib; : ; \ | |
0aed8855 | 48347 | fi |
72b2455a | 48348 | @endif zlib |
700d40ca | 48349 | @if lto-plugin |
22121df0 L |
48350 | @if test -d $(HOST_SUBDIR)/lto-plugin; then \ |
48351 | cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin; \ | |
48352 | mv prev-lto-plugin stage3-lto-plugin; : ; \ | |
700d40ca ILT |
48353 | fi |
48354 | @endif lto-plugin | |
22121df0 L |
48355 | @if test -d $(TARGET_SUBDIR); then \ |
48356 | mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR); \ | |
48357 | mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); : ; \ | |
0aed8855 | 48358 | fi |
80911fe1 | 48359 | rm -f stage_current |
72b2455a | 48360 | |
973601e1 | 48361 | # Bubble a bug fix through all the stages up to stage 4. They are |
0aed8855 | 48362 | # remade, but not reconfigured. The next stage (if any) will not be |
675492f0 | 48363 | # reconfigured either. |
72b2455a PB |
48364 | .PHONY: stage4-bubble |
48365 | stage4-bubble:: stage3-bubble | |
e360f423 PB |
48366 | @r=`${PWD_COMMAND}`; export r; \ |
48367 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
22121df0 L |
48368 | if test -f stage4-lean || test -f stage3-lean ; then \ |
48369 | echo Skipping rebuild of stage4; \ | |
9cb3fa6f | 48370 | else \ |
f70224b5 | 48371 | $(MAKE) stage4-start; \ |
80911fe1 | 48372 | if $(LEAN); then \ |
22121df0 L |
48373 | rm -rf stage2-*; \ |
48374 | $(STAMP) stage2-lean; \ | |
80911fe1 | 48375 | fi; \ |
f70224b5 | 48376 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \ |
9cb3fa6f | 48377 | fi |
f6d183c0 | 48378 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3 |
72b2455a | 48379 | |
0df3d27f | 48380 | .PHONY: all-stage4 clean-stage4 |
0df3d27f | 48381 | do-clean: clean-stage4 |
0df3d27f | 48382 | |
d545f33b PB |
48383 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
48384 | # only possibility, but now it conflicts with no-bootstrap rules | |
48385 | @if gcc-bootstrap | |
72b2455a | 48386 | |
d545f33b | 48387 | compare3: |
e360f423 PB |
48388 | @r=`${PWD_COMMAND}`; export r; \ |
48389 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
48390 | if test -f stage3-lean; then \ | |
22121df0 L |
48391 | echo Cannot compare object files as stage 3 was deleted.; \ |
48392 | exit 0; \ | |
d545f33b | 48393 | fi; \ |
0aed8855 | 48394 | : $(MAKE); $(stage); \ |
22121df0 L |
48395 | rm -f .bad_compare; \ |
48396 | echo Comparing stages 3 and 4; \ | |
fda13ee8 AO |
48397 | sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \ |
48398 | files=`find stage4-* -name "*$(objext)" -print | \ | |
22121df0 L |
48399 | sed -n s,^stage$$sed-,,p`; \ |
48400 | for file in $${files}; do \ | |
fda13ee8 AO |
48401 | f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \ |
48402 | if test ! -f $$f1; then continue; fi; \ | |
8520c408 | 48403 | $(do-compare3) > /dev/null 2>&1; \ |
f70224b5 PB |
48404 | if test $$? -eq 1; then \ |
48405 | case $$file in \ | |
e8a5fa9c | 48406 | @compare_exclusions@) \ |
f70224b5 PB |
48407 | echo warning: $$file differs ;; \ |
48408 | *) \ | |
48409 | echo $$file differs >> .bad_compare ;; \ | |
22121df0 L |
48410 | esac; \ |
48411 | fi; \ | |
48412 | done; \ | |
d545f33b PB |
48413 | if [ -f .bad_compare ]; then \ |
48414 | echo "Bootstrap comparison failure!"; \ | |
48415 | cat .bad_compare; \ | |
48416 | exit 1; \ | |
48417 | else \ | |
c52c6897 | 48418 | echo Comparison successful.; \ |
22121df0 | 48419 | fi; \ |
d545f33b | 48420 | $(STAMP) compare3 |
80911fe1 PB |
48421 | if $(LEAN); then \ |
48422 | rm -rf stage3-*; \ | |
48423 | $(STAMP) stage3-lean; \ | |
48424 | fi | |
9cb3fa6f | 48425 | |
72b2455a | 48426 | |
72b2455a | 48427 | |
80911fe1 | 48428 | .PHONY: bootstrap4 bootstrap4-lean |
be01d343 PB |
48429 | bootstrap4: |
48430 | echo stage4 > stage_final | |
48431 | @r=`${PWD_COMMAND}`; export r; \ | |
48432 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
48433 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble | |
0aed8855 | 48434 | @: $(MAKE); $(unstage) |
be01d343 PB |
48435 | @r=`${PWD_COMMAND}`; export r; \ |
48436 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 48437 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
be01d343 | 48438 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target |
0df3d27f | 48439 | |
80911fe1 PB |
48440 | bootstrap4-lean: |
48441 | echo stage4 > stage_final | |
48442 | @r=`${PWD_COMMAND}`; export r; \ | |
48443 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
48444 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble | |
48445 | @: $(MAKE); $(unstage) | |
48446 | @r=`${PWD_COMMAND}`; export r; \ | |
48447 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 48448 | TFLAGS="$(STAGE4_TFLAGS)"; \ |
80911fe1 PB |
48449 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target |
48450 | ||
72b2455a | 48451 | |
d545f33b PB |
48452 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
48453 | distclean-stage3:: distclean-stage4 | |
48454 | .PHONY: distclean-stage4 | |
48455 | distclean-stage4:: | |
0aed8855 | 48456 | @: $(MAKE); $(stage) |
e00a73e3 | 48457 | @test "`cat stage_last`" != stage4 || rm -f stage_last |
d545f33b | 48458 | rm -rf stage4-* compare3 |
0df3d27f | 48459 | |
9cb3fa6f | 48460 | |
d545f33b | 48461 | @endif gcc-bootstrap |
72b2455a PB |
48462 | |
48463 | ||
48464 | .PHONY: stageprofile-start stageprofile-end | |
48465 | ||
48466 | stageprofile-start:: | |
0aed8855 | 48467 | @: $(MAKE); $(stage); \ |
22121df0 | 48468 | echo stageprofile > stage_current; \ |
b00612cc | 48469 | echo stageprofile > stage_last; \ |
0aed8855 | 48470 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR) |
72b2455a | 48471 | @if bfd |
b00612cc PB |
48472 | @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \ |
48473 | mkdir stageprofile-bfd; \ | |
22121df0 | 48474 | mv stageprofile-bfd bfd; \ |
80911fe1 | 48475 | mv stage1-bfd prev-bfd || test -f stage1-lean |
72b2455a PB |
48476 | @endif bfd |
48477 | @if opcodes | |
b00612cc PB |
48478 | @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \ |
48479 | mkdir stageprofile-opcodes; \ | |
22121df0 | 48480 | mv stageprofile-opcodes opcodes; \ |
80911fe1 | 48481 | mv stage1-opcodes prev-opcodes || test -f stage1-lean |
72b2455a PB |
48482 | @endif opcodes |
48483 | @if binutils | |
b00612cc PB |
48484 | @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \ |
48485 | mkdir stageprofile-binutils; \ | |
22121df0 | 48486 | mv stageprofile-binutils binutils; \ |
80911fe1 | 48487 | mv stage1-binutils prev-binutils || test -f stage1-lean |
72b2455a | 48488 | @endif binutils |
201f096f | 48489 | @if fixincludes |
48490 | @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \ | |
48491 | mkdir stageprofile-fixincludes; \ | |
22121df0 | 48492 | mv stageprofile-fixincludes fixincludes; \ |
201f096f | 48493 | mv stage1-fixincludes prev-fixincludes || test -f stage1-lean |
48494 | @endif fixincludes | |
72b2455a | 48495 | @if gas |
b00612cc PB |
48496 | @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \ |
48497 | mkdir stageprofile-gas; \ | |
22121df0 | 48498 | mv stageprofile-gas gas; \ |
80911fe1 | 48499 | mv stage1-gas prev-gas || test -f stage1-lean |
72b2455a PB |
48500 | @endif gas |
48501 | @if gcc | |
b00612cc PB |
48502 | @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \ |
48503 | mkdir stageprofile-gcc; \ | |
22121df0 | 48504 | mv stageprofile-gcc gcc; \ |
80911fe1 | 48505 | mv stage1-gcc prev-gcc || test -f stage1-lean |
72b2455a | 48506 | @endif gcc |
4b900473 PB |
48507 | @if gmp |
48508 | @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \ | |
48509 | mkdir stageprofile-gmp; \ | |
22121df0 | 48510 | mv stageprofile-gmp gmp; \ |
4b900473 PB |
48511 | mv stage1-gmp prev-gmp || test -f stage1-lean |
48512 | @endif gmp | |
48513 | @if mpfr | |
48514 | @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \ | |
48515 | mkdir stageprofile-mpfr; \ | |
22121df0 | 48516 | mv stageprofile-mpfr mpfr; \ |
4b900473 PB |
48517 | mv stage1-mpfr prev-mpfr || test -f stage1-lean |
48518 | @endif mpfr | |
e8a5fa9c RW |
48519 | @if mpc |
48520 | @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \ | |
48521 | mkdir stageprofile-mpc; \ | |
22121df0 | 48522 | mv stageprofile-mpc mpc; \ |
e8a5fa9c RW |
48523 | mv stage1-mpc prev-mpc || test -f stage1-lean |
48524 | @endif mpc | |
7ec59b9e L |
48525 | @if isl |
48526 | @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \ | |
48527 | mkdir stageprofile-isl; \ | |
22121df0 | 48528 | mv stageprofile-isl isl; \ |
7ec59b9e L |
48529 | mv stage1-isl prev-isl || test -f stage1-lean |
48530 | @endif isl | |
1f53ca9a AO |
48531 | @if libelf |
48532 | @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \ | |
48533 | mkdir stageprofile-libelf; \ | |
22121df0 | 48534 | mv stageprofile-libelf libelf; \ |
1f53ca9a AO |
48535 | mv stage1-libelf prev-libelf || test -f stage1-lean |
48536 | @endif libelf | |
93f9b408 ILT |
48537 | @if gold |
48538 | @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \ | |
48539 | mkdir stageprofile-gold; \ | |
22121df0 | 48540 | mv stageprofile-gold gold; \ |
93f9b408 ILT |
48541 | mv stage1-gold prev-gold || test -f stage1-lean |
48542 | @endif gold | |
72b2455a | 48543 | @if intl |
b00612cc PB |
48544 | @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \ |
48545 | mkdir stageprofile-intl; \ | |
22121df0 | 48546 | mv stageprofile-intl intl; \ |
80911fe1 | 48547 | mv stage1-intl prev-intl || test -f stage1-lean |
72b2455a PB |
48548 | @endif intl |
48549 | @if ld | |
b00612cc PB |
48550 | @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \ |
48551 | mkdir stageprofile-ld; \ | |
22121df0 | 48552 | mv stageprofile-ld ld; \ |
80911fe1 | 48553 | mv stage1-ld prev-ld || test -f stage1-lean |
72b2455a | 48554 | @endif ld |
2bf680c4 ILT |
48555 | @if libbacktrace |
48556 | @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \ | |
48557 | mkdir stageprofile-libbacktrace; \ | |
22121df0 | 48558 | mv stageprofile-libbacktrace libbacktrace; \ |
2bf680c4 ILT |
48559 | mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean |
48560 | @endif libbacktrace | |
72b2455a | 48561 | @if libcpp |
b00612cc PB |
48562 | @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \ |
48563 | mkdir stageprofile-libcpp; \ | |
22121df0 | 48564 | mv stageprofile-libcpp libcpp; \ |
80911fe1 | 48565 | mv stage1-libcpp prev-libcpp || test -f stage1-lean |
72b2455a | 48566 | @endif libcpp |
be01d343 PB |
48567 | @if libdecnumber |
48568 | @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \ | |
48569 | mkdir stageprofile-libdecnumber; \ | |
22121df0 | 48570 | mv stageprofile-libdecnumber libdecnumber; \ |
80911fe1 | 48571 | mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean |
be01d343 | 48572 | @endif libdecnumber |
72b2455a | 48573 | @if libiberty |
b00612cc PB |
48574 | @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \ |
48575 | mkdir stageprofile-libiberty; \ | |
22121df0 | 48576 | mv stageprofile-libiberty libiberty; \ |
80911fe1 | 48577 | mv stage1-libiberty prev-libiberty || test -f stage1-lean |
72b2455a | 48578 | @endif libiberty |
1b6c0831 L |
48579 | @if libiberty-linker-plugin |
48580 | @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \ | |
48581 | mkdir stageprofile-libiberty-linker-plugin; \ | |
22121df0 | 48582 | mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin; \ |
1b6c0831 L |
48583 | mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean |
48584 | @endif libiberty-linker-plugin | |
016a3251 DD |
48585 | @if libiconv |
48586 | @cd $(HOST_SUBDIR); [ -d stageprofile-libiconv ] || \ | |
48587 | mkdir stageprofile-libiconv; \ | |
48588 | mv stageprofile-libiconv libiconv; \ | |
48589 | mv stage1-libiconv prev-libiconv || test -f stage1-lean | |
48590 | @endif libiconv | |
72b2455a | 48591 | @if zlib |
d545f33b PB |
48592 | @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \ |
48593 | mkdir stageprofile-zlib; \ | |
22121df0 | 48594 | mv stageprofile-zlib zlib; \ |
80911fe1 | 48595 | mv stage1-zlib prev-zlib || test -f stage1-lean |
d545f33b | 48596 | @endif zlib |
700d40ca ILT |
48597 | @if lto-plugin |
48598 | @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \ | |
48599 | mkdir stageprofile-lto-plugin; \ | |
22121df0 | 48600 | mv stageprofile-lto-plugin lto-plugin; \ |
700d40ca ILT |
48601 | mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean |
48602 | @endif lto-plugin | |
0aed8855 PB |
48603 | @[ -d stageprofile-$(TARGET_SUBDIR) ] || \ |
48604 | mkdir stageprofile-$(TARGET_SUBDIR); \ | |
22121df0 | 48605 | mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \ |
80911fe1 | 48606 | mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean |
0df3d27f | 48607 | |
80911fe1 | 48608 | stageprofile-end:: |
d545f33b | 48609 | @if bfd |
22121df0 L |
48610 | @if test -d $(HOST_SUBDIR)/bfd; then \ |
48611 | cd $(HOST_SUBDIR); mv bfd stageprofile-bfd; \ | |
48612 | mv prev-bfd stage1-bfd; : ; \ | |
0aed8855 | 48613 | fi |
d545f33b PB |
48614 | @endif bfd |
48615 | @if opcodes | |
22121df0 L |
48616 | @if test -d $(HOST_SUBDIR)/opcodes; then \ |
48617 | cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes; \ | |
48618 | mv prev-opcodes stage1-opcodes; : ; \ | |
0aed8855 | 48619 | fi |
d545f33b PB |
48620 | @endif opcodes |
48621 | @if binutils | |
22121df0 L |
48622 | @if test -d $(HOST_SUBDIR)/binutils; then \ |
48623 | cd $(HOST_SUBDIR); mv binutils stageprofile-binutils; \ | |
48624 | mv prev-binutils stage1-binutils; : ; \ | |
0aed8855 | 48625 | fi |
d545f33b | 48626 | @endif binutils |
201f096f | 48627 | @if fixincludes |
22121df0 L |
48628 | @if test -d $(HOST_SUBDIR)/fixincludes; then \ |
48629 | cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes; \ | |
48630 | mv prev-fixincludes stage1-fixincludes; : ; \ | |
201f096f | 48631 | fi |
48632 | @endif fixincludes | |
d545f33b | 48633 | @if gas |
22121df0 L |
48634 | @if test -d $(HOST_SUBDIR)/gas; then \ |
48635 | cd $(HOST_SUBDIR); mv gas stageprofile-gas; \ | |
48636 | mv prev-gas stage1-gas; : ; \ | |
0aed8855 | 48637 | fi |
d545f33b PB |
48638 | @endif gas |
48639 | @if gcc | |
22121df0 L |
48640 | @if test -d $(HOST_SUBDIR)/gcc; then \ |
48641 | cd $(HOST_SUBDIR); mv gcc stageprofile-gcc; \ | |
48642 | mv prev-gcc stage1-gcc; : ; \ | |
0aed8855 | 48643 | fi |
d545f33b | 48644 | @endif gcc |
4b900473 | 48645 | @if gmp |
22121df0 L |
48646 | @if test -d $(HOST_SUBDIR)/gmp; then \ |
48647 | cd $(HOST_SUBDIR); mv gmp stageprofile-gmp; \ | |
48648 | mv prev-gmp stage1-gmp; : ; \ | |
4b900473 PB |
48649 | fi |
48650 | @endif gmp | |
48651 | @if mpfr | |
22121df0 L |
48652 | @if test -d $(HOST_SUBDIR)/mpfr; then \ |
48653 | cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr; \ | |
48654 | mv prev-mpfr stage1-mpfr; : ; \ | |
4b900473 PB |
48655 | fi |
48656 | @endif mpfr | |
e8a5fa9c | 48657 | @if mpc |
22121df0 L |
48658 | @if test -d $(HOST_SUBDIR)/mpc; then \ |
48659 | cd $(HOST_SUBDIR); mv mpc stageprofile-mpc; \ | |
48660 | mv prev-mpc stage1-mpc; : ; \ | |
e8a5fa9c RW |
48661 | fi |
48662 | @endif mpc | |
7ec59b9e | 48663 | @if isl |
22121df0 L |
48664 | @if test -d $(HOST_SUBDIR)/isl; then \ |
48665 | cd $(HOST_SUBDIR); mv isl stageprofile-isl; \ | |
48666 | mv prev-isl stage1-isl; : ; \ | |
e28c595f | 48667 | fi |
7ec59b9e | 48668 | @endif isl |
1f53ca9a | 48669 | @if libelf |
22121df0 L |
48670 | @if test -d $(HOST_SUBDIR)/libelf; then \ |
48671 | cd $(HOST_SUBDIR); mv libelf stageprofile-libelf; \ | |
48672 | mv prev-libelf stage1-libelf; : ; \ | |
1f53ca9a AO |
48673 | fi |
48674 | @endif libelf | |
93f9b408 | 48675 | @if gold |
22121df0 L |
48676 | @if test -d $(HOST_SUBDIR)/gold; then \ |
48677 | cd $(HOST_SUBDIR); mv gold stageprofile-gold; \ | |
48678 | mv prev-gold stage1-gold; : ; \ | |
93f9b408 ILT |
48679 | fi |
48680 | @endif gold | |
d545f33b | 48681 | @if intl |
22121df0 L |
48682 | @if test -d $(HOST_SUBDIR)/intl; then \ |
48683 | cd $(HOST_SUBDIR); mv intl stageprofile-intl; \ | |
48684 | mv prev-intl stage1-intl; : ; \ | |
0aed8855 | 48685 | fi |
d545f33b PB |
48686 | @endif intl |
48687 | @if ld | |
22121df0 L |
48688 | @if test -d $(HOST_SUBDIR)/ld; then \ |
48689 | cd $(HOST_SUBDIR); mv ld stageprofile-ld; \ | |
48690 | mv prev-ld stage1-ld; : ; \ | |
0aed8855 | 48691 | fi |
d545f33b | 48692 | @endif ld |
2bf680c4 | 48693 | @if libbacktrace |
22121df0 L |
48694 | @if test -d $(HOST_SUBDIR)/libbacktrace; then \ |
48695 | cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace; \ | |
48696 | mv prev-libbacktrace stage1-libbacktrace; : ; \ | |
2bf680c4 ILT |
48697 | fi |
48698 | @endif libbacktrace | |
d545f33b | 48699 | @if libcpp |
22121df0 L |
48700 | @if test -d $(HOST_SUBDIR)/libcpp; then \ |
48701 | cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp; \ | |
48702 | mv prev-libcpp stage1-libcpp; : ; \ | |
0aed8855 | 48703 | fi |
d545f33b | 48704 | @endif libcpp |
be01d343 | 48705 | @if libdecnumber |
22121df0 L |
48706 | @if test -d $(HOST_SUBDIR)/libdecnumber; then \ |
48707 | cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber; \ | |
48708 | mv prev-libdecnumber stage1-libdecnumber; : ; \ | |
0aed8855 | 48709 | fi |
be01d343 | 48710 | @endif libdecnumber |
d545f33b | 48711 | @if libiberty |
22121df0 L |
48712 | @if test -d $(HOST_SUBDIR)/libiberty; then \ |
48713 | cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty; \ | |
48714 | mv prev-libiberty stage1-libiberty; : ; \ | |
0aed8855 | 48715 | fi |
d545f33b | 48716 | @endif libiberty |
1b6c0831 | 48717 | @if libiberty-linker-plugin |
22121df0 L |
48718 | @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \ |
48719 | cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin; \ | |
48720 | mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \ | |
1b6c0831 L |
48721 | fi |
48722 | @endif libiberty-linker-plugin | |
016a3251 DD |
48723 | @if libiconv |
48724 | @if test -d $(HOST_SUBDIR)/libiconv; then \ | |
48725 | cd $(HOST_SUBDIR); mv libiconv stageprofile-libiconv; \ | |
48726 | mv prev-libiconv stage1-libiconv; : ; \ | |
48727 | fi | |
48728 | @endif libiconv | |
d545f33b | 48729 | @if zlib |
22121df0 L |
48730 | @if test -d $(HOST_SUBDIR)/zlib; then \ |
48731 | cd $(HOST_SUBDIR); mv zlib stageprofile-zlib; \ | |
48732 | mv prev-zlib stage1-zlib; : ; \ | |
0aed8855 | 48733 | fi |
d545f33b | 48734 | @endif zlib |
700d40ca | 48735 | @if lto-plugin |
22121df0 L |
48736 | @if test -d $(HOST_SUBDIR)/lto-plugin; then \ |
48737 | cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin; \ | |
48738 | mv prev-lto-plugin stage1-lto-plugin; : ; \ | |
700d40ca ILT |
48739 | fi |
48740 | @endif lto-plugin | |
22121df0 L |
48741 | @if test -d $(TARGET_SUBDIR); then \ |
48742 | mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); \ | |
48743 | mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \ | |
0aed8855 | 48744 | fi |
80911fe1 | 48745 | rm -f stage_current |
72b2455a | 48746 | |
973601e1 | 48747 | # Bubble a bug fix through all the stages up to stage profile. They are |
0aed8855 | 48748 | # remade, but not reconfigured. The next stage (if any) will not be |
675492f0 | 48749 | # reconfigured either. |
d545f33b PB |
48750 | .PHONY: stageprofile-bubble |
48751 | stageprofile-bubble:: stage1-bubble | |
e360f423 PB |
48752 | @r=`${PWD_COMMAND}`; export r; \ |
48753 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
22121df0 L |
48754 | if test -f stageprofile-lean || test -f stage1-lean ; then \ |
48755 | echo Skipping rebuild of stageprofile; \ | |
d545f33b | 48756 | else \ |
f70224b5 PB |
48757 | $(MAKE) stageprofile-start; \ |
48758 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \ | |
d545f33b | 48759 | fi |
72b2455a | 48760 | |
d545f33b PB |
48761 | .PHONY: all-stageprofile clean-stageprofile |
48762 | do-clean: clean-stageprofile | |
0df3d27f | 48763 | |
72b2455a PB |
48764 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
48765 | # only possibility, but now it conflicts with no-bootstrap rules | |
48766 | @if gcc-bootstrap | |
48767 | ||
48768 | ||
48769 | ||
48770 | ||
0df3d27f | 48771 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
72b2455a | 48772 | distclean-stage1:: distclean-stageprofile |
0df3d27f | 48773 | .PHONY: distclean-stageprofile |
72b2455a | 48774 | distclean-stageprofile:: |
0aed8855 | 48775 | @: $(MAKE); $(stage) |
e00a73e3 | 48776 | @test "`cat stage_last`" != stageprofile || rm -f stage_last |
9cb3fa6f | 48777 | rm -rf stageprofile-* |
dfdffa2c PB |
48778 | |
48779 | ||
72b2455a | 48780 | @endif gcc-bootstrap |
dfdffa2c PB |
48781 | |
48782 | ||
72b2455a | 48783 | .PHONY: stagefeedback-start stagefeedback-end |
dfdffa2c | 48784 | |
72b2455a | 48785 | stagefeedback-start:: |
0aed8855 | 48786 | @: $(MAKE); $(stage); \ |
22121df0 | 48787 | echo stagefeedback > stage_current; \ |
b00612cc | 48788 | echo stagefeedback > stage_last; \ |
0aed8855 | 48789 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR) |
72b2455a | 48790 | @if bfd |
b00612cc PB |
48791 | @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \ |
48792 | mkdir stagefeedback-bfd; \ | |
22121df0 | 48793 | mv stagefeedback-bfd bfd; \ |
80911fe1 | 48794 | mv stageprofile-bfd prev-bfd || test -f stageprofile-lean |
72b2455a PB |
48795 | @endif bfd |
48796 | @if opcodes | |
b00612cc PB |
48797 | @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \ |
48798 | mkdir stagefeedback-opcodes; \ | |
22121df0 | 48799 | mv stagefeedback-opcodes opcodes; \ |
80911fe1 | 48800 | mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean |
72b2455a PB |
48801 | @endif opcodes |
48802 | @if binutils | |
b00612cc PB |
48803 | @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \ |
48804 | mkdir stagefeedback-binutils; \ | |
22121df0 | 48805 | mv stagefeedback-binutils binutils; \ |
80911fe1 | 48806 | mv stageprofile-binutils prev-binutils || test -f stageprofile-lean |
72b2455a | 48807 | @endif binutils |
201f096f | 48808 | @if fixincludes |
48809 | @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \ | |
48810 | mkdir stagefeedback-fixincludes; \ | |
22121df0 | 48811 | mv stagefeedback-fixincludes fixincludes; \ |
201f096f | 48812 | mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean |
48813 | @endif fixincludes | |
72b2455a | 48814 | @if gas |
b00612cc PB |
48815 | @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \ |
48816 | mkdir stagefeedback-gas; \ | |
22121df0 | 48817 | mv stagefeedback-gas gas; \ |
80911fe1 | 48818 | mv stageprofile-gas prev-gas || test -f stageprofile-lean |
72b2455a PB |
48819 | @endif gas |
48820 | @if gcc | |
b00612cc PB |
48821 | @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \ |
48822 | mkdir stagefeedback-gcc; \ | |
22121df0 | 48823 | mv stagefeedback-gcc gcc; \ |
80911fe1 | 48824 | mv stageprofile-gcc prev-gcc || test -f stageprofile-lean |
72b2455a | 48825 | @endif gcc |
4b900473 PB |
48826 | @if gmp |
48827 | @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \ | |
48828 | mkdir stagefeedback-gmp; \ | |
22121df0 | 48829 | mv stagefeedback-gmp gmp; \ |
4b900473 PB |
48830 | mv stageprofile-gmp prev-gmp || test -f stageprofile-lean |
48831 | @endif gmp | |
48832 | @if mpfr | |
48833 | @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \ | |
48834 | mkdir stagefeedback-mpfr; \ | |
22121df0 | 48835 | mv stagefeedback-mpfr mpfr; \ |
4b900473 PB |
48836 | mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean |
48837 | @endif mpfr | |
e8a5fa9c RW |
48838 | @if mpc |
48839 | @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \ | |
48840 | mkdir stagefeedback-mpc; \ | |
22121df0 | 48841 | mv stagefeedback-mpc mpc; \ |
e8a5fa9c RW |
48842 | mv stageprofile-mpc prev-mpc || test -f stageprofile-lean |
48843 | @endif mpc | |
7ec59b9e L |
48844 | @if isl |
48845 | @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \ | |
48846 | mkdir stagefeedback-isl; \ | |
22121df0 | 48847 | mv stagefeedback-isl isl; \ |
7ec59b9e L |
48848 | mv stageprofile-isl prev-isl || test -f stageprofile-lean |
48849 | @endif isl | |
1f53ca9a AO |
48850 | @if libelf |
48851 | @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \ | |
48852 | mkdir stagefeedback-libelf; \ | |
22121df0 | 48853 | mv stagefeedback-libelf libelf; \ |
1f53ca9a AO |
48854 | mv stageprofile-libelf prev-libelf || test -f stageprofile-lean |
48855 | @endif libelf | |
93f9b408 ILT |
48856 | @if gold |
48857 | @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \ | |
48858 | mkdir stagefeedback-gold; \ | |
22121df0 | 48859 | mv stagefeedback-gold gold; \ |
93f9b408 ILT |
48860 | mv stageprofile-gold prev-gold || test -f stageprofile-lean |
48861 | @endif gold | |
72b2455a | 48862 | @if intl |
b00612cc PB |
48863 | @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \ |
48864 | mkdir stagefeedback-intl; \ | |
22121df0 | 48865 | mv stagefeedback-intl intl; \ |
80911fe1 | 48866 | mv stageprofile-intl prev-intl || test -f stageprofile-lean |
72b2455a PB |
48867 | @endif intl |
48868 | @if ld | |
b00612cc PB |
48869 | @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \ |
48870 | mkdir stagefeedback-ld; \ | |
22121df0 | 48871 | mv stagefeedback-ld ld; \ |
80911fe1 | 48872 | mv stageprofile-ld prev-ld || test -f stageprofile-lean |
72b2455a | 48873 | @endif ld |
2bf680c4 ILT |
48874 | @if libbacktrace |
48875 | @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \ | |
48876 | mkdir stagefeedback-libbacktrace; \ | |
22121df0 | 48877 | mv stagefeedback-libbacktrace libbacktrace; \ |
2bf680c4 ILT |
48878 | mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean |
48879 | @endif libbacktrace | |
72b2455a | 48880 | @if libcpp |
b00612cc PB |
48881 | @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \ |
48882 | mkdir stagefeedback-libcpp; \ | |
22121df0 | 48883 | mv stagefeedback-libcpp libcpp; \ |
80911fe1 | 48884 | mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean |
72b2455a | 48885 | @endif libcpp |
be01d343 PB |
48886 | @if libdecnumber |
48887 | @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \ | |
48888 | mkdir stagefeedback-libdecnumber; \ | |
22121df0 | 48889 | mv stagefeedback-libdecnumber libdecnumber; \ |
80911fe1 | 48890 | mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean |
be01d343 | 48891 | @endif libdecnumber |
72b2455a | 48892 | @if libiberty |
b00612cc PB |
48893 | @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \ |
48894 | mkdir stagefeedback-libiberty; \ | |
22121df0 | 48895 | mv stagefeedback-libiberty libiberty; \ |
80911fe1 | 48896 | mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean |
72b2455a | 48897 | @endif libiberty |
1b6c0831 L |
48898 | @if libiberty-linker-plugin |
48899 | @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \ | |
48900 | mkdir stagefeedback-libiberty-linker-plugin; \ | |
22121df0 | 48901 | mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin; \ |
1b6c0831 L |
48902 | mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean |
48903 | @endif libiberty-linker-plugin | |
016a3251 DD |
48904 | @if libiconv |
48905 | @cd $(HOST_SUBDIR); [ -d stagefeedback-libiconv ] || \ | |
48906 | mkdir stagefeedback-libiconv; \ | |
48907 | mv stagefeedback-libiconv libiconv; \ | |
48908 | mv stageprofile-libiconv prev-libiconv || test -f stageprofile-lean | |
48909 | @endif libiconv | |
72b2455a | 48910 | @if zlib |
b00612cc PB |
48911 | @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \ |
48912 | mkdir stagefeedback-zlib; \ | |
22121df0 | 48913 | mv stagefeedback-zlib zlib; \ |
80911fe1 | 48914 | mv stageprofile-zlib prev-zlib || test -f stageprofile-lean |
72b2455a | 48915 | @endif zlib |
700d40ca ILT |
48916 | @if lto-plugin |
48917 | @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \ | |
48918 | mkdir stagefeedback-lto-plugin; \ | |
22121df0 | 48919 | mv stagefeedback-lto-plugin lto-plugin; \ |
700d40ca ILT |
48920 | mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean |
48921 | @endif lto-plugin | |
0aed8855 PB |
48922 | @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \ |
48923 | mkdir stagefeedback-$(TARGET_SUBDIR); \ | |
22121df0 | 48924 | mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \ |
80911fe1 | 48925 | mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean |
dfdffa2c | 48926 | |
80911fe1 | 48927 | stagefeedback-end:: |
72b2455a | 48928 | @if bfd |
22121df0 L |
48929 | @if test -d $(HOST_SUBDIR)/bfd; then \ |
48930 | cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd; \ | |
48931 | mv prev-bfd stageprofile-bfd; : ; \ | |
0aed8855 | 48932 | fi |
72b2455a PB |
48933 | @endif bfd |
48934 | @if opcodes | |
22121df0 L |
48935 | @if test -d $(HOST_SUBDIR)/opcodes; then \ |
48936 | cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes; \ | |
48937 | mv prev-opcodes stageprofile-opcodes; : ; \ | |
0aed8855 | 48938 | fi |
72b2455a PB |
48939 | @endif opcodes |
48940 | @if binutils | |
22121df0 L |
48941 | @if test -d $(HOST_SUBDIR)/binutils; then \ |
48942 | cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils; \ | |
48943 | mv prev-binutils stageprofile-binutils; : ; \ | |
0aed8855 | 48944 | fi |
72b2455a | 48945 | @endif binutils |
201f096f | 48946 | @if fixincludes |
22121df0 L |
48947 | @if test -d $(HOST_SUBDIR)/fixincludes; then \ |
48948 | cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes; \ | |
48949 | mv prev-fixincludes stageprofile-fixincludes; : ; \ | |
201f096f | 48950 | fi |
48951 | @endif fixincludes | |
72b2455a | 48952 | @if gas |
22121df0 L |
48953 | @if test -d $(HOST_SUBDIR)/gas; then \ |
48954 | cd $(HOST_SUBDIR); mv gas stagefeedback-gas; \ | |
48955 | mv prev-gas stageprofile-gas; : ; \ | |
0aed8855 | 48956 | fi |
72b2455a PB |
48957 | @endif gas |
48958 | @if gcc | |
22121df0 L |
48959 | @if test -d $(HOST_SUBDIR)/gcc; then \ |
48960 | cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc; \ | |
48961 | mv prev-gcc stageprofile-gcc; : ; \ | |
0aed8855 | 48962 | fi |
72b2455a | 48963 | @endif gcc |
4b900473 | 48964 | @if gmp |
22121df0 L |
48965 | @if test -d $(HOST_SUBDIR)/gmp; then \ |
48966 | cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp; \ | |
48967 | mv prev-gmp stageprofile-gmp; : ; \ | |
4b900473 PB |
48968 | fi |
48969 | @endif gmp | |
48970 | @if mpfr | |
22121df0 L |
48971 | @if test -d $(HOST_SUBDIR)/mpfr; then \ |
48972 | cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr; \ | |
48973 | mv prev-mpfr stageprofile-mpfr; : ; \ | |
4b900473 PB |
48974 | fi |
48975 | @endif mpfr | |
e8a5fa9c | 48976 | @if mpc |
22121df0 L |
48977 | @if test -d $(HOST_SUBDIR)/mpc; then \ |
48978 | cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc; \ | |
48979 | mv prev-mpc stageprofile-mpc; : ; \ | |
e8a5fa9c RW |
48980 | fi |
48981 | @endif mpc | |
7ec59b9e | 48982 | @if isl |
22121df0 L |
48983 | @if test -d $(HOST_SUBDIR)/isl; then \ |
48984 | cd $(HOST_SUBDIR); mv isl stagefeedback-isl; \ | |
48985 | mv prev-isl stageprofile-isl; : ; \ | |
e28c595f | 48986 | fi |
7ec59b9e | 48987 | @endif isl |
1f53ca9a | 48988 | @if libelf |
22121df0 L |
48989 | @if test -d $(HOST_SUBDIR)/libelf; then \ |
48990 | cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf; \ | |
48991 | mv prev-libelf stageprofile-libelf; : ; \ | |
1f53ca9a AO |
48992 | fi |
48993 | @endif libelf | |
93f9b408 | 48994 | @if gold |
22121df0 L |
48995 | @if test -d $(HOST_SUBDIR)/gold; then \ |
48996 | cd $(HOST_SUBDIR); mv gold stagefeedback-gold; \ | |
48997 | mv prev-gold stageprofile-gold; : ; \ | |
93f9b408 ILT |
48998 | fi |
48999 | @endif gold | |
72b2455a | 49000 | @if intl |
22121df0 L |
49001 | @if test -d $(HOST_SUBDIR)/intl; then \ |
49002 | cd $(HOST_SUBDIR); mv intl stagefeedback-intl; \ | |
49003 | mv prev-intl stageprofile-intl; : ; \ | |
0aed8855 | 49004 | fi |
72b2455a PB |
49005 | @endif intl |
49006 | @if ld | |
22121df0 L |
49007 | @if test -d $(HOST_SUBDIR)/ld; then \ |
49008 | cd $(HOST_SUBDIR); mv ld stagefeedback-ld; \ | |
49009 | mv prev-ld stageprofile-ld; : ; \ | |
0aed8855 | 49010 | fi |
72b2455a | 49011 | @endif ld |
2bf680c4 | 49012 | @if libbacktrace |
22121df0 L |
49013 | @if test -d $(HOST_SUBDIR)/libbacktrace; then \ |
49014 | cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace; \ | |
49015 | mv prev-libbacktrace stageprofile-libbacktrace; : ; \ | |
2bf680c4 ILT |
49016 | fi |
49017 | @endif libbacktrace | |
72b2455a | 49018 | @if libcpp |
22121df0 L |
49019 | @if test -d $(HOST_SUBDIR)/libcpp; then \ |
49020 | cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp; \ | |
49021 | mv prev-libcpp stageprofile-libcpp; : ; \ | |
0aed8855 | 49022 | fi |
72b2455a | 49023 | @endif libcpp |
be01d343 | 49024 | @if libdecnumber |
22121df0 L |
49025 | @if test -d $(HOST_SUBDIR)/libdecnumber; then \ |
49026 | cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber; \ | |
49027 | mv prev-libdecnumber stageprofile-libdecnumber; : ; \ | |
0aed8855 | 49028 | fi |
be01d343 | 49029 | @endif libdecnumber |
72b2455a | 49030 | @if libiberty |
22121df0 L |
49031 | @if test -d $(HOST_SUBDIR)/libiberty; then \ |
49032 | cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty; \ | |
49033 | mv prev-libiberty stageprofile-libiberty; : ; \ | |
0aed8855 | 49034 | fi |
72b2455a | 49035 | @endif libiberty |
1b6c0831 | 49036 | @if libiberty-linker-plugin |
22121df0 L |
49037 | @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \ |
49038 | cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin; \ | |
49039 | mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin; : ; \ | |
1b6c0831 L |
49040 | fi |
49041 | @endif libiberty-linker-plugin | |
016a3251 DD |
49042 | @if libiconv |
49043 | @if test -d $(HOST_SUBDIR)/libiconv; then \ | |
49044 | cd $(HOST_SUBDIR); mv libiconv stagefeedback-libiconv; \ | |
49045 | mv prev-libiconv stageprofile-libiconv; : ; \ | |
49046 | fi | |
49047 | @endif libiconv | |
72b2455a | 49048 | @if zlib |
22121df0 L |
49049 | @if test -d $(HOST_SUBDIR)/zlib; then \ |
49050 | cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib; \ | |
49051 | mv prev-zlib stageprofile-zlib; : ; \ | |
0aed8855 | 49052 | fi |
72b2455a | 49053 | @endif zlib |
700d40ca | 49054 | @if lto-plugin |
22121df0 L |
49055 | @if test -d $(HOST_SUBDIR)/lto-plugin; then \ |
49056 | cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin; \ | |
49057 | mv prev-lto-plugin stageprofile-lto-plugin; : ; \ | |
700d40ca ILT |
49058 | fi |
49059 | @endif lto-plugin | |
22121df0 L |
49060 | @if test -d $(TARGET_SUBDIR); then \ |
49061 | mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR); \ | |
49062 | mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); : ; \ | |
0aed8855 | 49063 | fi |
80911fe1 | 49064 | rm -f stage_current |
dfdffa2c | 49065 | |
973601e1 | 49066 | # Bubble a bug fix through all the stages up to stage feedback. They are |
0aed8855 | 49067 | # remade, but not reconfigured. The next stage (if any) will not be |
675492f0 | 49068 | # reconfigured either. |
72b2455a | 49069 | .PHONY: stagefeedback-bubble |
7d329e61 | 49070 | stagefeedback-bubble:: stageprofile-bubble |
e360f423 PB |
49071 | @r=`${PWD_COMMAND}`; export r; \ |
49072 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
22121df0 L |
49073 | if test -f stagefeedback-lean || test -f stageprofile-lean ; then \ |
49074 | echo Skipping rebuild of stagefeedback; \ | |
9cb3fa6f | 49075 | else \ |
f70224b5 PB |
49076 | $(MAKE) stagefeedback-start; \ |
49077 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \ | |
9cb3fa6f | 49078 | fi |
72b2455a | 49079 | |
0df3d27f | 49080 | .PHONY: all-stagefeedback clean-stagefeedback |
0df3d27f | 49081 | do-clean: clean-stagefeedback |
0df3d27f | 49082 | |
72b2455a PB |
49083 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
49084 | # only possibility, but now it conflicts with no-bootstrap rules | |
49085 | @if gcc-bootstrap | |
656fdd47 PB |
49086 | |
49087 | ||
49088 | ||
80911fe1 | 49089 | .PHONY: profiledbootstrap profiledbootstrap-lean |
be01d343 PB |
49090 | profiledbootstrap: |
49091 | echo stagefeedback > stage_final | |
49092 | @r=`${PWD_COMMAND}`; export r; \ | |
49093 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
49094 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble | |
0aed8855 | 49095 | @: $(MAKE); $(unstage) |
be01d343 PB |
49096 | @r=`${PWD_COMMAND}`; export r; \ |
49097 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 49098 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
be01d343 | 49099 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target |
7d329e61 | 49100 | |
80911fe1 PB |
49101 | profiledbootstrap-lean: |
49102 | echo stagefeedback > stage_final | |
49103 | @r=`${PWD_COMMAND}`; export r; \ | |
49104 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
49105 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble | |
49106 | @: $(MAKE); $(unstage) | |
49107 | @r=`${PWD_COMMAND}`; export r; \ | |
49108 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1b05fbbd | 49109 | TFLAGS="$(STAGEfeedback_TFLAGS)"; \ |
80911fe1 PB |
49110 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target |
49111 | ||
656fdd47 | 49112 | |
0df3d27f | 49113 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
7d329e61 | 49114 | distclean-stageprofile:: distclean-stagefeedback |
0df3d27f | 49115 | .PHONY: distclean-stagefeedback |
656fdd47 | 49116 | distclean-stagefeedback:: |
0aed8855 | 49117 | @: $(MAKE); $(stage) |
e00a73e3 | 49118 | @test "`cat stage_last`" != stagefeedback || rm -f stage_last |
9cb3fa6f | 49119 | rm -rf stagefeedback-* |
656fdd47 PB |
49120 | |
49121 | ||
72b2455a | 49122 | @endif gcc-bootstrap |
656fdd47 PB |
49123 | |
49124 | ||
49125 | ||
7d329e61 PB |
49126 | stageprofile-end:: |
49127 | $(MAKE) distclean-stagefeedback | |
656fdd47 | 49128 | |
7d329e61 | 49129 | stagefeedback-start:: |
656fdd47 PB |
49130 | @r=`${PWD_COMMAND}`; export r; \ |
49131 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7d329e61 | 49132 | for i in prev-*; do \ |
22121df0 | 49133 | j=`echo $$i | sed s/^prev-//`; \ |
7d329e61 | 49134 | cd $$r/$$i && \ |
22121df0 L |
49135 | { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL); } && \ |
49136 | { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL); }; \ | |
7d329e61 | 49137 | done |
b8908782 | 49138 | |
0df3d27f | 49139 | @if gcc-bootstrap |
0df3d27f | 49140 | do-distclean: distclean-stage1 |
c52c6897 PB |
49141 | |
49142 | # Provide a GCC build when we're building target libraries. This does | |
49143 | # not work as a dependency, just as the minimum necessary to avoid errors. | |
49144 | stage_last: | |
314b2e66 AS |
49145 | @r=`${PWD_COMMAND}`; export r; \ |
49146 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
c52c6897 | 49147 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble |
0df3d27f | 49148 | |
4f0ef2d8 CD |
49149 | # Same as unstage, but not phony and defaulting to stage1-start. We place |
49150 | # it in the dependency so that for example `make -j3 all-gcc' works. | |
49151 | stage_current: | |
49152 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
49153 | ||
c52c6897 | 49154 | .PHONY: restrap |
266df637 | 49155 | restrap:: |
c52c6897 | 49156 | @: $(MAKE); $(stage) |
1b05fbbd | 49157 | rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-* |
266df637 | 49158 | restrap:: all |
c380fdd8 | 49159 | @endif gcc-bootstrap |
c52c6897 | 49160 | |
ae831be5 NN |
49161 | # -------------------------------------- |
49162 | # Dependencies between different modules | |
49163 | # -------------------------------------- | |
252b5132 | 49164 | |
9e6ce191 | 49165 | # Generic dependencies for target modules on host stuff, especially gcc |
c52c6897 | 49166 | @if gcc-bootstrap |
e8a5fa9c RW |
49167 | configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc |
49168 | configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc | |
49169 | configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc | |
49170 | configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc | |
49171 | configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc | |
49172 | configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc | |
5eb08693 L |
49173 | configure-stage1-target-libsanitizer: maybe-all-stage1-gcc |
49174 | configure-stage2-target-libsanitizer: maybe-all-stage2-gcc | |
49175 | configure-stage3-target-libsanitizer: maybe-all-stage3-gcc | |
49176 | configure-stage4-target-libsanitizer: maybe-all-stage4-gcc | |
49177 | configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc | |
49178 | configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc | |
1b6c0831 L |
49179 | configure-stage1-target-libmpx: maybe-all-stage1-gcc |
49180 | configure-stage2-target-libmpx: maybe-all-stage2-gcc | |
49181 | configure-stage3-target-libmpx: maybe-all-stage3-gcc | |
49182 | configure-stage4-target-libmpx: maybe-all-stage4-gcc | |
49183 | configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc | |
49184 | configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc | |
95e43135 JBG |
49185 | configure-stage1-target-libvtv: maybe-all-stage1-gcc |
49186 | configure-stage2-target-libvtv: maybe-all-stage2-gcc | |
49187 | configure-stage3-target-libvtv: maybe-all-stage3-gcc | |
49188 | configure-stage4-target-libvtv: maybe-all-stage4-gcc | |
49189 | configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc | |
49190 | configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc | |
522e3d71 | 49191 | configure-target-libcilkrts: stage_last |
1b6c0831 | 49192 | configure-target-liboffloadmic: stage_last |
c52c6897 | 49193 | configure-target-libssp: stage_last |
c52c6897 | 49194 | configure-target-newlib: stage_last |
6aa8ef82 DJ |
49195 | configure-stage1-target-libgcc: maybe-all-stage1-gcc |
49196 | configure-stage2-target-libgcc: maybe-all-stage2-gcc | |
49197 | configure-stage3-target-libgcc: maybe-all-stage3-gcc | |
49198 | configure-stage4-target-libgcc: maybe-all-stage4-gcc | |
49199 | configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc | |
49200 | configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc | |
2bf680c4 | 49201 | configure-target-libbacktrace: stage_last |
e552509b | 49202 | configure-target-libquadmath: stage_last |
c52c6897 PB |
49203 | configure-target-libgfortran: stage_last |
49204 | configure-target-libobjc: stage_last | |
e552509b | 49205 | configure-target-libgo: stage_last |
c52c6897 PB |
49206 | configure-target-libtermcap: stage_last |
49207 | configure-target-winsup: stage_last | |
49208 | configure-target-libgloss: stage_last | |
c52c6897 | 49209 | configure-target-libffi: stage_last |
c52c6897 | 49210 | configure-target-zlib: stage_last |
c52c6897 PB |
49211 | configure-target-rda: stage_last |
49212 | configure-target-libada: stage_last | |
911e63d0 JR |
49213 | configure-stage1-target-libgomp: maybe-all-stage1-gcc |
49214 | configure-stage2-target-libgomp: maybe-all-stage2-gcc | |
49215 | configure-stage3-target-libgomp: maybe-all-stage3-gcc | |
49216 | configure-stage4-target-libgomp: maybe-all-stage4-gcc | |
49217 | configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc | |
49218 | configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc | |
7ec59b9e L |
49219 | configure-target-libitm: stage_last |
49220 | configure-target-libatomic: stage_last | |
c52c6897 | 49221 | @endif gcc-bootstrap |
9e6ce191 | 49222 | |
c52c6897 | 49223 | @if gcc-no-bootstrap |
9e6ce191 | 49224 | configure-target-libstdc++-v3: maybe-all-gcc |
5286fdef | 49225 | configure-target-libsanitizer: maybe-all-gcc |
1b6c0831 | 49226 | configure-target-libmpx: maybe-all-gcc |
95e43135 | 49227 | configure-target-libvtv: maybe-all-gcc |
e78e02e6 | 49228 | configure-target-libcilkrts: maybe-all-gcc |
1b6c0831 | 49229 | configure-target-liboffloadmic: maybe-all-gcc |
064d0a7c | 49230 | configure-target-libssp: maybe-all-gcc |
9e6ce191 | 49231 | configure-target-newlib: maybe-all-gcc |
6aa8ef82 | 49232 | configure-target-libgcc: maybe-all-gcc |
2bf680c4 | 49233 | configure-target-libbacktrace: maybe-all-gcc |
e552509b | 49234 | configure-target-libquadmath: maybe-all-gcc |
9e6ce191 | 49235 | configure-target-libgfortran: maybe-all-gcc |
9e6ce191 | 49236 | configure-target-libobjc: maybe-all-gcc |
e552509b | 49237 | configure-target-libgo: maybe-all-gcc |
9e6ce191 | 49238 | configure-target-libtermcap: maybe-all-gcc |
9e6ce191 | 49239 | configure-target-winsup: maybe-all-gcc |
9e6ce191 | 49240 | configure-target-libgloss: maybe-all-gcc |
9e6ce191 | 49241 | configure-target-libffi: maybe-all-gcc |
9e6ce191 | 49242 | configure-target-zlib: maybe-all-gcc |
9e6ce191 | 49243 | configure-target-rda: maybe-all-gcc |
9e6ce191 | 49244 | configure-target-libada: maybe-all-gcc |
b3ded179 | 49245 | configure-target-libgomp: maybe-all-gcc |
7ec59b9e L |
49246 | configure-target-libitm: maybe-all-gcc |
49247 | configure-target-libatomic: maybe-all-gcc | |
c52c6897 | 49248 | @endif gcc-no-bootstrap |
b3ded179 | 49249 | |
9e6ce191 | 49250 | |
ae831be5 NN |
49251 | # There are two types of dependencies here: 'hard' dependencies, where one |
49252 | # module simply won't build without the other; and 'soft' dependencies, where | |
49253 | # if the depended-on module is missing, the depending module will do without | |
49254 | # or find a substitute somewhere (perhaps installed). Soft dependencies | |
9e6ce191 | 49255 | # are made here to depend on a 'maybe-' target. If you're not sure, |
ae831be5 NN |
49256 | # it's safer to use a soft dependency. |
49257 | ||
9e6ce191 PB |
49258 | |
49259 | ||
49260 | ||
49261 | ||
c60fe18b | 49262 | |
9e6ce191 PB |
49263 | # With all the machinery above in place, it is pretty easy to generate |
49264 | # dependencies. Host dependencies are a bit more complex because we have | |
49265 | # to check for bootstrap/prebootstrap dependencies. To resolve | |
49266 | # prebootstrap dependencies, prebootstrap modules are gathered in | |
49267 | # a hash table. | |
6a9cf61e PB |
49268 | all-build-bison: maybe-all-build-texinfo |
49269 | all-build-flex: maybe-all-build-texinfo | |
9e6ce191 | 49270 | all-build-flex: maybe-all-build-bison |
9e6ce191 | 49271 | all-build-flex: maybe-all-build-m4 |
6a9cf61e | 49272 | all-build-libiberty: maybe-all-build-texinfo |
9e6ce191 | 49273 | all-build-m4: maybe-all-build-texinfo |
ee025550 | 49274 | all-build-fixincludes: maybe-all-build-libiberty |
1b6c0831 | 49275 | all-build-libcpp: maybe-all-build-libiberty |
9e6ce191 | 49276 | configure-gcc: maybe-configure-intl |
9e6ce191 PB |
49277 | configure-stage1-gcc: maybe-configure-stage1-intl |
49278 | configure-stage2-gcc: maybe-configure-stage2-intl | |
49279 | configure-stage3-gcc: maybe-configure-stage3-intl | |
49280 | configure-stage4-gcc: maybe-configure-stage4-intl | |
49281 | configure-stageprofile-gcc: maybe-configure-stageprofile-intl | |
49282 | configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl | |
861ea9c8 | 49283 | configure-gcc: maybe-all-gmp |
861ea9c8 L |
49284 | configure-stage1-gcc: maybe-all-stage1-gmp |
49285 | configure-stage2-gcc: maybe-all-stage2-gmp | |
49286 | configure-stage3-gcc: maybe-all-stage3-gmp | |
49287 | configure-stage4-gcc: maybe-all-stage4-gmp | |
49288 | configure-stageprofile-gcc: maybe-all-stageprofile-gmp | |
49289 | configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp | |
1b6c0831 | 49290 | configure-gcc: maybe-all-mpfr |
1b6c0831 L |
49291 | configure-stage1-gcc: maybe-all-stage1-mpfr |
49292 | configure-stage2-gcc: maybe-all-stage2-mpfr | |
49293 | configure-stage3-gcc: maybe-all-stage3-mpfr | |
49294 | configure-stage4-gcc: maybe-all-stage4-mpfr | |
49295 | configure-stageprofile-gcc: maybe-all-stageprofile-mpfr | |
49296 | configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr | |
49297 | configure-gcc: maybe-all-mpc | |
1b6c0831 L |
49298 | configure-stage1-gcc: maybe-all-stage1-mpc |
49299 | configure-stage2-gcc: maybe-all-stage2-mpc | |
49300 | configure-stage3-gcc: maybe-all-stage3-mpc | |
49301 | configure-stage4-gcc: maybe-all-stage4-mpc | |
49302 | configure-stageprofile-gcc: maybe-all-stageprofile-mpc | |
49303 | configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc | |
49304 | configure-gcc: maybe-all-isl | |
1b6c0831 L |
49305 | configure-stage1-gcc: maybe-all-stage1-isl |
49306 | configure-stage2-gcc: maybe-all-stage2-isl | |
49307 | configure-stage3-gcc: maybe-all-stage3-isl | |
49308 | configure-stage4-gcc: maybe-all-stage4-isl | |
49309 | configure-stageprofile-gcc: maybe-all-stageprofile-isl | |
49310 | configure-stagefeedback-gcc: maybe-all-stagefeedback-isl | |
8d8eef9a | 49311 | configure-gcc: maybe-all-lto-plugin |
8d8eef9a RW |
49312 | configure-stage1-gcc: maybe-all-stage1-lto-plugin |
49313 | configure-stage2-gcc: maybe-all-stage2-lto-plugin | |
49314 | configure-stage3-gcc: maybe-all-stage3-lto-plugin | |
49315 | configure-stage4-gcc: maybe-all-stage4-lto-plugin | |
49316 | configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin | |
49317 | configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin | |
c60fe18b | 49318 | configure-gcc: maybe-all-binutils |
c60fe18b PB |
49319 | configure-stage1-gcc: maybe-all-stage1-binutils |
49320 | configure-stage2-gcc: maybe-all-stage2-binutils | |
49321 | configure-stage3-gcc: maybe-all-stage3-binutils | |
49322 | configure-stage4-gcc: maybe-all-stage4-binutils | |
49323 | configure-stageprofile-gcc: maybe-all-stageprofile-binutils | |
49324 | configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils | |
49325 | configure-gcc: maybe-all-gas | |
c60fe18b PB |
49326 | configure-stage1-gcc: maybe-all-stage1-gas |
49327 | configure-stage2-gcc: maybe-all-stage2-gas | |
49328 | configure-stage3-gcc: maybe-all-stage3-gas | |
49329 | configure-stage4-gcc: maybe-all-stage4-gas | |
49330 | configure-stageprofile-gcc: maybe-all-stageprofile-gas | |
49331 | configure-stagefeedback-gcc: maybe-all-stagefeedback-gas | |
49332 | configure-gcc: maybe-all-ld | |
c60fe18b PB |
49333 | configure-stage1-gcc: maybe-all-stage1-ld |
49334 | configure-stage2-gcc: maybe-all-stage2-ld | |
49335 | configure-stage3-gcc: maybe-all-stage3-ld | |
49336 | configure-stage4-gcc: maybe-all-stage4-ld | |
49337 | configure-stageprofile-gcc: maybe-all-stageprofile-ld | |
49338 | configure-stagefeedback-gcc: maybe-all-stagefeedback-ld | |
93f9b408 | 49339 | configure-gcc: maybe-all-gold |
93f9b408 ILT |
49340 | configure-stage1-gcc: maybe-all-stage1-gold |
49341 | configure-stage2-gcc: maybe-all-stage2-gold | |
93f9b408 | 49342 | configure-stage3-gcc: maybe-all-stage3-gold |
93f9b408 ILT |
49343 | configure-stage4-gcc: maybe-all-stage4-gold |
49344 | configure-stageprofile-gcc: maybe-all-stageprofile-gold | |
49345 | configure-stagefeedback-gcc: maybe-all-stagefeedback-gold | |
7530c480 | 49346 | configure-gcc: maybe-all-libelf |
7530c480 AO |
49347 | configure-stage1-gcc: maybe-all-stage1-libelf |
49348 | configure-stage2-gcc: maybe-all-stage2-libelf | |
49349 | configure-stage3-gcc: maybe-all-stage3-libelf | |
49350 | configure-stage4-gcc: maybe-all-stage4-libelf | |
49351 | configure-stageprofile-gcc: maybe-all-stageprofile-libelf | |
49352 | configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf | |
016a3251 | 49353 | configure-gcc: maybe-all-libiconv |
016a3251 DD |
49354 | configure-stage1-gcc: maybe-all-stage1-libiconv |
49355 | configure-stage2-gcc: maybe-all-stage2-libiconv | |
49356 | configure-stage3-gcc: maybe-all-stage3-libiconv | |
49357 | configure-stage4-gcc: maybe-all-stage4-libiconv | |
49358 | configure-stageprofile-gcc: maybe-all-stageprofile-libiconv | |
49359 | configure-stagefeedback-gcc: maybe-all-stagefeedback-libiconv | |
9e6ce191 | 49360 | all-gcc: all-libiberty |
9e6ce191 PB |
49361 | all-stage1-gcc: all-stage1-libiberty |
49362 | all-stage2-gcc: all-stage2-libiberty | |
49363 | all-stage3-gcc: all-stage3-libiberty | |
49364 | all-stage4-gcc: all-stage4-libiberty | |
49365 | all-stageprofile-gcc: all-stageprofile-libiberty | |
49366 | all-stagefeedback-gcc: all-stagefeedback-libiberty | |
49367 | all-gcc: maybe-all-intl | |
9e6ce191 PB |
49368 | all-stage1-gcc: maybe-all-stage1-intl |
49369 | all-stage2-gcc: maybe-all-stage2-intl | |
49370 | all-stage3-gcc: maybe-all-stage3-intl | |
49371 | all-stage4-gcc: maybe-all-stage4-intl | |
49372 | all-stageprofile-gcc: maybe-all-stageprofile-intl | |
49373 | all-stagefeedback-gcc: maybe-all-stagefeedback-intl | |
4b900473 | 49374 | all-gcc: maybe-all-mpfr |
4b900473 PB |
49375 | all-stage1-gcc: maybe-all-stage1-mpfr |
49376 | all-stage2-gcc: maybe-all-stage2-mpfr | |
49377 | all-stage3-gcc: maybe-all-stage3-mpfr | |
49378 | all-stage4-gcc: maybe-all-stage4-mpfr | |
49379 | all-stageprofile-gcc: maybe-all-stageprofile-mpfr | |
49380 | all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr | |
e8a5fa9c | 49381 | all-gcc: maybe-all-mpc |
e8a5fa9c RW |
49382 | all-stage1-gcc: maybe-all-stage1-mpc |
49383 | all-stage2-gcc: maybe-all-stage2-mpc | |
49384 | all-stage3-gcc: maybe-all-stage3-mpc | |
49385 | all-stage4-gcc: maybe-all-stage4-mpc | |
49386 | all-stageprofile-gcc: maybe-all-stageprofile-mpc | |
49387 | all-stagefeedback-gcc: maybe-all-stagefeedback-mpc | |
1b6c0831 | 49388 | all-gcc: maybe-all-isl |
1b6c0831 L |
49389 | all-stage1-gcc: maybe-all-stage1-isl |
49390 | all-stage2-gcc: maybe-all-stage2-isl | |
49391 | all-stage3-gcc: maybe-all-stage3-isl | |
49392 | all-stage4-gcc: maybe-all-stage4-isl | |
49393 | all-stageprofile-gcc: maybe-all-stageprofile-isl | |
49394 | all-stagefeedback-gcc: maybe-all-stagefeedback-isl | |
72b2455a | 49395 | all-gcc: maybe-all-build-texinfo |
72b2455a PB |
49396 | all-stage1-gcc: maybe-all-build-texinfo |
49397 | all-stage2-gcc: maybe-all-build-texinfo | |
49398 | all-stage3-gcc: maybe-all-build-texinfo | |
49399 | all-stage4-gcc: maybe-all-build-texinfo | |
49400 | all-stageprofile-gcc: maybe-all-build-texinfo | |
49401 | all-stagefeedback-gcc: maybe-all-build-texinfo | |
72b2455a | 49402 | all-gcc: maybe-all-build-bison |
72b2455a PB |
49403 | all-stage1-gcc: maybe-all-build-bison |
49404 | all-stage2-gcc: maybe-all-build-bison | |
49405 | all-stage3-gcc: maybe-all-build-bison | |
49406 | all-stage4-gcc: maybe-all-build-bison | |
49407 | all-stageprofile-gcc: maybe-all-build-bison | |
49408 | all-stagefeedback-gcc: maybe-all-build-bison | |
72b2455a | 49409 | all-gcc: maybe-all-build-flex |
72b2455a PB |
49410 | all-stage1-gcc: maybe-all-build-flex |
49411 | all-stage2-gcc: maybe-all-build-flex | |
49412 | all-stage3-gcc: maybe-all-build-flex | |
49413 | all-stage4-gcc: maybe-all-build-flex | |
49414 | all-stageprofile-gcc: maybe-all-build-flex | |
49415 | all-stagefeedback-gcc: maybe-all-build-flex | |
ee025550 | 49416 | all-gcc: maybe-all-build-libiberty |
ee025550 PB |
49417 | all-stage1-gcc: maybe-all-build-libiberty |
49418 | all-stage2-gcc: maybe-all-build-libiberty | |
49419 | all-stage3-gcc: maybe-all-build-libiberty | |
49420 | all-stage4-gcc: maybe-all-build-libiberty | |
49421 | all-stageprofile-gcc: maybe-all-build-libiberty | |
49422 | all-stagefeedback-gcc: maybe-all-build-libiberty | |
ee025550 | 49423 | all-gcc: maybe-all-build-fixincludes |
ee025550 PB |
49424 | all-stage1-gcc: maybe-all-build-fixincludes |
49425 | all-stage2-gcc: maybe-all-build-fixincludes | |
49426 | all-stage3-gcc: maybe-all-build-fixincludes | |
49427 | all-stage4-gcc: maybe-all-build-fixincludes | |
49428 | all-stageprofile-gcc: maybe-all-build-fixincludes | |
49429 | all-stagefeedback-gcc: maybe-all-build-fixincludes | |
1b6c0831 | 49430 | all-gcc: maybe-all-build-libcpp |
1b6c0831 L |
49431 | all-stage1-gcc: maybe-all-build-libcpp |
49432 | all-stage2-gcc: maybe-all-build-libcpp | |
49433 | all-stage3-gcc: maybe-all-build-libcpp | |
49434 | all-stage4-gcc: maybe-all-build-libcpp | |
49435 | all-stageprofile-gcc: maybe-all-build-libcpp | |
49436 | all-stagefeedback-gcc: maybe-all-build-libcpp | |
9e6ce191 | 49437 | all-gcc: maybe-all-zlib |
9e6ce191 PB |
49438 | all-stage1-gcc: maybe-all-stage1-zlib |
49439 | all-stage2-gcc: maybe-all-stage2-zlib | |
49440 | all-stage3-gcc: maybe-all-stage3-zlib | |
49441 | all-stage4-gcc: maybe-all-stage4-zlib | |
49442 | all-stageprofile-gcc: maybe-all-stageprofile-zlib | |
49443 | all-stagefeedback-gcc: maybe-all-stagefeedback-zlib | |
8e71395b | 49444 | all-gcc: all-libbacktrace |
8e71395b L |
49445 | all-stage1-gcc: all-stage1-libbacktrace |
49446 | all-stage2-gcc: all-stage2-libbacktrace | |
49447 | all-stage3-gcc: all-stage3-libbacktrace | |
49448 | all-stage4-gcc: all-stage4-libbacktrace | |
49449 | all-stageprofile-gcc: all-stageprofile-libbacktrace | |
49450 | all-stagefeedback-gcc: all-stagefeedback-libbacktrace | |
9e6ce191 | 49451 | all-gcc: all-libcpp |
9e6ce191 PB |
49452 | all-stage1-gcc: all-stage1-libcpp |
49453 | all-stage2-gcc: all-stage2-libcpp | |
49454 | all-stage3-gcc: all-stage3-libcpp | |
49455 | all-stage4-gcc: all-stage4-libcpp | |
49456 | all-stageprofile-gcc: all-stageprofile-libcpp | |
49457 | all-stagefeedback-gcc: all-stagefeedback-libcpp | |
be01d343 | 49458 | all-gcc: all-libdecnumber |
be01d343 PB |
49459 | all-stage1-gcc: all-stage1-libdecnumber |
49460 | all-stage2-gcc: all-stage2-libdecnumber | |
49461 | all-stage3-gcc: all-stage3-libdecnumber | |
49462 | all-stage4-gcc: all-stage4-libdecnumber | |
49463 | all-stageprofile-gcc: all-stageprofile-libdecnumber | |
49464 | all-stagefeedback-gcc: all-stagefeedback-libdecnumber | |
d3ed111c | 49465 | all-gcc: maybe-all-libiberty |
d3ed111c GK |
49466 | all-stage1-gcc: maybe-all-stage1-libiberty |
49467 | all-stage2-gcc: maybe-all-stage2-libiberty | |
49468 | all-stage3-gcc: maybe-all-stage3-libiberty | |
49469 | all-stage4-gcc: maybe-all-stage4-libiberty | |
49470 | all-stageprofile-gcc: maybe-all-stageprofile-libiberty | |
49471 | all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty | |
49472 | all-gcc: maybe-all-fixincludes | |
201f096f | 49473 | all-stage1-gcc: maybe-all-stage1-fixincludes |
49474 | all-stage2-gcc: maybe-all-stage2-fixincludes | |
49475 | all-stage3-gcc: maybe-all-stage3-fixincludes | |
49476 | all-stage4-gcc: maybe-all-stage4-fixincludes | |
49477 | all-stageprofile-gcc: maybe-all-stageprofile-fixincludes | |
49478 | all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes | |
8d8eef9a | 49479 | all-gcc: maybe-all-lto-plugin |
8d8eef9a RW |
49480 | all-stage1-gcc: maybe-all-stage1-lto-plugin |
49481 | all-stage2-gcc: maybe-all-stage2-lto-plugin | |
49482 | all-stage3-gcc: maybe-all-stage3-lto-plugin | |
49483 | all-stage4-gcc: maybe-all-stage4-lto-plugin | |
49484 | all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin | |
49485 | all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin | |
016a3251 | 49486 | all-gcc: maybe-all-libiconv |
016a3251 DD |
49487 | all-stage1-gcc: maybe-all-stage1-libiconv |
49488 | all-stage2-gcc: maybe-all-stage2-libiconv | |
49489 | all-stage3-gcc: maybe-all-stage3-libiconv | |
49490 | all-stage4-gcc: maybe-all-stage4-libiconv | |
49491 | all-stageprofile-gcc: maybe-all-stageprofile-libiconv | |
49492 | all-stagefeedback-gcc: maybe-all-stagefeedback-libiconv | |
57eefe4d | 49493 | info-gcc: maybe-all-build-libiberty |
57eefe4d RW |
49494 | info-stage1-gcc: maybe-all-build-libiberty |
49495 | info-stage2-gcc: maybe-all-build-libiberty | |
49496 | info-stage3-gcc: maybe-all-build-libiberty | |
49497 | info-stage4-gcc: maybe-all-build-libiberty | |
49498 | info-stageprofile-gcc: maybe-all-build-libiberty | |
49499 | info-stagefeedback-gcc: maybe-all-build-libiberty | |
49500 | dvi-gcc: maybe-all-build-libiberty | |
57eefe4d RW |
49501 | dvi-stage1-gcc: maybe-all-build-libiberty |
49502 | dvi-stage2-gcc: maybe-all-build-libiberty | |
49503 | dvi-stage3-gcc: maybe-all-build-libiberty | |
49504 | dvi-stage4-gcc: maybe-all-build-libiberty | |
49505 | dvi-stageprofile-gcc: maybe-all-build-libiberty | |
49506 | dvi-stagefeedback-gcc: maybe-all-build-libiberty | |
49507 | pdf-gcc: maybe-all-build-libiberty | |
57eefe4d RW |
49508 | pdf-stage1-gcc: maybe-all-build-libiberty |
49509 | pdf-stage2-gcc: maybe-all-build-libiberty | |
49510 | pdf-stage3-gcc: maybe-all-build-libiberty | |
49511 | pdf-stage4-gcc: maybe-all-build-libiberty | |
49512 | pdf-stageprofile-gcc: maybe-all-build-libiberty | |
49513 | pdf-stagefeedback-gcc: maybe-all-build-libiberty | |
49514 | html-gcc: maybe-all-build-libiberty | |
57eefe4d RW |
49515 | html-stage1-gcc: maybe-all-build-libiberty |
49516 | html-stage2-gcc: maybe-all-build-libiberty | |
49517 | html-stage3-gcc: maybe-all-build-libiberty | |
49518 | html-stage4-gcc: maybe-all-build-libiberty | |
49519 | html-stageprofile-gcc: maybe-all-build-libiberty | |
49520 | html-stagefeedback-gcc: maybe-all-build-libiberty | |
69e57115 | 49521 | install-gcc: maybe-install-fixincludes |
8d8eef9a | 49522 | install-gcc: maybe-install-lto-plugin |
9b980aa1 | 49523 | install-strip-gcc: maybe-install-strip-fixincludes |
7ec59b9e | 49524 | install-strip-gcc: maybe-install-strip-lto-plugin |
9e6ce191 | 49525 | configure-libcpp: configure-libiberty |
9e6ce191 PB |
49526 | configure-stage1-libcpp: configure-stage1-libiberty |
49527 | configure-stage2-libcpp: configure-stage2-libiberty | |
49528 | configure-stage3-libcpp: configure-stage3-libiberty | |
49529 | configure-stage4-libcpp: configure-stage4-libiberty | |
49530 | configure-stageprofile-libcpp: configure-stageprofile-libiberty | |
49531 | configure-stagefeedback-libcpp: configure-stagefeedback-libiberty | |
49532 | configure-libcpp: maybe-configure-intl | |
9e6ce191 PB |
49533 | configure-stage1-libcpp: maybe-configure-stage1-intl |
49534 | configure-stage2-libcpp: maybe-configure-stage2-intl | |
49535 | configure-stage3-libcpp: maybe-configure-stage3-intl | |
49536 | configure-stage4-libcpp: maybe-configure-stage4-intl | |
49537 | configure-stageprofile-libcpp: maybe-configure-stageprofile-intl | |
49538 | configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl | |
016a3251 | 49539 | configure-libcpp: maybe-all-libiconv |
016a3251 DD |
49540 | configure-stage1-libcpp: maybe-all-stage1-libiconv |
49541 | configure-stage2-libcpp: maybe-all-stage2-libiconv | |
49542 | configure-stage3-libcpp: maybe-all-stage3-libiconv | |
49543 | configure-stage4-libcpp: maybe-all-stage4-libiconv | |
49544 | configure-stageprofile-libcpp: maybe-all-stageprofile-libiconv | |
49545 | configure-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv | |
9e6ce191 | 49546 | all-libcpp: all-libiberty |
9e6ce191 PB |
49547 | all-stage1-libcpp: all-stage1-libiberty |
49548 | all-stage2-libcpp: all-stage2-libiberty | |
49549 | all-stage3-libcpp: all-stage3-libiberty | |
49550 | all-stage4-libcpp: all-stage4-libiberty | |
49551 | all-stageprofile-libcpp: all-stageprofile-libiberty | |
49552 | all-stagefeedback-libcpp: all-stagefeedback-libiberty | |
49553 | all-libcpp: maybe-all-intl | |
9e6ce191 PB |
49554 | all-stage1-libcpp: maybe-all-stage1-intl |
49555 | all-stage2-libcpp: maybe-all-stage2-intl | |
49556 | all-stage3-libcpp: maybe-all-stage3-intl | |
49557 | all-stage4-libcpp: maybe-all-stage4-intl | |
49558 | all-stageprofile-libcpp: maybe-all-stageprofile-intl | |
49559 | all-stagefeedback-libcpp: maybe-all-stagefeedback-intl | |
016a3251 | 49560 | all-libcpp: maybe-all-libiconv |
016a3251 DD |
49561 | all-stage1-libcpp: maybe-all-stage1-libiconv |
49562 | all-stage2-libcpp: maybe-all-stage2-libiconv | |
49563 | all-stage3-libcpp: maybe-all-stage3-libiconv | |
49564 | all-stage4-libcpp: maybe-all-stage4-libiconv | |
49565 | all-stageprofile-libcpp: maybe-all-stageprofile-libiconv | |
49566 | all-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv | |
d3ed111c | 49567 | all-fixincludes: maybe-all-libiberty |
201f096f | 49568 | all-stage1-fixincludes: maybe-all-stage1-libiberty |
49569 | all-stage2-fixincludes: maybe-all-stage2-libiberty | |
49570 | all-stage3-fixincludes: maybe-all-stage3-libiberty | |
49571 | all-stage4-fixincludes: maybe-all-stage4-libiberty | |
49572 | all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty | |
49573 | all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty | |
b00612cc | 49574 | all-gnattools: maybe-all-target-libada |
8d8eef9a | 49575 | all-lto-plugin: maybe-all-libiberty |
8d8eef9a RW |
49576 | all-stage1-lto-plugin: maybe-all-stage1-libiberty |
49577 | all-stage2-lto-plugin: maybe-all-stage2-libiberty | |
49578 | all-stage3-lto-plugin: maybe-all-stage3-libiberty | |
49579 | all-stage4-lto-plugin: maybe-all-stage4-libiberty | |
49580 | all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty | |
49581 | all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty | |
1b6c0831 | 49582 | all-lto-plugin: maybe-all-libiberty-linker-plugin |
1b6c0831 L |
49583 | all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin |
49584 | all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin | |
49585 | all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin | |
49586 | all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin | |
49587 | all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin | |
49588 | all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin | |
1b6c0831 | 49589 | all-gotools: maybe-all-target-libgo |
016a3251 | 49590 | configure-intl: maybe-all-libiconv |
016a3251 DD |
49591 | configure-stage1-intl: maybe-all-stage1-libiconv |
49592 | configure-stage2-intl: maybe-all-stage2-libiconv | |
49593 | configure-stage3-intl: maybe-all-stage3-libiconv | |
49594 | configure-stage4-intl: maybe-all-stage4-libiconv | |
49595 | configure-stageprofile-intl: maybe-all-stageprofile-libiconv | |
49596 | configure-stagefeedback-intl: maybe-all-stagefeedback-libiconv | |
4b900473 | 49597 | configure-mpfr: maybe-all-gmp |
4b900473 PB |
49598 | configure-stage1-mpfr: maybe-all-stage1-gmp |
49599 | configure-stage2-mpfr: maybe-all-stage2-gmp | |
49600 | configure-stage3-mpfr: maybe-all-stage3-gmp | |
49601 | configure-stage4-mpfr: maybe-all-stage4-gmp | |
49602 | configure-stageprofile-mpfr: maybe-all-stageprofile-gmp | |
49603 | configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp | |
e8a5fa9c | 49604 | configure-mpc: maybe-all-mpfr |
e8a5fa9c RW |
49605 | configure-stage1-mpc: maybe-all-stage1-mpfr |
49606 | configure-stage2-mpc: maybe-all-stage2-mpfr | |
49607 | configure-stage3-mpc: maybe-all-stage3-mpfr | |
49608 | configure-stage4-mpc: maybe-all-stage4-mpfr | |
49609 | configure-stageprofile-mpc: maybe-all-stageprofile-mpfr | |
49610 | configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr | |
7ec59b9e | 49611 | configure-isl: maybe-all-gmp |
7ec59b9e L |
49612 | configure-stage1-isl: maybe-all-stage1-gmp |
49613 | configure-stage2-isl: maybe-all-stage2-gmp | |
49614 | configure-stage3-isl: maybe-all-stage3-gmp | |
49615 | configure-stage4-isl: maybe-all-stage4-gmp | |
49616 | configure-stageprofile-isl: maybe-all-stageprofile-gmp | |
49617 | configure-stagefeedback-isl: maybe-all-stagefeedback-gmp | |
016a3251 | 49618 | all-intl: maybe-all-libiconv |
016a3251 DD |
49619 | all-stage1-intl: maybe-all-stage1-libiconv |
49620 | all-stage2-intl: maybe-all-stage2-libiconv | |
49621 | all-stage3-intl: maybe-all-stage3-libiconv | |
49622 | all-stage4-intl: maybe-all-stage4-libiconv | |
49623 | all-stageprofile-intl: maybe-all-stageprofile-libiconv | |
49624 | all-stagefeedback-intl: maybe-all-stagefeedback-libiconv | |
9e6ce191 | 49625 | configure-gdb: maybe-configure-sim |
9e6ce191 | 49626 | all-gdb: maybe-all-readline |
72b2455a | 49627 | all-gdb: maybe-all-build-bison |
9e6ce191 | 49628 | all-gdb: maybe-all-sim |
dbbe5f95 | 49629 | all-gdb: maybe-all-libtermcap |
9e6ce191 PB |
49630 | configure-libgui: maybe-configure-tcl |
49631 | configure-libgui: maybe-configure-tk | |
49632 | all-libgui: maybe-all-tcl | |
49633 | all-libgui: maybe-all-tk | |
49634 | all-libgui: maybe-all-itcl | |
b4a77b47 | 49635 | configure-bfd: configure-libiberty |
9e6ce191 PB |
49636 | configure-stage1-bfd: configure-stage1-libiberty |
49637 | configure-stage2-bfd: configure-stage2-libiberty | |
49638 | configure-stage3-bfd: configure-stage3-libiberty | |
49639 | configure-stage4-bfd: configure-stage4-libiberty | |
49640 | configure-stageprofile-bfd: configure-stageprofile-libiberty | |
49641 | configure-stagefeedback-bfd: configure-stagefeedback-libiberty | |
20e95c23 | 49642 | configure-bfd: maybe-configure-intl |
20e95c23 DJ |
49643 | configure-stage1-bfd: maybe-configure-stage1-intl |
49644 | configure-stage2-bfd: maybe-configure-stage2-intl | |
49645 | configure-stage3-bfd: maybe-configure-stage3-intl | |
49646 | configure-stage4-bfd: maybe-configure-stage4-intl | |
49647 | configure-stageprofile-bfd: maybe-configure-stageprofile-intl | |
49648 | configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl | |
9e6ce191 | 49649 | all-bfd: maybe-all-libiberty |
9e6ce191 PB |
49650 | all-stage1-bfd: maybe-all-stage1-libiberty |
49651 | all-stage2-bfd: maybe-all-stage2-libiberty | |
49652 | all-stage3-bfd: maybe-all-stage3-libiberty | |
49653 | all-stage4-bfd: maybe-all-stage4-libiberty | |
49654 | all-stageprofile-bfd: maybe-all-stageprofile-libiberty | |
49655 | all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty | |
49656 | all-bfd: maybe-all-intl | |
9e6ce191 PB |
49657 | all-stage1-bfd: maybe-all-stage1-intl |
49658 | all-stage2-bfd: maybe-all-stage2-intl | |
49659 | all-stage3-bfd: maybe-all-stage3-intl | |
49660 | all-stage4-bfd: maybe-all-stage4-intl | |
49661 | all-stageprofile-bfd: maybe-all-stageprofile-intl | |
49662 | all-stagefeedback-bfd: maybe-all-stagefeedback-intl | |
d2d67aea | 49663 | all-bfd: maybe-all-zlib |
d2d67aea L |
49664 | all-stage1-bfd: maybe-all-stage1-zlib |
49665 | all-stage2-bfd: maybe-all-stage2-zlib | |
49666 | all-stage3-bfd: maybe-all-stage3-zlib | |
49667 | all-stage4-bfd: maybe-all-stage4-zlib | |
49668 | all-stageprofile-bfd: maybe-all-stageprofile-zlib | |
49669 | all-stagefeedback-bfd: maybe-all-stagefeedback-zlib | |
66775d67 | 49670 | configure-opcodes: configure-libiberty |
66775d67 AM |
49671 | configure-stage1-opcodes: configure-stage1-libiberty |
49672 | configure-stage2-opcodes: configure-stage2-libiberty | |
66775d67 | 49673 | configure-stage3-opcodes: configure-stage3-libiberty |
66775d67 AM |
49674 | configure-stage4-opcodes: configure-stage4-libiberty |
49675 | configure-stageprofile-opcodes: configure-stageprofile-libiberty | |
49676 | configure-stagefeedback-opcodes: configure-stagefeedback-libiberty | |
49677 | all-opcodes: maybe-all-libiberty | |
66775d67 AM |
49678 | all-stage1-opcodes: maybe-all-stage1-libiberty |
49679 | all-stage2-opcodes: maybe-all-stage2-libiberty | |
66775d67 | 49680 | all-stage3-opcodes: maybe-all-stage3-libiberty |
66775d67 AM |
49681 | all-stage4-opcodes: maybe-all-stage4-libiberty |
49682 | all-stageprofile-opcodes: maybe-all-stageprofile-libiberty | |
49683 | all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty | |
20e95c23 | 49684 | configure-binutils: maybe-configure-intl |
20e95c23 DJ |
49685 | configure-stage1-binutils: maybe-configure-stage1-intl |
49686 | configure-stage2-binutils: maybe-configure-stage2-intl | |
49687 | configure-stage3-binutils: maybe-configure-stage3-intl | |
49688 | configure-stage4-binutils: maybe-configure-stage4-intl | |
49689 | configure-stageprofile-binutils: maybe-configure-stageprofile-intl | |
49690 | configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl | |
9e6ce191 | 49691 | all-binutils: maybe-all-libiberty |
9e6ce191 PB |
49692 | all-stage1-binutils: maybe-all-stage1-libiberty |
49693 | all-stage2-binutils: maybe-all-stage2-libiberty | |
49694 | all-stage3-binutils: maybe-all-stage3-libiberty | |
49695 | all-stage4-binutils: maybe-all-stage4-libiberty | |
49696 | all-stageprofile-binutils: maybe-all-stageprofile-libiberty | |
49697 | all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty | |
49698 | all-binutils: maybe-all-opcodes | |
9e6ce191 PB |
49699 | all-stage1-binutils: maybe-all-stage1-opcodes |
49700 | all-stage2-binutils: maybe-all-stage2-opcodes | |
49701 | all-stage3-binutils: maybe-all-stage3-opcodes | |
49702 | all-stage4-binutils: maybe-all-stage4-opcodes | |
49703 | all-stageprofile-binutils: maybe-all-stageprofile-opcodes | |
49704 | all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes | |
49705 | all-binutils: maybe-all-bfd | |
9e6ce191 PB |
49706 | all-stage1-binutils: maybe-all-stage1-bfd |
49707 | all-stage2-binutils: maybe-all-stage2-bfd | |
49708 | all-stage3-binutils: maybe-all-stage3-bfd | |
49709 | all-stage4-binutils: maybe-all-stage4-bfd | |
49710 | all-stageprofile-binutils: maybe-all-stageprofile-bfd | |
49711 | all-stagefeedback-binutils: maybe-all-stagefeedback-bfd | |
72b2455a | 49712 | all-binutils: maybe-all-build-flex |
72b2455a PB |
49713 | all-stage1-binutils: maybe-all-build-flex |
49714 | all-stage2-binutils: maybe-all-build-flex | |
49715 | all-stage3-binutils: maybe-all-build-flex | |
49716 | all-stage4-binutils: maybe-all-build-flex | |
49717 | all-stageprofile-binutils: maybe-all-build-flex | |
49718 | all-stagefeedback-binutils: maybe-all-build-flex | |
72b2455a | 49719 | all-binutils: maybe-all-build-bison |
72b2455a PB |
49720 | all-stage1-binutils: maybe-all-build-bison |
49721 | all-stage2-binutils: maybe-all-build-bison | |
49722 | all-stage3-binutils: maybe-all-build-bison | |
49723 | all-stage4-binutils: maybe-all-build-bison | |
49724 | all-stageprofile-binutils: maybe-all-build-bison | |
49725 | all-stagefeedback-binutils: maybe-all-build-bison | |
9e6ce191 | 49726 | all-binutils: maybe-all-intl |
9e6ce191 PB |
49727 | all-stage1-binutils: maybe-all-stage1-intl |
49728 | all-stage2-binutils: maybe-all-stage2-intl | |
49729 | all-stage3-binutils: maybe-all-stage3-intl | |
49730 | all-stage4-binutils: maybe-all-stage4-intl | |
49731 | all-stageprofile-binutils: maybe-all-stageprofile-intl | |
49732 | all-stagefeedback-binutils: maybe-all-stagefeedback-intl | |
0140d685 | 49733 | all-binutils: maybe-all-gas |
0140d685 L |
49734 | all-stage1-binutils: maybe-all-stage1-gas |
49735 | all-stage2-binutils: maybe-all-stage2-gas | |
49736 | all-stage3-binutils: maybe-all-stage3-gas | |
49737 | all-stage4-binutils: maybe-all-stage4-gas | |
49738 | all-stageprofile-binutils: maybe-all-stageprofile-gas | |
49739 | all-stagefeedback-binutils: maybe-all-stagefeedback-gas | |
ae831be5 | 49740 | install-binutils: maybe-install-opcodes |
9b980aa1 | 49741 | install-strip-binutils: maybe-install-strip-opcodes |
cf662e21 | 49742 | install-opcodes: maybe-install-bfd |
9b980aa1 | 49743 | install-strip-opcodes: maybe-install-strip-bfd |
20e95c23 | 49744 | configure-gas: maybe-configure-intl |
20e95c23 DJ |
49745 | configure-stage1-gas: maybe-configure-stage1-intl |
49746 | configure-stage2-gas: maybe-configure-stage2-intl | |
49747 | configure-stage3-gas: maybe-configure-stage3-intl | |
49748 | configure-stage4-gas: maybe-configure-stage4-intl | |
49749 | configure-stageprofile-gas: maybe-configure-stageprofile-intl | |
49750 | configure-stagefeedback-gas: maybe-configure-stagefeedback-intl | |
9e6ce191 | 49751 | all-gas: maybe-all-libiberty |
9e6ce191 PB |
49752 | all-stage1-gas: maybe-all-stage1-libiberty |
49753 | all-stage2-gas: maybe-all-stage2-libiberty | |
49754 | all-stage3-gas: maybe-all-stage3-libiberty | |
49755 | all-stage4-gas: maybe-all-stage4-libiberty | |
49756 | all-stageprofile-gas: maybe-all-stageprofile-libiberty | |
49757 | all-stagefeedback-gas: maybe-all-stagefeedback-libiberty | |
49758 | all-gas: maybe-all-opcodes | |
9e6ce191 PB |
49759 | all-stage1-gas: maybe-all-stage1-opcodes |
49760 | all-stage2-gas: maybe-all-stage2-opcodes | |
49761 | all-stage3-gas: maybe-all-stage3-opcodes | |
49762 | all-stage4-gas: maybe-all-stage4-opcodes | |
49763 | all-stageprofile-gas: maybe-all-stageprofile-opcodes | |
49764 | all-stagefeedback-gas: maybe-all-stagefeedback-opcodes | |
49765 | all-gas: maybe-all-bfd | |
9e6ce191 PB |
49766 | all-stage1-gas: maybe-all-stage1-bfd |
49767 | all-stage2-gas: maybe-all-stage2-bfd | |
49768 | all-stage3-gas: maybe-all-stage3-bfd | |
49769 | all-stage4-gas: maybe-all-stage4-bfd | |
49770 | all-stageprofile-gas: maybe-all-stageprofile-bfd | |
49771 | all-stagefeedback-gas: maybe-all-stagefeedback-bfd | |
49772 | all-gas: maybe-all-intl | |
9e6ce191 PB |
49773 | all-stage1-gas: maybe-all-stage1-intl |
49774 | all-stage2-gas: maybe-all-stage2-intl | |
49775 | all-stage3-gas: maybe-all-stage3-intl | |
49776 | all-stage4-gas: maybe-all-stage4-intl | |
49777 | all-stageprofile-gas: maybe-all-stageprofile-intl | |
49778 | all-stagefeedback-gas: maybe-all-stagefeedback-intl | |
20e95c23 | 49779 | configure-ld: maybe-configure-intl |
20e95c23 DJ |
49780 | configure-stage1-ld: maybe-configure-stage1-intl |
49781 | configure-stage2-ld: maybe-configure-stage2-intl | |
49782 | configure-stage3-ld: maybe-configure-stage3-intl | |
49783 | configure-stage4-ld: maybe-configure-stage4-intl | |
49784 | configure-stageprofile-ld: maybe-configure-stageprofile-intl | |
49785 | configure-stagefeedback-ld: maybe-configure-stagefeedback-intl | |
9e6ce191 | 49786 | all-ld: maybe-all-libiberty |
9e6ce191 PB |
49787 | all-stage1-ld: maybe-all-stage1-libiberty |
49788 | all-stage2-ld: maybe-all-stage2-libiberty | |
49789 | all-stage3-ld: maybe-all-stage3-libiberty | |
49790 | all-stage4-ld: maybe-all-stage4-libiberty | |
49791 | all-stageprofile-ld: maybe-all-stageprofile-libiberty | |
49792 | all-stagefeedback-ld: maybe-all-stagefeedback-libiberty | |
49793 | all-ld: maybe-all-bfd | |
9e6ce191 PB |
49794 | all-stage1-ld: maybe-all-stage1-bfd |
49795 | all-stage2-ld: maybe-all-stage2-bfd | |
49796 | all-stage3-ld: maybe-all-stage3-bfd | |
49797 | all-stage4-ld: maybe-all-stage4-bfd | |
49798 | all-stageprofile-ld: maybe-all-stageprofile-bfd | |
49799 | all-stagefeedback-ld: maybe-all-stagefeedback-bfd | |
49800 | all-ld: maybe-all-opcodes | |
9e6ce191 PB |
49801 | all-stage1-ld: maybe-all-stage1-opcodes |
49802 | all-stage2-ld: maybe-all-stage2-opcodes | |
49803 | all-stage3-ld: maybe-all-stage3-opcodes | |
49804 | all-stage4-ld: maybe-all-stage4-opcodes | |
49805 | all-stageprofile-ld: maybe-all-stageprofile-opcodes | |
49806 | all-stagefeedback-ld: maybe-all-stagefeedback-opcodes | |
72b2455a | 49807 | all-ld: maybe-all-build-bison |
72b2455a PB |
49808 | all-stage1-ld: maybe-all-build-bison |
49809 | all-stage2-ld: maybe-all-build-bison | |
49810 | all-stage3-ld: maybe-all-build-bison | |
49811 | all-stage4-ld: maybe-all-build-bison | |
49812 | all-stageprofile-ld: maybe-all-build-bison | |
49813 | all-stagefeedback-ld: maybe-all-build-bison | |
72b2455a | 49814 | all-ld: maybe-all-build-flex |
72b2455a PB |
49815 | all-stage1-ld: maybe-all-build-flex |
49816 | all-stage2-ld: maybe-all-build-flex | |
49817 | all-stage3-ld: maybe-all-build-flex | |
49818 | all-stage4-ld: maybe-all-build-flex | |
49819 | all-stageprofile-ld: maybe-all-build-flex | |
49820 | all-stagefeedback-ld: maybe-all-build-flex | |
9e6ce191 | 49821 | all-ld: maybe-all-intl |
9e6ce191 PB |
49822 | all-stage1-ld: maybe-all-stage1-intl |
49823 | all-stage2-ld: maybe-all-stage2-intl | |
49824 | all-stage3-ld: maybe-all-stage3-intl | |
49825 | all-stage4-ld: maybe-all-stage4-intl | |
49826 | all-stageprofile-ld: maybe-all-stageprofile-intl | |
49827 | all-stagefeedback-ld: maybe-all-stagefeedback-intl | |
0140d685 | 49828 | all-ld: maybe-all-gas |
0140d685 L |
49829 | all-stage1-ld: maybe-all-stage1-gas |
49830 | all-stage2-ld: maybe-all-stage2-gas | |
49831 | all-stage3-ld: maybe-all-stage3-gas | |
49832 | all-stage4-ld: maybe-all-stage4-gas | |
49833 | all-stageprofile-ld: maybe-all-stageprofile-gas | |
49834 | all-stagefeedback-ld: maybe-all-stagefeedback-gas | |
a6305403 | 49835 | all-ld: maybe-all-binutils |
a6305403 YS |
49836 | all-stage1-ld: maybe-all-stage1-binutils |
49837 | all-stage2-ld: maybe-all-stage2-binutils | |
49838 | all-stage3-ld: maybe-all-stage3-binutils | |
49839 | all-stage4-ld: maybe-all-stage4-binutils | |
49840 | all-stageprofile-ld: maybe-all-stageprofile-binutils | |
49841 | all-stagefeedback-ld: maybe-all-stagefeedback-binutils | |
e6de499b | 49842 | install-ld: maybe-install-gold |
9b980aa1 | 49843 | install-strip-ld: maybe-install-strip-gold |
93f9b408 | 49844 | configure-gold: maybe-configure-intl |
93f9b408 ILT |
49845 | configure-stage1-gold: maybe-configure-stage1-intl |
49846 | configure-stage2-gold: maybe-configure-stage2-intl | |
93f9b408 | 49847 | configure-stage3-gold: maybe-configure-stage3-intl |
93f9b408 ILT |
49848 | configure-stage4-gold: maybe-configure-stage4-intl |
49849 | configure-stageprofile-gold: maybe-configure-stageprofile-intl | |
49850 | configure-stagefeedback-gold: maybe-configure-stagefeedback-intl | |
49851 | all-gold: maybe-all-libiberty | |
93f9b408 ILT |
49852 | all-stage1-gold: maybe-all-stage1-libiberty |
49853 | all-stage2-gold: maybe-all-stage2-libiberty | |
93f9b408 | 49854 | all-stage3-gold: maybe-all-stage3-libiberty |
93f9b408 ILT |
49855 | all-stage4-gold: maybe-all-stage4-libiberty |
49856 | all-stageprofile-gold: maybe-all-stageprofile-libiberty | |
49857 | all-stagefeedback-gold: maybe-all-stagefeedback-libiberty | |
49858 | all-gold: maybe-all-intl | |
93f9b408 ILT |
49859 | all-stage1-gold: maybe-all-stage1-intl |
49860 | all-stage2-gold: maybe-all-stage2-intl | |
93f9b408 | 49861 | all-stage3-gold: maybe-all-stage3-intl |
93f9b408 ILT |
49862 | all-stage4-gold: maybe-all-stage4-intl |
49863 | all-stageprofile-gold: maybe-all-stageprofile-intl | |
49864 | all-stagefeedback-gold: maybe-all-stagefeedback-intl | |
49865 | all-gold: maybe-all-bfd | |
93f9b408 ILT |
49866 | all-stage1-gold: maybe-all-stage1-bfd |
49867 | all-stage2-gold: maybe-all-stage2-bfd | |
93f9b408 | 49868 | all-stage3-gold: maybe-all-stage3-bfd |
93f9b408 ILT |
49869 | all-stage4-gold: maybe-all-stage4-bfd |
49870 | all-stageprofile-gold: maybe-all-stageprofile-bfd | |
49871 | all-stagefeedback-gold: maybe-all-stagefeedback-bfd | |
49872 | all-gold: maybe-all-build-bison | |
93f9b408 ILT |
49873 | all-stage1-gold: maybe-all-build-bison |
49874 | all-stage2-gold: maybe-all-build-bison | |
93f9b408 | 49875 | all-stage3-gold: maybe-all-build-bison |
93f9b408 ILT |
49876 | all-stage4-gold: maybe-all-build-bison |
49877 | all-stageprofile-gold: maybe-all-build-bison | |
49878 | all-stagefeedback-gold: maybe-all-build-bison | |
0140d685 | 49879 | all-gold: maybe-all-gas |
0140d685 L |
49880 | all-stage1-gold: maybe-all-stage1-gas |
49881 | all-stage2-gold: maybe-all-stage2-gas | |
49882 | all-stage3-gold: maybe-all-stage3-gas | |
49883 | all-stage4-gold: maybe-all-stage4-gas | |
49884 | all-stageprofile-gold: maybe-all-stageprofile-gas | |
49885 | all-stagefeedback-gold: maybe-all-stagefeedback-gas | |
e5164e97 | 49886 | check-gold: maybe-all-binutils |
e5164e97 ILT |
49887 | check-stage1-gold: maybe-all-stage1-binutils |
49888 | check-stage2-gold: maybe-all-stage2-binutils | |
e5164e97 | 49889 | check-stage3-gold: maybe-all-stage3-binutils |
e5164e97 ILT |
49890 | check-stage4-gold: maybe-all-stage4-binutils |
49891 | check-stageprofile-gold: maybe-all-stageprofile-binutils | |
49892 | check-stagefeedback-gold: maybe-all-stagefeedback-binutils | |
700d40ca | 49893 | check-gold: maybe-all-gas |
700d40ca ILT |
49894 | check-stage1-gold: maybe-all-stage1-gas |
49895 | check-stage2-gold: maybe-all-stage2-gas | |
49896 | check-stage3-gold: maybe-all-stage3-gas | |
49897 | check-stage4-gold: maybe-all-stage4-gas | |
49898 | check-stageprofile-gold: maybe-all-stageprofile-gas | |
49899 | check-stagefeedback-gold: maybe-all-stagefeedback-gas | |
7206a0ee | 49900 | configure-opcodes: maybe-configure-intl |
7206a0ee JJ |
49901 | configure-stage1-opcodes: maybe-configure-stage1-intl |
49902 | configure-stage2-opcodes: maybe-configure-stage2-intl | |
49903 | configure-stage3-opcodes: maybe-configure-stage3-intl | |
49904 | configure-stage4-opcodes: maybe-configure-stage4-intl | |
49905 | configure-stageprofile-opcodes: maybe-configure-stageprofile-intl | |
49906 | configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl | |
9e6ce191 | 49907 | all-opcodes: maybe-all-bfd |
9e6ce191 PB |
49908 | all-stage1-opcodes: maybe-all-stage1-bfd |
49909 | all-stage2-opcodes: maybe-all-stage2-bfd | |
49910 | all-stage3-opcodes: maybe-all-stage3-bfd | |
49911 | all-stage4-opcodes: maybe-all-stage4-bfd | |
49912 | all-stageprofile-opcodes: maybe-all-stageprofile-bfd | |
49913 | all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd | |
49914 | all-opcodes: maybe-all-libiberty | |
9e6ce191 PB |
49915 | all-stage1-opcodes: maybe-all-stage1-libiberty |
49916 | all-stage2-opcodes: maybe-all-stage2-libiberty | |
49917 | all-stage3-opcodes: maybe-all-stage3-libiberty | |
49918 | all-stage4-opcodes: maybe-all-stage4-libiberty | |
49919 | all-stageprofile-opcodes: maybe-all-stageprofile-libiberty | |
49920 | all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty | |
7206a0ee | 49921 | all-opcodes: maybe-all-intl |
7206a0ee JJ |
49922 | all-stage1-opcodes: maybe-all-stage1-intl |
49923 | all-stage2-opcodes: maybe-all-stage2-intl | |
49924 | all-stage3-opcodes: maybe-all-stage3-intl | |
49925 | all-stage4-opcodes: maybe-all-stage4-intl | |
49926 | all-stageprofile-opcodes: maybe-all-stageprofile-intl | |
49927 | all-stagefeedback-opcodes: maybe-all-stagefeedback-intl | |
9e6ce191 PB |
49928 | all-dejagnu: maybe-all-tcl |
49929 | all-dejagnu: maybe-all-expect | |
49930 | all-dejagnu: maybe-all-tk | |
49931 | configure-expect: maybe-configure-tcl | |
49932 | configure-expect: maybe-configure-tk | |
49933 | all-expect: maybe-all-tcl | |
49934 | all-expect: maybe-all-tk | |
49935 | configure-itcl: maybe-configure-tcl | |
49936 | configure-itcl: maybe-configure-tk | |
49937 | all-itcl: maybe-all-tcl | |
49938 | all-itcl: maybe-all-tk | |
ae831be5 | 49939 | install-itcl: maybe-install-tcl |
9b980aa1 | 49940 | install-strip-itcl: maybe-install-strip-tcl |
b4a77b47 | 49941 | configure-tk: maybe-configure-tcl |
ae831be5 | 49942 | all-tk: maybe-all-tcl |
9e6ce191 PB |
49943 | all-sid: maybe-all-tcl |
49944 | all-sid: maybe-all-tk | |
49945 | install-sid: maybe-install-tcl | |
9b980aa1 | 49946 | install-strip-sid: maybe-install-strip-tcl |
9e6ce191 | 49947 | install-sid: maybe-install-tk |
9b980aa1 | 49948 | install-strip-sid: maybe-install-strip-tk |
9e6ce191 PB |
49949 | all-sim: maybe-all-readline |
49950 | all-sim: maybe-configure-gdb | |
72b2455a | 49951 | all-fastjar: maybe-all-build-texinfo |
72b2455a | 49952 | all-bison: maybe-all-build-texinfo |
72b2455a | 49953 | all-flex: maybe-all-build-bison |
9e6ce191 | 49954 | all-flex: maybe-all-m4 |
72b2455a | 49955 | all-flex: maybe-all-build-texinfo |
72b2455a | 49956 | all-m4: maybe-all-build-texinfo |
b4a77b47 | 49957 | configure-target-fastjar: maybe-configure-target-zlib |
9e6ce191 | 49958 | all-target-fastjar: maybe-all-target-zlib |
e552509b | 49959 | configure-target-libgo: maybe-configure-target-libffi |
8e71395b | 49960 | all-target-libgo: maybe-all-target-libbacktrace |
e552509b | 49961 | all-target-libgo: maybe-all-target-libffi |
9417cd2f | 49962 | all-target-libgo: maybe-all-target-libatomic |
cff87f51 | 49963 | configure-target-libstdc++-v3: maybe-configure-target-libgomp |
911e63d0 JR |
49964 | configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp |
49965 | configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp | |
49966 | configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp | |
49967 | configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp | |
49968 | configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp | |
49969 | configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp | |
5286fdef | 49970 | configure-target-libsanitizer: maybe-all-target-libstdc++-v3 |
5eb08693 L |
49971 | configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3 |
49972 | configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3 | |
49973 | configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3 | |
49974 | configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3 | |
49975 | configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3 | |
49976 | configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3 | |
95e43135 | 49977 | configure-target-libvtv: maybe-all-target-libstdc++-v3 |
95e43135 JBG |
49978 | configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3 |
49979 | configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3 | |
49980 | configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3 | |
49981 | configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3 | |
49982 | configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3 | |
49983 | configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3 | |
911e63d0 | 49984 | all-target-libstdc++-v3: maybe-configure-target-libgomp |
911e63d0 JR |
49985 | all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp |
49986 | all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp | |
49987 | all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp | |
49988 | all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp | |
49989 | all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp | |
49990 | all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp | |
9417cd2f JBG |
49991 | install-target-libgo: maybe-install-target-libatomic |
49992 | install-target-libgfortran: maybe-install-target-libquadmath | |
49993 | install-target-libgfortran: maybe-install-target-libgcc | |
3dae1673 | 49994 | install-target-libsanitizer: maybe-install-target-libstdc++-v3 |
9417cd2f | 49995 | install-target-libsanitizer: maybe-install-target-libgcc |
95e43135 JBG |
49996 | install-target-libvtv: maybe-install-target-libstdc++-v3 |
49997 | install-target-libvtv: maybe-install-target-libgcc | |
522e3d71 | 49998 | install-target-libcilkrts: maybe-install-target-libstdc++-v3 |
49999 | install-target-libcilkrts: maybe-install-target-libgcc | |
1b6c0831 L |
50000 | install-target-liboffloadmic: maybe-install-target-libstdc++-v3 |
50001 | install-target-liboffloadmic: maybe-install-target-libgcc | |
9417cd2f JBG |
50002 | install-target-libitm: maybe-install-target-libgcc |
50003 | install-target-libobjc: maybe-install-target-libgcc | |
50004 | install-target-libstdc++-v3: maybe-install-target-libgcc | |
2c133ff9 | 50005 | all-target-libgloss: maybe-all-target-newlib |
9e6ce191 | 50006 | all-target-winsup: maybe-all-target-libtermcap |
e552509b | 50007 | configure-target-libgfortran: maybe-all-target-libquadmath |
68996839 | 50008 | configure-target-libgfortran: maybe-all-target-libbacktrace |
9e6ce191 PB |
50009 | |
50010 | ||
4119873a AO |
50011 | @if gcc-bootstrap |
50012 | configure-gnattools: stage_last | |
50013 | configure-libcc1: stage_last | |
50014 | configure-utils: stage_last | |
50015 | configure-gdb: stage_last | |
50016 | configure-gprof: stage_last | |
50017 | configure-sid: stage_last | |
50018 | configure-sim: stage_last | |
50019 | configure-fastjar: stage_last | |
50020 | configure-bison: stage_last | |
50021 | configure-flex: stage_last | |
50022 | configure-m4: stage_last | |
50023 | @endif gcc-bootstrap | |
50024 | ||
50025 | @unless gcc-bootstrap | |
50026 | all-gnattools: maybe-all-target-libstdc++-v3 | |
50027 | configure-libcc1: maybe-configure-gcc | |
50028 | all-libcc1: maybe-all-gcc | |
50029 | all-utils: maybe-all-libiberty | |
50030 | configure-gdb: maybe-all-intl | |
50031 | configure-gdb: maybe-all-bfd | |
50032 | configure-gdb: maybe-all-libiconv | |
50033 | all-gdb: maybe-all-libiberty | |
50034 | all-gdb: maybe-all-libiconv | |
50035 | all-gdb: maybe-all-opcodes | |
50036 | all-gdb: maybe-all-libdecnumber | |
50037 | configure-gprof: maybe-configure-intl | |
50038 | all-gprof: maybe-all-libiberty | |
50039 | all-gprof: maybe-all-bfd | |
50040 | all-gprof: maybe-all-opcodes | |
50041 | all-gprof: maybe-all-intl | |
50042 | all-gprof: maybe-all-gas | |
50043 | all-sid: maybe-all-libiberty | |
50044 | all-sid: maybe-all-bfd | |
50045 | all-sid: maybe-all-opcodes | |
50046 | configure-sim: maybe-configure-intl | |
50047 | all-sim: maybe-all-intl | |
50048 | all-sim: maybe-all-libiberty | |
50049 | all-sim: maybe-all-bfd | |
50050 | all-sim: maybe-all-opcodes | |
50051 | all-fastjar: maybe-all-zlib | |
50052 | all-fastjar: maybe-all-libiberty | |
50053 | all-bison: maybe-all-intl | |
50054 | all-flex: maybe-all-intl | |
50055 | all-m4: maybe-all-intl | |
50056 | configure-target-libgo: maybe-all-target-libstdc++-v3 | |
50057 | configure-target-liboffloadmic: maybe-configure-target-libgomp | |
50058 | all-target-liboffloadmic: maybe-all-target-libgomp | |
50059 | configure-target-newlib: maybe-all-binutils | |
50060 | configure-target-newlib: maybe-all-ld | |
50061 | @endunless gcc-bootstrap | |
50062 | ||
6aa8ef82 DJ |
50063 | # Dependencies for target modules on other target modules are |
50064 | # described by lang_env_dependencies; the defaults apply to anything | |
50065 | # not mentioned there. | |
50066 | ||
50067 | ||
50068 | @if gcc-bootstrap | |
e8a5fa9c RW |
50069 | configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc |
50070 | configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc | |
50071 | configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc | |
50072 | configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc | |
50073 | configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc | |
50074 | configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc | |
5eb08693 L |
50075 | configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc |
50076 | configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc | |
50077 | configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc | |
50078 | configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc | |
50079 | configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc | |
50080 | configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc | |
1b6c0831 L |
50081 | configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc |
50082 | configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc | |
50083 | configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc | |
50084 | configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc | |
50085 | configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc | |
50086 | configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc | |
95e43135 JBG |
50087 | configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc |
50088 | configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc | |
50089 | configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc | |
50090 | configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc | |
50091 | configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc | |
50092 | configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc | |
911e63d0 JR |
50093 | configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc |
50094 | configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc | |
50095 | configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc | |
50096 | configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc | |
50097 | configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc | |
50098 | configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc | |
6aa8ef82 DJ |
50099 | @endif gcc-bootstrap |
50100 | ||
50101 | @if gcc-no-bootstrap | |
50102 | configure-target-libstdc++-v3: maybe-all-target-libgcc | |
5286fdef | 50103 | configure-target-libsanitizer: maybe-all-target-libgcc |
1b6c0831 | 50104 | configure-target-libmpx: maybe-all-target-libgcc |
95e43135 | 50105 | configure-target-libvtv: maybe-all-target-libgcc |
522e3d71 | 50106 | configure-target-libcilkrts: maybe-all-target-libgcc |
1b6c0831 | 50107 | configure-target-liboffloadmic: maybe-all-target-libgcc |
e78e02e6 | 50108 | configure-target-libssp: maybe-all-target-libgcc |
6aa8ef82 | 50109 | configure-target-newlib: maybe-all-target-libgcc |
2bf680c4 | 50110 | configure-target-libbacktrace: maybe-all-target-libgcc |
e552509b | 50111 | configure-target-libquadmath: maybe-all-target-libgcc |
6aa8ef82 DJ |
50112 | configure-target-libgfortran: maybe-all-target-libgcc |
50113 | configure-target-libobjc: maybe-all-target-libgcc | |
e552509b | 50114 | configure-target-libgo: maybe-all-target-libgcc |
6aa8ef82 DJ |
50115 | configure-target-libtermcap: maybe-all-target-libgcc |
50116 | configure-target-winsup: maybe-all-target-libgcc | |
50117 | configure-target-libgloss: maybe-all-target-libgcc | |
6aa8ef82 | 50118 | configure-target-libffi: maybe-all-target-libgcc |
6aa8ef82 | 50119 | configure-target-zlib: maybe-all-target-libgcc |
6aa8ef82 DJ |
50120 | configure-target-rda: maybe-all-target-libgcc |
50121 | configure-target-libada: maybe-all-target-libgcc | |
50122 | configure-target-libgomp: maybe-all-target-libgcc | |
7ec59b9e L |
50123 | configure-target-libitm: maybe-all-target-libgcc |
50124 | configure-target-libatomic: maybe-all-target-libgcc | |
6aa8ef82 DJ |
50125 | @endif gcc-no-bootstrap |
50126 | ||
50127 | ||
50128 | configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss | |
50129 | ||
5286fdef L |
50130 | configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss |
50131 | ||
1b6c0831 L |
50132 | configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss |
50133 | ||
95e43135 JBG |
50134 | configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss |
50135 | ||
e78e02e6 | 50136 | configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss |
50137 | configure-target-libcilkrts: maybe-all-target-libstdc++-v3 | |
50138 | ||
1b6c0831 L |
50139 | configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss |
50140 | configure-target-liboffloadmic: maybe-all-target-libstdc++-v3 | |
50141 | ||
6aa8ef82 DJ |
50142 | configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss |
50143 | ||
50144 | ||
50145 | ||
2bf680c4 ILT |
50146 | configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss |
50147 | ||
e552509b ILT |
50148 | configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss |
50149 | ||
6aa8ef82 DJ |
50150 | configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss |
50151 | ||
50152 | configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss | |
50153 | ||
e552509b ILT |
50154 | configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss |
50155 | ||
6aa8ef82 DJ |
50156 | configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss |
50157 | ||
50158 | configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss | |
50159 | ||
50160 | ||
6aa8ef82 | 50161 | configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss |
4849dfd8 | 50162 | configure-target-libffi: maybe-all-target-libstdc++-v3 |
6aa8ef82 | 50163 | |
6aa8ef82 DJ |
50164 | configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss |
50165 | ||
6aa8ef82 DJ |
50166 | configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss |
50167 | ||
50168 | configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss | |
50169 | ||
50170 | configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss | |
50171 | ||
7ec59b9e L |
50172 | configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss |
50173 | configure-target-libitm: maybe-all-target-libstdc++-v3 | |
50174 | ||
50175 | configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss | |
50176 | ||
6aa8ef82 | 50177 | |
907be67c | 50178 | CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@ |
9e6ce191 | 50179 | GDB_TK = @GDB_TK@ |
907be67c DJ |
50180 | INSTALL_GDB_TK = @INSTALL_GDB_TK@ |
50181 | configure-gdb: $(CONFIGURE_GDB_TK) | |
9e6ce191 | 50182 | all-gdb: $(gdbnlmrequirements) $(GDB_TK) |
907be67c | 50183 | install-gdb: $(INSTALL_GDB_TK) |
907a7241 | 50184 | |
a2cc058a NN |
50185 | # Serialization dependencies. Host configures don't work well in parallel to |
50186 | # each other, due to contention over config.cache. Target configures and | |
50187 | # build configures are similar. | |
50188 | @serialization_dependencies@ | |
50189 | ||
15723a45 NN |
50190 | # -------------------------------- |
50191 | # Regenerating top level configury | |
50192 | # -------------------------------- | |
252b5132 | 50193 | |
14a2a2f1 | 50194 | # Rebuilding Makefile.in, using autogen. |
43be203f | 50195 | AUTOGEN = autogen |
6b784d9f | 50196 | $(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def |
43be203f | 50197 | cd $(srcdir) && $(AUTOGEN) Makefile.def |
14a2a2f1 | 50198 | |
a0da8069 | 50199 | # Rebuilding Makefile. |
43be203f AO |
50200 | Makefile: $(srcdir)/Makefile.in config.status |
50201 | CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
50202 | ||
479759c8 | 50203 | config.status: configure |
10ecffb9 | 50204 | CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck |
252b5132 | 50205 | |
a0da8069 | 50206 | # Rebuilding configure. |
43be203f | 50207 | AUTOCONF = autoconf |
da888c87 | 50208 | $(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \ |
0597bdc4 AM |
50209 | $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4 \ |
50210 | $(srcdir)/config/elf.m4 $(srcdir)/config/isl.m4 \ | |
50211 | $(srcdir)/libtool.m4 $(srcdir)/ltoptions.m4 $(srcdir)/ltsugar.m4 \ | |
50212 | $(srcdir)/ltversion.m4 $(srcdir)/lt~obsolete.m4 | |
43be203f | 50213 | cd $(srcdir) && $(AUTOCONF) |
252b5132 | 50214 | |
3728fade NN |
50215 | # ------------------------------ |
50216 | # Special directives to GNU Make | |
50217 | # ------------------------------ | |
50218 | ||
3728fade NN |
50219 | # Don't pass command-line variables to submakes. |
50220 | .NOEXPORT: | |
50221 | MAKEOVERRIDES= | |
50222 | ||
252b5132 | 50223 | # end of Makefile.in |