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