Home | History | Annotate | Line # | Download | only in atomic
Makefile.inc revision 1.8
      1 #	$NetBSD: Makefile.inc,v 1.8 2008/03/07 01:18:54 ad Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 .if ${MACHINE} == "sparc64"
      6 
      7 SPARC64DIR=	${.PARSEDIR}/../../sparc64/atomic
      8 .PATH.c: ${SPARC64DIR}
      9 .PATH.S: ${SPARC64DIR}
     10 
     11 .include "${SPARC64DIR}/Makefile.inc"
     12 
     13 .else
     14 
     15 .if defined(LIB)
     16 
     17 . if (${LIB} == "kern" || ${LIB} == "c")
     18 SRCS+=	atomic_add_32_cas.c atomic_add_32_nv_cas.c atomic_and_32_cas.c \
     19 	atomic_and_32_nv_cas.c atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \
     20 	atomic_inc_32_cas.c atomic_inc_32_nv_cas.c atomic_or_32_cas.c \
     21 	atomic_or_32_nv_cas.c atomic_swap_32_cas.c membar_ops.S
     22 . endif
     23 
     24 . if (${LIB} == "kern")
     25 SRCS+=	atomic_cas.S
     26 . endif
     27 
     28 . if (${LIB} == "c")
     29 SRCS+=	atomic_init_testset.c
     30 . endif
     31 
     32 .endif
     33