a9a57bca105b71a9897578183458d4450e59e05e
[binutils-gdb.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991, 1992, 1993 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
18 #
19
20 srcdir = .
21
22 prefix = /usr/local
23
24 exec_prefix = $(prefix)
25 bindir = $(exec_prefix)/bin
26 libdir = $(exec_prefix)/lib
27 tooldir = $(exec_prefix)/$(target)
28
29 program_transform_name =
30
31 datadir = $(prefix)/lib
32 mandir = $(prefix)/man
33 man1dir = $(mandir)/man1
34 man2dir = $(mandir)/man2
35 man3dir = $(mandir)/man3
36 man4dir = $(mandir)/man4
37 man5dir = $(mandir)/man5
38 man6dir = $(mandir)/man6
39 man7dir = $(mandir)/man7
40 man8dir = $(mandir)/man8
41 man9dir = $(mandir)/man9
42 infodir = $(prefix)/info
43 includedir = $(prefix)/include
44 docdir = $(datadir)/doc
45
46 SHELL = /bin/sh
47
48 INSTALL = $${srcroot}/install.sh -c
49 INSTALL_PROGRAM = $(INSTALL)
50 INSTALL_DATA = $(INSTALL) -m 644
51 INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
52
53 INSTALL_DOSREL = install-dosrel-fake
54
55 AS = as
56 AR = ar
57 AR_FLAGS = rc
58 CC = cc
59
60 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
61 # here so that they can be overridden by Makefile fragments.
62 HOST_CC = $(CC_FOR_BUILD)
63 HOST_PREFIX =
64 HOST_PREFIX_1 = loser-
65
66 # We don't specify -g -O because many compilers don't support -g -O,
67 # and/or -O is broken in and of itself.
68 CFLAGS = -g
69
70 # start-sanitize-chill
71 CHILLFLAGS = $(CFLAGS)
72 CHILL_LIB = -lchill
73 # end-sanitize-chill
74 CXX = gcc
75
76 # Use -O to stress test the compiler.
77 CXXFLAGS = -g -O -fexternal-templates
78
79 RANLIB = ranlib
80 NM = nm
81 # Not plain GZIP, since gzip looks there for extra command-line options.
82 GZIPPROG = gzip
83
84 # BISON: This line sed'ed to BISON = bison -y for FSF releases, don't remove.
85 BISON = `if [ -f $$r/byacc/byacc ] ; \
86 then echo $$r/byacc/byacc ; \
87 else echo byacc ; \
88 fi`
89
90 LEX = `if [ -f $$r/flex/flex ] ; \
91 then echo $$r/flex/flex ; \
92 else echo flex ; fi`
93
94 M4 = `if [ -f $$r/m4/m4 ] ; \
95 then echo $$r/m4/m4 ; \
96 else echo m4 ; fi`
97
98 MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
99 then echo $$r/texinfo/makeinfo/makeinfo ; \
100 else echo makeinfo ; fi`
101
102 # This just becomes part of the MAKEINFO definition passed down to
103 # sub-makes. It lets flags be given on the command line while still
104 # using the makeinfo from the object tree.
105 MAKEINFOFLAGS =
106
107 EXPECT = `if [ -f $$r/expect/expect ] ; \
108 then echo $$r/expect/expect ; \
109 else echo expect ; fi`
110
111 RUNTEST = `if [ -f $${srcroot}/dejagnu/runtest ] ; \
112 then echo $${srcroot}/dejagnu/runtest ; \
113 else echo runtest ; fi`
114
115
116 # libraries that may need to be augmented on a system-by-system basis
117 X11_LIB = -lX11
118
119 # compilers to use to create programs which must be run in the build
120 # environment.
121 CC_FOR_BUILD = $(CC)
122 CXX_FOR_BUILD = $(CXX)
123
124 SUBDIRS = "this is set via configure, don't edit this"
125 OTHERS =
126
127 ALL = all.normal
128 INSTALL_TARGET = install-dirs \
129 $(INSTALL_MODULES) \
130 $(INSTALL_TARGET_MODULES) \
131 $(INSTALL_X11_MODULES) \
132 install-gcc \
133 $(INSTALL_DOSREL)
134
135
136 CC_FOR_TARGET = ` \
137 if [ -f $$r/gcc/Makefile ] ; then \
138 if [ -f $$r/newlib/Makefile ] ; then \
139 echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
140 else \
141 echo $$r/gcc/xgcc -B$$r/gcc/; \
142 fi; \
143 else \
144 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
145 echo $(CC); \
146 else \
147 t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
148 fi; \
149 fi`
150
151 # start-sanitize-chill
152 CHILL_FOR_TARGET = ` \
153 if [ -f $$r/gcc/Makefile ] ; then \
154 echo $$r/gcc/xgcc -B$$r/gcc/ -L$$r/chillrt/; \
155 else \
156 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
157 echo $(CC); \
158 else \
159 t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
160 fi; \
161 fi`
162
163 # end-sanitize-chill
164
165 CXX_FOR_TARGET = ` \
166 if [ -f $$r/gcc/Makefile ] ; then \
167 if [ -f $$r/newlib/Makefile ] ; then \
168 echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
169 else \
170 echo $$r/gcc/xgcc -B$$r/gcc/; \
171 fi; \
172 else \
173 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
174 echo $(CXX); \
175 else \
176 t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
177 fi; \
178 fi`
179
180 AS_FOR_TARGET = ` \
181 if [ -f $$r/gas/Makefile ] ; then \
182 echo $$r/gas/as.new ; \
183 else \
184 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
185 echo $(AS); \
186 else \
187 t='$(program_transform_name)'; echo as | sed -e 's/brokensed/brokensed/' $$t ; \
188 fi; \
189 fi`
190
191 AR_FOR_TARGET = ` \
192 if [ -f $$r/binutils/ar ] ; then \
193 echo $$r/binutils/ar ; \
194 else \
195 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
196 echo $(AR); \
197 else \
198 t='$(program_transform_name)'; echo ar | sed -e 's/brokensed/brokensed/' $$t ; \
199 fi; \
200 fi`
201
202 RANLIB_FOR_TARGET = ` \
203 if [ -f $$r/binutils/ranlib ] ; then \
204 echo $$r/binutils/ranlib ; \
205 else \
206 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
207 echo $(RANLIB); \
208 else \
209 t='$(program_transform_name)'; echo ranlib | sed -e 's/brokensed/brokensed/' $$t ; \
210 fi; \
211 fi`
212
213 NM_FOR_TARGET = ` \
214 if [ -f $$r/binutils/Makefile ] ; then \
215 echo $$r/binutils/nm.new ; \
216 else \
217 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
218 echo $(NM); \
219 else \
220 t='$(program_transform_name)'; echo nm | sed -e 's/brokensed/brokensed/' $$t ; \
221 fi; \
222 fi`
223
224
225 #### host and target specific makefile fragments come in here.
226 ###
227
228 # Flags to pass down to all sub-makes.
229 # Please keep these in alphabetical order.
230 BASE_FLAGS_TO_PASS = \
231 "AR_FLAGS=$(AR_FLAGS)" \
232 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
233 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
234 "BISON=$(BISON)" \
235 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
236 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
237 "CFLAGS=$(CFLAGS)" \
238 $(start-sanitize-chill)\
239 "CHILLFLAGS=$(CHILLFLAGS)" \
240 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
241 "CHILL_LIB=$(CHILL_LIB)" \
242 $(end-sanitize-chill)\
243 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
244 "CXXFLAGS=$(CXXFLAGS)" \
245 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
246 "GCC_FOR_TARGET=$(CC_FOR_TARGET)" \
247 "INSTALL=$(INSTALL)" \
248 "INSTALL_DATA=$(INSTALL_DATA)" \
249 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
250 "INSTALL_XFORM=$(INSTALL_XFORM)" \
251 "LDFLAGS=$(LDFLAGS)" \
252 "LEX=$(LEX)" \
253 "M4=$(M4)" \
254 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
255 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
256 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
257 "SHELL=$(SHELL)" \
258 "EXPECT=$(EXPECT)" \
259 "RUNTEST=$(RUNTEST)" \
260 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
261 "YACC=$(BISON)" \
262 "exec_prefix=$(exec_prefix)" \
263 "prefix=$(prefix)" \
264 "tooldir=$(tooldir)"
265
266 # Flags to pass down to most sub-makes, in which we're building with
267 # the host environment.
268 # If any variables are added here, they must be added to do-*, below.
269 EXTRA_HOST_FLAGS = \
270 'AR=$(AR)' \
271 'AS=$(AS)' \
272 'CC=$(CC)' \
273 'CXX=$(CXX)' \
274 'NM=$(NM)' \
275 'RANLIB=$(RANLIB)'
276
277 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
278
279 # Flags that are concerned with the location of the X11 include files
280 # and library files
281 X11_FLAGS_TO_PASS = \
282 "X11_INCLUDE_FLAGS=$(X11_INCLUDE_FLAGS)" \
283 "X11_LIB_FLAGS=$(X11_LIB_FLAGS)" \
284 "X11_LIB=$(X11_LIB)"
285
286 # Flags to pass down to makes which are built with the target environment.
287 # The double $ decreases the length of the command line; the variables
288 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
289 # If any variables are added here, they must be added to do-*, below.
290 EXTRA_TARGET_FLAGS = \
291 'AR=$$(AR_FOR_TARGET)' \
292 'AS=$$(AS_FOR_TARGET)' \
293 'CC=$$(CC_FOR_TARGET)' \
294 'CXX=$$(CXX_FOR_TARGET)' \
295 'NM=$$(NM_FOR_TARGET)' \
296 'RANLIB=$$(RANLIB_FOR_TARGET)'
297
298 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
299
300 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
301 # unfortunately needs the native compiler and the target ar and
302 # ranlib.
303 # If any variables are added here, they must be added to do-*, below.
304 # The HOST_* variables are a special case, which are used for the gcc
305 # cross-building scheme.
306 EXTRA_GCC_FLAGS = \
307 'AR=$$(AR_FOR_TARGET)' \
308 'AS=$(AS)' \
309 'CC=$(CC)' \
310 'CXX=$(CXX)' \
311 'HOST_CC=$(CC_FOR_BUILD)' \
312 'HOST_PREFIX=$(HOST_PREFIX)' \
313 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
314 'NM=$(NM)' \
315 'RANLIB=$$(RANLIB_FOR_TARGET)'
316
317 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
318
319 # This is a list of the targets for all of the modules which are compiled
320 # using $(FLAGS_TO_PASS).
321 ALL_MODULES = \
322 all-autoconf \
323 all-bfd \
324 all-binutils \
325 all-byacc \
326 all-cvs \
327 all-dejagnu \
328 all-diff \
329 all-dosutils \
330 all-etc \
331 all-fileutils \
332 all-find \
333 all-flex \
334 all-gas \
335 all-gawk \
336 all-gdb \
337 all-gprof \
338 all-grep \
339 all-gzip \
340 all-hello \
341 all-indent \
342 all-ispell \
343 all-ld \
344 all-libiberty \
345 all-m4 \
346 all-make \
347 all-mmalloc \
348 all-opcodes \
349 all-pagas \
350 all-patch \
351 all-prms \
352 all-rcs \
353 all-readline \
354 all-release \
355 all-recode \
356 all-sed \
357 all-send-pr \
358 all-shellutils \
359 all-sim \
360 all-tar \
361 all-tcl \
362 all-texinfo \
363 all-textutils \
364 all-tgas \
365 all-time \
366 all-uudecode \
367 all-wdiff
368
369 # This is a list of the check targets for all of the modules which are
370 # compiled using $(FLAGS_TO_PASS).
371 # This is a list of the check targets for all of the modules which are
372 # compiled using $(FLAGS_TO_PASS).
373 #
374 # The list is in two parts. The first lists those tools which
375 # are tested as part of the host's native tool-chain, and not
376 # tested in a cross configuration.
377 NATIVE_CHECK_MODULES = \
378 check-byacc \
379 check-flex
380
381 CROSS_CHECK_MODULES = \
382 check-autoconf \
383 check-bfd \
384 check-binutils \
385 check-cvs \
386 check-dejagnu \
387 check-diff \
388 check-etc \
389 check-fileutils \
390 check-find \
391 check-flex \
392 check-gas \
393 check-gawk \
394 check-gdb \
395 check-gprof \
396 check-grep \
397 check-gzip \
398 check-hello \
399 check-indent \
400 check-ispell \
401 check-ld \
402 check-libiberty \
403 check-m4 \
404 check-make \
405 check-mmcheckoc \
406 check-opcodes \
407 check-pagas \
408 check-patch \
409 check-prms \
410 check-rcs \
411 check-readline \
412 check-recode \
413 check-sed \
414 check-send-pr \
415 check-shellutils \
416 check-sim \
417 check-tar \
418 check-tcl \
419 check-texinfo \
420 check-textutils \
421 check-tgas \
422 check-time \
423 check-uudecode \
424 check-wdiff
425
426 CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
427
428 # This is a list of the install targets for all of the modules which are
429 # compiled using $(FLAGS_TO_PASS).
430 INSTALL_MODULES = \
431 install-autoconf \
432 install-bfd \
433 install-binutils \
434 install-byacc \
435 install-cvs \
436 install-dejagnu \
437 install-diff \
438 install-dosutils \
439 install-etc \
440 install-fileutils \
441 install-find \
442 install-flex \
443 install-gas \
444 install-gawk \
445 install-gdb \
446 install-glob \
447 install-gprof \
448 install-grep \
449 install-gzip \
450 install-hello \
451 install-indent \
452 install-ispell \
453 install-ld \
454 install-libiberty \
455 install-m4 \
456 install-make \
457 install-mmalloc \
458 install-opcodes \
459 install-pagas \
460 install-patch \
461 install-prms \
462 install-rcs \
463 install-readline \
464 install-recode \
465 install-sed \
466 install-send-pr \
467 install-shellutils \
468 install-sim \
469 install-tar \
470 install-tcl \
471 install-texinfo \
472 install-textutils \
473 install-tgas \
474 install-time \
475 install-uudecode \
476 install-wdiff
477
478 # This is a list of the targets for all of the modules which are compiled
479 # using $(X11_FLAGS_TO_PASS).
480 ALL_X11_MODULES = \
481 all-emacs \
482 all-expect \
483 all-gash \
484 all-tclX \
485 all-tk
486
487 # This is a list of the check targets for all of the modules which are
488 # compiled using $(X11_FLAGS_TO_PASS).
489 CHECK_X11_MODULES = \
490 check-emacs \
491 check-expect \
492 check-gash \
493 check-tclX \
494 check-tk
495
496 # This is a list of the install targets for all the modules which are
497 # compiled using $(X11_FLAGS_TO_PASS).
498 INSTALL_X11_MODULES = \
499 install-emacs \
500 install-expect \
501 install-gash \
502 install-tclX \
503 install-tk
504
505 # This is a list of the targets for all of the modules which are compiled
506 # using $(TARGET_FLAGS_TO_PASS).
507 ALL_TARGET_MODULES = \
508 $(start-sanitize-chill) \
509 all-chillrt \
510 $(end-sanitize-chill) \
511 all-libio \
512 all-libg++ \
513 all-newlib \
514 all-xiberty
515
516 # This is a list of the check targets for all of the modules which are
517 # compiled using $(TARGET_FLAGS_TO_PASS).
518 CHECK_TARGET_MODULES = \
519 $(start-sanitize-chill) \
520 check-chillrt \
521 $(end-sanitize-chill) \
522 check-libio \
523 check-libg++ \
524 check-newlib \
525 check-xiberty
526
527 # This is a list of the install targets for all of the modules which are
528 # compiled using $(TARGET_FLAGS_TO_PASS).
529 INSTALL_TARGET_MODULES = \
530 $(start-sanitize-chill) \
531 install-chillrt \
532 $(end-sanitize-chill) \
533 install-libio \
534 install-libg++ \
535 install-newlib \
536 install-xiberty
537
538 # This is a shell case of all modules which are compiled using
539 # $(TARGET_FLAGS_TO_PASS), used in the do-X rule.
540 TARGET_LIBS = libio | libg++ | newlib | xiberty
541 # start-sanitize-chill
542 TARGET_LIBS = chillrt | libio | libg++ | newlib | xiberty
543 # end-sanitize-chill
544
545 # The first rule in the file had better be this one. Don't put any above it.
546 all: all.normal
547 .PHONY: all
548
549 # The target built for a native build.
550 .PHONY: all.normal
551 all.normal: \
552 $(ALL_MODULES) \
553 $(ALL_TARGET_MODULES) \
554 $(ALL_X11_MODULES) \
555 all-gcc
556
557 # Do a target for all the subdirectories. A ``make do-X'' will do a
558 # ``make X'' in all subdirectories (because, in general, there is a
559 # dependency (below) of X upon do-X, a ``make X'' will also do this,
560 # but it may do additional work as well).
561 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
562 # because it is so large that it can easily overflow the command line
563 # length limit on some systems.
564 DO_X = \
565 do-clean \
566 do-distclean \
567 do-dvi \
568 do-info \
569 do-install-info \
570 do-installcheck \
571 do-mostlyclean \
572 do-realclean \
573 do-TAGS
574 .PHONY: $(DO_X)
575 $(DO_X):
576 @target=`echo $@ | sed -e 's/^do-//'`; \
577 r=`pwd`; export r; \
578 srcroot=`cd $(srcdir); pwd`; export srcroot; \
579 for i in $(SUBDIRS); do \
580 if [ -f ./$$i/Makefile ]; then \
581 case $$i in \
582 $(TARGET_LIBS) ) \
583 for flag in $(EXTRA_TARGET_FLAGS); do \
584 eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
585 done; \
586 ;; \
587 gcc) \
588 for flag in $(EXTRA_GCC_FLAGS); do \
589 eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
590 done; \
591 ;; \
592 *) \
593 for flag in $(EXTRA_HOST_FLAGS); do \
594 eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
595 done; \
596 ;; \
597 esac ; \
598 export AR AS CC CXX NM RANLIB; \
599 if (cd ./$$i; \
600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
601 "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
602 "RANLIB=$${RANLIB}" \
603 $${target}); \
604 then true; else exit 1; fi; \
605 else true; fi; \
606 done
607
608 # Here are the targets which correspond to the do-X targets.
609
610 .PHONY: info installcheck dvi install-info
611 .PHONY: clean distclean mostlyclean realclean local-clean local-distclean
612 info: do-info
613 installcheck: do-installcheck
614 dvi: do-dvi
615
616 install-info: do-install-info dir.info
617 srcroot=`cd $(srcdir); pwd`; export srcroot; \
618 if [ -f dir.info ] ; then \
619 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
620 else true ; fi
621
622 local-clean:
623 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
624
625 local-distclean:
626 -rm -f Makefile config.status
627
628 clean: do-clean local-clean
629 mostlyclean: do-mostlyclean local-clean
630 distclean: do-distclean local-clean local-distclean
631 realclean: do-realclean local-clean local-distclean
632
633 # Check target.
634
635 .PHONY: check
636 check: $(CHECK_MODULES) \
637 $(CHECK_TARGET_MODULES) \
638 $(CHECK_X11_MODULES) \
639 check-gcc
640
641 # Installation targets.
642
643 .PHONY: install uninstall vault-install
644 install: $(INSTALL_TARGET)
645
646 uninstall:
647 @echo "the uninstall target is not supported in this tree"
648
649 vault-install:
650 @if [ -f ./release/vault-install ] ; then \
651 ./release/vault-install $(host_alias) $(target_alias) ; \
652 else \
653 true ; \
654 fi
655
656 .PHONY: install.all
657 install.all: install-no-fixedincludes
658 @if [ -f ./gcc/Makefile ] ; then \
659 r=`pwd` ; export r ; \
660 (cd ./gcc; \
661 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
662 else \
663 true ; \
664 fi
665
666 # install-no-fixedincludes is used because Cygnus can not distribute
667 # the fixed header files.
668 .PHONY: install-no-fixedincludes
669 install-no-fixedincludes: \
670 install-dirs \
671 $(INSTALL_MODULES) \
672 $(INSTALL_TARGET_MODULES) \
673 $(INSTALL_X11_MODULES) \
674 gcc-no-fixedincludes
675
676 # Install the gcc headers files, but not the fixed include files,
677 # which Cygnus is not allowed to distribute. This rule is very
678 # dependent on the workings of the gcc Makefile.in.
679 .PHONY: gcc-no-fixedincludes
680 gcc-no-fixedincludes:
681 @if [ -f ./gcc/Makefile ]; then \
682 rm -rf gcc/tmp-include; \
683 mv gcc/include gcc/tmp-include 2>/dev/null; \
684 mkdir gcc/include; \
685 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
686 touch gcc/stmp-fixinc gcc/include/fixed; \
687 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
688 r=`pwd`; export r; \
689 srcroot=`cd $(srcdir); pwd` ; export srcroot; \
690 (cd ./gcc; \
691 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
692 rm -rf gcc/include; \
693 mv gcc/tmp-include gcc/include 2>/dev/null; \
694 else true; fi
695
696 # This rule is used to build the modules which use FLAGS_TO_PASS. To
697 # build a target all-X means to cd to X and make all.
698 # all-glob is handled specially because it doesn't actually build.
699 #
700 # all-gui and all-libproc are handled specially because they are still
701 # experimental, and if they fails to build, that shouldn't stop "make
702 # all".
703 .PHONY: $(ALL_MODULES) all-glob all-gui
704 $(ALL_MODULES) all-glob all-gui all-libproc:
705 @dir=`echo $@ | sed -e 's/all-//'`; \
706 if [ -f ./$${dir}/Makefile ] ; then \
707 r=`pwd`; export r; \
708 srcroot=`cd $(srcdir); pwd`; export srcroot; \
709 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
710 else \
711 true; \
712 fi
713
714 # This rule is used to check the modules which use FLAGS_TO_PASS. To
715 # build a target check-X means to cd to X and make all.
716
717 .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
718 $(NATIVE_CHECK_MODULES):
719 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
720 @dir=`echo $@ | sed -e 's/check-//'`; \
721 if [ -f ./$${dir}/Makefile ] ; then \
722 r=`pwd`; export r; \
723 srcroot=`cd $(srcdir); pwd`; export srcroot; \
724 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
725 else \
726 true; \
727 fi; \
728 fi
729
730 $(CROSS_CHECK_MODULES):
731 @dir=`echo $@ | sed -e 's/check-//'`; \
732 if [ -f ./$${dir}/Makefile ] ; then \
733 r=`pwd`; export r; \
734 srcroot=`cd $(srcdir); pwd`; export srcroot; \
735 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
736 else \
737 true; \
738 fi
739
740 # This rule is used to install the modules which use FLAGS_TO_PASS.
741 # To build a target install-X means to cd to X and make install.
742 .PHONY: $(INSTALL_MODULES)
743 $(INSTALL_MODULES): install-dirs
744 @dir=`echo $@ | sed -e 's/install-//'`; \
745 if [ -f ./$${dir}/Makefile ] ; then \
746 r=`pwd`; export r; \
747 srcroot=`cd $(srcdir); pwd`; export srcroot; \
748 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
749 else \
750 true; \
751 fi
752
753 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
754 # To build a target all-X means to cd to X and make all.
755 .PHONY: $(ALL_TARGET_MODULES)
756 $(ALL_TARGET_MODULES):
757 @dir=`echo $@ | sed -e 's/all-//'`; \
758 if [ -f ./$${dir}/Makefile ] ; then \
759 r=`pwd`; export r; \
760 srcroot=`cd $(srcdir); pwd`; export srcroot; \
761 (cd $${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
762 else \
763 true; \
764 fi
765
766 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
767 # To build a target install-X means to cd to X and make install.
768 .PHONY: $(CHECK_TARGET_MODULES)
769 $(CHECK_TARGET_MODULES):
770 @dir=`echo $@ | sed -e 's/check-//'`; \
771 if [ -f ./$${dir}/Makefile ] ; then \
772 r=`pwd`; export r; \
773 srcroot=`cd $(srcdir); pwd`; export srcroot; \
774 (cd $${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) check); \
775 else \
776 true; \
777 fi
778
779 # This rule is used to install the modules which use
780 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
781 # and make install.
782 .PHONY: $(INSTALL_TARGET_MODULES)
783 $(INSTALL_TARGET_MODULES): install-dirs
784 @dir=`echo $@ | sed -e 's/install-//'`; \
785 if [ -f ./$${dir}/Makefile ] ; then \
786 r=`pwd`; export r; \
787 srcroot=`cd $(srcdir); pwd`; export srcroot; \
788 (cd $${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
789 else \
790 true; \
791 fi
792
793 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
794 # To build a target all-X means to cd to X and make all.
795 .PHONY: $(ALL_X11_MODULES)
796 $(ALL_X11_MODULES):
797 @dir=`echo $@ | sed -e 's/all-//'`; \
798 if [ -f ./$${dir}/Makefile ] ; then \
799 r=`pwd`; export r; \
800 srcroot=`cd $(srcdir); pwd`; export srcroot; \
801 (cd $${dir}; \
802 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
803 else \
804 true; \
805 fi
806
807 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
808 # To build a target check-X means to cd to X and make all.
809 .PHONY: $(CHECK_X11_MODULES)
810 $(CHECK_X11_MODULES):
811 @dir=`echo $@ | sed -e 's/check-//'`; \
812 if [ -f ./$${dir}/Makefile ] ; then \
813 r=`pwd`; export r; \
814 srcroot=`cd $(srcdir); pwd`; export srcroot; \
815 (cd $${dir}; \
816 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
817 else \
818 true; \
819 fi
820
821 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
822 # To build a target install-X means to cd to X and make install.
823 .PHONY: $(INSTALL_X11_MODULES)
824 $(INSTALL_X11_MODULES):
825 @dir=`echo $@ | sed -e 's/install-//'`; \
826 if [ -f ./$${dir}/Makefile ] ; then \
827 r=`pwd`; export r; \
828 srcroot=`cd $(srcdir); pwd`; export srcroot; \
829 (cd $${dir}; \
830 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
831 else \
832 true; \
833 fi
834
835 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
836 .PHONY: all-gcc
837 all-gcc:
838 @if [ -f ./gcc/Makefile ] ; then \
839 r=`pwd`; export r; \
840 srcroot=`cd $(srcdir); pwd`; export srcroot; \
841 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
842 else \
843 true; \
844 fi
845
846 .PHONY: check-gcc
847 check-gcc:
848 @if [ -f ./gcc/Makefile ] ; then \
849 r=`pwd`; export r; \
850 srcroot=`cd $(srcdir); pwd`; export srcroot; \
851 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
852 else \
853 true; \
854 fi
855
856 .PHONY: install-gcc
857 install-gcc:
858 @if [ -f ./gcc/Makefile ] ; then \
859 r=`pwd`; export r; \
860 srcroot=`cd $(srcdir); pwd`; export srcroot; \
861 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
862 else \
863 true; \
864 fi
865
866
867 # EXPERIMENTAL STUFF
868 # This rule is used to install the modules which use FLAGS_TO_PASS.
869 # To build a target install-X means to cd to X and make install.
870 .PHONY: install-dosrel
871 install-dosrel: install-dirs info
872 @dir=`echo $@ | sed -e 's/install-//'`; \
873 if [ -f ./$${dir}/Makefile ] ; then \
874 r=`pwd`; export r; \
875 srcroot=`cd $(srcdir); pwd`; export srcroot; \
876 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
877 else \
878 true; \
879 fi
880
881 install-dosrel-fake:
882
883
884 # This is a list of inter-dependencies among modules.
885 all-autoconf: all-m4
886 all-bfd:
887 all-binutils: all-libiberty all-opcodes all-bfd all-flex
888 all-byacc:
889 # start-sanitize-chill
890 all-chillrt: all-binutils all-gas all-gcc all-newlib
891 # end-sanitize-chill
892 all-cvs:
893 all-dejagnu:
894 all-diff: all-libiberty
895 all-emacs:
896 all-etc:
897 all-expect: all-tcl all-tk
898 all-fileutils: all-libiberty
899 all-find:
900 all-flex: all-libiberty all-byacc
901 all-gas: all-libiberty all-opcodes all-bfd
902 all-gash: all-tcl
903 all-gawk:
904 all-gcc: all-libiberty all-byacc all-binutils all-gas all-pagas
905 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-glob all-byacc all-sim
906 all-glob:
907 all-gprof: all-libiberty all-bfd
908 all-grep: all-libiberty
909 all-gui: all-gdb all-libproc
910 all-gzip: all-libiberty
911 all-hello: all-libiberty
912 all-indent:
913 all-ispell: all-emacs
914 all-ld: all-libiberty all-bfd all-byacc all-flex
915 all-libg++: all-gas all-pagas all-ld all-gcc all-xiberty all-newlib all-libio
916 all-libio: all-gas all-pagas all-ld all-gcc all-xiberty all-newlib
917 all-libiberty:
918 all-m4: all-libiberty
919 all-make: all-libiberty
920 all-mmalloc:
921 all-newlib: all-binutils all-gas all-pagas all-gcc
922 all-opcodes: all-bfd
923 all-patch:
924 all-prms: all-libiberty
925 all-rcs:
926 all-readline:
927 all-recode: all-libiberty
928 all-sed: all-libiberty
929 all-send-pr: all-prms
930 all-shellutils:
931 all-sim: all-libiberty all-bfd
932 all-tar: all-libiberty
933 all-tcl:
934 all-tclX: all-tcl all-tk
935 all-tk: all-tcl
936 all-texinfo: all-libiberty
937 all-textutils:
938 all-tgas: all-libiberty all-bfd
939 all-time:
940 all-wdiff:
941 all-uudecode: all-libiberty
942 all-xiberty: all-gcc all-newlib
943
944 ### other supporting targets
945
946 MAKEDIRS= \
947 $(prefix) \
948 $(exec_prefix) \
949 $(tooldir)
950
951 .PHONY: install-dirs
952 install-dirs:
953 @for i in $(MAKEDIRS) ; do \
954 echo Making $$i... ; \
955 parent=`echo $$i | sed -e 's@/[^/]*$$@@' | sed -e 's@^$$@/@'`; \
956 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \
957 if [ ! -d $$i ] ; then \
958 if mkdir $$i ; then \
959 true ; \
960 else \
961 exit 1 ; \
962 fi ; \
963 else \
964 true ; \
965 fi ; \
966 done
967
968
969 dir.info: do-install-info
970 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
971 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
972 mv -f dir.info.new dir.info ; \
973 else true ; \
974 fi
975
976 dist:
977 @echo "Building a full distribution of this tree isn't done"
978 @echo "via 'make dist'. Check out the etc/ subdirectory"
979
980 etags tags: TAGS
981
982 # Right now this just builds TAGS in each subdirectory. emacs19 has the
983 # ability to use several tags files at once, so there is probably no need
984 # to combine them into one big TAGS file (like CVS 1.3 does). We could
985 # (if we felt like it) have this Makefile write a piece of elisp which
986 # the user could load to tell emacs19 where all the TAGS files we just
987 # built are.
988 TAGS: do-TAGS
989
990 # with the gnu make, this is done automatically.
991
992 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
993 $(SHELL) ./config.status
994
995 #
996 # Support for building net releases
997
998 # Files in devo used in any net release.
999 # ChangeLog omitted because it may refer to files which are not in this
1000 # distribution (perhaps it would be better to include it anyway).
1001 DEVO_SUPPORT= README Makefile.in configure configure.in \
1002 config.guess config.sub config move-if-change \
1003 COPYING COPYING.LIB install.sh
1004
1005 # Files in devo/etc used in any net release.
1006 # ChangeLog omitted because it may refer to files which are not in this
1007 # distribution (perhaps it would be better to include it anyway).
1008 ETC_SUPPORT= Makefile.in cfg-paper.texi configure.in configure.man \
1009 configure.texi standards.texi make-stds.texi
1010
1011 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob sim
1012 GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS)
1013
1014 .PHONY: setup-dirs-gdb gdb.tar.gz make-gdb.tar.gz
1015 setup-dirs-gdb:
1016 $(start-sanitize-Sanitize)
1017 @if [ -f .Sanitize ] ; then echo "RUN Sanitize FIRST!" ; false ; fi ;
1018 $(end-sanitize-Sanitize)
1019 ./configure sun4
1020 $(MAKE) clean
1021 ./configure -rm sun4
1022 chmod og=u `find etc $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1023
1024 gdb.tar.gz: setup-dirs-gdb
1025 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir BISON="byacc")
1026 (cd gdb; $(MAKE) -f Makefile.in make-proto-testsuite.dir)
1027 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.gz
1028
1029 make-gdb.tar.gz: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/texinfo.tex
1030 rm -rf proto-toplev; mkdir proto-toplev
1031 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
1032 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
1033 ln -s ../$$i . ; \
1034 done)
1035 mkdir proto-toplev/etc
1036 (cd proto-toplev/etc; for i in $(ETC_SUPPORT); do \
1037 ln -s ../../etc/$$i . ; \
1038 done)
1039 # Put only one copy (four hard links) of COPYING in the tar file.
1040 rm proto-toplev/bfd/COPYING
1041 ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING
1042 rm proto-toplev/include/COPYING
1043 ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING
1044 rm proto-toplev/readline/COPYING
1045 ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING
1046
1047 # Change the bug reporting address in configure to bug-gdb
1048 rm proto-toplev/configure
1049 sed -e 's/configure@cygnus.com/bug-gdb@prep.ai.mit.edu/' \
1050 <configure >proto-toplev/configure
1051 chmod a+x proto-toplev/configure
1052
1053 # Take out texinfo and glob from configurable dirs
1054 rm proto-toplev/configure.in
1055 sed -e '/^host_tools=/s/texinfo //' \
1056 -e '/^host_libs=/s/glob //' \
1057 <configure.in >proto-toplev/configure.in
1058
1059 # Take out texinfo from a few places; make simple BISON=bison line.
1060 rm proto-toplev/Makefile.in
1061 sed -e '/^all\.normal: /s/\all-texinfo //' \
1062 -e '/^ install-texinfo /d' \
1063 -e '/^BISON = /,/^$$/d' \
1064 -e '/^# BISON:/s/.*/BISON = bison -y/' \
1065 <Makefile.in >proto-toplev/Makefile.in
1066
1067 mkdir proto-toplev/texinfo
1068 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
1069 ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
1070 ln -s ../../texinfo/tex3patch proto-toplev/texinfo/
1071 chmod og=u `find proto-toplev -print`
1072 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1073 echo "==> Making gdb-$$VER.tar.gz"; \
1074 rm -f gdb-$$VER; ln -s proto-toplev gdb-$$VER; \
1075 tar cfh - gdb-$$VER \
1076 | $(GZIPPROG) -v -9 >gdb-$$VER.tar.gz)
1077
1078 # Make the testsuite archive separately.
1079 ln -s ../../gdb/proto-testsuite.dir/testsuite proto-toplev/gdb/testsuite
1080 # Blow away the Chill test that requires a Chill compiled executable,
1081 # since GNU Chill is not yet publically available.
1082 rm -rf proto-toplev/gdb/testsuite/gdb.t31
1083
1084 # Put a copy of COPYING in the tar file.
1085 ln proto-toplev/gdb/COPYING proto-toplev/gdb/testsuite/COPYING
1086 chmod og=u `find proto-toplev/gdb/testsuite -print`
1087 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1088 echo "==> Making gdb-$$VER-testsuite.tar.gz"; \
1089 tar cfh - gdb-$$VER/configure gdb-$$VER/config.guess \
1090 gdb-$$VER/config.sub gdb-$$VER/move-if-change \
1091 gdb-$$VER/gdb/testsuite \
1092 | $(GZIPPROG) -v -9 >gdb-$$VER-testsuite.tar.gz)
1093
1094 # When you use `make setup-dirs' or `make taz' you should always redefine
1095 # this macro.
1096 SUPPORT_FILES = list-of-support-files-for-tool-in-question
1097 # Directories that might want `make diststuff' run.
1098 DISTSTUFFDIRS= ld gprof gdb libg++ binutils gnats
1099 # Files where "byacc" (Cygnus version) should be changed to "bison -y" (FSF).
1100 DISTBISONFILES= binutils/Makefile.in gas/Makefile.in gdb/Makefile.in
1101 # Directories where "info" should be built.
1102 DISTDOCDIRS= ld gprof binutils gas bfd libg++ libio gdb gnats send-pr
1103
1104 .PHONY: taz
1105
1106 taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
1107 texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1108 # Make sure "diststuff" files get built properly.
1109 for f in $(DISTBISONFILES) ; do \
1110 if [ -r $$f ]; then \
1111 sed '/^BISON *=.*$$/s/.*/BISON = bison -y/' <$$f >tmp ; \
1112 mv -f tmp $$f ; \
1113 else true; fi ; \
1114 done
1115 # Take out texinfo from a few places; make simple BISON=bison line.
1116 sed -e '/^all\.normal: /s/\all-texinfo //' \
1117 -e '/^ install-texinfo /d' \
1118 -e '/^BISON = /,/^$$/d' \
1119 -e '/^# BISON:/s/.*/BISON = bison -y/' \
1120 <Makefile.in >tmp
1121 mv -f tmp Makefile.in
1122 #
1123 ./configure sun4
1124 # Doc files don't change; include them in distribution.
1125 for f in $(DISTDOCDIRS) ; do \
1126 if [ -r $$f/Makefile ]; then \
1127 (cd $$f ; $(MAKE) info) || exit 1 ; \
1128 else true ; fi ; \
1129 done
1130 # Make links, and run "make diststuff" when needed.
1131 # The `echo' for setting `p' is to convert all whitespace to spaces.
1132 # Then the `case' further below should tell whether $$d is in
1133 # DISTSTUFFDIRS.
1134 rm -rf proto-toplev ; mkdir proto-toplev
1135 set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1136 p=" `echo $(DISTSTUFFDIRS)` " ; \
1137 for d in $$dirs ; do \
1138 if [ -d $$d ]; then \
1139 case " $$p " in \
1140 *" $$d "*) \
1141 echo making diststuff in $$d ; \
1142 (cd $$d ; pwd ; $(MAKE) diststuff ) || exit 1 ;; \
1143 esac ; \
1144 if [ -d $$d/proto-$$d.dir ]; then \
1145 ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1146 else \
1147 ln -s ../$$d proto-toplev/$$d ; \
1148 fi ; \
1149 else ln -s ../$$d proto-toplev/$$d ; fi ; \
1150 done
1151 $(MAKE) distclean
1152 #
1153 mkdir proto-toplev/etc
1154 (cd proto-toplev/etc; for i in $(ETC_SUPPORT); do \
1155 ln -s ../../etc/$$i . ; \
1156 done)
1157 #
1158 # Take out texinfo and glob from configurable dirs
1159 rm proto-toplev/configure.in
1160 sed -e '/^host_tools=/s/texinfo //' \
1161 -e '/^host_libs=/s/glob //' \
1162 <configure.in >proto-toplev/configure.in
1163 #
1164 mkdir proto-toplev/texinfo
1165 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
1166 ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
1167 ln -s ../../texinfo/lgpl.texinfo proto-toplev/texinfo/
1168 ln -s ../../texinfo/tex3patch proto-toplev/texinfo/
1169 chmod og=u `find . -print`
1170 (VER=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
1171 echo "==> Making $(TOOL)-$$VER.tar.gz"; \
1172 rm -f $(TOOL)-$$VER; ln -s proto-toplev $(TOOL)-$$VER; \
1173 tar cfh - $(TOOL)-$$VER \
1174 | $(GZIPPROG) -v -9 >$(TOOL)-$$VER.tar.gz )
1175
1176 TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1177 DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
1178
1179 .PHONY: gas.tar.gz
1180 GAS_SUPPORT_DIRS= bfd include libiberty opcodes
1181 gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
1182 $(MAKE) -f Makefile.in taz TOOL=gas \
1183 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
1184
1185 # The FSF "binutils" release includes gprof and ld.
1186 .PHONY: binutils.tar.gz
1187 BINUTILS_SUPPORT_DIRS= bfd include libiberty opcodes ld gprof
1188 binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
1189 $(MAKE) -f Makefile.in taz TOOL=binutils \
1190 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)"
1191
1192 .PHONY: gas+binutils.tar.gz
1193 GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
1194 gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
1195 $(MAKE) -f Makefile.in taz TOOL=gas \
1196 SUPPORT_FILES="$(GASB_SUPPORT_DIRS)"
1197
1198 .PHONY: libg++.tar.gz
1199 LIBGXX_SUPPORT_DIRS=include libio libiberty xiberty
1200 libg++.tar.gz: $(DIST_SUPPORT) libg++
1201 $(MAKE) -f Makefile.in taz TOOL=libg++ \
1202 SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)"
1203
1204 GNATS_SUPPORT_DIRS=include libiberty send-pr
1205 gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
1206 $(MAKE) -f Makefile.in taz TOOL=gnats \
1207 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
1208
1209 .NOEXPORT:
1210 MAKEOVERRIDES=
1211
1212 # start-sanitize-chill
1213 ## This is ugly, but I don't want GNU make to put these variables in
1214 ## the environment. Older makes will see this as a set of targets
1215 ## with no dependencies and no actions.
1216 unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
1217 # end-sanitize-chill
1218
1219 # end of Makefile.in