bfd/
[binutils.git] / Makefile.def
blob16dad1528120b7f15ee22f339fec19ec8f801ab1
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= libbanshee; };
29 build_modules= { module= bison; };
30 build_modules= { module= byacc; };
31 build_modules= { module= flex; };
32 build_modules= { module= m4; };
33 build_modules= { module= texinfo; };
35 host_modules= { module= ash; };
36 host_modules= { module= autoconf; };
37 host_modules= { module= automake; };
38 host_modules= { module= bash; };
39 host_modules= { module= bfd; bootstrap=true; };
40 host_modules= { module= opcodes; bootstrap=true; };
41 host_modules= { module= binutils; bootstrap=true; };
42 host_modules= { module= bison; no_check_cross= true; };
43 host_modules= { module= byacc; no_check_cross= true; };
44 host_modules= { module= bzip2; };
45 host_modules= { module= dejagnu; };
46 host_modules= { module= diff; };
47 host_modules= { module= dosutils; no_check= true; };
48 host_modules= { module= etc; };
49 host_modules= { module= fastjar; no_check_cross= true; };
50 host_modules= { module= fileutils; };
51 host_modules= { module= findutils; };
52 host_modules= { module= find; };
53 host_modules= { module= flex; no_check_cross= true; };
54 host_modules= { module= gas; bootstrap=true; };
55 host_modules= { module= gcc; bootstrap=true;
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; with_x=true; };
98 host_modules= { module= expect; with_x=true; };
99 host_modules= { module= guile; with_x=true; };
100 host_modules= { module= tk; with_x=true; };
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=configure-gcc; on=configure-bison; };
242 dependencies = { module=configure-gcc; on=configure-flex; };
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-texinfo; };
246 dependencies = { module=all-gcc; on=all-bison; };
247 dependencies = { module=all-gcc; on=all-byacc; };
248 dependencies = { module=all-gcc; on=all-flex; };
249 dependencies = { module=all-gcc; on=all-binutils; };
250 dependencies = { module=all-gcc; on=all-gas; };
251 dependencies = { module=all-gcc; on=all-ld; };
252 dependencies = { module=all-gcc; on=all-zlib; };
253 dependencies = { module=all-gcc; on=all-libbanshee; };
254 dependencies = { module=all-gcc; on=all-libcpp; hard=true; };
255 dependencies = { module=all-gcc; on=all-build-libiberty; };
257 dependencies = { module=configure-libcpp; on=configure-libiberty; hard=true; };
258 dependencies = { module=configure-libcpp; on=configure-intl; };
259 dependencies = { module=all-libcpp; on=all-libiberty; hard=true; };
260 dependencies = { module=all-libcpp; on=all-intl; };
262 // Host modules specific to gdb.
263 dependencies = { module=configure-gdb; on=configure-itcl; };
264 dependencies = { module=configure-gdb; on=configure-tcl; };
265 dependencies = { module=configure-gdb; on=configure-tk; };
266 dependencies = { module=configure-gdb; on=configure-sim; };
267 dependencies = { module=all-gdb; on=all-libiberty; };
268 dependencies = { module=all-gdb; on=all-opcodes; };
269 dependencies = { module=all-gdb; on=all-bfd; };
270 dependencies = { module=all-gdb; on=all-readline; };
271 dependencies = { module=all-gdb; on=all-bison; };
272 dependencies = { module=all-gdb; on=all-byacc; };
273 dependencies = { module=all-gdb; on=all-sim; };
274 dependencies = { module=install-gdb; on=install-tcl; };
275 dependencies = { module=install-gdb; on=install-tk; };
276 dependencies = { module=install-gdb; on=install-itcl; };
277 dependencies = { module=install-gdb; on=install-libgui; };
279 dependencies = { module=configure-libgui; on=configure-tcl; };
280 dependencies = { module=configure-libgui; on=configure-tk; };
281 dependencies = { module=all-libgui; on=all-tcl; };
282 dependencies = { module=all-libgui; on=all-tk; };
283 dependencies = { module=all-libgui; on=all-itcl; };
285 // Host modules specific to binutils.
286 dependencies = { module=configure-bfd; on=configure-libiberty; hard=true; };
287 dependencies = { module=all-bfd; on=all-libiberty; };
288 dependencies = { module=all-bfd; on=all-intl; };
290 dependencies = { module=all-binutils; on=all-libiberty; };
291 dependencies = { module=all-binutils; on=all-opcodes; };
292 dependencies = { module=all-binutils; on=all-bfd; };
293 dependencies = { module=all-binutils; on=all-flex; };
294 dependencies = { module=all-binutils; on=all-bison; };
295 dependencies = { module=all-binutils; on=all-byacc; };
296 dependencies = { module=all-binutils; on=all-intl; };
298 // We put install-opcodes before install-binutils because the installed
299 // binutils might be on PATH, and they might need the shared opcodes
300 // library.
301 dependencies = { module=install-binutils; on=install-opcodes; };
303 // libopcodes depends on libbfd
304 dependencies = { module=install-opcodes; on=install-bfd; };
306 dependencies = { module=all-gas; on=all-libiberty; };
307 dependencies = { module=all-gas; on=all-opcodes; };
308 dependencies = { module=all-gas; on=all-bfd; };
309 dependencies = { module=all-gas; on=all-intl; };
310 dependencies = { module=all-gprof; on=all-libiberty; };
311 dependencies = { module=all-gprof; on=all-bfd; };
312 dependencies = { module=all-gprof; on=all-opcodes; };
313 dependencies = { module=all-gprof; on=all-intl; };
314 dependencies = { module=all-ld; on=all-libiberty; };
315 dependencies = { module=all-ld; on=all-bfd; };
316 dependencies = { module=all-ld; on=all-opcodes; };
317 dependencies = { module=all-ld; on=all-bison; };
318 dependencies = { module=all-ld; on=all-byacc; };
319 dependencies = { module=all-ld; on=all-flex; };
320 dependencies = { module=all-ld; on=all-intl; };
322 dependencies = { module=all-opcodes; on=all-bfd; };
323 dependencies = { module=all-opcodes; on=all-libiberty; };
325 // Other host modules in the 'src' repository.
326 dependencies = { module=all-dejagnu; on=all-tcl; };
327 dependencies = { module=all-dejagnu; on=all-expect; };
328 dependencies = { module=all-dejagnu; on=all-tk; };
329 dependencies = { module=configure-expect; on=configure-tcl; };
330 dependencies = { module=configure-expect; on=configure-tk; };
331 dependencies = { module=all-expect; on=all-tcl; };
332 dependencies = { module=all-expect; on=all-tk; };
334 // We put install-tcl before install-itcl because itcl wants to run a
335 // program on installation which uses the Tcl libraries.
336 dependencies = { module=configure-itcl; on=configure-tcl; };
337 dependencies = { module=configure-itcl; on=configure-tk; };
338 dependencies = { module=all-itcl; on=all-tcl; };
339 dependencies = { module=all-itcl; on=all-tk; };
340 dependencies = { module=install-itcl; on=install-tcl; };
342 dependencies = { module=configure-tk; on=configure-tcl; };
343 dependencies = { module=all-tk; on=all-tcl; };
345 dependencies = { module=all-sid; on=all-libiberty; };
346 dependencies = { module=all-sid; on=all-bfd; };
347 dependencies = { module=all-sid; on=all-opcodes; };
348 dependencies = { module=all-sid; on=all-tcl; };
349 dependencies = { module=all-sid; on=all-tk; };
350 dependencies = { module=install-sid; on=install-tcl; };
351 dependencies = { module=install-sid; on=install-tk; };
353 dependencies = { module=all-sim; on=all-libiberty; };
354 dependencies = { module=all-sim; on=all-bfd; };
355 dependencies = { module=all-sim; on=all-opcodes; };
356 dependencies = { module=all-sim; on=all-readline; };
357 dependencies = { module=all-sim; on=configure-gdb; };
359 // Other host modules.
360 dependencies = { module=all-fastjar; on=all-zlib; };
361 dependencies = { module=all-fastjar; on=all-texinfo; };
362 dependencies = { module=all-fastjar; on=all-libiberty; };
364 // Warning, these are not well tested.
365 dependencies = { module=all-autoconf; on=all-m4; };
366 dependencies = { module=all-autoconf; on=all-texinfo; };
367 dependencies = { module=all-automake; on=all-m4; };
368 dependencies = { module=all-automake; on=all-texinfo; };
369 dependencies = { module=all-automake; on=all-autoconf; };
370 dependencies = { module=all-bison; on=all-intl; };
371 dependencies = { module=all-bison; on=all-texinfo; };
372 dependencies = { module=all-diff; on=all-intl; };
373 dependencies = { module=all-diff; on=all-texinfo; };
374 dependencies = { module=all-fileutils; on=all-intl; };
375 dependencies = { module=all-fileutils; on=all-texinfo; };
376 dependencies = { module=all-flex; on=all-bison; };
377 dependencies = { module=all-flex; on=all-byacc; };
378 dependencies = { module=all-flex; on=all-intl; };
379 dependencies = { module=all-flex; on=all-m4; };
380 dependencies = { module=all-flex; on=all-texinfo; };
381 dependencies = { module=all-gzip; on=all-intl; };
382 dependencies = { module=all-gzip; on=all-zlib; };
383 dependencies = { module=all-gzip; on=all-texinfo; };
384 dependencies = { module=all-hello; on=all-intl; };
385 dependencies = { module=all-hello; on=all-texinfo; };
386 dependencies = { module=all-m4; on=all-intl; };
387 dependencies = { module=all-m4; on=all-texinfo; };
388 dependencies = { module=all-make; on=all-intl; };
389 dependencies = { module=all-make; on=all-texinfo; };
390 dependencies = { module=all-patch; on=all-texinfo; };
391 dependencies = { module=all-make; on=all-texinfo; };
392 dependencies = { module=all-prms; on=all-libiberty; };
393 dependencies = { module=all-recode; on=all-texinfo; };
394 dependencies = { module=all-sed; on=all-texinfo; };
395 dependencies = { module=all-send-pr; on=all-prms; };
396 dependencies = { module=all-tar; on=all-texinfo; };
397 dependencies = { module=all-uudecode; on=all-texinfo; };
399 // Target modules. These can also have dependencies on the language
400 // environment (e.g. on libstdc++).
401 lang_env_dependencies = { module=boehm-gc; };
402 lang_env_dependencies = { module=gperf; cxx=true; };
403 lang_env_dependencies = { module=libada; };
404 lang_env_dependencies = { module=libgfortran; };
405 lang_env_dependencies = { module=libffi; };
406 lang_env_dependencies = { module=libjava; cxx=true; };
407 lang_env_dependencies = { module=libobjc; };
408 lang_env_dependencies = { module=libstdc++-v3; };
409 lang_env_dependencies = { module=zlib; };
411 dependencies = { module=configure-target-boehm-gc; on=configure-target-qthreads; };
412 dependencies = { module=configure-target-fastjar; on=configure-target-zlib; };
413 dependencies = { module=all-target-fastjar; on=all-target-zlib; };
414 dependencies = { module=all-target-fastjar; on=all-target-libiberty; };
415 dependencies = { module=configure-target-libjava; on=configure-target-zlib; };
416 dependencies = { module=configure-target-libjava; on=configure-target-boehm-gc; };
417 dependencies = { module=configure-target-libjava; on=configure-target-qthreads; };
418 dependencies = { module=configure-target-libjava; on=configure-target-libffi; };
419 dependencies = { module=all-target-libjava; on=all-fastjar; };
420 dependencies = { module=all-target-libjava; on=all-target-zlib; };
421 dependencies = { module=all-target-libjava; on=all-target-boehm-gc; };
422 dependencies = { module=all-target-libjava; on=all-target-qthreads; };
423 dependencies = { module=all-target-libjava; on=all-target-libffi; };
424 dependencies = { module=all-target-libobjc; on=all-target-libiberty; };
425 dependencies = { module=all-target-libstdc++-v3; on=all-target-libiberty; };
427 // Target modules in the 'src' repository.
428 lang_env_dependencies = { module=examples; };
429 lang_env_dependencies = { module=libtermcap; };
430 lang_env_dependencies = { module=rda; };
431 lang_env_dependencies = { module=winsup; };
432 lang_env_dependencies = { module=qthreads; };
434 dependencies = { module=all-target-libgloss; on=configure-target-newlib; };
435 dependencies = { module=all-target-winsup; on=all-target-libiberty; };
436 dependencies = { module=all-target-winsup; on=all-target-libtermcap; };
438 // Toplevel bootstrap
439 bootstrap_stage = {
440 id=1 ;
441 extra_configure_flags='--disable-intermodule \
442 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"' ;
443 extra_make_flags='CFLAGS="$(STAGE1_CFLAGS)"' ; };
444 bootstrap_stage = {
445 id=2 ; prev=1 ;
446 bootstrap_target=bootstrap2 ;
447 extra_configure_flags="@stage2_werror_flag@" ;
448 extra_make_flags="" ; };
449 bootstrap_stage = {
450 id=3 ; prev=2 ;
451 compare_target=compare ;
452 bootstrap_target=bootstrap ;
453 cleanstrap_target=cleanstrap ;
454 extra_configure_flags="@stage2_werror_flag@" ;
455 extra_make_flags="" ; };
456 bootstrap_stage = {
457 id=4 ; prev=3 ;
458 compare_target=compare3 ;
459 bootstrap_target=bootstrap4 ;
460 extra_configure_flags="@stage2_werror_flag@" ;
461 extra_make_flags="" ; };
462 bootstrap_stage = {
463 id=profile ; prev=1 ;
464 extra_configure_flags="@stage2_werror_flag@" ;
465 extra_make_flags='CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"' ; };
466 bootstrap_stage = {
467 id=feedback ; prev=1 ;
468 extra_configure_flags="@stage2_werror_flag@" ;
469 extra_make_flags='CFLAGS="$(BOOT_CFLAGS) -fprofile-use"' ; };