1 1.1 abs # $NetBSD: Makefile.cmachflags,v 1.1 2009/01/25 22:25:08 abs Exp $ 2 1.1 abs 3 1.1 abs # Set CMACHFLAGS best target the specific CPU combination, based on 4 1.1 abs # -DM68020, -DM68030, -DM68040, and -DM68060 5 1.1 abs 6 1.1 abs # This should typically be included iff the config file has not already set 7 1.1 abs # CMACHFLAGS, eg: 8 1.1 abs # .if !defined(CMACHFLAGS) 9 1.1 abs # .include "$S/arch/m68k/Makefile.cmachflags" 10 1.1 abs # CMACHFLAGS+= -Wa,-m68030 -Wa,-m68851 11 1.1 abs # .endif 12 1.1 abs 13 1.1 abs # Table of CPUs targetted vs gcc flags. Note: -m68020 and -m68030 are 14 1.1 abs # ~identical, but they are both included for completeness. 15 1.1 abs 16 1.1 abs # 020 030 040 060 -m68020-60 17 1.1 abs # 030 040 060 -m68020-60 18 1.1 abs # 020 040 060 -m68020-60 19 1.1 abs # 020 030 060 -m68020-60 20 1.1 abs # 040 060 -m68020-60 (Would have been nice to have a -m68040-60) 21 1.1 abs # 030 060 -m68020-60 22 1.1 abs # 020 060 -m68020-60 23 1.1 abs # 060 -m68060 24 1.1 abs # 25 1.1 abs # 020 030 040 -m68020-40 26 1.1 abs # 030 040 -m68020-40 27 1.1 abs # 020 040 -m68020-40 28 1.1 abs # 040 -m68040 29 1.1 abs # 30 1.1 abs # 020 030 -m68020 31 1.1 abs # 030 -m68030 32 1.1 abs # 020 -m68020 33 1.1 abs 34 1.1 abs .if !empty(IDENT:M-DM68060) 35 1.1 abs .if empty(IDENT:M-DM68020) && empty(IDENT:M-DM68030) && empty(IDENT:M-DM68040) 36 1.1 abs CMACHFLAGS= -m68060 37 1.1 abs .else 38 1.1 abs CMACHFLAGS= -m68020-60 39 1.1 abs .endif 40 1.1 abs .elif !empty(IDENT:M-DM68040) 41 1.1 abs .if empty(IDENT:M-DM68020) && empty(IDENT:M-DM68030) 42 1.1 abs CMACHFLAGS= -m68040 43 1.1 abs .else /* !-DM68060 */ 44 1.1 abs CMACHFLAGS= -m68020-40 45 1.1 abs .endif 46 1.1 abs .elif !empty(IDENT:M-DM68020) 47 1.1 abs CMACHFLAGS= -m68020 48 1.1 abs .else 49 1.1 abs CMACHFLAGS= -m68030 50 1.1 abs .endif /* !-DM68060 */ 51