emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate correct base
[binutils.git] / Makefile.def
blob366405a18521afe03683fdd6e97c2d9883c365cd
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; };
33 build_modules= { module= fixincludes;
34 extra_configure_args='--target=$(target)'; };
36 host_modules= { module= ash; };
37 host_modules= { module= autoconf; };
38 host_modules= { module= automake; };
39 host_modules= { module= bash; };
40 host_modules= { module= bfd; bootstrap=true; };
41 host_modules= { module= opcodes; bootstrap=true; };
42 host_modules= { module= binutils; bootstrap=true; };
43 host_modules= { module= bison; no_check_cross= true; };
44 host_modules= { module= byacc; no_check_cross= true; };
45 host_modules= { module= bzip2; };
46 host_modules= { module= dejagnu; };
47 host_modules= { module= diff; };
48 host_modules= { module= dosutils; no_check= true; };
49 host_modules= { module= etc; };
50 host_modules= { module= fastjar; no_check_cross= true; };
51 host_modules= { module= fileutils; };
52 host_modules= { module= findutils; };
53 host_modules= { module= find; };
54 host_modules= { module= flex; no_check_cross= true; };
55 host_modules= { module= gas; bootstrap=true; };
56 host_modules= { module= gcc; bootstrap=true;
57 target="`if [ -f gcc/stage_last ]; then echo quickstrap ; else echo all; fi`";
58 extra_make_flags="$(EXTRA_GCC_FLAGS)"; };
59 host_modules= { module= gawk; };
60 host_modules= { module= gettext; };
61 host_modules= { module= gnuserv; };
62 host_modules= { module= gprof; };
63 host_modules= { module= gzip; };
64 host_modules= { module= hello; };
65 host_modules= { module= indent; };
66 host_modules= { module= intl; bootstrap=true; };
67 host_modules= { module= tcl;
68 missing=mostlyclean; };
69 host_modules= { module= itcl; };
70 host_modules= { module= ld; bootstrap=true; };
71 host_modules= { module= libcpp; bootstrap=true; };
72 host_modules= { module= libgui; };
73 host_modules= { module= libiberty; bootstrap=true; };
74 host_modules= { module= libtool; };
75 host_modules= { module= m4; };
76 host_modules= { module= make; };
77 host_modules= { module= mmalloc; no_check=true; };
78 host_modules= { module= patch; };
79 host_modules= { module= perl; };
80 host_modules= { module= prms; };
81 host_modules= { module= rcs; };
82 host_modules= { module= readline; };
83 host_modules= { module= release; no_install= true; no_check= true; };
84 host_modules= { module= recode; };
85 host_modules= { module= sed; };
86 host_modules= { module= send-pr; };
87 host_modules= { module= shellutils; };
88 host_modules= { module= sid; };
89 host_modules= { module= sim; };
90 host_modules= { module= tar; };
91 host_modules= { module= texinfo; no_install= true; };
92 host_modules= { module= textutils; };
93 host_modules= { module= time; };
94 host_modules= { module= uudecode; };
95 host_modules= { module= wdiff; };
96 host_modules= { module= zip; no_check_cross=true; };
97 host_modules= { module= zlib; no_install=true; no_check=true; bootstrap=true; };
98 host_modules= { module= gdb; extra_make_flags="$(X11_FLAGS_TO_PASS)"; };
99 host_modules= { module= expect; extra_make_flags="$(X11_FLAGS_TO_PASS)"; };
100 host_modules= { module= guile; extra_make_flags="$(X11_FLAGS_TO_PASS)"; };
101 host_modules= { module= tk; extra_make_flags="$(X11_FLAGS_TO_PASS)"; };
102 host_modules= { module= libtermcap; no_check=true;
103 missing=mostlyclean;
104 missing=clean;
105 missing=distclean;
106 missing=maintainer-clean; };
107 host_modules= { module= utils; no_check=true; };
109 target_modules = { module= libstdc++-v3; raw_cxx=true; };
110 target_modules = { module= libmudflap; };
111 target_modules = { module= newlib; };
112 target_modules = { module= libgfortran; };
113 target_modules = { module= libobjc; };
114 target_modules = { module= libtermcap; no_check=true; stage=true;
115 missing=mostlyclean;
116 missing=clean;
117 missing=distclean;
118 missing=maintainer-clean; };
119 target_modules = { module= winsup; };
120 target_modules = { module= libgloss; no_check=true; };
121 target_modules = { module= libiberty; };
122 target_modules = { module= gperf; };
123 target_modules = { module= examples; no_check=true; no_install=true; };
124 target_modules = { module= libffi; };
125 target_modules = { module= libjava; raw_cxx=true; };
126 target_modules = { module= zlib; stage=true; };
127 target_modules = { module= boehm-gc; };
128 target_modules = { module= qthreads; };
129 target_modules = { module= rda; };
130 target_modules = { module= libada; };
132 // These are (some of) the make targets to be done in each subdirectory.
133 // Not all; these are the ones which don't have special options.
134 // "depend" indicates that a target depends on another target uniformly
135 // for each subdirectory. There can be several such lines per target.
136 recursive_targets = { make_target= info;
137 depend=configure; };
138 recursive_targets = { make_target= dvi;
139 depend=configure; };
140 recursive_targets = { make_target= TAGS;
141 depend=configure; };
142 recursive_targets = { make_target= install-info;
143 depend=configure;
144 depend=info; };
145 recursive_targets = { make_target= installcheck;
146 depend=configure; };
147 recursive_targets = { make_target= mostlyclean; };
148 recursive_targets = { make_target= clean; };
149 recursive_targets = { make_target= distclean; };
150 recursive_targets = { make_target= maintainer-clean; };
152 // Flags which need to be passed down.
154 // Directories etc.
155 flags_to_pass = { flag= DESTDIR ; };
156 flags_to_pass = { flag= RPATH_ENVVAR ; };
157 flags_to_pass = { flag= TARGET_SUBDIR ; };
158 flags_to_pass = { flag= bindir ; };
159 flags_to_pass = { flag= datadir ; };
160 flags_to_pass = { flag= exec_prefix ; };
161 flags_to_pass = { flag= includedir ; };
162 flags_to_pass = { flag= infodir ; };
163 flags_to_pass = { flag= libdir ; };
164 flags_to_pass = { flag= libexecdir ; };
165 flags_to_pass = { flag= lispdir ; };
166 flags_to_pass = { flag= libstdcxx_incdir ; };
167 flags_to_pass = { flag= libsubdir ; };
168 flags_to_pass = { flag= localstatedir ; };
169 flags_to_pass = { flag= mandir ; };
170 flags_to_pass = { flag= oldincludedir ; };
171 flags_to_pass = { flag= prefix ; };
172 flags_to_pass = { flag= sbindir ; };
173 flags_to_pass = { flag= sharedstatedir ; };
174 flags_to_pass = { flag= sysconfdir ; };
175 flags_to_pass = { flag= tooldir ; };
176 flags_to_pass = { flag= build_tooldir ; };
177 flags_to_pass = { flag= gxx_include_dir ; };
178 flags_to_pass = { flag= gcc_version ; };
179 flags_to_pass = { flag= gcc_version_trigger ; };
180 flags_to_pass = { flag= target_alias ; };
182 // Build tools
183 flags_to_pass = { flag= BISON ; };
184 flags_to_pass = { flag= CC_FOR_BUILD ; };
185 flags_to_pass = { flag= CXX_FOR_BUILD ; };
186 flags_to_pass = { flag= EXPECT ; };
187 flags_to_pass = { flag= FLEX ; };
188 flags_to_pass = { flag= INSTALL ; };
189 flags_to_pass = { flag= INSTALL_DATA ; };
190 flags_to_pass = { flag= INSTALL_PROGRAM ; };
191 flags_to_pass = { flag= INSTALL_SCRIPT ; };
192 flags_to_pass = { flag= LEX ; };
193 flags_to_pass = { flag= M4 ; };
194 flags_to_pass = { flag= MAKE ; };
195 flags_to_pass = { flag= RUNTEST ; };
196 flags_to_pass = { flag= RUNTESTFLAGS ; };
197 flags_to_pass = { flag= SHELL ; };
198 flags_to_pass = { flag= YACC ; };
200 // Host tools
201 flags_to_pass = { flag= AR_FLAGS ; };
202 flags_to_pass = { flag= CFLAGS ; };
203 flags_to_pass = { flag= CXXFLAGS ; };
204 flags_to_pass = { flag= LDFLAGS ; };
205 flags_to_pass = { flag= LIBCFLAGS ; };
206 flags_to_pass = { flag= LIBCXXFLAGS ; };
208 // Target tools
209 flags_to_pass = { flag= AR_FOR_TARGET ; };
210 flags_to_pass = { flag= AS_FOR_TARGET ; };
211 flags_to_pass = { flag= CC_FOR_TARGET ; };
212 flags_to_pass = { flag= CFLAGS_FOR_TARGET ; };
213 flags_to_pass = { flag= CXX_FOR_TARGET ; };
214 flags_to_pass = { flag= CXXFLAGS_FOR_TARGET ; };
215 flags_to_pass = { flag= DLLTOOL_FOR_TARGET ; };
216 flags_to_pass = { flag= GCJ_FOR_TARGET ; };
217 flags_to_pass = { flag= GFORTRAN_FOR_TARGET ; };
218 flags_to_pass = { flag= LD_FOR_TARGET ; };
219 flags_to_pass = { flag= LIBCFLAGS_FOR_TARGET ; };
220 flags_to_pass = { flag= LIBCXXFLAGS_FOR_TARGET ; };
221 flags_to_pass = { flag= NM_FOR_TARGET ; };
222 flags_to_pass = { flag= RANLIB_FOR_TARGET ; };
223 flags_to_pass = { flag= WINDRES_FOR_TARGET ; };
225 // Inter-module dependencies
227 // Build modules
228 dependencies = { module=all-build-bison; on=all-build-texinfo; };
229 dependencies = { module=all-build-byacc; on=all-build-texinfo; };
230 dependencies = { module=all-build-flex; on=all-build-texinfo; };
231 dependencies = { module=all-build-flex; on=all-build-bison; };
232 dependencies = { module=all-build-flex; on=all-build-byacc; };
233 dependencies = { module=all-build-flex; on=all-build-m4; };
234 dependencies = { module=all-build-libiberty; on=all-build-texinfo; };
235 dependencies = { module=all-build-m4; on=all-build-texinfo; };
236 dependencies = { module=all-build-fixincludes; on=all-build-libiberty; };
238 // Host modules specific to gcc.
239 dependencies = { module=configure-gcc; on=configure-intl; };
240 dependencies = { module=configure-gcc; on=configure-binutils; };
241 dependencies = { module=configure-gcc; on=configure-gas; };
242 dependencies = { module=configure-gcc; on=configure-ld; };
243 dependencies = { module=all-gcc; on=all-libiberty; hard=true; };
244 dependencies = { module=all-gcc; on=all-intl; };
245 dependencies = { module=all-gcc; on=all-build-texinfo; };
246 dependencies = { module=all-gcc; on=all-build-bison; };
247 dependencies = { module=all-gcc; on=all-build-byacc; };
248 dependencies = { module=all-gcc; on=all-build-flex; };
249 dependencies = { module=all-gcc; on=all-build-libiberty; };
250 dependencies = { module=all-gcc; on=all-build-fixincludes; };
251 dependencies = { module=all-gcc; on=all-binutils; };
252 dependencies = { module=all-gcc; on=all-gas; };
253 dependencies = { module=all-gcc; on=all-ld; };
254 dependencies = { module=all-gcc; on=all-zlib; };
255 dependencies = { module=all-gcc; on=all-libcpp; hard=true; };
256 dependencies = { module=all-gcc; on=all-build-libiberty; };
258 dependencies = { module=configure-libcpp; on=configure-libiberty; hard=true; };
259 dependencies = { module=configure-libcpp; on=configure-intl; };
260 dependencies = { module=all-libcpp; on=all-libiberty; hard=true; };
261 dependencies = { module=all-libcpp; on=all-intl; };
263 // Host modules specific to gdb.
264 dependencies = { module=configure-gdb; on=configure-itcl; };
265 dependencies = { module=configure-gdb; on=configure-tcl; };
266 dependencies = { module=configure-gdb; on=configure-tk; };
267 dependencies = { module=configure-gdb; on=configure-sim; };
268 dependencies = { module=all-gdb; on=all-libiberty; };
269 dependencies = { module=all-gdb; on=all-opcodes; };
270 dependencies = { module=all-gdb; on=all-bfd; };
271 dependencies = { module=all-gdb; on=all-readline; };
272 dependencies = { module=all-gdb; on=all-build-bison; };
273 dependencies = { module=all-gdb; on=all-build-byacc; };
274 dependencies = { module=all-gdb; on=all-sim; };
275 dependencies = { module=install-gdb; on=install-tcl; };
276 dependencies = { module=install-gdb; on=install-tk; };
277 dependencies = { module=install-gdb; on=install-itcl; };
278 dependencies = { module=install-gdb; on=install-libgui; };
280 dependencies = { module=configure-libgui; on=configure-tcl; };
281 dependencies = { module=configure-libgui; on=configure-tk; };
282 dependencies = { module=all-libgui; on=all-tcl; };
283 dependencies = { module=all-libgui; on=all-tk; };
284 dependencies = { module=all-libgui; on=all-itcl; };
286 // Host modules specific to binutils.
287 dependencies = { module=configure-bfd; on=configure-libiberty; hard=true; };
288 dependencies = { module=all-bfd; on=all-libiberty; };
289 dependencies = { module=all-bfd; on=all-intl; };
291 dependencies = { module=all-binutils; on=all-libiberty; };
292 dependencies = { module=all-binutils; on=all-opcodes; };
293 dependencies = { module=all-binutils; on=all-bfd; };
294 dependencies = { module=all-binutils; on=all-build-flex; };
295 dependencies = { module=all-binutils; on=all-build-bison; };
296 dependencies = { module=all-binutils; on=all-build-byacc; };
297 dependencies = { module=all-binutils; on=all-intl; };
299 // We put install-opcodes before install-binutils because the installed
300 // binutils might be on PATH, and they might need the shared opcodes
301 // library.
302 dependencies = { module=install-binutils; on=install-opcodes; };
304 // libopcodes depends on libbfd
305 dependencies = { module=install-opcodes; on=install-bfd; };
307 dependencies = { module=all-gas; on=all-libiberty; };
308 dependencies = { module=all-gas; on=all-opcodes; };
309 dependencies = { module=all-gas; on=all-bfd; };
310 dependencies = { module=all-gas; on=all-intl; };
311 dependencies = { module=all-gprof; on=all-libiberty; };
312 dependencies = { module=all-gprof; on=all-bfd; };
313 dependencies = { module=all-gprof; on=all-opcodes; };
314 dependencies = { module=all-gprof; on=all-intl; };
315 dependencies = { module=all-ld; on=all-libiberty; };
316 dependencies = { module=all-ld; on=all-bfd; };
317 dependencies = { module=all-ld; on=all-opcodes; };
318 dependencies = { module=all-ld; on=all-build-bison; };
319 dependencies = { module=all-ld; on=all-build-byacc; };
320 dependencies = { module=all-ld; on=all-build-flex; };
321 dependencies = { module=all-ld; on=all-intl; };
323 dependencies = { module=all-opcodes; on=all-bfd; };
324 dependencies = { module=all-opcodes; on=all-libiberty; };
326 // Other host modules in the 'src' repository.
327 dependencies = { module=all-dejagnu; on=all-tcl; };
328 dependencies = { module=all-dejagnu; on=all-expect; };
329 dependencies = { module=all-dejagnu; on=all-tk; };
330 dependencies = { module=configure-expect; on=configure-tcl; };
331 dependencies = { module=configure-expect; on=configure-tk; };
332 dependencies = { module=all-expect; on=all-tcl; };
333 dependencies = { module=all-expect; on=all-tk; };
335 // We put install-tcl before install-itcl because itcl wants to run a
336 // program on installation which uses the Tcl libraries.
337 dependencies = { module=configure-itcl; on=configure-tcl; };
338 dependencies = { module=configure-itcl; on=configure-tk; };
339 dependencies = { module=all-itcl; on=all-tcl; };
340 dependencies = { module=all-itcl; on=all-tk; };
341 dependencies = { module=install-itcl; on=install-tcl; };
343 dependencies = { module=configure-tk; on=configure-tcl; };
344 dependencies = { module=all-tk; on=all-tcl; };
346 dependencies = { module=all-sid; on=all-libiberty; };
347 dependencies = { module=all-sid; on=all-bfd; };
348 dependencies = { module=all-sid; on=all-opcodes; };
349 dependencies = { module=all-sid; on=all-tcl; };
350 dependencies = { module=all-sid; on=all-tk; };
351 dependencies = { module=install-sid; on=install-tcl; };
352 dependencies = { module=install-sid; on=install-tk; };
354 dependencies = { module=all-sim; on=all-libiberty; };
355 dependencies = { module=all-sim; on=all-bfd; };
356 dependencies = { module=all-sim; on=all-opcodes; };
357 dependencies = { module=all-sim; on=all-readline; };
358 dependencies = { module=all-sim; on=configure-gdb; };
360 // Other host modules.
361 dependencies = { module=all-fastjar; on=all-zlib; };
362 dependencies = { module=all-fastjar; on=all-build-texinfo; };
363 dependencies = { module=all-fastjar; on=all-libiberty; };
365 // Warning, these are not well tested.
366 dependencies = { module=all-autoconf; on=all-m4; };
367 dependencies = { module=all-autoconf; on=all-build-texinfo; };
368 dependencies = { module=all-automake; on=all-m4; };
369 dependencies = { module=all-automake; on=all-build-texinfo; };
370 dependencies = { module=all-automake; on=all-autoconf; };
371 dependencies = { module=all-bison; on=all-intl; };
372 dependencies = { module=all-bison; on=all-build-texinfo; };
373 dependencies = { module=all-diff; on=all-intl; };
374 dependencies = { module=all-diff; on=all-build-texinfo; };
375 dependencies = { module=all-fileutils; on=all-intl; };
376 dependencies = { module=all-fileutils; on=all-build-texinfo; };
377 dependencies = { module=all-flex; on=all-build-bison; };
378 dependencies = { module=all-flex; on=all-build-byacc; };
379 dependencies = { module=all-flex; on=all-intl; };
380 dependencies = { module=all-flex; on=all-m4; };
381 dependencies = { module=all-flex; on=all-build-texinfo; };
382 dependencies = { module=all-gzip; on=all-intl; };
383 dependencies = { module=all-gzip; on=all-zlib; };
384 dependencies = { module=all-gzip; on=all-build-texinfo; };
385 dependencies = { module=all-hello; on=all-intl; };
386 dependencies = { module=all-hello; on=all-build-texinfo; };
387 dependencies = { module=all-m4; on=all-intl; };
388 dependencies = { module=all-m4; on=all-build-texinfo; };
389 dependencies = { module=all-make; on=all-intl; };
390 dependencies = { module=all-make; on=all-build-texinfo; };
391 dependencies = { module=all-patch; on=all-build-texinfo; };
392 dependencies = { module=all-make; on=all-build-texinfo; };
393 dependencies = { module=all-prms; on=all-libiberty; };
394 dependencies = { module=all-recode; on=all-build-texinfo; };
395 dependencies = { module=all-sed; on=all-build-texinfo; };
396 dependencies = { module=all-send-pr; on=all-prms; };
397 dependencies = { module=all-tar; on=all-build-texinfo; };
398 dependencies = { module=all-uudecode; on=all-build-texinfo; };
400 // Target modules. These can also have dependencies on the language
401 // environment (e.g. on libstdc++).
402 lang_env_dependencies = { module=boehm-gc; };
403 lang_env_dependencies = { module=gperf; cxx=true; };
404 lang_env_dependencies = { module=libada; };
405 lang_env_dependencies = { module=libgfortran; };
406 lang_env_dependencies = { module=libffi; };
407 lang_env_dependencies = { module=libjava; cxx=true; };
408 lang_env_dependencies = { module=libobjc; };
409 lang_env_dependencies = { module=libstdc++-v3; };
410 lang_env_dependencies = { module=zlib; };
412 dependencies = { module=configure-target-boehm-gc; on=configure-target-qthreads; };
413 dependencies = { module=configure-target-fastjar; on=configure-target-zlib; };
414 dependencies = { module=all-target-fastjar; on=all-target-zlib; };
415 dependencies = { module=all-target-fastjar; on=all-target-libiberty; };
416 dependencies = { module=configure-target-libjava; on=configure-target-zlib; };
417 dependencies = { module=configure-target-libjava; on=configure-target-boehm-gc; };
418 dependencies = { module=configure-target-libjava; on=configure-target-qthreads; };
419 dependencies = { module=configure-target-libjava; on=configure-target-libffi; };
420 dependencies = { module=all-target-libjava; on=all-fastjar; };
421 dependencies = { module=all-target-libjava; on=all-target-zlib; };
422 dependencies = { module=all-target-libjava; on=all-target-boehm-gc; };
423 dependencies = { module=all-target-libjava; on=all-target-qthreads; };
424 dependencies = { module=all-target-libjava; on=all-target-libffi; };
425 dependencies = { module=all-target-libobjc; on=all-target-libiberty; };
426 dependencies = { module=all-target-libstdc++-v3; on=all-target-libiberty; };
428 // Target modules in the 'src' repository.
429 lang_env_dependencies = { module=examples; };
430 lang_env_dependencies = { module=libtermcap; };
431 lang_env_dependencies = { module=rda; };
432 lang_env_dependencies = { module=winsup; };
433 lang_env_dependencies = { module=qthreads; };
435 dependencies = { module=all-target-libgloss; on=configure-target-newlib; };
436 dependencies = { module=all-target-winsup; on=all-target-libiberty; };
437 dependencies = { module=all-target-winsup; on=all-target-libtermcap; };
439 // Toplevel bootstrap
440 bootstrap_stage = {
441 id=1 ;
442 stage_configure_flags='--disable-intermodule \
443 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"' ;
444 stage_make_flags='CFLAGS="$(STAGE1_CFLAGS)"' ; };
445 bootstrap_stage = {
446 id=2 ; prev=1 ;
447 bootstrap_target=bootstrap2 ;
448 stage_configure_flags="@stage2_werror_flag@" ;
449 stage_make_flags="" ; };
450 bootstrap_stage = {
451 id=3 ; prev=2 ; lean=1 ;
452 compare_target=compare ;
453 bootstrap_target=bootstrap ;
454 cleanstrap_target=cleanstrap ;
455 stage_configure_flags="@stage2_werror_flag@" ;
456 stage_make_flags="" ; };
457 bootstrap_stage = {
458 id=4 ; prev=3 ; lean=2 ;
459 compare_target=compare3 ;
460 bootstrap_target=bootstrap4 ;
461 stage_configure_flags="@stage2_werror_flag@" ;
462 stage_make_flags="" ; };
463 bootstrap_stage = {
464 id=profile ; prev=1 ;
465 stage_configure_flags="@stage2_werror_flag@" ;
466 stage_make_flags='CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"' ; };
467 bootstrap_stage = {
468 id=feedback ; prev=1 ;
469 stage_configure_flags="@stage2_werror_flag@" ;
470 stage_make_flags='CFLAGS="$(BOOT_CFLAGS) -fprofile-use"' ; };