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