Home | History | Annotate | Line # | Download | only in atomic
      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
      5 SRCS.atomic+=	atomic_${op}_${sz}.S
      6 .endfor
      7 .for sz in 8 16
      8 SRCS.atomic+=	atomic_${op}_${sz}_cas.c
      9 .endfor
     10 .endfor
     11 SRCS.atomic+=	atomic_dec_32.S atomic_inc_32.S
     12 SRCS.atomic+=	membar_ops.S
     13 SRCS.atomic+=	atomic_cas_by_cas32.c
     14 .if defined(LIB) && ${LIB} != "kern"
     15 SRCS.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 
     24 SRCS.atomic+=	atomic_init_cas.c
     25 
     26 .endif #LIB
     27 
     28 SRCS+=	${SRCS.atomic}
     29