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