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