2021-12-19 16:12:28 +01:00
|
|
|
# $NetBSD: atomic64.mk,v 1.6 2021/12/19 15:12:28 ryoon Exp $
|
2020-12-31 21:04:11 +01:00
|
|
|
#
|
|
|
|
# This Makefile fragment is included by packages that require 64-bit atomic
|
|
|
|
# operations, and will attempt to set the appropriate architecture-specific
|
|
|
|
# compiler flags.
|
|
|
|
|
|
|
|
.if !defined(ATOMIC64_MK)
|
|
|
|
|
|
|
|
ATOMIC64_MK:=
|
|
|
|
|
2021-01-01 01:06:29 +01:00
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
2020-12-31 21:04:11 +01:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
. if empty(CFLAGS:M*march=*)
|
|
|
|
CFLAGS+= -march=i586
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2021-06-13 08:04:17 +02:00
|
|
|
.if ${MACHINE_ARCH} == "m68k" || \
|
|
|
|
${MACHINE_ARCH} == "powerpc" || \
|
2021-08-02 20:37:08 +02:00
|
|
|
${MACHINE_ARCH} == "sparc" || \
|
|
|
|
${MACHINE_ARCH} == "vax"
|
2020-12-31 21:04:11 +01:00
|
|
|
. include "../../devel/libatomic/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif
|