+bfd_target=
+
+case "${target}" in
+ a29k-amd-ebmon) bfd_target="ebmon29k" ;;
+ a29k-amd-udi) bfd_target="udi29k" ;;
+ a29k-amd-*) echo "bad target_os for amd" 1>&2
+ exit 1
+ ;;
+esac
+
+
+# remove various programs from consideration. some of these are not
+# reasonable to build for a native compilation (eg newlib). some of these
+# aren't built for each cross compiler toolchain (eg emacs).
+
+if [ x"${host}" = x"${target}" ] ; then
+ # remove from native toolchains
+ configdirs=`echo ${configdirs} | sed -e 's/newlib//'`
+else
+ # remove from cross compilers in general
+ configdirs=`echo ${configdirs} | sed -e 's/emacs//;s/ispell//;s/rcs//;s/cvs//'`
+fi
+
+# remove more programs from consideration, based on the host or
+# target this usually means that a port of the program doesn't
+# exist yet.
+
+#case "${host}" in
+# hppa*-*-*)
+# configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
+# ;;
+#esac
+
+case "${target}" in
+ mips-*-*)
+ configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
+ ;;
+ rs6000-*-*)
+ configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
+ ;;
+ hppa*-*-*)
+ configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//;s/bfd//;s/gdb//'`
+ ;;
+ *-*-solaris2)
+ configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//;s/emacs//'`
+ ;;
+esac
+
+
+target_makefile_frag=config/mt-${bfd_target}
+