X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=Makefile.in;h=ea6efdd7f47ea4b16cda1aa88d8d610dc6e490af;hb=a4e879a1a11f5753c5d998547c6e5f2e024490f5;hp=ce118d547c1b062744eb0515494350312df1527c;hpb=72c09fbc24b713c2653ae7c6a99999b501ecfeea;p=deliverable%2Fbinutils-gdb.git diff --git a/Makefile.in b/Makefile.in index ce118d547c..ea6efdd7f4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,6 +1,6 @@ # # Makefile for directory with subdirs to build. -# Copyright (C) 1990, 1991, 1992 Free Software Foundation +# Copyright (C) 1990-1993 Free Software Foundation # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -54,10 +54,10 @@ AR = ar AR_FLAGS = rc CC = cc CFLAGS = -g -$(start-sanitize-chill) +# start-sanitize-chill CHILLFLAGS = $(CFLAGS) CHILL_LIB = -lchill -$(end-sanitize-chill) +# end-sanitize-chill CXX = gcc CXXFLAGS = -g -O RANLIB = ranlib @@ -106,18 +106,7 @@ CC_FOR_TARGET = ` \ fi; \ fi` -GCC_FOR_TARGET = ` \ - if [ -f $${rootme}/gcc/Makefile ] ; then \ - echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \ - else \ - if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ - echo $(CC); \ - else \ - t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ - fi; \ - fi` - -$(start-sanitize-chill) +# start-sanitize-chill CHILL_FOR_TARGET = ` \ if [ -f $${rootme}/gcc/Makefile ] ; then \ echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/ -L$${rootme}/chillrt/; \ @@ -128,7 +117,8 @@ CHILL_FOR_TARGET = ` \ t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ fi; \ fi` -$(end-sanitize-chill) + +# end-sanitize-chill CXX_FOR_TARGET = ` \ if [ -f $${rootme}/gcc/Makefile ] ; then \ @@ -197,7 +187,7 @@ XTRAFLAGS = ` \ echo ; \ fi` -PRMS = all-prms +PRMS = install-prms #### host and target specific makefile fragments come in here. ### @@ -212,15 +202,15 @@ BASE_FLAGS_TO_PASS = \ "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ "CFLAGS=$(CFLAGS)" \ -$(start-sanitize-chill)\ + $(start-sanitize-chill)\ "CHILLFLAGS=$(CHILLFLAGS)" \ "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \ "CHILL_LIB=$(CHILL_LIB)" \ -$(end-sanitize-chill)\ + $(end-sanitize-chill)\ "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ "CXXFLAGS=$(CXXFLAGS)" \ "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ - "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ + 'GCC_FOR_TARGET=$$(CC_FOR_TARGET)' \ "INSTALL=$(INSTALL)" \ "INSTALL_DATA=$(INSTALL_DATA)" \ "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ @@ -259,9 +249,9 @@ X11_FLAGS_TO_PASS = \ # Shell case of subdirectories which are built with the target environment. TARGET_LIBS=libg++ | xiberty | newlib -$(start-sanitize-chill) +# start-sanitize-chill TARGET_LIBS=libg++ | xiberty | newlib | chillrt -$(end-sanitize-chill) +# end-sanitize-chill # Flags to pass down to makes which are built with the target environment. # The double $ decreases the length of the command line; the variables @@ -296,24 +286,32 @@ GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) # The first rule in the file had better be this one. Don't put any above it. all: $(ALL) -.PHONY: all check dvi info install-info install-info-dirs -.PHONY: do-info do-check do-dvi do-install-info +.PHONY: all check installcheck dvi info install-info install-info-dirs +.PHONY: do-info do-check do-installcheck do-dvi do-install-info .PHONY: do-clean do-mostlyclean do-distclean do-realclean .NOEXPORT: +MAKEOVERRIDES= + +# start-sanitize-chill +## This is ugly, but I don't want GNU make to put these variables in +## the environment. Older makes will see this as a set of targets +## with no dependencies and no actions. +unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET : +# end-sanitize-chill # Do a target for all the subdirectories. A ``make do-X'' will do a -# ``make X'' in all subdirectories (because, in general, X depends on -# fdo-X, a ``make X'' will also do this, but it may do additional work -# as well). +# ``make X'' in all subdirectories (because, in general, there is a +# dependency (below) of X upon do-X, a ``make X'' will also do this, +# but it may do additional work as well). # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once, # because it is so large that it can easily overflow the command line # length limit on some systems. -do-info do-check do-dvi do-install-info do-clean do-mostlyclean do-distclean do-realclean: +do-info do-check do-installcheck do-dvi do-install-info do-clean do-mostlyclean do-distclean do-realclean: @target=`echo $@ | sed -e 's/^do-//'`; \ rootme=`pwd`; export rootme; \ srcroot=`cd $(srcdir); pwd`; export srcroot; \ for i in $(SUBDIRS); do \ - if [ -f ./$$i/localenv ] || [ -f ./$$i/Makefile ]; then \ + if [ -f ./$$i/Makefile ]; then \ case $$i in \ $(TARGET_LIBS) ) \ for flag in $(EXTRA_TARGET_FLAGS); do \ @@ -343,12 +341,13 @@ do-info do-check do-dvi do-install-info do-clean do-mostlyclean do-distclean do- info: do-info check: do-check +installcheck: do-installcheck dvi: do-dvi install-info: install-info-dirs do-install-info dir.info if [ -f dir.info ] ; then \ $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \ - fi + else true ; fi do-install-info: install-info-dirs @@ -362,7 +361,7 @@ all.normal: all-m4 all-autoconf all-libiberty all-mmalloc all-texinfo \ $(start-sanitize-chill) \ all-chillrt \ $(end-sanitize-chill) \ - all-gprof all-prms all-send-pr all-libm all-deja-gnu \ + all-gprof all-prms all-send-pr all-libm all-dejagnu \ all-fileutils all-find all-gawk all-sed all-shellutils \ all-textutils all-time all-wdiff all-uudecode \ all-hello all-tar all-gzip all-indent all-recode @@ -374,7 +373,7 @@ all.cross: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \ $(start-sanitize-chill) \ all-chillrt \ $(end-sanitize-chill) \ - all-deja-gnu + all-dejagnu .PHONY: clean distclean mostlyclean realclean local-clean local-distclean @@ -415,7 +414,7 @@ install-no-fixedincludes: install-dirs gcc-no-fixedincludes \ install-chillrt \ $(end-sanitize-chill) \ install-cvs \ - install-deja-gnu \ + install-dejagnu \ install-diff \ install-emacs \ install-etc \ @@ -488,7 +487,7 @@ install.cross: install-dirs install-libiberty install-mmalloc \ $(start-sanitize-chill) \ install-chillrt \ $(end-sanitize-chill) \ - install-gcc install-etc install-deja-gnu + install-gcc install-etc install-dejagnu ### gzip all-gzip: all-libiberty @@ -576,19 +575,19 @@ install-tar: force fi -### deja-gnu -all-deja-gnu: force - @if [ -f ./deja-gnu/Makefile ] ; then \ +### dejagnu +all-dejagnu: force + @if [ -f ./dejagnu/Makefile ] ; then \ rootme=`pwd` ; export rootme ; \ - (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \ + (cd ./dejagnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \ else \ true ; \ fi -install-deja-gnu: force - @if [ -f ./deja-gnu/Makefile ] ; then \ +install-dejagnu: force + @if [ -f ./dejagnu/Makefile ] ; then \ rootme=`pwd` ; export rootme ; \ - (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) install) ; \ + (cd ./dejagnu; $(MAKE) $(FLAGS_TO_PASS) install) ; \ else \ true ; \ fi @@ -805,6 +804,7 @@ install-chillrt: force else \ true ; \ fi + ### end-sanitize-chill ### gprof @@ -1265,6 +1265,28 @@ install-tk: force true ; \ fi +### tclX +all-tclX: all-tcl all-tk + @if [ -f ./tclX/Makefile ] ; then \ + rootme=`pwd` ; export rootme ; \ + srcroot=`cd $(srcdir); pwd`; export srcroot ; \ + (cd ./tclX; \ + $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \ + else \ + true ; \ + fi + +install-tclX: force + @if [ -f ./tclX/Makefile ] ; then \ + rootme=`pwd` ; export rootme ; \ + srcroot=`cd $(srcdir); pwd`; export srcroot ; \ + (cd ./tclX; \ + $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \ + else \ + true ; \ + fi + + ### expect all-expect: all-tcl @if [ -f ./expect/Makefile ] ; then \ @@ -1526,6 +1548,7 @@ dir.info: do-install-info if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \ $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \ mv -f dir.info.new dir.info ; \ + else true ; \ fi dist: @@ -1569,7 +1592,7 @@ GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) setup-dirs: force ./configure sun4 - make clean + $(MAKE) clean ./configure -rm sun4 chmod og=u `find etc $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`