+x86_tobjs="x86-tdep.o"
+i386_tobjs="i386-tdep.o arch/i386.o i387-tdep.o ${x86_tobjs}"
+amd64_tobjs="amd64-tdep.o arch/amd64.o ${x86_tobjs}"
+
+# Here are three sections to get a list of target specific object
+# files according to target triplet $TARG.
+
+# 1. Get the objects per cpu in $TARG.
+
+case "${targ}" in
+aarch64*-*-*)
+ cpu_obs="aarch64-tdep.o arch/aarch64-insn.o arch/aarch64.o";;
+
+alpha*-*-*)
+ # Target: Alpha
+ cpu_obs="alpha-tdep.o"
+ ;;
+
+arc*-*-*)
+ # Target: Unidentified ARC target
+ cpu_obs="arc-tdep.o"
+ ;;
+
+arm*-*-*)
+ cpu_obs="arch/arm.o arch/arm-get-next-pcs.o arm-tdep.o";;
+
+hppa*-*-*)
+ # Target: HP PA-RISC
+ cpu_obs="hppa-tdep.o"
+ ;;
+
+i[34567]86-*-*)
+ cpu_obs="${i386_tobjs}"
+ if test "x$enable_64_bit_bfd" = "xyes"; then
+ cpu_obs="${amd64_tobjs} ${cpu_obs}"
+ fi
+ ;;
+
+ia64*-*-*)
+ # Target: Intel IA-64
+ cpu_obs="ia64-tdep.o"
+ ;;
+
+x86_64-*-*)
+ cpu_obs="${i386_tobjs} ${amd64_tobjs}";;
+
+xtensa*)
+ # Target: Tensilica Xtensa processors
+ cpu_obs="xtensa-tdep.o xtensa-config.o solib-svr4.o"
+ ;;
+
+esac
+
+# 2. Get the objects per os in $TARG.