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