* Makefile.in (all-cgen): Depend on all-libiberty.
[deliverable/binutils-gdb.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 97, 1998
4 # Free Software Foundation
5 #
6 # This file is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 #
20
21 srcdir = .
22
23 prefix = /usr/local
24 exec_prefix = $(prefix)
25
26 bindir=${exec_prefix}/bin
27 sbindir=${exec_prefix}/sbin
28 libexecdir=${exec_prefix}/libexec
29 datadir=${prefix}/share
30 sysconfdir=${prefix}/etc
31 sharedstatedir=${prefix}/com
32 localstatedir=${prefix}/var
33 libdir=${exec_prefix}/lib
34 includedir=${prefix}/include
35 oldincludedir=/usr/include
36 infodir=${prefix}/info
37 mandir=${prefix}/man
38
39 tooldir = $(exec_prefix)/$(target)
40
41 program_transform_name =
42
43 man1dir = $(mandir)/man1
44 man2dir = $(mandir)/man2
45 man3dir = $(mandir)/man3
46 man4dir = $(mandir)/man4
47 man5dir = $(mandir)/man5
48 man6dir = $(mandir)/man6
49 man7dir = $(mandir)/man7
50 man8dir = $(mandir)/man8
51 man9dir = $(mandir)/man9
52 infodir = $(prefix)/info
53 includedir = $(prefix)/include
54 # Directory in which the compiler finds executables, libraries, etc.
55 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
56 GDB_NLM_DEPS =
57
58 SHELL = /bin/sh
59
60 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
61 # cygwin32 host.
62 INSTALL_PROGRAM_ARGS =
63
64 INSTALL = $(SHELL) $$s/install-sh -c
65 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
66 INSTALL_SCRIPT = $(INSTALL)
67 INSTALL_DATA = $(INSTALL) -m 644
68
69 INSTALL_DOSREL = install-dosrel-fake
70
71 AS = as
72 AR = ar
73 AR_FLAGS = rc
74 CC = cc
75
76 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
77 # here so that they can be overridden by Makefile fragments.
78 HOST_CC = $(CC_FOR_BUILD)
79 HOST_PREFIX =
80 HOST_PREFIX_1 = loser-
81
82 # These flag values are normally overridden by the configure script.
83 CFLAGS = -g
84 CXXFLAGS = -g -O2
85
86 LIBCFLAGS = $(CFLAGS)
87 CFLAGS_FOR_TARGET = $(CFLAGS)
88 LDFLAGS_FOR_TARGET =
89 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
90 PICFLAG =
91 PICFLAG_FOR_TARGET =
92
93 CHILLFLAGS = $(CFLAGS)
94 CHILL_LIB = -lchill
95 CXX = c++
96
97 # Use -O2 to stress test the compiler.
98 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
99 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
100 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
101
102 RANLIB = ranlib
103
104 DLLTOOL = dlltool
105 WINDRES = windres
106
107 NM = nm
108
109 LD = ld
110
111 # Not plain GZIP, since gzip looks there for extra command-line options.
112 GZIPPROG = gzip
113
114 # These values are substituted by configure.
115 DEFAULT_YACC = yacc
116 DEFAULT_LEX = lex
117 DEFAULT_M4 = m4
118
119 BISON = `if [ -f $$r/bison/bison ] ; then \
120 echo $$r/bison/bison -L $$s/bison/ ; \
121 else \
122 echo bison ; \
123 fi`
124
125 YACC = `if [ -f $$r/bison/bison ] ; then \
126 echo $$r/bison/bison -y -L $$s/bison/ ; \
127 elif [ -f $$r/byacc/byacc ] ; then \
128 echo $$r/byacc/byacc ; \
129 else \
130 echo ${DEFAULT_YACC} ; \
131 fi`
132
133 LEX = `if [ -f $$r/flex/flex ] ; \
134 then echo $$r/flex/flex ; \
135 else echo ${DEFAULT_LEX} ; fi`
136
137 M4 = `if [ -f $$r/m4/m4 ] ; \
138 then echo $$r/m4/m4 ; \
139 else echo ${DEFAULT_M4} ; fi`
140
141 MAKEINFO = `if [ -f $$r/texinfo/makeinfo/Makefile ] ; \
142 then echo $$r/texinfo/makeinfo/makeinfo ; \
143 else echo makeinfo ; fi`
144
145 # This just becomes part of the MAKEINFO definition passed down to
146 # sub-makes. It lets flags be given on the command line while still
147 # using the makeinfo from the object tree.
148 MAKEINFOFLAGS =
149
150 EXPECT = `if [ -f $$r/expect/expect ] ; \
151 then echo $$r/expect/expect ; \
152 else echo expect ; fi`
153
154 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
155 then echo $$s/dejagnu/runtest ; \
156 else echo runtest ; fi`
157
158
159 # compilers to use to create programs which must be run in the build
160 # environment.
161 CC_FOR_BUILD = $(CC)
162 CXX_FOR_BUILD = $(CXX)
163
164 SUBDIRS = "this is set via configure, don't edit this"
165 OTHERS =
166
167 # This is set by the configure script to the list of directories which
168 # should be built using the target tools.
169
170 # start-sanitize-dsp
171 SPECIAL_LIBS = libdsp
172 # end-sanitize-dsp
173
174 TARGET_CONFIGDIRS = libiberty libgloss $(SPECIAL_LIBS) newlib libio librx libstdc++ libg++ winsup opcodes libstub cygmon
175
176 # Target libraries are put under this directory:
177 # Changed by configure to $(target_alias) if cross.
178 TARGET_SUBDIR = .
179
180 # This is set by the configure script to the arguments passed to configure.
181 CONFIG_ARGUMENTS =
182
183 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
184 # was used.
185 SET_LIB_PATH =
186
187 # This is the name of the environment variable used for the path to
188 # the libraries. This may be changed by configure.in.
189 RPATH_ENVVAR = LD_LIBRARY_PATH
190
191 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
192 REALLY_SET_LIB_PATH = \
193 $(RPATH_ENVVAR)=$$r/bfd:$$r/opcodes:$$$(RPATH_ENVVAR); \
194 export $(RPATH_ENVVAR);
195
196 ALL = all.normal
197 INSTALL_TARGET = installdirs \
198 install-gcc \
199 $(INSTALL_MODULES) \
200 $(INSTALL_TARGET_MODULES) \
201 $(INSTALL_X11_MODULES) \
202 $(INSTALL_DOSREL)
203
204 INSTALL_TARGET_CROSS = installdirs \
205 install-gcc-cross \
206 $(INSTALL_MODULES) \
207 $(INSTALL_TARGET_MODULES) \
208 $(INSTALL_X11_MODULES) \
209 $(INSTALL_DOSREL)
210
211 CC_FOR_TARGET = ` \
212 if [ -f $$r/gcc/xgcc ] ; then \
213 if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
214 if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
215 echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/$(TARGET_SUBDIR)/newlib/ -L$$r/$(TARGET_SUBDIR)/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
216 else \
217 echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
218 fi; \
219 else \
220 echo $$r/gcc/xgcc -B$$r/gcc/; \
221 fi; \
222 else \
223 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
224 echo $(CC); \
225 else \
226 t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
227 fi; \
228 fi`
229
230 # If CC_FOR_TARGET is not overriden on the command line, then this
231 # variable is passed down to the gcc Makefile, where it is used to
232 # build libgcc2.a. We define it here so that it can itself be
233 # overridden on the command line.
234 GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/
235
236 CHILL_FOR_TARGET = ` \
237 if [ -f $$r/gcc/xgcc ] ; then \
238 echo $$r/gcc/xgcc -B$$r/gcc/ -L$$r/gcc/ch/runtime/; \
239 else \
240 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
241 echo $(CC); \
242 else \
243 t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
244 fi; \
245 fi`
246
247 CXX_FOR_TARGET = ` \
248 if [ -f $$r/gcc/xgcc ] ; then \
249 if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
250 if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
251 echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/$(TARGET_SUBDIR)/newlib/ -L$$r/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
252 else \
253 echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
254 fi; \
255 else \
256 echo $$r/gcc/xgcc -B$$r/gcc/; \
257 fi; \
258 else \
259 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
260 echo $(CXX); \
261 else \
262 t='$(program_transform_name)'; echo c++ | sed -e 's/x/x/' $$t; \
263 fi; \
264 fi`
265
266 AS_FOR_TARGET = ` \
267 if [ -f $$r/gas/as-new ] ; then \
268 echo $$r/gas/as-new ; \
269 else \
270 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
271 echo $(AS); \
272 else \
273 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
274 fi; \
275 fi`
276
277 LD_FOR_TARGET = ` \
278 if [ -f $$r/ld/ld-new ] ; then \
279 echo $$r/ld/ld-new ; \
280 else \
281 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
282 echo $(LD); \
283 else \
284 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
285 fi; \
286 fi`
287
288 DLLTOOL_FOR_TARGET = ` \
289 if [ -f $$r/binutils/dlltool ] ; then \
290 echo $$r/binutils/dlltool ; \
291 else \
292 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
293 echo $(DLLTOOL); \
294 else \
295 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
296 fi; \
297 fi`
298
299 WINDRES_FOR_TARGET = ` \
300 if [ -f $$r/binutils/windres ] ; then \
301 echo $$r/binutils/windres ; \
302 else \
303 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
304 echo $(WINDRES); \
305 else \
306 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
307 fi; \
308 fi`
309
310 AR_FOR_TARGET = ` \
311 if [ -f $$r/binutils/ar ] ; then \
312 echo $$r/binutils/ar ; \
313 else \
314 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
315 echo $(AR); \
316 else \
317 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
318 fi; \
319 fi`
320
321 RANLIB_FOR_TARGET = ` \
322 if [ -f $$r/binutils/ranlib ] ; then \
323 echo $$r/binutils/ranlib ; \
324 else \
325 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
326 echo $(RANLIB); \
327 else \
328 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
329 fi; \
330 fi`
331
332 NM_FOR_TARGET = ` \
333 if [ -f $$r/binutils/nm-new ] ; then \
334 echo $$r/binutils/nm-new ; \
335 else \
336 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
337 echo $(NM); \
338 else \
339 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
340 fi; \
341 fi`
342
343 # The first rule in the file had better be this one. Don't put any above it.
344 # This lives here to allow makefile fragments to contain dependencies.
345 all: all.normal
346 .PHONY: all
347
348 # These can be overridden by config/mt-*.
349 # The _TARGET_ is because they're specified in mt-foo.
350 # The _HOST_ is because they're programs that run on the host.
351 EXTRA_TARGET_HOST_ALL_MODULES =
352 EXTRA_TARGET_HOST_INSTALL_MODULES =
353 EXTRA_TARGET_HOST_CHECK_MODULES =
354
355 #### host and target specific makefile fragments come in here.
356 ###
357
358 # Flags to pass down to all sub-makes.
359 # Please keep these in alphabetical order.
360 BASE_FLAGS_TO_PASS = \
361 "AR_FLAGS=$(AR_FLAGS)" \
362 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
363 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
364 "BISON=$(BISON)" \
365 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
366 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
367 "CFLAGS=$(CFLAGS)" \
368 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
369 "CHILLFLAGS=$(CHILLFLAGS)" \
370 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
371 "CHILL_LIB=$(CHILL_LIB)" \
372 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
373 "CXXFLAGS=$(CXXFLAGS)" \
374 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
375 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
376 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
377 "INSTALL=$(INSTALL)" \
378 "INSTALL_DATA=$(INSTALL_DATA)" \
379 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
380 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
381 "LDFLAGS=$(LDFLAGS)" \
382 "LEX=$(LEX)" \
383 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
384 "LIBCFLAGS=$(LIBCFLAGS)" \
385 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
386 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
387 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
388 "M4=$(M4)" \
389 "MAKE=$(MAKE)" \
390 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
391 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
392 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
393 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
394 "SHELL=$(SHELL)" \
395 "EXPECT=$(EXPECT)" \
396 "RUNTEST=$(RUNTEST)" \
397 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
398 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
399 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
400 "YACC=$(YACC)" \
401 "bindir=$(bindir)" \
402 "datadir=$(datadir)" \
403 "exec_prefix=$(exec_prefix)" \
404 "includedir=$(includedir)" \
405 "infodir=$(infodir)" \
406 "libdir=$(libdir)" \
407 "libexecdir=$(libexecdir)" \
408 "lispdir=$(lispdir)" \
409 "localstatedir=$(localstatedir)" \
410 "mandir=$(mandir)" \
411 "oldincludedir=$(oldincludedir)" \
412 "prefix=$(prefix)" \
413 "sbindir=$(sbindir)" \
414 "sharedstatedir=$(sharedstatedir)" \
415 "sysconfdir=$(sysconfdir)" \
416 "tooldir=$(tooldir)" \
417 "gxx_include_dir=$(gxx_include_dir)" \
418 "gcc_version=$(gcc_version)" \
419 "gcc_version_trigger=$(gcc_version_trigger)" \
420 "target_alias=$(target_alias)" \
421 "libsubdir=$(libsubdir)"
422
423 # Flags to pass down to most sub-makes, in which we're building with
424 # the host environment.
425 # If any variables are added here, they must be added to do-*, below.
426 EXTRA_HOST_FLAGS = \
427 'AR=$(AR)' \
428 'AS=$(AS)' \
429 'CC=$(CC)' \
430 'CXX=$(CXX)' \
431 'DLLTOOL=$(DLLTOOL)' \
432 'LD=$(LD)' \
433 'NM=$(NM)' \
434 'RANLIB=$(RANLIB)' \
435 'WINDRES=$(WINDRES)'
436
437 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
438
439 # Flags that are concerned with the location of the X11 include files
440 # and library files
441 #
442 # NOTE: until the top-level is getting the values via autoconf, it only
443 # causes problems to have this top-level Makefile overriding the autoconf-set
444 # values in child directories. Only variables that don't conflict with
445 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
446 #
447 X11_FLAGS_TO_PASS = \
448 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
449 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
450
451 # Flags to pass down to makes which are built with the target environment.
452 # The double $ decreases the length of the command line; the variables
453 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
454 # If any variables are added here, they must be added to do-*, below.
455 EXTRA_TARGET_FLAGS = \
456 'AR=$$(AR_FOR_TARGET)' \
457 'AS=$$(AS_FOR_TARGET)' \
458 'CC=$$(CC_FOR_TARGET)' \
459 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
460 'CXX=$$(CXX_FOR_TARGET)' \
461 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
462 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
463 'LD=$$(LD_FOR_TARGET)' \
464 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
465 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
466 'NM=$$(NM_FOR_TARGET)' \
467 'RANLIB=$$(RANLIB_FOR_TARGET)' \
468 'WINDRES=$$(WINDRES_FOR_TARGET)'
469
470 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
471
472 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
473 # unfortunately needs the native compiler and the target ar and
474 # ranlib.
475 # If any variables are added here, they must be added to do-*, below.
476 # The HOST_* variables are a special case, which are used for the gcc
477 # cross-building scheme.
478 EXTRA_GCC_FLAGS = \
479 'AR=$$(AR_FOR_TARGET)' \
480 'AS=$(AS)' \
481 'CC=$(CC)' \
482 'CXX=$(CXX)' \
483 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
484 'HOST_CC=$(CC_FOR_BUILD)' \
485 'HOST_PREFIX=$(HOST_PREFIX)' \
486 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
487 'NM=$(NM)' \
488 'RANLIB=$$(RANLIB_FOR_TARGET)' \
489 'WINDRES=$$(WINDRES_FOR_TARGET)' \
490 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
491 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
492 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
493 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
494 "`echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)' | sed -e s/.*=$$/XFOO=/`" \
495 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
496 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
497 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
498 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
499 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
500
501 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
502
503 # This is a list of the targets for all of the modules which are compiled
504 # using $(FLAGS_TO_PASS).
505 ALL_MODULES = \
506 all-apache \
507 all-ash \
508 all-autoconf \
509 all-automake \
510 all-bash \
511 all-bfd \
512 all-binutils \
513 all-bison \
514 all-byacc \
515 all-bzip2 \
516 $(start-sanitize-cygnus) \
517 all-cgen \
518 $(end-sanitize-cygnus) \
519 all-cvssrc \
520 all-db \
521 all-dejagnu \
522 all-diff \
523 all-dosutils \
524 all-etc \
525 all-fileutils \
526 all-findutils \
527 all-find \
528 all-flex \
529 $(start-sanitize-cygnus) \
530 all-flexlm \
531 $(end-sanitize-cygnus) \
532 all-gas \
533 all-gawk \
534 all-gettext \
535 all-gnuserv \
536 all-gprof \
537 all-grep \
538 all-grez \
539 all-gzip \
540 all-hello \
541 $(start-sanitize-ide) \
542 all-ilu \
543 $(end-sanitize-ide) \
544 all-indent \
545 all-inet \
546 all-intl \
547 all-ispell \
548 all-itcl \
549 $(start-sanitize-ide) \
550 all-jstools \
551 $(end-sanitize-ide) \
552 all-ld \
553 all-libgui \
554 all-libiberty \
555 $(start-sanitize-ide) \
556 all-libide \
557 all-libidetcl \
558 $(end-sanitize-ide) \
559 all-libtool \
560 all-m4 \
561 all-make \
562 all-mmalloc \
563 all-opcodes \
564 all-patch \
565 all-perl \
566 all-prms \
567 all-rcs \
568 all-readline \
569 all-release \
570 all-recode \
571 all-sed \
572 all-send-pr \
573 all-shellutils \
574 all-sim \
575 $(start-sanitize-cygnus) \
576 all-snavigator \
577 $(end-sanitize-cygnus) \
578 all-tar \
579 all-tcl \
580 all-texinfo \
581 all-textutils \
582 all-tgas \
583 all-time \
584 all-uudecode \
585 $(start-sanitize-ide) \
586 all-vmake \
587 $(end-sanitize-ide) \
588 all-wdiff \
589 $(EXTRA_TARGET_HOST_ALL_MODULES)
590
591 # This is a list of the check targets for all of the modules which are
592 # compiled using $(FLAGS_TO_PASS).
593 #
594 # The list is in two parts. The first lists those tools which
595 # are tested as part of the host's native tool-chain, and not
596 # tested in a cross configuration.
597 NATIVE_CHECK_MODULES = \
598 check-bison \
599 check-byacc \
600 check-flex
601
602 CROSS_CHECK_MODULES = \
603 check-apache \
604 check-ash \
605 check-autoconf \
606 check-automake \
607 check-bash \
608 check-bfd \
609 check-binutils \
610 check-bzip2 \
611 check-cvssrc \
612 check-db \
613 check-dejagnu \
614 check-diff \
615 check-etc \
616 check-fileutils \
617 check-findutils \
618 check-find \
619 $(start-sanitize-cygnus) \
620 check-flexlm \
621 $(end-sanitize-cygnus) \
622 check-gas \
623 check-gawk \
624 check-gettext \
625 check-gnuserv \
626 check-gprof \
627 check-grep \
628 check-gzip \
629 check-hello \
630 $(start-sanitize-ide) \
631 check-ilu \
632 $(end-sanitize-ide) \
633 check-indent \
634 check-inet \
635 check-intl \
636 check-ispell \
637 check-itcl \
638 $(start-sanitize-ide) \
639 check-jstools \
640 $(end-sanitize-ide) \
641 check-ld \
642 check-libgui \
643 check-libiberty \
644 $(start-sanitize-ide) \
645 check-libide \
646 check-libidetcl \
647 $(end-sanitize-ide) \
648 check-libtool \
649 check-m4 \
650 check-make \
651 check-mmcheckoc \
652 check-opcodes \
653 check-patch \
654 check-perl \
655 check-prms \
656 check-rcs \
657 check-readline \
658 check-recode \
659 check-sed \
660 check-send-pr \
661 check-shellutils \
662 $(start-sanitize-cygnus) \
663 check-snavigator \
664 $(end-sanitize-cygnus) \
665 check-sim \
666 check-tar \
667 check-tcl \
668 check-texinfo \
669 check-textutils \
670 check-tgas \
671 check-time \
672 check-uudecode \
673 $(start-sanitize-ide) \
674 check-vmake \
675 $(end-sanitize-ide) \
676 check-wdiff \
677 $(EXTRA_TARGET_HOST_CHECK_MODULES)
678
679 CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
680
681 # This is a list of the install targets for all of the modules which are
682 # compiled using $(FLAGS_TO_PASS).
683 # We put install-opcodes before install-binutils because the installed
684 # binutils might be on PATH, and they might need the shared opcodes
685 # library.
686 # We put install-tcl before install-itcl because itcl wants to run a
687 # program on installation which uses the Tcl libraries.
688 INSTALL_MODULES = \
689 install-apache \
690 install-ash \
691 install-autoconf \
692 install-automake \
693 install-bash \
694 install-bfd \
695 install-bzip2 \
696 install-opcodes \
697 install-binutils \
698 install-bison \
699 install-byacc \
700 install-cvssrc \
701 install-db \
702 install-dejagnu \
703 install-diff \
704 install-dosutils \
705 install-etc \
706 install-fileutils \
707 install-findutils \
708 install-find \
709 install-flex \
710 $(start-sanitize-cygnus) \
711 install-flexlm \
712 $(end-sanitize-cygnus) \
713 install-gas \
714 install-gawk \
715 install-gettext \
716 install-gnuserv \
717 install-gprof \
718 install-grep \
719 install-grez \
720 install-gzip \
721 install-hello \
722 $(start-sanitize-ide) \
723 install-ilu \
724 $(end-sanitize-ide) \
725 install-indent \
726 install-inet \
727 install-intl \
728 install-ispell \
729 install-tcl \
730 install-itcl \
731 $(start-sanitize-ide) \
732 install-jstools \
733 $(end-sanitize-ide) \
734 install-ld \
735 install-libgui \
736 install-libiberty \
737 $(start-sanitize-ide) \
738 install-libide \
739 install-libidetcl \
740 $(end-sanitize-ide) \
741 install-libtool \
742 install-m4 \
743 install-make \
744 install-mmalloc \
745 install-patch \
746 install-perl \
747 install-prms \
748 install-rcs \
749 install-readline \
750 install-recode \
751 install-sed \
752 install-send-pr \
753 install-shellutils \
754 install-sim \
755 $(start-sanitize-cygnus) \
756 install-snavigator \
757 $(end-sanitize-cygnus) \
758 install-tar \
759 install-texinfo \
760 install-textutils \
761 install-tgas \
762 install-time \
763 install-uudecode \
764 $(start-sanitize-ide) \
765 install-vmake \
766 $(end-sanitize-ide) \
767 install-wdiff \
768 $(EXTRA_TARGET_HOST_INSTALL_MODULES)
769
770 # This is a list of the targets for all of the modules which are compiled
771 # using $(X11_FLAGS_TO_PASS).
772 ALL_X11_MODULES = \
773 all-emacs \
774 all-emacs19 \
775 all-gdb \
776 all-expect \
777 all-gash \
778 all-guile \
779 all-tclX \
780 all-tk \
781 all-tix
782
783 # This is a list of the check targets for all of the modules which are
784 # compiled using $(X11_FLAGS_TO_PASS).
785 CHECK_X11_MODULES = \
786 check-emacs \
787 check-gdb \
788 check-guile \
789 check-expect \
790 check-gash \
791 check-tclX \
792 check-tk \
793 check-tix
794
795 # This is a list of the install targets for all the modules which are
796 # compiled using $(X11_FLAGS_TO_PASS).
797 INSTALL_X11_MODULES = \
798 install-emacs \
799 install-emacs19 \
800 install-gdb \
801 install-guile \
802 install-expect \
803 install-gash \
804 install-tclX \
805 install-tk \
806 install-tix
807
808 # This is a list of the targets for all of the modules which are compiled
809 # using $(TARGET_FLAGS_TO_PASS).
810 ALL_TARGET_MODULES = \
811 all-target-libio \
812 all-target-libstdc++ \
813 all-target-librx \
814 all-target-libg++ \
815 all-target-newlib \
816 all-target-winsup \
817 $(start-sanitize-dsp) \
818 all-target-libdsp \
819 $(end-sanitize-dsp) \
820 all-target-libgloss \
821 all-target-libiberty \
822 all-target-gperf \
823 all-target-examples \
824 all-target-libstub \
825 $(start-sanitize-java) \
826 all-target-libjava \
827 all-target-boehm-gc \
828 all-target-qthreads \
829 $(end-sanitize-java) \
830 all-target-cygmon
831
832 # This is a list of the configure targets for all of the modules which
833 # are compiled using the target tools.
834 CONFIGURE_TARGET_MODULES = \
835 $(start-sanitize-dsp) \
836 configure-target-libdsp \
837 $(end-sanitize-dsp) \
838 configure-target-libio \
839 configure-target-libstdc++ \
840 configure-target-librx \
841 configure-target-libg++ \
842 configure-target-newlib \
843 configure-target-winsup \
844 configure-target-libgloss \
845 configure-target-libiberty \
846 configure-target-gperf \
847 configure-target-examples \
848 configure-target-libstub \
849 $(start-sanitize-java) \
850 configure-target-libjava \
851 configure-target-boehm-gc \
852 configure-target-qthreads \
853 $(end-sanitize-java) \
854 configure-target-cygmon
855
856 # This is a list of the check targets for all of the modules which are
857 # compiled using $(TARGET_FLAGS_TO_PASS).
858 CHECK_TARGET_MODULES = \
859 $(start-sanitize-dsp) \
860 check-target-libdsp \
861 $(end-sanitize-dsp) \
862 check-target-libio \
863 check-target-libstdc++ \
864 check-target-libg++ \
865 check-target-newlib \
866 check-target-winsup \
867 check-target-libiberty \
868 $(start-sanitize-java) \
869 check-target-libjava \
870 check-target-boehm-gc \
871 check-target-qthreads \
872 $(end-sanitize-java) \
873 check-target-gperf
874
875 # This is a list of the install targets for all of the modules which are
876 # compiled using $(TARGET_FLAGS_TO_PASS).
877 INSTALL_TARGET_MODULES = \
878 $(start-sanitize-dsp) \
879 install-target-libdsp \
880 $(end-sanitize-dsp) \
881 install-target-libio \
882 install-target-libstdc++ \
883 install-target-libg++ \
884 install-target-newlib \
885 install-target-winsup \
886 install-target-libgloss \
887 install-target-libiberty \
888 $(start-sanitize-java) \
889 install-target-libjava \
890 install-target-boehm-gc \
891 install-target-qthreads \
892 $(end-sanitize-java) \
893 install-target-gperf
894
895 # This is a list of the targets for which we can do a clean-{target}.
896 CLEAN_MODULES = \
897 clean-apache \
898 clean-ash \
899 clean-autoconf \
900 clean-automake \
901 clean-bash \
902 clean-bfd \
903 clean-binutils \
904 clean-bison \
905 clean-byacc \
906 clean-bzip2 \
907 $(start-sanitize-cygnus) \
908 clean-cgen \
909 $(end-sanitize-cygnus) \
910 clean-cvssrc \
911 clean-db \
912 clean-dejagnu \
913 clean-diff \
914 clean-dosutils \
915 clean-etc \
916 clean-fileutils \
917 clean-findutils \
918 clean-find \
919 clean-flex \
920 $(start-sanitize-cygnus) \
921 clean-flexlm \
922 $(end-sanitize-cygnus) \
923 clean-gas \
924 clean-gawk \
925 clean-gettext \
926 clean-gnuserv \
927 clean-gprof \
928 clean-grep \
929 clean-grez \
930 clean-gzip \
931 clean-hello \
932 $(start-sanitize-ide) \
933 clean-ilu \
934 $(end-sanitize-ide) \
935 clean-indent \
936 clean-inet \
937 clean-intl \
938 clean-ispell \
939 clean-itcl \
940 $(start-sanitize-ide) \
941 clean-jstools \
942 $(end-sanitize-ide) \
943 clean-ld \
944 clean-libgui \
945 clean-libiberty \
946 $(start-sanitize-ide) \
947 clean-libide \
948 clean-libidetcl \
949 $(end-sanitize-ide) \
950 clean-libtool \
951 clean-m4 \
952 clean-make \
953 clean-mmalloc \
954 clean-opcodes \
955 clean-patch \
956 clean-perl \
957 clean-prms \
958 clean-rcs \
959 clean-readline \
960 clean-release \
961 clean-recode \
962 clean-sed \
963 clean-send-pr \
964 clean-shellutils \
965 clean-sim \
966 $(start-sanitize-cygnus) \
967 clean-snavigator \
968 $(end-sanitize-cygnus) \
969 clean-tar \
970 clean-tcl \
971 clean-texinfo \
972 clean-textutils \
973 clean-tgas \
974 clean-time \
975 clean-uudecode \
976 $(start-sanitize-ide) \
977 clean-vmake \
978 $(end-sanitize-ide) \
979 clean-wdiff
980
981 # All of the target modules that can be cleaned
982 CLEAN_TARGET_MODULES = \
983 $(start-sanitize-dsp) \
984 clean-target-libdsp \
985 $(end-sanitize-dsp) \
986 clean-target-libio \
987 clean-target-libstdc++ \
988 clean-target-librx \
989 clean-target-libg++ \
990 clean-target-newlib \
991 clean-target-winsup \
992 clean-target-libgloss \
993 clean-target-libiberty \
994 clean-target-gperf \
995 clean-target-examples \
996 clean-target-libstub \
997 $(start-sanitize-java) \
998 clean-target-libjava \
999 clean-target-boehm-gc \
1000 clean-target-qthreads \
1001 $(end-sanitize-java) \
1002 clean-target-cygmon
1003
1004 # All of the x11 modules that can be cleaned
1005 CLEAN_X11_MODULES = \
1006 clean-emacs \
1007 clean-emacs19 \
1008 clean-gdb \
1009 clean-expect \
1010 clean-gash \
1011 clean-guile \
1012 clean-tclX \
1013 clean-tk \
1014 clean-tix
1015
1016 # The target built for a native build.
1017 .PHONY: all.normal
1018 all.normal: \
1019 $(ALL_MODULES) \
1020 $(ALL_X11_MODULES) \
1021 $(ALL_TARGET_MODULES) \
1022 all-gcc
1023
1024 # Do a target for all the subdirectories. A ``make do-X'' will do a
1025 # ``make X'' in all subdirectories (because, in general, there is a
1026 # dependency (below) of X upon do-X, a ``make X'' will also do this,
1027 # but it may do additional work as well).
1028 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
1029 # because it is so large that it can easily overflow the command line
1030 # length limit on some systems.
1031 DO_X = \
1032 do-clean \
1033 do-distclean \
1034 do-dvi \
1035 do-info \
1036 do-install-info \
1037 do-installcheck \
1038 do-mostlyclean \
1039 do-maintainer-clean \
1040 do-TAGS
1041 .PHONY: $(DO_X)
1042 $(DO_X):
1043 @target=`echo $@ | sed -e 's/^do-//'`; \
1044 r=`pwd`; export r; \
1045 s=`cd $(srcdir); pwd`; export s; \
1046 $(SET_LIB_PATH) \
1047 for i in $(SUBDIRS) -dummy-; do \
1048 if [ -f ./$$i/Makefile ]; then \
1049 case $$i in \
1050 gcc) \
1051 for flag in $(EXTRA_GCC_FLAGS); do \
1052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
1053 done; \
1054 ;; \
1055 *) \
1056 for flag in $(EXTRA_HOST_FLAGS); do \
1057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
1058 done; \
1059 ;; \
1060 esac ; \
1061 export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
1062 if (cd ./$$i; \
1063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1065 "RANLIB=$${RANLIB}" \
1066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1067 $${target}); \
1068 then true; else exit 1; fi; \
1069 else true; fi; \
1070 done
1071 @target=`echo $@ | sed -e 's/^do-//'`; \
1072 r=`pwd`; export r; \
1073 s=`cd $(srcdir); pwd`; export s; \
1074 $(SET_LIB_PATH) \
1075 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1076 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1077 for flag in $(EXTRA_TARGET_FLAGS); do \
1078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
1079 done; \
1080 export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
1081 if (cd $(TARGET_SUBDIR)/$$i; \
1082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1084 "RANLIB=$${RANLIB}" \
1085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1086 $${target}); \
1087 then true; else exit 1; fi; \
1088 else true; fi; \
1089 done
1090
1091 # Here are the targets which correspond to the do-X targets.
1092
1093 .PHONY: info installcheck dvi install-info
1094 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1095 .PHONY: local-clean local-distclean local-maintainer-clean
1096 info: do-info
1097 installcheck: do-installcheck
1098 dvi: do-dvi
1099
1100 # Make sure makeinfo is built before we do a `make info'.
1101 do-info: all-texinfo
1102
1103 install-info: do-install-info dir.info
1104 s=`cd $(srcdir); pwd`; export s; \
1105 if [ -f dir.info ] ; then \
1106 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
1107 else true ; fi
1108
1109 local-clean:
1110 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1111
1112 local-distclean:
1113 -rm -f Makefile config.status config.cache mh-frag mt-frag
1114 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1115 rm -rf $(TARGET_SUBDIR); \
1116 else true; fi
1117
1118 local-maintainer-clean:
1119 @echo "This command is intended for maintainers to use;"
1120 @echo "it deletes files that may require special tools to rebuild."
1121
1122 clean: do-clean local-clean
1123 mostlyclean: do-mostlyclean local-clean
1124 distclean: do-distclean local-clean local-distclean
1125 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1126 maintainer-clean: local-distclean
1127 realclean: maintainer-clean
1128
1129 # This rule is used to clean specific modules.
1130 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1131 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1132 @dir=`echo $@ | sed -e 's/clean-//'`; \
1133 if [ -f ./$${dir}/Makefile ] ; then \
1134 r=`pwd`; export r; \
1135 s=`cd $(srcdir); pwd`; export s; \
1136 $(SET_LIB_PATH) \
1137 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1138 else \
1139 true; \
1140 fi
1141
1142 .PHONY: $(CLEAN_TARGET_MODULES)
1143 $(CLEAN_TARGET_MODULES):
1144 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1145 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1146 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1147 r=`pwd`; export r; \
1148 s=`cd $(srcdir); pwd`; export s; \
1149 $(SET_LIB_PATH) \
1150 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1151 else \
1152 true; \
1153 fi
1154
1155 clean-target: $(CLEAN_TARGET_MODULES)
1156
1157 # Check target.
1158
1159 .PHONY: check
1160 check: $(CHECK_MODULES) \
1161 $(CHECK_TARGET_MODULES) \
1162 $(CHECK_X11_MODULES) \
1163 check-gcc
1164
1165 # Automated reporting of test results.
1166
1167 warning.log: build.log
1168 $(srcdir)/contrib/warn_summary build.log > $@
1169
1170 mail-report.log:
1171 if test x'$(BOOT_CFLAGS)' != x''; then \
1172 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1173 fi; \
1174 $(srcdir)/contrib/test_summary -t >$@
1175 chmod +x $@
1176 echo If you really want to send e-mail, run ./$@ now
1177
1178 mail-report-with-warnings.log: warning.log
1179 if test x'$(BOOT_CFLAGS)' != x''; then \
1180 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1181 fi; \
1182 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1183 chmod +x $@
1184 echo If you really want to send e-mail, run ./$@ now
1185
1186 # Installation targets.
1187
1188 .PHONY: install install-cross uninstall source-vault binary-vault vault-install
1189 install: $(INSTALL_TARGET)
1190 install-cross: $(INSTALL_TARGET_CROSS)
1191
1192 uninstall:
1193 @echo "the uninstall target is not supported in this tree"
1194
1195 source-vault:
1196 $(MAKE) -f ./release/Build-A-Release \
1197 host=$(host_alias) source-vault
1198
1199 binary-vault:
1200 $(MAKE) -f ./release/Build-A-Release \
1201 host=$(host_alias) target=$(target_alias)
1202
1203 vault-install:
1204 @if [ -f ./release/vault-install ] ; then \
1205 ./release/vault-install $(host_alias) $(target_alias) ; \
1206 else \
1207 true ; \
1208 fi
1209
1210 .PHONY: install.all
1211 install.all: install-no-fixedincludes
1212 @if [ -f ./gcc/Makefile ] ; then \
1213 r=`pwd` ; export r ; \
1214 $(SET_LIB_PATH) \
1215 (cd ./gcc; \
1216 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1217 else \
1218 true ; \
1219 fi
1220
1221 # inet-install is used because the I*Net wants DejaGNU installed but
1222 # not built. Similarly, gzip is built but not installed.
1223 inet-install:
1224 $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1225
1226 # install-no-fixedincludes is used because Cygnus can not distribute
1227 # the fixed header files.
1228 .PHONY: install-no-fixedincludes
1229 install-no-fixedincludes: \
1230 installdirs \
1231 $(INSTALL_MODULES) \
1232 $(INSTALL_TARGET_MODULES) \
1233 $(INSTALL_X11_MODULES) \
1234 gcc-no-fixedincludes
1235
1236 # Install the gcc headers files, but not the fixed include files,
1237 # which Cygnus is not allowed to distribute. This rule is very
1238 # dependent on the workings of the gcc Makefile.in.
1239 .PHONY: gcc-no-fixedincludes
1240 gcc-no-fixedincludes:
1241 @if [ -f ./gcc/Makefile ]; then \
1242 rm -rf gcc/tmp-include; \
1243 mv gcc/include gcc/tmp-include 2>/dev/null; \
1244 mkdir gcc/include; \
1245 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1246 touch gcc/stmp-fixinc gcc/include/fixed; \
1247 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1248 r=`pwd`; export r; \
1249 s=`cd $(srcdir); pwd` ; export s; \
1250 $(SET_LIB_PATH) \
1251 (cd ./gcc; \
1252 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1253 rm -rf gcc/include; \
1254 mv gcc/tmp-include gcc/include 2>/dev/null; \
1255 else true; fi
1256
1257 # start-sanitize-ide
1258 # Install Foundry. Avoid installing a bunch of stuff we don't need.
1259 install-foundry:
1260 mods="$(INSTALL_MODULES)"; \
1261 x11_mods="$(INSTALL_X11_MODULES)"; \
1262 for d in install-tcl install-tk install-itcl install-tix install-ilu; do \
1263 mods="`echo $${mods} | sed -e "s/$$d//"`"; \
1264 x11_mods="`echo $${x11_mods} | sed -e "s/$$d//"`"; \
1265 done; \
1266 $(MAKE) INSTALL_MODULES="$${mods}" INSTALL_X11_MODULES="$${x11_mods}" install
1267 for d in tcl tk itcl tix ilu; do \
1268 if [ -f $$d/Makefile ]; then \
1269 r=`pwd`; export r; \
1270 s=`cd $(srcdir); pwd`; export s; \
1271 $(SET_LIB_PATH) \
1272 (cd $$d; $(MAKE) $(FLAGS_TO_PASS) install-minimal); \
1273 else \
1274 true; \
1275 fi; \
1276 date '+%D %r' > builddate \
1277 $(INSTALL_DATA) builddate $(datadir)/builddate ; \
1278 done
1279 # end-sanitize-ide
1280
1281 # This rule is used to build the modules which use FLAGS_TO_PASS. To
1282 # build a target all-X means to cd to X and make all.
1283 #
1284 # all-gui, and all-libproc are handled specially because
1285 # they are still experimental, and if they fail to build, that
1286 # shouldn't stop "make all".
1287 .PHONY: $(ALL_MODULES) all-gui all-libproc
1288 $(ALL_MODULES) all-gui all-libproc:
1289 @dir=`echo $@ | sed -e 's/all-//'`; \
1290 if [ -f ./$${dir}/Makefile ] ; then \
1291 r=`pwd`; export r; \
1292 s=`cd $(srcdir); pwd`; export s; \
1293 $(SET_LIB_PATH) \
1294 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1295 else \
1296 true; \
1297 fi
1298
1299 # These rules are used to check the modules which use FLAGS_TO_PASS.
1300 # To build a target check-X means to cd to X and make check. Some
1301 # modules are only tested in a native toolchain.
1302
1303 .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1304 $(NATIVE_CHECK_MODULES):
1305 @if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
1306 dir=`echo $@ | sed -e 's/check-//'`; \
1307 if [ -f ./$${dir}/Makefile ] ; then \
1308 r=`pwd`; export r; \
1309 s=`cd $(srcdir); pwd`; export s; \
1310 $(SET_LIB_PATH) \
1311 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1312 else \
1313 true; \
1314 fi; \
1315 fi
1316
1317 $(CROSS_CHECK_MODULES):
1318 @dir=`echo $@ | sed -e 's/check-//'`; \
1319 if [ -f ./$${dir}/Makefile ] ; then \
1320 r=`pwd`; export r; \
1321 s=`cd $(srcdir); pwd`; export s; \
1322 $(SET_LIB_PATH) \
1323 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1324 else \
1325 true; \
1326 fi
1327
1328 # This rule is used to install the modules which use FLAGS_TO_PASS.
1329 # To build a target install-X means to cd to X and make install.
1330 .PHONY: $(INSTALL_MODULES)
1331 $(INSTALL_MODULES): installdirs
1332 @dir=`echo $@ | sed -e 's/install-//'`; \
1333 if [ -f ./$${dir}/Makefile ] ; then \
1334 r=`pwd`; export r; \
1335 s=`cd $(srcdir); pwd`; export s; \
1336 $(SET_LIB_PATH) \
1337 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1338 else \
1339 true; \
1340 fi
1341
1342 # This rule is used to configure the modules which are built with the
1343 # target tools.
1344 .PHONY: $(CONFIGURE_TARGET_MODULES)
1345 $(CONFIGURE_TARGET_MODULES):
1346 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1347 if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
1348 r=`pwd`; export r; \
1349 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1350 if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1351 if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1352 if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1353 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1354 else \
1355 echo "Multilibs changed for $${dir}, reconfiguring"; \
1356 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1357 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1358 fi; \
1359 else \
1360 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1361 fi; \
1362 fi; \
1363 fi; exit 0 # break command into two pieces
1364 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1365 if [ ! -d $(TARGET_SUBDIR) ]; then \
1366 true; \
1367 elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1368 true; \
1369 elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1370 if [ -d $(srcdir)/$${dir} ]; then \
1371 [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
1372 r=`pwd`; export r; \
1373 s=`cd $(srcdir); pwd`; export s; \
1374 $(SET_LIB_PATH) \
1375 AR="$(AR_FOR_TARGET)"; export AR; \
1376 AS="$(AS_FOR_TARGET)"; export AS; \
1377 CC="$(CC_FOR_TARGET)"; export CC; \
1378 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1379 CXX="$(CXX_FOR_TARGET)"; export CXX; \
1380 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1381 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1382 LD="$(LD_FOR_TARGET)"; export LD; \
1383 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1384 NM="$(NM_FOR_TARGET)"; export NM; \
1385 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1386 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1387 echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
1388 cd $(TARGET_SUBDIR)/$${dir}; \
1389 case $(srcdir) in \
1390 /*) \
1391 topdir=$(srcdir) ;; \
1392 *) \
1393 case "$(TARGET_SUBDIR)" in \
1394 .) topdir="../$(srcdir)" ;; \
1395 *) topdir="../../$(srcdir)" ;; \
1396 esac ;; \
1397 esac; \
1398 if [ "$(srcdir)" = "." ] ; then \
1399 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1400 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1401 if [ -f Makefile ]; then \
1402 if $(MAKE) distclean; then \
1403 true; \
1404 else \
1405 exit 1; \
1406 fi; \
1407 else \
1408 true; \
1409 fi; \
1410 else \
1411 exit 1; \
1412 fi; \
1413 else \
1414 true; \
1415 fi; \
1416 srcdiroption="--srcdir=."; \
1417 libsrcdir="."; \
1418 else \
1419 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1420 libsrcdir="$$s/$${dir}"; \
1421 fi; \
1422 if [ -f $${libsrcdir}/configure ] ; then \
1423 rm -f no-such-file; \
1424 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1425 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1426 --with-target-subdir="$(TARGET_SUBDIR)"; \
1427 else \
1428 rm -f no-such-file; \
1429 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1430 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1431 --with-target-subdir="$(TARGET_SUBDIR)"; \
1432 fi; \
1433 else \
1434 true; \
1435 fi; \
1436 else \
1437 true; \
1438 fi
1439
1440 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1441 # To build a target all-X means to cd to X and make all.
1442 .PHONY: $(ALL_TARGET_MODULES)
1443 $(ALL_TARGET_MODULES):
1444 @dir=`echo $@ | sed -e 's/all-target-//'`; \
1445 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1446 r=`pwd`; export r; \
1447 s=`cd $(srcdir); pwd`; export s; \
1448 $(SET_LIB_PATH) \
1449 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1450 else \
1451 true; \
1452 fi
1453
1454 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1455 # To build a target install-X means to cd to X and make install.
1456 .PHONY: $(CHECK_TARGET_MODULES)
1457 $(CHECK_TARGET_MODULES):
1458 @dir=`echo $@ | sed -e 's/check-target-//'`; \
1459 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1460 r=`pwd`; export r; \
1461 s=`cd $(srcdir); pwd`; export s; \
1462 $(SET_LIB_PATH) \
1463 (cd $(TARGET_SUBDIR)/$${dir};$(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1464 else \
1465 true; \
1466 fi
1467
1468 # This rule is used to install the modules which use
1469 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1470 # and make install.
1471 .PHONY: $(INSTALL_TARGET_MODULES)
1472 $(INSTALL_TARGET_MODULES): installdirs
1473 @dir=`echo $@ | sed -e 's/install-target-//'`; \
1474 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1475 r=`pwd`; export r; \
1476 s=`cd $(srcdir); pwd`; export s; \
1477 $(SET_LIB_PATH) \
1478 (cd $(TARGET_SUBDIR)/$${dir}; \
1479 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1480 else \
1481 true; \
1482 fi
1483
1484 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1485 # To build a target all-X means to cd to X and make all.
1486 .PHONY: $(ALL_X11_MODULES)
1487 $(ALL_X11_MODULES):
1488 @dir=`echo $@ | sed -e 's/all-//'`; \
1489 if [ -f ./$${dir}/Makefile ] ; then \
1490 r=`pwd`; export r; \
1491 s=`cd $(srcdir); pwd`; export s; \
1492 $(SET_LIB_PATH) \
1493 (cd $${dir}; \
1494 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1495 else \
1496 true; \
1497 fi
1498
1499 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1500 # To build a target check-X means to cd to X and make all.
1501 .PHONY: $(CHECK_X11_MODULES)
1502 $(CHECK_X11_MODULES):
1503 @dir=`echo $@ | sed -e 's/check-//'`; \
1504 if [ -f ./$${dir}/Makefile ] ; then \
1505 r=`pwd`; export r; \
1506 s=`cd $(srcdir); pwd`; export s; \
1507 $(SET_LIB_PATH) \
1508 (cd $${dir}; \
1509 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1510 else \
1511 true; \
1512 fi
1513
1514 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1515 # To build a target install-X means to cd to X and make install.
1516 .PHONY: $(INSTALL_X11_MODULES)
1517 $(INSTALL_X11_MODULES): installdirs
1518 @dir=`echo $@ | sed -e 's/install-//'`; \
1519 if [ -f ./$${dir}/Makefile ] ; then \
1520 r=`pwd`; export r; \
1521 s=`cd $(srcdir); pwd`; export s; \
1522 $(SET_LIB_PATH) \
1523 (cd $${dir}; \
1524 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1525 else \
1526 true; \
1527 fi
1528
1529 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1530 .PHONY: all-gcc
1531 all-gcc:
1532 @if [ -f ./gcc/Makefile ] ; then \
1533 r=`pwd`; export r; \
1534 s=`cd $(srcdir); pwd`; export s; \
1535 $(SET_LIB_PATH) \
1536 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1537 else \
1538 true; \
1539 fi
1540
1541 # Building GCC uses some tools for rebuilding "source" files
1542 # like texinfo, bison/byacc, etc. So we must depend on those.
1543 #
1544 # While building GCC, it may be necessary to run various target
1545 # programs like the assembler, linker, etc. So we depend on
1546 # those too.
1547 #
1548 # In theory, on an SMP all those dependencies can be resolved
1549 # in parallel.
1550 #
1551 .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
1552 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1553 @r=`pwd`; export r; \
1554 s=`cd $(srcdir); pwd`; export s; \
1555 $(SET_LIB_PATH) \
1556 echo "Bootstrapping the compiler"; \
1557 cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $@
1558 @r=`pwd`; export r; \
1559 s=`cd $(srcdir); pwd`; export s; \
1560 case "$@" in \
1561 *bootstrap4-lean ) \
1562 msg="Comparing stage3 and stage4 of the compiler"; \
1563 compare=compare3-lean ;; \
1564 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
1565 compare=compare3 ;; \
1566 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
1567 compare=compare-lean ;; \
1568 * ) msg="Comparing stage2 and stage3 of the compiler"; \
1569 compare=compare ;; \
1570 esac; \
1571 $(SET_LIB_PATH) \
1572 echo "$$msg"; \
1573 cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
1574 @r=`pwd`; export r; \
1575 s=`cd $(srcdir); pwd` ; export s; \
1576 $(SET_LIB_PATH) \
1577 echo "Building runtime libraries"; \
1578 $(MAKE) $(BASE_FLAGS_TO_PASS) all
1579
1580 .PHONY: cross
1581 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1582 @r=`pwd`; export r; \
1583 s=`cd $(srcdir); pwd`; export s; \
1584 $(SET_LIB_PATH) \
1585 echo "Building the C and C++ compiler"; \
1586 cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
1587 @r=`pwd`; export r; \
1588 s=`cd $(srcdir); pwd` ; export s; \
1589 $(SET_LIB_PATH) \
1590 echo "Building runtime libraries"; \
1591 $(MAKE) $(BASE_FLAGS_TO_PASS) all LANGUAGES="c c++"
1592
1593 .PHONY: check-gcc
1594 check-gcc:
1595 @if [ -f ./gcc/Makefile ] ; then \
1596 r=`pwd`; export r; \
1597 s=`cd $(srcdir); pwd`; export s; \
1598 $(SET_LIB_PATH) \
1599 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1600 else \
1601 true; \
1602 fi
1603
1604 .PHONY: install-gcc
1605 install-gcc:
1606 @if [ -f ./gcc/Makefile ] ; then \
1607 r=`pwd`; export r; \
1608 s=`cd $(srcdir); pwd`; export s; \
1609 $(SET_LIB_PATH) \
1610 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1611 else \
1612 true; \
1613 fi
1614
1615 .PHONY: install-gcc-cross
1616 install-gcc-cross:
1617 @if [ -f ./gcc/Makefile ] ; then \
1618 r=`pwd`; export r; \
1619 s=`cd $(srcdir); pwd`; export s; \
1620 $(SET_LIB_PATH) \
1621 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \
1622 else \
1623 true; \
1624 fi
1625 # EXPERIMENTAL STUFF
1626 # This rule is used to install the modules which use FLAGS_TO_PASS.
1627 # To build a target install-X means to cd to X and make install.
1628 .PHONY: install-dosrel
1629 install-dosrel: installdirs info
1630 @dir=`echo $@ | sed -e 's/install-//'`; \
1631 if [ -f ./$${dir}/Makefile ] ; then \
1632 r=`pwd`; export r; \
1633 s=`cd $(srcdir); pwd`; export s; \
1634 $(SET_LIB_PATH) \
1635 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1636 else \
1637 true; \
1638 fi
1639
1640 install-dosrel-fake:
1641
1642
1643 # This is a list of inter-dependencies among modules.
1644 all-apache:
1645 all-ash:
1646 all-autoconf: all-m4 all-texinfo
1647 all-automake: all-m4 all-texinfo
1648 all-bash:
1649 all-bfd: all-libiberty all-intl
1650 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
1651 all-bison: all-texinfo
1652 # start-sanitize-java
1653 all-target-boehm-gc: configure-target-boehm-gc
1654 # end-sanitize-java
1655 all-byacc:
1656 all-bzip2:
1657 # start-sanitize-cygnus
1658 all-cgen: all-libiberty
1659 # These two have dependencies on cgen, and while this section is alphabetically
1660 # sorted, I wish to keep these together until things settle.
1661 all-opcodes: all-cgen
1662 all-sim: all-cgen
1663 # end-sanitize-cygnus
1664 all-cvssrc:
1665 configure-target-cygmon: $(ALL_GCC)
1666 all-target-cygmon: configure-target-cygmon all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-libstub
1667 all-db:
1668 all-dejagnu: all-tcl all-expect all-tk
1669 all-diff: all-libiberty
1670 all-emacs:
1671 all-emacs19: all-bison all-byacc
1672 all-etc:
1673 configure-target-examples: $(ALL_GCC)
1674 all-target-examples: configure-target-examples
1675 all-expect: all-tcl all-tk
1676 all-fileutils: all-libiberty
1677 all-findutils:
1678 all-find:
1679 all-flex: all-libiberty all-bison all-byacc
1680 # start-sanitize-cygnus
1681 all-flexlm:
1682 # end-sanitize-cygnus
1683 all-gas: all-libiberty all-opcodes all-bfd all-intl
1684 all-gash: all-tcl
1685 all-gawk:
1686 ALL_GCC = all-gcc
1687 all-gcc: all-bison all-byacc all-binutils all-gas all-ld
1688 all-bootstrap: all-libiberty all-bison all-byacc all-binutils all-gas all-ld
1689 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui
1690 # start-sanitize-ide
1691 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui all-libide all-libidetcl
1692 # end-sanitize-ide
1693 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1694 all-gettext:
1695 all-gnuserv:
1696 configure-target-gperf: $(ALL_GCC)
1697 all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++
1698 all-gprof: all-libiberty all-bfd all-opcodes all-intl
1699 all-grez: all-libiberty all-bfd all-opcodes
1700 all-gui: all-gdb all-libproc all-target-librx
1701 all-guile:
1702 all-gzip: all-libiberty
1703 all-hello: all-libiberty
1704 # start-sanitize-ide
1705 all-ilu:
1706 # end-sanitize-ide
1707 all-indent:
1708 all-inet: all-tcl all-send-pr all-perl
1709 all-intl:
1710 all-ispell: all-emacs19
1711 all-itcl: all-tcl all-tk
1712 # start-sanitize-ide
1713 all-jstools: all-tcl all-tk all-tix all-libgui all-libide all-libidetcl
1714 # end-sanitize-ide
1715 all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
1716 # start-sanitize-dsp
1717 all-target-libdsp: configure-target-libdsp configure-target-newlib
1718 configure-target-libdsp: $(ALL_GCC)
1719 # end-sanitize-dsp
1720 configure-target-libg++: $(ALL_GCC) configure-target-librx
1721 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++
1722 configure-target-libgloss: $(ALL_GCC)
1723 all-target-libgloss: configure-target-libgloss configure-target-newlib
1724 configure-target-libio: $(ALL_GCC)
1725 all-target-libio: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1726 check-target-libio: all-target-libstdc++
1727 all-libgui: all-tcl all-tk all-itcl
1728 all-libiberty:
1729 # start-sanitize-ide
1730 all-libide: all-ilu
1731 all-libidetcl: all-tcl all-tk all-itcl all-ilu all-libgui all-libide
1732 # end-sanitize-ide
1733 # start-sanitize-java
1734 configure-target-libjava: $(ALL_GCC) configure-target-boehm-gc configure-target-qthreads
1735 all-target-libjava: configure-target-libjava all-gcc all-target-newlib all-target-boehm-gc all-target-qthreads
1736 # end-sanitize-java
1737 configure-target-librx: $(ALL_GCC) configure-target-newlib
1738 all-target-librx: configure-target-librx
1739 configure-target-libstdc++: $(ALL_GCC)
1740 all-target-libstdc++: configure-target-libstdc++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
1741 configure-target-libstub: $(ALL_GCC)
1742 all-target-libstub: configure-target-libstub
1743 all-libtool:
1744 all-m4: all-libiberty
1745 all-make: all-libiberty
1746 all-mmalloc:
1747 configure-target-newlib: $(ALL_GCC)
1748 all-target-newlib: configure-target-newlib all-binutils all-gas all-gcc
1749 all-opcodes: all-bfd all-libiberty
1750 all-patch: all-libiberty
1751 all-perl:
1752 all-prms: all-libiberty
1753 # start-sanitize-java
1754 all-target-qthreads: configure-target-qthreads
1755 # end-sanitize-java
1756 all-rcs:
1757 all-readline:
1758 all-recode: all-libiberty
1759 all-sed: all-libiberty
1760 all-send-pr: all-prms
1761 all-shellutils:
1762 all-sim: all-libiberty all-bfd all-opcodes all-readline
1763 # start-sanitize-cygnus
1764 all-snavigator: all-tcl all-tk all-tix all-itcl all-db all-grep all-flexlm all-libgui
1765 # end-sanitize-cygnus
1766 all-tar: all-libiberty
1767 all-tcl:
1768 all-tclX: all-tcl all-tk
1769 all-tk: all-tcl
1770 all-texinfo: all-libiberty
1771 all-textutils:
1772 all-tgas: all-libiberty all-bfd all-opcodes
1773 all-time:
1774 all-tix: all-tcl all-tk
1775 # start-sanitize-ide
1776 all-vmake: all-tcl all-tk all-itcl all-tix all-libgui all-libide all-libidetcl
1777 # end-sanitize-ide
1778 all-wdiff:
1779 all-target-winsup: all-target-newlib all-target-libiberty all-target-libio configure-target-winsup
1780 configure-target-winsup: configure-target-newlib
1781 all-uudecode: all-libiberty
1782 configure-target-libiberty: $(ALL_GCC)
1783 all-target-libiberty: configure-target-libiberty all-gcc all-ld all-target-newlib
1784 all-target: $(ALL_TARGET_MODULES)
1785 install-target: $(INSTALL_TARGET_MODULES)
1786 # start-sanitize-gdbtk
1787 install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
1788 #end-sanitize-gdbtk
1789 ### other supporting targets
1790
1791 MAKEDIRS= \
1792 $(prefix) \
1793 $(exec_prefix)
1794 .PHONY: installdirs
1795 installdirs: mkinstalldirs
1796 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1797
1798 dir.info: do-install-info
1799 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1800 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1801 mv -f dir.info.new dir.info ; \
1802 else true ; \
1803 fi
1804
1805 dist:
1806 @echo "Building a full distribution of this tree isn't done"
1807 @echo "via 'make dist'. Check out the etc/ subdirectory"
1808
1809 etags tags: TAGS
1810
1811 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1812 # ability to use several tags files at once, so there is probably no need
1813 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1814 # (if we felt like it) have this Makefile write a piece of elisp which
1815 # the user could load to tell emacs19 where all the TAGS files we just
1816 # built are.
1817 TAGS: do-TAGS
1818
1819 # with the gnu make, this is done automatically.
1820
1821 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
1822 $(SHELL) ./config.status
1823
1824 #
1825 # Support for building net releases
1826
1827 # Files in devo used in any net release.
1828 # ChangeLog omitted because it may refer to files which are not in this
1829 # distribution (perhaps it would be better to include it anyway).
1830 DEVO_SUPPORT= README Makefile.in configure configure.in \
1831 config.guess config.if config.sub config move-if-change \
1832 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1833 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1834 mkinstalldirs ltconfig ltmain.sh missing ylwrap
1835
1836 # Files in devo/etc used in any net release.
1837 # ChangeLog omitted because it may refer to files which are not in this
1838 # distribution (perhaps it would be better to include it anyway).
1839 ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
1840 make-stds.texi standards.info*
1841
1842 # When you use `make setup-dirs' or `make taz' you should always redefine
1843 # this macro.
1844 SUPPORT_FILES = list-of-support-files-for-tool-in-question
1845
1846 .PHONY: taz
1847
1848 taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
1849 texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1850 # Take out texinfo from a few places.
1851 sed -e '/^all\.normal: /s/\all-texinfo //' \
1852 -e '/^ install-texinfo /d' \
1853 <Makefile.in >tmp
1854 mv -f tmp Makefile.in
1855 #
1856 $(start-sanitize-Sanitize)
1857 @if [ -f .Sanitize ] ; then echo "RUN Sanitize FIRST!" ; false ; fi ;
1858 $(end-sanitize-Sanitize)
1859 ./configure sun4
1860 [ -z "$(CONFIGURE_TARGET_MODULES)" ] \
1861 || $(MAKE) $(CONFIGURE_TARGET_MODULES) ALL_GCC="" \
1862 CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
1863 # Make links, and run "make diststuff" or "make info" when needed.
1864 rm -rf proto-toplev ; mkdir proto-toplev
1865 set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1866 for d in $$dirs ; do \
1867 if [ -d $$d ]; then \
1868 if [ ! -f $$d/Makefile ] ; then true ; \
1869 elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
1870 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
1871 elif grep '^info:' $$d/Makefile >/dev/null ; then \
1872 (cd $$d ; $(MAKE) info ) || exit 1 ; \
1873 fi ; \
1874 if [ -d $$d/proto-$$d.dir ]; then \
1875 ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1876 else \
1877 ln -s ../$$d proto-toplev/$$d ; \
1878 fi ; \
1879 else ln -s ../$$d proto-toplev/$$d ; fi ; \
1880 done
1881 cd etc ; $(MAKE) info
1882 $(MAKE) distclean
1883 #
1884 mkdir proto-toplev/etc
1885 (cd proto-toplev/etc; \
1886 for i in $(ETC_SUPPORT); do \
1887 ln -s ../../etc/$$i . ; \
1888 done)
1889 #
1890 # Take out texinfo from configurable dirs
1891 rm proto-toplev/configure.in
1892 sed -e '/^host_tools=/s/texinfo //' \
1893 <configure.in >proto-toplev/configure.in
1894 #
1895 mkdir proto-toplev/texinfo
1896 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
1897 ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
1898 ln -s ../../texinfo/lgpl.texinfo proto-toplev/texinfo/
1899 if test -r texinfo/util/tex3patch ; then \
1900 mkdir proto-toplev/texinfo/util && \
1901 ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
1902 else true; fi
1903 chmod -R og=u . || chmod og=u `find . -print`
1904 if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1905 ver=`sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'`; \
1906 else \
1907 ver=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
1908 fi; \
1909 $(MAKE) -f Makefile.in do-tar-gz TOOL=$(TOOL) VER=$$ver
1910
1911 do-tar-gz:
1912 echo "==> Making $(TOOL)-$(VER).tar.gz"
1913 -rm -f $(TOOL)-$(VER)
1914 ln -s proto-toplev $(TOOL)-$(VER)
1915 tar cfh $(TOOL)-$(VER).tar $(TOOL)-$(VER)
1916 $(GZIPPROG) -v -9 $(TOOL)-$(VER).tar
1917
1918 TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1919 DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
1920
1921 .PHONY: gas.tar.gz
1922 GAS_SUPPORT_DIRS= bfd include libiberty opcodes intl setup.com makefile.vms
1923 gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
1924 $(MAKE) -f Makefile.in taz TOOL=gas \
1925 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
1926
1927 # The FSF "binutils" release includes gprof and ld.
1928 .PHONY: binutils.tar.gz
1929 BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms
1930 binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
1931 $(MAKE) -f Makefile.in taz TOOL=binutils \
1932 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
1933
1934 .PHONY: gas+binutils.tar.gz
1935 GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
1936 gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
1937 $(MAKE) -f Makefile.in taz TOOL=gas \
1938 SUPPORT_FILES="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"
1939
1940 .PHONY: libg++.tar.gz
1941 LIBGXX_SUPPORT_DIRS=include libstdc++ libio librx libiberty
1942 libg++.tar.gz: $(DIST_SUPPORT) libg++
1943 $(MAKE) -f Makefile.in taz TOOL=libg++ \
1944 SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)"
1945
1946 GNATS_SUPPORT_DIRS=include libiberty send-pr
1947 gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
1948 $(MAKE) -f Makefile.in taz TOOL=gnats \
1949 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
1950
1951 .PHONY: gdb.tar.gz
1952 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl
1953 GDBTK_SUPPORT_DIRS= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi`
1954 gdb.tar.gz: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
1955 $(MAKE) -f Makefile.in taz TOOL=gdb \
1956 SUPPORT_FILES="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
1957
1958 .PHONY: newlib.tar.gz
1959 NEWLIB_SUPPORT_DIRS=libgloss
1960 # taz configures for the sun4 target which won't configure newlib.
1961 # We need newlib configured so that the .info files are made.
1962 # Unfortunately, it is not enough to just configure newlib separately:
1963 # taz will build the .info files but since SUBDIRS won't contain newlib,
1964 # distclean won't be run (leaving Makefile, config.status, and the tmp files
1965 # used in building the .info files, eg: *.def, *.ref).
1966 # The problem isn't solvable however without a lot of extra work because
1967 # target libraries are built in subdir $(target_alias) which gets nuked during
1968 # the make distclean. For now punt on the issue of shipping newlib info files
1969 # with newlib net releases and wait for a day when some native target (sun4?)
1970 # supports newlib (if only minimally).
1971 newlib.tar.gz: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
1972 $(MAKE) -f Makefile.in taz TOOL=newlib \
1973 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
1974 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
1975
1976 .NOEXPORT:
1977 MAKEOVERRIDES=
1978
1979 # end of Makefile.in
This page took 0.068323 seconds and 5 git commands to generate.