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
)
62 BISON
= `if [ -f $${rootme}/byacc/byacc ] ; \
63 then echo $${rootme}/byacc/byacc ; \
67 LEX
= `if [ -f $${rootme}/flex/flex ] ; \
68 then echo $${rootme}/flex/flex ; \
71 MAKEINFO
= `if [ -f $${rootme}/texinfo/C/makeinfo ] ; \
72 then echo $${rootme}/texinfo/C/makeinfo ; \
73 else echo makeinfo ; fi`
75 # compilers to use to create programs which must be run in the build
78 CXX_FOR_BUILD
= $(CXX
)
80 SUBDIRS
= libiberty mmalloc glob readline opcodes bfd h8300sim z8ksim gdb binutils
ld gas tgas gcc libg
++ newlib deja-gnu
84 INSTALL_TARGET
= install.
all
90 if [ -f $${rootme}/gcc/Makefile ] ; then \
91 echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \
93 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
96 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
101 if [ -f $${rootme}/gcc/Makefile ] ; then \
102 echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \
104 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
107 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
112 if [ -f $${rootme}/gas/Makefile ] ; then \
113 echo $${rootme}/gas/as.new ; \
115 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
118 t='$(program_transform_name)'; echo as | sed -e '' $$t ; \
123 if [ -f $${rootme}/binutils/Makefile ] ; then \
124 echo $${rootme}/binutils/ar ; \
126 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
129 t='$(program_transform_name)'; echo ar | sed -e '' $$t ; \
133 RANLIB_FOR_TARGET
= ` \
134 if [ -f $${rootme}/binutils/Makefile ] ; then \
135 echo $${rootme}/binutils/ranlib ; \
137 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
140 t='$(program_transform_name)'; echo ranlib | sed -e '' $$t ; \
145 if [ -f $${rootme}/binutils/Makefile ] ; then \
146 echo $${rootme}/binutils/nm ; \
148 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
151 t='$(program_transform_name)'; echo nm | sed -e '' $$t ; \
156 if [ -f $${rootme}/gcc/Makefile ] ; then \
157 if [ -f $${rootme}/newlib/Makefile ] ; then \
158 echo -I$${rootme}/newlib/targ-include -I$${srcroot}/newlib/libc/include -I$${rootme}/gcc/include -nostdinc ; \
160 echo -I$${rootme}/gcc/include ; \
167 #### host and target specific makefile fragments come in here.
170 # Flags to pass down to sub-makes -- please keep these in alphabetical order
173 "AR_FLAGS=$(AR_FLAGS)" \
175 "CXXFLAGS=$(CXXFLAGS)" \
176 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
178 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
180 "INSTALL=$(INSTALL)" \
181 "INSTALL_DATA=$(INSTALL_DATA)" \
182 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
183 "LDFLAGS=$(LDFLAGS)" \
185 "LOADLIBES=$(LOADLIBES)" \
186 "MAKEINFO=$(MAKEINFO)" \
188 "exec_prefix=$(exec_prefix)" \
192 # Flags that are concerned with the location of the X11 include files
194 X11_FLAGS_TO_PASS
= \
195 "X11_INCLUDE_FLAGS=$(X11_INCLUDE_FLAGS)" \
196 "X11_LIB_FLAGS=$(X11_LIB_FLAGS)"
198 # Flags to pass down to makes which are built with the target
199 # environment (e.g. libg++, xiberty, newlib). -- keep these in alpha order please
200 TARGET_FLAGS_TO_PASS
= \
201 "AR=$(AR_FOR_TARGET)" \
202 "AR_FLAGS=$(AR_FLAGS)" \
203 "AS=$(AS_FOR_TARGET)" \
205 "CXX=$(CXX_FOR_TARGET)" \
206 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
207 "CXXFLAGS=$(CXXFLAGS)" \
208 "CC=$(CC_FOR_TARGET)" \
209 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
211 "INSTALL=$(INSTALL)" \
212 "INSTALL_DATA=$(INSTALL_DATA)" \
213 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
214 "LDFLAGS=$(LDFLAGS)" \
216 "LOADLIBES=$(LOADLIBES)" \
217 "MAKEINFO=$(MAKEINFO)" \
218 "NM=$(NM_FOR_TARGET)" \
219 "RANLIB=$(RANLIB_FOR_TARGET)" \
220 "XTRAFLAGS=$(XTRAFLAGS)" \
221 "exec_prefix=$(exec_prefix)" \
225 # The first rule in the file had better be this one. Don't put any above it.
228 .PHONY
: all check dvi info install-info
232 @rootme
=`pwd` ; export rootme
; \
233 $(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
235 install-info
: install-info-dirs
force
236 -parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
237 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
238 -if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
239 @rootme
='pwd' ; export rootme
; $(MAKE
) $(FLAGS_TO_PASS
) DO
=install-info
"DODIRS=$(SUBDIRS)" subdir_do
240 @rootme
='pwd' ; export rootme
; $(MAKE
) $(FLAGS_TO_PASS
) dir.
info install-dir.
info
243 -parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
244 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
245 -if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
246 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info
248 all.normal
: all-m4 all-autoconf all-libiberty all-mmalloc all-texinfo \
249 all-byacc all-flex all-opcodes all-bfd all-ld all-gas all-tgas \
250 all-gcc all-binutils all-libg
++ all-readline all-z8ksim all-h8300sim all-gdb \
251 all-make all-rcs all-cvs all-diff all-grep \
252 all-patch all-emacs all-ispell all-etc \
253 all-tcl all-tk all-expect \
254 all-newlib all-gprof all-send_pr all-libm all-deja-gnu \
255 all-fileutils all-find all-gawk all-sed all-shellutils \
256 all-textutils all-time all-wdiff
259 all.cross
: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
260 all-opcodes all-z8ksim all-h8300sim all-bfd all-readline all-gdb all-binutils all-gcc \
261 all-newlib all-deja-gnu
263 .PHONY
: clean distclean mostlyclean realclean do_clean
266 -rm -f
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
268 clean mostlyclean: do_clean
269 @rootme
=`pwd` ; export rootme
; \
270 $(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
272 distclean realclean: do_clean
273 @rootme
=`pwd` ; export rootme
; \
274 $(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
275 -rm -f Makefile config.status
278 @echo
"the uninstall target is not supported in this tree"
280 install: $(INSTALL_TARGET
)
281 -parent
=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
282 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
283 -if
[ -d
$(man1dir) ] ; then true
; else mkdir
$(man1dir) ; fi
285 install.
all: install-no-fixedincludes
286 @if
[ -f .
/gcc
/Makefile
] ; then \
287 rootme
=`pwd` ; export rootme
; \
289 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
294 install-no-fixedincludes
: install-dirs gcc-no-fixedincludes \
329 install-fileutils install-find install-gawk install-m4 install-sed install-shellutils \
330 install-textutils install-time install-wdiff
332 gcc-no-fixedincludes
:
333 @if
[ -f .
/gcc
/Makefile
] ; then \
334 rootme
=`pwd` ; export rootme
; \
336 $(MAKE
) $(FLAGS_TO_PASS
) install install-man \
337 "INSTALL_HEADERS=install-common-headers install-float-h install-limits-h") ; \
342 install.cross
: install-dirs install-libiberty install-mmalloc \
343 install-binutils install-opcodes install-byacc install-flex \
344 install-ld install-gas install-readline \
345 install-glob install-gdb install-mmalloc \
346 install-newlib install-gcc install-etc install-deja-gnu
350 @if
[ -f .
/deja-gnu
/Makefile
] ; then \
351 rootme
=`pwd` ; export rootme
; \
352 (cd .
/deja-gnu
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
357 install-deja-gnu
: force
358 @if
[ -f .
/deja-gnu
/Makefile
] ; then \
359 rootme
=`pwd` ; export rootme
; \
360 (cd .
/deja-gnu
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
367 @if
[ -f .
/autoconf
/Makefile
] ; then \
368 rootme
=`pwd` ; export rootme
; \
369 (cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
374 install-autoconf
: force
375 @if
[ -f .
/autoconf
/Makefile
] ; then \
376 rootme
=`pwd` ; export rootme
; \
377 (cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
384 @if
[ -f .
/etc
/Makefile
] ; then \
385 rootme
=`pwd` ; export rootme
; \
386 (cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
392 @if
[ -f .
/etc
/Makefile
] ; then \
393 rootme
=`pwd` ; export rootme
; \
394 (cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
401 @if
[ -f .
/libiberty
/Makefile
] ; then \
402 rootme
=`pwd` ; export rootme
; \
404 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
409 install-libiberty
: force
410 @if
[ -f .
/libiberty
/Makefile
] ; then \
411 rootme
=`pwd` ; export rootme
; \
413 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
419 all-xiberty
: all-gcc all-newlib
420 @if
[ -f .
/xiberty
/Makefile
] ; then \
421 rootme
=`pwd` ; export rootme
; \
422 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
424 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
429 install-xiberty
: force
430 @if
[ -f .
/xiberty
/Makefile
] ; then \
431 rootme
=`pwd` ; export rootme
; \
432 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
434 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
441 @if
[ -f .
/mmalloc
/Makefile
] ; then \
442 rootme
=`pwd` ; export rootme
; \
444 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
449 install-mmalloc
: force
450 @if
[ -f .
/mmalloc
/Makefile
] ; then \
451 rootme
=`pwd` ; export rootme
; \
453 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
459 all-texinfo
: all-libiberty
460 @if
[ -f .
/texinfo
/Makefile
] ; then \
461 rootme
=`pwd` ; export rootme
; \
463 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
468 install-texinfo
: force
469 @if
[ -f .
/texinfo
/Makefile
] ; then \
470 rootme
=`pwd` ; export rootme
; \
472 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
479 @if
[ -f .
/bfd
/Makefile
] ; then \
480 rootme
=`pwd` ; export rootme
; \
482 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
488 @if
[ -f .
/bfd
/Makefile
] ; then \
489 rootme
=`pwd` ; export rootme
; \
491 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
499 @if
[ -f .
/opcodes
/Makefile
] ; then \
500 rootme
=`pwd` ; export rootme
; \
502 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
507 install-opcodes
: force
508 @if
[ -f .
/opcodes
/Makefile
] ; then \
509 rootme
=`pwd` ; export rootme
; \
511 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
517 all-binutils
: all-opcodes all-libiberty all-bfd all-flex
518 @if
[ -f .
/binutils
/Makefile
] ; then \
519 rootme
=`pwd` ; export rootme
; \
521 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
526 install-binutils
: force
527 @if
[ -f .
/binutils
/Makefile
] ; then \
528 rootme
=`pwd` ; export rootme
; \
530 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
536 all-newlib
: all-binutils all-ld all-gas all-gcc
537 @if
[ -f .
/newlib
/Makefile
] ; then \
538 rootme
=`pwd` ; export rootme
; \
539 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
541 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all) ; \
546 install-newlib
: force
547 @if
[ -f .
/newlib
/Makefile
] ; then \
548 rootme
=`pwd` ; export rootme
; \
549 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
551 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install) ; \
557 all-gprof
: all-libiberty all-bfd
558 @if
[ -f .
/gprof
/Makefile
] ; then \
559 rootme
=`pwd` ; export rootme
; \
561 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
567 @if
[ -f .
/gprof
/Makefile
] ; then \
568 rootme
=`pwd` ; export rootme
; \
570 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
577 @if
[ -f .
/byacc
/Makefile
] ; then \
578 rootme
=`pwd` ; export rootme
; \
580 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
586 @if
[ -f .
/byacc
/Makefile
] ; then \
587 rootme
=`pwd` ; export rootme
; \
589 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
595 all-flex
: all-libiberty
596 @if
[ -f .
/flex
/Makefile
] ; then \
597 rootme
=`pwd` ; export rootme
; \
599 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
605 @if
[ -f .
/flex
/Makefile
] ; then \
606 rootme
=`pwd` ; export rootme
; \
608 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
613 all-gcc
: all-libiberty all-byacc all-binutils
614 @if
[ -f .
/gcc
/Makefile
] ; then \
615 rootme
=`pwd` ; export rootme
; \
617 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
623 @if
[ -f .
/gcc
/Makefile
] ; then \
624 rootme
=`pwd` ; export rootme
; \
626 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
633 @if
[ -f .
/readline
/Makefile
] ; then \
634 rootme
=`pwd` ; export rootme
; \
636 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
641 install-readline
: force
642 @if
[ -f .
/readline
/Makefile
] ; then \
643 rootme
=`pwd` ; export rootme
; \
645 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
652 @if
[ -f .
/glob
/Makefile
] ; then \
653 rootme
=`pwd` ; export rootme
; \
655 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
661 @if
[ -f .
/glob
/Makefile
] ; then \
662 rootme
=`pwd` ; export rootme
; \
664 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
670 all-gas
: all-libiberty all-opcodes all-bfd
671 @if
[ -f .
/gas
/Makefile
] ; then \
672 rootme
=`pwd` ; export rootme
; \
674 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
680 @if
[ -f .
/gas
/Makefile
] ; then \
681 rootme
=`pwd` ; export rootme
; \
683 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
689 all-tgas
: all-libiberty all-bfd
690 @if
[ -f .
/tgas
/Makefile
] ; then \
691 rootme
=`pwd` ; export rootme
; \
693 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
700 all-ld
: all-libiberty all-bfd all-byacc all-flex
701 @if
[ -f .
/ld/Makefile
] ; then \
702 rootme
=`pwd` ; export rootme
; \
704 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
710 @if
[ -f .
/ld/Makefile
] ; then \
711 rootme
=`pwd` ; export rootme
; \
713 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
719 all-gdb
: all-bfd all-opcodes all-libiberty all-mmalloc all-readline all-glob all-byacc
720 @if
[ -f .
/gdb
/Makefile
] ; then \
721 rootme
=`pwd` ; export rootme
; \
723 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
729 @if
[ -f .
/gdb
/Makefile
] ; then \
730 rootme
=`pwd` ; export rootme
; \
732 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
738 all-make
: all-libiberty
739 @if
[ -f .
/make
/Makefile
] ; then \
740 rootme
=`pwd` ; export rootme
; \
742 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
748 @if
[ -f .
/make
/Makefile
] ; then \
749 rootme
=`pwd` ; export rootme
; \
751 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
758 @if
[ -f .
/diff
/Makefile
] ; then \
759 rootme
=`pwd` ; export rootme
; \
761 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
767 @if
[ -f .
/diff
/Makefile
] ; then \
768 rootme
=`pwd` ; export rootme
; \
770 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
777 @if
[ -f .
/grep
/Makefile
] ; then \
778 rootme
=`pwd` ; export rootme
; \
780 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
786 @if
[ -f .
/grep
/Makefile
] ; then \
787 rootme
=`pwd` ; export rootme
; \
789 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
796 @if
[ -f .
/rcs
/Makefile
] ; then \
797 rootme
=`pwd` ; export rootme
; \
799 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
805 @if
[ -f .
/rcs
/Makefile
] ; then \
806 rootme
=`pwd` ; export rootme
; \
808 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
815 @if
[ -f .
/cvs
/Makefile
] ; then \
816 rootme
=`pwd` ; export rootme
; \
818 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
824 @if
[ -f .
/cvs
/Makefile
] ; then \
825 rootme
=`pwd` ; export rootme
; \
827 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
834 @if
[ -f .
/patch
/Makefile
] ; then \
835 rootme
=`pwd` ; export rootme
; \
837 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
843 @if
[ -f .
/patch
/Makefile
] ; then \
844 rootme
=`pwd` ; export rootme
; \
846 $(MAKE
) $(FLAGS_TO_PASS
) \
848 man1dir=$(man1dir) install) ; \
855 @if
[ -f .
/emacs
/Makefile
] ; then \
856 rootme
=`pwd` ; export rootme
; \
858 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) all) ; \
864 @if
[ -f .
/emacs
/Makefile
] ; then \
865 rootme
=`pwd` ; export rootme
; \
867 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install) ; \
873 all-ispell
: all-emacs
874 @if
[ -f .
/ispell
/Makefile
] ; then \
875 rootme
=`pwd` ; export rootme
; \
877 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
882 install-ispell
: force
883 @if
[ -f .
/ispell
/Makefile
] ; then \
884 rootme
=`pwd` ; export rootme
; \
886 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
893 @if
[ -f .
/send_pr
/Makefile
] ; then \
894 rootme
=`pwd` ; export rootme
; \
896 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
901 install-send_pr
: force
902 @if
[ -f .
/send_pr
/Makefile
] ; then \
903 rootme
=`pwd` ; export rootme
; \
905 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
912 @if
[ -f .
/libm
/Makefile
] ; then \
913 rootme
=`pwd` ; export rootme
; \
915 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
921 @if
[ -f .
/libm
/Makefile
] ; then \
922 rootme
=`pwd` ; export rootme
; \
924 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
931 all-libg
++: all-gas all-ld all-gcc all-xiberty all-newlib
932 @if
[ -f .
/libg
++/Makefile
] ; then \
933 rootme
=`pwd` ; export rootme
; \
934 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
936 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all) ; \
941 install-libg
++: force
942 @if
[ -f .
/libg
++/Makefile
] ; then \
943 rootme
=`pwd` ; export rootme
; \
944 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
946 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install) ; \
952 @if
[ -f .
/tcl
/Makefile
] ; then \
953 rootme
=`pwd` ; export rootme
; \
954 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
956 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
962 @if
[ -f .
/tcl
/Makefile
] ; then \
963 rootme
=`pwd` ; export rootme
; \
964 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
966 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
974 @if
[ -f .
/tk
/Makefile
] ; then \
975 rootme
=`pwd` ; export rootme
; \
976 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
978 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) all) ; \
984 @if
[ -f .
/tk
/Makefile
] ; then \
985 rootme
=`pwd` ; export rootme
; \
986 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
988 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install) ; \
995 @if
[ -f .
/expect
/Makefile
] ; then \
996 rootme
=`pwd` ; export rootme
; \
997 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
999 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1004 install-expect
: force
1005 @if
[ -f .
/expect
/Makefile
] ; then \
1006 rootme
=`pwd` ; export rootme
; \
1007 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1009 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1016 @if
[ -f .
/z8ksim
/Makefile
] ; then \
1017 rootme
=`pwd` ; export rootme
; \
1019 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1024 install-z8ksim
: force
1025 @if
[ -f .
/z8ksim
/Makefile
] ; then \
1026 rootme
=`pwd` ; export rootme
; \
1028 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1034 all-h8300sim
: all-bfd
1035 @if
[ -f .
/h8300sim
/Makefile
] ; then \
1036 rootme
=`pwd` ; export rootme
; \
1038 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1043 install-h8300sim
: force
1044 @if
[ -f .
/h8300sim
/Makefile
] ; then \
1045 rootme
=`pwd` ; export rootme
; \
1047 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1054 all-fileutils
: force
1055 @if
[ -f .
/fileutils
/Makefile
] ; then \
1056 rootme
=`pwd` ; export rootme
; \
1057 (cd .
/fileutils
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1062 install-fileutils
: force
1063 @if
[ -f .
/fileutils
/Makefile
] ; then \
1064 rootme
=`pwd` ; export rootme
; \
1065 (cd .
/fileutils
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1072 @if
[ -f .
/find
/Makefile
] ; then \
1073 rootme
=`pwd` ; export rootme
; \
1074 (cd .
/find
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1080 @if
[ -f .
/find
/Makefile
] ; then \
1081 rootme
=`pwd` ; export rootme
; \
1082 (cd .
/find
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1089 @if
[ -f .
/gawk
/Makefile
] ; then \
1090 rootme
=`pwd` ; export rootme
; \
1091 (cd .
/gawk
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1097 @if
[ -f .
/gawk
/Makefile
] ; then \
1098 rootme
=`pwd` ; export rootme
; \
1099 (cd .
/gawk
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1105 all-m4
: all-libiberty
1106 @if
[ -f .
/m4
/Makefile
] ; then \
1107 rootme
=`pwd` ; export rootme
; \
1108 (cd .
/m4
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1114 @if
[ -f .
/m4
/Makefile
] ; then \
1115 rootme
=`pwd` ; export rootme
; \
1116 (cd .
/m4
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1123 @if
[ -f .
/sed
/Makefile
] ; then \
1124 rootme
=`pwd` ; export rootme
; \
1125 (cd .
/sed
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1131 @if
[ -f .
/sed
/Makefile
] ; then \
1132 rootme
=`pwd` ; export rootme
; \
1133 (cd .
/sed
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1140 @if
[ -f .
/time
/Makefile
] ; then \
1141 rootme
=`pwd` ; export rootme
; \
1142 (cd .
/time
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1148 @if
[ -f .
/time
/Makefile
] ; then \
1149 rootme
=`pwd` ; export rootme
; \
1150 (cd .
/time
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1157 @if
[ -f .
/wdiff
/Makefile
] ; then \
1158 rootme
=`pwd` ; export rootme
; \
1159 (cd .
/wdiff
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1164 install-wdiff
: force
1165 @if
[ -f .
/wdiff
/Makefile
] ; then \
1166 rootme
=`pwd` ; export rootme
; \
1167 (cd .
/wdiff
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1173 all-shellutils
: force
1174 @if
[ -f .
/shellutils
/Makefile
] ; then \
1175 rootme
=`pwd` ; export rootme
; \
1176 (cd .
/shellutils
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1181 install-shellutils
: force
1182 @if
[ -f .
/shellutils
/Makefile
] ; then \
1183 rootme
=`pwd` ; export rootme
; \
1184 (cd .
/shellutils
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1190 all-textutils
: force
1191 @if
[ -f .
/textutils
/Makefile
] ; then \
1192 rootme
=`pwd` ; export rootme
; \
1193 (cd .
/textutils
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1198 install-textutils
: force
1199 @if
[ -f .
/textutils
/Makefile
] ; then \
1200 rootme
=`pwd` ; export rootme
; \
1201 (cd .
/textutils
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1208 ### other supporting targets
1211 @for i in
$(DODIRS
); do \
1212 if
[ -f .
/$$i/localenv
] ||
[ -f .
/$$i/Makefile
] ; then \
1214 libg
++ | xiberty | newlib
) \
1215 if
(rootme
=`pwd` ; export rootme
; \
1216 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
1218 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1222 if
(rootme
=`pwd` ; export rootme
; \
1224 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1231 # The "else true" stuff is for Ultrix; the shell returns the exit code
1232 # of the "if" command, if no commands are run in the "then" or "else" part,
1233 # causing Make to quit.
1257 for i in
$(MAKEDIRS
) ; do \
1258 echo Making
$$i...
; \
1259 parent
=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
1260 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
; \
1261 if
[ ! -d
$$i ] ; then \
1262 if mkdir
$$i ; then \
1273 if
[ -d
$(prefix) ] ; then true
; else mkdir
$(prefix) ; fi
1276 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
1277 mv
-f
dir.
info.new
dir.
info
1280 @echo
"Building a full distribution of this tree isn't done"
1281 @echo
"via 'make dist'. Check out the etc/ subdirectory"
1290 @for i in
$(SUBDIRS
); \
1294 wd
=`basename $$pwd`; \
1295 for j in
`$(MAKE) ls`; \
1303 # with the gnu make, this is done automatically.
1305 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
1306 $(SHELL
) .
/config.status
1309 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1311 DEVO_SUPPORT
= README cfg-paper.texi Makefile.in configure configure.in \
1312 config.sub config configure.man configure.texi move-if-change \
1314 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc opcodes readline glob
1315 GDB_SUPPORT_FILES
= $(GDB_SUPPORT_DIRS
) texinfo
/fsf
/texinfo.
tex
1320 .
/configure
-rm sun4
1321 chmod og
=u
`find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1323 gdb.
tar.Z
: setup-dirs
1324 (cd gdb
; $(MAKE
) -f Makefile.in make-proto-gdb.
dir)
1325 $(MAKE
) $(MFLAGS
) -f Makefile.in make-gdb.
tar.Z
1327 make-gdb.
tar.Z
: $(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb texinfo
/fsf
/texinfo.
tex
1328 rm -rf proto-toplev
; mkdir proto-toplev
1329 ln
-s ..
/gdb
/proto-gdb.
dir proto-toplev
/gdb
1330 (cd proto-toplev
; for i in
$(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
); do \
1333 # Put only one copy (four hard links) of COPYING in the tar file.
1334 rm proto-toplev
/bfd
/COPYING
1335 ln proto-toplev
/gdb
/COPYING proto-toplev
/bfd
/COPYING
1336 rm proto-toplev
/include/COPYING
1337 ln proto-toplev
/gdb
/COPYING proto-toplev
/include/COPYING
1338 rm proto-toplev
/readline
/COPYING
1339 ln proto-toplev
/gdb
/COPYING proto-toplev
/readline
/COPYING
1340 # Take out texinfo from configurable dirs
1341 rm proto-toplev
/configure.in
1342 sed
'/^configdirs=/s/texinfo //' <configure.in
>proto-toplev
/configure.in
1343 # Take out glob from buildable dirs
1344 rm proto-toplev
/Makefile.in
1346 sed
-e
'/^SUBDIRS =/s/glob //' \
1347 -e
'/^all\.normal: /s/\all-texinfo //' \
1348 -e
'/^clean: /s/clean-texinfo //' \
1349 -e
'/^install\.all: /s/install-texinfo //' \
1350 <Makefile.in
>proto-toplev
/Makefile.in
1352 mkdir proto-toplev
/texinfo
1353 mkdir proto-toplev
/texinfo
/fsf
1354 ln
-s ..
/..
/..
/texinfo
/fsf
/texinfo.
tex proto-toplev
/texinfo
/fsf
/
1355 chmod og
=u
`find proto-toplev -print`
1356 (VER
=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1357 echo
"==> Making gdb-$$VER.tar.Z"; \
1358 ln
-s proto-toplev gdb-
$$VER; \
1359 tar cfh
- gdb-
$$VER \
1360 | compress
-v
>gdb-
$$VER.
tar.Z
)
1363 # end of Makefile.in