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