Home | History | Annotate | Line # | Download | only in atomic
Makefile.inc revision 1.5
      1 #	$NetBSD: Makefile.inc,v 1.5 2008/01/22 12:34:58 nakayama 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 . if defined(LIB) && (${LIB} == "kern")
     15 
     16 SRCS+=	atomic_add_32_cas.c atomic_add_32_nv_cas.c atomic_and_32_cas.c \
     17 	atomic_and_32_nv_cas.c atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \
     18 	atomic_inc_32_cas.c atomic_inc_32_nv_cas.c atomic_or_32_cas.c \
     19 	atomic_or_32_nv_cas.c atomic_swap_32_cas.c \
     20 	atomic_cas.S membar_ops.S
     21 
     22 . endif
     23 
     24 .endif
     25