*-cygwin32*)
host_makefile_frag="${host_makefile_frag} config/mh-cygwin32"
;;
+ *-mingw32*)
+ host_makefile_frag="${host_makefile_frag} config/mh-mingw32"
+ ;;
*-windows*)
host_makefile_frag="${host_makefile_frag} config/mh-windows"
;;
host_makefile_frag="${host_makefile_frag} config/mh-elfalphapic"
;;
*)
- host_makefile_frag="${host_makefile_frag} config/mh-${host_cpu}pic"
+ if test -f ${srcdir}/config/mh-${host_cpu}pic; then
+ host_makefile_frag="${host_makefile_frag} config/mh-${host_cpu}pic"
+ fi
;;
esac
fi
case "${host}" in
i[3456]86-*-go32*)
configdirs="$configdirs dosrel" ;;
+ i[3456]86-*-mingw32*)
+ configdirs="$configdirs dosrel" ;;
*-cygwin32*)
configdirs="$configdirs dosrel" ;;
esac
noconfigdirs="$noconfigdirs libide vmake jstools"
# end-sanitize-ide
;;
+ i[3456]86-*-mingw32*)
+ # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl apache inet itcl tix db sn gnuserv"
+ noconfigdirs="expect dejagnu cvs autoconf automake send-pr gprof rcs guile perl texinfo apache inet"
+ ;;
*-*-cygwin32)
- noconfigdirs="expect dejagnu cvssrc autoconf automake send-pr gprof rcs guile perl texinfo apache inet"
+ noconfigdirs="autoconf automake send-pr gprof rcs guile perl texinfo apache inet"
;;
*-*-windows*)
# This is only used to build WinGDB...
configdirs="bfd libiberty opcodes readline sim gdb"
target_configdirs=
;;
+ *-*-netbsd*)
+ noconfigdirs="rcs"
+ ;;
ppc*-*-pe)
noconfigdirs="patch diff make tk tcl expect dejagnu cvssrc autoconf automake texinfo bison send-pr gprof rcs guile perl apache inet itcl tix db sn gnuserv"
# start-sanitize-ide
# but don't build gdb
noconfigdirs="$noconfigdirs gdb target-libg++ target-libstdc++ target-libio target-librx"
;;
+ i[3456]86-*-mingw32*)
+ target_configdirs="$target_configdirs target-mingw"
+ noconfigdirs="$noconfigdirs expect target-libgloss"
+
+ # Can't build gdb for cygwin32 if not native.
+ case "${host}" in
+ i[3456]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
+ *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix db sn gnuserv"
+ ;;
+ esac
+ ;;
*-*-cygwin32)
target_configdirs="$target_configdirs target-winsup"
- noconfigdirs="$noconfigdirs expect target-libgloss"
+ noconfigdirs="$noconfigdirs target-libgloss"
# always build newlib.
skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
target_configdirs="${target_configdirs} target-cygmon"
fi
;;
+ sparc64-*-elf*)
+ if [ x${is_cross_compiler} != xno ] ; then
+ target_configdirs="${target_configdirs} target-cygmon"
+ fi
+ ;;
sparclite-*-aout*)
if [ x${is_cross_compiler} != xno ] ; then
target_configdirs="${target_configdirs} target-cygmon"
;;
# start-sanitize-sky
txvu-*-elf*)
- noconfigdirs="$noconfigdirs gcc gdb"
+ noconfigdirs="$noconfigdirs gcc"
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty"
+ noconfigdirs="$noconfigdirs target-librx target-libg++ target-libstdc++ target-libio"
+ ;;
+ dvp-*-elf*)
+ noconfigdirs="$noconfigdirs gcc gdb sim"
+ noconfigdirs="$noconfigdirs itcl libgui tk tix"
noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty"
noconfigdirs="$noconfigdirs target-librx target-libg++ target-libstdc++ target-libio"
;;
*target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
esac
-# If we are building a Canadian Cross, discard tools that can not be built
-# using a cross compiler. FIXME: These tools should be fixed.
-if [ "${build}" != "${host}" ]; then
- noconfigdirs="$noconfigdirs expect dejagnu"
-fi
-
# Make sure we don't let GNU ld be added if we didn't want it.
if [ x$with_gnu_ld = xno ]; then
use_gnu_ld=no
target_makefile_frag="${target_makefile_frag} config/mt-elfalphapic"
;;
*)
- target_makefile_frag="${target_makefile_frag} config/mt-${target_cpu}pic"
+ if test -f ${srcdir}/config/mt-${target_cpu}pic; then
+ target_makefile_frag="${target_makefile_frag} config/mt-${target_cpu}pic"
+ fi
;;
esac
fi
case "${host}" in
*-*-hpux*)
- sed -e 's/RPATH_ENVVAR[ ]*=.*$/RPATH_ENVVAR = SHLIB_PATH/' \
+ sed -e 's/^RPATH_ENVVAR[ ]*=.*$/RPATH_ENVVAR = SHLIB_PATH/' \
Makefile > Makefile.tem
rm -f Makefile
mv -f Makefile.tem Makefile
esac
fi
-# If we are building for a cygwin32 host, then set INSTALL_PROGRAM_ARGS to
+# If we are building for a win32 host, then set INSTALL_PROGRAM_ARGS to
# -x. This will cause programs to be installed with .exe extensions.
case "${host}" in
-*-*-cygwin32*)
+*-*-cygwin32* | i[3456]86-*-mingw32)
sed -e 's/^INSTALL_PROGRAM_ARGS[ ]*=.*$/INSTALL_PROGRAM_ARGS = -x/' \
Makefile > Makefile.tem
rm -f Makefile