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