* gcc_update (libcpp/Makefile.in): Remove libcpp/Makefile.am.
[official-gcc.git] / Makefile.def
blobc9de58b718804b9074d06b08f572cbf5c44e1b1d
1 #! /usr/bin/autogen
2 AutoGen definitions Makefile.tpl;
4 // Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
5 // This file was originally written by Nathanael Nerode.
6 //
7 // Copyright 2002, 2003 Free Software Foundation
8 //
9 // This file is free software; you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation; either version 2 of the License, or
12 // (at your option) any later version.
13 //
14 // This program is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with this program; if not, write to the Free Software
21 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 // "missing" indicates that that module doesn't supply
25 // that recursive target in its Makefile.
27 build_modules= { module= libiberty; };
28 build_modules= { module= bison; };
29 build_modules= { module= byacc; };
30 build_modules= { module= flex; };
31 build_modules= { module= m4; };
32 build_modules= { module= texinfo; };
34 host_modules= { module= ash; };
35 host_modules= { module= autoconf; };
36 host_modules= { module= automake; };
37 host_modules= { module= bash; };
38 host_modules= { module= bfd; bootstrap=true; };
39 host_modules= { module= opcodes; bootstrap=true; };
40 host_modules= { module= binutils; bootstrap=true; };
41 host_modules= { module= bison; no_check_cross= true; };
42 host_modules= { module= byacc; no_check_cross= true; };
43 host_modules= { module= bzip2; };
44 host_modules= { module= dejagnu; };
45 host_modules= { module= diff; };
46 host_modules= { module= dosutils; no_check= true; };
47 host_modules= { module= etc; };
48 host_modules= { module= fastjar; no_check_cross= true; };
49 host_modules= { module= fileutils; };
50 host_modules= { module= findutils; };
51 host_modules= { module= find; };
52 host_modules= { module= flex; no_check_cross= true; };
53 host_modules= { module= gas; bootstrap=true; };
54 host_modules= { module= gcc; bootstrap=true;
55 target="`if [ -f gcc/stage_last ]; then echo quickstrap ; else echo all; fi`";
56 extra_make_flags="$(EXTRA_GCC_FLAGS)"; };
57 host_modules= { module= gawk; };
58 host_modules= { module= gettext; };
59 host_modules= { module= gnuserv; };
60 host_modules= { module= gprof; };
61 host_modules= { module= gzip; };
62 host_modules= { module= hello; };
63 host_modules= { module= indent; };
64 host_modules= { module= intl; bootstrap=true; };
65 host_modules= { module= tcl;
66 missing=mostlyclean; };
67 host_modules= { module= itcl; };
68 host_modules= { module= ld; bootstrap=true; };
69 host_modules= { module= libcpp; bootstrap=true; };
70 host_modules= { module= libgui; };
71 host_modules= { module= libbanshee; bootstrap=true; no_install=true; };
72 host_modules= { module= libiberty; bootstrap=true; };
73 host_modules= { module= libtool; };
74 host_modules= { module= m4; };
75 host_modules= { module= make; };
76 host_modules= { module= mmalloc; no_check=true; };
77 host_modules= { module= patch; };
78 host_modules= { module= perl; };
79 host_modules= { module= prms; };
80 host_modules= { module= rcs; };
81 host_modules= { module= readline; };
82 host_modules= { module= release; no_install= true; no_check= true; };
83 host_modules= { module= recode; };
84 host_modules= { module= sed; };
85 host_modules= { module= send-pr; };
86 host_modules= { module= shellutils; };
87 host_modules= { module= sid; };
88 host_modules= { module= sim; };
89 host_modules= { module= tar; };
90 host_modules= { module= texinfo; no_install= true; };
91 host_modules= { module= textutils; };
92 host_modules= { module= time; };
93 host_modules= { module= uudecode; };
94 host_modules= { module= wdiff; };
95 host_modules= { module= zip; no_check_cross=true; };
96 host_modules= { module= zlib; no_install=true; no_check=true; bootstrap=true; };
97 host_modules= { module= gdb; extra_make_flags="$(X11_FLAGS_TO_PASS)"; };
98 host_modules= { module= expect; extra_make_flags="$(X11_FLAGS_TO_PASS)"; };
99 host_modules= { module= guile; extra_make_flags="$(X11_FLAGS_TO_PASS)"; };
100 host_modules= { module= tk; extra_make_flags="$(X11_FLAGS_TO_PASS)"; };
101 host_modules= { module= libtermcap; no_check=true;
102 missing=mostlyclean;
103 missing=clean;
104 missing=distclean;
105 missing=maintainer-clean; };
106 host_modules= { module= utils; no_check=true; };
108 target_modules = { module= libstdc++-v3; raw_cxx=true; };
109 target_modules = { module= libmudflap; };
110 target_modules = { module= newlib; };
111 target_modules = { module= libgfortran; };
112 target_modules = { module= libobjc; };
113 target_modules = { module= libtermcap; no_check=true; stage=true;
114 missing=mostlyclean;
115 missing=clean;
116 missing=distclean;
117 missing=maintainer-clean; };
118 target_modules = { module= winsup; };
119 target_modules = { module= libgloss; no_check=true; };
120 target_modules = { module= libiberty; };
121 target_modules = { module= gperf; };
122 target_modules = { module= examples; no_check=true; no_install=true; };
123 target_modules = { module= libffi; };
124 target_modules = { module= libjava; raw_cxx=true; };
125 target_modules = { module= zlib; stage=true; };
126 target_modules = { module= boehm-gc; };
127 target_modules = { module= qthreads; };
128 target_modules = { module= rda; };
129 target_modules = { module= libada; };
131 // These are (some of) the make targets to be done in each subdirectory.
132 // Not all; these are the ones which don't have special options.
133 // "depend" indicates that a target depends on another target uniformly
134 // for each subdirectory. There can be several such lines per target.
135 recursive_targets = { make_target= info;
136 depend=configure; };
137 recursive_targets = { make_target= dvi;
138 depend=configure; };
139 recursive_targets = { make_target= TAGS;
140 depend=configure; };
141 recursive_targets = { make_target= install-info;
142 depend=configure;
143 depend=info; };
144 recursive_targets = { make_target= installcheck;
145 depend=configure; };
146 recursive_targets = { make_target= mostlyclean; };
147 recursive_targets = { make_target= clean; };
148 recursive_targets = { make_target= distclean; };
149 recursive_targets = { make_target= maintainer-clean; };
151 // Flags which need to be passed down.
153 // Directories etc.
154 flags_to_pass = { flag= DESTDIR ; };
155 flags_to_pass = { flag= RPATH_ENVVAR ; };
156 flags_to_pass = { flag= TARGET_SUBDIR ; };
157 flags_to_pass = { flag= bindir ; };
158 flags_to_pass = { flag= datadir ; };
159 flags_to_pass = { flag= exec_prefix ; };
160 flags_to_pass = { flag= includedir ; };
161 flags_to_pass = { flag= infodir ; };
162 flags_to_pass = { flag= libdir ; };
163 flags_to_pass = { flag= libexecdir ; };
164 flags_to_pass = { flag= lispdir ; };
165 flags_to_pass = { flag= libstdcxx_incdir ; };
166 flags_to_pass = { flag= libsubdir ; };
167 flags_to_pass = { flag= localstatedir ; };
168 flags_to_pass = { flag= mandir ; };
169 flags_to_pass = { flag= oldincludedir ; };
170 flags_to_pass = { flag= prefix ; };
171 flags_to_pass = { flag= sbindir ; };
172 flags_to_pass = { flag= sharedstatedir ; };
173 flags_to_pass = { flag= sysconfdir ; };
174 flags_to_pass = { flag= tooldir ; };
175 flags_to_pass = { flag= build_tooldir ; };
176 flags_to_pass = { flag= gxx_include_dir ; };
177 flags_to_pass = { flag= gcc_version ; };
178 flags_to_pass = { flag= gcc_version_trigger ; };
179 flags_to_pass = { flag= target_alias ; };
181 // Build tools
182 flags_to_pass = { flag= BISON ; };
183 flags_to_pass = { flag= CC_FOR_BUILD ; };
184 flags_to_pass = { flag= CXX_FOR_BUILD ; };
185 flags_to_pass = { flag= EXPECT ; };
186 flags_to_pass = { flag= FLEX ; };
187 flags_to_pass = { flag= INSTALL ; };
188 flags_to_pass = { flag= INSTALL_DATA ; };
189 flags_to_pass = { flag= INSTALL_PROGRAM ; };
190 flags_to_pass = { flag= INSTALL_SCRIPT ; };
191 flags_to_pass = { flag= LEX ; };
192 flags_to_pass = { flag= M4 ; };
193 flags_to_pass = { flag= MAKE ; };
194 flags_to_pass = { flag= RUNTEST ; };
195 flags_to_pass = { flag= RUNTESTFLAGS ; };
196 flags_to_pass = { flag= SHELL ; };
197 flags_to_pass = { flag= YACC ; };
199 // Host tools
200 flags_to_pass = { flag= AR_FLAGS ; };
201 flags_to_pass = { flag= CFLAGS ; };
202 flags_to_pass = { flag= CXXFLAGS ; };
203 flags_to_pass = { flag= LDFLAGS ; };
204 flags_to_pass = { flag= LIBCFLAGS ; };
205 flags_to_pass = { flag= LIBCXXFLAGS ; };
207 // Target tools
208 flags_to_pass = { flag= AR_FOR_TARGET ; };
209 flags_to_pass = { flag= AS_FOR_TARGET ; };
210 flags_to_pass = { flag= CC_FOR_TARGET ; };
211 flags_to_pass = { flag= CFLAGS_FOR_TARGET ; };
212 flags_to_pass = { flag= CXX_FOR_TARGET ; };
213 flags_to_pass = { flag= CXXFLAGS_FOR_TARGET ; };
214 flags_to_pass = { flag= DLLTOOL_FOR_TARGET ; };
215 flags_to_pass = { flag= GCJ_FOR_TARGET ; };
216 flags_to_pass = { flag= GFORTRAN_FOR_TARGET ; };
217 flags_to_pass = { flag= LD_FOR_TARGET ; };
218 flags_to_pass = { flag= LIBCFLAGS_FOR_TARGET ; };
219 flags_to_pass = { flag= LIBCXXFLAGS_FOR_TARGET ; };
220 flags_to_pass = { flag= NM_FOR_TARGET ; };
221 flags_to_pass = { flag= RANLIB_FOR_TARGET ; };
222 flags_to_pass = { flag= WINDRES_FOR_TARGET ; };
224 // Inter-module dependencies
226 // Build modules
227 dependencies = { module=all-build-bison; on=all-build-texinfo; };
228 dependencies = { module=all-build-byacc; on=all-build-texinfo; };
229 dependencies = { module=all-build-flex; on=all-build-texinfo; };
230 dependencies = { module=all-build-flex; on=all-build-bison; };
231 dependencies = { module=all-build-flex; on=all-build-byacc; };
232 dependencies = { module=all-build-flex; on=all-build-m4; };
233 dependencies = { module=all-build-libiberty; on=all-build-texinfo; };
234 dependencies = { module=all-build-m4; on=all-build-texinfo; };
236 // Host modules specific to gcc.
237 dependencies = { module=configure-gcc; on=configure-intl; };
238 dependencies = { module=configure-gcc; on=configure-binutils; };
239 dependencies = { module=configure-gcc; on=configure-gas; };
240 dependencies = { module=configure-gcc; on=configure-ld; };
241 dependencies = { module=all-gcc; on=all-libiberty; hard=true; };
242 dependencies = { module=all-gcc; on=all-intl; };
243 dependencies = { module=all-gcc; on=all-build-texinfo; };
244 dependencies = { module=all-gcc; on=all-build-bison; };
245 dependencies = { module=all-gcc; on=all-build-byacc; };
246 dependencies = { module=all-gcc; on=all-build-flex; };
247 dependencies = { module=all-gcc; on=all-binutils; };
248 dependencies = { module=all-gcc; on=all-gas; };
249 dependencies = { module=all-gcc; on=all-ld; };
250 dependencies = { module=all-gcc; on=all-zlib; };
251 dependencies = { module=all-gcc; on=all-libbanshee; };
252 dependencies = { module=all-gcc; on=all-libcpp; hard=true; };
253 dependencies = { module=all-gcc; on=all-build-libiberty; };
255 dependencies = { module=configure-libcpp; on=configure-libiberty; hard=true; };
256 dependencies = { module=configure-libcpp; on=configure-intl; };
257 dependencies = { module=all-libcpp; on=all-libiberty; hard=true; };
258 dependencies = { module=all-libcpp; on=all-intl; };
260 // Host modules specific to gdb.
261 dependencies = { module=configure-gdb; on=configure-itcl; };
262 dependencies = { module=configure-gdb; on=configure-tcl; };
263 dependencies = { module=configure-gdb; on=configure-tk; };
264 dependencies = { module=configure-gdb; on=configure-sim; };
265 dependencies = { module=all-gdb; on=all-libiberty; };
266 dependencies = { module=all-gdb; on=all-opcodes; };
267 dependencies = { module=all-gdb; on=all-bfd; };
268 dependencies = { module=all-gdb; on=all-readline; };
269 dependencies = { module=all-gdb; on=all-build-bison; };
270 dependencies = { module=all-gdb; on=all-build-byacc; };
271 dependencies = { module=all-gdb; on=all-sim; };
272 dependencies = { module=install-gdb; on=install-tcl; };
273 dependencies = { module=install-gdb; on=install-tk; };
274 dependencies = { module=install-gdb; on=install-itcl; };
275 dependencies = { module=install-gdb; on=install-libgui; };
277 dependencies = { module=configure-libgui; on=configure-tcl; };
278 dependencies = { module=configure-libgui; on=configure-tk; };
279 dependencies = { module=all-libgui; on=all-tcl; };
280 dependencies = { module=all-libgui; on=all-tk; };
281 dependencies = { module=all-libgui; on=all-itcl; };
283 // Host modules specific to binutils.
284 dependencies = { module=configure-bfd; on=configure-libiberty; hard=true; };
285 dependencies = { module=all-bfd; on=all-libiberty; };
286 dependencies = { module=all-bfd; on=all-intl; };
288 dependencies = { module=all-binutils; on=all-libiberty; };
289 dependencies = { module=all-binutils; on=all-opcodes; };
290 dependencies = { module=all-binutils; on=all-bfd; };
291 dependencies = { module=all-binutils; on=all-build-flex; };
292 dependencies = { module=all-binutils; on=all-build-bison; };
293 dependencies = { module=all-binutils; on=all-build-byacc; };
294 dependencies = { module=all-binutils; on=all-intl; };
296 // We put install-opcodes before install-binutils because the installed
297 // binutils might be on PATH, and they might need the shared opcodes
298 // library.
299 dependencies = { module=install-binutils; on=install-opcodes; };
301 // libopcodes depends on libbfd
302 dependencies = { module=install-opcodes; on=install-bfd; };
304 dependencies = { module=all-gas; on=all-libiberty; };
305 dependencies = { module=all-gas; on=all-opcodes; };
306 dependencies = { module=all-gas; on=all-bfd; };
307 dependencies = { module=all-gas; on=all-intl; };
308 dependencies = { module=all-gprof; on=all-libiberty; };
309 dependencies = { module=all-gprof; on=all-bfd; };
310 dependencies = { module=all-gprof; on=all-opcodes; };
311 dependencies = { module=all-gprof; on=all-intl; };
312 dependencies = { module=all-ld; on=all-libiberty; };
313 dependencies = { module=all-ld; on=all-bfd; };
314 dependencies = { module=all-ld; on=all-opcodes; };
315 dependencies = { module=all-ld; on=all-build-bison; };
316 dependencies = { module=all-ld; on=all-build-byacc; };
317 dependencies = { module=all-ld; on=all-build-flex; };
318 dependencies = { module=all-ld; on=all-intl; };
320 dependencies = { module=all-opcodes; on=all-bfd; };
321 dependencies = { module=all-opcodes; on=all-libiberty; };
323 // Other host modules in the 'src' repository.
324 dependencies = { module=all-dejagnu; on=all-tcl; };
325 dependencies = { module=all-dejagnu; on=all-expect; };
326 dependencies = { module=all-dejagnu; on=all-tk; };
327 dependencies = { module=configure-expect; on=configure-tcl; };
328 dependencies = { module=configure-expect; on=configure-tk; };
329 dependencies = { module=all-expect; on=all-tcl; };
330 dependencies = { module=all-expect; on=all-tk; };
332 // We put install-tcl before install-itcl because itcl wants to run a
333 // program on installation which uses the Tcl libraries.
334 dependencies = { module=configure-itcl; on=configure-tcl; };
335 dependencies = { module=configure-itcl; on=configure-tk; };
336 dependencies = { module=all-itcl; on=all-tcl; };
337 dependencies = { module=all-itcl; on=all-tk; };
338 dependencies = { module=install-itcl; on=install-tcl; };
340 dependencies = { module=configure-tk; on=configure-tcl; };
341 dependencies = { module=all-tk; on=all-tcl; };
343 dependencies = { module=all-sid; on=all-libiberty; };
344 dependencies = { module=all-sid; on=all-bfd; };
345 dependencies = { module=all-sid; on=all-opcodes; };
346 dependencies = { module=all-sid; on=all-tcl; };
347 dependencies = { module=all-sid; on=all-tk; };
348 dependencies = { module=install-sid; on=install-tcl; };
349 dependencies = { module=install-sid; on=install-tk; };
351 dependencies = { module=all-sim; on=all-libiberty; };
352 dependencies = { module=all-sim; on=all-bfd; };
353 dependencies = { module=all-sim; on=all-opcodes; };
354 dependencies = { module=all-sim; on=all-readline; };
355 dependencies = { module=all-sim; on=configure-gdb; };
357 // Other host modules.
358 dependencies = { module=all-fastjar; on=all-zlib; };
359 dependencies = { module=all-fastjar; on=all-build-texinfo; };
360 dependencies = { module=all-fastjar; on=all-libiberty; };
362 // Warning, these are not well tested.
363 dependencies = { module=all-autoconf; on=all-m4; };
364 dependencies = { module=all-autoconf; on=all-build-texinfo; };
365 dependencies = { module=all-automake; on=all-m4; };
366 dependencies = { module=all-automake; on=all-build-texinfo; };
367 dependencies = { module=all-automake; on=all-autoconf; };
368 dependencies = { module=all-bison; on=all-intl; };
369 dependencies = { module=all-bison; on=all-build-texinfo; };
370 dependencies = { module=all-diff; on=all-intl; };
371 dependencies = { module=all-diff; on=all-build-texinfo; };
372 dependencies = { module=all-fileutils; on=all-intl; };
373 dependencies = { module=all-fileutils; on=all-build-texinfo; };
374 dependencies = { module=all-flex; on=all-build-bison; };
375 dependencies = { module=all-flex; on=all-build-byacc; };
376 dependencies = { module=all-flex; on=all-intl; };
377 dependencies = { module=all-flex; on=all-m4; };
378 dependencies = { module=all-flex; on=all-build-texinfo; };
379 dependencies = { module=all-gzip; on=all-intl; };
380 dependencies = { module=all-gzip; on=all-zlib; };
381 dependencies = { module=all-gzip; on=all-build-texinfo; };
382 dependencies = { module=all-hello; on=all-intl; };
383 dependencies = { module=all-hello; on=all-build-texinfo; };
384 dependencies = { module=all-m4; on=all-intl; };
385 dependencies = { module=all-m4; on=all-build-texinfo; };
386 dependencies = { module=all-make; on=all-intl; };
387 dependencies = { module=all-make; on=all-build-texinfo; };
388 dependencies = { module=all-patch; on=all-build-texinfo; };
389 dependencies = { module=all-make; on=all-build-texinfo; };
390 dependencies = { module=all-prms; on=all-libiberty; };
391 dependencies = { module=all-recode; on=all-build-texinfo; };
392 dependencies = { module=all-sed; on=all-build-texinfo; };
393 dependencies = { module=all-send-pr; on=all-prms; };
394 dependencies = { module=all-tar; on=all-build-texinfo; };
395 dependencies = { module=all-uudecode; on=all-build-texinfo; };
397 // Target modules. These can also have dependencies on the language
398 // environment (e.g. on libstdc++).
399 lang_env_dependencies = { module=boehm-gc; };
400 lang_env_dependencies = { module=gperf; cxx=true; };
401 lang_env_dependencies = { module=libada; };
402 lang_env_dependencies = { module=libgfortran; };
403 lang_env_dependencies = { module=libffi; };
404 lang_env_dependencies = { module=libjava; cxx=true; };
405 lang_env_dependencies = { module=libobjc; };
406 lang_env_dependencies = { module=libstdc++-v3; };
407 lang_env_dependencies = { module=zlib; };
409 dependencies = { module=configure-target-boehm-gc; on=configure-target-qthreads; };
410 dependencies = { module=configure-target-fastjar; on=configure-target-zlib; };
411 dependencies = { module=all-target-fastjar; on=all-target-zlib; };
412 dependencies = { module=all-target-fastjar; on=all-target-libiberty; };
413 dependencies = { module=configure-target-libjava; on=configure-target-zlib; };
414 dependencies = { module=configure-target-libjava; on=configure-target-boehm-gc; };
415 dependencies = { module=configure-target-libjava; on=configure-target-qthreads; };
416 dependencies = { module=configure-target-libjava; on=configure-target-libffi; };
417 dependencies = { module=all-target-libjava; on=all-fastjar; };
418 dependencies = { module=all-target-libjava; on=all-target-zlib; };
419 dependencies = { module=all-target-libjava; on=all-target-boehm-gc; };
420 dependencies = { module=all-target-libjava; on=all-target-qthreads; };
421 dependencies = { module=all-target-libjava; on=all-target-libffi; };
422 dependencies = { module=all-target-libobjc; on=all-target-libiberty; };
423 dependencies = { module=all-target-libstdc++-v3; on=all-target-libiberty; };
425 // Target modules in the 'src' repository.
426 lang_env_dependencies = { module=examples; };
427 lang_env_dependencies = { module=libtermcap; };
428 lang_env_dependencies = { module=rda; };
429 lang_env_dependencies = { module=winsup; };
430 lang_env_dependencies = { module=qthreads; };
432 dependencies = { module=all-target-libgloss; on=configure-target-newlib; };
433 dependencies = { module=all-target-winsup; on=all-target-libiberty; };
434 dependencies = { module=all-target-winsup; on=all-target-libtermcap; };
436 // Toplevel bootstrap
437 bootstrap_stage = {
438 id=1 ;
439 stage_configure_flags='--disable-intermodule \
440 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"' ;
441 stage_make_flags='CFLAGS="$(STAGE1_CFLAGS)"' ; };
442 bootstrap_stage = {
443 id=2 ; prev=1 ;
444 bootstrap_target=bootstrap2 ;
445 stage_configure_flags="@stage2_werror_flag@" ;
446 stage_make_flags="" ; };
447 bootstrap_stage = {
448 id=3 ; prev=2 ;
449 compare_target=compare ;
450 bootstrap_target=bootstrap ;
451 cleanstrap_target=cleanstrap ;
452 stage_configure_flags="@stage2_werror_flag@" ;
453 stage_make_flags="" ; };
454 bootstrap_stage = {
455 id=4 ; prev=3 ;
456 compare_target=compare3 ;
457 bootstrap_target=bootstrap4 ;
458 stage_configure_flags="@stage2_werror_flag@" ;
459 stage_make_flags="" ; };
460 bootstrap_stage = {
461 id=profile ; prev=1 ;
462 stage_configure_flags="@stage2_werror_flag@" ;
463 stage_make_flags='CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"' ; };
464 bootstrap_stage = {
465 id=feedback ; prev=1 ;
466 stage_configure_flags="@stage2_werror_flag@" ;
467 stage_make_flags='CFLAGS="$(BOOT_CFLAGS) -fprofile-use"' ; };