* ld.texinfo (Simple Example): Rewrite a few things as suggested
[deliverable/binutils-gdb.git] / Makefile.in
... / ...
CommitLineData
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
21srcdir = .
22
23prefix = /usr/local
24exec_prefix = $(prefix)
25
26bindir=${exec_prefix}/bin
27sbindir=${exec_prefix}/sbin
28libexecdir=${exec_prefix}/libexec
29datadir=${prefix}/share
30sysconfdir=${prefix}/etc
31sharedstatedir=${prefix}/com
32localstatedir=${prefix}/var
33libdir=${exec_prefix}/lib
34includedir=${prefix}/include
35oldincludedir=/usr/include
36infodir=${prefix}/info
37mandir=${prefix}/man
38
39tooldir = $(exec_prefix)/$(target)
40
41program_transform_name =
42
43man1dir = $(mandir)/man1
44man2dir = $(mandir)/man2
45man3dir = $(mandir)/man3
46man4dir = $(mandir)/man4
47man5dir = $(mandir)/man5
48man6dir = $(mandir)/man6
49man7dir = $(mandir)/man7
50man8dir = $(mandir)/man8
51man9dir = $(mandir)/man9
52GDB_NLM_DEPS =
53
54SHELL = /bin/sh
55
56# INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
57# cygwin32 host.
58INSTALL_PROGRAM_ARGS =
59
60INSTALL = $(SHELL) $$s/install-sh -c
61INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
62INSTALL_SCRIPT = $(INSTALL)
63INSTALL_DATA = $(INSTALL) -m 644
64
65INSTALL_DOSREL = install-dosrel-fake
66
67AS = as
68AR = ar
69AR_FLAGS = rc
70CC = 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.
74HOST_CC = $(CC_FOR_BUILD)
75HOST_PREFIX =
76HOST_PREFIX_1 = loser-
77
78# These flag values are normally overridden by the configure script.
79CFLAGS = -g
80CXXFLAGS = -g -O2
81
82LIBCFLAGS = $(CFLAGS)
83CFLAGS_FOR_TARGET = $(CFLAGS)
84LDFLAGS_FOR_TARGET =
85LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
86PICFLAG =
87PICFLAG_FOR_TARGET =
88
89# start-sanitize-chill
90CHILLFLAGS = $(CFLAGS)
91CHILL_LIB = -lchill
92# end-sanitize-chill
93CXX = c++
94
95# Use -O2 to stress test the compiler.
96LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
97CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
98LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
99
100RANLIB = ranlib
101
102DLLTOOL = dlltool
103WINDRES = windres
104
105NM = nm
106
107LD = ld
108
109# Not plain GZIP, since gzip looks there for extra command-line options.
110GZIPPROG = gzip
111
112# These values are substituted by configure.
113DEFAULT_YACC = yacc
114DEFAULT_LEX = lex
115
116BISON = `if [ -f $$r/bison/bison ] ; then \
117 echo $$r/bison/bison -L $$s/bison/ ; \
118 else \
119 echo bison ; \
120 fi`
121
122YACC = `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
130LEX = `if [ -f $$r/flex/flex ] ; \
131 then echo $$r/flex/flex ; \
132 else echo ${DEFAULT_LEX} ; fi`
133
134M4 = `if [ -f $$r/m4/m4 ] ; \
135 then echo $$r/m4/m4 ; \
136 else echo m4 ; fi`
137
138MAKEINFO = `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.
145MAKEINFOFLAGS =
146
147EXPECT = `if [ -f $$r/expect/expect ] ; \
148 then echo $$r/expect/expect ; \
149 else echo expect ; fi`
150
151RUNTEST = `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.
158CC_FOR_BUILD = $(CC)
159CXX_FOR_BUILD = $(CXX)
160
161SUBDIRS = "this is set via configure, don't edit this"
162OTHERS =
163
164# This is set by the configure script to the list of directories which
165# should be built using the target tools.
166TARGET_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.
170TARGET_SUBDIR = .
171
172# This is set by the configure script to the arguments passed to configure.
173CONFIG_ARGUMENTS =
174
175# This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
176# was used.
177SET_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.
181RPATH_ENVVAR = LD_LIBRARY_PATH
182
183# configure.in sets SET_LIB_PATH to this if --enable-shared was used.
184REALLY_SET_LIB_PATH = \
185 $(RPATH_ENVVAR)=$$r/bfd:$$r/opcodes:$$$(RPATH_ENVVAR); \
186 export $(RPATH_ENVVAR);
187
188ALL = all.normal
189INSTALL_TARGET = installdirs \
190 install-gcc \
191 $(INSTALL_MODULES) \
192 $(INSTALL_TARGET_MODULES) \
193 $(INSTALL_X11_MODULES) \
194 $(INSTALL_DOSREL)
195
196
197CC_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.
220GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/
221
222# start-sanitize-chill
223CHILL_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
236CXX_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
255AS_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
266LD_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
277DLLTOOL_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
288WINDRES_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
299AR_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
310RANLIB_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
321NM_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.
337BASE_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.
401EXTRA_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
412FLAGS_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#
422X11_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.
430EXTRA_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
446TARGET_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.
454EXTRA_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
477GCC_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).
481ALL_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.
563NATIVE_CHECK_MODULES = \
564 check-bison \
565 check-byacc \
566 check-flex
567
568CROSS_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
638CHECK_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.
647INSTALL_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).
724ALL_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).
737CHECK_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).
749INSTALL_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).
762ALL_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 all-target-libjava \
776 all-target-boehm-gc
777
778# This is a list of the configure targets for all of the modules which
779# are compiled using the target tools.
780CONFIGURE_TARGET_MODULES = \
781 configure-target-libio \
782 configure-target-libstdc++ \
783 configure-target-librx \
784 configure-target-libg++ \
785 configure-target-newlib \
786 configure-target-winsup \
787 configure-target-libgloss \
788 configure-target-libiberty \
789 configure-target-gperf \
790 configure-target-examples \
791 configure-target-libstub \
792 configure-target-cygmon \
793 configure-target-libjava \
794 configure-target-boehm-gc
795
796# This is a list of the check targets for all of the modules which are
797# compiled using $(TARGET_FLAGS_TO_PASS).
798CHECK_TARGET_MODULES = \
799 check-target-libio \
800 check-target-libstdc++ \
801 check-target-libg++ \
802 check-target-newlib \
803 check-target-winsup \
804 check-target-libiberty \
805 check-target-gperf \
806 check-target-libjava \
807 check-target-boehm-gc
808
809# This is a list of the install targets for all of the modules which are
810# compiled using $(TARGET_FLAGS_TO_PASS).
811INSTALL_TARGET_MODULES = \
812 install-target-libio \
813 install-target-libstdc++ \
814 install-target-libg++ \
815 install-target-newlib \
816 install-target-winsup \
817 install-target-libgloss \
818 install-target-libiberty \
819 install-target-gperf \
820 install-target-libjava \
821 install-target-boehm-gc
822
823# This is a list of the targets for which we can do a clean-{target}.
824CLEAN_MODULES = \
825 clean-apache \
826 clean-ash \
827 clean-autoconf \
828 clean-automake \
829 clean-bash \
830 clean-bfd \
831 clean-binutils \
832 clean-bison \
833 clean-byacc \
834 clean-cvssrc \
835 clean-db \
836 clean-dejagnu \
837 clean-diff \
838 clean-dosutils \
839 clean-etc \
840 clean-fileutils \
841 clean-findutils \
842 clean-find \
843 clean-flex \
844 clean-gas \
845 clean-gawk \
846 clean-gettext \
847 clean-gnuserv \
848 clean-gprof \
849 clean-grep \
850 clean-grez \
851 clean-gzip \
852 clean-hello \
853 $(start-sanitize-ide) \
854 clean-ilu \
855 $(end-sanitize-ide) \
856 clean-indent \
857 clean-inet \
858 clean-intl \
859 clean-ispell \
860 clean-itcl \
861 $(start-sanitize-ide) \
862 clean-jstools \
863 $(end-sanitize-ide) \
864 clean-ld \
865 clean-libgui \
866 clean-libiberty \
867 $(start-sanitize-ide) \
868 clean-libide \
869 clean-libidetcl \
870 $(end-sanitize-ide) \
871 clean-libtool \
872 clean-m4 \
873 clean-make \
874 clean-mmalloc \
875 clean-opcodes \
876 clean-patch \
877 clean-perl \
878 clean-prms \
879 clean-rcs \
880 clean-readline \
881 clean-release \
882 clean-recode \
883 clean-sed \
884 clean-send-pr \
885 clean-shellutils \
886 clean-sim \
887 clean-snavigator \
888 clean-tar \
889 clean-tcl \
890 clean-texinfo \
891 clean-textutils \
892 clean-tgas \
893 clean-time \
894 clean-uudecode \
895 $(start-sanitize-ide) \
896 clean-vmake \
897 $(end-sanitize-ide) \
898 clean-wdiff
899
900# All of the target modules that can be cleaned
901CLEAN_TARGET_MODULES = \
902 clean-target-libio \
903 clean-target-libstdc++ \
904 clean-target-librx \
905 clean-target-libg++ \
906 clean-target-newlib \
907 clean-target-winsup \
908 clean-target-libgloss \
909 clean-target-libiberty \
910 clean-target-gperf \
911 clean-target-examples \
912 clean-target-libstub \
913 clean-target-cygmon \
914 clean-target-libjava \
915 clean-target-boehm-gc
916
917# All of the x11 modules that can be cleaned
918CLEAN_X11_MODULES = \
919 clean-emacs \
920 clean-emacs19 \
921 clean-gdb \
922 clean-expect \
923 clean-gash \
924 clean-guile \
925 clean-tclX \
926 clean-tk \
927 clean-tix
928
929# The first rule in the file had better be this one. Don't put any above it.
930all: all.normal
931.PHONY: all
932
933# The target built for a native build.
934.PHONY: all.normal
935all.normal: \
936 $(ALL_MODULES) \
937 $(ALL_X11_MODULES) \
938 $(ALL_TARGET_MODULES) \
939 all-gcc
940
941# Do a target for all the subdirectories. A ``make do-X'' will do a
942# ``make X'' in all subdirectories (because, in general, there is a
943# dependency (below) of X upon do-X, a ``make X'' will also do this,
944# but it may do additional work as well).
945# This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
946# because it is so large that it can easily overflow the command line
947# length limit on some systems.
948DO_X = \
949 do-clean \
950 do-distclean \
951 do-dvi \
952 do-info \
953 do-install-info \
954 do-installcheck \
955 do-mostlyclean \
956 do-maintainer-clean \
957 do-TAGS
958.PHONY: $(DO_X)
959$(DO_X):
960 @target=`echo $@ | sed -e 's/^do-//'`; \
961 r=`pwd`; export r; \
962 s=`cd $(srcdir); pwd`; export s; \
963 $(SET_LIB_PATH) \
964 for i in $(SUBDIRS) -dummy-; do \
965 if [ -f ./$$i/Makefile ]; then \
966 case $$i in \
967 gcc) \
968 for flag in $(EXTRA_GCC_FLAGS); do \
969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
970 done; \
971 ;; \
972 *) \
973 for flag in $(EXTRA_HOST_FLAGS); do \
974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
975 done; \
976 ;; \
977 esac ; \
978 export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
979 if (cd ./$$i; \
980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
982 "RANLIB=$${RANLIB}" \
983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
984 $${target}); \
985 then true; else exit 1; fi; \
986 else true; fi; \
987 done
988 @target=`echo $@ | sed -e 's/^do-//'`; \
989 r=`pwd`; export r; \
990 s=`cd $(srcdir); pwd`; export s; \
991 $(SET_LIB_PATH) \
992 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
993 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
994 for flag in $(EXTRA_TARGET_FLAGS); do \
995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
996 done; \
997 export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
998 if (cd $(TARGET_SUBDIR)/$$i; \
999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1001 "RANLIB=$${RANLIB}" \
1002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1003 $${target}); \
1004 then true; else exit 1; fi; \
1005 else true; fi; \
1006 done
1007
1008# Here are the targets which correspond to the do-X targets.
1009
1010.PHONY: info installcheck dvi install-info
1011.PHONY: clean distclean mostlyclean maintainer-clean realclean
1012.PHONY: local-clean local-distclean local-maintainer-clean
1013info: do-info
1014installcheck: do-installcheck
1015dvi: do-dvi
1016
1017# Make sure makeinfo is built before we do a `make info'.
1018do-info: all-texinfo
1019
1020install-info: do-install-info dir.info
1021 s=`cd $(srcdir); pwd`; export s; \
1022 if [ -f dir.info ] ; then \
1023 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
1024 else true ; fi
1025
1026local-clean:
1027 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
1028
1029local-distclean:
1030 -rm -f Makefile config.status config.cache
1031 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1032 rm -rf $(TARGET_SUBDIR); \
1033 else true; fi
1034
1035local-maintainer-clean:
1036 @echo "This command is intended for maintainers to use;"
1037 @echo "it deletes files that may require special tools to rebuild."
1038
1039clean: do-clean local-clean
1040mostlyclean: do-mostlyclean local-clean
1041distclean: do-distclean local-clean local-distclean
1042maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1043maintainer-clean: local-distclean
1044realclean: maintainer-clean
1045
1046# This rule is used to clean specific modules.
1047.PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1048$(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1049 @dir=`echo $@ | sed -e 's/clean-//'`; \
1050 if [ -f ./$${dir}/Makefile ] ; then \
1051 r=`pwd`; export r; \
1052 s=`cd $(srcdir); pwd`; export s; \
1053 $(SET_LIB_PATH) \
1054 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1055 else \
1056 true; \
1057 fi
1058
1059.PHONY: $(CLEAN_TARGET_MODULES)
1060$(CLEAN_TARGET_MODULES):
1061 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1062 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1063 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1064 r=`pwd`; export r; \
1065 s=`cd $(srcdir); pwd`; export s; \
1066 $(SET_LIB_PATH) \
1067 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1068 else \
1069 true; \
1070 fi
1071
1072clean-target: $(CLEAN_TARGET_MODULES)
1073
1074# Check target.
1075
1076.PHONY: check
1077check: $(CHECK_MODULES) \
1078 $(CHECK_TARGET_MODULES) \
1079 $(CHECK_X11_MODULES) \
1080 check-gcc
1081
1082# Installation targets.
1083
1084.PHONY: install uninstall source-vault binary-vault vault-install
1085install: $(INSTALL_TARGET)
1086
1087uninstall:
1088 @echo "the uninstall target is not supported in this tree"
1089
1090source-vault:
1091 $(MAKE) -f ./release/Build-A-Release \
1092 host=$(host_alias) source-vault
1093
1094binary-vault:
1095 $(MAKE) -f ./release/Build-A-Release \
1096 host=$(host_alias) target=$(target_alias)
1097
1098vault-install:
1099 @if [ -f ./release/vault-install ] ; then \
1100 ./release/vault-install $(host_alias) $(target_alias) ; \
1101 else \
1102 true ; \
1103 fi
1104
1105.PHONY: install.all
1106install.all: install-no-fixedincludes
1107 @if [ -f ./gcc/Makefile ] ; then \
1108 r=`pwd` ; export r ; \
1109 $(SET_LIB_PATH) \
1110 (cd ./gcc; \
1111 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1112 else \
1113 true ; \
1114 fi
1115
1116# inet-install is used because the I*Net wants DejaGNU installed but
1117# not built. Similarly, gzip is built but not installed.
1118inet-install:
1119 $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1120
1121# install-no-fixedincludes is used because Cygnus can not distribute
1122# the fixed header files.
1123.PHONY: install-no-fixedincludes
1124install-no-fixedincludes: \
1125 installdirs \
1126 $(INSTALL_MODULES) \
1127 $(INSTALL_TARGET_MODULES) \
1128 $(INSTALL_X11_MODULES) \
1129 gcc-no-fixedincludes
1130
1131# Install the gcc headers files, but not the fixed include files,
1132# which Cygnus is not allowed to distribute. This rule is very
1133# dependent on the workings of the gcc Makefile.in.
1134.PHONY: gcc-no-fixedincludes
1135gcc-no-fixedincludes:
1136 @if [ -f ./gcc/Makefile ]; then \
1137 rm -rf gcc/tmp-include; \
1138 mv gcc/include gcc/tmp-include 2>/dev/null; \
1139 mkdir gcc/include; \
1140 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1141 touch gcc/stmp-fixinc gcc/include/fixed; \
1142 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1143 r=`pwd`; export r; \
1144 s=`cd $(srcdir); pwd` ; export s; \
1145 $(SET_LIB_PATH) \
1146 (cd ./gcc; \
1147 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1148 rm -rf gcc/include; \
1149 mv gcc/tmp-include gcc/include 2>/dev/null; \
1150 else true; fi
1151
1152# start-sanitize-ide
1153# Install Foundry. Avoid installing a bunch of stuff we don't need.
1154install-foundry:
1155 mods="$(INSTALL_MODULES)"; \
1156 x11_mods="$(INSTALL_X11_MODULES)"; \
1157 for d in install-tcl install-tk install-itcl install-tix install-ilu; do \
1158 mods="`echo $${mods} | sed -e "s/$$d//"`"; \
1159 x11_mods="`echo $${x11_mods} | sed -e "s/$$d//"`"; \
1160 done; \
1161 $(MAKE) INSTALL_MODULES="$${mods}" INSTALL_X11_MODULES="$${x11_mods}" install
1162 for d in tcl tk itcl tix ilu; do \
1163 if [ -f $$d/Makefile ]; then \
1164 r=`pwd`; export r; \
1165 s=`cd $(srcdir); pwd`; export s; \
1166 $(SET_LIB_PATH) \
1167 (cd $$d; $(MAKE) $(FLAGS_TO_PASS) install-minimal); \
1168 else \
1169 true; \
1170 fi; \
1171 done
1172# end-sanitize-ide
1173
1174# This rule is used to build the modules which use FLAGS_TO_PASS. To
1175# build a target all-X means to cd to X and make all.
1176#
1177# all-gui, and all-libproc are handled specially because
1178# they are still experimental, and if they fail to build, that
1179# shouldn't stop "make all".
1180.PHONY: $(ALL_MODULES) all-gui all-libproc
1181$(ALL_MODULES) all-gui all-libproc:
1182 @dir=`echo $@ | sed -e 's/all-//'`; \
1183 if [ -f ./$${dir}/Makefile ] ; then \
1184 r=`pwd`; export r; \
1185 s=`cd $(srcdir); pwd`; export s; \
1186 $(SET_LIB_PATH) \
1187 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1188 else \
1189 true; \
1190 fi
1191
1192# These rules are used to check the modules which use FLAGS_TO_PASS.
1193# To build a target check-X means to cd to X and make check. Some
1194# modules are only tested in a native toolchain.
1195
1196.PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1197$(NATIVE_CHECK_MODULES):
1198 @if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
1199 dir=`echo $@ | sed -e 's/check-//'`; \
1200 if [ -f ./$${dir}/Makefile ] ; then \
1201 r=`pwd`; export r; \
1202 s=`cd $(srcdir); pwd`; export s; \
1203 $(SET_LIB_PATH) \
1204 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1205 else \
1206 true; \
1207 fi; \
1208 fi
1209
1210$(CROSS_CHECK_MODULES):
1211 @dir=`echo $@ | sed -e 's/check-//'`; \
1212 if [ -f ./$${dir}/Makefile ] ; then \
1213 r=`pwd`; export r; \
1214 s=`cd $(srcdir); pwd`; export s; \
1215 $(SET_LIB_PATH) \
1216 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1217 else \
1218 true; \
1219 fi
1220
1221# This rule is used to install the modules which use FLAGS_TO_PASS.
1222# To build a target install-X means to cd to X and make install.
1223.PHONY: $(INSTALL_MODULES)
1224$(INSTALL_MODULES): installdirs
1225 @dir=`echo $@ | sed -e 's/install-//'`; \
1226 if [ -f ./$${dir}/Makefile ] ; then \
1227 r=`pwd`; export r; \
1228 s=`cd $(srcdir); pwd`; export s; \
1229 $(SET_LIB_PATH) \
1230 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1231 else \
1232 true; \
1233 fi
1234
1235# This rule is used to configure the modules which are built with the
1236# target tools.
1237.PHONY: $(CONFIGURE_TARGET_MODULES)
1238$(CONFIGURE_TARGET_MODULES):
1239 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1240 if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
1241 r=`pwd`; export r; \
1242 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1243 if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1244 if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1245 if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1246 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1247 else \
1248 echo "Multilibs changed for $${dir}, reconfiguring"; \
1249 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1250 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1251 fi; \
1252 else \
1253 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1254 fi; \
1255 fi; \
1256 fi; exit 0 # break command into two pieces
1257 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1258 if [ ! -d $(TARGET_SUBDIR) ]; then \
1259 true; \
1260 elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1261 true; \
1262 elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1263 if [ -d $(srcdir)/$${dir} ]; then \
1264 [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
1265 r=`pwd`; export r; \
1266 s=`cd $(srcdir); pwd`; export s; \
1267 $(SET_LIB_PATH) \
1268 AR="$(AR_FOR_TARGET)"; export AR; \
1269 AS="$(AS_FOR_TARGET)"; export AS; \
1270 CC="$(CC_FOR_TARGET)"; export CC; \
1271 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1272 CXX="$(CXX_FOR_TARGET)"; export CXX; \
1273 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1274 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1275 LD="$(LD_FOR_TARGET)"; export LD; \
1276 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1277 NM="$(NM_FOR_TARGET)"; export NM; \
1278 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1279 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1280 echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
1281 cd $(TARGET_SUBDIR)/$${dir}; \
1282 case $(srcdir) in \
1283 /*) \
1284 topdir=$(srcdir) ;; \
1285 *) \
1286 case "$(TARGET_SUBDIR)" in \
1287 .) topdir="../$(srcdir)" ;; \
1288 *) topdir="../../$(srcdir)" ;; \
1289 esac ;; \
1290 esac; \
1291 if [ "$(srcdir)" = "." ] ; then \
1292 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1293 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1294 if [ -f Makefile ]; then \
1295 if $(MAKE) distclean; then \
1296 true; \
1297 else \
1298 exit 1; \
1299 fi; \
1300 else \
1301 true; \
1302 fi; \
1303 else \
1304 exit 1; \
1305 fi; \
1306 else \
1307 true; \
1308 fi; \
1309 srcdiroption="--srcdir=."; \
1310 libsrcdir="."; \
1311 else \
1312 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1313 libsrcdir="$$s/$${dir}"; \
1314 fi; \
1315 if [ -f $${libsrcdir}/configure ] ; then \
1316 $(SHELL) $${libsrcdir}/configure \
1317 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1318 --with-target-subdir="$(TARGET_SUBDIR)"; \
1319 else \
1320 $(SHELL) $$s/configure \
1321 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1322 --with-target-subdir="$(TARGET_SUBDIR)"; \
1323 fi; \
1324 else \
1325 true; \
1326 fi; \
1327 else \
1328 true; \
1329 fi
1330
1331# This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1332# To build a target all-X means to cd to X and make all.
1333.PHONY: $(ALL_TARGET_MODULES)
1334$(ALL_TARGET_MODULES):
1335 @dir=`echo $@ | sed -e 's/all-target-//'`; \
1336 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1337 r=`pwd`; export r; \
1338 s=`cd $(srcdir); pwd`; export s; \
1339 $(SET_LIB_PATH) \
1340 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1341 else \
1342 true; \
1343 fi
1344
1345# This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1346# To build a target install-X means to cd to X and make install.
1347.PHONY: $(CHECK_TARGET_MODULES)
1348$(CHECK_TARGET_MODULES):
1349 @dir=`echo $@ | sed -e 's/check-target-//'`; \
1350 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1351 r=`pwd`; export r; \
1352 s=`cd $(srcdir); pwd`; export s; \
1353 $(SET_LIB_PATH) \
1354 (cd $(TARGET_SUBDIR)/$${dir};$(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1355 else \
1356 true; \
1357 fi
1358
1359# This rule is used to install the modules which use
1360# TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1361# and make install.
1362.PHONY: $(INSTALL_TARGET_MODULES)
1363$(INSTALL_TARGET_MODULES): installdirs
1364 @dir=`echo $@ | sed -e 's/install-target-//'`; \
1365 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1366 r=`pwd`; export r; \
1367 s=`cd $(srcdir); pwd`; export s; \
1368 $(SET_LIB_PATH) \
1369 (cd $(TARGET_SUBDIR)/$${dir}; \
1370 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1371 else \
1372 true; \
1373 fi
1374
1375# This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1376# To build a target all-X means to cd to X and make all.
1377.PHONY: $(ALL_X11_MODULES)
1378$(ALL_X11_MODULES):
1379 @dir=`echo $@ | sed -e 's/all-//'`; \
1380 if [ -f ./$${dir}/Makefile ] ; then \
1381 r=`pwd`; export r; \
1382 s=`cd $(srcdir); pwd`; export s; \
1383 $(SET_LIB_PATH) \
1384 (cd $${dir}; \
1385 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1386 else \
1387 true; \
1388 fi
1389
1390# This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1391# To build a target check-X means to cd to X and make all.
1392.PHONY: $(CHECK_X11_MODULES)
1393$(CHECK_X11_MODULES):
1394 @dir=`echo $@ | sed -e 's/check-//'`; \
1395 if [ -f ./$${dir}/Makefile ] ; then \
1396 r=`pwd`; export r; \
1397 s=`cd $(srcdir); pwd`; export s; \
1398 $(SET_LIB_PATH) \
1399 (cd $${dir}; \
1400 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1401 else \
1402 true; \
1403 fi
1404
1405# This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1406# To build a target install-X means to cd to X and make install.
1407.PHONY: $(INSTALL_X11_MODULES)
1408$(INSTALL_X11_MODULES): installdirs
1409 @dir=`echo $@ | sed -e 's/install-//'`; \
1410 if [ -f ./$${dir}/Makefile ] ; then \
1411 r=`pwd`; export r; \
1412 s=`cd $(srcdir); pwd`; export s; \
1413 $(SET_LIB_PATH) \
1414 (cd $${dir}; \
1415 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1416 else \
1417 true; \
1418 fi
1419
1420# gcc is the only module which uses GCC_FLAGS_TO_PASS.
1421.PHONY: all-gcc
1422all-gcc:
1423 @if [ -f ./gcc/Makefile ] ; then \
1424 r=`pwd`; export r; \
1425 s=`cd $(srcdir); pwd`; export s; \
1426 $(SET_LIB_PATH) \
1427 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1428 else \
1429 true; \
1430 fi
1431
1432.PHONY: all-bootstrap
1433all-bootstrap:
1434 @if [ -f ./gcc/Makefile ] ; then \
1435 r=`pwd`; export r; \
1436 s=`cd $(srcdir); pwd`; export s; \
1437 $(SET_LIB_PATH) \
1438 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) bootstrap); \
1439 else \
1440 true; \
1441 fi
1442
1443.PHONY: check-gcc
1444check-gcc:
1445 @if [ -f ./gcc/Makefile ] ; then \
1446 r=`pwd`; export r; \
1447 s=`cd $(srcdir); pwd`; export s; \
1448 $(SET_LIB_PATH) \
1449 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1450 else \
1451 true; \
1452 fi
1453
1454.PHONY: install-gcc
1455install-gcc:
1456 @if [ -f ./gcc/Makefile ] ; then \
1457 r=`pwd`; export r; \
1458 s=`cd $(srcdir); pwd`; export s; \
1459 $(SET_LIB_PATH) \
1460 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1461 else \
1462 true; \
1463 fi
1464
1465
1466# EXPERIMENTAL STUFF
1467# This rule is used to install the modules which use FLAGS_TO_PASS.
1468# To build a target install-X means to cd to X and make install.
1469.PHONY: install-dosrel
1470install-dosrel: installdirs info
1471 @dir=`echo $@ | sed -e 's/install-//'`; \
1472 if [ -f ./$${dir}/Makefile ] ; then \
1473 r=`pwd`; export r; \
1474 s=`cd $(srcdir); pwd`; export s; \
1475 $(SET_LIB_PATH) \
1476 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1477 else \
1478 true; \
1479 fi
1480
1481install-dosrel-fake:
1482
1483
1484# This is a list of inter-dependencies among modules.
1485all-apache:
1486all-ash:
1487all-autoconf: all-m4 all-texinfo
1488all-automake:
1489all-bash:
1490all-bfd: all-libiberty
1491all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc
1492all-bison: all-texinfo
1493all-target-boehm-gc:
1494all-byacc:
1495all-cvssrc:
1496configure-target-cygmon: $(ALL_GCC)
1497all-target-cygmon: configure-target-cygmon all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-libstub
1498all-db:
1499all-dejagnu: all-tcl all-expect all-tk
1500all-diff: all-libiberty
1501all-emacs:
1502all-emacs19: all-bison all-byacc
1503all-etc:
1504configure-target-examples: $(ALL_GCC)
1505all-target-examples: configure-target-examples
1506all-expect: all-tcl all-tk
1507all-fileutils: all-libiberty
1508all-findutils:
1509all-find:
1510all-flex: all-libiberty all-bison all-byacc
1511all-gas: all-libiberty all-opcodes all-bfd
1512all-gash: all-tcl
1513all-gawk:
1514ALL_GCC = all-gcc
1515all-gcc: all-bison all-byacc all-binutils all-gas all-ld
1516all-bootstrap: all-libiberty all-bison all-byacc all-binutils all-gas all-ld
1517GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui
1518# start-sanitize-ide
1519GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui all-libide all-libidetcl
1520# end-sanitize-ide
1521all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1522all-gettext:
1523all-gnuserv:
1524configure-target-gperf: $(ALL_GCC)
1525all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++
1526all-gprof: all-libiberty all-bfd all-opcodes
1527all-grep: all-libiberty
1528all-grez: all-libiberty all-bfd all-opcodes
1529all-gui: all-gdb all-libproc all-target-librx
1530all-guile:
1531all-gzip: all-libiberty
1532all-hello: all-libiberty
1533# start-sanitize-ide
1534all-ilu:
1535# end-sanitize-ide
1536all-indent:
1537all-inet: all-tcl all-send-pr all-perl
1538all-intl:
1539all-ispell: all-emacs19
1540all-itcl: all-tcl all-tk
1541# start-sanitize-ide
1542all-jstools: all-tcl all-tk all-tix all-libgui all-libide all-libidetcl
1543# end-sanitize-ide
1544all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex
1545configure-target-libg++: $(ALL_GCC) configure-target-librx
1546all-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++
1547configure-target-libgloss: $(ALL_GCC)
1548all-target-libgloss: configure-target-libgloss configure-target-newlib
1549configure-target-libio: $(ALL_GCC)
1550all-target-libio: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1551check-target-libio: all-target-libstdc++
1552all-libgui: all-tcl all-tk all-itcl
1553all-libiberty:
1554# start-sanitize-ide
1555all-libide: all-ilu
1556all-libidetcl: all-tcl all-tk all-itcl all-ilu all-libgui all-libide
1557# end-sanitize-ide
1558all-target-libjava:
1559configure-target-librx: $(ALL_GCC) configure-target-newlib
1560all-target-librx: configure-target-librx
1561configure-target-libstdc++: $(ALL_GCC)
1562all-target-libstdc++: configure-target-libstdc++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
1563configure-target-libstub: $(ALL_GCC)
1564all-target-libstub: configure-target-libstub
1565all-libtool:
1566all-m4: all-libiberty
1567all-make: all-libiberty
1568all-mmalloc:
1569configure-target-newlib: $(ALL_GCC)
1570all-target-newlib: configure-target-newlib all-binutils all-gas all-gcc
1571all-opcodes: all-bfd all-libiberty
1572all-patch: all-libiberty
1573all-perl:
1574all-prms: all-libiberty
1575all-rcs:
1576all-readline:
1577all-recode: all-libiberty
1578all-sed: all-libiberty
1579all-send-pr: all-prms
1580all-shellutils:
1581all-sim: all-libiberty all-bfd all-opcodes all-readline
1582all-snavigator: all-tcl all-tk all-tix all-itcl all-db all-grep
1583all-tar: all-libiberty
1584all-tcl:
1585all-tclX: all-tcl all-tk
1586all-tk: all-tcl
1587all-texinfo: all-libiberty
1588all-textutils:
1589all-tgas: all-libiberty all-bfd all-opcodes
1590all-time:
1591all-tix: all-tcl all-tk
1592# start-sanitize-ide
1593all-vmake: all-tcl all-tk all-itcl all-tix all-libgui all-libide all-libidetcl
1594# end-sanitize-ide
1595all-wdiff:
1596all-target-winsup: all-target-newlib all-target-libiberty all-target-libio configure-target-winsup
1597configure-target-winsup: configure-target-newlib
1598all-uudecode: all-libiberty
1599configure-target-libiberty: $(ALL_GCC)
1600all-target-libiberty: configure-target-libiberty all-gcc all-ld all-target-newlib
1601all-target: $(ALL_TARGET_MODULES)
1602install-target: $(INSTALL_TARGET_MODULES)
1603# start-sanitize-gdbtk
1604install-gdbtk: install-tcl install-tk install-itcl install-tix install-libgui install-gdb
1605#end-sanitize-gdbtk
1606### other supporting targets
1607
1608MAKEDIRS= \
1609 $(prefix) \
1610 $(exec_prefix)
1611.PHONY: installdirs
1612installdirs: mkinstalldirs
1613 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1614
1615dir.info: do-install-info
1616 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1617 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1618 mv -f dir.info.new dir.info ; \
1619 else true ; \
1620 fi
1621
1622dist:
1623 @echo "Building a full distribution of this tree isn't done"
1624 @echo "via 'make dist'. Check out the etc/ subdirectory"
1625
1626etags tags: TAGS
1627
1628# Right now this just builds TAGS in each subdirectory. emacs19 has the
1629# ability to use several tags files at once, so there is probably no need
1630# to combine them into one big TAGS file (like CVS 1.3 does). We could
1631# (if we felt like it) have this Makefile write a piece of elisp which
1632# the user could load to tell emacs19 where all the TAGS files we just
1633# built are.
1634TAGS: do-TAGS
1635
1636# with the gnu make, this is done automatically.
1637
1638Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
1639 $(SHELL) ./config.status
1640
1641#
1642# Support for building net releases
1643
1644# Files in devo used in any net release.
1645# ChangeLog omitted because it may refer to files which are not in this
1646# distribution (perhaps it would be better to include it anyway).
1647DEVO_SUPPORT= README Makefile.in configure configure.in \
1648 config.guess config.sub config move-if-change \
1649 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1650 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1651 mkinstalldirs ltconfig ltmain.sh missing ylwrap
1652
1653# Files in devo/etc used in any net release.
1654# ChangeLog omitted because it may refer to files which are not in this
1655# distribution (perhaps it would be better to include it anyway).
1656ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
1657 make-stds.texi standards.info*
1658
1659# When you use `make setup-dirs' or `make taz' you should always redefine
1660# this macro.
1661SUPPORT_FILES = list-of-support-files-for-tool-in-question
1662
1663.PHONY: taz
1664
1665taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
1666 texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1667 # Take out texinfo from a few places.
1668 sed -e '/^all\.normal: /s/\all-texinfo //' \
1669 -e '/^ install-texinfo /d' \
1670 <Makefile.in >tmp
1671 mv -f tmp Makefile.in
1672 #
1673 $(start-sanitize-Sanitize)
1674 @if [ -f .Sanitize ] ; then echo "RUN Sanitize FIRST!" ; false ; fi ;
1675 $(end-sanitize-Sanitize)
1676 ./configure sun4
1677 [ -z "$(CONFIGURE_TARGET_MODULES)" ] \
1678 || $(MAKE) $(CONFIGURE_TARGET_MODULES) ALL_GCC="" \
1679 CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
1680 # Make links, and run "make diststuff" or "make info" when needed.
1681 rm -rf proto-toplev ; mkdir proto-toplev
1682 set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1683 for d in $$dirs ; do \
1684 if [ -d $$d ]; then \
1685 if [ ! -f $$d/Makefile ] ; then true ; \
1686 elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
1687 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
1688 elif grep '^info:' $$d/Makefile >/dev/null ; then \
1689 (cd $$d ; $(MAKE) info ) || exit 1 ; \
1690 fi ; \
1691 if [ -d $$d/proto-$$d.dir ]; then \
1692 ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1693 else \
1694 ln -s ../$$d proto-toplev/$$d ; \
1695 fi ; \
1696 else ln -s ../$$d proto-toplev/$$d ; fi ; \
1697 done
1698 cd etc ; $(MAKE) info
1699 $(MAKE) distclean
1700 #
1701 mkdir proto-toplev/etc
1702 (cd proto-toplev/etc; \
1703 for i in $(ETC_SUPPORT); do \
1704 ln -s ../../etc/$$i . ; \
1705 done)
1706 #
1707 # Take out texinfo from configurable dirs
1708 rm proto-toplev/configure.in
1709 sed -e '/^host_tools=/s/texinfo //' \
1710 <configure.in >proto-toplev/configure.in
1711 #
1712 mkdir proto-toplev/texinfo
1713 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
1714 ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
1715 ln -s ../../texinfo/lgpl.texinfo proto-toplev/texinfo/
1716 if test -r texinfo/util/tex3patch ; then \
1717 mkdir proto-toplev/texinfo/util && \
1718 ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
1719 else true; fi
1720 chmod og=u `find . -print`
1721 if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1722 ver=`sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'`; \
1723 else \
1724 ver=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
1725 fi; \
1726 $(MAKE) -f Makefile.in do-tar-gz TOOL=$(TOOL) VER=$$ver
1727
1728do-tar-gz:
1729 echo "==> Making $(TOOL)-$(VER).tar.gz"
1730 -rm -f $(TOOL)-$(VER)
1731 ln -s proto-toplev $(TOOL)-$(VER)
1732 tar cfh $(TOOL)-$(VER).tar $(TOOL)-$(VER)
1733 $(GZIPPROG) -v -9 $(TOOL)-$(VER).tar
1734
1735TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1736DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
1737
1738.PHONY: gas.tar.gz
1739GAS_SUPPORT_DIRS= bfd include libiberty opcodes setup.com makefile.vms
1740gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
1741 $(MAKE) -f Makefile.in taz TOOL=gas \
1742 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
1743
1744# The FSF "binutils" release includes gprof and ld.
1745.PHONY: binutils.tar.gz
1746BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof setup.com makefile.vms
1747binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
1748 $(MAKE) -f Makefile.in taz TOOL=binutils \
1749 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
1750
1751.PHONY: gas+binutils.tar.gz
1752GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
1753gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
1754 $(MAKE) -f Makefile.in taz TOOL=gas \
1755 SUPPORT_FILES="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"
1756
1757.PHONY: libg++.tar.gz
1758LIBGXX_SUPPORT_DIRS=include libstdc++ libio librx libiberty
1759libg++.tar.gz: $(DIST_SUPPORT) libg++
1760 $(MAKE) -f Makefile.in taz TOOL=libg++ \
1761 SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)"
1762
1763GNATS_SUPPORT_DIRS=include libiberty send-pr
1764gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
1765 $(MAKE) -f Makefile.in taz TOOL=gnats \
1766 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
1767
1768.PHONY: gdb.tar.gz
1769GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils
1770GDBTK_SUPPORT_DIRS= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi`
1771gdb.tar.gz: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
1772 $(MAKE) -f Makefile.in taz TOOL=gdb \
1773 SUPPORT_FILES="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
1774
1775.PHONY: newlib.tar.gz
1776NEWLIB_SUPPORT_DIRS=libgloss
1777# taz configures for the sun4 target which won't configure newlib.
1778# We need newlib configured so that the .info files are made.
1779# Unfortunately, it is not enough to just configure newlib separately:
1780# taz will build the .info files but since SUBDIRS won't contain newlib,
1781# distclean won't be run (leaving Makefile, config.status, and the tmp files
1782# used in building the .info files, eg: *.def, *.ref).
1783# The problem isn't solvable however without a lot of extra work because
1784# target libraries are built in subdir $(target_alias) which gets nuked during
1785# the make distclean. For now punt on the issue of shipping newlib info files
1786# with newlib net releases and wait for a day when some native target (sun4?)
1787# supports newlib (if only minimally).
1788newlib.tar.gz: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
1789 $(MAKE) -f Makefile.in taz TOOL=newlib \
1790 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
1791 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
1792
1793.NOEXPORT:
1794MAKEOVERRIDES=
1795
1796# start-sanitize-chill
1797## This is ugly, but I don't want GNU make to put these variables in
1798## the environment. Older makes will see this as a set of targets
1799## with no dependencies and no actions.
1800unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
1801# end-sanitize-chill
1802
1803# end of Makefile.in
This page took 0.027617 seconds and 4 git commands to generate.