-install-flex: force
- @if [ -f ./flex/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./flex; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-### gcc
-all-gcc: all-libiberty all-byacc all-binutils
- @if [ -f ./gcc/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gcc; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-gcc: force
- @if [ -f ./gcc/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gcc; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### readline
-all-readline: force
- @if [ -f ./readline/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./readline; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-readline: force
- @if [ -f ./readline/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./readline; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### glob
-all-glob: force
- @if [ -f ./glob/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./glob; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-glob: force
- @if [ -f ./glob/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./glob; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### gas
-all-gas: all-libiberty all-opcodes all-bfd
- @if [ -f ./gas/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gas; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-gas: force
- @if [ -f ./gas/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gas; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### gas
-all-tgas: all-libiberty all-bfd
- @if [ -f ./tgas/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./tgas; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-
-### ld
-all-ld: all-libiberty all-bfd all-byacc all-flex
- @if [ -f ./ld/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./ld; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-ld: force
- @if [ -f ./ld/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./ld; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### gdb
-all-gdb: all-bfd all-opcodes all-libiberty all-mmalloc all-readline all-glob all-byacc
- @if [ -f ./gdb/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gdb; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-gdb: force
- @if [ -f ./gdb/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gdb; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### make
-all-make: all-libiberty
- @if [ -f ./make/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./make; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-make: force
- @if [ -f ./make/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./make; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### diff
-all-diff: force
- @if [ -f ./diff/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./diff; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-diff: force
- @if [ -f ./diff/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./diff/; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### grep
-all-grep: force
- @if [ -f ./grep/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./grep; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-grep: force
- @if [ -f ./grep/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./grep; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### rcs
-all-rcs: force
- @if [ -f ./rcs/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./rcs; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-rcs: force
- @if [ -f ./rcs/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./rcs; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### cvs
-all-cvs: force
- @if [ -f ./cvs/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./cvs; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-cvs: force
- @if [ -f ./cvs/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./cvs; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### patch
-all-patch: force
- @if [ -f ./patch/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./patch; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-patch: force
- @if [ -f ./patch/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./patch; \
- $(MAKE) $(FLAGS_TO_PASS) \
- bindir=$(bindir) \
- man1dir=$(man1dir) install) ; \
- else \
- true ; \
- fi
-
-### emacs
-all-emacs: force
- @if [ -f ./emacs/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./emacs; \
- $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-emacs: force
- @if [ -f ./emacs/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./emacs; \
- $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### ispell
-all-ispell: all-emacs
- @if [ -f ./ispell/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./ispell; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-ispell: force
- @if [ -f ./ispell/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./ispell; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### send_pr
-all-send_pr: force
- @if [ -f ./send_pr/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./send_pr; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-send_pr: force
- @if [ -f ./send_pr/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./send_pr; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### libm
-all-libm: force
- @if [ -f ./libm/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./libm; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-libm: force
- @if [ -f ./libm/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./libm; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### libg++
-
-all-libg++: all-gas all-ld all-gcc all-xiberty
- @if [ -f ./libg++/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
- (cd ./libg++; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-libg++: force
- @if [ -f ./libg++/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
- (cd ./libg++; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-### tcl
-all-tcl:
- @if [ -f ./tcl/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd`; export srcroot ; \
- (cd ./tcl; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-tcl: force
- @if [ -f ./tcl/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd`; export srcroot ; \
- (cd ./tcl; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-
-### tk
-all-tk: all-tcl
- @if [ -f ./tk/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd`; export srcroot ; \
- (cd ./tk; \
- $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-tk: force
- @if [ -f ./tk/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd`; export srcroot ; \
- (cd ./tk; \
- $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### expect
-all-expect: all-tcl
- @if [ -f ./expect/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd`; export srcroot ; \
- (cd ./expect; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-expect: force
- @if [ -f ./expect/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd`; export srcroot ; \
- (cd ./expect; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### z8ksim
-all-z8ksim: all-bfd
- @if [ -f ./z8ksim/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./z8ksim; \
- $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-z8ksim: force
- @if [ -f ./z8ksim/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./z8ksim; \
- $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### fileutils
-all-fileutils: force
- @if [ -f ./fileutils/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-fileutils: force
- @if [ -f ./fileutils/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### find
-all-find: force
- @if [ -f ./find/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./find; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-find: force
- @if [ -f ./find/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./find; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### gawk
-all-gawk: force
- @if [ -f ./gawk/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-gawk: force
- @if [ -f ./gawk/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### m4
-all-m4: all-libiberty
- @if [ -f ./m4/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-m4: force
- @if [ -f ./m4/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### sed
-all-sed: force
- @if [ -f ./sed/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-sed: force
- @if [ -f ./sed/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### time
-all-time: force
- @if [ -f ./time/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./time; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-time: force
- @if [ -f ./time/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./time; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### wdiff
-all-wdiff: force
- @if [ -f ./wdiff/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-wdiff: force
- @if [ -f ./wdiff/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### shellutils
-all-shellutils: force
- @if [ -f ./shellutils/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-shellutils: force
- @if [ -f ./shellutils/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-### textutils
-all-textutils: force
- @if [ -f ./textutils/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
- else \
- true ; \
- fi
-
-install-textutils: force
- @if [ -f ./textutils/Makefile ] ; then \
- rootme=`pwd` ; export rootme ; \
- (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
- else \
- true ; \
- fi
-
-
-
-### other supporting targets
-
-subdir_do:
- @for i in $(DODIRS); do \
- if [ -f ./$$i/localenv ] || [ -f ./$$i/Makefile ] ; then \
- case $$i in \
- libg++ | xiberty | newlib) \
- if (rootme=`pwd` ; export rootme ; \
- srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
- cd ./$$i ; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) $(DO)) ; then true ; \
- else exit 1 ; fi \
- ;; \
- *) \
- if (rootme=`pwd` ; export rootme ; \
- cd ./$$i ; \
- $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
- else exit 1 ; fi \
- ;; \
- esac ; \
- else true ; fi ; \
- done
-
-# The "else true" stuff is for Ultrix; the shell returns the exit code
-# of the "if" command, if no commands are run in the "then" or "else" part,
-# causing Make to quit.
-
-MAKEDIRS= \
- $(prefix) \
- $(exec_prefix) \
- $(tooldir)
-
-# $(bindir) \
-# $(libdir) \
-# $(includedir) \
-# $(datadir) \
-# $(docdir) \
-# $(mandir) \
-# $(man1dir) \
-# $(man5dir)
-
-# $(man2dir) \
-# $(man3dir) \
-# $(man4dir) \
-# $(man6dir) \
-# $(man7dir) \
-# $(man8dir)
-
-install-dirs:
- for i in $(MAKEDIRS) ; do \
- echo Making $$i... ; \
- parent=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
- if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \
- if [ ! -d $$i ] ; then \
- if mkdir $$i ; then \
- true ; \
- else \
- exit 1 ; \
- fi ; \
- else \
- true ; \
- fi ; \
- done
-
-install-info-dirs:
- if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi
-
-dir.info:
- $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new
- mv -f dir.info.new dir.info
-
-dist:
- @echo "Building a full distribution of this tree isn't done"
- @echo "via 'make dist'. Check out the etc/ subdirectory"
-
-etags tags: TAGS
-
-TAGS:
- etags `$(MAKE) ls`
-
-ls:
- @echo Makefile
- @for i in $(SUBDIRS); \
- do \
- (cd $$i; \
- pwd=`pwd`; \
- wd=`basename $$pwd`; \
- for j in `$(MAKE) ls`; \
- do \
- echo $$wd/$$j; \
- done) \
- done
-
-force:
-
-# with the gnu make, this is done automatically.
-
-Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
- $(SHELL) ./config.status
-
-#
-# Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
-
-DEVO_SUPPORT= README cfg-paper.texi Makefile.in configure configure.in \
- config.sub config configure.man configure.texi move-if-change \
- COPYING.LIB
-GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob
-GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
-
-setup-dirs: force
- ./configure sun4
- make clean
- ./configure -rm sun4
- chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
-
-gdb.tar.Z: setup-dirs
- (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir)
- $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
-
-make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex