2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991, 1992 Free Software Foundation
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.
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.
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. */
24 exec_prefix = $(prefix)
25 bindir = $(exec_prefix)/bin
26 libdir = $(exec_prefix)/lib
29 program_transform_name
=
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
49 INSTALL_PROGRAM
= $(INSTALL
)
50 INSTALL_DATA
= $(INSTALL
)
59 GCC_FOR_TARGET
= .
/gcc
-B.
/
63 BISON
= `if [ -f $${rootme}/byacc/byacc ] ; \
64 then echo $${rootme}/byacc/byacc ; \
68 LEX
= `if [ -f $${rootme}/flex/flex ] ; \
69 then echo $${rootme}/flex/flex ; \
72 MAKEINFO
= `if [ -f $${rootme}/texinfo/C/makeinfo ] ; \
73 then echo $${rootme}/texinfo/C/makeinfo ; \
74 else echo makeinfo ; fi`
76 # compilers to use to create programs which must be run in the build
79 CXX_FOR_BUILD
= $(CXX
)
81 SUBDIRS
= libiberty mmalloc glob readline opcodes bfd h8300sim z8ksim gdb binutils
ld gas tgas gcc libg
++ newlib chillrt deja-gnu
85 INSTALL_TARGET
= install.
all
91 if [ -f $${rootme}/gcc/Makefile ] ; then \
92 echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \
94 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
97 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
102 if [ -f $${rootme}/gcc/Makefile ] ; then \
103 echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \
105 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
108 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
113 if [ -f $${rootme}/gas/Makefile ] ; then \
114 echo $${rootme}/gas/as.new ; \
116 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
119 t='$(program_transform_name)'; echo as | sed -e '' $$t ; \
124 if [ -f $${rootme}/binutils/Makefile ] ; then \
125 echo $${rootme}/binutils/ar ; \
127 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
130 t='$(program_transform_name)'; echo ar | sed -e '' $$t ; \
134 RANLIB_FOR_TARGET
= ` \
135 if [ -f $${rootme}/binutils/Makefile ] ; then \
136 echo $${rootme}/binutils/ranlib ; \
138 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
141 t='$(program_transform_name)'; echo ranlib | sed -e '' $$t ; \
146 if [ -f $${rootme}/binutils/Makefile ] ; then \
147 echo $${rootme}/binutils/nm ; \
149 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
152 t='$(program_transform_name)'; echo nm | sed -e '' $$t ; \
157 if [ -f $${rootme}/gcc/Makefile ] ; then \
158 if [ -f $${rootme}/newlib/Makefile ] ; then \
159 echo -I$${rootme}/newlib/targ-include -I$${srcroot}/newlib/libc/include -I$${rootme}/gcc/include -nostdinc ; \
161 echo -I$${rootme}/gcc/include ; \
168 #### host and target specific makefile fragments come in here.
171 # Flags to pass down to sub-makes -- please keep these in alphabetical order
174 "AR_FLAGS=$(AR_FLAGS)" \
175 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
177 "CXXFLAGS=$(CXXFLAGS)" \
178 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
180 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
182 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
183 "INSTALL=$(INSTALL)" \
184 "INSTALL_DATA=$(INSTALL_DATA)" \
185 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
186 "LDFLAGS=$(LDFLAGS)" \
188 "LOADLIBES=$(LOADLIBES)" \
189 "MAKEINFO=$(MAKEINFO)" \
191 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
192 "exec_prefix=$(exec_prefix)" \
196 # Flags that are concerned with the location of the X11 include files
198 X11_FLAGS_TO_PASS
= \
199 "X11_INCLUDE_FLAGS=$(X11_INCLUDE_FLAGS)" \
200 "X11_LIB_FLAGS=$(X11_LIB_FLAGS)"
202 # Flags to pass down to makes which are built with the target
203 # environment (e.g. libg++, xiberty, newlib, chillrt). -- keep these in alpha order please
204 TARGET_FLAGS_TO_PASS
= \
205 "AR=$(AR_FOR_TARGET)" \
206 "AR_FLAGS=$(AR_FLAGS)" \
207 "AS=$(AS_FOR_TARGET)" \
209 "CXX=$(CXX_FOR_TARGET)" \
210 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
211 "CXXFLAGS=$(CXXFLAGS)" \
212 "CC=$(CC_FOR_TARGET)" \
213 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
215 "INSTALL=$(INSTALL)" \
216 "INSTALL_DATA=$(INSTALL_DATA)" \
217 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
218 "LDFLAGS=$(LDFLAGS)" \
220 "LOADLIBES=$(LOADLIBES)" \
221 "MAKEINFO=$(MAKEINFO)" \
222 "NM=$(NM_FOR_TARGET)" \
223 "RANLIB=$(RANLIB_FOR_TARGET)" \
224 "XTRAFLAGS=$(XTRAFLAGS)" \
225 "exec_prefix=$(exec_prefix)" \
229 # The first rule in the file had better be this one. Don't put any above it.
232 .PHONY
: all check dvi info install-info
236 @rootme
=`pwd` ; export rootme
; \
237 $(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
239 install-info
: install-info-dirs
force
240 -parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
241 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
242 -if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
243 @rootme
='pwd' ; export rootme
; $(MAKE
) $(FLAGS_TO_PASS
) DO
=install-info
"DODIRS=$(SUBDIRS)" subdir_do
244 @rootme
='pwd' ; export rootme
; $(MAKE
) $(FLAGS_TO_PASS
) dir.
info install-dir.
info
247 -parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
248 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
249 -if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
250 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info
252 all.normal
: all-m4 all-autoconf all-libiberty all-mmalloc all-texinfo \
253 all-byacc all-flex all-opcodes all-bfd all-ld all-gas all-tgas \
254 all-gcc all-binutils all-libg
++ all-readline all-z8ksim all-h8300sim all-gdb \
255 all-make all-rcs all-cvs all-diff all-grep \
256 all-patch all-emacs all-ispell all-etc \
257 all-tcl all-tk all-expect \
258 all-newlib all-chillrt all-gprof all-send_pr all-libm all-deja-gnu \
259 all-fileutils all-find all-gawk all-sed all-shellutils \
260 all-textutils all-time all-wdiff
263 all.cross
: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
264 all-opcodes all-z8ksim all-h8300sim all-bfd all-readline all-gdb all-binutils all-gcc \
265 all-newlib all-chillrt all-deja-gnu
267 .PHONY
: clean distclean mostlyclean realclean do_clean
270 -rm -f
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
272 clean mostlyclean: do_clean
273 @rootme
=`pwd` ; export rootme
; \
274 $(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
276 distclean realclean: do_clean
277 @rootme
=`pwd` ; export rootme
; \
278 $(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
279 -rm -f Makefile config.status
282 @echo
"the uninstall target is not supported in this tree"
284 install: $(INSTALL_TARGET
)
285 -parent
=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
286 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
287 -if
[ -d
$(man1dir) ] ; then true
; else mkdir
$(man1dir) ; fi
289 install.
all: install-no-fixedincludes
290 @if
[ -f .
/gcc
/Makefile
] ; then \
291 rootme
=`pwd` ; export rootme
; \
293 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
298 install-no-fixedincludes
: install-dirs gcc-no-fixedincludes \
334 install-fileutils install-find install-gawk install-m4 install-sed install-shellutils \
335 install-textutils install-time install-wdiff
337 gcc-no-fixedincludes
:
338 @if
[ -f .
/gcc
/Makefile
] ; then \
339 rootme
=`pwd` ; export rootme
; \
341 $(MAKE
) $(FLAGS_TO_PASS
) install install-man \
342 "INSTALL_HEADERS=install-common-headers install-float-h install-limits-h") ; \
347 install.cross
: install-dirs install-libiberty install-mmalloc \
348 install-binutils install-opcodes install-byacc install-flex \
349 install-ld install-gas install-readline \
350 install-glob install-gdb install-mmalloc \
351 install-newlib install-chillrt install-gcc install-etc install-deja-gnu
355 @if
[ -f .
/deja-gnu
/Makefile
] ; then \
356 rootme
=`pwd` ; export rootme
; \
357 (cd .
/deja-gnu
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
362 install-deja-gnu
: force
363 @if
[ -f .
/deja-gnu
/Makefile
] ; then \
364 rootme
=`pwd` ; export rootme
; \
365 (cd .
/deja-gnu
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
372 @if
[ -f .
/autoconf
/Makefile
] ; then \
373 rootme
=`pwd` ; export rootme
; \
374 (cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
379 install-autoconf
: force
380 @if
[ -f .
/autoconf
/Makefile
] ; then \
381 rootme
=`pwd` ; export rootme
; \
382 (cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
389 @if
[ -f .
/etc
/Makefile
] ; then \
390 rootme
=`pwd` ; export rootme
; \
391 (cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
397 @if
[ -f .
/etc
/Makefile
] ; then \
398 rootme
=`pwd` ; export rootme
; \
399 (cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
406 @if
[ -f .
/libiberty
/Makefile
] ; then \
407 rootme
=`pwd` ; export rootme
; \
409 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
414 install-libiberty
: force
415 @if
[ -f .
/libiberty
/Makefile
] ; then \
416 rootme
=`pwd` ; export rootme
; \
418 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
424 all-xiberty
: all-gcc all-newlib
425 @if
[ -f .
/xiberty
/Makefile
] ; then \
426 rootme
=`pwd` ; export rootme
; \
427 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
429 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all) ; \
434 install-xiberty
: force
435 @if
[ -f .
/xiberty
/Makefile
] ; then \
436 rootme
=`pwd` ; export rootme
; \
437 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
439 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install) ; \
446 @if
[ -f .
/mmalloc
/Makefile
] ; then \
447 rootme
=`pwd` ; export rootme
; \
449 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
454 install-mmalloc
: force
455 @if
[ -f .
/mmalloc
/Makefile
] ; then \
456 rootme
=`pwd` ; export rootme
; \
458 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
464 all-texinfo
: all-libiberty
465 @if
[ -f .
/texinfo
/Makefile
] ; then \
466 rootme
=`pwd` ; export rootme
; \
468 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
473 install-texinfo
: force
474 @if
[ -f .
/texinfo
/Makefile
] ; then \
475 rootme
=`pwd` ; export rootme
; \
477 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
484 @if
[ -f .
/bfd
/Makefile
] ; then \
485 rootme
=`pwd` ; export rootme
; \
487 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
493 @if
[ -f .
/bfd
/Makefile
] ; then \
494 rootme
=`pwd` ; export rootme
; \
496 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
504 @if
[ -f .
/opcodes
/Makefile
] ; then \
505 rootme
=`pwd` ; export rootme
; \
507 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
512 install-opcodes
: force
513 @if
[ -f .
/opcodes
/Makefile
] ; then \
514 rootme
=`pwd` ; export rootme
; \
516 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
522 all-binutils
: all-opcodes all-libiberty all-bfd all-flex
523 @if
[ -f .
/binutils
/Makefile
] ; then \
524 rootme
=`pwd` ; export rootme
; \
526 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
531 install-binutils
: force
532 @if
[ -f .
/binutils
/Makefile
] ; then \
533 rootme
=`pwd` ; export rootme
; \
535 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
541 all-newlib
: all-binutils all-ld all-gas all-gcc
542 @if
[ -f .
/newlib
/Makefile
] ; then \
543 rootme
=`pwd` ; export rootme
; \
544 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
546 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all) ; \
551 install-newlib
: force
552 @if
[ -f .
/newlib
/Makefile
] ; then \
553 rootme
=`pwd` ; export rootme
; \
554 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
556 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install) ; \
561 ### start-sanitize-chill
563 all-chillrt
: all-binutils all-ld all-gas all-gcc
564 @if
[ -f .
/chillrt
/Makefile
] ; then \
565 rootme
=`pwd` ; export rootme
; \
566 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
568 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all) ; \
573 install-chillrt
: force
574 @if
[ -f .
/chillrt
/Makefile
] ; then \
575 rootme
=`pwd` ; export rootme
; \
576 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
578 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install) ; \
582 ### end-sanitize-chill
585 all-gprof
: all-libiberty all-bfd
586 @if
[ -f .
/gprof
/Makefile
] ; then \
587 rootme
=`pwd` ; export rootme
; \
589 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
595 @if
[ -f .
/gprof
/Makefile
] ; then \
596 rootme
=`pwd` ; export rootme
; \
598 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
605 @if
[ -f .
/byacc
/Makefile
] ; then \
606 rootme
=`pwd` ; export rootme
; \
608 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
614 @if
[ -f .
/byacc
/Makefile
] ; then \
615 rootme
=`pwd` ; export rootme
; \
617 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
623 all-flex
: all-libiberty
624 @if
[ -f .
/flex
/Makefile
] ; then \
625 rootme
=`pwd` ; export rootme
; \
627 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
633 @if
[ -f .
/flex
/Makefile
] ; then \
634 rootme
=`pwd` ; export rootme
; \
636 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
641 all-gcc
: all-libiberty all-byacc all-binutils
642 @if
[ -f .
/gcc
/Makefile
] ; then \
643 rootme
=`pwd` ; export rootme
; \
645 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
651 @if
[ -f .
/gcc
/Makefile
] ; then \
652 rootme
=`pwd` ; export rootme
; \
654 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
661 @if
[ -f .
/readline
/Makefile
] ; then \
662 rootme
=`pwd` ; export rootme
; \
664 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
669 install-readline
: force
670 @if
[ -f .
/readline
/Makefile
] ; then \
671 rootme
=`pwd` ; export rootme
; \
673 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
680 @if
[ -f .
/glob
/Makefile
] ; then \
681 rootme
=`pwd` ; export rootme
; \
683 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
689 @if
[ -f .
/glob
/Makefile
] ; then \
690 rootme
=`pwd` ; export rootme
; \
692 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
698 all-gas
: all-libiberty all-opcodes all-bfd
699 @if
[ -f .
/gas
/Makefile
] ; then \
700 rootme
=`pwd` ; export rootme
; \
702 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
708 @if
[ -f .
/gas
/Makefile
] ; then \
709 rootme
=`pwd` ; export rootme
; \
711 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
717 all-tgas
: all-libiberty all-bfd
718 @if
[ -f .
/tgas
/Makefile
] ; then \
719 rootme
=`pwd` ; export rootme
; \
721 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
728 all-ld
: all-libiberty all-bfd all-byacc all-flex
729 @if
[ -f .
/ld/Makefile
] ; then \
730 rootme
=`pwd` ; export rootme
; \
732 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
738 @if
[ -f .
/ld/Makefile
] ; then \
739 rootme
=`pwd` ; export rootme
; \
741 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
747 all-gdb
: all-bfd all-opcodes all-libiberty all-mmalloc all-readline all-glob all-byacc
748 @if
[ -f .
/gdb
/Makefile
] ; then \
749 rootme
=`pwd` ; export rootme
; \
751 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
757 @if
[ -f .
/gdb
/Makefile
] ; then \
758 rootme
=`pwd` ; export rootme
; \
760 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
766 all-make
: all-libiberty
767 @if
[ -f .
/make
/Makefile
] ; then \
768 rootme
=`pwd` ; export rootme
; \
770 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
776 @if
[ -f .
/make
/Makefile
] ; then \
777 rootme
=`pwd` ; export rootme
; \
779 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
786 @if
[ -f .
/diff
/Makefile
] ; then \
787 rootme
=`pwd` ; export rootme
; \
789 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
795 @if
[ -f .
/diff
/Makefile
] ; then \
796 rootme
=`pwd` ; export rootme
; \
798 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
805 @if
[ -f .
/grep
/Makefile
] ; then \
806 rootme
=`pwd` ; export rootme
; \
808 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
814 @if
[ -f .
/grep
/Makefile
] ; then \
815 rootme
=`pwd` ; export rootme
; \
817 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
824 @if
[ -f .
/rcs
/Makefile
] ; then \
825 rootme
=`pwd` ; export rootme
; \
827 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
833 @if
[ -f .
/rcs
/Makefile
] ; then \
834 rootme
=`pwd` ; export rootme
; \
836 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
843 @if
[ -f .
/cvs
/Makefile
] ; then \
844 rootme
=`pwd` ; export rootme
; \
846 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
852 @if
[ -f .
/cvs
/Makefile
] ; then \
853 rootme
=`pwd` ; export rootme
; \
855 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
862 @if
[ -f .
/patch
/Makefile
] ; then \
863 rootme
=`pwd` ; export rootme
; \
865 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
871 @if
[ -f .
/patch
/Makefile
] ; then \
872 rootme
=`pwd` ; export rootme
; \
874 $(MAKE
) $(FLAGS_TO_PASS
) \
876 man1dir=$(man1dir) install) ; \
883 @if
[ -f .
/emacs
/Makefile
] ; then \
884 rootme
=`pwd` ; export rootme
; \
886 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) all) ; \
892 @if
[ -f .
/emacs
/Makefile
] ; then \
893 rootme
=`pwd` ; export rootme
; \
895 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install) ; \
901 all-ispell
: all-emacs
902 @if
[ -f .
/ispell
/Makefile
] ; then \
903 rootme
=`pwd` ; export rootme
; \
905 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
910 install-ispell
: force
911 @if
[ -f .
/ispell
/Makefile
] ; then \
912 rootme
=`pwd` ; export rootme
; \
914 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
921 @if
[ -f .
/send_pr
/Makefile
] ; then \
922 rootme
=`pwd` ; export rootme
; \
924 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
929 install-send_pr
: force
930 @if
[ -f .
/send_pr
/Makefile
] ; then \
931 rootme
=`pwd` ; export rootme
; \
933 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
940 @if
[ -f .
/libm
/Makefile
] ; then \
941 rootme
=`pwd` ; export rootme
; \
943 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all) ; \
949 @if
[ -f .
/libm
/Makefile
] ; then \
950 rootme
=`pwd` ; export rootme
; \
952 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install) ; \
959 all-libg
++: all-gas all-ld all-gcc all-xiberty all-newlib
960 @if
[ -f .
/libg
++/Makefile
] ; then \
961 rootme
=`pwd` ; export rootme
; \
962 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
964 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all) ; \
969 install-libg
++: force
970 @if
[ -f .
/libg
++/Makefile
] ; then \
971 rootme
=`pwd` ; export rootme
; \
972 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
974 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install) ; \
980 @if
[ -f .
/tcl
/Makefile
] ; then \
981 rootme
=`pwd` ; export rootme
; \
982 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
984 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
990 @if
[ -f .
/tcl
/Makefile
] ; then \
991 rootme
=`pwd` ; export rootme
; \
992 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
994 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1002 @if
[ -f .
/tk
/Makefile
] ; then \
1003 rootme
=`pwd` ; export rootme
; \
1004 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1006 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) all) ; \
1012 @if
[ -f .
/tk
/Makefile
] ; then \
1013 rootme
=`pwd` ; export rootme
; \
1014 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1016 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install) ; \
1023 @if
[ -f .
/expect
/Makefile
] ; then \
1024 rootme
=`pwd` ; export rootme
; \
1025 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1027 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1032 install-expect
: force
1033 @if
[ -f .
/expect
/Makefile
] ; then \
1034 rootme
=`pwd` ; export rootme
; \
1035 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1037 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1044 @if
[ -f .
/z8ksim
/Makefile
] ; then \
1045 rootme
=`pwd` ; export rootme
; \
1047 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1052 install-z8ksim
: force
1053 @if
[ -f .
/z8ksim
/Makefile
] ; then \
1054 rootme
=`pwd` ; export rootme
; \
1056 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1062 all-h8300sim
: all-bfd
1063 @if
[ -f .
/h8300sim
/Makefile
] ; then \
1064 rootme
=`pwd` ; export rootme
; \
1066 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1071 install-h8300sim
: force
1072 @if
[ -f .
/h8300sim
/Makefile
] ; then \
1073 rootme
=`pwd` ; export rootme
; \
1075 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1082 all-fileutils
: force
1083 @if
[ -f .
/fileutils
/Makefile
] ; then \
1084 rootme
=`pwd` ; export rootme
; \
1085 (cd .
/fileutils
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1090 install-fileutils
: force
1091 @if
[ -f .
/fileutils
/Makefile
] ; then \
1092 rootme
=`pwd` ; export rootme
; \
1093 (cd .
/fileutils
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1100 @if
[ -f .
/find
/Makefile
] ; then \
1101 rootme
=`pwd` ; export rootme
; \
1102 (cd .
/find
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1108 @if
[ -f .
/find
/Makefile
] ; then \
1109 rootme
=`pwd` ; export rootme
; \
1110 (cd .
/find
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1117 @if
[ -f .
/gawk
/Makefile
] ; then \
1118 rootme
=`pwd` ; export rootme
; \
1119 (cd .
/gawk
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1125 @if
[ -f .
/gawk
/Makefile
] ; then \
1126 rootme
=`pwd` ; export rootme
; \
1127 (cd .
/gawk
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1133 all-m4
: all-libiberty
1134 @if
[ -f .
/m4
/Makefile
] ; then \
1135 rootme
=`pwd` ; export rootme
; \
1136 (cd .
/m4
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1142 @if
[ -f .
/m4
/Makefile
] ; then \
1143 rootme
=`pwd` ; export rootme
; \
1144 (cd .
/m4
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1151 @if
[ -f .
/sed
/Makefile
] ; then \
1152 rootme
=`pwd` ; export rootme
; \
1153 (cd .
/sed
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1159 @if
[ -f .
/sed
/Makefile
] ; then \
1160 rootme
=`pwd` ; export rootme
; \
1161 (cd .
/sed
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1168 @if
[ -f .
/time
/Makefile
] ; then \
1169 rootme
=`pwd` ; export rootme
; \
1170 (cd .
/time
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1176 @if
[ -f .
/time
/Makefile
] ; then \
1177 rootme
=`pwd` ; export rootme
; \
1178 (cd .
/time
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1185 @if
[ -f .
/wdiff
/Makefile
] ; then \
1186 rootme
=`pwd` ; export rootme
; \
1187 (cd .
/wdiff
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1192 install-wdiff
: force
1193 @if
[ -f .
/wdiff
/Makefile
] ; then \
1194 rootme
=`pwd` ; export rootme
; \
1195 (cd .
/wdiff
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1201 all-shellutils
: force
1202 @if
[ -f .
/shellutils
/Makefile
] ; then \
1203 rootme
=`pwd` ; export rootme
; \
1204 (cd .
/shellutils
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1209 install-shellutils
: force
1210 @if
[ -f .
/shellutils
/Makefile
] ; then \
1211 rootme
=`pwd` ; export rootme
; \
1212 (cd .
/shellutils
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1218 all-textutils
: force
1219 @if
[ -f .
/textutils
/Makefile
] ; then \
1220 rootme
=`pwd` ; export rootme
; \
1221 (cd .
/textutils
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1226 install-textutils
: force
1227 @if
[ -f .
/textutils
/Makefile
] ; then \
1228 rootme
=`pwd` ; export rootme
; \
1229 (cd .
/textutils
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1236 ### other supporting targets
1239 @for i in
$(DODIRS
); do \
1240 if
[ -f .
/$$i/localenv
] ||
[ -f .
/$$i/Makefile
] ; then \
1242 libg
++ | xiberty | newlib | chillrt
) \
1243 if
(rootme
=`pwd` ; export rootme
; \
1244 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
1246 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1250 if
(rootme
=`pwd` ; export rootme
; \
1252 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1259 # The "else true" stuff is for Ultrix; the shell returns the exit code
1260 # of the "if" command, if no commands are run in the "then" or "else" part,
1261 # causing Make to quit.
1285 for i in
$(MAKEDIRS
) ; do \
1286 echo Making
$$i...
; \
1287 parent
=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
1288 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
; \
1289 if
[ ! -d
$$i ] ; then \
1290 if mkdir
$$i ; then \
1301 if
[ -d
$(prefix) ] ; then true
; else mkdir
$(prefix) ; fi
1304 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
1305 mv
-f
dir.
info.new
dir.
info
1308 @echo
"Building a full distribution of this tree isn't done"
1309 @echo
"via 'make dist'. Check out the etc/ subdirectory"
1318 @for i in
$(SUBDIRS
); \
1322 wd
=`basename $$pwd`; \
1323 for j in
`$(MAKE) ls`; \
1331 # with the gnu make, this is done automatically.
1333 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
1334 $(SHELL
) .
/config.status
1337 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1339 DEVO_SUPPORT
= README cfg-paper.texi Makefile.in configure configure.in \
1340 config.sub config configure.man configure.texi move-if-change \
1342 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc opcodes readline glob
1343 GDB_SUPPORT_FILES
= $(GDB_SUPPORT_DIRS
) texinfo
/fsf
/texinfo.
tex
1348 .
/configure
-rm sun4
1349 chmod og
=u
`find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1351 gdb.
tar.Z
: setup-dirs
1352 (cd gdb
; $(MAKE
) -f Makefile.in make-proto-gdb.
dir)
1353 $(MAKE
) $(MFLAGS
) -f Makefile.in make-gdb.
tar.Z
1355 make-gdb.
tar.Z
: $(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb texinfo
/fsf
/texinfo.
tex
1356 rm -rf proto-toplev
; mkdir proto-toplev
1357 ln
-s ..
/gdb
/proto-gdb.
dir proto-toplev
/gdb
1358 (cd proto-toplev
; for i in
$(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
); do \
1361 # Put only one copy (four hard links) of COPYING in the tar file.
1362 rm proto-toplev
/bfd
/COPYING
1363 ln proto-toplev
/gdb
/COPYING proto-toplev
/bfd
/COPYING
1364 rm proto-toplev
/include/COPYING
1365 ln proto-toplev
/gdb
/COPYING proto-toplev
/include/COPYING
1366 rm proto-toplev
/readline
/COPYING
1367 ln proto-toplev
/gdb
/COPYING proto-toplev
/readline
/COPYING
1368 # Take out texinfo from configurable dirs
1369 rm proto-toplev
/configure.in
1370 sed
'/^configdirs=/s/texinfo //' <configure.in
>proto-toplev
/configure.in
1371 # Take out glob from buildable dirs
1372 rm proto-toplev
/Makefile.in
1374 sed
-e
'/^SUBDIRS =/s/glob //' \
1375 -e
'/^all\.normal: /s/\all-texinfo //' \
1376 -e
'/^clean: /s/clean-texinfo //' \
1377 -e
'/^install\.all: /s/install-texinfo //' \
1378 <Makefile.in
>proto-toplev
/Makefile.in
1380 mkdir proto-toplev
/texinfo
1381 mkdir proto-toplev
/texinfo
/fsf
1382 ln
-s ..
/..
/..
/texinfo
/fsf
/texinfo.
tex proto-toplev
/texinfo
/fsf
/
1383 chmod og
=u
`find proto-toplev -print`
1384 (VER
=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1385 echo
"==> Making gdb-$$VER.tar.Z"; \
1386 ln
-s proto-toplev gdb-
$$VER; \
1387 tar cfh
- gdb-
$$VER \
1388 | compress
-v
>gdb-
$$VER.
tar.Z
)
1391 # end of Makefile.in