Home | History | Annotate | Line # | Download | only in atomic
Makefile.inc revision 1.1
      1  1.1  matt #	$NetBSD: Makefile.inc,v 1.1 2014/09/19 17:36:24 matt 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.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