⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config-ml.in

📁 基于4个mips核的noc设计
💻 IN
📖 第 1 页 / 共 2 页
字号:
	if [ x$enable_powerpccpu = xno ]	then	  old_multidirs="${multidirs}"	  multidirs=""	  for x in ${old_multidirs}; do	    case "$x" in	      *powerpc* ) : ;;	      *) multidirs="${multidirs} ${x}" ;;	    esac	  done	fi	if [ x$enable_powerpcos = xno ]	then	  old_multidirs="${multidirs}"	  multidirs=""	  for x in ${old_multidirs}; do	    case "$x" in	      *mcall-linux* | *mcall-solaris* ) : ;;	      *) multidirs="${multidirs} ${x}" ;;	    esac	  done	fi	if [ x$enable_biendian = xno ]	then	  old_multidirs="${multidirs}"	  multidirs=""	  for x in ${old_multidirs}; do	    case "$x" in	      *mlittle* | *mbig* ) : ;;	      *) multidirs="${multidirs} ${x}" ;;	    esac	  done	fi	if [ x$enable_sysv = xno ]	then	  old_multidirs="${multidirs}"	  multidirs=""	  for x in ${old_multidirs}; do	    case "$x" in	      *mcall-sysv* ) : ;;	      *) multidirs="${multidirs} ${x}" ;;	    esac	  done	fi	if [ x$enable_aix = xno ]	then	  old_multidirs="${multidirs}"	  multidirs=""	  for x in ${old_multidirs}; do	    case "$x" in	      *mcall-aix* ) : ;;	      *) multidirs="${multidirs} ${x}" ;;	    esac	  done	fi	;;sparc*-*-*)	case " $multidirs " in	*" m64 "*)	  # We will not be able to create libraries with -m64 if	  # we cannot even link a trivial program.  It usually	  # indicates the 64bit libraries are missing.	  if echo 'main() {}' > conftest.c &&	     ${CC-gcc} -m64 conftest.c -o conftest; then	    :	  else	    echo Could not link program with -m64, disabling it.	    old_multidirs="${multidirs}"	    multidirs=""	    for x in ${old_multidirs}; do	      case "$x" in	      *m64* ) : ;;	      *) multidirs="${multidirs} ${x}" ;;	      esac	    done	  fi	  rm -f conftest.c conftest	  ;;	esac	;;esac# Remove extraneous blanks from multidirs.# Tests like `if [ -n "$multidirs" ]' require it.multidirs=`echo "$multidirs" | sed -e 's/^[ ][ ]*//' -e 's/[ ][ ]*$//' -e 's/[ ][ ]*/ /g'`# Add code to library's top level makefile to handle building the multilib# subdirs.cat > Multi.tem <<\EOF# FIXME: There should be an @-sign in front of the `if'.# Leave out until this is tested a bit more.multi-do:	if [ -z "$(MULTIDIRS)" ]; then \	  true; \	else \	  rootpre=`pwd`/; export rootpre; \	  srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \	  lib=`echo $${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$$,\1,'`; \	  compiler="$(CC)"; \	  for i in `$${compiler} --print-multi-lib 2>/dev/null`; do \	    dir=`echo $$i | sed -e 's/;.*$$//'`; \	    if [ "$${dir}" = "." ]; then \	      true; \	    else \	      if [ -d ../$${dir}/$${lib} ]; then \		flags=`echo $$i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \		if (cd ../$${dir}/$${lib}; $(MAKE) $(FLAGS_TO_PASS) \				CFLAGS="$(CFLAGS) $${flags}" \				prefix="$(prefix)" \				exec_prefix="$(exec_prefix)" \				CXXFLAGS="$(CXXFLAGS) $${flags}" \				LIBCFLAGS="$(LIBCFLAGS) $${flags}" \				LIBCXXFLAGS="$(LIBCXXFLAGS) $${flags}" \				LDFLAGS="$(LDFLAGS) $${flags}" \				$(DO)); then \		  true; \		else \		  exit 1; \		fi; \	      else true; \	      fi; \	    fi; \	  done; \	fi# FIXME: There should be an @-sign in front of the `if'.# Leave out until this is tested a bit more.multi-clean:	if [ -z "$(MULTIDIRS)" ]; then \	  true; \	else \	  lib=`pwd | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \	  for dir in Makefile $(MULTIDIRS); do \	    if [ -f ../$${dir}/$${lib}/Makefile ]; then \	      if (cd ../$${dir}/$${lib}; $(MAKE) $(FLAGS_TO_PASS) $(DO)); \	      then true; \	      else exit 1; \	      fi; \	    else true; \	    fi; \	  done; \	fiEOFcat ${Makefile} Multi.tem > Makefile.temrm -f ${Makefile} Multi.temmv Makefile.tem ${Makefile}fi # ${ml_toplevel_p} = yesif [ "${ml_verbose}" = --verbose ]; then  echo "Adding multilib support to Makefile in ${ml_realsrcdir}"  if [ "${ml_toplevel_p}" = yes ]; then    echo "multidirs=${multidirs}"  fi  echo "with_multisubdir=${with_multisubdir}"fiif [ "${srcdir}" = "." ]; then  if [ "${with_target_subdir}" != "." ]; then    ml_srcdotdot="../"  else    ml_srcdotdot=""  fielse  ml_srcdotdot=""fiif [ -z "${with_multisubdir}" ]; then  ml_subdir=  ml_builddotdot=  : # ml_srcdotdot= # already setelse  ml_subdir="/${with_multisubdir}"  # The '[^/][^/]*' appears that way to work around a SunOS sed bug.  ml_builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`/  if [ "$srcdir" = "." ]; then    ml_srcdotdot=${ml_srcdotdot}${ml_builddotdot}  else    : # ml_srcdotdot= # already set  fifiif [ "${ml_toplevel_p}" = yes ]; then  ml_do='$(MAKE)'  ml_clean='$(MAKE)'else  ml_do=true  ml_clean=truefi# TOP is used by newlib and should not be used elsewhere for this purpose.# MULTI{SRC,BUILD}TOP are the proper ones to use.  MULTISRCTOP is empty# when srcdir != builddir.  MULTIBUILDTOP is always some number of ../'s.# FIXME: newlib needs to be updated to use MULTI{SRC,BUILD}TOP so we can# delete TOP.  Newlib may wish to continue to use TOP for its own purposes# of course.# MULTIDIRS is non-empty for the cpu top level Makefile (eg: newlib/Makefile)# and lists the subdirectories to recurse into.# MULTISUBDIR is non-empty in each cpu subdirectory's Makefile# (eg: newlib/h8300h/Makefile) and is the installed subdirectory name with# a leading '/'.# MULTIDO is used for targets like all, install, and check where# $(FLAGS_TO_PASS) augmented with the subdir's compiler option is needed.# MULTICLEAN is used for the *clean targets.## ??? It is possible to merge MULTIDO and MULTICLEAN into one.  They are# currently kept separate because we don't want the *clean targets to require# the existence of the compiler (which MULTIDO currently requires) and# therefore we'd have to record the directory options as well as names# (currently we just record the names and use --print-multi-lib to get the# options).sed -e "s:^TOP[ 	]*=[ 	]*\([./]*\)[ 	]*$:TOP = ${ml_builddotdot}\1:" \    -e "s:^MULTISRCTOP[ 	]*=.*$:MULTISRCTOP = ${ml_srcdotdot}:" \    -e "s:^MULTIBUILDTOP[ 	]*=.*$:MULTIBUILDTOP = ${ml_builddotdot}:" \    -e "s:^MULTIDIRS[ 	]*=.*$:MULTIDIRS = ${multidirs}:" \    -e "s:^MULTISUBDIR[ 	]*=.*$:MULTISUBDIR = ${ml_subdir}:" \    -e "s:^MULTIDO[ 	]*=.*$:MULTIDO = $ml_do:" \    -e "s:^MULTICLEAN[ 	]*=.*$:MULTICLEAN = $ml_clean:" \	${Makefile} > Makefile.temrm -f ${Makefile}mv Makefile.tem ${Makefile}# If this is the library's top level, configure each multilib subdir.# This is done at the end because this is the loop that runs configure# in each multilib subdir and it seemed reasonable to finish updating the# Makefile before going on to configure the subdirs.if [ "${ml_toplevel_p}" = yes ]; then# We must freshly configure each subdirectory.  This bit of code is# actually partially stolen from the main configure script.  FIXME.if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then  if [ "${ml_verbose}" = --verbose ]; then    echo "Running configure in multilib subdirs ${multidirs}"    echo "pwd: `pwd`"  fi  ml_origdir=`pwd`  ml_libdir=`echo $ml_origdir | sed -e 's,^.*/,,'`  # cd to top-level-build-dir/${with_target_subdir}  cd ..  for ml_dir in ${multidirs}; do    if [ "${ml_verbose}" = --verbose ]; then      echo "Running configure in multilib subdir ${ml_dir}"      echo "pwd: `pwd`"    fi    if [ -d ${ml_dir} ]; then true; else      # ``mkdir -p ${ml_dir}'' See also mkinstalldirs.      pathcomp=""      for d in `echo ":${ml_dir}" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`; do        pathcomp="$pathcomp$d"        case "$pathcomp" in          -* ) pathcomp=./$pathcomp ;;        esac        if test ! -d "$pathcomp"; then           echo "mkdir $pathcomp" 1>&2           mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$?        fi        if test ! -d "$pathcomp"; then	   exit $lasterr        fi        pathcomp="$pathcomp/"      done    fi    if [ -d ${ml_dir}/${ml_libdir} ]; then true; else mkdir ${ml_dir}/${ml_libdir}; fi    # Eg: if ${ml_dir} = m68000/m68881, dotdot = ../../    dotdot=../`echo ${ml_dir} | sed -e 's|[^/]||g' -e 's|/|../|g'`    case ${srcdir} in    ".")      echo Building symlink tree in `pwd`/${ml_dir}/${ml_libdir}      if [ "${with_target_subdir}" != "." ]; then	ml_unsubdir="../"      else	ml_unsubdir=""      fi      (cd ${ml_dir}/${ml_libdir};       ../${dotdot}${ml_unsubdir}symlink-tree ../${dotdot}${ml_unsubdir}${ml_libdir} "")      if [ -f ${ml_dir}/${ml_libdir}/Makefile ]; then	if [ x"${MAKE}" = x ]; then	  (cd ${ml_dir}/${ml_libdir}; make distclean)	else	  (cd ${ml_dir}/${ml_libdir}; ${MAKE} distclean)	fi      fi      ml_newsrcdir="."      ml_srcdiroption=      multisrctop=${dotdot}      ;;    *)      case "${srcdir}" in      /*) # absolute path        ml_newsrcdir=${srcdir}        ;;      *) # otherwise relative        ml_newsrcdir=${dotdot}${srcdir}        ;;      esac      ml_srcdiroption="-srcdir=${ml_newsrcdir}"      multisrctop=      ;;    esac    case "${progname}" in    /*)     ml_recprog=${progname} ;;    *)      ml_recprog=${dotdot}${progname} ;;    esac    # FIXME: POPDIR=${PWD=`pwd`} doesn't work here.    ML_POPDIR=`pwd`    cd ${ml_dir}/${ml_libdir}    if [ -f ${ml_newsrcdir}/configure ]; then      ml_recprog="${ml_newsrcdir}/configure --cache-file=../config.cache"    fi    # find compiler flag corresponding to ${ml_dir}    for i in `${CC-gcc} --print-multi-lib 2>/dev/null`; do       dir=`echo $i | sed -e 's/;.*$//'`      if [ "${dir}" = "${ml_dir}" ]; then        flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`        break      fi    done    ml_config_env='CC="${CC_}$flags" CXX="${CXX_}$flags"'    if [ "${with_target_subdir}" = "." ]; then	CC_=$CC' '	CXX_=$CXX' '    else	# Create a regular expression that matches any string as long	# as ML_POPDIR.	popdir_rx=`echo ${ML_POPDIR} | sed 's,.,.,g'`	CC_=	for arg in ${CC}; do	  case $arg in	  -[BIL]"${ML_POPDIR}"/*)	    CC_="${CC_}"`echo "X${arg}" | sed -n "s/X\\(-[BIL]${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X-[BIL]${popdir_rx}\\(.*\\)/\1/p"`' ' ;;	  "${ML_POPDIR}"/*)	    CC_="${CC_}"`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;	  *)	    CC_="${CC_}${arg} " ;;	  esac	done	CXX_=	for arg in ${CXX}; do	  case $arg in	  -[BIL]"${ML_POPDIR}"/*)	    CXX_="${CXX_}"`echo "X${arg}" | sed -n "s/X\\(-[BIL]${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X-[BIL]${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;	  "${ML_POPDIR}"/*)	    CXX_="${CXX_}"`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;	  *)	    CXX_="${CXX_}${arg} " ;;	  esac	done	if test "x${LD_LIBRARY_PATH+set}" = xset; then	  LD_LIBRARY_PATH_=	  for arg in `echo "$LD_LIBRARY_PATH" | tr ':' ' '`; do	    case "$arg" in	    "${ML_POPDIR}"/*)	      arg=`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`	      ;;	    esac	    if test "x$LD_LIBRARY_PATH_" != x; then	      LD_LIBRARY_PATH_=$LD_LIBRARY_PATH_:$arg	    else	      LD_LIBRARY_PATH_=$arg	    fi          done	  ml_config_env="$ml_config_env LD_LIBRARY_PATH=$LD_LIBRARY_PATH_"	fi	if test "x${SHLIB_PATH+set}" = xset; then	  SHLIB_PATH_=	  for arg in `echo "$SHLIB_PATH" | tr ':' ' '`; do	    case "$arg" in	    "${ML_POPDIR}"/*)	      arg=`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`	      ;;	    esac	    if test "x$SHLIB_PATH_" != x; then	      SHLIB_PATH_=$SHLIB_PATH_:$arg	    else	      SHLIB_PATH_=$arg	    fi          done	  ml_config_env="$ml_config_env SHLIB_PATH=$SHLIB_PATH_"	fi    fi    if eval ${ml_config_env} ${ml_config_shell} ${ml_recprog} \	--with-multisubdir=${ml_dir} --with-multisrctop=${multisrctop} \	${ml_arguments} ${ml_srcdiroption} ; then      true    else      exit 1    fi    cd ${ML_POPDIR}  done  cd ${ml_origdir}fifi # ${ml_toplevel_p} = yesfi # ${enable_multilib} = yes

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -