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