blob: 94fc1aabc2affa63cc6cc41b9848aa454d634cb7 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001# This fragment canonicalizes the machine names for m68k variants.
2
3case "$machine" in
4m680?0) base_machine=m68k machine=m68k/m680x0/$machine ;;
5m68k) variant=`(echo "#ifdef __mcoldfire__"
6 echo "coldfire"
7 echo "#else"
8 echo "m680x0/m68020"
9 echo "#endif") |
10 $CC $CFLAGS $CPPFLAGS -E - |
11 grep '^[a-z]'`
12 if test -z "$variant"; then
13 echo >&2 "Cannot determine m68k processor variant"
14 exit 1
15 fi
16 base_machine=m68k machine=m68k/$variant ;;
17esac