| @@ -1,26 +1,28 @@ | | | @@ -1,26 +1,28 @@ |
1 | # $NetBSD: atomic64.mk,v 1.6 2021/12/19 15:12:28 ryoon Exp $ | | 1 | # $NetBSD: atomic64.mk,v 1.7 2022/11/15 17:14:48 he Exp $ |
2 | # | | 2 | # |
3 | # This Makefile fragment is included by packages that require 64-bit atomic | | 3 | # This Makefile fragment is included by packages that require 64-bit atomic |
4 | # operations, and will attempt to set the appropriate architecture-specific | | 4 | # operations, and will attempt to set the appropriate architecture-specific |
5 | # compiler flags. | | 5 | # compiler flags. |
6 | | | 6 | |
7 | .if !defined(ATOMIC64_MK) | | 7 | .if !defined(ATOMIC64_MK) |
8 | | | 8 | |
9 | ATOMIC64_MK:= | | 9 | ATOMIC64_MK:= |
10 | | | 10 | |
11 | .include "../../mk/bsd.fast.prefs.mk" | | 11 | .include "../../mk/bsd.fast.prefs.mk" |
12 | | | 12 | |
13 | .if ${MACHINE_ARCH} == "i386" | | 13 | .if ${MACHINE_ARCH} == "i386" |
14 | . if empty(CFLAGS:M*march=*) | | 14 | . if empty(CFLAGS:M*march=*) |
15 | CFLAGS+= -march=i586 | | 15 | CFLAGS+= -march=i586 |
16 | . endif | | 16 | . endif |
17 | .endif | | 17 | .endif |
18 | | | 18 | |
19 | .if ${MACHINE_ARCH} == "m68k" || \ | | 19 | .if ${MACHINE_ARCH} == "m68k" || \ |
| | | 20 | ${MACHINE_ARCH} == "mipsel" || \ |
| | | 21 | ${MACHINE_ARCH} == "mipseb" || \ |
20 | ${MACHINE_ARCH} == "powerpc" || \ | | 22 | ${MACHINE_ARCH} == "powerpc" || \ |
21 | ${MACHINE_ARCH} == "sparc" || \ | | 23 | ${MACHINE_ARCH} == "sparc" || \ |
22 | ${MACHINE_ARCH} == "vax" | | 24 | ${MACHINE_ARCH} == "vax" |
23 | . include "../../devel/libatomic/buildlink3.mk" | | 25 | . include "../../devel/libatomic/buildlink3.mk" |
24 | .endif | | 26 | .endif |
25 | | | 27 | |
26 | .endif | | 28 | .endif |