1 # $NetBSD: Makefile.inc,v 1.12 2009/01/10 23:36:22 pooka 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" || ${LIB} == "pthread" \ 18 || ${LIB} == "rump") 19 SRCS+= atomic_add_32_cas.c atomic_add_32_nv_cas.c atomic_and_32_cas.c \ 20 atomic_and_32_nv_cas.c atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \ 21 atomic_inc_32_cas.c atomic_inc_32_nv_cas.c atomic_or_32_cas.c \ 22 atomic_or_32_nv_cas.c atomic_swap_32_cas.c membar_ops.S 23 . endif 24 25 . if (${LIB} == "kern" || ${LIB} == "rump") 26 SRCS+= atomic_cas.S 27 . endif 28 29 . if (${LIB} == "c" || ${LIB} == "pthread") 30 SRCS+= atomic_init_testset.c 31 . endif 32 33 . endif 34 35 .endif 36