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