1 1.1 matt # $NetBSD: Makefile.inc,v 1.1 2014/09/03 19:34:25 matt Exp $ 2 1.1 matt 3 1.1 matt .for op in add and cas nand or swap xor 4 1.1 matt .for sz in 32 5 1.1 matt SRCS.atomic+= atomic_${op}_${sz}.S 6 1.1 matt .endfor 7 1.1 matt .for sz in 8 16 8 1.1 matt SRCS.atomic+= atomic_${op}_${sz}_cas.c 9 1.1 matt .endfor 10 1.1 matt .endfor 11 1.1 matt SRCS.atomic+= atomic_dec_32.S atomic_inc_32.S 12 1.1 matt SRCS.atomic+= membar_ops.S 13 1.1 matt SRCS.atomic+= atomic_cas_by_cas32.c 14 1.1 matt .if defined(LIB) && ${LIB} != "kern" 15 1.1 matt SRCS.atomic+= sync_bool_compare_and_swap_4.S 16 1.1 matt .endif 17 1.1 matt 18 1.1 matt #.if defined(LIB) && (${LIB} != "kern") 19 1.1 matt #SRCS.atomic+= atomic_simplelock.c 20 1.1 matt #.endif 21 1.1 matt 22 1.1 matt .if defined(LIB) && (${LIB} != "kern" && ${LIB} != "rump") 23 1.1 matt 24 1.1 matt SRCS.atomic+= atomic_init_cas.c 25 1.1 matt 26 1.1 matt .endif #LIB 27 1.1 matt 28 1.1 matt SRCS+= ${SRCS.atomic} 29