1 1.4 maxv # $NetBSD: Makefile.inc,v 1.4 2019/06/01 12:42:27 maxv Exp $ 2 1.1 matt 3 1.1 matt .for op in add and cas nand or sub swap xor 4 1.1 matt sizes=32 5 1.1 matt .if "${MLIBDIR}" != "" 6 1.1 matt .if ${COMMON_MACHINE_ARCH} == "riscv64" 7 1.1 matt sizes+=64 8 1.1 matt .endif 9 1.1 matt .elif ${MACHINE_ARCH} == "riscv64" 10 1.1 matt sizes+=64 11 1.1 matt .endif 12 1.1 matt .for sz in ${sizes} 13 1.1 matt SRCS.atomic+= atomic_${op}_${sz}.S 14 1.1 matt .endfor 15 1.1 matt .for sz in 8 16 16 1.1 matt SRCS.atomic+= atomic_${op}_${sz}_cas.c 17 1.1 matt .endfor 18 1.1 matt .endfor 19 1.1 matt SRCS.atomic+= membar_ops.S 20 1.1 matt SRCS.atomic+= atomic_cas_by_cas32.c 21 1.1 matt 22 1.1 matt .if defined(LIB) && (${LIB} != "kern" && ${LIB} != "rump") 23 1.1 matt 24 1.2 dennis SRCS.atomic+= atomic_init_cas.c \ 25 1.2 dennis atomic_c11_compare_exchange_cas_16.c \ 26 1.2 dennis atomic_c11_compare_exchange_cas_8.c 27 1.1 matt 28 1.1 matt .endif #LIB 29 1.1 matt 30 1.4 maxv .if defined(LIB) && ${LIB} == "c" 31 1.3 mrg SRCS.atomic+= atomic_and_16_nv_cas.c atomic_and_8_nv_cas.c 32 1.3 mrg .endif 33 1.3 mrg 34 1.1 matt SRCS+= ${SRCS.atomic} 35