Commit | Line | Data |
---|---|---|
eb02fd64 | 1 | # |
131a3881 | 2 | # Makefile for directory with subdirs to build. |
f46d03c5 ILT |
3 | # Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 97, 1998 |
4 | # Free Software Foundation | |
eb02fd64 | 5 | # |
4dfe09da RP |
6 | # This file is free software; you can redistribute it and/or modify |
7 | # it under the terms of the GNU General Public License as published by | |
8 | # the Free Software Foundation; either version 2 of the License, or | |
9 | # (at your option) any later version. | |
10 | # | |
11 | # This program is distributed in the hope that it will be useful, | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | # GNU General Public License for more details. | |
15 | # | |
16 | # You should have received a copy of the GNU General Public License | |
17 | # along with this program; if not, write to the Free Software | |
8c222f6e | 18 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
4dfe09da | 19 | # |
f149eb99 | 20 | |
eb02fd64 | 21 | srcdir = . |
28f3b094 | 22 | |
4d714963 | 23 | prefix = /usr/local |
7fcfdcf7 | 24 | exec_prefix = $(prefix) |
2ec9f3fd KS |
25 | |
26 | bindir=${exec_prefix}/bin | |
27 | sbindir=${exec_prefix}/sbin | |
28 | libexecdir=${exec_prefix}/libexec | |
29 | datadir=${prefix}/share | |
30 | sysconfdir=${prefix}/etc | |
31 | sharedstatedir=${prefix}/com | |
32 | localstatedir=${prefix}/var | |
33 | libdir=${exec_prefix}/lib | |
34 | includedir=${prefix}/include | |
35 | oldincludedir=/usr/include | |
36 | infodir=${prefix}/info | |
37 | mandir=${prefix}/man | |
38 | ||
a54e05f6 | 39 | tooldir = $(exec_prefix)/$(target) |
7fcfdcf7 | 40 | |
51489233 ILT |
41 | program_transform_name = |
42 | ||
4d714963 RP |
43 | man1dir = $(mandir)/man1 |
44 | man2dir = $(mandir)/man2 | |
45 | man3dir = $(mandir)/man3 | |
46 | man4dir = $(mandir)/man4 | |
47 | man5dir = $(mandir)/man5 | |
48 | man6dir = $(mandir)/man6 | |
49 | man7dir = $(mandir)/man7 | |
50 | man8dir = $(mandir)/man8 | |
51 | man9dir = $(mandir)/man9 | |
e677105c DE |
52 | infodir = $(prefix)/info |
53 | includedir = $(prefix)/include | |
54 | # Directory in which the compiler finds executables, libraries, etc. | |
55 | libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version) | |
04103845 | 56 | GDB_NLM_DEPS = |
4d714963 RP |
57 | |
58 | SHELL = /bin/sh | |
59 | ||
8270cd76 ILT |
60 | # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a |
61 | # cygwin32 host. | |
62 | INSTALL_PROGRAM_ARGS = | |
63 | ||
64434418 | 64 | INSTALL = $(SHELL) $$s/install-sh -c |
8270cd76 ILT |
65 | INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS) |
66 | INSTALL_SCRIPT = $(INSTALL) | |
5cc73086 | 67 | INSTALL_DATA = $(INSTALL) -m 644 |
3c8735af | 68 | |
09985c96 | 69 | INSTALL_DOSREL = install-dosrel-fake |
a987271c | 70 | |
440868a0 | 71 | AS = as |
ec342d7d | 72 | AR = ar |
b5329d84 | 73 | AR_FLAGS = rc |
e85e07cb | 74 | CC = cc |
7b636683 | 75 | |
66957ce4 ILT |
76 | # Special variables passed down in EXTRA_GCC_FLAGS. They are defined |
77 | # here so that they can be overridden by Makefile fragments. | |
753d5049 SC |
78 | HOST_CC = $(CC_FOR_BUILD) |
79 | HOST_PREFIX = | |
80 | HOST_PREFIX_1 = loser- | |
81 | ||
572728c6 | 82 | # These flag values are normally overridden by the configure script. |
f8a6ad66 | 83 | CFLAGS = -g |
572728c6 ILT |
84 | CXXFLAGS = -g -O2 |
85 | ||
3585593d BK |
86 | LIBCFLAGS = $(CFLAGS) |
87 | CFLAGS_FOR_TARGET = $(CFLAGS) | |
276c2d7d | 88 | LDFLAGS_FOR_TARGET = |
3585593d | 89 | LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) |
04103845 DE |
90 | PICFLAG = |
91 | PICFLAG_FOR_TARGET = | |
7b636683 | 92 | |
7d9f0c54 MW |
93 | CHILLFLAGS = $(CFLAGS) |
94 | CHILL_LIB = -lchill | |
2cf00a36 | 95 | CXX = c++ |
7b636683 | 96 | |
1d5fcc66 | 97 | # Use -O2 to stress test the compiler. |
864a5888 | 98 | LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates |
3585593d | 99 | CXXFLAGS_FOR_TARGET = $(CXXFLAGS) |
2f64ef77 | 100 | LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates |
7b636683 | 101 | |
4d714963 | 102 | RANLIB = ranlib |
b6ae0f10 ILT |
103 | |
104 | DLLTOOL = dlltool | |
d29cd970 | 105 | WINDRES = windres |
b6ae0f10 | 106 | |
51489233 | 107 | NM = nm |
64434418 ILT |
108 | |
109 | LD = ld | |
110 | ||
5cc73086 KR |
111 | # Not plain GZIP, since gzip looks there for extra command-line options. |
112 | GZIPPROG = gzip | |
eb02fd64 | 113 | |
aaefc574 JM |
114 | # These values are substituted by configure. |
115 | DEFAULT_YACC = yacc | |
116 | DEFAULT_LEX = lex | |
e677105c | 117 | DEFAULT_M4 = m4 |
aaefc574 | 118 | |
3a671555 | 119 | BISON = `if [ -f $$r/bison/bison ] ; then \ |
97036944 | 120 | echo $$r/bison/bison -L $$s/bison/ ; \ |
3a671555 JM |
121 | else \ |
122 | echo bison ; \ | |
123 | fi` | |
124 | ||
125 | YACC = `if [ -f $$r/bison/bison ] ; then \ | |
97036944 | 126 | echo $$r/bison/bison -y -L $$s/bison/ ; \ |
3a671555 JM |
127 | elif [ -f $$r/byacc/byacc ] ; then \ |
128 | echo $$r/byacc/byacc ; \ | |
129 | else \ | |
130 | echo ${DEFAULT_YACC} ; \ | |
06a07944 | 131 | fi` |
2645fb0c | 132 | |
5cc73086 KR |
133 | LEX = `if [ -f $$r/flex/flex ] ; \ |
134 | then echo $$r/flex/flex ; \ | |
aaefc574 | 135 | else echo ${DEFAULT_LEX} ; fi` |
2198e4ba | 136 | |
5cc73086 KR |
137 | M4 = `if [ -f $$r/m4/m4 ] ; \ |
138 | then echo $$r/m4/m4 ; \ | |
e677105c | 139 | else echo ${DEFAULT_M4} ; fi` |
65e21701 | 140 | |
97840afa | 141 | MAKEINFO = `if [ -f $$r/texinfo/makeinfo/Makefile ] ; \ |
5cc73086 | 142 | then echo $$r/texinfo/makeinfo/makeinfo ; \ |
77806c3e | 143 | else echo makeinfo ; fi` |
484fa12d | 144 | |
9823504d ILT |
145 | # This just becomes part of the MAKEINFO definition passed down to |
146 | # sub-makes. It lets flags be given on the command line while still | |
147 | # using the makeinfo from the object tree. | |
148 | MAKEINFOFLAGS = | |
b772d75e | 149 | |
5cc73086 KR |
150 | EXPECT = `if [ -f $$r/expect/expect ] ; \ |
151 | then echo $$r/expect/expect ; \ | |
a54e05f6 KR |
152 | else echo expect ; fi` |
153 | ||
81eb5025 ILT |
154 | RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \ |
155 | then echo $$s/dejagnu/runtest ; \ | |
6a42d184 DZ |
156 | else echo runtest ; fi` |
157 | ||
f980fcfb | 158 | |
e85e07cb | 159 | # compilers to use to create programs which must be run in the build |
440868a0 ILT |
160 | # environment. |
161 | CC_FOR_BUILD = $(CC) | |
e85e07cb | 162 | CXX_FOR_BUILD = $(CXX) |
440868a0 | 163 | |
9f73dd6a | 164 | SUBDIRS = "this is set via configure, don't edit this" |
6a3958b2 RP |
165 | OTHERS = |
166 | ||
ca2ce3b3 ILT |
167 | # This is set by the configure script to the list of directories which |
168 | # should be built using the target tools. | |
d8ea6d40 FL |
169 | |
170 | # start-sanitize-dsp | |
171 | SPECIAL_LIBS = libdsp | |
172 | # end-sanitize-dsp | |
173 | ||
174 | TARGET_CONFIGDIRS = libiberty libgloss $(SPECIAL_LIBS) newlib libio librx libstdc++ libg++ winsup opcodes libstub cygmon | |
ca2ce3b3 | 175 | |
e66eb658 | 176 | # Target libraries are put under this directory: |
d92eef0c JM |
177 | # Changed by configure to $(target_alias) if cross. |
178 | TARGET_SUBDIR = . | |
e66eb658 | 179 | |
ca2ce3b3 ILT |
180 | # This is set by the configure script to the arguments passed to configure. |
181 | CONFIG_ARGUMENTS = | |
182 | ||
b6ae0f10 ILT |
183 | # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared |
184 | # was used. | |
185 | SET_LIB_PATH = | |
186 | ||
187 | # This is the name of the environment variable used for the path to | |
188 | # the libraries. This may be changed by configure.in. | |
189 | RPATH_ENVVAR = LD_LIBRARY_PATH | |
190 | ||
191 | # configure.in sets SET_LIB_PATH to this if --enable-shared was used. | |
192 | REALLY_SET_LIB_PATH = \ | |
193 | $(RPATH_ENVVAR)=$$r/bfd:$$r/opcodes:$$$(RPATH_ENVVAR); \ | |
194 | export $(RPATH_ENVVAR); | |
195 | ||
a0f47eb7 | 196 | ALL = all.normal |
ff290baf | 197 | INSTALL_TARGET = installdirs \ |
43e1bf25 | 198 | install-gcc \ |
f35c6160 DZ |
199 | $(INSTALL_MODULES) \ |
200 | $(INSTALL_TARGET_MODULES) \ | |
201 | $(INSTALL_X11_MODULES) \ | |
d8ea6d40 | 202 | $(INSTALL_DOSREL) |
fb660409 | 203 | |
e677105c DE |
204 | INSTALL_TARGET_CROSS = installdirs \ |
205 | install-gcc-cross \ | |
206 | $(INSTALL_MODULES) \ | |
207 | $(INSTALL_TARGET_MODULES) \ | |
208 | $(INSTALL_X11_MODULES) \ | |
209 | $(INSTALL_DOSREL) | |
210 | ||
51489233 | 211 | CC_FOR_TARGET = ` \ |
72ce05e8 | 212 | if [ -f $$r/gcc/xgcc ] ; then \ |
e66eb658 | 213 | if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \ |
d5a8bfde | 214 | if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \ |
abc93570 | 215 | echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/$(TARGET_SUBDIR)/newlib/ -L$$r/$(TARGET_SUBDIR)/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \ |
d5a8bfde | 216 | else \ |
81eb5025 | 217 | echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \ |
d5a8bfde | 218 | fi; \ |
753d5049 SC |
219 | else \ |
220 | echo $$r/gcc/xgcc -B$$r/gcc/; \ | |
221 | fi; \ | |
51489233 | 222 | else \ |
378fd382 | 223 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
51489233 ILT |
224 | echo $(CC); \ |
225 | else \ | |
ea6d5817 | 226 | t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \ |
51489233 ILT |
227 | fi; \ |
228 | fi` | |
229 | ||
72ce05e8 ILT |
230 | # If CC_FOR_TARGET is not overriden on the command line, then this |
231 | # variable is passed down to the gcc Makefile, where it is used to | |
232 | # build libgcc2.a. We define it here so that it can itself be | |
233 | # overridden on the command line. | |
234 | GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/ | |
235 | ||
7d9f0c54 | 236 | CHILL_FOR_TARGET = ` \ |
72ce05e8 | 237 | if [ -f $$r/gcc/xgcc ] ; then \ |
04103845 | 238 | echo $$r/gcc/xgcc -B$$r/gcc/ -L$$r/gcc/ch/runtime/; \ |
7d9f0c54 MW |
239 | else \ |
240 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ | |
241 | echo $(CC); \ | |
242 | else \ | |
ea6d5817 | 243 | t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \ |
7d9f0c54 MW |
244 | fi; \ |
245 | fi` | |
34b3298b | 246 | |
d1bea4c7 | 247 | CXX_FOR_TARGET = ` \ |
72ce05e8 | 248 | if [ -f $$r/gcc/xgcc ] ; then \ |
e66eb658 | 249 | if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \ |
d5a8bfde | 250 | if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \ |
abc93570 | 251 | echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/$(TARGET_SUBDIR)/newlib/ -L$$r/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \ |
d5a8bfde | 252 | else \ |
81eb5025 | 253 | echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \ |
d5a8bfde | 254 | fi; \ |
753d5049 SC |
255 | else \ |
256 | echo $$r/gcc/xgcc -B$$r/gcc/; \ | |
257 | fi; \ | |
fca4f908 | 258 | else \ |
e85e07cb ILT |
259 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
260 | echo $(CXX); \ | |
fca4f908 | 261 | else \ |
2cf00a36 | 262 | t='$(program_transform_name)'; echo c++ | sed -e 's/x/x/' $$t; \ |
fca4f908 MW |
263 | fi; \ |
264 | fi` | |
265 | ||
440868a0 | 266 | AS_FOR_TARGET = ` \ |
ef9a68f7 ILT |
267 | if [ -f $$r/gas/as-new ] ; then \ |
268 | echo $$r/gas/as-new ; \ | |
440868a0 | 269 | else \ |
e85e07cb | 270 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
440868a0 ILT |
271 | echo $(AS); \ |
272 | else \ | |
ea6d5817 | 273 | t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \ |
81246025 | 274 | fi; \ |
440868a0 ILT |
275 | fi` |
276 | ||
054f9ada | 277 | LD_FOR_TARGET = ` \ |
19ebe123 ILT |
278 | if [ -f $$r/ld/ld-new ] ; then \ |
279 | echo $$r/ld/ld-new ; \ | |
054f9ada JM |
280 | else \ |
281 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ | |
282 | echo $(LD); \ | |
283 | else \ | |
284 | t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \ | |
285 | fi; \ | |
286 | fi` | |
287 | ||
a220ba0f SC |
288 | DLLTOOL_FOR_TARGET = ` \ |
289 | if [ -f $$r/binutils/dlltool ] ; then \ | |
290 | echo $$r/binutils/dlltool ; \ | |
291 | else \ | |
292 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ | |
293 | echo $(DLLTOOL); \ | |
294 | else \ | |
295 | t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \ | |
296 | fi; \ | |
297 | fi` | |
298 | ||
d29cd970 ILT |
299 | WINDRES_FOR_TARGET = ` \ |
300 | if [ -f $$r/binutils/windres ] ; then \ | |
301 | echo $$r/binutils/windres ; \ | |
302 | else \ | |
303 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ | |
304 | echo $(WINDRES); \ | |
305 | else \ | |
306 | t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \ | |
307 | fi; \ | |
308 | fi` | |
309 | ||
51489233 | 310 | AR_FOR_TARGET = ` \ |
5cc73086 KR |
311 | if [ -f $$r/binutils/ar ] ; then \ |
312 | echo $$r/binutils/ar ; \ | |
51489233 | 313 | else \ |
378fd382 | 314 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
51489233 ILT |
315 | echo $(AR); \ |
316 | else \ | |
ea6d5817 | 317 | t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \ |
81246025 | 318 | fi; \ |
51489233 ILT |
319 | fi` |
320 | ||
321 | RANLIB_FOR_TARGET = ` \ | |
5cc73086 KR |
322 | if [ -f $$r/binutils/ranlib ] ; then \ |
323 | echo $$r/binutils/ranlib ; \ | |
51489233 | 324 | else \ |
378fd382 | 325 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
51489233 ILT |
326 | echo $(RANLIB); \ |
327 | else \ | |
ea6d5817 | 328 | t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \ |
81246025 | 329 | fi; \ |
51489233 ILT |
330 | fi` |
331 | ||
332 | NM_FOR_TARGET = ` \ | |
0e25edca ILT |
333 | if [ -f $$r/binutils/nm-new ] ; then \ |
334 | echo $$r/binutils/nm-new ; \ | |
51489233 | 335 | else \ |
378fd382 | 336 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
51489233 ILT |
337 | echo $(NM); \ |
338 | else \ | |
ea6d5817 | 339 | t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \ |
81246025 | 340 | fi; \ |
51489233 ILT |
341 | fi` |
342 | ||
456876c8 DE |
343 | # The first rule in the file had better be this one. Don't put any above it. |
344 | # This lives here to allow makefile fragments to contain dependencies. | |
345 | all: all.normal | |
346 | .PHONY: all | |
347 | ||
348 | # These can be overridden by config/mt-*. | |
349 | # The _TARGET_ is because they're specified in mt-foo. | |
350 | # The _HOST_ is because they're programs that run on the host. | |
351 | EXTRA_TARGET_HOST_ALL_MODULES = | |
352 | EXTRA_TARGET_HOST_INSTALL_MODULES = | |
353 | EXTRA_TARGET_HOST_CHECK_MODULES = | |
354 | ||
eb02fd64 | 355 | #### host and target specific makefile fragments come in here. |
ec342d7d | 356 | ### |
eb02fd64 | 357 | |
0ef4728f ILT |
358 | # Flags to pass down to all sub-makes. |
359 | # Please keep these in alphabetical order. | |
360 | BASE_FLAGS_TO_PASS = \ | |
2198e4ba | 361 | "AR_FLAGS=$(AR_FLAGS)" \ |
d09de70e | 362 | "AR_FOR_TARGET=$(AR_FOR_TARGET)" \ |
0ef4728f | 363 | "AS_FOR_TARGET=$(AS_FOR_TARGET)" \ |
378fd382 | 364 | "BISON=$(BISON)" \ |
378fd382 | 365 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ |
0ef4728f | 366 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ |
2198e4ba | 367 | "CFLAGS=$(CFLAGS)" \ |
3585593d | 368 | "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ |
7d9f0c54 MW |
369 | "CHILLFLAGS=$(CHILLFLAGS)" \ |
370 | "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \ | |
371 | "CHILL_LIB=$(CHILL_LIB)" \ | |
0ef4728f ILT |
372 | "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ |
373 | "CXXFLAGS=$(CXXFLAGS)" \ | |
3585593d | 374 | "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \ |
0ef4728f | 375 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ |
a220ba0f | 376 | "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \ |
2198e4ba MT |
377 | "INSTALL=$(INSTALL)" \ |
378 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
440868a0 | 379 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ |
8270cd76 | 380 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ |
378fd382 DZ |
381 | "LDFLAGS=$(LDFLAGS)" \ |
382 | "LEX=$(LEX)" \ | |
054f9ada | 383 | "LD_FOR_TARGET=$(LD_FOR_TARGET)" \ |
3585593d BK |
384 | "LIBCFLAGS=$(LIBCFLAGS)" \ |
385 | "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ | |
04103845 DE |
386 | "LIBCXXFLAGS=$(LIBCXXFLAGS)" \ |
387 | "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \ | |
65e21701 | 388 | "M4=$(M4)" \ |
eb40ca93 | 389 | "MAKE=$(MAKE)" \ |
9823504d | 390 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ |
0ef4728f | 391 | "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ |
d09de70e | 392 | "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \ |
43e1bf25 | 393 | "RPATH_ENVVAR=$(RPATH_ENVVAR)" \ |
49dfa984 | 394 | "SHELL=$(SHELL)" \ |
a54e05f6 | 395 | "EXPECT=$(EXPECT)" \ |
6a42d184 | 396 | "RUNTEST=$(RUNTEST)" \ |
86365152 | 397 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ |
e677105c | 398 | "TARGET_SUBDIR=$(TARGET_SUBDIR)" \ |
d29cd970 | 399 | "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \ |
3a671555 | 400 | "YACC=$(YACC)" \ |
2ec9f3fd KS |
401 | "bindir=$(bindir)" \ |
402 | "datadir=$(datadir)" \ | |
378fd382 | 403 | "exec_prefix=$(exec_prefix)" \ |
2ec9f3fd KS |
404 | "includedir=$(includedir)" \ |
405 | "infodir=$(infodir)" \ | |
406 | "libdir=$(libdir)" \ | |
407 | "libexecdir=$(libexecdir)" \ | |
3173839b | 408 | "lispdir=$(lispdir)" \ |
2ec9f3fd KS |
409 | "localstatedir=$(localstatedir)" \ |
410 | "mandir=$(mandir)" \ | |
411 | "oldincludedir=$(oldincludedir)" \ | |
378fd382 | 412 | "prefix=$(prefix)" \ |
2ec9f3fd KS |
413 | "sbindir=$(sbindir)" \ |
414 | "sharedstatedir=$(sharedstatedir)" \ | |
415 | "sysconfdir=$(sysconfdir)" \ | |
e677105c DE |
416 | "tooldir=$(tooldir)" \ |
417 | "gxx_include_dir=$(gxx_include_dir)" \ | |
418 | "gcc_version=$(gcc_version)" \ | |
419 | "gcc_version_trigger=$(gcc_version_trigger)" \ | |
420 | "target_alias=$(target_alias)" \ | |
421 | "libsubdir=$(libsubdir)" | |
2198e4ba | 422 | |
0ef4728f ILT |
423 | # Flags to pass down to most sub-makes, in which we're building with |
424 | # the host environment. | |
6d681784 | 425 | # If any variables are added here, they must be added to do-*, below. |
0ef4728f | 426 | EXTRA_HOST_FLAGS = \ |
6d681784 JG |
427 | 'AR=$(AR)' \ |
428 | 'AS=$(AS)' \ | |
429 | 'CC=$(CC)' \ | |
430 | 'CXX=$(CXX)' \ | |
b6ae0f10 | 431 | 'DLLTOOL=$(DLLTOOL)' \ |
64434418 | 432 | 'LD=$(LD)' \ |
6d681784 | 433 | 'NM=$(NM)' \ |
d29cd970 ILT |
434 | 'RANLIB=$(RANLIB)' \ |
435 | 'WINDRES=$(WINDRES)' | |
0ef4728f | 436 | |
97840afa | 437 | FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) |
0ef4728f | 438 | |
d1bea4c7 DZ |
439 | # Flags that are concerned with the location of the X11 include files |
440 | # and library files | |
054f9ada JM |
441 | # |
442 | # NOTE: until the top-level is getting the values via autoconf, it only | |
443 | # causes problems to have this top-level Makefile overriding the autoconf-set | |
444 | # values in child directories. Only variables that don't conflict with | |
445 | # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now. | |
446 | # | |
d1bea4c7 | 447 | X11_FLAGS_TO_PASS = \ |
054f9ada JM |
448 | 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \ |
449 | 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)' | |
d1bea4c7 | 450 | |
0ef4728f ILT |
451 | # Flags to pass down to makes which are built with the target environment. |
452 | # The double $ decreases the length of the command line; the variables | |
453 | # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. | |
6d681784 | 454 | # If any variables are added here, they must be added to do-*, below. |
0ef4728f ILT |
455 | EXTRA_TARGET_FLAGS = \ |
456 | 'AR=$$(AR_FOR_TARGET)' \ | |
457 | 'AS=$$(AS_FOR_TARGET)' \ | |
458 | 'CC=$$(CC_FOR_TARGET)' \ | |
3585593d | 459 | 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \ |
0ef4728f | 460 | 'CXX=$$(CXX_FOR_TARGET)' \ |
3585593d | 461 | 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \ |
a220ba0f | 462 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ |
054f9ada | 463 | 'LD=$$(LD_FOR_TARGET)' \ |
3585593d BK |
464 | 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \ |
465 | 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \ | |
0ef4728f | 466 | 'NM=$$(NM_FOR_TARGET)' \ |
d29cd970 ILT |
467 | 'RANLIB=$$(RANLIB_FOR_TARGET)' \ |
468 | 'WINDRES=$$(WINDRES_FOR_TARGET)' | |
0ef4728f ILT |
469 | |
470 | TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) | |
51489233 | 471 | |
f4e414f1 ILT |
472 | # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it |
473 | # unfortunately needs the native compiler and the target ar and | |
0ef4728f | 474 | # ranlib. |
66957ce4 ILT |
475 | # If any variables are added here, they must be added to do-*, below. |
476 | # The HOST_* variables are a special case, which are used for the gcc | |
477 | # cross-building scheme. | |
0ef4728f ILT |
478 | EXTRA_GCC_FLAGS = \ |
479 | 'AR=$$(AR_FOR_TARGET)' \ | |
6d681784 JG |
480 | 'AS=$(AS)' \ |
481 | 'CC=$(CC)' \ | |
482 | 'CXX=$(CXX)' \ | |
b6ae0f10 | 483 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ |
a54e05f6 KR |
484 | 'HOST_CC=$(CC_FOR_BUILD)' \ |
485 | 'HOST_PREFIX=$(HOST_PREFIX)' \ | |
486 | 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \ | |
6d681784 | 487 | 'NM=$(NM)' \ |
4c0b7ebc | 488 | 'RANLIB=$$(RANLIB_FOR_TARGET)' \ |
d29cd970 | 489 | 'WINDRES=$$(WINDRES_FOR_TARGET)' \ |
97840afa | 490 | "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ |
b0ea0c52 ILT |
491 | "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \ |
492 | "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \ | |
493 | "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \ | |
494 | "`echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)' | sed -e s/.*=$$/XFOO=/`" \ | |
495 | "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \ | |
496 | "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \ | |
497 | "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \ | |
498 | "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \ | |
700d7935 | 499 | "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" |
0ef4728f | 500 | |
34b3298b | 501 | GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) |
f4e414f1 | 502 | |
6a42d184 | 503 | # This is a list of the targets for all of the modules which are compiled |
79337c85 ILT |
504 | # using $(FLAGS_TO_PASS). |
505 | ALL_MODULES = \ | |
53c403df | 506 | all-apache \ |
258950c5 | 507 | all-ash \ |
79337c85 | 508 | all-autoconf \ |
08168809 | 509 | all-automake \ |
5db223e4 | 510 | all-bash \ |
79337c85 ILT |
511 | all-bfd \ |
512 | all-binutils \ | |
3a671555 | 513 | all-bison \ |
79337c85 | 514 | all-byacc \ |
e677105c | 515 | all-bzip2 \ |
0ab3f086 BK |
516 | $(start-sanitize-cygnus) \ |
517 | all-cgen \ | |
518 | $(end-sanitize-cygnus) \ | |
97b951fb | 519 | all-cvssrc \ |
97840afa | 520 | all-db \ |
79337c85 ILT |
521 | all-dejagnu \ |
522 | all-diff \ | |
ac259c28 | 523 | all-dosutils \ |
79337c85 ILT |
524 | all-etc \ |
525 | all-fileutils \ | |
97840afa | 526 | all-findutils \ |
79337c85 ILT |
527 | all-find \ |
528 | all-flex \ | |
bcbcf456 BE |
529 | $(start-sanitize-cygnus) \ |
530 | all-flexlm \ | |
531 | $(end-sanitize-cygnus) \ | |
79337c85 ILT |
532 | all-gas \ |
533 | all-gawk \ | |
f46d03c5 | 534 | all-gettext \ |
ba26181f | 535 | all-gnuserv \ |
79337c85 ILT |
536 | all-gprof \ |
537 | all-grep \ | |
19b1d034 | 538 | all-grez \ |
79337c85 ILT |
539 | all-gzip \ |
540 | all-hello \ | |
3718029f ILT |
541 | $(start-sanitize-ide) \ |
542 | all-ilu \ | |
543 | $(end-sanitize-ide) \ | |
79337c85 | 544 | all-indent \ |
13d7cbe2 | 545 | all-inet \ |
f46d03c5 | 546 | all-intl \ |
79337c85 | 547 | all-ispell \ |
97840afa | 548 | all-itcl \ |
c070fb34 ILT |
549 | $(start-sanitize-ide) \ |
550 | all-jstools \ | |
551 | $(end-sanitize-ide) \ | |
79337c85 | 552 | all-ld \ |
67ae6381 | 553 | all-libgui \ |
79337c85 | 554 | all-libiberty \ |
43e1bf25 | 555 | $(start-sanitize-ide) \ |
eebe454c | 556 | all-libide \ |
f46d03c5 | 557 | all-libidetcl \ |
43e1bf25 | 558 | $(end-sanitize-ide) \ |
c99e91d2 | 559 | all-libtool \ |
79337c85 ILT |
560 | all-m4 \ |
561 | all-make \ | |
562 | all-mmalloc \ | |
563 | all-opcodes \ | |
564 | all-patch \ | |
0f8f1d33 | 565 | all-perl \ |
79337c85 ILT |
566 | all-prms \ |
567 | all-rcs \ | |
568 | all-readline \ | |
275049c0 | 569 | all-release \ |
79337c85 ILT |
570 | all-recode \ |
571 | all-sed \ | |
572 | all-send-pr \ | |
573 | all-shellutils \ | |
574 | all-sim \ | |
b0dae4d7 | 575 | $(start-sanitize-cygnus) \ |
abc93570 | 576 | all-snavigator \ |
b0dae4d7 | 577 | $(end-sanitize-cygnus) \ |
79337c85 ILT |
578 | all-tar \ |
579 | all-tcl \ | |
10b2757b | 580 | all-tcl8.1 \ |
79337c85 ILT |
581 | all-texinfo \ |
582 | all-textutils \ | |
583 | all-tgas \ | |
584 | all-time \ | |
585 | all-uudecode \ | |
eebe454c TT |
586 | $(start-sanitize-ide) \ |
587 | all-vmake \ | |
588 | $(end-sanitize-ide) \ | |
456876c8 DE |
589 | all-wdiff \ |
590 | $(EXTRA_TARGET_HOST_ALL_MODULES) | |
753d5049 | 591 | |
4f0b8f27 TL |
592 | # This is a list of the check targets for all of the modules which are |
593 | # compiled using $(FLAGS_TO_PASS). | |
594 | # | |
d237841c BC |
595 | # The list is in two parts. The first lists those tools which |
596 | # are tested as part of the host's native tool-chain, and not | |
597 | # tested in a cross configuration. | |
598 | NATIVE_CHECK_MODULES = \ | |
3a671555 | 599 | check-bison \ |
d237841c | 600 | check-byacc \ |
4f0b8f27 TL |
601 | check-flex |
602 | ||
d237841c | 603 | CROSS_CHECK_MODULES = \ |
53c403df | 604 | check-apache \ |
258950c5 | 605 | check-ash \ |
6a42d184 | 606 | check-autoconf \ |
08168809 | 607 | check-automake \ |
5db223e4 | 608 | check-bash \ |
6a42d184 DZ |
609 | check-bfd \ |
610 | check-binutils \ | |
e677105c | 611 | check-bzip2 \ |
97b951fb | 612 | check-cvssrc \ |
97840afa | 613 | check-db \ |
6a42d184 DZ |
614 | check-dejagnu \ |
615 | check-diff \ | |
616 | check-etc \ | |
617 | check-fileutils \ | |
97840afa | 618 | check-findutils \ |
6a42d184 | 619 | check-find \ |
bcbcf456 BE |
620 | $(start-sanitize-cygnus) \ |
621 | check-flexlm \ | |
622 | $(end-sanitize-cygnus) \ | |
6a42d184 DZ |
623 | check-gas \ |
624 | check-gawk \ | |
f46d03c5 | 625 | check-gettext \ |
ba26181f | 626 | check-gnuserv \ |
6a42d184 DZ |
627 | check-gprof \ |
628 | check-grep \ | |
629 | check-gzip \ | |
630 | check-hello \ | |
3718029f ILT |
631 | $(start-sanitize-ide) \ |
632 | check-ilu \ | |
633 | $(end-sanitize-ide) \ | |
6a42d184 | 634 | check-indent \ |
13d7cbe2 | 635 | check-inet \ |
f46d03c5 | 636 | check-intl \ |
6a42d184 | 637 | check-ispell \ |
97840afa | 638 | check-itcl \ |
c070fb34 ILT |
639 | $(start-sanitize-ide) \ |
640 | check-jstools \ | |
641 | $(end-sanitize-ide) \ | |
6a42d184 | 642 | check-ld \ |
67ae6381 | 643 | check-libgui \ |
6a42d184 | 644 | check-libiberty \ |
43e1bf25 | 645 | $(start-sanitize-ide) \ |
eebe454c | 646 | check-libide \ |
f46d03c5 | 647 | check-libidetcl \ |
43e1bf25 | 648 | $(end-sanitize-ide) \ |
c99e91d2 | 649 | check-libtool \ |
6a42d184 DZ |
650 | check-m4 \ |
651 | check-make \ | |
652 | check-mmcheckoc \ | |
653 | check-opcodes \ | |
654 | check-patch \ | |
0f8f1d33 | 655 | check-perl \ |
6a42d184 DZ |
656 | check-prms \ |
657 | check-rcs \ | |
658 | check-readline \ | |
659 | check-recode \ | |
660 | check-sed \ | |
661 | check-send-pr \ | |
662 | check-shellutils \ | |
b0dae4d7 | 663 | $(start-sanitize-cygnus) \ |
abc93570 | 664 | check-snavigator \ |
b0dae4d7 | 665 | $(end-sanitize-cygnus) \ |
6a42d184 DZ |
666 | check-sim \ |
667 | check-tar \ | |
668 | check-tcl \ | |
669 | check-texinfo \ | |
670 | check-textutils \ | |
671 | check-tgas \ | |
672 | check-time \ | |
673 | check-uudecode \ | |
eebe454c TT |
674 | $(start-sanitize-ide) \ |
675 | check-vmake \ | |
676 | $(end-sanitize-ide) \ | |
456876c8 DE |
677 | check-wdiff \ |
678 | $(EXTRA_TARGET_HOST_CHECK_MODULES) | |
d237841c BC |
679 | |
680 | CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES) | |
6a42d184 DZ |
681 | |
682 | # This is a list of the install targets for all of the modules which are | |
79337c85 | 683 | # compiled using $(FLAGS_TO_PASS). |
27349293 ILT |
684 | # We put install-opcodes before install-binutils because the installed |
685 | # binutils might be on PATH, and they might need the shared opcodes | |
686 | # library. | |
abc93570 ILT |
687 | # We put install-tcl before install-itcl because itcl wants to run a |
688 | # program on installation which uses the Tcl libraries. | |
79337c85 | 689 | INSTALL_MODULES = \ |
53c403df | 690 | install-apache \ |
258950c5 | 691 | install-ash \ |
79337c85 | 692 | install-autoconf \ |
08168809 | 693 | install-automake \ |
5db223e4 | 694 | install-bash \ |
79337c85 | 695 | install-bfd \ |
e677105c | 696 | install-bzip2 \ |
27349293 | 697 | install-opcodes \ |
79337c85 | 698 | install-binutils \ |
3a671555 | 699 | install-bison \ |
79337c85 | 700 | install-byacc \ |
97b951fb | 701 | install-cvssrc \ |
97840afa | 702 | install-db \ |
79337c85 ILT |
703 | install-dejagnu \ |
704 | install-diff \ | |
753d5049 | 705 | install-dosutils \ |
79337c85 ILT |
706 | install-etc \ |
707 | install-fileutils \ | |
97840afa | 708 | install-findutils \ |
79337c85 ILT |
709 | install-find \ |
710 | install-flex \ | |
bcbcf456 BE |
711 | $(start-sanitize-cygnus) \ |
712 | install-flexlm \ | |
713 | $(end-sanitize-cygnus) \ | |
79337c85 ILT |
714 | install-gas \ |
715 | install-gawk \ | |
f46d03c5 | 716 | install-gettext \ |
ba26181f | 717 | install-gnuserv \ |
79337c85 ILT |
718 | install-gprof \ |
719 | install-grep \ | |
19b1d034 | 720 | install-grez \ |
79337c85 ILT |
721 | install-gzip \ |
722 | install-hello \ | |
3718029f ILT |
723 | $(start-sanitize-ide) \ |
724 | install-ilu \ | |
725 | $(end-sanitize-ide) \ | |
79337c85 | 726 | install-indent \ |
13d7cbe2 | 727 | install-inet \ |
f46d03c5 | 728 | install-intl \ |
79337c85 | 729 | install-ispell \ |
abc93570 | 730 | install-tcl \ |
10b2757b | 731 | install-tcl8.1 \ |
97840afa | 732 | install-itcl \ |
c070fb34 ILT |
733 | $(start-sanitize-ide) \ |
734 | install-jstools \ | |
735 | $(end-sanitize-ide) \ | |
79337c85 | 736 | install-ld \ |
67ae6381 | 737 | install-libgui \ |
79337c85 | 738 | install-libiberty \ |
43e1bf25 | 739 | $(start-sanitize-ide) \ |
eebe454c | 740 | install-libide \ |
f46d03c5 | 741 | install-libidetcl \ |
43e1bf25 | 742 | $(end-sanitize-ide) \ |
c99e91d2 | 743 | install-libtool \ |
79337c85 ILT |
744 | install-m4 \ |
745 | install-make \ | |
746 | install-mmalloc \ | |
79337c85 | 747 | install-patch \ |
0f8f1d33 | 748 | install-perl \ |
79337c85 ILT |
749 | install-prms \ |
750 | install-rcs \ | |
751 | install-readline \ | |
752 | install-recode \ | |
753 | install-sed \ | |
754 | install-send-pr \ | |
755 | install-shellutils \ | |
756 | install-sim \ | |
b0dae4d7 | 757 | $(start-sanitize-cygnus) \ |
abc93570 | 758 | install-snavigator \ |
b0dae4d7 | 759 | $(end-sanitize-cygnus) \ |
79337c85 | 760 | install-tar \ |
79337c85 ILT |
761 | install-texinfo \ |
762 | install-textutils \ | |
763 | install-tgas \ | |
764 | install-time \ | |
765 | install-uudecode \ | |
eebe454c TT |
766 | $(start-sanitize-ide) \ |
767 | install-vmake \ | |
768 | $(end-sanitize-ide) \ | |
d8ea6d40 FL |
769 | install-wdiff \ |
770 | $(EXTRA_TARGET_HOST_INSTALL_MODULES) | |
79337c85 | 771 | |
6a42d184 | 772 | # This is a list of the targets for all of the modules which are compiled |
79337c85 ILT |
773 | # using $(X11_FLAGS_TO_PASS). |
774 | ALL_X11_MODULES = \ | |
775 | all-emacs \ | |
4d802af9 | 776 | all-emacs19 \ |
04103845 | 777 | all-gdb \ |
79337c85 | 778 | all-expect \ |
65e21701 | 779 | all-gash \ |
0f8f1d33 | 780 | all-guile \ |
79337c85 | 781 | all-tclX \ |
9239dc26 | 782 | all-tk \ |
10b2757b | 783 | all-tk8.1 \ |
9239dc26 | 784 | all-tix |
79337c85 | 785 | |
6a42d184 DZ |
786 | # This is a list of the check targets for all of the modules which are |
787 | # compiled using $(X11_FLAGS_TO_PASS). | |
788 | CHECK_X11_MODULES = \ | |
789 | check-emacs \ | |
04103845 | 790 | check-gdb \ |
0f8f1d33 | 791 | check-guile \ |
6a42d184 | 792 | check-expect \ |
65e21701 | 793 | check-gash \ |
9239dc26 ILT |
794 | check-tclX \ |
795 | check-tk \ | |
796 | check-tix | |
6a42d184 | 797 | |
79337c85 ILT |
798 | # This is a list of the install targets for all the modules which are |
799 | # compiled using $(X11_FLAGS_TO_PASS). | |
800 | INSTALL_X11_MODULES = \ | |
801 | install-emacs \ | |
4d802af9 | 802 | install-emacs19 \ |
04103845 | 803 | install-gdb \ |
0f8f1d33 | 804 | install-guile \ |
79337c85 | 805 | install-expect \ |
65e21701 | 806 | install-gash \ |
79337c85 | 807 | install-tclX \ |
9239dc26 | 808 | install-tk \ |
10b2757b | 809 | install-tk8.1 \ |
9239dc26 | 810 | install-tix |
fca4f908 | 811 | |
6a42d184 | 812 | # This is a list of the targets for all of the modules which are compiled |
79337c85 ILT |
813 | # using $(TARGET_FLAGS_TO_PASS). |
814 | ALL_TARGET_MODULES = \ | |
ab1cbc67 PB |
815 | all-target-libio \ |
816 | all-target-libstdc++ \ | |
f46d03c5 ILT |
817 | all-target-librx \ |
818 | all-target-libg++ \ | |
ab1cbc67 PB |
819 | all-target-newlib \ |
820 | all-target-winsup \ | |
d8ea6d40 FL |
821 | $(start-sanitize-dsp) \ |
822 | all-target-libdsp \ | |
823 | $(end-sanitize-dsp) \ | |
ab1cbc67 | 824 | all-target-libgloss \ |
4c0b7ebc | 825 | all-target-libiberty \ |
10be59aa | 826 | all-target-gperf \ |
664298e6 | 827 | all-target-examples \ |
f4434c50 | 828 | all-target-libstub \ |
06855275 | 829 | $(start-sanitize-java) \ |
3970ecc7 | 830 | all-target-libjava \ |
06855275 | 831 | all-target-boehm-gc \ |
d8ea6d40 | 832 | all-target-qthreads \ |
06855275 SG |
833 | $(end-sanitize-java) \ |
834 | all-target-cygmon | |
79337c85 | 835 | |
ca2ce3b3 ILT |
836 | # This is a list of the configure targets for all of the modules which |
837 | # are compiled using the target tools. | |
838 | CONFIGURE_TARGET_MODULES = \ | |
d8ea6d40 FL |
839 | $(start-sanitize-dsp) \ |
840 | configure-target-libdsp \ | |
841 | $(end-sanitize-dsp) \ | |
ab1cbc67 PB |
842 | configure-target-libio \ |
843 | configure-target-libstdc++ \ | |
f46d03c5 ILT |
844 | configure-target-librx \ |
845 | configure-target-libg++ \ | |
ab1cbc67 PB |
846 | configure-target-newlib \ |
847 | configure-target-winsup \ | |
848 | configure-target-libgloss \ | |
4c0b7ebc | 849 | configure-target-libiberty \ |
10be59aa | 850 | configure-target-gperf \ |
664298e6 | 851 | configure-target-examples \ |
f4434c50 | 852 | configure-target-libstub \ |
06855275 | 853 | $(start-sanitize-java) \ |
3970ecc7 | 854 | configure-target-libjava \ |
06855275 | 855 | configure-target-boehm-gc \ |
d8ea6d40 | 856 | configure-target-qthreads \ |
06855275 SG |
857 | $(end-sanitize-java) \ |
858 | configure-target-cygmon | |
ca2ce3b3 | 859 | |
6a42d184 DZ |
860 | # This is a list of the check targets for all of the modules which are |
861 | # compiled using $(TARGET_FLAGS_TO_PASS). | |
862 | CHECK_TARGET_MODULES = \ | |
d8ea6d40 FL |
863 | $(start-sanitize-dsp) \ |
864 | check-target-libdsp \ | |
865 | $(end-sanitize-dsp) \ | |
ab1cbc67 PB |
866 | check-target-libio \ |
867 | check-target-libstdc++ \ | |
f46d03c5 | 868 | check-target-libg++ \ |
ab1cbc67 PB |
869 | check-target-newlib \ |
870 | check-target-winsup \ | |
10be59aa | 871 | check-target-libiberty \ |
06855275 | 872 | $(start-sanitize-java) \ |
3970ecc7 | 873 | check-target-libjava \ |
06855275 | 874 | check-target-boehm-gc \ |
d8ea6d40 | 875 | check-target-qthreads \ |
06855275 SG |
876 | $(end-sanitize-java) \ |
877 | check-target-gperf | |
6a42d184 DZ |
878 | |
879 | # This is a list of the install targets for all of the modules which are | |
79337c85 ILT |
880 | # compiled using $(TARGET_FLAGS_TO_PASS). |
881 | INSTALL_TARGET_MODULES = \ | |
d8ea6d40 FL |
882 | $(start-sanitize-dsp) \ |
883 | install-target-libdsp \ | |
884 | $(end-sanitize-dsp) \ | |
ab1cbc67 PB |
885 | install-target-libio \ |
886 | install-target-libstdc++ \ | |
f46d03c5 | 887 | install-target-libg++ \ |
ab1cbc67 PB |
888 | install-target-newlib \ |
889 | install-target-winsup \ | |
890 | install-target-libgloss \ | |
10be59aa | 891 | install-target-libiberty \ |
06855275 | 892 | $(start-sanitize-java) \ |
3970ecc7 | 893 | install-target-libjava \ |
06855275 | 894 | install-target-boehm-gc \ |
d8ea6d40 | 895 | install-target-qthreads \ |
06855275 SG |
896 | $(end-sanitize-java) \ |
897 | install-target-gperf | |
7481617f | 898 | |
7508666f MM |
899 | # This is a list of the targets for which we can do a clean-{target}. |
900 | CLEAN_MODULES = \ | |
13d7cbe2 | 901 | clean-apache \ |
258950c5 | 902 | clean-ash \ |
7508666f | 903 | clean-autoconf \ |
08168809 | 904 | clean-automake \ |
5db223e4 | 905 | clean-bash \ |
7508666f MM |
906 | clean-bfd \ |
907 | clean-binutils \ | |
3a671555 | 908 | clean-bison \ |
7508666f | 909 | clean-byacc \ |
e677105c | 910 | clean-bzip2 \ |
0ab3f086 BK |
911 | $(start-sanitize-cygnus) \ |
912 | clean-cgen \ | |
913 | $(end-sanitize-cygnus) \ | |
97b951fb | 914 | clean-cvssrc \ |
97840afa | 915 | clean-db \ |
7508666f MM |
916 | clean-dejagnu \ |
917 | clean-diff \ | |
918 | clean-dosutils \ | |
919 | clean-etc \ | |
920 | clean-fileutils \ | |
97840afa | 921 | clean-findutils \ |
7508666f MM |
922 | clean-find \ |
923 | clean-flex \ | |
bcbcf456 BE |
924 | $(start-sanitize-cygnus) \ |
925 | clean-flexlm \ | |
926 | $(end-sanitize-cygnus) \ | |
7508666f MM |
927 | clean-gas \ |
928 | clean-gawk \ | |
f46d03c5 | 929 | clean-gettext \ |
ba26181f | 930 | clean-gnuserv \ |
7508666f MM |
931 | clean-gprof \ |
932 | clean-grep \ | |
933 | clean-grez \ | |
934 | clean-gzip \ | |
935 | clean-hello \ | |
3718029f ILT |
936 | $(start-sanitize-ide) \ |
937 | clean-ilu \ | |
938 | $(end-sanitize-ide) \ | |
7508666f | 939 | clean-indent \ |
13d7cbe2 | 940 | clean-inet \ |
f46d03c5 | 941 | clean-intl \ |
7508666f | 942 | clean-ispell \ |
97840afa | 943 | clean-itcl \ |
c070fb34 ILT |
944 | $(start-sanitize-ide) \ |
945 | clean-jstools \ | |
946 | $(end-sanitize-ide) \ | |
7508666f | 947 | clean-ld \ |
67ae6381 | 948 | clean-libgui \ |
7508666f | 949 | clean-libiberty \ |
43e1bf25 | 950 | $(start-sanitize-ide) \ |
eebe454c | 951 | clean-libide \ |
f46d03c5 | 952 | clean-libidetcl \ |
43e1bf25 | 953 | $(end-sanitize-ide) \ |
c99e91d2 | 954 | clean-libtool \ |
7508666f MM |
955 | clean-m4 \ |
956 | clean-make \ | |
957 | clean-mmalloc \ | |
958 | clean-opcodes \ | |
959 | clean-patch \ | |
960 | clean-perl \ | |
961 | clean-prms \ | |
962 | clean-rcs \ | |
963 | clean-readline \ | |
964 | clean-release \ | |
965 | clean-recode \ | |
966 | clean-sed \ | |
967 | clean-send-pr \ | |
968 | clean-shellutils \ | |
969 | clean-sim \ | |
b0dae4d7 | 970 | $(start-sanitize-cygnus) \ |
abc93570 | 971 | clean-snavigator \ |
b0dae4d7 | 972 | $(end-sanitize-cygnus) \ |
7508666f MM |
973 | clean-tar \ |
974 | clean-tcl \ | |
975 | clean-texinfo \ | |
976 | clean-textutils \ | |
977 | clean-tgas \ | |
978 | clean-time \ | |
979 | clean-uudecode \ | |
eebe454c TT |
980 | $(start-sanitize-ide) \ |
981 | clean-vmake \ | |
982 | $(end-sanitize-ide) \ | |
7508666f MM |
983 | clean-wdiff |
984 | ||
985 | # All of the target modules that can be cleaned | |
986 | CLEAN_TARGET_MODULES = \ | |
d8ea6d40 FL |
987 | $(start-sanitize-dsp) \ |
988 | clean-target-libdsp \ | |
989 | $(end-sanitize-dsp) \ | |
7508666f MM |
990 | clean-target-libio \ |
991 | clean-target-libstdc++ \ | |
f46d03c5 ILT |
992 | clean-target-librx \ |
993 | clean-target-libg++ \ | |
7508666f MM |
994 | clean-target-newlib \ |
995 | clean-target-winsup \ | |
996 | clean-target-libgloss \ | |
997 | clean-target-libiberty \ | |
10be59aa | 998 | clean-target-gperf \ |
664298e6 | 999 | clean-target-examples \ |
f4434c50 | 1000 | clean-target-libstub \ |
06855275 | 1001 | $(start-sanitize-java) \ |
3970ecc7 | 1002 | clean-target-libjava \ |
06855275 | 1003 | clean-target-boehm-gc \ |
d8ea6d40 | 1004 | clean-target-qthreads \ |
06855275 SG |
1005 | $(end-sanitize-java) \ |
1006 | clean-target-cygmon | |
7508666f MM |
1007 | |
1008 | # All of the x11 modules that can be cleaned | |
1009 | CLEAN_X11_MODULES = \ | |
1010 | clean-emacs \ | |
1011 | clean-emacs19 \ | |
1012 | clean-gdb \ | |
1013 | clean-expect \ | |
1014 | clean-gash \ | |
1015 | clean-guile \ | |
1016 | clean-tclX \ | |
9239dc26 ILT |
1017 | clean-tk \ |
1018 | clean-tix | |
7508666f | 1019 | |
79337c85 ILT |
1020 | # The target built for a native build. |
1021 | .PHONY: all.normal | |
1022 | all.normal: \ | |
1023 | $(ALL_MODULES) \ | |
46d0ca81 | 1024 | $(ALL_X11_MODULES) \ |
2e482734 | 1025 | $(ALL_TARGET_MODULES) \ |
79337c85 ILT |
1026 | all-gcc |
1027 | ||
0ef4728f | 1028 | # Do a target for all the subdirectories. A ``make do-X'' will do a |
53222cbd RP |
1029 | # ``make X'' in all subdirectories (because, in general, there is a |
1030 | # dependency (below) of X upon do-X, a ``make X'' will also do this, | |
1031 | # but it may do additional work as well). | |
0ef4728f ILT |
1032 | # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once, |
1033 | # because it is so large that it can easily overflow the command line | |
1034 | # length limit on some systems. | |
79337c85 | 1035 | DO_X = \ |
79337c85 ILT |
1036 | do-clean \ |
1037 | do-distclean \ | |
1038 | do-dvi \ | |
1039 | do-info \ | |
1040 | do-install-info \ | |
1041 | do-installcheck \ | |
1042 | do-mostlyclean \ | |
ca2ce3b3 | 1043 | do-maintainer-clean \ |
753d5049 | 1044 | do-TAGS |
79337c85 ILT |
1045 | .PHONY: $(DO_X) |
1046 | $(DO_X): | |
0ef4728f | 1047 | @target=`echo $@ | sed -e 's/^do-//'`; \ |
5cc73086 | 1048 | r=`pwd`; export r; \ |
81eb5025 | 1049 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1050 | $(SET_LIB_PATH) \ |
ab1cbc67 | 1051 | for i in $(SUBDIRS) -dummy-; do \ |
36286a3e | 1052 | if [ -f ./$$i/Makefile ]; then \ |
0ef4728f | 1053 | case $$i in \ |
0ef4728f | 1054 | gcc) \ |
6d681784 | 1055 | for flag in $(EXTRA_GCC_FLAGS); do \ |
0f8f1d33 | 1056 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \ |
6d681784 | 1057 | done; \ |
0ef4728f ILT |
1058 | ;; \ |
1059 | *) \ | |
6d681784 | 1060 | for flag in $(EXTRA_HOST_FLAGS); do \ |
0f8f1d33 | 1061 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \ |
6d681784 | 1062 | done; \ |
0ef4728f ILT |
1063 | ;; \ |
1064 | esac ; \ | |
d29cd970 | 1065 | export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \ |
0ef4728f | 1066 | if (cd ./$$i; \ |
6d681784 | 1067 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
64434418 | 1068 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ |
753d5049 | 1069 | "RANLIB=$${RANLIB}" \ |
d29cd970 | 1070 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
6d681784 | 1071 | $${target}); \ |
0ef4728f ILT |
1072 | then true; else exit 1; fi; \ |
1073 | else true; fi; \ | |
ec7a8792 ILT |
1074 | done |
1075 | @target=`echo $@ | sed -e 's/^do-//'`; \ | |
1076 | r=`pwd`; export r; \ | |
81eb5025 | 1077 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1078 | $(SET_LIB_PATH) \ |
ab1cbc67 PB |
1079 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ |
1080 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
1081 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
0f8f1d33 | 1082 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \ |
ab1cbc67 | 1083 | done; \ |
d29cd970 | 1084 | export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \ |
ab1cbc67 PB |
1085 | if (cd $(TARGET_SUBDIR)/$$i; \ |
1086 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
64434418 | 1087 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ |
ab1cbc67 | 1088 | "RANLIB=$${RANLIB}" \ |
d29cd970 | 1089 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
ab1cbc67 PB |
1090 | $${target}); \ |
1091 | then true; else exit 1; fi; \ | |
1092 | else true; fi; \ | |
0ef4728f | 1093 | done |
fb90daeb | 1094 | |
79337c85 ILT |
1095 | # Here are the targets which correspond to the do-X targets. |
1096 | ||
65088029 | 1097 | .PHONY: info installcheck dvi install-info |
ca2ce3b3 ILT |
1098 | .PHONY: clean distclean mostlyclean maintainer-clean realclean |
1099 | .PHONY: local-clean local-distclean local-maintainer-clean | |
0ef4728f | 1100 | info: do-info |
1a14993c | 1101 | installcheck: do-installcheck |
0ef4728f | 1102 | dvi: do-dvi |
9a9e8e7f | 1103 | |
97840afa TT |
1104 | # Make sure makeinfo is built before we do a `make info'. |
1105 | do-info: all-texinfo | |
1106 | ||
f35c6160 | 1107 | install-info: do-install-info dir.info |
81eb5025 | 1108 | s=`cd $(srcdir); pwd`; export s; \ |
72c09fbc SC |
1109 | if [ -f dir.info ] ; then \ |
1110 | $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \ | |
50fbe976 | 1111 | else true ; fi |
4d714963 | 1112 | |
0ef4728f | 1113 | local-clean: |
e677105c | 1114 | -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log |
3b30df82 | 1115 | |
0ef4728f | 1116 | local-distclean: |
e677105c | 1117 | -rm -f Makefile config.status config.cache mh-frag mt-frag |
8c5bc3e3 ILT |
1118 | -if [ "$(TARGET_SUBDIR)" != "." ]; then \ |
1119 | rm -rf $(TARGET_SUBDIR); \ | |
1120 | else true; fi | |
7fcfdcf7 | 1121 | |
ca2ce3b3 ILT |
1122 | local-maintainer-clean: |
1123 | @echo "This command is intended for maintainers to use;" | |
1124 | @echo "it deletes files that may require special tools to rebuild." | |
1125 | ||
0ef4728f ILT |
1126 | clean: do-clean local-clean |
1127 | mostlyclean: do-mostlyclean local-clean | |
1128 | distclean: do-distclean local-clean local-distclean | |
ca2ce3b3 ILT |
1129 | maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean |
1130 | maintainer-clean: local-distclean | |
1131 | realclean: maintainer-clean | |
0ef4728f | 1132 | |
7508666f MM |
1133 | # This rule is used to clean specific modules. |
1134 | .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc | |
1135 | $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc: | |
1136 | @dir=`echo $@ | sed -e 's/clean-//'`; \ | |
1137 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1138 | r=`pwd`; export r; \ | |
81eb5025 | 1139 | s=`cd $(srcdir); pwd`; export s; \ |
7508666f MM |
1140 | $(SET_LIB_PATH) \ |
1141 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \ | |
1142 | else \ | |
1143 | true; \ | |
1144 | fi | |
1145 | ||
1146 | .PHONY: $(CLEAN_TARGET_MODULES) | |
1147 | $(CLEAN_TARGET_MODULES): | |
1148 | @dir=`echo $@ | sed -e 's/clean-target-//'`; \ | |
062aded9 | 1149 | rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \ |
7508666f MM |
1150 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ |
1151 | r=`pwd`; export r; \ | |
81eb5025 | 1152 | s=`cd $(srcdir); pwd`; export s; \ |
7508666f MM |
1153 | $(SET_LIB_PATH) \ |
1154 | (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \ | |
1155 | else \ | |
1156 | true; \ | |
1157 | fi | |
1158 | ||
1159 | clean-target: $(CLEAN_TARGET_MODULES) | |
1160 | ||
65088029 ILT |
1161 | # Check target. |
1162 | ||
1163 | .PHONY: check | |
1164 | check: $(CHECK_MODULES) \ | |
1165 | $(CHECK_TARGET_MODULES) \ | |
1166 | $(CHECK_X11_MODULES) \ | |
1167 | check-gcc | |
1168 | ||
e677105c DE |
1169 | # Automated reporting of test results. |
1170 | ||
1171 | warning.log: build.log | |
1172 | $(srcdir)/contrib/warn_summary build.log > $@ | |
1173 | ||
1174 | mail-report.log: | |
1175 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
1176 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
1177 | fi; \ | |
1178 | $(srcdir)/contrib/test_summary -t >$@ | |
1179 | chmod +x $@ | |
1180 | echo If you really want to send e-mail, run ./$@ now | |
1181 | ||
1182 | mail-report-with-warnings.log: warning.log | |
1183 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
1184 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
1185 | fi; \ | |
1186 | $(srcdir)/contrib/test_summary -t -i warning.log >$@ | |
1187 | chmod +x $@ | |
1188 | echo If you really want to send e-mail, run ./$@ now | |
1189 | ||
79337c85 | 1190 | # Installation targets. |
4d714963 | 1191 | |
e677105c | 1192 | .PHONY: install install-cross uninstall source-vault binary-vault vault-install |
98a33b6d | 1193 | install: $(INSTALL_TARGET) |
e677105c | 1194 | install-cross: $(INSTALL_TARGET_CROSS) |
b26ff9d8 | 1195 | |
79337c85 ILT |
1196 | uninstall: |
1197 | @echo "the uninstall target is not supported in this tree" | |
1198 | ||
04103845 DE |
1199 | source-vault: |
1200 | $(MAKE) -f ./release/Build-A-Release \ | |
1201 | host=$(host_alias) source-vault | |
1202 | ||
1203 | binary-vault: | |
1204 | $(MAKE) -f ./release/Build-A-Release \ | |
1205 | host=$(host_alias) target=$(target_alias) | |
1206 | ||
275049c0 JK |
1207 | vault-install: |
1208 | @if [ -f ./release/vault-install ] ; then \ | |
1209 | ./release/vault-install $(host_alias) $(target_alias) ; \ | |
96bfa612 KR |
1210 | else \ |
1211 | true ; \ | |
275049c0 JK |
1212 | fi |
1213 | ||
79337c85 | 1214 | .PHONY: install.all |
06a07944 RP |
1215 | install.all: install-no-fixedincludes |
1216 | @if [ -f ./gcc/Makefile ] ; then \ | |
5cc73086 | 1217 | r=`pwd` ; export r ; \ |
b6ae0f10 | 1218 | $(SET_LIB_PATH) \ |
06a07944 RP |
1219 | (cd ./gcc; \ |
1220 | $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ | |
1221 | else \ | |
1222 | true ; \ | |
1223 | fi | |
5a63b336 | 1224 | |
424c7ca7 | 1225 | # inet-install is used because the I*Net wants DejaGNU installed but |
f2b43566 | 1226 | # not built. Similarly, gzip is built but not installed. |
424c7ca7 | 1227 | inet-install: |
f2b43566 | 1228 | $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install |
424c7ca7 | 1229 | |
96bfa612 | 1230 | # install-no-fixedincludes is used because Cygnus can not distribute |
79337c85 ILT |
1231 | # the fixed header files. |
1232 | .PHONY: install-no-fixedincludes | |
1233 | install-no-fixedincludes: \ | |
ff290baf | 1234 | installdirs \ |
79337c85 ILT |
1235 | $(INSTALL_MODULES) \ |
1236 | $(INSTALL_TARGET_MODULES) \ | |
96bfa612 | 1237 | $(INSTALL_X11_MODULES) \ |
f35c6160 | 1238 | gcc-no-fixedincludes |
d1bea4c7 | 1239 | |
5cc24596 | 1240 | # Install the gcc headers files, but not the fixed include files, |
79337c85 ILT |
1241 | # which Cygnus is not allowed to distribute. This rule is very |
1242 | # dependent on the workings of the gcc Makefile.in. | |
1243 | .PHONY: gcc-no-fixedincludes | |
06a07944 | 1244 | gcc-no-fixedincludes: |
5cc24596 PB |
1245 | @if [ -f ./gcc/Makefile ]; then \ |
1246 | rm -rf gcc/tmp-include; \ | |
1247 | mv gcc/include gcc/tmp-include 2>/dev/null; \ | |
1248 | mkdir gcc/include; \ | |
7f9cb3b2 | 1249 | cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \ |
753d5049 | 1250 | touch gcc/stmp-fixinc gcc/include/fixed; \ |
a54e05f6 | 1251 | rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \ |
5cc73086 | 1252 | r=`pwd`; export r; \ |
81eb5025 | 1253 | s=`cd $(srcdir); pwd` ; export s; \ |
b6ae0f10 | 1254 | $(SET_LIB_PATH) \ |
5cc24596 PB |
1255 | (cd ./gcc; \ |
1256 | $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ | |
1257 | rm -rf gcc/include; \ | |
1258 | mv gcc/tmp-include gcc/include 2>/dev/null; \ | |
1259 | else true; fi | |
dcbfc14d | 1260 | |
2ec9f3fd KS |
1261 | # start-sanitize-ide |
1262 | # Install Foundry. Avoid installing a bunch of stuff we don't need. | |
1263 | install-foundry: | |
1264 | mods="$(INSTALL_MODULES)"; \ | |
1265 | x11_mods="$(INSTALL_X11_MODULES)"; \ | |
1266 | for d in install-tcl install-tk install-itcl install-tix install-ilu; do \ | |
1267 | mods="`echo $${mods} | sed -e "s/$$d//"`"; \ | |
1268 | x11_mods="`echo $${x11_mods} | sed -e "s/$$d//"`"; \ | |
1269 | done; \ | |
1270 | $(MAKE) INSTALL_MODULES="$${mods}" INSTALL_X11_MODULES="$${x11_mods}" install | |
1271 | for d in tcl tk itcl tix ilu; do \ | |
1272 | if [ -f $$d/Makefile ]; then \ | |
1273 | r=`pwd`; export r; \ | |
1274 | s=`cd $(srcdir); pwd`; export s; \ | |
1275 | $(SET_LIB_PATH) \ | |
1276 | (cd $$d; $(MAKE) $(FLAGS_TO_PASS) install-minimal); \ | |
1277 | else \ | |
1278 | true; \ | |
1279 | fi; \ | |
d8ea6d40 FL |
1280 | date '+%D %r' > builddate \ |
1281 | $(INSTALL_DATA) builddate $(datadir)/builddate ; \ | |
2ec9f3fd KS |
1282 | done |
1283 | # end-sanitize-ide | |
1284 | ||
79337c85 ILT |
1285 | # This rule is used to build the modules which use FLAGS_TO_PASS. To |
1286 | # build a target all-X means to cd to X and make all. | |
3de70f1d | 1287 | # |
055cca84 | 1288 | # all-gui, and all-libproc are handled specially because |
4d802af9 MT |
1289 | # they are still experimental, and if they fail to build, that |
1290 | # shouldn't stop "make all". | |
04103845 DE |
1291 | .PHONY: $(ALL_MODULES) all-gui all-libproc |
1292 | $(ALL_MODULES) all-gui all-libproc: | |
79337c85 | 1293 | @dir=`echo $@ | sed -e 's/all-//'`; \ |
472af17f ILT |
1294 | if [ -f ./$${dir}/Makefile ] ; then \ |
1295 | r=`pwd`; export r; \ | |
81eb5025 | 1296 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1297 | $(SET_LIB_PATH) \ |
472af17f | 1298 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \ |
07362bd9 | 1299 | else \ |
79337c85 | 1300 | true; \ |
07362bd9 DZ |
1301 | fi |
1302 | ||
80cbf870 ILT |
1303 | # These rules are used to check the modules which use FLAGS_TO_PASS. |
1304 | # To build a target check-X means to cd to X and make check. Some | |
1305 | # modules are only tested in a native toolchain. | |
4f0b8f27 | 1306 | |
d237841c BC |
1307 | .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES) |
1308 | $(NATIVE_CHECK_MODULES): | |
39cc6dae RS |
1309 | @if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
1310 | dir=`echo $@ | sed -e 's/check-//'`; \ | |
472af17f ILT |
1311 | if [ -f ./$${dir}/Makefile ] ; then \ |
1312 | r=`pwd`; export r; \ | |
81eb5025 | 1313 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1314 | $(SET_LIB_PATH) \ |
472af17f ILT |
1315 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \ |
1316 | else \ | |
1317 | true; \ | |
4f0b8f27 TL |
1318 | fi; \ |
1319 | fi | |
1320 | ||
1321 | $(CROSS_CHECK_MODULES): | |
6a42d184 DZ |
1322 | @dir=`echo $@ | sed -e 's/check-//'`; \ |
1323 | if [ -f ./$${dir}/Makefile ] ; then \ | |
5cc73086 | 1324 | r=`pwd`; export r; \ |
81eb5025 | 1325 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1326 | $(SET_LIB_PATH) \ |
6a42d184 DZ |
1327 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \ |
1328 | else \ | |
1329 | true; \ | |
1330 | fi | |
1331 | ||
79337c85 ILT |
1332 | # This rule is used to install the modules which use FLAGS_TO_PASS. |
1333 | # To build a target install-X means to cd to X and make install. | |
1334 | .PHONY: $(INSTALL_MODULES) | |
ff290baf | 1335 | $(INSTALL_MODULES): installdirs |
79337c85 ILT |
1336 | @dir=`echo $@ | sed -e 's/install-//'`; \ |
1337 | if [ -f ./$${dir}/Makefile ] ; then \ | |
5cc73086 | 1338 | r=`pwd`; export r; \ |
81eb5025 | 1339 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1340 | $(SET_LIB_PATH) \ |
f35c6160 | 1341 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \ |
07362bd9 | 1342 | else \ |
79337c85 | 1343 | true; \ |
07362bd9 DZ |
1344 | fi |
1345 | ||
ca2ce3b3 ILT |
1346 | # This rule is used to configure the modules which are built with the |
1347 | # target tools. | |
1348 | .PHONY: $(CONFIGURE_TARGET_MODULES) | |
1349 | $(CONFIGURE_TARGET_MODULES): | |
ab1cbc67 | 1350 | @dir=`echo $@ | sed -e 's/configure-target-//'`; \ |
354a86c7 | 1351 | if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \ |
59d3634c | 1352 | r=`pwd`; export r; \ |
f2b43566 ILT |
1353 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \ |
1354 | if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \ | |
1355 | if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \ | |
1356 | if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \ | |
1357 | rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \ | |
1358 | else \ | |
1359 | echo "Multilibs changed for $${dir}, reconfiguring"; \ | |
1360 | rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \ | |
1361 | mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \ | |
1362 | fi; \ | |
354a86c7 | 1363 | else \ |
354a86c7 MM |
1364 | mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \ |
1365 | fi; \ | |
062aded9 | 1366 | fi; \ |
354a86c7 MM |
1367 | fi; exit 0 # break command into two pieces |
1368 | @dir=`echo $@ | sed -e 's/configure-target-//'`; \ | |
3e288e27 SG |
1369 | if [ ! -d $(TARGET_SUBDIR) ]; then \ |
1370 | true; \ | |
1371 | elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
ca2ce3b3 ILT |
1372 | true; \ |
1373 | elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \ | |
efd7b806 | 1374 | if [ -d $(srcdir)/$${dir} ]; then \ |
ab1cbc67 | 1375 | [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\ |
efd7b806 | 1376 | r=`pwd`; export r; \ |
81eb5025 | 1377 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1378 | $(SET_LIB_PATH) \ |
efd7b806 SC |
1379 | AR="$(AR_FOR_TARGET)"; export AR; \ |
1380 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
1381 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
1382 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
1383 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
1384 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
b6ae0f10 | 1385 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ |
054f9ada | 1386 | LD="$(LD_FOR_TARGET)"; export LD; \ |
276c2d7d | 1387 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ |
efd7b806 SC |
1388 | NM="$(NM_FOR_TARGET)"; export NM; \ |
1389 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
d29cd970 | 1390 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ |
19b1d034 | 1391 | echo Configuring in $(TARGET_SUBDIR)/$${dir}; \ |
ab1cbc67 | 1392 | cd $(TARGET_SUBDIR)/$${dir}; \ |
283a2b3d DE |
1393 | case $(srcdir) in \ |
1394 | /*) \ | |
1395 | topdir=$(srcdir) ;; \ | |
1396 | *) \ | |
1397 | case "$(TARGET_SUBDIR)" in \ | |
1398 | .) topdir="../$(srcdir)" ;; \ | |
1399 | *) topdir="../../$(srcdir)" ;; \ | |
1400 | esac ;; \ | |
1401 | esac; \ | |
1402 | if [ "$(srcdir)" = "." ] ; then \ | |
1403 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
81eb5025 | 1404 | if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \ |
0f8f1d33 TT |
1405 | if [ -f Makefile ]; then \ |
1406 | if $(MAKE) distclean; then \ | |
1407 | true; \ | |
1408 | else \ | |
1409 | exit 1; \ | |
1410 | fi; \ | |
1411 | else \ | |
1412 | true; \ | |
1413 | fi; \ | |
283a2b3d DE |
1414 | else \ |
1415 | exit 1; \ | |
1416 | fi; \ | |
1417 | else \ | |
1418 | true; \ | |
1419 | fi; \ | |
1420 | srcdiroption="--srcdir=."; \ | |
1421 | libsrcdir="."; \ | |
1422 | else \ | |
1423 | srcdiroption="--srcdir=$${topdir}/$${dir}"; \ | |
81eb5025 | 1424 | libsrcdir="$$s/$${dir}"; \ |
283a2b3d DE |
1425 | fi; \ |
1426 | if [ -f $${libsrcdir}/configure ] ; then \ | |
e677105c DE |
1427 | rm -f no-such-file; \ |
1428 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
283a2b3d DE |
1429 | $(CONFIG_ARGUMENTS) $${srcdiroption} \ |
1430 | --with-target-subdir="$(TARGET_SUBDIR)"; \ | |
19b1d034 | 1431 | else \ |
e677105c DE |
1432 | rm -f no-such-file; \ |
1433 | CONFIG_SITE=no-such-file $(SHELL) $$s/configure \ | |
283a2b3d DE |
1434 | $(CONFIG_ARGUMENTS) $${srcdiroption} \ |
1435 | --with-target-subdir="$(TARGET_SUBDIR)"; \ | |
19b1d034 | 1436 | fi; \ |
efd7b806 SC |
1437 | else \ |
1438 | true; \ | |
9908eb6a | 1439 | fi; \ |
ca2ce3b3 ILT |
1440 | else \ |
1441 | true; \ | |
1442 | fi | |
1443 | ||
6a42d184 DZ |
1444 | # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS. |
1445 | # To build a target all-X means to cd to X and make all. | |
79337c85 ILT |
1446 | .PHONY: $(ALL_TARGET_MODULES) |
1447 | $(ALL_TARGET_MODULES): | |
ab1cbc67 PB |
1448 | @dir=`echo $@ | sed -e 's/all-target-//'`; \ |
1449 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
5cc73086 | 1450 | r=`pwd`; export r; \ |
81eb5025 | 1451 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1452 | $(SET_LIB_PATH) \ |
ab1cbc67 | 1453 | (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \ |
07362bd9 | 1454 | else \ |
79337c85 | 1455 | true; \ |
07362bd9 DZ |
1456 | fi |
1457 | ||
6a42d184 DZ |
1458 | # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS. |
1459 | # To build a target install-X means to cd to X and make install. | |
1460 | .PHONY: $(CHECK_TARGET_MODULES) | |
1461 | $(CHECK_TARGET_MODULES): | |
136ca05d | 1462 | @dir=`echo $@ | sed -e 's/check-target-//'`; \ |
ab1cbc67 | 1463 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ |
5cc73086 | 1464 | r=`pwd`; export r; \ |
81eb5025 | 1465 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1466 | $(SET_LIB_PATH) \ |
ab1cbc67 | 1467 | (cd $(TARGET_SUBDIR)/$${dir};$(MAKE) $(TARGET_FLAGS_TO_PASS) check);\ |
6a42d184 DZ |
1468 | else \ |
1469 | true; \ | |
1470 | fi | |
1471 | ||
79337c85 ILT |
1472 | # This rule is used to install the modules which use |
1473 | # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X | |
1474 | # and make install. | |
1475 | .PHONY: $(INSTALL_TARGET_MODULES) | |
ff290baf | 1476 | $(INSTALL_TARGET_MODULES): installdirs |
ab1cbc67 PB |
1477 | @dir=`echo $@ | sed -e 's/install-target-//'`; \ |
1478 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
5cc73086 | 1479 | r=`pwd`; export r; \ |
81eb5025 | 1480 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1481 | $(SET_LIB_PATH) \ |
ab1cbc67 PB |
1482 | (cd $(TARGET_SUBDIR)/$${dir}; \ |
1483 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \ | |
07362bd9 | 1484 | else \ |
79337c85 | 1485 | true; \ |
07362bd9 DZ |
1486 | fi |
1487 | ||
6a42d184 | 1488 | # This rule is used to build the modules which use X11_FLAGS_TO_PASS. |
79337c85 ILT |
1489 | # To build a target all-X means to cd to X and make all. |
1490 | .PHONY: $(ALL_X11_MODULES) | |
1491 | $(ALL_X11_MODULES): | |
1492 | @dir=`echo $@ | sed -e 's/all-//'`; \ | |
1493 | if [ -f ./$${dir}/Makefile ] ; then \ | |
5cc73086 | 1494 | r=`pwd`; export r; \ |
81eb5025 | 1495 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1496 | $(SET_LIB_PATH) \ |
79337c85 ILT |
1497 | (cd $${dir}; \ |
1498 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \ | |
07362bd9 | 1499 | else \ |
79337c85 | 1500 | true; \ |
07362bd9 DZ |
1501 | fi |
1502 | ||
6a42d184 DZ |
1503 | # This rule is used to check the modules which use X11_FLAGS_TO_PASS. |
1504 | # To build a target check-X means to cd to X and make all. | |
1505 | .PHONY: $(CHECK_X11_MODULES) | |
1506 | $(CHECK_X11_MODULES): | |
1507 | @dir=`echo $@ | sed -e 's/check-//'`; \ | |
1508 | if [ -f ./$${dir}/Makefile ] ; then \ | |
5cc73086 | 1509 | r=`pwd`; export r; \ |
81eb5025 | 1510 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1511 | $(SET_LIB_PATH) \ |
6a42d184 DZ |
1512 | (cd $${dir}; \ |
1513 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \ | |
1514 | else \ | |
1515 | true; \ | |
1516 | fi | |
1517 | ||
1518 | # This rule is used to install the modules which use X11_FLAGS_TO_PASS. | |
79337c85 ILT |
1519 | # To build a target install-X means to cd to X and make install. |
1520 | .PHONY: $(INSTALL_X11_MODULES) | |
48a3d5e5 | 1521 | $(INSTALL_X11_MODULES): installdirs |
6a42d184 | 1522 | @dir=`echo $@ | sed -e 's/install-//'`; \ |
79337c85 | 1523 | if [ -f ./$${dir}/Makefile ] ; then \ |
5cc73086 | 1524 | r=`pwd`; export r; \ |
81eb5025 | 1525 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1526 | $(SET_LIB_PATH) \ |
79337c85 ILT |
1527 | (cd $${dir}; \ |
1528 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \ | |
07362bd9 | 1529 | else \ |
79337c85 | 1530 | true; \ |
07362bd9 DZ |
1531 | fi |
1532 | ||
79337c85 ILT |
1533 | # gcc is the only module which uses GCC_FLAGS_TO_PASS. |
1534 | .PHONY: all-gcc | |
1535 | all-gcc: | |
1536 | @if [ -f ./gcc/Makefile ] ; then \ | |
5cc73086 | 1537 | r=`pwd`; export r; \ |
81eb5025 | 1538 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1539 | $(SET_LIB_PATH) \ |
79337c85 | 1540 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \ |
07362bd9 | 1541 | else \ |
79337c85 | 1542 | true; \ |
07362bd9 DZ |
1543 | fi |
1544 | ||
e677105c DE |
1545 | # Building GCC uses some tools for rebuilding "source" files |
1546 | # like texinfo, bison/byacc, etc. So we must depend on those. | |
1547 | # | |
1548 | # While building GCC, it may be necessary to run various target | |
1549 | # programs like the assembler, linker, etc. So we depend on | |
1550 | # those too. | |
1551 | # | |
1552 | # In theory, on an SMP all those dependencies can be resolved | |
1553 | # in parallel. | |
1554 | # | |
1555 | .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean | |
1556 | bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean: all-texinfo all-bison all-byacc all-binutils all-gas all-ld | |
1557 | @r=`pwd`; export r; \ | |
1558 | s=`cd $(srcdir); pwd`; export s; \ | |
1559 | $(SET_LIB_PATH) \ | |
1560 | echo "Bootstrapping the compiler"; \ | |
1561 | cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $@ | |
1562 | @r=`pwd`; export r; \ | |
1563 | s=`cd $(srcdir); pwd`; export s; \ | |
1564 | case "$@" in \ | |
1565 | *bootstrap4-lean ) \ | |
1566 | msg="Comparing stage3 and stage4 of the compiler"; \ | |
1567 | compare=compare3-lean ;; \ | |
1568 | *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \ | |
1569 | compare=compare3 ;; \ | |
1570 | *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \ | |
1571 | compare=compare-lean ;; \ | |
1572 | * ) msg="Comparing stage2 and stage3 of the compiler"; \ | |
1573 | compare=compare ;; \ | |
1574 | esac; \ | |
1575 | $(SET_LIB_PATH) \ | |
1576 | echo "$$msg"; \ | |
1577 | cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare | |
1578 | @r=`pwd`; export r; \ | |
1579 | s=`cd $(srcdir); pwd` ; export s; \ | |
1580 | $(SET_LIB_PATH) \ | |
1581 | echo "Building runtime libraries"; \ | |
1582 | $(MAKE) $(BASE_FLAGS_TO_PASS) all | |
1583 | ||
1584 | .PHONY: cross | |
1585 | cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld | |
1586 | @r=`pwd`; export r; \ | |
1587 | s=`cd $(srcdir); pwd`; export s; \ | |
1588 | $(SET_LIB_PATH) \ | |
1589 | echo "Building the C and C++ compiler"; \ | |
1590 | cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" | |
1591 | @r=`pwd`; export r; \ | |
1592 | s=`cd $(srcdir); pwd` ; export s; \ | |
1593 | $(SET_LIB_PATH) \ | |
1594 | echo "Building runtime libraries"; \ | |
1595 | $(MAKE) $(BASE_FLAGS_TO_PASS) all LANGUAGES="c c++" | |
4c0b7ebc | 1596 | |
65088029 ILT |
1597 | .PHONY: check-gcc |
1598 | check-gcc: | |
1599 | @if [ -f ./gcc/Makefile ] ; then \ | |
5cc73086 | 1600 | r=`pwd`; export r; \ |
81eb5025 | 1601 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1602 | $(SET_LIB_PATH) \ |
65088029 ILT |
1603 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \ |
1604 | else \ | |
1605 | true; \ | |
1606 | fi | |
1607 | ||
79337c85 ILT |
1608 | .PHONY: install-gcc |
1609 | install-gcc: | |
1610 | @if [ -f ./gcc/Makefile ] ; then \ | |
5cc73086 | 1611 | r=`pwd`; export r; \ |
81eb5025 | 1612 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1613 | $(SET_LIB_PATH) \ |
79337c85 | 1614 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ |
07362bd9 | 1615 | else \ |
79337c85 | 1616 | true; \ |
07362bd9 DZ |
1617 | fi |
1618 | ||
e677105c DE |
1619 | .PHONY: install-gcc-cross |
1620 | install-gcc-cross: | |
1621 | @if [ -f ./gcc/Makefile ] ; then \ | |
1622 | r=`pwd`; export r; \ | |
1623 | s=`cd $(srcdir); pwd`; export s; \ | |
1624 | $(SET_LIB_PATH) \ | |
1625 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \ | |
1626 | else \ | |
1627 | true; \ | |
1628 | fi | |
753d5049 SC |
1629 | # EXPERIMENTAL STUFF |
1630 | # This rule is used to install the modules which use FLAGS_TO_PASS. | |
1631 | # To build a target install-X means to cd to X and make install. | |
09985c96 | 1632 | .PHONY: install-dosrel |
ff290baf | 1633 | install-dosrel: installdirs info |
753d5049 SC |
1634 | @dir=`echo $@ | sed -e 's/install-//'`; \ |
1635 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1636 | r=`pwd`; export r; \ | |
81eb5025 | 1637 | s=`cd $(srcdir); pwd`; export s; \ |
b6ae0f10 | 1638 | $(SET_LIB_PATH) \ |
753d5049 SC |
1639 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \ |
1640 | else \ | |
1641 | true; \ | |
1642 | fi | |
1643 | ||
09985c96 | 1644 | install-dosrel-fake: |
a987271c | 1645 | |
753d5049 | 1646 | |
79337c85 | 1647 | # This is a list of inter-dependencies among modules. |
53c403df | 1648 | all-apache: |
258950c5 | 1649 | all-ash: |
3a671555 | 1650 | all-autoconf: all-m4 all-texinfo |
d8ea6d40 | 1651 | all-automake: all-m4 all-texinfo |
5db223e4 | 1652 | all-bash: |
6bf191bf TT |
1653 | all-bfd: all-libiberty all-intl |
1654 | all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl | |
97036944 | 1655 | all-bison: all-texinfo |
06855275 | 1656 | # start-sanitize-java |
ba7634ad | 1657 | all-target-boehm-gc: configure-target-boehm-gc |
06855275 | 1658 | # end-sanitize-java |
79337c85 | 1659 | all-byacc: |
e677105c | 1660 | all-bzip2: |
0ab3f086 | 1661 | # start-sanitize-cygnus |
e677105c | 1662 | all-cgen: all-libiberty |
0ab3f086 BK |
1663 | # These two have dependencies on cgen, and while this section is alphabetically |
1664 | # sorted, I wish to keep these together until things settle. | |
1665 | all-opcodes: all-cgen | |
1666 | all-sim: all-cgen | |
1667 | # end-sanitize-cygnus | |
97b951fb | 1668 | all-cvssrc: |
664298e6 | 1669 | configure-target-cygmon: $(ALL_GCC) |
f4434c50 | 1670 | all-target-cygmon: configure-target-cygmon all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-libstub |
2e482734 | 1671 | all-db: |
4d802af9 | 1672 | all-dejagnu: all-tcl all-expect all-tk |
79337c85 ILT |
1673 | all-diff: all-libiberty |
1674 | all-emacs: | |
3a671555 | 1675 | all-emacs19: all-bison all-byacc |
79337c85 | 1676 | all-etc: |
4c0b7ebc DE |
1677 | configure-target-examples: $(ALL_GCC) |
1678 | all-target-examples: configure-target-examples | |
c6ba9ae0 | 1679 | all-expect: all-tcl all-tk |
275049c0 | 1680 | all-fileutils: all-libiberty |
97840afa | 1681 | all-findutils: |
79337c85 | 1682 | all-find: |
3a671555 | 1683 | all-flex: all-libiberty all-bison all-byacc |
bcbcf456 BE |
1684 | # start-sanitize-cygnus |
1685 | all-flexlm: | |
1686 | # end-sanitize-cygnus | |
6bf191bf | 1687 | all-gas: all-libiberty all-opcodes all-bfd all-intl |
65e21701 | 1688 | all-gash: all-tcl |
79337c85 | 1689 | all-gawk: |
fc3524a9 | 1690 | ALL_GCC = all-gcc |
3a671555 JM |
1691 | all-gcc: all-bison all-byacc all-binutils all-gas all-ld |
1692 | all-bootstrap: all-libiberty all-bison all-byacc all-binutils all-gas all-ld | |
43e1bf25 JL |
1693 | GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui |
1694 | # start-sanitize-ide | |
f46d03c5 | 1695 | GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui all-libide all-libidetcl |
43e1bf25 | 1696 | # end-sanitize-ide |
3a671555 | 1697 | all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK) |
f46d03c5 | 1698 | all-gettext: |
ba26181f | 1699 | all-gnuserv: |
10be59aa | 1700 | configure-target-gperf: $(ALL_GCC) |
97b951fb | 1701 | all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++ |
6bf191bf | 1702 | all-gprof: all-libiberty all-bfd all-opcodes all-intl |
b6ae0f10 | 1703 | all-grez: all-libiberty all-bfd all-opcodes |
ab1cbc67 | 1704 | all-gui: all-gdb all-libproc all-target-librx |
0f8f1d33 | 1705 | all-guile: |
79337c85 ILT |
1706 | all-gzip: all-libiberty |
1707 | all-hello: all-libiberty | |
3718029f ILT |
1708 | # start-sanitize-ide |
1709 | all-ilu: | |
1710 | # end-sanitize-ide | |
79337c85 | 1711 | all-indent: |
8d1d94b6 | 1712 | all-inet: all-tcl all-send-pr all-perl |
f46d03c5 | 1713 | all-intl: |
3585593d | 1714 | all-ispell: all-emacs19 |
10b2757b | 1715 | all-itcl: all-tcl all-tk all-tcl8.1 all-tk8.1 |
c070fb34 | 1716 | # start-sanitize-ide |
f46d03c5 | 1717 | all-jstools: all-tcl all-tk all-tix all-libgui all-libide all-libidetcl |
c070fb34 | 1718 | # end-sanitize-ide |
6bf191bf | 1719 | all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl |
d8ea6d40 FL |
1720 | # start-sanitize-dsp |
1721 | all-target-libdsp: configure-target-libdsp configure-target-newlib | |
1722 | configure-target-libdsp: $(ALL_GCC) | |
1723 | # end-sanitize-dsp | |
283a2b3d | 1724 | configure-target-libg++: $(ALL_GCC) configure-target-librx |
ab1cbc67 PB |
1725 | all-target-libg++: configure-target-libg++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-librx all-target-libstdc++ |
1726 | configure-target-libgloss: $(ALL_GCC) | |
283a2b3d | 1727 | all-target-libgloss: configure-target-libgloss configure-target-newlib |
ab1cbc67 PB |
1728 | configure-target-libio: $(ALL_GCC) |
1729 | all-target-libio: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib | |
2ec9f3fd | 1730 | check-target-libio: all-target-libstdc++ |
10b2757b | 1731 | all-libgui: all-tcl all-tk all-tcl8.1 all-tk8.1 all-itcl |
79337c85 | 1732 | all-libiberty: |
87d36c31 | 1733 | # start-sanitize-ide |
f46d03c5 ILT |
1734 | all-libide: all-ilu |
1735 | all-libidetcl: all-tcl all-tk all-itcl all-ilu all-libgui all-libide | |
87d36c31 | 1736 | # end-sanitize-ide |
06855275 | 1737 | # start-sanitize-java |
d8ea6d40 FL |
1738 | configure-target-libjava: $(ALL_GCC) configure-target-boehm-gc configure-target-qthreads |
1739 | all-target-libjava: configure-target-libjava all-gcc all-target-newlib all-target-boehm-gc all-target-qthreads | |
06855275 | 1740 | # end-sanitize-java |
ab1cbc67 PB |
1741 | configure-target-librx: $(ALL_GCC) configure-target-newlib |
1742 | all-target-librx: configure-target-librx | |
1743 | configure-target-libstdc++: $(ALL_GCC) | |
1744 | all-target-libstdc++: configure-target-libstdc++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio | |
f4434c50 BM |
1745 | configure-target-libstub: $(ALL_GCC) |
1746 | all-target-libstub: configure-target-libstub | |
c99e91d2 | 1747 | all-libtool: |
79337c85 ILT |
1748 | all-m4: all-libiberty |
1749 | all-make: all-libiberty | |
1750 | all-mmalloc: | |
ab1cbc67 PB |
1751 | configure-target-newlib: $(ALL_GCC) |
1752 | all-target-newlib: configure-target-newlib all-binutils all-gas all-gcc | |
b6ae0f10 | 1753 | all-opcodes: all-bfd all-libiberty |
be2c65d3 | 1754 | all-patch: all-libiberty |
0f8f1d33 | 1755 | all-perl: |
b255ccdb | 1756 | all-prms: all-libiberty |
d8ea6d40 FL |
1757 | # start-sanitize-java |
1758 | all-target-qthreads: configure-target-qthreads | |
1759 | # end-sanitize-java | |
79337c85 ILT |
1760 | all-rcs: |
1761 | all-readline: | |
1762 | all-recode: all-libiberty | |
ac259c28 JM |
1763 | all-sed: all-libiberty |
1764 | all-send-pr: all-prms | |
79337c85 | 1765 | all-shellutils: |
97036944 | 1766 | all-sim: all-libiberty all-bfd all-opcodes all-readline |
b0dae4d7 | 1767 | # start-sanitize-cygnus |
10b2757b | 1768 | all-snavigator: all-tcl8.1 all-tk8.1 all-tix all-itcl all-db all-grep all-flexlm all-libgui |
b0dae4d7 | 1769 | # end-sanitize-cygnus |
07362bd9 | 1770 | all-tar: all-libiberty |
79337c85 | 1771 | all-tcl: |
10b2757b | 1772 | all-tcl8.1: |
79337c85 ILT |
1773 | all-tclX: all-tcl all-tk |
1774 | all-tk: all-tcl | |
10b2757b | 1775 | all-tk8.1: all-tcl8.1 |
79337c85 ILT |
1776 | all-texinfo: all-libiberty |
1777 | all-textutils: | |
b6ae0f10 | 1778 | all-tgas: all-libiberty all-bfd all-opcodes |
79337c85 | 1779 | all-time: |
10b2757b | 1780 | all-tix: all-tcl all-tk all-tcl8.1 all-tk8.1 |
eebe454c | 1781 | # start-sanitize-ide |
f46d03c5 | 1782 | all-vmake: all-tcl all-tk all-itcl all-tix all-libgui all-libide all-libidetcl |
eebe454c | 1783 | # end-sanitize-ide |
79337c85 | 1784 | all-wdiff: |
fd249336 | 1785 | all-target-winsup: all-target-newlib all-target-libiberty all-target-libio configure-target-winsup |
ab1cbc67 | 1786 | configure-target-winsup: configure-target-newlib |
79337c85 | 1787 | all-uudecode: all-libiberty |
ab1cbc67 PB |
1788 | configure-target-libiberty: $(ALL_GCC) |
1789 | all-target-libiberty: configure-target-libiberty all-gcc all-ld all-target-newlib | |
0f8f1d33 TT |
1790 | all-target: $(ALL_TARGET_MODULES) |
1791 | install-target: $(INSTALL_TARGET_MODULES) | |
abc93570 | 1792 | # start-sanitize-gdbtk |
bfde75f7 | 1793 | install-gdb: install-tcl install-tk install-itcl install-tix install-libgui |
abc93570 | 1794 | #end-sanitize-gdbtk |
79337c85 | 1795 | ### other supporting targets |
07362bd9 | 1796 | |
79337c85 ILT |
1797 | MAKEDIRS= \ |
1798 | $(prefix) \ | |
9deb9485 | 1799 | $(exec_prefix) |
ff290baf ILT |
1800 | .PHONY: installdirs |
1801 | installdirs: mkinstalldirs | |
fab3dd2d | 1802 | $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS) |
23e3e7f9 | 1803 | |
79337c85 ILT |
1804 | dir.info: do-install-info |
1805 | if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \ | |
1806 | $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \ | |
1807 | mv -f dir.info.new dir.info ; \ | |
1808 | else true ; \ | |
72c09fbc | 1809 | fi |
6b7e5998 | 1810 | |
b1cceba2 DZ |
1811 | dist: |
1812 | @echo "Building a full distribution of this tree isn't done" | |
1813 | @echo "via 'make dist'. Check out the etc/ subdirectory" | |
1814 | ||
eb02fd64 RP |
1815 | etags tags: TAGS |
1816 | ||
753d5049 SC |
1817 | # Right now this just builds TAGS in each subdirectory. emacs19 has the |
1818 | # ability to use several tags files at once, so there is probably no need | |
1819 | # to combine them into one big TAGS file (like CVS 1.3 does). We could | |
1820 | # (if we felt like it) have this Makefile write a piece of elisp which | |
1821 | # the user could load to tell emacs19 where all the TAGS files we just | |
1822 | # built are. | |
1823 | TAGS: do-TAGS | |
eb02fd64 | 1824 | |
eb02fd64 RP |
1825 | # with the gnu make, this is done automatically. |
1826 | ||
e677105c | 1827 | Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger) |
a26878d1 | 1828 | $(SHELL) ./config.status |
eb02fd64 | 1829 | |
11954bf1 | 1830 | # |
01ec9588 | 1831 | # Support for building net releases |
11954bf1 | 1832 | |
01ec9588 JK |
1833 | # Files in devo used in any net release. |
1834 | # ChangeLog omitted because it may refer to files which are not in this | |
1835 | # distribution (perhaps it would be better to include it anyway). | |
d94d255d | 1836 | DEVO_SUPPORT= README Makefile.in configure configure.in \ |
e677105c | 1837 | config.guess config.if config.sub config move-if-change \ |
5f69e8bc | 1838 | mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \ |
08499fc2 | 1839 | COPYING COPYING.LIB install-sh config-ml.in symlink-tree \ |
6e68a23e | 1840 | mkinstalldirs ltconfig ltmain.sh missing ylwrap |
01ec9588 JK |
1841 | |
1842 | # Files in devo/etc used in any net release. | |
1843 | # ChangeLog omitted because it may refer to files which are not in this | |
1844 | # distribution (perhaps it would be better to include it anyway). | |
f046ec67 JM |
1845 | ETC_SUPPORT= Makefile.in configure configure.in standards.texi \ |
1846 | make-stds.texi standards.info* | |
01ec9588 | 1847 | |
40e16078 KR |
1848 | # When you use `make setup-dirs' or `make taz' you should always redefine |
1849 | # this macro. | |
1850 | SUPPORT_FILES = list-of-support-files-for-tool-in-question | |
40e16078 | 1851 | |
a54e05f6 KR |
1852 | .PHONY: taz |
1853 | ||
484fa12d JW |
1854 | taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \ |
1855 | texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo | |
258950c5 | 1856 | # Take out texinfo from a few places. |
484fa12d JW |
1857 | sed -e '/^all\.normal: /s/\all-texinfo //' \ |
1858 | -e '/^ install-texinfo /d' \ | |
484fa12d JW |
1859 | <Makefile.in >tmp |
1860 | mv -f tmp Makefile.in | |
65e21701 | 1861 | # |
1d5fcc66 PB |
1862 | $(start-sanitize-Sanitize) |
1863 | @if [ -f .Sanitize ] ; then echo "RUN Sanitize FIRST!" ; false ; fi ; | |
1864 | $(end-sanitize-Sanitize) | |
40e16078 | 1865 | ./configure sun4 |
ab1cbc67 PB |
1866 | [ -z "$(CONFIGURE_TARGET_MODULES)" ] \ |
1867 | || $(MAKE) $(CONFIGURE_TARGET_MODULES) ALL_GCC="" \ | |
aaefc574 | 1868 | CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)" |
6b9e3a78 | 1869 | # Make links, and run "make diststuff" or "make info" when needed. |
a54e05f6 | 1870 | rm -rf proto-toplev ; mkdir proto-toplev |
7f9cb3b2 | 1871 | set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \ |
a54e05f6 KR |
1872 | for d in $$dirs ; do \ |
1873 | if [ -d $$d ]; then \ | |
ab1cbc67 PB |
1874 | if [ ! -f $$d/Makefile ] ; then true ; \ |
1875 | elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \ | |
1876 | (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \ | |
6b9e3a78 | 1877 | elif grep '^info:' $$d/Makefile >/dev/null ; then \ |
ab1cbc67 | 1878 | (cd $$d ; $(MAKE) info ) || exit 1 ; \ |
6b9e3a78 | 1879 | fi ; \ |
7f9cb3b2 KR |
1880 | if [ -d $$d/proto-$$d.dir ]; then \ |
1881 | ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \ | |
1882 | else \ | |
1883 | ln -s ../$$d proto-toplev/$$d ; \ | |
1884 | fi ; \ | |
a54e05f6 | 1885 | else ln -s ../$$d proto-toplev/$$d ; fi ; \ |
40e16078 | 1886 | done |
3dbe0fa2 | 1887 | cd etc ; $(MAKE) info |
5600fbd2 | 1888 | $(MAKE) distclean |
a54e05f6 | 1889 | # |
40e16078 | 1890 | mkdir proto-toplev/etc |
15408b3b KR |
1891 | (cd proto-toplev/etc; \ |
1892 | for i in $(ETC_SUPPORT); do \ | |
40e16078 | 1893 | ln -s ../../etc/$$i . ; \ |
15408b3b | 1894 | done) |
a54e05f6 | 1895 | # |
04103845 | 1896 | # Take out texinfo from configurable dirs |
40e16078 KR |
1897 | rm proto-toplev/configure.in |
1898 | sed -e '/^host_tools=/s/texinfo //' \ | |
40e16078 | 1899 | <configure.in >proto-toplev/configure.in |
a54e05f6 | 1900 | # |
40e16078 | 1901 | mkdir proto-toplev/texinfo |
8d190aa3 KR |
1902 | ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/ |
1903 | ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/ | |
1904 | ln -s ../../texinfo/lgpl.texinfo proto-toplev/texinfo/ | |
1905 | if test -r texinfo/util/tex3patch ; then \ | |
1906 | mkdir proto-toplev/texinfo/util && \ | |
1907 | ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \ | |
1908 | else true; fi | |
d8ea6d40 | 1909 | chmod -R og=u . || chmod og=u `find . -print` |
19ebe123 ILT |
1910 | if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \ |
1911 | ver=`sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'`; \ | |
1912 | else \ | |
1913 | ver=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \ | |
1914 | fi; \ | |
1915 | $(MAKE) -f Makefile.in do-tar-gz TOOL=$(TOOL) VER=$$ver | |
b5dbae28 KR |
1916 | |
1917 | do-tar-gz: | |
1918 | echo "==> Making $(TOOL)-$(VER).tar.gz" | |
1919 | -rm -f $(TOOL)-$(VER) | |
1920 | ln -s proto-toplev $(TOOL)-$(VER) | |
1921 | tar cfh $(TOOL)-$(VER).tar $(TOOL)-$(VER) | |
1922 | $(GZIPPROG) -v -9 $(TOOL)-$(VER).tar | |
40e16078 | 1923 | |
484fa12d | 1924 | TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo |
7f9cb3b2 | 1925 | DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT) |
40e16078 | 1926 | |
96bfa612 | 1927 | .PHONY: gas.tar.gz |
1e93b49b | 1928 | GAS_SUPPORT_DIRS= bfd include libiberty opcodes intl setup.com makefile.vms |
96bfa612 | 1929 | gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas |
484fa12d JW |
1930 | $(MAKE) -f Makefile.in taz TOOL=gas \ |
1931 | SUPPORT_FILES="$(GAS_SUPPORT_DIRS)" | |
40e16078 | 1932 | |
7f9cb3b2 | 1933 | # The FSF "binutils" release includes gprof and ld. |
96bfa612 | 1934 | .PHONY: binutils.tar.gz |
1e93b49b | 1935 | BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms |
96bfa612 | 1936 | binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils |
484fa12d | 1937 | $(MAKE) -f Makefile.in taz TOOL=binutils \ |
2492f942 | 1938 | SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat" |
7f9cb3b2 | 1939 | |
96bfa612 | 1940 | .PHONY: gas+binutils.tar.gz |
b0dae4d7 | 1941 | GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof |
96bfa612 | 1942 | gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas |
484fa12d | 1943 | $(MAKE) -f Makefile.in taz TOOL=gas \ |
2492f942 | 1944 | SUPPORT_FILES="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat" |
79337c85 | 1945 | |
5600fbd2 | 1946 | .PHONY: libg++.tar.gz |
ab1cbc67 | 1947 | LIBGXX_SUPPORT_DIRS=include libstdc++ libio librx libiberty |
5600fbd2 | 1948 | libg++.tar.gz: $(DIST_SUPPORT) libg++ |
484fa12d JW |
1949 | $(MAKE) -f Makefile.in taz TOOL=libg++ \ |
1950 | SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)" | |
5600fbd2 | 1951 | |
49dfa984 JM |
1952 | GNATS_SUPPORT_DIRS=include libiberty send-pr |
1953 | gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats | |
a0bd8e18 | 1954 | $(MAKE) -f Makefile.in taz TOOL=gnats \ |
49dfa984 JM |
1955 | SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)" |
1956 | ||
1d5fcc66 | 1957 | .PHONY: gdb.tar.gz |
1e93b49b | 1958 | GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl |
ca2ce3b3 | 1959 | GDBTK_SUPPORT_DIRS= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi` |
1d5fcc66 PB |
1960 | gdb.tar.gz: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb |
1961 | $(MAKE) -f Makefile.in taz TOOL=gdb \ | |
ca2ce3b3 | 1962 | SUPPORT_FILES="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)" |
1d5fcc66 | 1963 | |
7166a308 | 1964 | .PHONY: newlib.tar.gz |
a220ba0f | 1965 | NEWLIB_SUPPORT_DIRS=libgloss |
04103845 | 1966 | # taz configures for the sun4 target which won't configure newlib. |
a220ba0f SC |
1967 | # We need newlib configured so that the .info files are made. |
1968 | # Unfortunately, it is not enough to just configure newlib separately: | |
1969 | # taz will build the .info files but since SUBDIRS won't contain newlib, | |
1970 | # distclean won't be run (leaving Makefile, config.status, and the tmp files | |
1971 | # used in building the .info files, eg: *.def, *.ref). | |
4c0b7ebc DE |
1972 | # The problem isn't solvable however without a lot of extra work because |
1973 | # target libraries are built in subdir $(target_alias) which gets nuked during | |
1974 | # the make distclean. For now punt on the issue of shipping newlib info files | |
1975 | # with newlib net releases and wait for a day when some native target (sun4?) | |
1976 | # supports newlib (if only minimally). | |
7166a308 KR |
1977 | newlib.tar.gz: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib |
1978 | $(MAKE) -f Makefile.in taz TOOL=newlib \ | |
1979 | SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \ | |
6b9e3a78 | 1980 | DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib |
7166a308 | 1981 | |
79337c85 | 1982 | .NOEXPORT: |
05992891 | 1983 | MAKEOVERRIDES= |
79337c85 | 1984 | |
eb02fd64 | 1985 | # end of Makefile.in |