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