| @@ -1,24 +1,27 @@ | | | @@ -1,24 +1,27 @@ |
1 | # $NetBSD: Makefile.inc,v 1.9 2014/01/29 11:03:04 skrll Exp $ | | 1 | # $NetBSD: Makefile.inc,v 1.10 2014/02/22 08:21:03 skrll Exp $ |
2 | | | 2 | |
3 | .if defined(LIB) | | 3 | .if defined(LIB) |
4 | | | 4 | |
5 | . if (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" || \ | | 5 | . if (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" || \ |
6 | ${LIB} == "rump") | | 6 | ${LIB} == "rump") |
7 | | | 7 | |
8 | SRCS+= atomic_add_32_cas.c atomic_add_32_nv_cas.c atomic_and_32_cas.c \ | | 8 | SRCS+= atomic_add_32_cas.c atomic_add_32_nv_cas.c \ |
9 | atomic_and_32_nv_cas.c atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \ | | 9 | atomic_and_32_cas.c atomic_and_32_nv_cas.c \ |
10 | atomic_inc_32_cas.c atomic_inc_32_nv_cas.c atomic_or_32_cas.c \ | | 10 | atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \ |
11 | atomic_or_32_nv_cas.c atomic_swap_32_cas.c membar_ops_nop.c | | 11 | atomic_inc_32_cas.c atomic_inc_32_nv_cas.c \ |
| | | 12 | atomic_or_32_cas.c \ |
| | | 13 | atomic_or_32_nv_cas.c atomic_swap_32_cas.c \ |
| | | 14 | membar_ops_nop.c |
12 | | | 15 | |
13 | . endif | | 16 | . endif |
14 | | | 17 | |
15 | . if (${LIB} == "c" || ${LIB} == "pthread") | | 18 | . if (${LIB} == "c" || ${LIB} == "pthread") |
16 | | | 19 | |
17 | SRCS+= atomic_init_testset.c | | 20 | SRCS+= atomic_init_testset.c |
18 | SRCS+= atomic_cas_up.S | | 21 | SRCS+= atomic_cas_up.S |
19 | CPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP | | 22 | CPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP |
20 | CPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_16_UP | | 23 | CPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_16_UP |
21 | CPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_8_UP | | 24 | CPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_8_UP |
22 | . endif | | 25 | . endif |
23 | | | 26 | |
24 | .endif | | 27 | .endif |