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