1# $NetBSD: Makefile.inc,v 1.3 2009/01/04 17:54:29 pooka Exp $ 2 3.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \ 4 || ${LIB} == "rump") 5 6SRCS+= atomic_add_32_cas.c atomic_add_32_nv_cas.c \ 7 atomic_add_64_cas.c atomic_add_64_nv_cas.c \ 8 atomic_and_32_cas.c atomic_and_32_nv_cas.c \ 9 atomic_and_64_cas.c atomic_and_64_nv_cas.c \ 10 atomic_or_32_cas.c atomic_or_32_nv_cas.c \ 11 atomic_or_64_cas.c atomic_or_64_nv_cas.c 12 13SRCS+= atomic.S 14 15.endif 16 17.if defined(LIB) && (${LIB} == "c" || ${LIB} == "pthread") 18 19SRCS += atomic_init_cas.c 20 21.endif 22