3 # Set CMACHFLAGS best target the specific CPU combination, based on
4 # -DM68020, -DM68030, -DM68040, and -DM68060
6 # This should typically be included iff the config file has not already set
8 # .if !defined(CMACHFLAGS)
9 # .include "$S/arch/m68k/Makefile.cmachflags"
10 # CMACHFLAGS+= -Wa,-m68030 -Wa,-m68851
13 # Table of CPUs targetted vs gcc flags. Note: -m68020 and -m68030 are
14 # ~identical, but they are both included for completeness.
16 # 020 030 040 060 -m68020-60
17 # 030 040 060 -m68020-60
18 # 020 040 060 -m68020-60
19 # 020 030 060 -m68020-60
20 # 040 060 -m68020-60 (Would have been nice to have a -m68040-60)
25 # 020 030 040 -m68020-40
34 .if !empty(IDENT:M-DM68060)
35 .if empty(IDENT:M-DM68020) && empty(IDENT:M-DM68030) && empty(IDENT:M-DM68040)
38 CMACHFLAGS= -m68020-60
40 .elif !empty(IDENT:M-DM68040)
41 .if empty(IDENT:M-DM68020) && empty(IDENT:M-DM68030)
44 CMACHFLAGS= -m68020-40
46 .elif !empty(IDENT:M-DM68020)
50 .endif /* !-DM68060 */