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