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 \
82 $(start-sanitize-chill
) \
84 $(end-sanitize-chill
) \
85 gdb binutils
ld gas tgas gcc libg
++ newlib deja-gnu
89 INSTALL_TARGET
= install.
all
95 if [ -f $${rootme}/gcc/Makefile ] ; then \
96 echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \
98 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
101 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
106 if [ -f $${rootme}/gcc/Makefile ] ; then \
107 echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \
109 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
112 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
117 if [ -f $${rootme}/gas/Makefile ] ; then \
118 echo $${rootme}/gas/as.new ; \
120 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
123 t='$(program_transform_name)'; echo as | sed -e '' $$t ; \
128 if [ -f $${rootme}/binutils/Makefile ] ; then \
129 echo $${rootme}/binutils/ar ; \
131 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
134 t='$(program_transform_name)'; echo ar | sed -e '' $$t ; \
138 RANLIB_FOR_TARGET
= ` \
139 if [ -f $${rootme}/binutils/Makefile ] ; then \
140 echo $${rootme}/binutils/ranlib ; \
142 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
145 t='$(program_transform_name)'; echo ranlib | sed -e '' $$t ; \
150 if [ -f $${rootme}/binutils/Makefile ] ; then \
151 echo $${rootme}/binutils/nm ; \
153 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
156 t='$(program_transform_name)'; echo nm | sed -e '' $$t ; \
161 if [ -f $${rootme}/gcc/Makefile ] ; then \
162 if [ -f $${rootme}/newlib/Makefile ] ; then \
163 echo -I$${rootme}/newlib/targ-include -I$${srcroot}/newlib/libc/include -I$${rootme}/gcc/include -nostdinc ; \
165 echo -I$${rootme}/gcc/include ; \
172 #### host and target specific makefile fragments come in here.
175 # Flags to pass down to sub-makes -- please keep these in alphabetical order
178 "AR_FLAGS=$(AR_FLAGS)" \
179 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
181 "CXXFLAGS=$(CXXFLAGS)" \
182 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
184 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
186 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
187 "INSTALL=$(INSTALL)" \
188 "INSTALL_DATA=$(INSTALL_DATA)" \
189 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
190 "LDFLAGS=$(LDFLAGS)" \
192 "LOADLIBES=$(LOADLIBES)" \
193 "MAKEINFO=$(MAKEINFO)" \
195 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
196 "exec_prefix=$(exec_prefix)" \
200 # Flags that are concerned with the location of the X11 include files
202 X11_FLAGS_TO_PASS
= \
203 "X11_INCLUDE_FLAGS=$(X11_INCLUDE_FLAGS)" \
204 "X11_LIB_FLAGS=$(X11_LIB_FLAGS)"
206 # Flags to pass down to makes which are built with the target
207 # environment (e.g. libg++, xiberty, newlib). -- keep these in alpha order please
208 TARGET_FLAGS_TO_PASS
= \
209 "AR=$(AR_FOR_TARGET)" \
210 "AR_FLAGS=$(AR_FLAGS)" \
211 "AS=$(AS_FOR_TARGET)" \
213 "CXX=$(CXX_FOR_TARGET)" \
214 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
215 "CXXFLAGS=$(CXXFLAGS)" \
216 "CC=$(CC_FOR_TARGET)" \
217 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
219 "INSTALL=$(INSTALL)" \
220 "INSTALL_DATA=$(INSTALL_DATA)" \
221 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
222 "LDFLAGS=$(LDFLAGS)" \
224 "LOADLIBES=$(LOADLIBES)" \
225 "MAKEINFO=$(MAKEINFO)" \
226 "NM=$(NM_FOR_TARGET)" \
227 "RANLIB=$(RANLIB_FOR_TARGET)" \
228 "XTRAFLAGS=$(XTRAFLAGS)" \
229 "exec_prefix=$(exec_prefix)" \
233 # The first rule in the file had better be this one. Don't put any above it.
236 .PHONY
: all check dvi info install-info
240 @rootme
=`pwd` ; export rootme
; \
241 $(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
243 install-info
: install-info-dirs
force
244 -parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
245 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
246 -if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
247 @rootme
='pwd' ; export rootme
; $(MAKE
) $(FLAGS_TO_PASS
) DO
=install-info
"DODIRS=$(SUBDIRS)" subdir_do
248 @rootme
='pwd' ; export rootme
; $(MAKE
) $(FLAGS_TO_PASS
) dir.
info install-dir.
info
251 -parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
252 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
253 -if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
254 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info
256 all.normal
: all-m4 all-autoconf all-libiberty all-mmalloc all-texinfo \
257 all-byacc all-flex all-opcodes all-bfd all-ld all-gas all-tgas \
258 all-gcc all-binutils all-libg
++ all-readline all-z8ksim all-h8300sim all-gdb \
259 all-make all-rcs all-cvs all-diff all-grep \
260 all-patch all-emacs all-ispell all-etc \
261 all-tcl all-tk all-expect \
263 $(start-sanitize-chill
) \
265 $(end-sanitize-chill
) \
266 all-gprof all-send_pr all-libm all-deja-gnu \
267 all-fileutils all-find all-gawk all-sed all-shellutils \
268 all-textutils all-time all-wdiff
271 all.cross
: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
272 all-opcodes all-z8ksim all-h8300sim all-bfd all-readline \
273 all-gdb all-binutils all-gcc all-newlib \
274 $(start-sanitize-chill
) \
276 $(end-sanitize-chill
) \
279 .PHONY
: clean distclean mostlyclean realclean do_clean
282 -rm -f
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
284 clean mostlyclean: do_clean
285 @rootme
=`pwd` ; export rootme
; \
286 $(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
288 distclean realclean: do_clean
289 @rootme
=`pwd` ; export rootme
; \
290 $(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
291 -rm -f Makefile config.status
294 @echo
"the uninstall target is not supported in this tree"
296 install: $(INSTALL_TARGET
)
297 -parent
=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
298 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
299 -if
[ -d
$(man1dir) ] ; then true
; else mkdir
$(man1dir) ; fi
301 install.
all: install-no-fixedincludes
302 @if
[ -f .
/gcc
/Makefile
] ; then \
303 rootme
=`pwd` ; export rootme
; \
305 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
310 install-no-fixedincludes
: install-dirs gcc-no-fixedincludes \
336 $(start-sanitize-chill
) \
338 $(end-sanitize-chill
) \
348 install-fileutils install-find install-gawk install-m4 install-sed install-shellutils \
349 install-textutils install-time install-wdiff
351 gcc-no-fixedincludes
:
352 @if
[ -f .
/gcc
/Makefile
] ; then \
353 rootme
=`pwd` ; export rootme
; \
355 $(MAKE
) $(FLAGS_TO_PASS
) install install-man \
356 "INSTALL_HEADERS=install-common-headers install-float-h install-limits-h") ; \
361 install.cross
: install-dirs install-libiberty install-mmalloc \
362 install-binutils install-opcodes install-byacc install-flex \
363 install-ld install-gas install-readline \
364 install-glob install-gdb install-mmalloc \
366 $(start-sanitize-chill
) \
368 $(end-sanitize-chill
) \
369 install-gcc install-etc install-deja-gnu
373 @if
[ -f .
/deja-gnu
/Makefile
] ; then \
374 rootme
=`pwd` ; export rootme
; \
375 (cd .
/deja-gnu
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
380 install-deja-gnu
: force
381 @if
[ -f .
/deja-gnu
/Makefile
] ; then \
382 rootme
=`pwd` ; export rootme
; \
383 (cd .
/deja-gnu
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
390 @if
[ -f .
/autoconf
/Makefile
] ; then \
391 rootme
=`pwd` ; export rootme
; \
392 (cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
397 install-autoconf
: force
398 @if
[ -f .
/autoconf
/Makefile
] ; then \
399 rootme
=`pwd` ; export rootme
; \
400 (cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
407 @if
[ -f .
/etc
/Makefile
] ; then \
408 rootme
=`pwd` ; export rootme
; \
409 (cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
415 @if
[ -f .
/etc
/Makefile
] ; then \
416 rootme
=`pwd` ; export rootme
; \
417 (cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
424 @if
[ -f .
/libiberty
/Makefile
] ; then \
425 rootme
=`pwd` ; export rootme
; \
427 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
432 install-libiberty
: force
433 @if
[ -f .
/libiberty
/Makefile
] ; then \
434 rootme
=`pwd` ; export rootme
; \
436 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
442 all-xiberty
: all-gcc all-newlib
443 @if
[ -f .
/xiberty
/Makefile
] ; then \
444 rootme
=`pwd` ; export rootme
; \
445 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
447 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all) ; \
452 install-xiberty
: force
453 @if
[ -f .
/xiberty
/Makefile
] ; then \
454 rootme
=`pwd` ; export rootme
; \
455 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
457 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install) ; \
464 @if
[ -f .
/mmalloc
/Makefile
] ; then \
465 rootme
=`pwd` ; export rootme
; \
467 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
472 install-mmalloc
: force
473 @if
[ -f .
/mmalloc
/Makefile
] ; then \
474 rootme
=`pwd` ; export rootme
; \
476 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
482 all-texinfo
: all-libiberty
483 @if
[ -f .
/texinfo
/Makefile
] ; then \
484 rootme
=`pwd` ; export rootme
; \
486 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
491 install-texinfo
: force
492 @if
[ -f .
/texinfo
/Makefile
] ; then \
493 rootme
=`pwd` ; export rootme
; \
495 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
502 @if
[ -f .
/bfd
/Makefile
] ; then \
503 rootme
=`pwd` ; export rootme
; \
505 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
511 @if
[ -f .
/bfd
/Makefile
] ; then \
512 rootme
=`pwd` ; export rootme
; \
514 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
522 @if
[ -f .
/opcodes
/Makefile
] ; then \
523 rootme
=`pwd` ; export rootme
; \
525 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
530 install-opcodes
: force
531 @if
[ -f .
/opcodes
/Makefile
] ; then \
532 rootme
=`pwd` ; export rootme
; \
534 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
540 all-binutils
: all-opcodes all-libiberty all-bfd all-flex
541 @if
[ -f .
/binutils
/Makefile
] ; then \
542 rootme
=`pwd` ; export rootme
; \
544 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
549 install-binutils
: force
550 @if
[ -f .
/binutils
/Makefile
] ; then \
551 rootme
=`pwd` ; export rootme
; \
553 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
559 all-newlib
: all-binutils all-ld all-gas all-gcc
560 @if
[ -f .
/newlib
/Makefile
] ; then \
561 rootme
=`pwd` ; export rootme
; \
562 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
564 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all) ; \
569 install-newlib
: force
570 @if
[ -f .
/newlib
/Makefile
] ; then \
571 rootme
=`pwd` ; export rootme
; \
572 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
574 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install) ; \
579 ### start-sanitize-chill
581 all-chillrt
: all-binutils all-ld all-gas all-gcc
582 @if
[ -f .
/chillrt
/Makefile
] ; then \
583 rootme
=`pwd` ; export rootme
; \
584 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
586 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all) ; \
591 install-chillrt
: force
592 @if
[ -f .
/chillrt
/Makefile
] ; then \
593 rootme
=`pwd` ; export rootme
; \
594 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
596 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install) ; \
600 ### end-sanitize-chill
603 all-gprof
: all-libiberty all-bfd
604 @if
[ -f .
/gprof
/Makefile
] ; then \
605 rootme
=`pwd` ; export rootme
; \
607 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
613 @if
[ -f .
/gprof
/Makefile
] ; then \
614 rootme
=`pwd` ; export rootme
; \
616 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
623 @if
[ -f .
/byacc
/Makefile
] ; then \
624 rootme
=`pwd` ; export rootme
; \
626 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
632 @if
[ -f .
/byacc
/Makefile
] ; then \
633 rootme
=`pwd` ; export rootme
; \
635 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
641 all-flex
: all-libiberty
642 @if
[ -f .
/flex
/Makefile
] ; then \
643 rootme
=`pwd` ; export rootme
; \
645 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
651 @if
[ -f .
/flex
/Makefile
] ; then \
652 rootme
=`pwd` ; export rootme
; \
654 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
659 all-gcc
: all-libiberty all-byacc all-binutils
660 @if
[ -f .
/gcc
/Makefile
] ; then \
661 rootme
=`pwd` ; export rootme
; \
663 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
669 @if
[ -f .
/gcc
/Makefile
] ; then \
670 rootme
=`pwd` ; export rootme
; \
672 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
679 @if
[ -f .
/readline
/Makefile
] ; then \
680 rootme
=`pwd` ; export rootme
; \
682 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
687 install-readline
: force
688 @if
[ -f .
/readline
/Makefile
] ; then \
689 rootme
=`pwd` ; export rootme
; \
691 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
698 @if
[ -f .
/glob
/Makefile
] ; then \
699 rootme
=`pwd` ; export rootme
; \
701 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
707 @if
[ -f .
/glob
/Makefile
] ; then \
708 rootme
=`pwd` ; export rootme
; \
710 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
716 all-gas
: all-libiberty all-opcodes all-bfd
717 @if
[ -f .
/gas
/Makefile
] ; then \
718 rootme
=`pwd` ; export rootme
; \
720 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
726 @if
[ -f .
/gas
/Makefile
] ; then \
727 rootme
=`pwd` ; export rootme
; \
729 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
735 all-tgas
: all-libiberty all-bfd
736 @if
[ -f .
/tgas
/Makefile
] ; then \
737 rootme
=`pwd` ; export rootme
; \
739 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
746 all-ld
: all-libiberty all-bfd all-byacc all-flex
747 @if
[ -f .
/ld/Makefile
] ; then \
748 rootme
=`pwd` ; export rootme
; \
750 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
756 @if
[ -f .
/ld/Makefile
] ; then \
757 rootme
=`pwd` ; export rootme
; \
759 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
765 all-gdb
: all-bfd all-opcodes all-libiberty all-mmalloc all-readline all-glob all-byacc
766 @if
[ -f .
/gdb
/Makefile
] ; then \
767 rootme
=`pwd` ; export rootme
; \
769 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
775 @if
[ -f .
/gdb
/Makefile
] ; then \
776 rootme
=`pwd` ; export rootme
; \
778 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
784 all-make
: all-libiberty
785 @if
[ -f .
/make
/Makefile
] ; then \
786 rootme
=`pwd` ; export rootme
; \
788 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
794 @if
[ -f .
/make
/Makefile
] ; then \
795 rootme
=`pwd` ; export rootme
; \
797 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
804 @if
[ -f .
/diff
/Makefile
] ; then \
805 rootme
=`pwd` ; export rootme
; \
807 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
813 @if
[ -f .
/diff
/Makefile
] ; then \
814 rootme
=`pwd` ; export rootme
; \
816 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
823 @if
[ -f .
/grep
/Makefile
] ; then \
824 rootme
=`pwd` ; export rootme
; \
826 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
832 @if
[ -f .
/grep
/Makefile
] ; then \
833 rootme
=`pwd` ; export rootme
; \
835 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
842 @if
[ -f .
/rcs
/Makefile
] ; then \
843 rootme
=`pwd` ; export rootme
; \
845 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
851 @if
[ -f .
/rcs
/Makefile
] ; then \
852 rootme
=`pwd` ; export rootme
; \
854 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
861 @if
[ -f .
/cvs
/Makefile
] ; then \
862 rootme
=`pwd` ; export rootme
; \
864 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
870 @if
[ -f .
/cvs
/Makefile
] ; then \
871 rootme
=`pwd` ; export rootme
; \
873 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
880 @if
[ -f .
/patch
/Makefile
] ; then \
881 rootme
=`pwd` ; export rootme
; \
883 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
889 @if
[ -f .
/patch
/Makefile
] ; then \
890 rootme
=`pwd` ; export rootme
; \
892 $(MAKE
) $(FLAGS_TO_PASS
) \
894 man1dir=$(man1dir) install) ; \
901 @if
[ -f .
/emacs
/Makefile
] ; then \
902 rootme
=`pwd` ; export rootme
; \
904 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) all) ; \
910 @if
[ -f .
/emacs
/Makefile
] ; then \
911 rootme
=`pwd` ; export rootme
; \
913 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install) ; \
919 all-ispell
: all-emacs
920 @if
[ -f .
/ispell
/Makefile
] ; then \
921 rootme
=`pwd` ; export rootme
; \
923 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
928 install-ispell
: force
929 @if
[ -f .
/ispell
/Makefile
] ; then \
930 rootme
=`pwd` ; export rootme
; \
932 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
939 @if
[ -f .
/send_pr
/Makefile
] ; then \
940 rootme
=`pwd` ; export rootme
; \
942 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
947 install-send_pr
: force
948 @if
[ -f .
/send_pr
/Makefile
] ; then \
949 rootme
=`pwd` ; export rootme
; \
951 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
958 @if
[ -f .
/libm
/Makefile
] ; then \
959 rootme
=`pwd` ; export rootme
; \
961 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all) ; \
967 @if
[ -f .
/libm
/Makefile
] ; then \
968 rootme
=`pwd` ; export rootme
; \
970 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install) ; \
977 all-libg
++: all-gas all-ld all-gcc all-xiberty all-newlib
978 @if
[ -f .
/libg
++/Makefile
] ; then \
979 rootme
=`pwd` ; export rootme
; \
980 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
982 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all) ; \
987 install-libg
++: force
988 @if
[ -f .
/libg
++/Makefile
] ; then \
989 rootme
=`pwd` ; export rootme
; \
990 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
992 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install) ; \
998 @if
[ -f .
/tcl
/Makefile
] ; then \
999 rootme
=`pwd` ; export rootme
; \
1000 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1002 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1008 @if
[ -f .
/tcl
/Makefile
] ; then \
1009 rootme
=`pwd` ; export rootme
; \
1010 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1012 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1020 @if
[ -f .
/tk
/Makefile
] ; then \
1021 rootme
=`pwd` ; export rootme
; \
1022 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1024 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) all) ; \
1030 @if
[ -f .
/tk
/Makefile
] ; then \
1031 rootme
=`pwd` ; export rootme
; \
1032 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1034 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install) ; \
1041 @if
[ -f .
/expect
/Makefile
] ; then \
1042 rootme
=`pwd` ; export rootme
; \
1043 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1045 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1050 install-expect
: force
1051 @if
[ -f .
/expect
/Makefile
] ; then \
1052 rootme
=`pwd` ; export rootme
; \
1053 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1055 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1062 @if
[ -f .
/z8ksim
/Makefile
] ; then \
1063 rootme
=`pwd` ; export rootme
; \
1065 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1070 install-z8ksim
: force
1071 @if
[ -f .
/z8ksim
/Makefile
] ; then \
1072 rootme
=`pwd` ; export rootme
; \
1074 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1080 all-h8300sim
: all-bfd
1081 @if
[ -f .
/h8300sim
/Makefile
] ; then \
1082 rootme
=`pwd` ; export rootme
; \
1084 $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1089 install-h8300sim
: force
1090 @if
[ -f .
/h8300sim
/Makefile
] ; then \
1091 rootme
=`pwd` ; export rootme
; \
1093 $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1100 all-fileutils
: force
1101 @if
[ -f .
/fileutils
/Makefile
] ; then \
1102 rootme
=`pwd` ; export rootme
; \
1103 (cd .
/fileutils
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1108 install-fileutils
: force
1109 @if
[ -f .
/fileutils
/Makefile
] ; then \
1110 rootme
=`pwd` ; export rootme
; \
1111 (cd .
/fileutils
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1118 @if
[ -f .
/find
/Makefile
] ; then \
1119 rootme
=`pwd` ; export rootme
; \
1120 (cd .
/find
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1126 @if
[ -f .
/find
/Makefile
] ; then \
1127 rootme
=`pwd` ; export rootme
; \
1128 (cd .
/find
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1135 @if
[ -f .
/gawk
/Makefile
] ; then \
1136 rootme
=`pwd` ; export rootme
; \
1137 (cd .
/gawk
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1143 @if
[ -f .
/gawk
/Makefile
] ; then \
1144 rootme
=`pwd` ; export rootme
; \
1145 (cd .
/gawk
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1151 all-m4
: all-libiberty
1152 @if
[ -f .
/m4
/Makefile
] ; then \
1153 rootme
=`pwd` ; export rootme
; \
1154 (cd .
/m4
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1160 @if
[ -f .
/m4
/Makefile
] ; then \
1161 rootme
=`pwd` ; export rootme
; \
1162 (cd .
/m4
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1169 @if
[ -f .
/sed
/Makefile
] ; then \
1170 rootme
=`pwd` ; export rootme
; \
1171 (cd .
/sed
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1177 @if
[ -f .
/sed
/Makefile
] ; then \
1178 rootme
=`pwd` ; export rootme
; \
1179 (cd .
/sed
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1186 @if
[ -f .
/time
/Makefile
] ; then \
1187 rootme
=`pwd` ; export rootme
; \
1188 (cd .
/time
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1194 @if
[ -f .
/time
/Makefile
] ; then \
1195 rootme
=`pwd` ; export rootme
; \
1196 (cd .
/time
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1203 @if
[ -f .
/wdiff
/Makefile
] ; then \
1204 rootme
=`pwd` ; export rootme
; \
1205 (cd .
/wdiff
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1210 install-wdiff
: force
1211 @if
[ -f .
/wdiff
/Makefile
] ; then \
1212 rootme
=`pwd` ; export rootme
; \
1213 (cd .
/wdiff
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1219 all-shellutils
: force
1220 @if
[ -f .
/shellutils
/Makefile
] ; then \
1221 rootme
=`pwd` ; export rootme
; \
1222 (cd .
/shellutils
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1227 install-shellutils
: force
1228 @if
[ -f .
/shellutils
/Makefile
] ; then \
1229 rootme
=`pwd` ; export rootme
; \
1230 (cd .
/shellutils
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1236 all-textutils
: force
1237 @if
[ -f .
/textutils
/Makefile
] ; then \
1238 rootme
=`pwd` ; export rootme
; \
1239 (cd .
/textutils
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
1244 install-textutils
: force
1245 @if
[ -f .
/textutils
/Makefile
] ; then \
1246 rootme
=`pwd` ; export rootme
; \
1247 (cd .
/textutils
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
1254 ### other supporting targets
1257 @for i in
$(DODIRS
); do \
1258 if
[ -f .
/$$i/localenv
] ||
[ -f .
/$$i/Makefile
] ; then \
1260 libg
++ | xiberty | newlib
) \
1261 if
(rootme
=`pwd` ; export rootme
; \
1262 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
1264 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1267 ### start-sanitize-chill
1269 ### WARNING: THIS IS VERY UGLY AND I DID NOT DO THIS WILLINGLY
1271 ### if you change the above code for libg++ et al, also change the
1275 if
(rootme
=`pwd` ; export rootme
; \
1276 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
1278 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1281 ### end-sanitize-chill
1283 if
(rootme
=`pwd` ; export rootme
; \
1285 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
1292 # The "else true" stuff is for Ultrix; the shell returns the exit code
1293 # of the "if" command, if no commands are run in the "then" or "else" part,
1294 # causing Make to quit.
1318 for i in
$(MAKEDIRS
) ; do \
1319 echo Making
$$i...
; \
1320 parent
=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
1321 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
; \
1322 if
[ ! -d
$$i ] ; then \
1323 if mkdir
$$i ; then \
1334 if
[ -d
$(prefix) ] ; then true
; else mkdir
$(prefix) ; fi
1337 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
1338 mv
-f
dir.
info.new
dir.
info
1341 @echo
"Building a full distribution of this tree isn't done"
1342 @echo
"via 'make dist'. Check out the etc/ subdirectory"
1351 @for i in
$(SUBDIRS
); \
1355 wd
=`basename $$pwd`; \
1356 for j in
`$(MAKE) ls`; \
1364 # with the gnu make, this is done automatically.
1366 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
1367 $(SHELL
) .
/config.status
1370 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1372 DEVO_SUPPORT
= README cfg-paper.texi Makefile.in configure configure.in \
1373 config.sub config configure.man configure.texi move-if-change \
1375 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc opcodes readline glob
1376 GDB_SUPPORT_FILES
= $(GDB_SUPPORT_DIRS
) texinfo
/fsf
/texinfo.
tex
1381 .
/configure
-rm sun4
1382 chmod og
=u
`find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1384 gdb.
tar.Z
: setup-dirs
1385 (cd gdb
; $(MAKE
) -f Makefile.in make-proto-gdb.
dir)
1386 $(MAKE
) $(MFLAGS
) -f Makefile.in make-gdb.
tar.Z
1388 make-gdb.
tar.Z
: $(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb texinfo
/fsf
/texinfo.
tex
1389 rm -rf proto-toplev
; mkdir proto-toplev
1390 ln
-s ..
/gdb
/proto-gdb.
dir proto-toplev
/gdb
1391 (cd proto-toplev
; for i in
$(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
); do \
1394 # Put only one copy (four hard links) of COPYING in the tar file.
1395 rm proto-toplev
/bfd
/COPYING
1396 ln proto-toplev
/gdb
/COPYING proto-toplev
/bfd
/COPYING
1397 rm proto-toplev
/include/COPYING
1398 ln proto-toplev
/gdb
/COPYING proto-toplev
/include/COPYING
1399 rm proto-toplev
/readline
/COPYING
1400 ln proto-toplev
/gdb
/COPYING proto-toplev
/readline
/COPYING
1401 # Take out texinfo from configurable dirs
1402 rm proto-toplev
/configure.in
1403 sed
'/^configdirs=/s/texinfo //' <configure.in
>proto-toplev
/configure.in
1404 # Take out glob from buildable dirs
1405 rm proto-toplev
/Makefile.in
1407 sed
-e
'/^SUBDIRS =/s/glob //' \
1408 -e
'/^all\.normal: /s/\all-texinfo //' \
1409 -e
'/^clean: /s/clean-texinfo //' \
1410 -e
'/^install\.all: /s/install-texinfo //' \
1411 <Makefile.in
>proto-toplev
/Makefile.in
1413 mkdir proto-toplev
/texinfo
1414 mkdir proto-toplev
/texinfo
/fsf
1415 ln
-s ..
/..
/..
/texinfo
/fsf
/texinfo.
tex proto-toplev
/texinfo
/fsf
/
1416 chmod og
=u
`find proto-toplev -print`
1417 (VER
=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1418 echo
"==> Making gdb-$$VER.tar.Z"; \
1419 ln
-s proto-toplev gdb-
$$VER; \
1420 tar cfh
- gdb-
$$VER \
1421 | compress
-v
>gdb-
$$VER.
tar.Z
)
1424 # end of Makefile.in