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