# This is set by the configure script to the list of directories which
# should be built using the target tools.
-TARGET_CONFIGDIRS = xiberty libgloss newlib libio librx libstdc++ libg++
+TARGET_CONFIGDIRS = xiberty libgloss newlib libio librx libstdc++ libg++ winsup
# This is set by the configure script to the arguments passed to configure.
CONFIG_ARGUMENTS =
all-librx \
all-libg++ \
all-newlib \
+ all-winsup \
all-libgloss \
all-xiberty
configure-librx \
configure-libg++ \
configure-newlib \
+ configure-winsup \
configure-libgloss \
configure-xiberty
check-libstdc++ \
check-libg++ \
check-newlib \
+ check-winsup \
check-xiberty
# This is a list of the install targets for all of the modules which are
install-libstdc++ \
install-libg++ \
install-newlib \
+ install-winsup \
install-libgloss \
install-xiberty
# This is a shell case of all modules which are compiled using
# $(TARGET_FLAGS_TO_PASS), used in the do-X rule.
-TARGET_LIBS = libio | libstdc++ | librx | libg++ | newlib | xiberty
+TARGET_LIBS = libio | libstdc++ | librx | libg++ | newlib | xiberty | winsup
# The first rule in the file had better be this one. Don't put any above it.
all: all.normal
if [ -f ./$${dir}/Makefile ] ; then \
true; \
elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
- if [ -d ./$${dir} ]; then true; else mkdir $${dir}; fi; \
- r=`pwd`; export r; \
- srcroot=`cd $(srcdir); pwd`; export srcroot; \
- AR="$(AR_FOR_TARGET)"; export AR; \
- AS="$(AS_FOR_TARGET)"; export AS; \
- CC="$(CC_FOR_TARGET)"; export CC; \
- CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
- CXX="$(CXX_FOR_TARGET)"; export CXX; \
- CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
- NM="$(NM_FOR_TARGET)"; export NM; \
- RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
- cd $${dir}; \
- $${srcroot}/configure $(CONFIG_ARGUMENTS) --srcdir=$${srcroot}/$${dir}; \
+ if [ -d $(srcdir)/$${dir} ]; then \
+ if [ -d ./$${dir} ]; then true; else mkdir $${dir}; fi; \
+ r=`pwd`; export r; \
+ srcroot=`cd $(srcdir); pwd`; export srcroot; \
+ AR="$(AR_FOR_TARGET)"; export AR; \
+ AS="$(AS_FOR_TARGET)"; export AS; \
+ CC="$(CC_FOR_TARGET)"; export CC; \
+ CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
+ CXX="$(CXX_FOR_TARGET)"; export CXX; \
+ CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
+ NM="$(NM_FOR_TARGET)"; export NM; \
+ RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
+ cd $${dir}; \
+ $${srcroot}/configure $(CONFIG_ARGUMENTS) --srcdir=$${srcroot}/$${dir}; \
+ else \
+ true; \
+ fi \
else \
true; \
fi
all-tgas: all-libiberty all-bfd
all-time:
all-wdiff:
+all-winsup: all-newlib
+configure-winsup: configure-newlib
all-uudecode: all-libiberty
configure-xiberty: all-gcc
all-xiberty: configure-xiberty all-gcc all-ld all-newlib
# Configure extra directories which are host specific
case "${host}" in
- i[345]86-*-go32*|i[345]86-*-win32*)
+ i[345]86-*-win32* | i[345]86-*-go32*)
configdirs="$configdirs dosrel" ;;
esac
+
+# Configure extra directories which are target specific
+
+case "${target}" in
+ i[345]86-*-win32*)
+ configdirs="$configdirs winsup" ;;
+esac
+
# Remove more programs from consideration, based on the host or
# target this usually means that a port of the program doesn't
# exist yet.
noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff"
;;
i[345]86-*-win32)
- noconfigdirs="tk tcl expect diff make texinfo bison flex send-pr gprof gdb readline"
+ noconfigdirs="tk tcl expect dejagnu texinfo bison send-pr gprof rcs"
;;
esac
;;
i[345]86-*-win32)
- # Can't build gdb for win32 target
- noconfigdirs="$noconfigdirs gdb tk"
- # but put newlib back
- skipdirs=`echo " ${skipdirs} " | sed -e 's/ newlib / /'`
+
+ noconfigdirs="$noconfigdirs tk"
+ # Can't build gdb for win32 if not native.
+ if [ x${is_cross_compiler} = xyes ]; then
+ noconfigdirs="$noconfigdirs gdb"
+ fi
;;
i[345]86-*-pe)
noconfigdirs="$noconfigdirs libg++ libstdc++ libio librx"
# Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
# $target_configdirs.
# If we have the source for $noconfigdirs entries, add them to $notsupp.
+
notsupp=""
for dir in . $skipdirs $noconfigdirs ; do
if [ $dir != . ] && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then